@limetech/lime-elements 39.0.4 → 39.1.1

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 (254) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/index-nxo2UO7I.js +20355 -0
  3. package/dist/cjs/lime-elements.cjs.js +1 -1
  4. package/dist/cjs/limel-action-bar_2.cjs.entry.js +4 -4
  5. package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
  6. package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +6 -6
  7. package/dist/cjs/limel-callout.cjs.entry.js +1 -1
  8. package/dist/cjs/limel-chart.cjs.entry.js +1 -1
  9. package/dist/cjs/limel-chip_2.cjs.entry.js +1 -1
  10. package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
  11. package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
  12. package/dist/cjs/limel-drag-handle.cjs.entry.js +1 -1
  13. package/dist/cjs/limel-email-viewer.cjs.entry.js +351 -0
  14. package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +2 -2
  15. package/dist/cjs/limel-file-viewer.cjs.entry.js +4967 -26
  16. package/dist/cjs/limel-file.cjs.entry.js +2 -2
  17. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
  18. package/dist/cjs/limel-flex-container.cjs.entry.js +1 -1
  19. package/dist/cjs/limel-form.cjs.entry.js +1 -1
  20. package/dist/cjs/limel-grid.cjs.entry.js +1 -1
  21. package/dist/cjs/limel-header.cjs.entry.js +1 -1
  22. package/dist/cjs/limel-help-content.cjs.entry.js +1 -1
  23. package/dist/cjs/limel-help.cjs.entry.js +2 -2
  24. package/dist/cjs/limel-helper-line_2.cjs.entry.js +3 -3
  25. package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
  26. package/dist/cjs/limel-icon.cjs.entry.js +1 -1
  27. package/dist/cjs/limel-info-tile.cjs.entry.js +2 -2
  28. package/dist/cjs/limel-linear-progress.cjs.entry.js +1 -1
  29. package/dist/cjs/limel-list-item.cjs.entry.js +3 -3
  30. package/dist/cjs/limel-markdown.cjs.entry.js +3 -2
  31. package/dist/cjs/limel-menu-item-meta.cjs.entry.js +1 -1
  32. package/dist/cjs/limel-picker.cjs.entry.js +1 -1
  33. package/dist/cjs/limel-popover_2.cjs.entry.js +2 -2
  34. package/dist/cjs/limel-portal_3.cjs.entry.js +4 -4
  35. package/dist/cjs/limel-profile-picture.cjs.entry.js +1 -1
  36. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +15 -14
  37. package/dist/cjs/limel-radio-button-group.cjs.entry.js +1 -1
  38. package/dist/cjs/limel-radio-button.cjs.entry.js +2 -2
  39. package/dist/cjs/limel-select.cjs.entry.js +1 -1
  40. package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
  41. package/dist/cjs/limel-slider.cjs.entry.js +1 -1
  42. package/dist/cjs/limel-snackbar.cjs.entry.js +4 -4
  43. package/dist/cjs/limel-split-button.cjs.entry.js +2 -2
  44. package/dist/cjs/limel-tab-bar.cjs.entry.js +2 -2
  45. package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
  46. package/dist/cjs/limel-table.cjs.entry.js +4 -4
  47. package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
  48. package/dist/cjs/loader.cjs.js +1 -1
  49. package/dist/cjs/{markdown-parser-_1bsy-5h.js → markdown-parser-B66l_Zvo.js} +20342 -40680
  50. package/dist/cjs/{translations-BIHr3B9O.js → translations-B0hzD08N.js} +112 -0
  51. package/dist/collection/collection-manifest.json +1 -0
  52. package/dist/collection/components/email-viewer/email-loader.js +206 -0
  53. package/dist/collection/components/email-viewer/email-viewer.css +293 -0
  54. package/dist/collection/components/email-viewer/email-viewer.js +294 -0
  55. package/dist/collection/components/email-viewer/email-viewer.types.js +1 -0
  56. package/dist/collection/components/email-viewer/remote-images.js +50 -0
  57. package/dist/collection/components/email-viewer/sanitize-email-html.js +245 -0
  58. package/dist/collection/components/email-viewer/split-email-address-list.js +106 -0
  59. package/dist/collection/components/file/file.js +1 -1
  60. package/dist/collection/components/file-dropzone/file-dropzone.js +1 -1
  61. package/dist/collection/components/file-input/file-input.js +1 -1
  62. package/dist/collection/components/file-viewer/extension-mapping.js +1 -0
  63. package/dist/collection/components/file-viewer/file-viewer.js +54 -7
  64. package/dist/collection/components/flex-container/flex-container.js +1 -1
  65. package/dist/collection/components/form/form.js +1 -1
  66. package/dist/collection/components/grid/grid.js +1 -1
  67. package/dist/collection/components/header/header.js +1 -1
  68. package/dist/collection/components/help/help-content.js +1 -1
  69. package/dist/collection/components/help/help.js +2 -2
  70. package/dist/collection/components/helper-line/helper-line.js +2 -2
  71. package/dist/collection/components/icon/icon.js +1 -1
  72. package/dist/collection/components/icon-button/icon-button.js +1 -1
  73. package/dist/collection/components/info-tile/info-tile.js +2 -2
  74. package/dist/collection/components/input-field/input-field.js +1 -1
  75. package/dist/collection/components/list/list.js +1 -1
  76. package/dist/collection/components/list-item/list-item.js +2 -2
  77. package/dist/collection/components/list-item/menu-item-meta/menu-item-meta.js +1 -1
  78. package/dist/collection/components/markdown/markdown.js +1 -1
  79. package/dist/collection/components/menu/menu.js +1 -1
  80. package/dist/collection/components/menu-list/menu-list.js +1 -1
  81. package/dist/collection/components/menu-surface/menu-surface.js +1 -1
  82. package/dist/collection/components/notched-outline/notched-outline.js +1 -1
  83. package/dist/collection/components/picker/picker.js +1 -1
  84. package/dist/collection/components/popover/popover.js +1 -1
  85. package/dist/collection/components/popover-surface/popover-surface.js +1 -1
  86. package/dist/collection/components/portal/portal.js +1 -1
  87. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  88. package/dist/collection/components/radio-button-group/radio-button.js +2 -2
  89. package/dist/collection/components/select/select.js +1 -1
  90. package/dist/collection/components/shortcut/shortcut.js +1 -1
  91. package/dist/collection/components/slider/slider.js +1 -1
  92. package/dist/collection/components/snackbar/snackbar.js +3 -3
  93. package/dist/collection/components/spinner/spinner.js +1 -1
  94. package/dist/collection/components/split-button/split-button.js +2 -2
  95. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  96. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  97. package/dist/collection/components/table/table.js +3 -3
  98. package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +3 -3
  99. package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +1 -1
  100. package/dist/collection/components/text-editor/text-editor.js +1 -1
  101. package/dist/collection/components/tooltip/tooltip-content.js +1 -1
  102. package/dist/collection/components/tooltip/tooltip.js +2 -2
  103. package/dist/collection/interface.js +1 -0
  104. package/dist/collection/translations/da.js +14 -0
  105. package/dist/collection/translations/de.js +14 -0
  106. package/dist/collection/translations/en.js +14 -0
  107. package/dist/collection/translations/fi.js +14 -0
  108. package/dist/collection/translations/fr.js +14 -0
  109. package/dist/collection/translations/nl.js +14 -0
  110. package/dist/collection/translations/no.js +14 -0
  111. package/dist/collection/translations/sv.js +14 -0
  112. package/dist/collection/util/format-bytes.js +38 -0
  113. package/dist/esm/{file-metadata-D5joHaqk.js → file-metadata-BwF9vTXN.js} +1 -1
  114. package/dist/esm/{files-CkgibGPZ.js → files-P324wLau.js} +1 -1
  115. package/dist/esm/{get-icon-props-COzG_Mhw.js → get-icon-props-CgNJbSP4.js} +1 -1
  116. package/dist/esm/index-CJ0GYrWG.js +20341 -0
  117. package/dist/esm/lime-elements.js +1 -1
  118. package/dist/esm/limel-action-bar-item_2.entry.js +1 -1
  119. package/dist/esm/limel-action-bar_2.entry.js +4 -4
  120. package/dist/esm/limel-ai-avatar.entry.js +1 -1
  121. package/dist/esm/limel-breadcrumbs_7.entry.js +7 -7
  122. package/dist/esm/limel-button.entry.js +1 -1
  123. package/dist/esm/limel-callout.entry.js +1 -1
  124. package/dist/esm/limel-card.entry.js +1 -1
  125. package/dist/esm/limel-chart.entry.js +1 -1
  126. package/dist/esm/limel-chip_2.entry.js +2 -2
  127. package/dist/esm/limel-code-editor.entry.js +1 -1
  128. package/dist/esm/limel-collapsible-section.entry.js +2 -2
  129. package/dist/esm/limel-drag-handle.entry.js +1 -1
  130. package/dist/esm/limel-dynamic-label.entry.js +1 -1
  131. package/dist/esm/limel-email-viewer.entry.js +349 -0
  132. package/dist/esm/limel-file-dropzone_2.entry.js +5 -5
  133. package/dist/esm/limel-file-viewer.entry.js +4948 -7
  134. package/dist/esm/limel-file.entry.js +4 -4
  135. package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
  136. package/dist/esm/limel-flex-container.entry.js +1 -1
  137. package/dist/esm/limel-form.entry.js +1 -1
  138. package/dist/esm/limel-grid.entry.js +1 -1
  139. package/dist/esm/limel-header.entry.js +2 -2
  140. package/dist/esm/limel-help-content.entry.js +1 -1
  141. package/dist/esm/limel-help.entry.js +2 -2
  142. package/dist/esm/limel-helper-line_2.entry.js +3 -3
  143. package/dist/esm/limel-icon-button.entry.js +2 -2
  144. package/dist/esm/limel-icon.entry.js +1 -1
  145. package/dist/esm/limel-info-tile.entry.js +2 -2
  146. package/dist/esm/limel-linear-progress.entry.js +1 -1
  147. package/dist/esm/limel-list-item.entry.js +4 -4
  148. package/dist/esm/limel-markdown.entry.js +3 -2
  149. package/dist/esm/limel-menu-item-meta.entry.js +1 -1
  150. package/dist/esm/limel-picker.entry.js +2 -2
  151. package/dist/esm/limel-popover_2.entry.js +2 -2
  152. package/dist/esm/limel-portal_3.entry.js +4 -4
  153. package/dist/esm/limel-profile-picture.entry.js +4 -4
  154. package/dist/esm/limel-progress-flow-item.entry.js +1 -1
  155. package/dist/esm/limel-progress-flow.entry.js +1 -1
  156. package/dist/esm/limel-prosemirror-adapter.entry.js +7 -6
  157. package/dist/esm/limel-radio-button-group.entry.js +1 -1
  158. package/dist/esm/limel-radio-button.entry.js +2 -2
  159. package/dist/esm/limel-select.entry.js +2 -2
  160. package/dist/esm/limel-shortcut.entry.js +1 -1
  161. package/dist/esm/limel-slider.entry.js +1 -1
  162. package/dist/esm/limel-snackbar.entry.js +4 -4
  163. package/dist/esm/limel-split-button.entry.js +2 -2
  164. package/dist/esm/limel-tab-bar.entry.js +3 -3
  165. package/dist/esm/limel-tab-panel.entry.js +1 -1
  166. package/dist/esm/limel-table.entry.js +4 -4
  167. package/dist/esm/limel-text-editor.entry.js +1 -1
  168. package/dist/esm/loader.js +1 -1
  169. package/dist/esm/{markdown-parser-DkmQCwAi.js → markdown-parser-DJi1w622.js} +20287 -40624
  170. package/dist/esm/{translations-6rJPElLH.js → translations-Cdx3I2X8.js} +112 -0
  171. package/dist/lime-elements/lime-elements.esm.js +1 -1
  172. package/dist/lime-elements/{p-927622ec.entry.js → p-00fdb26c.entry.js} +1 -1
  173. package/dist/lime-elements/{p-880b9683.entry.js → p-1244d687.entry.js} +2 -2
  174. package/dist/lime-elements/p-1d71e9c8.entry.js +1 -0
  175. package/dist/lime-elements/p-21aef7f4.entry.js +1 -0
  176. package/dist/lime-elements/{p-68f49d6f.entry.js → p-278356b3.entry.js} +1 -1
  177. package/dist/lime-elements/{p-a6fae24d.entry.js → p-28dae22e.entry.js} +1 -1
  178. package/dist/lime-elements/{p-6951136b.entry.js → p-2d31cf0d.entry.js} +1 -1
  179. package/dist/lime-elements/{p-6e3666e5.entry.js → p-2ef38dac.entry.js} +1 -1
  180. package/dist/lime-elements/{p-dd36d57b.entry.js → p-2f788e92.entry.js} +7 -7
  181. package/dist/lime-elements/p-2kcqdtMr.js +1 -0
  182. package/dist/lime-elements/{p-11f716f5.entry.js → p-3000785f.entry.js} +1 -1
  183. package/dist/lime-elements/{p-2a5b259e.entry.js → p-3130d348.entry.js} +1 -1
  184. package/dist/lime-elements/{p-feeae1e4.entry.js → p-38097fa1.entry.js} +1 -1
  185. package/dist/lime-elements/p-3b299849.entry.js +1 -0
  186. package/dist/lime-elements/{p-00859fac.entry.js → p-3e6ce4e1.entry.js} +2 -2
  187. package/dist/lime-elements/{p-23f7956e.entry.js → p-3ec31835.entry.js} +1 -1
  188. package/dist/lime-elements/{p-52edfe86.entry.js → p-44396c0d.entry.js} +1 -1
  189. package/dist/lime-elements/{p-ec42a4aa.entry.js → p-494f880b.entry.js} +1 -1
  190. package/dist/lime-elements/{p-d1fa6da3.entry.js → p-4f6e3057.entry.js} +3 -3
  191. package/dist/lime-elements/{p-e6d74062.entry.js → p-504ae59f.entry.js} +1 -1
  192. package/dist/lime-elements/{p-7d5bd4a2.entry.js → p-51565372.entry.js} +1 -1
  193. package/dist/lime-elements/{p-5ddeb498.entry.js → p-52098c47.entry.js} +1 -1
  194. package/dist/lime-elements/{p-d2123236.entry.js → p-521a0204.entry.js} +1 -1
  195. package/dist/lime-elements/{p-38fb97fe.entry.js → p-54d85ae4.entry.js} +1 -1
  196. package/dist/lime-elements/{p-88f503eb.entry.js → p-59a522ee.entry.js} +1 -1
  197. package/dist/lime-elements/{p-2c1538f0.entry.js → p-5af72e1b.entry.js} +1 -1
  198. package/dist/lime-elements/p-64cc5094.entry.js +1 -0
  199. package/dist/lime-elements/{p-045c6027.entry.js → p-67a2c7f5.entry.js} +1 -1
  200. package/dist/lime-elements/{p-8db6b7d9.entry.js → p-68b1605f.entry.js} +1 -1
  201. package/dist/lime-elements/{p-7457bc07.entry.js → p-770981e6.entry.js} +1 -1
  202. package/dist/lime-elements/{p-9ea564fe.entry.js → p-7ed97446.entry.js} +1 -1
  203. package/dist/lime-elements/{p-cbb7d624.entry.js → p-8053727c.entry.js} +1 -1
  204. package/dist/lime-elements/{p-fc3209db.entry.js → p-80f9f2d3.entry.js} +1 -1
  205. package/dist/lime-elements/{p-34ef71f2.entry.js → p-95fb9ef8.entry.js} +1 -1
  206. package/dist/lime-elements/{p-6275668f.entry.js → p-961dff13.entry.js} +1 -1
  207. package/dist/lime-elements/{p-abef62d7.entry.js → p-97952658.entry.js} +1 -1
  208. package/dist/lime-elements/{p-d6270e4a.entry.js → p-982b9f50.entry.js} +1 -1
  209. package/dist/lime-elements/p-9c4156c6.entry.js +1 -0
  210. package/dist/lime-elements/p-BRCcjfVu.js +7 -0
  211. package/dist/lime-elements/{p-DSjFzQmB.js → p-CWuGCKo1.js} +1 -1
  212. package/dist/lime-elements/p-Cdx3I2X8.js +1 -0
  213. package/dist/lime-elements/{p-COzG_Mhw.js → p-CgNJbSP4.js} +1 -1
  214. package/dist/lime-elements/{p-BQY2kAWs.js → p-DlJXKdhK.js} +1 -1
  215. package/dist/lime-elements/{p-bbaf35ce.entry.js → p-a9f3f90c.entry.js} +1 -1
  216. package/dist/lime-elements/{p-c9e934af.entry.js → p-af5f2052.entry.js} +1 -1
  217. package/dist/lime-elements/{p-f9480c52.entry.js → p-c2478225.entry.js} +1 -1
  218. package/dist/lime-elements/{p-6aebcf60.entry.js → p-c7f2e189.entry.js} +1 -1
  219. package/dist/lime-elements/{p-c118eac0.entry.js → p-cce53162.entry.js} +1 -1
  220. package/dist/lime-elements/{p-6896d5c8.entry.js → p-d4fea438.entry.js} +1 -1
  221. package/dist/lime-elements/{p-534fdf9b.entry.js → p-df1fa930.entry.js} +1 -1
  222. package/dist/lime-elements/{p-52bb74b9.entry.js → p-e05ad4f8.entry.js} +1 -1
  223. package/dist/lime-elements/{p-303d01e5.entry.js → p-e6b0e0a2.entry.js} +1 -1
  224. package/dist/lime-elements/{p-80d35f8f.entry.js → p-e975cc29.entry.js} +1 -1
  225. package/dist/lime-elements/{p-9ed578ec.entry.js → p-f532b60f.entry.js} +1 -1
  226. package/dist/lime-elements/p-f60ea7c6.entry.js +1 -0
  227. package/dist/lime-elements/{p-4be18a57.entry.js → p-ff845f5c.entry.js} +1 -1
  228. package/dist/types/components/email-viewer/email-loader.d.ts +19 -0
  229. package/dist/types/components/email-viewer/email-viewer.d.ts +69 -0
  230. package/dist/types/components/email-viewer/email-viewer.types.d.ts +70 -0
  231. package/dist/types/components/email-viewer/remote-images.d.ts +22 -0
  232. package/dist/types/components/email-viewer/sanitize-email-html.d.ts +14 -0
  233. package/dist/types/components/email-viewer/split-email-address-list.d.ts +25 -0
  234. package/dist/types/components/file-viewer/file-viewer.d.ts +9 -0
  235. package/dist/types/components/file-viewer/file-viewer.types.d.ts +1 -1
  236. package/dist/types/components.d.ts +116 -0
  237. package/dist/types/interface.d.ts +1 -0
  238. package/dist/types/translations/da.d.ts +10 -0
  239. package/dist/types/translations/de.d.ts +10 -0
  240. package/dist/types/translations/en.d.ts +10 -0
  241. package/dist/types/translations/fi.d.ts +10 -0
  242. package/dist/types/translations/fr.d.ts +10 -0
  243. package/dist/types/translations/nl.d.ts +10 -0
  244. package/dist/types/translations/no.d.ts +10 -0
  245. package/dist/types/translations/sv.d.ts +10 -0
  246. package/dist/types/util/format-bytes.d.ts +21 -0
  247. package/package.json +4 -5
  248. package/dist/lime-elements/p-017dd326.entry.js +0 -1
  249. package/dist/lime-elements/p-4beeec39.entry.js +0 -1
  250. package/dist/lime-elements/p-55596d9a.entry.js +0 -1
  251. package/dist/lime-elements/p-6rJPElLH.js +0 -1
  252. package/dist/lime-elements/p-Df0HAtSs.js +0 -7
  253. package/dist/lime-elements/p-d424688d.entry.js +0 -1
  254. package/dist/lime-elements/p-f395fbe3.entry.js +0 -1
@@ -1,7 +0,0 @@
1
- import{g as e}from"./p-BFTU3MAI.js";function t(e,t){return function(e){try{let t;return t=function(e){return e.startsWith("//")}(e)?new URL(window.location.protocol+e):new URL(e,window.location.origin),t.protocol.startsWith("http")&&t.hostname!==window.location.hostname}catch(e){return!1}}(e)?{href:e,title:t,target:"_blank",rel:"noopener noreferrer",referrerpolicy:"noreferrer"}:{href:e,title:t,target:null,rel:null,referrerpolicy:null}}var n,i=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((e=>e.charCodeAt(0))));new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((e=>e.charCodeAt(0))));const r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),s=null!==(n=String.fromCodePoint)&&void 0!==n?n:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var a,o,l,c;function u(e){return e>=a.ZERO&&e<=a.NINE}function h(e){return e>=a.UPPER_A&&e<=a.UPPER_F||e>=a.LOWER_A&&e<=a.LOWER_F}function f(e){return e===a.EQUALS||function(e){return e>=a.UPPER_A&&e<=a.UPPER_Z||e>=a.LOWER_A&&e<=a.LOWER_Z||u(e)}(e)}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(a||(a={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(o||(o={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(l||(l={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(c||(c={}));class d{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=l.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=c.Strict}startEntity(e){this.decodeMode=e,this.state=l.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case l.EntityStart:return e.charCodeAt(t)===a.NUM?(this.state=l.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=l.NamedEntity,this.stateNamedEntity(e,t));case l.NumericStart:return this.stateNumericStart(e,t);case l.NumericDecimal:return this.stateNumericDecimal(e,t);case l.NumericHex:return this.stateNumericHex(e,t);case l.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===a.LOWER_X?(this.state=l.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=l.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,i){if(t!==n){const r=n-t;this.result=this.result*Math.pow(i,r)+parseInt(e.substr(t,r),i),this.consumed+=r}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(!u(i)&&!h(i))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const i=e.charCodeAt(t);if(!u(i))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(i,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===a.SEMI)this.consumed+=1;else if(this.decodeMode===c.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=r.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==a.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let i=n[this.treeIndex],r=(i&o.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const s=e.charCodeAt(t);if(this.treeIndex=p(n,i,this.treeIndex+Math.max(1,r),s),this.treeIndex<0)return 0===this.result||this.decodeMode===c.Attribute&&(0===r||f(s))?0:this.emitNotTerminatedNamedEntity();if(i=n[this.treeIndex],r=(i&o.VALUE_LENGTH)>>14,0!==r){if(s===a.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==c.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this;return this.emitNamedEntityData(t,(n[t]&o.VALUE_LENGTH)>>14,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:i}=this;return this.emitCodePoint(1===t?i[e]&~o.VALUE_LENGTH:i[e+1],n),3===t&&this.emitCodePoint(i[e+2],n),n}end(){var e;switch(this.state){case l.NamedEntity:return 0===this.result||this.decodeMode===c.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case l.NumericDecimal:return this.emitNumericEntity(0,2);case l.NumericHex:return this.emitNumericEntity(0,3);case l.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case l.EntityStart:return 0}}}function p(e,t,n,i){const r=(t&o.BRANCH_LENGTH)>>7,s=t&o.JUMP_TABLE;if(0===r)return 0!==s&&i===s?n:-1;if(s){const t=i-s;return t<0||t>=r?-1:e[n+t]-1}let a=n,l=a+r-1;for(;a<=l;){const t=a+l>>>1,n=e[t];if(n<i)a=t+1;else{if(!(n>i))return e[t+r];l=t-1}}return-1}const m=function(){let e="";const t=new d(i,(t=>e+=s(t)));return function(n,i){let r=0,s=0;for(;(s=n.indexOf("&",s))>=0;){e+=n.slice(r,s),t.startEntity(i);const a=t.write(n,s+1);if(a<0){r=s+t.end();break}r=s+a,s=0===a?r+1:r}const a=e+n.slice(r);return e="",a}}();function g(e,t=c.Legacy){return m(e,t)}function b(e){if(e)throw e}var k,y,E=function(){if(y)return k;y=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},s=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var i,r=e.call(n,"constructor"),s=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!r&&!s)return!1;for(i in n);return void 0===i||e.call(n,i)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},o=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(i)return i(t,n).value}return t[n]};return k=function e(){var t,n,i,l,c,u,h=arguments[0],f=1,d=arguments.length,p=!1;for("boolean"==typeof h&&(p=h,h=arguments[1]||{},f=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});f<d;++f)if(null!=(t=arguments[f]))for(n in t)i=o(h,n),h!==(l=o(t,n))&&(p&&l&&(s(l)||(c=r(l)))?(c?(c=!1,u=i&&r(i)?i:[]):u=i&&s(i)?i:{},a(h,{name:n,newValue:e(p,u,l)})):void 0!==l&&a(h,{name:n,newValue:l}));return h},k}(),v=e(E);function w(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function T(e){return x(e&&e.line)+":"+x(e&&e.column)}function S(e){return T(e&&e.start)+"-"+T(e&&e.end)}function x(e){return e&&"number"==typeof e?e:1}let A=class extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let i="",r={},s=!1;if(t&&(r="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?i=e:!r.cause&&e&&(s=!0,i=e.message,r.cause=e),!r.ruleId&&!r.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?r.ruleId=n:(r.source=n.slice(0,e),r.ruleId=n.slice(e+1))}if(!r.place&&r.ancestors&&r.ancestors){const e=r.ancestors[r.ancestors.length-1];e&&(r.place=e.position)}const a=r.place&&"start"in r.place?r.place.start:r.place;var o;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.message=i,this.line=a?a.line:void 0,this.name=((o=r.place)&&"object"==typeof o?"position"in o||"type"in o?S(o.position):"start"in o||"end"in o?S(o):"line"in o||"column"in o?T(o):"":"")||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=s&&r.cause&&"string"==typeof r.cause.stack?r.cause.stack:""}};A.prototype.file="",A.prototype.name="",A.prototype.reason="",A.prototype.message="",A.prototype.stack="",A.prototype.column=void 0,A.prototype.line=void 0,A.prototype.ancestors=void 0,A.prototype.cause=void 0,A.prototype.fatal=void 0,A.prototype.place=void 0,A.prototype.ruleId=void 0,A.prototype.source=void 0;const C=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');I(e);let n,i=0,r=-1,s=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;s--;)if(47===e.codePointAt(s)){if(n){i=s+1;break}}else r<0&&(n=!0,r=s+1);return r<0?"":e.slice(i,r)}if(t===e)return"";let a=-1,o=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(n){i=s+1;break}}else a<0&&(n=!0,a=s+1),o>-1&&(e.codePointAt(s)===t.codePointAt(o--)?o<0&&(r=s):(o=-1,r=a));return i===r?r=a:r<0&&(r=e.length),e.slice(i,r)},D=function(e){if(I(e),0===e.length)return".";let t,n=-1,i=e.length;for(;--i;)if(47===e.codePointAt(i)){if(t){n=i;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},_=function(e){I(e);let t,n=e.length,i=-1,r=0,s=-1,a=0;for(;n--;){const o=e.codePointAt(n);if(47!==o)i<0&&(t=!0,i=n+1),46===o?s<0?s=n:1!==a&&(a=1):s>-1&&(a=-1);else if(t){r=n+1;break}}return s<0||i<0||0===a||1===a&&s===i-1&&s===r+1?"":e.slice(s,i)},R=function(...e){let t,n=-1;for(;++n<e.length;)I(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){I(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,i,r="",s=0,a=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===o);else if(a!==l-1&&2===o){if(r.length<2||2!==s||46!==r.codePointAt(r.length-1)||46!==r.codePointAt(r.length-2))if(r.length>2){if(i=r.lastIndexOf("/"),i!==r.length-1){i<0?(r="",s=0):(r=r.slice(0,i),s=r.length-1-r.lastIndexOf("/")),a=l,o=0;continue}}else if(r.length>0){r="",s=0,a=l,o=0;continue}t&&(r=r.length>0?r+"/..":"..",s=2)}else r.length>0?r+="/"+e.slice(a+1,l):r=e.slice(a+1,l),s=l-a-1;a=l,o=0}else 46===n&&o>-1?o++:o=-1}return r}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},L="/";function I(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const O=function(){return"/"};function N(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const P=["history","path","basename","stem","extname","dirname"];let M=class{constructor(e){let t;t=e?N(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd=O(),this.data={},this.history=[],this.messages=[];let n,i=-1;for(;++i<P.length;){const e=P[i];e in t&&null!=t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)P.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?C(this.path):void 0}set basename(e){q(e,"basename"),U(e,"basename"),this.path=R(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?D(this.path):void 0}set dirname(e){B(this.basename,"dirname"),this.path=R(e||"",this.basename)}get extname(){return"string"==typeof this.path?_(this.path):void 0}set extname(e){if(U(e,"extname"),B(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=R(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){N(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!N(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),q(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?C(this.path,this.extname):void 0}set stem(e){q(e,"stem"),U(e,"stem"),this.path=R(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const i=this.message(e,t,n);throw i.fatal=!0,i}info(e,t,n){const i=this.message(e,t,n);return i.fatal=void 0,i}message(e,t,n){const i=new A(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}};function U(e,t){if(e&&e.includes(L))throw new Error("`"+t+"` cannot be a path: did not expect `"+L+"`")}function q(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function B(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const F=function(e){const t=this.constructor.prototype,n=t[e],i=function(){return n.apply(i,arguments)};return Object.setPrototypeOf(i,t),i},H={}.hasOwnProperty;class z extends F{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){const e=[],t={run:function(...t){let n=-1;const i=t.pop();if("function"!=typeof i)throw new TypeError("Expected function as last argument, not "+i);!function r(s,...a){const o=e[++n];let l=-1;if(s)i(s);else{for(;++l<t.length;)null==a[l]&&(a[l]=t[l]);t=a,o?function(e,t){let n;return function(...t){const s=e.length>t.length;let a;s&&t.push(i);try{a=e.apply(this,t)}catch(e){if(s&&n)throw e;return i(e)}s||(a instanceof Promise?a.then(r,i):a instanceof Error?i(a):r(a))};function i(e,...i){n||(n=!0,t(e,...i))}function r(e){i(null,e)}}(o,r)(...a):i(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){const e=new z;let t=-1;for(;++t<this.attachers.length;)e.use(...this.attachers[t]);return e.data(v(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Y("data",this.frozen),this.namespace[e]=t,this):H.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Y("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const i=t.call(e,...n);"function"==typeof i&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=X(e),n=this.parser||this.Parser;return G("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),G("process",this.parser||this.Parser),V("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(i,r){const s=X(e),a=n.parse(s);function o(e,n){e||!n?r(e):i?i(n):t(void 0,n)}n.run(a,s,(function(e,t,i){if(e||!t||!i)return o(e);const r=n.stringify(t,i);var s;"string"==typeof(s=r)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(s)?i.value=r:i.result=r,o(e,i)}))}}processSync(e){let t,n=!1;return this.freeze(),G("processSync",this.parser||this.Parser),V("processSync",this.compiler||this.Compiler),this.process(e,(function(e,i){n=!0,b(e),t=i})),K("processSync","process",n),t}run(e,t,n){W(e),this.freeze();const i=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?r(void 0,n):new Promise(r);function r(r,s){const a=X(t);i.run(e,a,(function(t,i,a){const o=i||e;t?s(t):r?r(o):n(void 0,o,a)}))}}runSync(e,t){let n,i=!1;return this.run(e,t,(function(e,t){b(e),n=t,i=!0})),K("runSync","run",i),n}stringify(e,t){this.freeze();const n=X(t),i=this.compiler||this.Compiler;return V("stringify",i),W(e),i(e,n)}use(e,...t){const n=this.attachers,i=this.namespace;if(Y("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):s(e)}return this;function r(e){if("function"==typeof e)o(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;o(t,n)}else s(e)}}function s(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(i.settings=v(!0,i.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;)r(e[t])}}function o(e,t){let i=-1,r=-1;for(;++i<n.length;)if(n[i][0]===e){r=i;break}if(-1===r)n.push([e,...t]);else if(t.length>0){let[i,...s]=t;const a=n[r][1];w(a)&&w(i)&&(i=v(!0,a,i)),n[r]=[e,i,...s]}}}}const j=(new z).freeze();function G(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function V(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Y(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function W(e){if(!w(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function K(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function X(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new M(e)}const Q={};function $(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Z(e.children,t,n)}return Array.isArray(e)?Z(e,t,n):""}function Z(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=$(e[r],t,n);return i.join("")}const J={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},ee={}.hasOwnProperty;function te(e){return!!ee.call(J,e)&&J[e]}function ne(e,t,n,i){const r=e.length;let s,a=0;if(t=t<0?-t>r?0:r+t:t>r?r:t,n=n>0?n:0,i.length<1e4)s=Array.from(i),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<i.length;)s=i.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function ie(e,t){return e.length>0?(ne(e,e.length,0,t),e):t}const re={}.hasOwnProperty;function se(e){const t={};let n=-1;for(;++n<e.length;)ae(t,e[n]);return t}function ae(e,t){let n;for(n in t){const i=(re.call(e,n)?e[n]:void 0)||(e[n]={}),r=t[n];let s;if(r)for(s in r){re.call(i,s)||(i[s]=[]);const e=r[s];oe(i[s],Array.isArray(e)?e:e?[e]:[])}}}function oe(e,t){let n=-1;const i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);ne(e,0,0,i)}function le(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}function ce(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ue=Te(/\p{P}/u),he=Te(/[A-Za-z]/),fe=Te(/[\dA-Za-z]/),de=Te(/[#-'*+\--9=?A-Z^-~]/);function pe(e){return null!==e&&(e<32||127===e)}const me=Te(/\d/),ge=Te(/[\dA-Fa-f]/),be=Te(/[!-/:-@[-`{-~]/);function ke(e){return null!==e&&e<-2}function ye(e){return null!==e&&(e<0||32===e)}function Ee(e){return-2===e||-1===e||32===e}function ve(e){return be(e)||ue(e)}const we=Te(/\s/);function Te(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Se(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const s=e.charCodeAt(n);let a="";if(37===s&&fe(e.charCodeAt(n+1))&&fe(e.charCodeAt(n+2)))r=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const t=e.charCodeAt(n+1);s<56320&&t>56319&&t<57344?(a=String.fromCharCode(s,t),r=1):a="�"}else a=String.fromCharCode(s);a&&(t.push(e.slice(i,n),encodeURIComponent(a)),i=n+r+1,a=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function xe(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let s=0;return function(i){return Ee(i)?(e.enter(n),a(i)):t(i)};function a(i){return Ee(i)&&s++<r?(e.consume(i),a):(e.exit(n),t(i))}}const Ae={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null!==n)return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),xe(e,t,"linePrefix");e.consume(n)}),(function(t){return e.enter("paragraph"),i(t)}));let n;return t;function i(t){const i=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=i),n=i,r(t)}function r(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):ke(t)?(e.consume(t),e.exit("chunkText"),i):(e.consume(t),r)}}},Ce={tokenize:function(e){const t=this,n=[];let i,r,s,a=0;return o;function o(i){if(a<n.length){const r=n[a];return t.containerState=r[1],e.attempt(r[0].continuation,l,c)(i)}return c(i)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&k();const n=t.events.length;let r,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){r=t.events[s][1].end;break}b(a);let o=n;for(;o<t.events.length;)t.events[o][1].end=Object.assign({},r),o++;return ne(t.events,s+1,0,t.events.slice(n)),t.events.length=o,c(e)}return o(e)}function c(r){if(a===n.length){if(!i)return f(r);if(i.currentConstruct&&i.currentConstruct.concrete)return p(r);t.interrupt=Boolean(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(De,u,h)(r)}function u(e){return i&&k(),b(a),f(e)}function h(e){return t.parser.lazy[t.now().line]=a!==n.length,s=t.now().offset,p(e)}function f(n){return t.containerState={},e.attempt(De,d,p)(n)}function d(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function p(n){return null===n?(i&&k(),b(0),void e.consume(n)):(i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:r,_tokenizer:i}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):ke(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,o):(e.consume(n),m)}function g(e,n){const o=t.sliceStream(e);if(n&&o.push(null),e.previous=r,r&&(r.next=e),r=e,i.defineSkip(e.start),i.write(o),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<s&&(!i.events[e][1].end||i.events[e][1].end.offset>s))return;const n=t.events.length;let r,o,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(r){o=t.events[l][1].end;break}r=!0}for(b(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},o),e++;ne(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function b(i){let r=n.length;for(;r-- >i;){const i=n[r];t.containerState=i[1],i[0].exit.call(t,e)}n.length=i}function k(){i.write([null]),r=void 0,i=void 0,t.containerState._closeFlow=void 0}}},De={tokenize:function(e,t,n){return xe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function _e(e){return null===e||ye(e)||we(e)?1:ve(e)?2:void 0}function Re(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const s=e[r].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const Le={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=_e(i);let s;return function(t){return s=t,e.enter("attentionSequence"),a(t)};function a(o){if(o===s)return e.consume(o),a;const l=e.exit("attentionSequence"),c=_e(o),u=!c||2===c&&r||n.includes(o),h=!r||2===r&&c||n.includes(i);return l._open=Boolean(42===s?u:u&&(r||!h)),l._close=Boolean(42===s?h:h&&(c||!u)),t(o)}},resolveAll:function(e,t){let n,i,r,s,a,o,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;o=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h=Object.assign({},e[n][1].end),f=Object.assign({},e[u][1].start);Ie(h,-o),Ie(f,o),s={type:o>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[n][1].end)},a={type:o>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:f},r={type:o>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},i={type:o>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},s.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=ie(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=ie(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",r,t]]),l=ie(l,Re(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=ie(l,[["exit",r,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=ie(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,ne(e,n-1,u-n+3,l),u=n+l.length-c-2;break}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function Ie(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Oe={name:"autolink",tokenize:function(e,t,n){let i=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r};function r(t){return he(t)?(e.consume(t),s):l(t)}function s(e){return 43===e||45===e||46===e||fe(e)?(i=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),i=0,o):(43===t||45===t||46===t||fe(t))&&i++<32?(e.consume(t),a):(i=0,l(t))}function o(i){return 62===i?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):null===i||32===i||60===i||pe(i)?n(i):(e.consume(i),o)}function l(t){return 64===t?(e.consume(t),c):de(t)?(e.consume(t),l):n(t)}function c(e){return fe(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),i=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):h(n)}function h(t){if((45===t||fe(t))&&i++<63){const n=45===t?h:u;return e.consume(t),n}return n(t)}}},Ne={tokenize:function(e,t,n){return function(t){return Ee(t)?xe(e,i,"linePrefix")(t):i(t)};function i(e){return null===e||ke(e)?t(e):n(e)}},partial:!0},Pe={name:"blockQuote",tokenize:function(e,t,n){const i=this;return function(t){if(62===t){const n=i.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),r}return n(t)};function r(n){return Ee(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const i=this;return function(t){return Ee(t)?xe(e,r,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):r(t)};function r(i){return e.attempt(Pe,t,n)(i)}}},exit:function(e){e.exit("blockQuote")}},Me={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),i};function i(i){return be(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}},Ue={name:"characterReference",tokenize:function(e,t,n){const i=this;let r,s,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),o};function o(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,s=fe,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,s=ge,c):(e.enter("characterReferenceValue"),r=7,s=me,c(t))}function c(o){if(59===o&&a){const r=e.exit("characterReferenceValue");return s!==fe||te(i.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(o),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(o)}return s(o)&&a++<r?(e.consume(o),c):n(o)}}},qe={tokenize:function(e,t,n){const i=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r)};function r(e){return i.parser.lazy[i.now().line]?n(e):t(e)}},partial:!0},Be={name:"codeFenced",tokenize:function(e,t,n){const i=this,r={tokenize:function(e,t,n){let r=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),Ee(t)?xe(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===s?(r++,e.consume(t),c):r>=o?(e.exit("codeFencedFenceSequence"),Ee(t)?xe(e,u,"whitespace")(t):u(t)):n(t)}function u(i){return null===i||ke(i)?(e.exit("codeFencedFence"),t(i)):n(i)}},partial:!0};let s,a=0,o=0;return function(t){return function(t){const n=i.events[i.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===s?(o++,e.consume(t),l):o<3?n(t):(e.exit("codeFencedFenceSequence"),Ee(t)?xe(e,c,"whitespace")(t):c(t))}function c(n){return null===n||ke(n)?(e.exit("codeFencedFence"),i.interrupt?t(n):e.check(qe,d,k)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||ke(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Ee(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),xe(e,h,"whitespace")(t)):96===t&&t===s?n(t):(e.consume(t),u)}function h(t){return null===t||ke(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||ke(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===s?n(t):(e.consume(t),f)}function d(t){return e.attempt(r,k,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&Ee(t)?xe(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||ke(t)?e.check(qe,d,k)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||ke(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),b)}function k(n){return e.exit("codeFenced"),t(n)}},concrete:!0},Fe={name:"codeIndented",tokenize:function(e,t,n){const i=this;return function(t){return e.enter("codeIndented"),xe(e,r,"linePrefix",5)(t)};function r(e){const t=i.events[i.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?s(e):n(e)}function s(t){return null===t?o(t):ke(t)?e.attempt(He,s,o)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||ke(t)?(e.exit("codeFlowValue"),s(t)):(e.consume(t),a)}function o(n){return e.exit("codeIndented"),t(n)}}},He={tokenize:function(e,t,n){const i=this;return r;function r(t){return i.parser.lazy[i.now().line]?n(t):ke(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r):xe(e,s,"linePrefix",5)(t)}function s(e){const s=i.events[i.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(e):ke(e)?r(e):n(e)}},partial:!0},ze={name:"codeText",tokenize:function(e,t,n){let i,r,s=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),s++,a):(e.exit("codeTextSequence"),o(t))}function o(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),o):96===t?(r=e.enter("codeTextSequence"),i=0,c(t)):ke(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||ke(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),i++,c):i===s?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(r.type="codeTextData",l(n))}},resolve:function(e){let t,n,i=e.length-4,r=3;if(!("lineEnding"!==e[r][1].type&&"space"!==e[r][1].type||"lineEnding"!==e[i][1].type&&"space"!==e[i][1].type))for(t=r;++t<i;)if("codeTextData"===e[t][1].type){e[r][1].type="codeTextPadding",e[i][1].type="codeTextPadding",r+=2,i-=2;break}for(t=r-1,i++;++t<=i;)void 0===n?t!==i&&"lineEnding"!==e[t][1].type&&(n=t):t!==i&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),i-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};function je(e){const t={};let n,i,r,s,a,o,l,c=-1;for(;++c<e.length;){for(;c in t;)c=t[c];if(n=e[c],c&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[c-1][1].type&&(o=n[1]._tokenizer.events,r=0,r<o.length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Ge(e,c)),c=t[c],l=!0);else if(n[1]._container){for(r=c,i=void 0;r--&&(s=e[r],"lineEnding"===s[1].type||"lineEndingBlank"===s[1].type);)"enter"===s[0]&&(i&&(e[i][1].type="lineEndingBlank"),s[1].type="lineEnding",i=r);i&&(n[1].end=Object.assign({},e[i][1].start),a=e.slice(i,c),a.unshift(n),ne(e,i,c-i+1,a))}}return!l}function Ge(e,t){const n=e[t][1],i=e[t][2];let r=t-1;const s=[],a=n._tokenizer||i.parser[n.contentType](n.start),o=a.events,l=[],c={};let u,h,f=-1,d=n,p=0,m=0;const g=[m];for(;d;){for(;e[++r][1]!==d;);s.push(r),d._tokenizer||(u=i.sliceStream(d),d.next||u.push(null),h&&a.defineSkip(d.start),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),h=d,d=d.next}for(d=n;++f<o.length;)"exit"===o[f][0]&&"enter"===o[f-1][0]&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(m=f+1,g.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(a.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),f=g.length;f--;){const t=o.slice(g[f],g[f+1]),n=s.pop();l.unshift([n,n+t.length-1]),ne(e,n,2,t)}for(f=-1;++f<l.length;)c[p+l[f][0]]=p+l[f][1],p+=l[f][1]-l[f][0]-1;return c}const Ve={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(t)};function i(t){return null===t?r(t):ke(t)?e.check(Ye,s,r)(t):(e.consume(t),i)}function r(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function s(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}},resolve:function(e){return je(e),e}},Ye={tokenize:function(e,t,n){const i=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),xe(e,r,"linePrefix")};function r(r){if(null===r||ke(r))return n(r);const s=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(r):e.interrupt(i.parser.constructs.flow,n,t)(r)}},partial:!0};function We(e,t,n,i,r,s,a,o,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(i),e.enter(r),e.enter(s),e.consume(t),e.exit(s),h):null===t||32===t||41===t||pe(t)?n(t):(e.enter(i),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),p(t))};function h(n){return 62===n?(e.enter(s),e.consume(n),e.exit(s),e.exit(r),e.exit(i),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(o),h(t)):null===t||60===t||ke(t)?n(t):(e.consume(t),92===t?d:f)}function d(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function p(r){return u||null!==r&&41!==r&&!ye(r)?u<c&&40===r?(e.consume(r),u++,p):41===r?(e.consume(r),u--,p):null===r||32===r||40===r||pe(r)?n(r):(e.consume(r),92===r?m:p):(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(i),t(r))}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function Ke(e,t,n,i,r,s){const a=this;let o,l=0;return function(t){return e.enter(i),e.enter(r),e.consume(t),e.exit(r),e.enter(s),c};function c(h){return l>999||null===h||91===h||93===h&&!o||94===h&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):93===h?(e.exit(s),e.enter(r),e.consume(h),e.exit(r),e.exit(i),t):ke(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||ke(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!Ee(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Xe(e,t,n,i,r,s){let a;return function(t){return 34===t||39===t||40===t?(e.enter(i),e.enter(r),e.consume(t),e.exit(r),a=40===t?41:t,o):n(t)};function o(n){return n===a?(e.enter(r),e.consume(n),e.exit(r),e.exit(i),t):(e.enter(s),l(n))}function l(t){return t===a?(e.exit(s),o(a)):null===t?n(t):ke(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),xe(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||ke(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Qe(e,t){let n;return function i(r){return ke(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):Ee(r)?xe(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const $e={name:"definition",tokenize:function(e,t,n){const i=this;let r;return function(t){return e.enter("definition"),function(t){return Ke.call(i,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function s(t){return r=ce(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return ye(t)?Qe(e,o)(t):o(t)}function o(t){return We(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Ze,c,c)(t)}function c(t){return Ee(t)?xe(e,u,"whitespace")(t):u(t)}function u(s){return null===s||ke(s)?(e.exit("definition"),i.parser.defined.push(r),t(s)):n(s)}}},Ze={tokenize:function(e,t,n){return function(t){return ye(t)?Qe(e,i)(t):n(t)};function i(t){return Xe(e,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function r(t){return Ee(t)?xe(e,s,"whitespace")(t):s(t)}function s(e){return null===e||ke(e)?t(e):n(e)}},partial:!0},Je={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),i};function i(i){return ke(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}},et={name:"headingAtx",tokenize:function(e,t,n){let i=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),r(t)}(t)};function r(t){return 35===t&&i++<6?(e.consume(t),r):null===t||ye(t)?(e.exit("atxHeadingSequence"),s(t)):n(t)}function s(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||ke(n)?(e.exit("atxHeading"),t(n)):Ee(n)?xe(e,s,"whitespace")(n):(e.enter("atxHeadingText"),o(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),s(t))}function o(t){return null===t||35===t||ye(t)?(e.exit("atxHeadingText"),s(t)):(e.consume(t),o)}},resolve:function(e,t){let n,i,r=e.length-2,s=3;return"whitespace"===e[s][1].type&&(s+=2),r-2>s&&"whitespace"===e[r][1].type&&(r-=2),"atxHeadingSequence"===e[r][1].type&&(s===r-1||r-4>s&&"whitespace"===e[r-2][1].type)&&(r-=s+1===r?2:4),r>s&&(n={type:"atxHeadingText",start:e[s][1].start,end:e[r][1].end},i={type:"chunkText",start:e[s][1].start,end:e[r][1].end,contentType:"text"},ne(e,s,r-s+1,[["enter",n,t],["enter",i,t],["exit",i,t],["exit",n,t]])),e}},tt=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nt=["pre","script","style","textarea"],it={name:"htmlFlow",tokenize:function(e,t,n){const i=this;let r,s,a,o,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),s=!0,d):63===o?(e.consume(o),r=3,i.interrupt?t:N):he(o)?(e.consume(o),a=String.fromCharCode(o),p):n(o)}function u(s){return 45===s?(e.consume(s),r=2,h):91===s?(e.consume(s),r=5,o=0,f):he(s)?(e.consume(s),r=4,i.interrupt?t:N):n(s)}function h(r){return 45===r?(e.consume(r),i.interrupt?t:N):n(r)}function f(r){return r==="CDATA[".charCodeAt(o++)?(e.consume(r),6===o?i.interrupt?t:A:f):n(r)}function d(t){return he(t)?(e.consume(t),a=String.fromCharCode(t),p):n(t)}function p(o){if(null===o||47===o||62===o||ye(o)){const l=47===o,c=a.toLowerCase();return l||s||!nt.includes(c)?tt.includes(a.toLowerCase())?(r=6,l?(e.consume(o),m):i.interrupt?t(o):A(o)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(o):s?g(o):b(o)):(r=1,i.interrupt?t(o):A(o))}return 45===o||fe(o)?(e.consume(o),a+=String.fromCharCode(o),p):n(o)}function m(r){return 62===r?(e.consume(r),i.interrupt?t:A):n(r)}function g(t){return Ee(t)?(e.consume(t),g):S(t)}function b(t){return 47===t?(e.consume(t),S):58===t||95===t||he(t)?(e.consume(t),k):Ee(t)?(e.consume(t),b):S(t)}function k(t){return 45===t||46===t||58===t||95===t||fe(t)?(e.consume(t),k):y(t)}function y(t){return 61===t?(e.consume(t),E):Ee(t)?(e.consume(t),y):b(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,v):Ee(t)?(e.consume(t),E):w(t)}function v(t){return t===l?(e.consume(t),l=null,T):null===t||ke(t)?n(t):(e.consume(t),v)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ye(t)?y(t):(e.consume(t),w)}function T(e){return 47===e||62===e||Ee(e)?b(e):n(e)}function S(t){return 62===t?(e.consume(t),x):n(t)}function x(t){return null===t||ke(t)?A(t):Ee(t)?(e.consume(t),x):n(t)}function A(t){return 45===t&&2===r?(e.consume(t),R):60===t&&1===r?(e.consume(t),L):62===t&&4===r?(e.consume(t),P):63===t&&3===r?(e.consume(t),N):93===t&&5===r?(e.consume(t),O):!ke(t)||6!==r&&7!==r?null===t||ke(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(rt,M,C)(t))}function C(t){return e.check(st,D,M)(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),_}function _(t){return null===t||ke(t)?C(t):(e.enter("htmlFlowData"),A(t))}function R(t){return 45===t?(e.consume(t),N):A(t)}function L(t){return 47===t?(e.consume(t),a="",I):A(t)}function I(t){if(62===t){const n=a.toLowerCase();return nt.includes(n)?(e.consume(t),P):A(t)}return he(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),I):A(t)}function O(t){return 93===t?(e.consume(t),N):A(t)}function N(t){return 62===t?(e.consume(t),P):45===t&&2===r?(e.consume(t),N):A(t)}function P(t){return null===t||ke(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),P)}function M(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},concrete:!0},rt={tokenize:function(e,t,n){return function(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ne,t,n)}},partial:!0},st={tokenize:function(e,t,n){const i=this;return function(t){return ke(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r):n(t)};function r(e){return i.parser.lazy[i.now().line]?n(e):t(e)}},partial:!0},at={name:"htmlText",tokenize:function(e,t,n){const i=this;let r,s,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),o};function o(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),E):63===t?(e.consume(t),k):he(t)?(e.consume(t),T):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),s=0,d):he(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),h):ke(t)?(a=u,I(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?L(e):45===e?h(e):u(e)}function d(t){return t==="CDATA[".charCodeAt(s++)?(e.consume(t),6===s?p:d):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),m):ke(t)?(a=p,I(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?L(t):93===t?(e.consume(t),g):p(t)}function b(t){return null===t||62===t?L(t):ke(t)?(a=b,I(t)):(e.consume(t),b)}function k(t){return null===t?n(t):63===t?(e.consume(t),y):ke(t)?(a=k,I(t)):(e.consume(t),k)}function y(e){return 62===e?L(e):k(e)}function E(t){return he(t)?(e.consume(t),v):n(t)}function v(t){return 45===t||fe(t)?(e.consume(t),v):w(t)}function w(t){return ke(t)?(a=w,I(t)):Ee(t)?(e.consume(t),w):L(t)}function T(t){return 45===t||fe(t)?(e.consume(t),T):47===t||62===t||ye(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),L):58===t||95===t||he(t)?(e.consume(t),x):ke(t)?(a=S,I(t)):Ee(t)?(e.consume(t),S):L(t)}function x(t){return 45===t||46===t||58===t||95===t||fe(t)?(e.consume(t),x):A(t)}function A(t){return 61===t?(e.consume(t),C):ke(t)?(a=A,I(t)):Ee(t)?(e.consume(t),A):S(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,D):ke(t)?(a=C,I(t)):Ee(t)?(e.consume(t),C):(e.consume(t),_)}function D(t){return t===r?(e.consume(t),r=void 0,R):null===t?n(t):ke(t)?(a=D,I(t)):(e.consume(t),D)}function _(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||ye(t)?S(t):(e.consume(t),_)}function R(e){return 47===e||62===e||ye(e)?S(e):n(e)}function L(i){return 62===i?(e.consume(i),e.exit("htmlTextData"),e.exit("htmlText"),t):n(i)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return Ee(t)?xe(e,N,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):N(t)}function N(t){return e.enter("htmlTextData"),a(t)}}},ot={name:"labelEnd",tokenize:function(e,t,n){const i=this;let r,s,a=i.events.length;for(;a--;)if(("labelImage"===i.events[a][1].type||"labelLink"===i.events[a][1].type)&&!i.events[a][1]._balanced){r=i.events[a][1];break}return function(t){return r?r._inactive?u(t):(s=i.parser.defined.includes(ce(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),o):n(t)};function o(t){return 40===t?e.attempt(lt,c,s?c:u)(t):91===t?e.attempt(ct,c,s?l:u)(t):s?c(t):u(t)}function l(t){return e.attempt(ut,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}},resolveTo:function(e,t){let n,i,r,s,a=e.length,o=0;for(;a--;)if(n=e[a][1],i){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(r){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(i=a,"labelLink"!==n.type)){o=2;break}}else"labelEnd"===n.type&&(r=a);const l={type:"labelLink"===e[i][1].type?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[r][1].end)},u={type:"labelText",start:Object.assign({},e[i+o+2][1].end),end:Object.assign({},e[r-2][1].start)};return s=[["enter",l,t],["enter",c,t]],s=ie(s,e.slice(i+1,i+o+3)),s=ie(s,[["enter",u,t]]),s=ie(s,Re(t.parser.constructs.insideSpan.null,e.slice(i+o+4,r-3),t)),s=ie(s,[["exit",u,t],e[r-2],e[r-1],["exit",c,t]]),s=ie(s,e.slice(r+1)),s=ie(s,[["exit",l,t]]),ne(e,i,e.length,s),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},lt={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),i};function i(t){return ye(t)?Qe(e,r)(t):r(t)}function r(t){return 41===t?c(t):We(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function s(t){return ye(t)?Qe(e,o)(t):c(t)}function a(e){return n(e)}function o(t){return 34===t||39===t||40===t?Xe(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return ye(t)?Qe(e,c)(t):c(t)}function c(i){return 41===i?(e.enter("resourceMarker"),e.consume(i),e.exit("resourceMarker"),e.exit("resource"),t):n(i)}}},ct={tokenize:function(e,t,n){const i=this;return function(t){return Ke.call(i,e,r,s,"reference","referenceMarker","referenceString")(t)};function r(e){return i.parser.defined.includes(ce(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function s(e){return n(e)}}},ut={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),i};function i(i){return 93===i?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}},ht={name:"labelStartImage",tokenize:function(e,t,n){const i=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),r};function r(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),s):n(t)}function s(e){return 94===e&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):t(e)}},resolveAll:ot.resolveAll},ft={name:"labelStartLink",tokenize:function(e,t,n){const i=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),r};function r(e){return 94===e&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):t(e)}},resolveAll:ot.resolveAll},dt={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),xe(e,t,"linePrefix")}}},pt={name:"thematicBreak",tokenize:function(e,t,n){let i,r=0;return function(t){return e.enter("thematicBreak"),function(e){return i=e,s(e)}(t)};function s(s){return s===i?(e.enter("thematicBreakSequence"),a(s)):r>=3&&(null===s||ke(s))?(e.exit("thematicBreak"),t(s)):n(s)}function a(t){return t===i?(e.consume(t),r++,a):(e.exit("thematicBreakSequence"),Ee(t)?xe(e,s,"whitespace")(t):s(t))}}},mt={name:"list",tokenize:function(e,t,n){const i=this,r=i.events[i.events.length-1];let s=r&&"linePrefix"===r[1].type?r[2].sliceSerialize(r[1],!0).length:0,a=0;return function(t){const r=i.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===r?!i.containerState.marker||t===i.containerState.marker:me(t)){if(i.containerState.type||(i.containerState.type=r,e.enter(r,{_container:!0})),"listUnordered"===r)return e.enter("listItemPrefix"),42===t||45===t?e.check(pt,n,l)(t):l(t);if(!i.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),o(t)}return n(t)};function o(t){return me(t)&&++a<10?(e.consume(t),o):(!i.interrupt||a<2)&&(i.containerState.marker?t===i.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||t,e.check(Ne,i.interrupt?n:c,e.attempt(gt,h,u))}function c(e){return i.containerState.initialBlankLine=!0,s++,h(e)}function u(t){return Ee(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):n(t)}function h(n){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Ne,(function(n){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,xe(e,t,"listItemIndent",i.containerState.size+1)(n)}),(function(n){return i.containerState.furtherBlankLines||!Ee(n)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,r(n)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(bt,t,r)(n))}));function r(r){return i.containerState._closeFlow=!0,i.interrupt=void 0,xe(e,e.attempt(mt,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(r)}}},exit:function(e){e.exit(this.containerState.type)}},gt={tokenize:function(e,t,n){const i=this;return xe(e,(function(e){const r=i.events[i.events.length-1];return!Ee(e)&&r&&"listItemPrefixWhitespace"===r[1].type?t(e):n(e)}),"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},bt={tokenize:function(e,t,n){const i=this;return xe(e,(function(e){const r=i.events[i.events.length-1];return r&&"listItemIndent"===r[1].type&&r[2].sliceSerialize(r[1],!0).length===i.containerState.size?t(e):n(e)}),"listItemIndent",i.containerState.size+1)},partial:!0},kt={name:"setextUnderline",tokenize:function(e,t,n){const i=this;let r;return function(t){let a,o=i.events.length;for(;o--;)if("lineEnding"!==i.events[o][1].type&&"linePrefix"!==i.events[o][1].type&&"content"!==i.events[o][1].type){a="paragraph"===i.events[o][1].type;break}return i.parser.lazy[i.now().line]||!i.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),r=t,function(t){return e.enter("setextHeadingLineSequence"),s(t)}(t))};function s(t){return t===r?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),Ee(t)?xe(e,a,"lineSuffix")(t):a(t))}function a(i){return null===i||ke(i)?(e.exit("setextHeadingLine"),t(i)):n(i)}},resolveTo:function(e,t){let n,i,r,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(i=s)}else"content"===e[s][1].type&&e.splice(s,1),r||"definition"!==e[s][1].type||(r=s);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",r?(e.splice(i,0,["enter",a,t]),e.splice(r+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[r][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}},yt={tokenize:function(e){const t=this,n=e.attempt(Ne,(function(i){if(null!==i)return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(i)}),e.attempt(this.parser.constructs.flowInitial,i,xe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ve,i)),"linePrefix")));return n;function i(i){if(null!==i)return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(i)}}},Et={resolveAll:St()},vt=Tt("string"),wt=Tt("text");function Tt(e){return{tokenize:function(t){const n=this,i=this.parser.constructs[e],r=t.attempt(i,s,a);return s;function s(e){return l(e)?r(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),o;t.consume(e)}function o(e){return l(e)?(t.exit("data"),r(e)):(t.consume(e),o)}function l(e){if(null===e)return!0;const t=i[e];let r=-1;if(t)for(;++r<t.length;){const e=t[r];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:St("text"===e?xt:void 0)}}function St(e){return function(t,n){let i,r=-1;for(;++r<=t.length;)void 0===i?t[r]&&"data"===t[r][1].type&&(i=r,r++):t[r]&&"data"===t[r][1].type||(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function xt(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const i=e[n-1][1],r=t.sliceStream(i);let s,a=r.length,o=-1,l=0;for(;a--;){const e=r[a];if("string"==typeof e){for(o=e.length;32===e.charCodeAt(o-1);)l++,o--;if(o)break;o=-1}else if(-2===e)s=!0,l++;else if(-1!==e){a++;break}}if(l){const r={type:n===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-l,offset:i.end.offset-l,_index:i.start._index+a,_bufferIndex:a?o:i.start._bufferIndex+o},end:Object.assign({},i.end)};i.end=Object.assign({},r.start),i.start.offset===i.end.offset?Object.assign(i,r):(e.splice(n,0,["enter",r,t],["exit",r,t]),n+=2)}n++}return e}function At(e,t,n){let i=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const r={},s=[];let a=[],o=[];const l={consume:function(e){ke(e)?(i.line++,i.column=1,i.offset+=-3===e?2:1,b()):-1!==e&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===a[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),o.push(n),n},exit:function(){const e=o.pop();return e.end=f(),c.events.push(["exit",e,c]),e},attempt:m((function(e,t){g(e,t.from)})),check:m(p),interrupt:m(p,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:function(e,t){return function(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const s=e[n];let a;if("string"==typeof s)a=s;else switch(s){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&r)continue;a=" ";break;default:a=String.fromCharCode(s)}r=-2===s,i.push(a)}return i.join("")}(h(e),t)},now:f,defineSkip:function(e){r[e.line]=e.column,b()},write:function(e){return a=ie(a,e),function(){let e;for(;i._index<a.length;){const t=a[i._index];if("string"==typeof t)for(e=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===e&&i._bufferIndex<t.length;)d(t.charCodeAt(i._bufferIndex));else d(t)}}(),null!==a[a.length-1]?[]:(g(t,0),c.events=Re(s,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&s.push(t),c;function h(e){return function(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,s=t.end._bufferIndex;let a;if(n===r)a=[e[n].slice(i,s)];else{if(a=e.slice(n,r),i>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(i):a.shift()}s>0&&a.push(e[r].slice(0,s))}return a}(a,e)}function f(){const{line:e,column:t,offset:n,_index:r,_bufferIndex:s}=i;return{line:e,column:t,offset:n,_index:r,_bufferIndex:s}}function d(e){u=u(e)}function p(e,t){t.restore()}function m(e,t){return function(n,r,s){let a,u,h,d;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){return function(t){const n=null!==t&&e[t],i=null!==t&&e.null;return p([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(i)?i:i?[i]:[]])(t)}}(n);function p(e){return a=e,u=0,0===e.length?s:m(e[u])}function m(e){return function(n){return d=function(){const e=f(),t=c.previous,n=c.currentConstruct,r=c.events.length,s=Array.from(o);return{restore:function(){i=e,c.previous=t,c.currentConstruct=n,c.events.length=r,o=s,b()},from:r}}(),h=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?k():e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,k)(n)}}function g(){return e(h,d),r}function k(){return d.restore(),++u<a.length?m(a[u]):s}}}function g(e,t){e.resolveAll&&!s.includes(e)&&s.push(e),e.resolve&&ne(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function b(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}var Ct=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:$e},disable:{null:[]},document:{42:mt,43:mt,45:mt,48:mt,49:mt,50:mt,51:mt,52:mt,53:mt,54:mt,55:mt,56:mt,57:mt,62:Pe},flow:{35:et,42:pt,45:[kt,pt],60:it,61:kt,95:pt,96:Be,126:Be},flowInitial:{[-2]:Fe,[-1]:Fe,32:Fe},insideSpan:{null:[Le,Et]},string:{38:Ue,92:Me},text:{[-5]:dt,[-4]:dt,[-3]:dt,33:ht,38:Ue,42:Le,60:[Oe,at],91:ft,92:[Je,Me],93:ot,95:Le,96:ze}});const Dt=/[\0\t\n\r]/g,_t=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Rt(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return le(n.slice(t?2:1),t?16:10)}return te(n)||e}function Lt(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ot(e.position):"start"in e||"end"in e?Ot(e):"line"in e||"column"in e?It(e):"":""}function It(e){return Nt(e&&e.line)+":"+Nt(e&&e.column)}function Ot(e){return It(e&&e.start)+"-"+It(e&&e.end)}function Nt(e){return e&&"number"==typeof e?e:1}const Pt={}.hasOwnProperty;function Mt(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(k),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(m),blockQuote:r((function(){return{type:"blockquote",children:[]}})),characterEscape:u,characterReference:u,codeFenced:r(p),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:r(p,s),codeText:r((function(){return{type:"inlineCode",value:""}}),s),codeTextData:u,data:u,codeFlowValue:u,definition:r((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:r((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:r(g),hardBreakTrailing:r(g),htmlFlow:r(b,s),htmlFlowData:u,htmlText:r(b,s),htmlTextData:u,image:r((function(){return{type:"image",title:null,url:"",alt:null}})),label:s,link:r(k),listItem:r((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:r(y),paragraph:r((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:r(m),strong:r((function(){return{type:"strong",children:[]}})),thematicBreak:r((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:o(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:o(),autolinkEmail:function(e){h.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){h.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:h,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let i;n?(i=le(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):i=te(t);const r=this.stack.pop();r.value+=i,r.position.end=Ut(e.end)},codeFenced:o((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0})),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:h,codeIndented:o((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:o((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:h,data:h,definition:o(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ce(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(f),hardBreakTrailing:o(f),htmlFlow:o((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:h,htmlText:o((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:h,image:o((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(_t,Rt)}(t),n.identifier=ce(t).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak)return n.children[n.children.length-1].position.end=Ut(e.end),void(this.data.atHardBreak=void 0);!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),h.call(this,e))},link:o((function(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0})),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ce(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o((function(){this.data.setextHeadingSlurpLineEnding=void 0})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};qt(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:a,exit:l,buffer:s,resume:c,data:n},u=[];let h=-1;for(;++h<e.length;)"listOrdered"!==e[h][1].type&&"listUnordered"!==e[h][1].type||("enter"===e[h][0]?u.push(h):h=i(e,u.pop(),h));for(h=-1;++h<e.length;){const n=t[e[h][0]];Pt.call(n,e[h][1].type)&&n[e[h][1].type].call(Object.assign({sliceSerialize:e[h][2].sliceSerialize},o),e[h][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||Ft).call(o,void 0,e[0])}for(r.position={start:Ut(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ut(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h<t.transforms.length;)r=t.transforms[h](r)||r;return r};function i(e,t,n){let i,r,s,a,o=t-1,l=-1,c=!1;for(;++o<=n;){const t=e[o];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!i||a||l||s||(s=o),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(i){let a=o;for(r=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;r&&(e[r][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",r=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}s&&(!r||s<r)&&(i._spread=!0),i.end=Object.assign({},r?e[r][1].start:t[1].end),e.splice(r||o,0,["exit",i,t[2]]),o++,n++}if("listItemPrefix"===t[1].type){const r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};i=r,e.splice(o,0,["enter",r,t[2]]),o++,n++,s=void 0,a=!0}}}return e[t][1]._spread=c,n}function r(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:Ut(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),i=this.tokenStack.pop();if(!i)throw new Error("Cannot close `"+e.type+"` ("+Lt({start:e.start,end:e.end})+"): it’s not open");i[0].type!==e.type&&(t?t.call(this,e,i[0]):(i[1]||Ft).call(this,e,i[0])),n.position.end=Ut(e.end)}function c(){return function(e){return $(e,"boolean"!=typeof Q.includeImageAlt||Q.includeImageAlt,"boolean"!=typeof Q.includeHtml||Q.includeHtml)}(this.stack.pop())}function u(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n={type:"text",value:""},n.position={start:Ut(e.start),end:void 0},t.push(n)),this.stack.push(n)}function h(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ut(e.end)}function f(){this.data.atHardBreak=!0}function d(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function m(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function b(){return{type:"html",value:""}}function k(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!je(e););return e}(function(e){const t={defined:[],lazy:{},constructs:se([Ct,...(e||{}).extensions||[]]),content:n(Ae),document:n(Ce),flow:n(yt),string:n(vt),text:n(wt)};return t;function n(e){return function(n){return At(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",i=!0;return function(r,s,a){const o=[];let l,c,u,h,f;for(r=n+("string"==typeof r?r.toString():new TextDecoder(s||void 0).decode(r)),u=0,n="",i&&(65279===r.charCodeAt(0)&&u++,i=void 0);u<r.length;){if(Dt.lastIndex=u,l=Dt.exec(r),h=l&&void 0!==l.index?l.index:r.length,f=r.charCodeAt(h),!l){n=r.slice(u);break}if(10===f&&u===h&&e)o.push(-3),e=void 0;else switch(e&&(o.push(-5),e=void 0),u<h&&(o.push(r.slice(u,h)),t+=h-u),f){case 0:o.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),o.push(-2);t++<c;)o.push(-1);break;case 10:o.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return a&&(e&&o.push(-5),n&&o.push(n),o.push(null)),o}}()(e,t,!0))))}function Ut(e){return{line:e.line,column:e.column,offset:e.offset}}function qt(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?qt(e,i):Bt(e,i)}}function Bt(e,t){let n;for(n in t)if(Pt.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Ft(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Lt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Lt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Lt({start:t.start,end:t.end})+") is still open")}function Ht(e){const t=this;t.parser=function(n){return Mt(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function zt(e,t){const n=t.referenceType;let i="]";if("collapsed"===n?i+="[]":"full"===n&&(i+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+i}];const r=e.all(t),s=r[0];s&&"text"===s.type?s.value="["+s.value:r.unshift({type:"text",value:"["});const a=r[r.length-1];return a&&"text"===a.type?a.value+=i:r.push({type:"text",value:i}),r}function jt(e){const t=e.spread;return null==t?e.children.length>1:t}const Gt=Yt("end"),Vt=Yt("start");function Yt(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Wt(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),r=0;const s=[];for(;i;)s.push(Kt(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return s.push(Kt(t.slice(r),r>0,!1)),s.join("")}function Kt(e,t,n){let i=0,r=e.length;if(t){let t=e.codePointAt(i);for(;9===t||32===t;)i++,t=e.codePointAt(i)}if(n){let t=e.codePointAt(r-1);for(;9===t||32===t;)r--,t=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}const Xt={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",i={};t.lang&&(i.className=["language-"+t.lang]);let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(r.data={meta:t.meta}),e.patch(t,r),r=e.applyData(t,r),r={type:"element",tagName:"pre",properties:{},children:[r]},e.patch(t,r),r},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),r=Se(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let a,o=e.footnoteCounts.get(i);void 0===o?(o=0,e.footnoteOrder.push(i),a=e.footnoteOrder.length):a=s+1,o+=1,e.footnoteCounts.set(i,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return zt(e,t);const r={src:Se(i.url||""),alt:t.alt};null!=i.title&&(r.title=i.title);const s={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,s),e.applyData(t,s)},image:function(e,t){const n={src:Se(t.url)};null!=t.alt&&(n.alt=t.alt),null!=t.title&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return zt(e,t);const r={href:Se(i.url||"")};null!=i.title&&(r.title=i.title);const s={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)},link:function(e,t){const n={href:Se(t.url)};null!=t.title&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},listItem:function(e,t,n){const i=e.all(t),r=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=jt(n[i])}return t}(n):jt(t),s={},a=[];if("boolean"==typeof t.checked){const e=i[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},i.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let o=-1;for(;++o<i.length;){const e=i[o];(r||0!==o||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||r?a.push(e):a.push(...e.children)}const l=i[i.length-1];l&&(r||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:s,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},i=e.all(t);let r=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++r<i.length;){const e=i[r];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),i=n.shift(),r=[];if(i){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],n),r.push(n)}if(n.length>0){const i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Vt(t.children[1]),a=Gt(t.children[t.children.length-1]);s&&a&&(i.position={start:s,end:a}),r.push(i)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const i=n?n.children:void 0,r=0===(i?i.indexOf(t):1)?"th":"td",s=n&&"table"===n.type?n.align:void 0,a=s?s.length:t.children.length;let o=-1;const l=[];for(;++o<a;){const n=t.children[o],i={},a=s?s[o]:void 0;a&&(i.align=a);let c={type:"element",tagName:r,properties:i,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Wt(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Qt,yaml:Qt,definition:Qt,footnoteDefinition:Qt};function Qt(){}const $t="object"==typeof self?self:globalThis,Zt=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),i=r=>{if(e.has(r))return e.get(r);const[s,a]=t[r];switch(s){case 0:case-1:return n(a,r);case 1:{const e=n([],r);for(const t of a)e.push(i(t));return e}case 2:{const e=n({},r);for(const[t,n]of a)e[i(t)]=i(n);return e}case 3:return n(new Date(a),r);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),r)}case 5:{const e=n(new Map,r);for(const[t,n]of a)e.set(i(t),i(n));return e}case 6:{const e=n(new Set,r);for(const t of a)e.add(i(t));return e}case 7:{const{name:e,message:t}=a;return n(new $t[e](t),r)}case 8:return n(BigInt(a),r);case"BigInt":return n(Object(BigInt(a)),r)}return n(new $t[s](a),r)};return i})(new Map,e)(0),Jt="",{toString:en}={},{keys:tn}=Object,nn=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=en.call(e).slice(8,-1);switch(n){case"Array":return[1,Jt];case"Object":return[2,Jt];case"Date":return[3,Jt];case"RegExp":return[4,Jt];case"Map":return[5,Jt];case"Set":return[6,Jt]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},rn=([e,t])=>0===e&&("function"===t||"symbol"===t),sn=(e,{json:t,lossy:n}={})=>{const i=[];return((e,t,n,i)=>{const r=(e,t)=>{const r=i.push(e)-1;return n.set(t,r),r},s=i=>{if(n.has(i))return n.get(i);let[a,o]=nn(i);switch(a){case 0:{let t=i;switch(o){case"bigint":a=8,t=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+o);t=null;break;case"undefined":return r([-1],i)}return r([a,t],i)}case 1:{if(o)return r([o,[...i]],i);const e=[],t=r([a,e],i);for(const t of i)e.push(s(t));return t}case 2:{if(o)switch(o){case"BigInt":return r([o,i.toString()],i);case"Boolean":case"Number":case"String":return r([o,i.valueOf()],i)}if(t&&"toJSON"in i)return s(i.toJSON());const n=[],l=r([a,n],i);for(const t of tn(i))!e&&rn(nn(i[t]))||n.push([s(t),s(i[t])]);return l}case 3:return r([a,i.toISOString()],i);case 4:{const{source:e,flags:t}=i;return r([a,{source:e,flags:t}],i)}case 5:{const t=[],n=r([a,t],i);for(const[n,r]of i)(e||!rn(nn(n))&&!rn(nn(r)))&&t.push([s(n),s(r)]);return n}case 6:{const t=[],n=r([a,t],i);for(const n of i)!e&&rn(nn(n))||t.push(s(n));return n}}const{message:l}=i;return r([a,{name:o,message:l}],i)};return s})(!(t||n),!!t,new Map,i)(e),i};var an="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Zt(sn(e,t)):structuredClone(e):(e,t)=>Zt(sn(e,t));function on(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ln(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const cn=function(e){if(null==e)return hn;if("function"==typeof e)return un(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=cn(e[n]);return un((function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}))}(e):function(e){const t=e;return un((function(n){const i=n;let r;for(r in e)if(i[r]!==t[r])return!1;return!0}))}(e);if("string"==typeof e)return t=e,un((function(e){return e&&e.type===t}));var t;throw new Error("Expected function, string, or object as test")};function un(e){return function(t,n,i){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,i||void 0))}}function hn(){return!0}const fn=[],dn=!1;function pn(e,t,n,i){let r;"function"==typeof t&&"function"!=typeof n?(i=n,n=t):r=t;const s=cn(r),a=i?-1:1;!function e(r,o,l){const c=r&&"object"==typeof r?r:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,h,f=fn;if((!t||s(r,o,l[l.length-1]||void 0))&&(f=function(e){return Array.isArray(e)?e:"number"==typeof e?[true,e]:null==e?fn:[e]}(n(r,l)),f[0]===dn))return f;if("children"in r&&r.children){const t=r;if(t.children&&"skip"!==f[0])for(u=(i?t.children.length:-1)+a,h=l.concat(t);u>-1&&u<t.children.length;){if(c=e(t.children[u],u,h)(),c[0]===dn)return c;u="number"==typeof c[1]?c[1]:u+a}}return f}}(e,void 0,[])()}function mn(e,t,n,i){let r,s,a;"function"==typeof t&&"function"!=typeof n?(s=void 0,a=t,r=n):(s=t,a=n,r=i),pn(e,s,(function(e,t){const n=t[t.length-1],i=n?n.children.indexOf(e):void 0;return a(e,i,n)}),r)}const gn={}.hasOwnProperty,bn={};function kn(e,t){e.position&&(t.position=function(e){const t=Vt(e),n=Gt(e);if(t&&n)return{start:t,end:n}}(e))}function yn(e,t){let n=t;if(e&&e.data){const t=e.data.hName,i=e.data.hChildren,r=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&r&&Object.assign(n.properties,an(r)),"children"in n&&n.children&&null!=i&&(n.children=i)}return n}function En(e,t){const n=t.data||{},i=!("value"in t)||gn.call(n,"hProperties")||gn.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,i),e.applyData(t,i)}function vn(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:"\n"});++i<e.length;)i&&n.push({type:"text",value:"\n"}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function wn(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Tn(e,t){const n=function(e,t){const n=t||bn,i=new Map,r=new Map,s=new Map,a={...Xt,...n.handlers},o={all:function(e){const t=[];if("children"in e){const n=e.children;let i=-1;for(;++i<n.length;){const r=o.one(n[i],e);if(r){if(i&&"break"===n[i-1].type&&(Array.isArray(r)||"text"!==r.type||(r.value=wn(r.value)),!Array.isArray(r)&&"element"===r.type)){const e=r.children[0];e&&"text"===e.type&&(e.value=wn(e.value))}Array.isArray(r)?t.push(...r):t.push(r)}}}return t},applyData:yn,definitionById:i,footnoteById:r,footnoteCounts:s,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,i=o.handlers[n];if(gn.call(o.handlers,n)&&i)return i(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,i=an(n);return i.children=o.all(e),i}return an(e)}return(o.options.unknownHandler||En)(o,e,t)},options:n,patch:kn,wrap:vn};return mn(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?i:r,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),o}(e,t),i=n.one(e,void 0),r=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||on,i=e.options.footnoteBackLabel||ln,r=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const r=e.footnoteById.get(e.footnoteOrder[l]);if(!r)continue;const s=e.all(r),a=String(r.identifier).toUpperCase(),c=Se(a.toLowerCase());let u=0;const h=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++u<=f;){h.length>0&&h.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof i?i:i(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const d=s[s.length-1];if(d&&"element"===d.type&&"p"===d.tagName){const e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...h)}else s.push(...h);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(s,!0)};e.patch(r,p),o.push(p)}if(0!==o.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...an(a),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:"\n"}]}}(n),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&s.children.push({type:"text",value:"\n"},r),s}function Sn(e,t){return e&&"run"in e?async function(n,i){const r=Tn(n,{file:i,...t});await e.run(r,i)}:function(n,i){return Tn(n,{file:i,...e||t})}}function xn(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;-1!==r;)i++,r=n.indexOf(t,r+t.length);return i}function An(e){return"function"==typeof e?e:function(){return e}}const Cn="phrasing",Dn=["autolink","link","image","label"];function _n(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Rn(e){this.config.enter.autolinkProtocol.call(this,e)}function Ln(e){this.config.exit.autolinkProtocol.call(this,e)}function In(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}function On(e){this.config.exit.autolinkEmail.call(this,e)}function Nn(e){this.exit(e)}function Pn(e){!function(e,t,n){const i=cn((n||{}).ignore||[]),r=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const e=n[i];t.push([(r=e[0],"string"==typeof r?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(r),"g"):r),An(e[1])])}var r;return t}(t);let s=-1;for(;++s<r.length;)pn(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],r=n?n.children:void 0;if(i(e,r?r.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],i=r[s][0],a=r[s][1];let o=0;const l=n.children.indexOf(e);let c=!1,u=[];i.lastIndex=0;let h=i.exec(e.value);for(;h;){const n=h.index,r={index:h.index,input:h.input,stack:[...t,e]};let s=a(...h,r);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1===s?i.lastIndex=n+1:(o!==n&&u.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(s)?u.push(...s):s&&u.push(s),o=n+h[0].length,c=!0),!i.global)break;h=i.exec(e.value)}return c?(o<e.value.length&&u.push({type:"text",value:e.value.slice(o)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Mn],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Un]],{ignore:["link","linkReference"]})}function Mn(e,t,n,i,r){let s="";if(!qn(r))return!1;if(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!function(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=xn(e,"(");let s=xn(e,")");for(;-1!==i&&r>s;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[e,n]}(n+i);if(!a[0])return!1;const o={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[o,{type:"text",value:a[1]}]:o}function Un(e,t,n,i){return!(!qn(i,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function qn(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||we(n)||ve(n))&&(!t||47!==n)}function Bn(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Fn(){this.buffer()}function Hn(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ce(this.sliceSerialize(e)).toLowerCase()}function zn(e){this.exit(e)}function jn(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Gn(){this.buffer()}function Vn(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ce(this.sliceSerialize(e)).toLowerCase()}function Yn(e){this.exit(e)}function Wn(e,t,n,i){const r=n.createTracker(i);let s=r.move("[^");const a=n.enter("footnoteReference"),o=n.enter("reference");return s+=r.move(n.safe(n.associationId(e),{...r.current(),before:s,after:"]"})),o(),a(),s+=r.move("]"),s}function Kn(e,t,n,i){const r=n.createTracker(i);let s=r.move("[^");const a=n.enter("footnoteDefinition"),o=n.enter("label");return s+=r.move(n.safe(n.associationId(e),{...r.current(),before:s,after:"]"})),o(),s+=r.move("]:"+(e.children&&e.children.length>0?" ":"")),r.shift(4),s+=r.move(n.indentLines(n.containerFlow(e,r.current()),Xn)),a(),s}function Xn(e,t,n){return 0===t?e:(n?"":" ")+e}Wn.peek=function(){return"["};const Qn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function $n(e){this.enter({type:"delete",children:[]},e)}function Zn(e){this.exit(e)}function Jn(e,t,n,i){const r=n.createTracker(i),s=n.enter("strikethrough");let a=r.move("~~");return a+=n.containerPhrasing(e,{...r.current(),before:a,after:"~"}),a+=r.move("~~"),s(),a}function ei(e){return e.length}function ti(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function ni(e,t,n){return">"+(n?"":" ")+e}function ii(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function ri(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if("\n"===n.unsafe[r].character&&(ii(s=n.stack,(a=n.unsafe[r]).inConstruct,!0)&&!ii(s,a.notInConstruct,!1)))return/[ \t]/.test(i.before)?"":" ";var s,a;return"\\\n"}function si(e,t){const n=String(e);let i=n.indexOf(t),r=i,s=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==i;)i===r?++s>a&&(a=s):s=1,r=i+t.length,i=n.indexOf(t,r);return a}function ai(e,t,n){return(n?"":" ")+e}function oi(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function li(e,t,n,i){const r=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),s=n.enter("emphasis"),a=n.createTracker(i);let o=a.move(r);return o+=a.move(n.containerPhrasing(e,{before:o,after:r,...a.current()})),o+=a.move(r),s(),o}Jn.peek=function(){return"~"},li.peek=function(e,t,n){return n.options.emphasis||"*"};const ci={};function ui(e){return hi(e,"boolean"!=typeof ci.includeImageAlt||ci.includeImageAlt,"boolean"!=typeof ci.includeHtml||ci.includeHtml)}function hi(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return fi(e.children,t,n)}return Array.isArray(e)?fi(e,t,n):""}function fi(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=hi(e[r],t,n);return i.join("")}function di(e){return e.value||""}function pi(e,t,n,i){const r=oi(n),s='"'===r?"Quote":"Apostrophe",a=n.enter("image");let o=n.enter("label");const l=n.createTracker(i);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${s}`),c+=l.move(" "+r),c+=l.move(n.safe(e.title,{before:c,after:r,...l.current()})),c+=l.move(r),o()),c+=l.move(")"),a(),c}function mi(e,t,n,i){const r=e.referenceType,s=n.enter("imageReference");let a=n.enter("label");const o=n.createTracker(i);let l=o.move("![");const c=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=u,s(),"full"!==r&&c&&c===h?"shortcut"===r?l=l.slice(0,-1):l+=o.move("]"):l+=o.move(h+"]"),l}function gi(e,t,n){let i=e.value||"",r="`",s=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const e=n.unsafe[s],t=n.compilePattern(e);let r;if(e.atBreak)for(;r=t.exec(i);){let e=r.index;10===i.charCodeAt(e)&&13===i.charCodeAt(e-1)&&e--,i=i.slice(0,e)+" "+i.slice(r.index+1)}}return r+i+r}function bi(e,t){const n=ui(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function ki(e,t,n,i){const r=oi(n),s='"'===r?"Quote":"Apostrophe",a=n.createTracker(i);let o,l;if(bi(e,n)){const t=n.stack;n.stack=[],o=n.enter("autolink");let i=a.move("<");return i+=a.move(n.containerPhrasing(e,{before:i,after:">",...a.current()})),i+=a.move(">"),o(),n.stack=t,i}o=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${s}`),c+=a.move(" "+r),c+=a.move(n.safe(e.title,{before:c,after:r,...a.current()})),c+=a.move(r),l()),c+=a.move(")"),o(),c}function yi(e,t,n,i){const r=e.referenceType,s=n.enter("linkReference");let a=n.enter("label");const o=n.createTracker(i);let l=o.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=u,s(),"full"!==r&&c&&c===h?"shortcut"===r?l=l.slice(0,-1):l+=o.move("]"):l+=o.move(h+"]"),l}function Ei(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function vi(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}di.peek=function(){return"<"},pi.peek=function(){return"!"},mi.peek=function(){return"!"},gi.peek=function(){return"`"},ki.peek=function(e,t,n){return bi(e,n)?"<":"["},yi.peek=function(){return"["};const wi=cn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Ti(e,t,n,i){const r=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),s=n.enter("strong"),a=n.createTracker(i);let o=a.move(r+r);return o+=a.move(n.containerPhrasing(e,{before:o,after:r,...a.current()})),o+=a.move(r+r),s(),o}Ti.peek=function(e,t,n){return n.options.strong||"*"};const Si={blockquote:function(e,t,n,i){const r=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const a=n.indentLines(n.containerFlow(e,s.current()),ni);return r(),a},break:ri,code:function(e,t,n,i){const r=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),s=e.value||"",a="`"===r?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(s,ai);return e(),t}const o=n.createTracker(i),l=r.repeat(Math.max(si(s,r)+1,3)),c=n.enter("codeFenced");let u=o.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=o.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=o.move(" "),u+=o.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...o.current()})),t()}return u+=o.move("\n"),s&&(u+=o.move(s+"\n")),u+=o.move(l),c(),u},definition:function(e,t,n,i){const r=oi(n),s='"'===r?"Quote":"Apostrophe",a=n.enter("definition");let o=n.enter("label");const l=n.createTracker(i);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),o(),e.title&&(o=n.enter(`title${s}`),c+=l.move(" "+r),c+=l.move(n.safe(e.title,{before:c,after:r,...l.current()})),c+=l.move(r),o()),a(),c},emphasis:li,hardBreak:ri,heading:function(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(i);if(function(e,t){let n=!1;return mn(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,dn})),Boolean((!e.depth||e.depth<3)&&ui(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),i=n.enter("phrasing"),a=n.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});return i(),t(),a+"\n"+(1===r?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(r),o=n.enter("headingAtx"),l=n.enter("phrasing");s.move(a+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});return/^[\t ]/.test(c)&&(c="&#x"+c.charCodeAt(0).toString(16).toUpperCase()+";"+c.slice(1)),c=c?a+" "+c:a,n.options.closeAtx&&(c+=" "+a),l(),o(),c},html:di,image:pi,imageReference:mi,inlineCode:gi,link:ki,linkReference:yi,list:function(e,t,n,i){const r=n.enter("list"),s=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Ei(n);const o=e.ordered?"."===a?")":".":function(e){const t=Ei(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),vi(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=o),n.bulletCurrent=a;const c=n.containerFlow(e,i);return n.bulletLastUsed=a,n.bulletCurrent=s,r(),c},listItem:function(e,t,n,i){const r=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let s=n.bulletCurrent||Ei(n);t&&"list"===t.type&&t.ordered&&(s=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+s);let a=s.length+1;("tab"===r||"mixed"===r&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const o=n.createTracker(i);o.move(s+" ".repeat(a-s.length)),o.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),(function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?s:s+" ".repeat(a-s.length))+e}));return l(),c},paragraph:function(e,t,n,i){const r=n.enter("paragraph"),s=n.enter("phrasing"),a=n.containerPhrasing(e,i);return s(),r(),a},root:function(e,t,n,i){return(e.children.some((function(e){return wi(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,i)},strong:Ti,text:function(e,t,n,i){return n.safe(e.value,i)},thematicBreak:function(e,t,n){const i=(vi(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?i.slice(0,-1):i}};function xi(e){this.enter({type:"table",align:e._align.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function Ai(e){this.exit(e),this.data.inTable=void 0}function Ci(e){this.enter({type:"tableRow",children:[]},e)}function Di(e){this.exit(e)}function _i(e){this.enter({type:"tableCell",children:[]},e)}function Ri(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Li)),this.stack[this.stack.length-1].value=t,this.exit(e)}function Li(e,t){return"|"===t?t:e}function Ii(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let i=Si.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(i=i.replace(/\|/g,"\\$&")),i},table:function(e,t,n,i){return o(function(e,t,n){const i=e.children;let r=-1;const s=[],a=t.enter("table");for(;++r<i.length;)s[r]=l(i[r],t,n);return a(),s}(e,n,i),e.align)},tableCell:a,tableRow:function(e,t,n,i){const r=o([l(e,n,i)]);return r.slice(0,r.indexOf("\n"))}}};function a(e,t,n,i){const r=n.enter("tableCell"),a=n.enter("phrasing"),o=n.containerPhrasing(e,{...i,before:s,after:s});return a(),r(),o}function o(e,t){return function(e,t={}){const n=(t.align||[]).concat(),i=t.stringLength||ei,r=[],s=[],a=[],o=[];let l=0,c=-1;for(;++c<e.length;){const n=[],r=[];let h=-1;for(e[c].length>l&&(l=e[c].length);++h<e[c].length;){const s=null==(u=e[c][h])?"":String(u);if(!1!==t.alignDelimiters){const e=i(s);r[h]=e,(void 0===o[h]||e>o[h])&&(o[h]=e)}n.push(s)}s[c]=n,a[c]=r}var u;let h=-1;if("object"==typeof n&&"length"in n)for(;++h<l;)r[h]=ti(n[h]);else{const e=ti(n);for(;++h<l;)r[h]=e}h=-1;const f=[],d=[];for(;++h<l;){const e=r[h];let n="",i="";99===e?(n=":",i=":"):108===e?n=":":114===e&&(i=":");let s=!1===t.alignDelimiters?1:Math.max(1,o[h]-n.length-i.length);const a=n+"-".repeat(s)+i;!1!==t.alignDelimiters&&(s=n.length+s+i.length,s>o[h]&&(o[h]=s),d[h]=s),f[h]=a}s.splice(1,0,f),a.splice(1,0,d),c=-1;const p=[];for(;++c<s.length;){const e=s[c],n=a[c];h=-1;const i=[];for(;++h<l;){const s=e[h]||"";let a="",c="";if(!1!==t.alignDelimiters){const e=o[h]-(n[h]||0),t=r[h];114===t?a=" ".repeat(e):99===t?e%2?(a=" ".repeat(e/2+.5),c=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),c=a):c=" ".repeat(e)}!1===t.delimiterStart||h||i.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===s||!1===t.delimiterStart&&!h||i.push(" "),!1!==t.alignDelimiters&&i.push(a),i.push(s),!1!==t.alignDelimiters&&i.push(c),!1!==t.padding&&i.push(" "),!1===t.delimiterEnd&&h===l-1||i.push("|")}p.push(!1===t.delimiterEnd?i.join("").replace(/ +$/,""):i.join(""))}return p.join("\n")}(e,{align:t,alignDelimiters:i,padding:n,stringLength:r})}function l(e,t,n){const i=e.children;let r=-1;const s=[],o=t.enter("tableRow");for(;++r<i.length;)s[r]=a(i[r],0,t,n);return o(),s}}function Oi(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ni(e,t,n,i){const r=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),s=n.enter("emphasis"),a=n.createTracker(i);let o=a.move(r);return o+=a.move(n.containerPhrasing(e,{before:o,after:r,...a.current()})),o+=a.move(r),s(),o}Ni.peek=function(e,t,n){return n.options.emphasis||"*"};const Pi={};function Mi(e){return Ui(e,"boolean"!=typeof Pi.includeImageAlt||Pi.includeImageAlt,"boolean"!=typeof Pi.includeHtml||Pi.includeHtml)}function Ui(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return qi(e.children,t,n)}return Array.isArray(e)?qi(e,t,n):""}function qi(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=Ui(e[r],t,n);return i.join("")}function Bi(e){return e.value||""}function Fi(e,t,n,i){const r=Oi(n),s='"'===r?"Quote":"Apostrophe",a=n.enter("image");let o=n.enter("label");const l=n.createTracker(i);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${s}`),c+=l.move(" "+r),c+=l.move(n.safe(e.title,{before:c,after:r,...l.current()})),c+=l.move(r),o()),c+=l.move(")"),a(),c}function Hi(e,t,n,i){const r=e.referenceType,s=n.enter("imageReference");let a=n.enter("label");const o=n.createTracker(i);let l=o.move("![");const c=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=u,s(),"full"!==r&&c&&c===h?"shortcut"===r?l=l.slice(0,-1):l+=o.move("]"):l+=o.move(h+"]"),l}function zi(e,t,n){let i=e.value||"",r="`",s=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const e=n.unsafe[s],t=n.compilePattern(e);let r;if(e.atBreak)for(;r=t.exec(i);){let e=r.index;10===i.charCodeAt(e)&&13===i.charCodeAt(e-1)&&e--,i=i.slice(0,e)+" "+i.slice(r.index+1)}}return r+i+r}function ji(e,t){const n=Mi(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Gi(e,t,n,i){const r=Oi(n),s='"'===r?"Quote":"Apostrophe",a=n.createTracker(i);let o,l;if(ji(e,n)){const t=n.stack;n.stack=[],o=n.enter("autolink");let i=a.move("<");return i+=a.move(n.containerPhrasing(e,{before:i,after:">",...a.current()})),i+=a.move(">"),o(),n.stack=t,i}o=n.enter("link"),l=n.enter("label");let c=a.move("[");return c+=a.move(n.containerPhrasing(e,{before:c,after:"](",...a.current()})),c+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(l=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${s}`),c+=a.move(" "+r),c+=a.move(n.safe(e.title,{before:c,after:r,...a.current()})),c+=a.move(r),l()),c+=a.move(")"),o(),c}function Vi(e,t,n,i){const r=e.referenceType,s=n.enter("linkReference");let a=n.enter("label");const o=n.createTracker(i);let l=o.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return a(),n.stack=u,s(),"full"!==r&&c&&c===h?"shortcut"===r?l=l.slice(0,-1):l+=o.move("]"):l+=o.move(h+"]"),l}function Yi(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Wi(e,t,n,i){const r=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),s=n.enter("strong"),a=n.createTracker(i);let o=a.move(r+r);return o+=a.move(n.containerPhrasing(e,{before:o,after:r,...a.current()})),o+=a.move(r+r),s(),o}Bi.peek=function(){return"<"},Fi.peek=function(){return"!"},Hi.peek=function(){return"!"},zi.peek=function(){return"`"},Gi.peek=function(e,t,n){return ji(e,n)?"<":"["},Vi.peek=function(){return"["},Wi.peek=function(e,t,n){return n.options.strong||"*"};const Ki=function(e,t,n,i){const r=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let s=n.bulletCurrent||Yi(n);t&&"list"===t.type&&t.ordered&&(s=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+s);let a=s.length+1;("tab"===r||"mixed"===r&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const o=n.createTracker(i);o.move(s+" ".repeat(a-s.length)),o.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,o.current()),(function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?s:s+" ".repeat(a-s.length))+e}));return l(),c};function Xi(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Qi(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const i=t.children;let r,s=-1;for(;++s<i.length;){const e=i[s];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function $i(e,t,n,i){const r=e.children[0],s="boolean"==typeof e.checked&&r&&"paragraph"===r.type,a="["+(e.checked?"x":" ")+"] ",o=n.createTracker(i);s&&o.move(a);let l=Ki(e,t,n,{...i,...o.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}const Zi={tokenize:function(e,t,n){let i=0;return function t(s){return(87===s||119===s)&&i<3?(i++,e.consume(s),t):46===s&&3===i?(e.consume(s),r):n(s)};function r(e){return null===e?n(e):t(e)}},partial:!0},Ji={tokenize:function(e,t,n){let i,r,s;return a;function a(t){return 46===t||95===t?e.check(tr,l,o)(t):null===t||ye(t)||we(t)||45!==t&&ve(t)?l(t):(s=!0,e.consume(t),a)}function o(t){return 95===t?i=!0:(r=i,i=void 0),e.consume(t),a}function l(e){return r||i||!s?n(e):t(e)}},partial:!0},er={tokenize:function(e,t){let n=0,i=0;return r;function r(a){return 40===a?(n++,e.consume(a),r):41===a&&i<n?s(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(tr,t,s)(a):null===a||ye(a)||we(a)?t(a):(e.consume(a),r)}function s(t){return 41===t&&i++,e.consume(t),r}},partial:!0},tr={tokenize:function(e,t,n){return i;function i(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),i):38===a?(e.consume(a),s):93===a?(e.consume(a),r):60===a||null===a||ye(a)||we(a)?t(a):n(a)}function r(e){return null===e||40===e||91===e||ye(e)||we(e)?t(e):i(e)}function s(e){return he(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),i):he(t)?(e.consume(t),a):n(t)}},partial:!0},nr={tokenize:function(e,t,n){return function(t){return e.consume(t),i};function i(e){return fe(e)?n(e):t(e)}},partial:!0},ir={tokenize:function(e,t,n){const i=this;return function(t){return 87!==t&&119!==t||!lr.call(i,i.previous)||fr(i.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Zi,e.attempt(Ji,e.attempt(er,r),n),n)(t))};function r(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:lr},rr={tokenize:function(e,t,n){const i=this;let r="",s=!1;return function(t){return 72!==t&&104!==t||!cr.call(i,i.previous)||fr(i.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(t),e.consume(t),a)};function a(t){if(he(t)&&r.length<5)return r+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=r.toLowerCase();if("http"===n||"https"===n)return e.consume(t),o}return n(t)}function o(t){return 47===t?(e.consume(t),s?l:(s=!0,o)):n(t)}function l(t){return null===t||pe(t)||ye(t)||we(t)||ve(t)?n(t):e.attempt(Ji,e.attempt(er,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:cr},sr={tokenize:function(e,t,n){const i=this;let r,s;return function(t){return hr(t)&&ur.call(i,i.previous)&&!fr(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)):n(t)};function a(t){return hr(t)?(e.consume(t),a):64===t?(e.consume(t),o):n(t)}function o(t){return 46===t?e.check(nr,c,l)(t):45===t||95===t||fe(t)?(s=!0,e.consume(t),o):c(t)}function l(t){return e.consume(t),r=!0,o}function c(a){return s&&r&&he(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:ur},ar={};let or=48;for(;or<123;)ar[or]=sr,or++,58===or?or=65:91===or&&(or=97);function lr(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||ye(e)}function cr(e){return!he(e)}function ur(e){return!(47===e||hr(e))}function hr(e){return 43===e||45===e||46===e||95===e||fe(e)}function fr(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if(("labelLink"===i.type||"labelImage"===i.type)&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}ar[43]=sr,ar[45]=sr,ar[46]=sr,ar[95]=sr,ar[72]=[sr,rr],ar[104]=[sr,rr],ar[87]=[sr,ir],ar[119]=[sr,ir];const dr={tokenize:function(e,t,n){const i=this;return xe(e,(function(e){const r=i.events[i.events.length-1];return r&&"gfmFootnoteDefinitionIndent"===r[1].type&&4===r[2].sliceSerialize(r[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function pr(e,t,n){const i=this;let r=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a;for(;r--;){const e=i.events[r][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(r){if(!a||!a._balanced)return n(r);const o=ce(i.sliceSerialize({start:a.end,end:i.now()}));return 94===o.codePointAt(0)&&s.includes(o.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(r),e.exit("gfmFootnoteCallLabelMarker"),t(r)):n(r)}}function mr(e,t){let n=e.length;for(;n--&&("labelImage"!==e[n][1].type||"enter"!==e[n][0]););e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)};return e.splice(n,e.length-n+1,e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]),e}function gr(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),o};function o(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(o){if(a>999||93===o&&!s||null===o||91===o||ye(o))return n(o);if(93===o){e.exit("chunkString");const s=e.exit("gfmFootnoteCallString");return r.includes(ce(i.sliceSerialize(s)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(o)}return ye(o)||(s=!0),a++,e.consume(o),92===o?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function br(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,a,o=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(o>999||93===t&&!a||null===t||91===t||ye(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return s=ce(i.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return ye(t)||(a=!0),o++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),r.includes(s)||r.push(s),xe(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function kr(e,t,n){return e.check(Ne,t,e.attempt(dr,t,n))}function yr(e){e.exit("gfmFootnoteDefinition")}function Er(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,i){const r=this.previous,s=this.events;let a=0;return function(t){return 126===r&&"characterEscape"!==s[s.length-1][1].type?i(t):(e.enter("strikethroughSequenceTemporary"),o(t))};function o(s){const l=_e(r);if(126===s)return a>1?i(s):(e.consume(s),a++,o);if(a<2&&!t)return i(s);const c=e.exit("strikethroughSequenceTemporary"),u=_e(s);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(s)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let i=n;for(;i--;)if("exit"===e[i][0]&&"strikethroughSequenceTemporary"===e[i][1].type&&e[i][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[i][1].end.offset-e[i][1].start.offset){e[n][1].type="strikethroughSequence",e[i][1].type="strikethroughSequence";const r={type:"strikethrough",start:Object.assign({},e[i][1].start),end:Object.assign({},e[n][1].end)},s={type:"strikethroughText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",r,t],["enter",e[i][1],t],["exit",e[i][1],t],["enter",s,t]],o=t.parser.constructs.insideSpan.null;o&&ne(a,a.length,0,Re(o,e.slice(i+1,n),t)),ne(a,a.length,0,[["exit",s,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",r,t]]),ne(e,i-1,n-i+3,a),n=i+a.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class vr{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,i){let r=0;if(0!==n||0!==i.length){for(;r<e.map.length;){if(e.map[r][0]===t)return e.map[r][1]+=n,void e.map[r][2].push(...i);r+=1}e.map.push([t,n,i])}}(this,e,t,n)}consume(e){if(this.map.sort((function(e,t){return e[0]-t[0]})),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let i=n.pop();for(;i;)e.push(...i),i=n.pop();this.map.length=0}}function wr(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if("enter"===r[0])"tableContent"===r[1].type&&i.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===r[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=i.length-1;i[e]="left"===i[e]?"center":"right"}}else if("tableDelimiterRow"===r[1].type)break}else"enter"===r[0]&&"tableDelimiterRow"===r[1].type&&(n=!0);t+=1}return i}function Tr(e,t,n){const i=this;let r,s=0,a=0;return function(e){let t=i.events.length-1;for(;t>-1;){const e=i.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const r=t>-1?i.events[t][1].type:null,s="tableHead"===r||"tableRow"===r?E:o;return s===E&&i.parser.lazy[i.now().line]?n(e):s(e)};function o(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(r=!0,a+=1),l(e)}(t)}function l(t){return null===t?n(t):ke(t)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):Ee(t)?xe(e,l,"whitespace")(t):(a+=1,r&&(r=!1,s+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||ye(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(t):(e.enter("tableDelimiterRow"),r=!1,Ee(t)?xe(e,f,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?p(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):y(t)}function d(t){return Ee(t)?xe(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(a+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(a+=1,m(t)):null===t||ke(t)?k(t):y(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):y(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(t))}function b(t){return Ee(t)?xe(e,k,"whitespace")(t):k(t)}function k(n){return 124===n?f(n):(null===n||ke(n))&&r&&s===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function E(t){return e.enter("tableRow"),v(t)}function v(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),v):null===n||ke(n)?(e.exit("tableRow"),t(n)):Ee(n)?xe(e,v,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||ye(t)?(e.exit("data"),v(t)):(e.consume(t),92===t?T:w)}function T(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function Sr(e,t){let n,i,r,s=-1,a=!0,o=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0;const f=new vr;for(;++s<e.length;){const d=e[s],p=d[1];"enter"===d[0]?"tableHead"===p.type?(u=!1,0!==h&&(Ar(f,t,h,n,i),i=void 0,h=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(s,0,[["enter",n,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(a=!0,r=void 0,l=[0,0,0,0],c=[0,s+1,0,0],u&&(u=!1,i={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(s,0,[["enter",i,t]])),o="tableDelimiterRow"===p.type?2:i?3:1):!o||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type?"tableCellDivider"===p.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],r=xr(f,t,l,o,void 0,r)),l=c,c=[l[1],s,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],r=xr(f,t,l,o,void 0,r),l=[0,0,0,0]),c[2]=s)):"tableHead"===p.type?(u=!0,h=s):"tableRow"===p.type||"tableDelimiterRow"===p.type?(h=s,0!==l[1]?(c[0]=c[1],r=xr(f,t,l,o,s,r)):0!==c[1]&&(r=xr(f,t,c,o,s,r)),o=0):!o||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(c[3]=s)}for(0!==h&&Ar(f,t,h,n,i),f.consume(t.events),s=-1;++s<t.events.length;){const e=t.events[s];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=wr(t.events,s))}return e}function xr(e,t,n,i,r,s){const a=1===i?"tableHeader":2===i?"tableDelimiter":"tableData";0!==n[0]&&(s.end=Object.assign({},Cr(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const o=Cr(t.events,n[1]);if(s={type:a,start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",s,t]]),0!==n[2]){const r=Cr(t.events,n[2]),s=Cr(t.events,n[3]),a={type:"tableContent",start:Object.assign({},r),end:Object.assign({},s)};if(e.add(n[2],0,[["enter",a,t]]),2!==i){const i=t.events[n[2]];i[1].end=Object.assign({},t.events[n[3]][1].end),i[1].type="chunkText",i[1].contentType="text",n[3]>n[2]+1&&e.add(n[2]+1,n[3]-n[2]-1,[])}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==r&&(s.end=Object.assign({},Cr(t.events,r)),e.add(r,0,[["exit",s,t]]),s=void 0),s}function Ar(e,t,n,i,r){const s=[],a=Cr(t.events,n);r&&(r.end=Object.assign({},a),s.push(["exit",r,t])),i.end=Object.assign({},a),s.push(["exit",i,t]),e.add(n+1,0,s)}function Cr(e,t){const n=e[t];return n[1]["enter"===n[0]?"start":"end"]}const Dr={tokenize:function(e,t,n){const i=this;return function(t){return null===i.previous&&i._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),r):n(t)};function r(t){return ye(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),s):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),s):n(t)}function s(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(i){return ke(i)?t(i):Ee(i)?e.check({tokenize:_r},t,n)(i):n(i)}}};function _r(e,t,n){return xe(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const Rr={};function Lr(e){const t=e||Rr,n=this.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),r=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(function(e){return se([{text:ar},{document:{91:{tokenize:br,continuation:{tokenize:kr},exit:yr}},text:{91:{tokenize:gr},93:{add:"after",tokenize:pr,resolveTo:mr}}},Er(e),{flow:{null:{tokenize:Tr,resolveAll:Sr}}},{text:{91:Dr}}])}(t)),r.push([{transforms:[Pn],enter:{literalAutolink:_n,literalAutolinkEmail:Rn,literalAutolinkHttp:Rn,literalAutolinkWww:Rn},exit:{literalAutolink:Nn,literalAutolinkEmail:On,literalAutolinkHttp:Ln,literalAutolinkWww:In}},{enter:{gfmFootnoteDefinition:Bn,gfmFootnoteDefinitionLabelString:Fn,gfmFootnoteCall:jn,gfmFootnoteCallString:Gn},exit:{gfmFootnoteDefinition:zn,gfmFootnoteDefinitionLabelString:Hn,gfmFootnoteCall:Yn,gfmFootnoteCallString:Vn}},{canContainEols:["delete"],enter:{strikethrough:$n},exit:{strikethrough:Zn}},{enter:{table:xi,tableData:_i,tableHeader:_i,tableRow:Ci},exit:{codeText:Ri,table:Ai,tableData:Di,tableHeader:Di,tableRow:Di}},{exit:{taskListCheckValueChecked:Xi,taskListCheckValueUnchecked:Xi,paragraph:Qi}}]),s.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Cn,notInConstruct:Dn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Cn,notInConstruct:Dn},{character:":",before:"[ps]",after:"\\/",inConstruct:Cn,notInConstruct:Dn}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Kn,footnoteReference:Wn}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Qn}],handlers:{delete:Jn}},Ii(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:$i}}]}}(t))}let Ir=class{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}};function Or(e,t){const n={},i={};let r=-1;for(;++r<e.length;)Object.assign(n,e[r].property),Object.assign(i,e[r].normal);return new Ir(n,i,t)}function Nr(e){return e.toLowerCase()}Ir.prototype.property={},Ir.prototype.normal={},Ir.prototype.space=null;let Pr=class{constructor(e,t){this.property=e,this.attribute=t}};Pr.prototype.space=null,Pr.prototype.boolean=!1,Pr.prototype.booleanish=!1,Pr.prototype.overloadedBoolean=!1,Pr.prototype.number=!1,Pr.prototype.commaSeparated=!1,Pr.prototype.spaceSeparated=!1,Pr.prototype.commaOrSpaceSeparated=!1,Pr.prototype.mustUseProperty=!1,Pr.prototype.defined=!1;let Mr=0;const Ur=Gr(),qr=Gr(),Br=Gr(),Fr=Gr(),Hr=Gr(),zr=Gr(),jr=Gr();function Gr(){return 2**++Mr}var Vr=Object.freeze({__proto__:null,boolean:Ur,booleanish:qr,commaOrSpaceSeparated:jr,commaSeparated:zr,number:Fr,overloadedBoolean:Br,spaceSeparated:Hr});const Yr=Object.keys(Vr);let Wr=class extends Pr{constructor(e,t,n,i){let r=-1;if(super(e,t),Kr(this,"space",i),"number"==typeof n)for(;++r<Yr.length;){const e=Yr[r];Kr(this,Yr[r],(n&Vr[e])===Vr[e])}}};function Kr(e,t,n){n&&(e[t]=n)}Wr.prototype.defined=!0;const Xr={}.hasOwnProperty;function Qr(e){const t={},n={};let i;for(i in e.properties)if(Xr.call(e.properties,i)){const r=e.properties[i],s=new Wr(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[Nr(i)]=i,n[Nr(s.attribute)]=i}return new Ir(t,n,e.space)}const $r=Qr({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Zr=Qr({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Jr(e,t){return t in e?e[t]:t}function es(e,t){return Jr(e,t.toLowerCase())}const ts=Qr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:es,properties:{xmlns:null,xmlnsXLink:null}}),ns=Qr({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:qr,ariaAutoComplete:null,ariaBusy:qr,ariaChecked:qr,ariaColCount:Fr,ariaColIndex:Fr,ariaColSpan:Fr,ariaControls:Hr,ariaCurrent:null,ariaDescribedBy:Hr,ariaDetails:null,ariaDisabled:qr,ariaDropEffect:Hr,ariaErrorMessage:null,ariaExpanded:qr,ariaFlowTo:Hr,ariaGrabbed:qr,ariaHasPopup:null,ariaHidden:qr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Hr,ariaLevel:Fr,ariaLive:null,ariaModal:qr,ariaMultiLine:qr,ariaMultiSelectable:qr,ariaOrientation:null,ariaOwns:Hr,ariaPlaceholder:null,ariaPosInSet:Fr,ariaPressed:qr,ariaReadOnly:qr,ariaRelevant:null,ariaRequired:qr,ariaRoleDescription:Hr,ariaRowCount:Fr,ariaRowIndex:Fr,ariaRowSpan:Fr,ariaSelected:qr,ariaSetSize:Fr,ariaSort:null,ariaValueMax:Fr,ariaValueMin:Fr,ariaValueNow:Fr,ariaValueText:null,role:null}}),is=Qr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:es,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zr,acceptCharset:Hr,accessKey:Hr,action:null,allow:null,allowFullScreen:Ur,allowPaymentRequest:Ur,allowUserMedia:Ur,alt:null,as:null,async:Ur,autoCapitalize:null,autoComplete:Hr,autoFocus:Ur,autoPlay:Ur,blocking:Hr,capture:null,charSet:null,checked:Ur,cite:null,className:Hr,cols:Fr,colSpan:null,content:null,contentEditable:qr,controls:Ur,controlsList:Hr,coords:Fr|zr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ur,defer:Ur,dir:null,dirName:null,disabled:Ur,download:Br,draggable:qr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ur,formTarget:null,headers:Hr,height:Fr,hidden:Ur,high:Fr,href:null,hrefLang:null,htmlFor:Hr,httpEquiv:Hr,id:null,imageSizes:null,imageSrcSet:null,inert:Ur,inputMode:null,integrity:null,is:null,isMap:Ur,itemId:null,itemProp:Hr,itemRef:Hr,itemScope:Ur,itemType:Hr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ur,low:Fr,manifest:null,max:null,maxLength:Fr,media:null,method:null,min:null,minLength:Fr,multiple:Ur,muted:Ur,name:null,nonce:null,noModule:Ur,noValidate:Ur,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ur,optimum:Fr,pattern:null,ping:Hr,placeholder:null,playsInline:Ur,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ur,referrerPolicy:null,rel:Hr,required:Ur,reversed:Ur,rows:Fr,rowSpan:Fr,sandbox:Hr,scope:null,scoped:Ur,seamless:Ur,selected:Ur,shadowRootClonable:Ur,shadowRootDelegatesFocus:Ur,shadowRootMode:null,shape:null,size:Fr,sizes:null,slot:null,span:Fr,spellCheck:qr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Fr,step:null,style:null,tabIndex:Fr,target:null,title:null,translate:null,type:null,typeMustMatch:Ur,useMap:null,value:qr,width:Fr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Hr,axis:null,background:null,bgColor:null,border:Fr,borderColor:null,bottomMargin:Fr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ur,declare:Ur,event:null,face:null,frame:null,frameBorder:null,hSpace:Fr,leftMargin:Fr,link:null,longDesc:null,lowSrc:null,marginHeight:Fr,marginWidth:Fr,noResize:Ur,noHref:Ur,noShade:Ur,noWrap:Ur,object:null,profile:null,prompt:null,rev:null,rightMargin:Fr,rules:null,scheme:null,scrolling:qr,standby:null,summary:null,text:null,topMargin:Fr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Fr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ur,disableRemotePlayback:Ur,prefix:null,property:null,results:Fr,security:null,unselectable:null}}),rs=Qr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Jr,properties:{about:jr,accentHeight:Fr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Fr,amplitude:Fr,arabicForm:null,ascent:Fr,attributeName:null,attributeType:null,azimuth:Fr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Fr,by:null,calcMode:null,capHeight:Fr,className:Hr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Fr,diffuseConstant:Fr,direction:null,display:null,dur:null,divisor:Fr,dominantBaseline:null,download:Ur,dx:null,dy:null,edgeMode:null,editable:null,elevation:Fr,enableBackground:null,end:null,event:null,exponent:Fr,externalResourcesRequired:null,fill:null,fillOpacity:Fr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zr,g2:zr,glyphName:zr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Fr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Fr,horizOriginX:Fr,horizOriginY:Fr,id:null,ideographic:Fr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Fr,k:Fr,k1:Fr,k2:Fr,k3:Fr,k4:Fr,kernelMatrix:jr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Fr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Fr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Fr,overlineThickness:Fr,paintOrder:null,panose1:null,path:null,pathLength:Fr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Hr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Fr,pointsAtY:Fr,pointsAtZ:Fr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:jr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:jr,rev:jr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:jr,requiredFeatures:jr,requiredFonts:jr,requiredFormats:jr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Fr,specularExponent:Fr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Fr,strikethroughThickness:Fr,string:null,stroke:null,strokeDashArray:jr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Fr,strokeOpacity:Fr,strokeWidth:null,style:null,surfaceScale:Fr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:jr,tabIndex:Fr,tableValues:null,target:null,targetX:Fr,targetY:Fr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:jr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Fr,underlineThickness:Fr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Fr,values:null,vAlphabetic:Fr,vMathematical:Fr,vectorEffect:null,vHanging:Fr,vIdeographic:Fr,version:null,vertAdvY:Fr,vertOriginX:Fr,vertOriginY:Fr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Fr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ss=/^data[-\w.:]+$/i,as=/-[a-z]/g,os=/[A-Z]/g;function ls(e,t){const n=Nr(t);let i=t,r=Pr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ss.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(as,us);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!as.test(e)){let n=e.replace(os,cs);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}r=Wr}return new r(i,t)}function cs(e){return"-"+e.toLowerCase()}function us(e){return e.charAt(1).toUpperCase()}const hs=Or([Zr,$r,ts,ns,is],"html"),fs=Or([Zr,$r,ts,ns,rs],"svg");function ds(e){const t=[],n=String(e||"");let i=n.indexOf(","),r=0,s=!1;for(;!s;){-1===i&&(i=n.length,s=!0);const e=n.slice(r,i).trim();!e&&s||t.push(e),r=i+1,i=n.indexOf(",",r)}return t}const ps=/[#.]/g;function ms(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const gs={}.hasOwnProperty;function bs(e,t,n){const i=n&&function(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}(n);return function(n,r,...s){let a,o=-1;if(null==n)a={type:"root",children:[]},s.unshift(r);else if(a=function(e,t){const n=e||"",i={};let r,s,a=0;for(;a<n.length;){ps.lastIndex=a;const e=ps.exec(n),t=n.slice(a,e?e.index:n.length);t&&(r?"#"===r?i.id=t:Array.isArray(i.className)?i.className.push(t):i.className=[t]:s=t,a+=t.length),e&&(r=e[0],a++)}return{type:"element",tagName:s||t||"div",properties:i,children:[]}}(n,t),a.tagName=a.tagName.toLowerCase(),i&&gs.call(i,a.tagName)&&(a.tagName=i[a.tagName]),function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const e of n){const n=t[e];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;const e=n;for(const t of e)if("number"!=typeof t&&"string"!=typeof t)return!0}}return!(!("children"in e)||!Array.isArray(e.children))}(r))s.unshift(r);else{let t;for(t in r)gs.call(r,t)&&ks(e,a.properties,t,r[t])}for(;++o<s.length;)ys(a.children,s[o]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function ks(e,t,n,i){const r=ls(e,n);let s,a=-1;if(null!=i){if("number"==typeof i){if(Number.isNaN(i))return;s=i}else s="boolean"==typeof i?i:"string"==typeof i?r.spaceSeparated?ms(i):r.commaSeparated?ds(i):r.commaOrSpaceSeparated?ms(ds(i).join(" ")):Es(r,r.property,i):Array.isArray(i)?i.concat():"style"===r.property?function(e){const t=[];let n;for(n in e)gs.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}(i):String(i);if(Array.isArray(s)){const e=[];for(;++a<s.length;){const t=Es(r,r.property,s[a]);e[a]=t}s=e}"className"===r.property&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[r.property]=s}}function ys(e,t){let n=-1;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)ys(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?ys(e,t.children):e.push(t)}}function Es(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||Nr(n)===Nr(t)))return!0}return n}const vs=bs(hs,"div"),ws=bs(fs,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function Ts(e,t){const n=e.indexOf("\r",t),i=e.indexOf("\n",t);return-1===i?n:-1===n||n+1===i?i:n<i?n:i}const Ss={}.hasOwnProperty,xs=Object.prototype;function As(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},Ds(e,t,n),n;case"#document":case"#document-fragment":{const i="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(n={type:"root",children:Cs(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),i=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],i=Ts(t,e),r=-1===i?t.length+1:i+1;if(e===r)break;n.push(r)}const i=(e.line>1?n[e.line-2]:0)+e.column-1;if(i<n[e.line-1])return i}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let i=0;for(;;){let r=n[i];if(void 0===r){const e=Ts(t,n[i-1]);r=-1===e?t.length+1:e+1,n[i]=r}if(r>e)return{line:i+1,column:e-(i>0?n[i-1]:0)+1,offset:e};i++}}}}}(t),r=i.toPoint(0),s=i.toPoint(t.length);n.position={start:r,end:s}}return n}case"#documentType":return n={type:"doctype"},Ds(e,t,n),n;case"#text":return n={type:"text",value:t.value},Ds(e,t,n),n;default:return n=function(e,t){const n=e.schema;e.schema="http://www.w3.org/2000/svg"===t.namespaceURI?fs:hs;let i=-1;const r={};for(;++i<t.attrs.length;){const e=t.attrs[i],n=(e.prefix?e.prefix+":":"")+e.name;Ss.call(xs,n)||(r[n]=e.value)}const s=("svg"===e.schema.space?ws:vs)(t.tagName,r,Cs(e,t.childNodes));if(Ds(e,t,s),"template"===s.tagName){const n=t,i=n.sourceCodeLocation,r=i&&i.startTag&&_s(i.startTag),a=i&&i.endTag&&_s(i.endTag),o=As(e,n.content);r&&a&&e.file&&(o.position={start:r.end,end:a.start}),s.content=o}return e.schema=n,s}(e,t),n}}function Cs(e,t){let n=-1;const i=[];for(;++n<t.length;){const r=As(e,t[n]);i.push(r)}return i}function Ds(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=function(e,t,n){const i=_s(n);if("element"===t.type){const r=t.children[t.children.length-1];if(i&&!n.endTag&&r&&r.position&&r.position.end&&(i.end=Object.assign({},r.position.end)),e.verbose){const i={};let r;if(n.attrs)for(r in n.attrs)Ss.call(n.attrs,r)&&(i[ls(e.schema,r).property]=_s(n.attrs[r]));const s=_s(n.startTag),a=n.endTag?_s(n.endTag):void 0,o={opening:s};a&&(o.closing=a),o.properties=i,t.data={position:o}}}return i}(e,n,t.sourceCodeLocation);i&&(e.location=!0,n.position=i)}}function _s(e){const t=Rs({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Rs({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Rs(e){return e.line&&e.column?e:void 0}const Ls=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Is="�";var Os;!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"}(Os||(Os={}));const Ns="[CDATA[",Ps="doctype",Ms="script";function Us(e){return e>=55296&&e<=57343}function qs(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Bs(e){return e>=64976&&e<=65007||Ls.has(e)}var Fs;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(Fs||(Fs={}));let Hs=class{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:i,offset:r}=this,s=i+t,a=r+t;return{code:e,startLine:n,endLine:n,startCol:s,endCol:s,startOffset:a,endOffset:a}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Os.EOF;return this._err(Fs.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Os.EOF;const n=this.html.charCodeAt(t);return n===Os.CARRIAGE_RETURN?Os.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Os.EOF;let e=this.html.charCodeAt(this.pos);return e===Os.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Os.LINE_FEED):e===Os.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Us(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===Os.LINE_FEED||e===Os.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){qs(e)?this._err(Fs.controlCharacterInInputStream):Bs(e)&&this._err(Fs.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}};var zs,js,Gs,Vs,Ys,Ws;function Ks(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(zs||(zs={})),function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(js||(js={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(Gs||(Gs={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(Vs||(Vs={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(Ys||(Ys={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"}(Ws||(Ws={}));const Xs=new Map([[Ys.A,Ws.A],[Ys.ADDRESS,Ws.ADDRESS],[Ys.ANNOTATION_XML,Ws.ANNOTATION_XML],[Ys.APPLET,Ws.APPLET],[Ys.AREA,Ws.AREA],[Ys.ARTICLE,Ws.ARTICLE],[Ys.ASIDE,Ws.ASIDE],[Ys.B,Ws.B],[Ys.BASE,Ws.BASE],[Ys.BASEFONT,Ws.BASEFONT],[Ys.BGSOUND,Ws.BGSOUND],[Ys.BIG,Ws.BIG],[Ys.BLOCKQUOTE,Ws.BLOCKQUOTE],[Ys.BODY,Ws.BODY],[Ys.BR,Ws.BR],[Ys.BUTTON,Ws.BUTTON],[Ys.CAPTION,Ws.CAPTION],[Ys.CENTER,Ws.CENTER],[Ys.CODE,Ws.CODE],[Ys.COL,Ws.COL],[Ys.COLGROUP,Ws.COLGROUP],[Ys.DD,Ws.DD],[Ys.DESC,Ws.DESC],[Ys.DETAILS,Ws.DETAILS],[Ys.DIALOG,Ws.DIALOG],[Ys.DIR,Ws.DIR],[Ys.DIV,Ws.DIV],[Ys.DL,Ws.DL],[Ys.DT,Ws.DT],[Ys.EM,Ws.EM],[Ys.EMBED,Ws.EMBED],[Ys.FIELDSET,Ws.FIELDSET],[Ys.FIGCAPTION,Ws.FIGCAPTION],[Ys.FIGURE,Ws.FIGURE],[Ys.FONT,Ws.FONT],[Ys.FOOTER,Ws.FOOTER],[Ys.FOREIGN_OBJECT,Ws.FOREIGN_OBJECT],[Ys.FORM,Ws.FORM],[Ys.FRAME,Ws.FRAME],[Ys.FRAMESET,Ws.FRAMESET],[Ys.H1,Ws.H1],[Ys.H2,Ws.H2],[Ys.H3,Ws.H3],[Ys.H4,Ws.H4],[Ys.H5,Ws.H5],[Ys.H6,Ws.H6],[Ys.HEAD,Ws.HEAD],[Ys.HEADER,Ws.HEADER],[Ys.HGROUP,Ws.HGROUP],[Ys.HR,Ws.HR],[Ys.HTML,Ws.HTML],[Ys.I,Ws.I],[Ys.IMG,Ws.IMG],[Ys.IMAGE,Ws.IMAGE],[Ys.INPUT,Ws.INPUT],[Ys.IFRAME,Ws.IFRAME],[Ys.KEYGEN,Ws.KEYGEN],[Ys.LABEL,Ws.LABEL],[Ys.LI,Ws.LI],[Ys.LINK,Ws.LINK],[Ys.LISTING,Ws.LISTING],[Ys.MAIN,Ws.MAIN],[Ys.MALIGNMARK,Ws.MALIGNMARK],[Ys.MARQUEE,Ws.MARQUEE],[Ys.MATH,Ws.MATH],[Ys.MENU,Ws.MENU],[Ys.META,Ws.META],[Ys.MGLYPH,Ws.MGLYPH],[Ys.MI,Ws.MI],[Ys.MO,Ws.MO],[Ys.MN,Ws.MN],[Ys.MS,Ws.MS],[Ys.MTEXT,Ws.MTEXT],[Ys.NAV,Ws.NAV],[Ys.NOBR,Ws.NOBR],[Ys.NOFRAMES,Ws.NOFRAMES],[Ys.NOEMBED,Ws.NOEMBED],[Ys.NOSCRIPT,Ws.NOSCRIPT],[Ys.OBJECT,Ws.OBJECT],[Ys.OL,Ws.OL],[Ys.OPTGROUP,Ws.OPTGROUP],[Ys.OPTION,Ws.OPTION],[Ys.P,Ws.P],[Ys.PARAM,Ws.PARAM],[Ys.PLAINTEXT,Ws.PLAINTEXT],[Ys.PRE,Ws.PRE],[Ys.RB,Ws.RB],[Ys.RP,Ws.RP],[Ys.RT,Ws.RT],[Ys.RTC,Ws.RTC],[Ys.RUBY,Ws.RUBY],[Ys.S,Ws.S],[Ys.SCRIPT,Ws.SCRIPT],[Ys.SEARCH,Ws.SEARCH],[Ys.SECTION,Ws.SECTION],[Ys.SELECT,Ws.SELECT],[Ys.SOURCE,Ws.SOURCE],[Ys.SMALL,Ws.SMALL],[Ys.SPAN,Ws.SPAN],[Ys.STRIKE,Ws.STRIKE],[Ys.STRONG,Ws.STRONG],[Ys.STYLE,Ws.STYLE],[Ys.SUB,Ws.SUB],[Ys.SUMMARY,Ws.SUMMARY],[Ys.SUP,Ws.SUP],[Ys.TABLE,Ws.TABLE],[Ys.TBODY,Ws.TBODY],[Ys.TEMPLATE,Ws.TEMPLATE],[Ys.TEXTAREA,Ws.TEXTAREA],[Ys.TFOOT,Ws.TFOOT],[Ys.TD,Ws.TD],[Ys.TH,Ws.TH],[Ys.THEAD,Ws.THEAD],[Ys.TITLE,Ws.TITLE],[Ys.TR,Ws.TR],[Ys.TRACK,Ws.TRACK],[Ys.TT,Ws.TT],[Ys.U,Ws.U],[Ys.UL,Ws.UL],[Ys.SVG,Ws.SVG],[Ys.VAR,Ws.VAR],[Ys.WBR,Ws.WBR],[Ys.XMP,Ws.XMP]]);function Qs(e){var t;return null!==(t=Xs.get(e))&&void 0!==t?t:Ws.UNKNOWN}const $s=Ws,Zs={[js.HTML]:new Set([$s.ADDRESS,$s.APPLET,$s.AREA,$s.ARTICLE,$s.ASIDE,$s.BASE,$s.BASEFONT,$s.BGSOUND,$s.BLOCKQUOTE,$s.BODY,$s.BR,$s.BUTTON,$s.CAPTION,$s.CENTER,$s.COL,$s.COLGROUP,$s.DD,$s.DETAILS,$s.DIR,$s.DIV,$s.DL,$s.DT,$s.EMBED,$s.FIELDSET,$s.FIGCAPTION,$s.FIGURE,$s.FOOTER,$s.FORM,$s.FRAME,$s.FRAMESET,$s.H1,$s.H2,$s.H3,$s.H4,$s.H5,$s.H6,$s.HEAD,$s.HEADER,$s.HGROUP,$s.HR,$s.HTML,$s.IFRAME,$s.IMG,$s.INPUT,$s.LI,$s.LINK,$s.LISTING,$s.MAIN,$s.MARQUEE,$s.MENU,$s.META,$s.NAV,$s.NOEMBED,$s.NOFRAMES,$s.NOSCRIPT,$s.OBJECT,$s.OL,$s.P,$s.PARAM,$s.PLAINTEXT,$s.PRE,$s.SCRIPT,$s.SECTION,$s.SELECT,$s.SOURCE,$s.STYLE,$s.SUMMARY,$s.TABLE,$s.TBODY,$s.TD,$s.TEMPLATE,$s.TEXTAREA,$s.TFOOT,$s.TH,$s.THEAD,$s.TITLE,$s.TR,$s.TRACK,$s.UL,$s.WBR,$s.XMP]),[js.MATHML]:new Set([$s.MI,$s.MO,$s.MN,$s.MS,$s.MTEXT,$s.ANNOTATION_XML]),[js.SVG]:new Set([$s.TITLE,$s.FOREIGN_OBJECT,$s.DESC]),[js.XLINK]:new Set,[js.XML]:new Set,[js.XMLNS]:new Set},Js=new Set([$s.H1,$s.H2,$s.H3,$s.H4,$s.H5,$s.H6]);var ea;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"}(ea||(ea={}));const ta={RCDATA:ea.RCDATA,RAWTEXT:ea.RAWTEXT,SCRIPT_DATA:ea.SCRIPT_DATA,PLAINTEXT:ea.PLAINTEXT};function na(e){return e>=Os.LATIN_CAPITAL_A&&e<=Os.LATIN_CAPITAL_Z}function ia(e){return function(e){return e>=Os.LATIN_SMALL_A&&e<=Os.LATIN_SMALL_Z}(e)||na(e)}function ra(e){return ia(e)||function(e){return e>=Os.DIGIT_0&&e<=Os.DIGIT_9}(e)}function sa(e){return e+32}function aa(e){return e===Os.SPACE||e===Os.LINE_FEED||e===Os.TABULATION||e===Os.FORM_FEED}function oa(e){return aa(e)||e===Os.SOLIDUS||e===Os.GREATER_THAN_SIGN}let la=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ea.DATA,this.returnState=ea.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Hs(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new d(i,((e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)}),t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Fs.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(Fs.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===Os.NULL?Fs.nullCharacterReference:e>1114111?Fs.characterReferenceOutsideUnicodeRange:Us(e)?Fs.surrogateCharacterReference:Bs(e)?Fs.noncharacterCharacterReference:qs(e)||e===Os.CARRIAGE_RETURN?Fs.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,i;null===(i=(n=this.handler).onParseError)||void 0===i||i.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:zs.START_TAG,tagName:"",tagID:Ws.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:zs.END_TAG,tagName:"",tagID:Ws.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:zs.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:zs.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;null===Ks(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(Fs.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=Qs(e.tagName),e.type===zs.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(Fs.endTagWithAttributes),e.selfClosing&&this._err(Fs.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case zs.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case zs.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case zs.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:zs.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=aa(e)?zs.WHITESPACE_CHARACTER:e===Os.NULL?zs.NULL_CHARACTER:zs.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(zs.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=ea.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?c.Attribute:c.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ea.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ea.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ea.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case ea.DATA:this._stateData(e);break;case ea.RCDATA:this._stateRcdata(e);break;case ea.RAWTEXT:this._stateRawtext(e);break;case ea.SCRIPT_DATA:this._stateScriptData(e);break;case ea.PLAINTEXT:this._statePlaintext(e);break;case ea.TAG_OPEN:this._stateTagOpen(e);break;case ea.END_TAG_OPEN:this._stateEndTagOpen(e);break;case ea.TAG_NAME:this._stateTagName(e);break;case ea.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case ea.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case ea.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case ea.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case ea.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case ea.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case ea.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case ea.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case ea.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case ea.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case ea.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case ea.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case ea.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case ea.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case ea.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case ea.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case ea.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case ea.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case ea.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case ea.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case ea.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case ea.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case ea.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case ea.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case ea.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case ea.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case ea.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case ea.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case ea.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case ea.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case ea.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case ea.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case ea.BOGUS_COMMENT:this._stateBogusComment(e);break;case ea.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case ea.COMMENT_START:this._stateCommentStart(e);break;case ea.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case ea.COMMENT:this._stateComment(e);break;case ea.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case ea.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case ea.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case ea.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case ea.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case ea.COMMENT_END:this._stateCommentEnd(e);break;case ea.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case ea.DOCTYPE:this._stateDoctype(e);break;case ea.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case ea.DOCTYPE_NAME:this._stateDoctypeName(e);break;case ea.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case ea.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case ea.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case ea.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case ea.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case ea.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case ea.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case ea.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case ea.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case ea.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case ea.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case ea.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case ea.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case ea.CDATA_SECTION:this._stateCdataSection(e);break;case ea.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case ea.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case ea.CHARACTER_REFERENCE:this._stateCharacterReference();break;case ea.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Os.LESS_THAN_SIGN:this.state=ea.TAG_OPEN;break;case Os.AMPERSAND:this._startCharacterReference();break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this._emitCodePoint(e);break;case Os.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Os.AMPERSAND:this._startCharacterReference();break;case Os.LESS_THAN_SIGN:this.state=ea.RCDATA_LESS_THAN_SIGN;break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this._emitChars(Is);break;case Os.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Os.LESS_THAN_SIGN:this.state=ea.RAWTEXT_LESS_THAN_SIGN;break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this._emitChars(Is);break;case Os.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Os.LESS_THAN_SIGN:this.state=ea.SCRIPT_DATA_LESS_THAN_SIGN;break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this._emitChars(Is);break;case Os.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Os.NULL:this._err(Fs.unexpectedNullCharacter),this._emitChars(Is);break;case Os.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ia(e))this._createStartTagToken(),this.state=ea.TAG_NAME,this._stateTagName(e);else switch(e){case Os.EXCLAMATION_MARK:this.state=ea.MARKUP_DECLARATION_OPEN;break;case Os.SOLIDUS:this.state=ea.END_TAG_OPEN;break;case Os.QUESTION_MARK:this._err(Fs.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ea.BOGUS_COMMENT,this._stateBogusComment(e);break;case Os.EOF:this._err(Fs.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Fs.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ea.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ia(e))this._createEndTagToken(),this.state=ea.TAG_NAME,this._stateTagName(e);else switch(e){case Os.GREATER_THAN_SIGN:this._err(Fs.missingEndTagName),this.state=ea.DATA;break;case Os.EOF:this._err(Fs.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(Fs.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ea.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:this.state=ea.BEFORE_ATTRIBUTE_NAME;break;case Os.SOLIDUS:this.state=ea.SELF_CLOSING_START_TAG;break;case Os.GREATER_THAN_SIGN:this.state=ea.DATA,this.emitCurrentTagToken();break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),t.tagName+=Is;break;case Os.EOF:this._err(Fs.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(na(e)?sa(e):e)}}_stateRcdataLessThanSign(e){e===Os.SOLIDUS?this.state=ea.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ea.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){ia(e)?(this.state=ea.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=ea.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ea.BEFORE_ATTRIBUTE_NAME,!1;case Os.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ea.SELF_CLOSING_START_TAG,!1;case Os.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ea.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ea.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===Os.SOLIDUS?this.state=ea.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ea.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){ia(e)?(this.state=ea.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=ea.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ea.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case Os.SOLIDUS:this.state=ea.SCRIPT_DATA_END_TAG_OPEN;break;case Os.EXCLAMATION_MARK:this.state=ea.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=ea.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){ia(e)?(this.state=ea.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=ea.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ea.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===Os.HYPHEN_MINUS?(this.state=ea.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ea.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===Os.HYPHEN_MINUS?(this.state=ea.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=ea.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case Os.HYPHEN_MINUS:this.state=ea.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case Os.LESS_THAN_SIGN:this.state=ea.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this._emitChars(Is);break;case Os.EOF:this._err(Fs.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case Os.HYPHEN_MINUS:this.state=ea.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case Os.LESS_THAN_SIGN:this.state=ea.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this.state=ea.SCRIPT_DATA_ESCAPED,this._emitChars(Is);break;case Os.EOF:this._err(Fs.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ea.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case Os.HYPHEN_MINUS:this._emitChars("-");break;case Os.LESS_THAN_SIGN:this.state=ea.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Os.GREATER_THAN_SIGN:this.state=ea.SCRIPT_DATA,this._emitChars(">");break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this.state=ea.SCRIPT_DATA_ESCAPED,this._emitChars(Is);break;case Os.EOF:this._err(Fs.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ea.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Os.SOLIDUS?this.state=ea.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ia(e)?(this._emitChars("<"),this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=ea.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ia(e)?(this.state=ea.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=ea.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=ea.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Ms,!1)&&oa(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=ea.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case Os.HYPHEN_MINUS:this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case Os.LESS_THAN_SIGN:this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this._emitChars(Is);break;case Os.EOF:this._err(Fs.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Os.HYPHEN_MINUS:this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case Os.LESS_THAN_SIGN:this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Is);break;case Os.EOF:this._err(Fs.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Os.HYPHEN_MINUS:this._emitChars("-");break;case Os.LESS_THAN_SIGN:this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Os.GREATER_THAN_SIGN:this.state=ea.SCRIPT_DATA,this._emitChars(">");break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Is);break;case Os.EOF:this._err(Fs.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Os.SOLIDUS?(this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Ms,!1)&&oa(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=ea.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=ea.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:break;case Os.SOLIDUS:case Os.GREATER_THAN_SIGN:case Os.EOF:this.state=ea.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Os.EQUALS_SIGN:this._err(Fs.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ea.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=ea.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:case Os.SOLIDUS:case Os.GREATER_THAN_SIGN:case Os.EOF:this._leaveAttrName(),this.state=ea.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Os.EQUALS_SIGN:this._leaveAttrName(),this.state=ea.BEFORE_ATTRIBUTE_VALUE;break;case Os.QUOTATION_MARK:case Os.APOSTROPHE:case Os.LESS_THAN_SIGN:this._err(Fs.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this.currentAttr.name+=Is;break;default:this.currentAttr.name+=String.fromCodePoint(na(e)?sa(e):e)}}_stateAfterAttributeName(e){switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:break;case Os.SOLIDUS:this.state=ea.SELF_CLOSING_START_TAG;break;case Os.EQUALS_SIGN:this.state=ea.BEFORE_ATTRIBUTE_VALUE;break;case Os.GREATER_THAN_SIGN:this.state=ea.DATA,this.emitCurrentTagToken();break;case Os.EOF:this._err(Fs.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=ea.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:break;case Os.QUOTATION_MARK:this.state=ea.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Os.APOSTROPHE:this.state=ea.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Os.GREATER_THAN_SIGN:this._err(Fs.missingAttributeValue),this.state=ea.DATA,this.emitCurrentTagToken();break;default:this.state=ea.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Os.QUOTATION_MARK:this.state=ea.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Os.AMPERSAND:this._startCharacterReference();break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this.currentAttr.value+=Is;break;case Os.EOF:this._err(Fs.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Os.APOSTROPHE:this.state=ea.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Os.AMPERSAND:this._startCharacterReference();break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this.currentAttr.value+=Is;break;case Os.EOF:this._err(Fs.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:this._leaveAttrValue(),this.state=ea.BEFORE_ATTRIBUTE_NAME;break;case Os.AMPERSAND:this._startCharacterReference();break;case Os.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=ea.DATA,this.emitCurrentTagToken();break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this.currentAttr.value+=Is;break;case Os.QUOTATION_MARK:case Os.APOSTROPHE:case Os.LESS_THAN_SIGN:case Os.EQUALS_SIGN:case Os.GRAVE_ACCENT:this._err(Fs.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Os.EOF:this._err(Fs.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:this._leaveAttrValue(),this.state=ea.BEFORE_ATTRIBUTE_NAME;break;case Os.SOLIDUS:this._leaveAttrValue(),this.state=ea.SELF_CLOSING_START_TAG;break;case Os.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=ea.DATA,this.emitCurrentTagToken();break;case Os.EOF:this._err(Fs.eofInTag),this._emitEOFToken();break;default:this._err(Fs.missingWhitespaceBetweenAttributes),this.state=ea.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Os.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=ea.DATA,this.emitCurrentTagToken();break;case Os.EOF:this._err(Fs.eofInTag),this._emitEOFToken();break;default:this._err(Fs.unexpectedSolidusInTag),this.state=ea.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case Os.GREATER_THAN_SIGN:this.state=ea.DATA,this.emitCurrentComment(t);break;case Os.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),t.data+=Is;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=ea.COMMENT_START):this._consumeSequenceIfMatch(Ps,!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=ea.DOCTYPE):this._consumeSequenceIfMatch(Ns,!0)?this.inForeignNode?this.state=ea.CDATA_SECTION:(this._err(Fs.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=ea.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Fs.incorrectlyOpenedComment),this._createCommentToken(2),this.state=ea.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Os.HYPHEN_MINUS:this.state=ea.COMMENT_START_DASH;break;case Os.GREATER_THAN_SIGN:this._err(Fs.abruptClosingOfEmptyComment),this.state=ea.DATA,this.emitCurrentComment(this.currentToken);break;default:this.state=ea.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case Os.HYPHEN_MINUS:this.state=ea.COMMENT_END;break;case Os.GREATER_THAN_SIGN:this._err(Fs.abruptClosingOfEmptyComment),this.state=ea.DATA,this.emitCurrentComment(t);break;case Os.EOF:this._err(Fs.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=ea.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case Os.HYPHEN_MINUS:this.state=ea.COMMENT_END_DASH;break;case Os.LESS_THAN_SIGN:t.data+="<",this.state=ea.COMMENT_LESS_THAN_SIGN;break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),t.data+=Is;break;case Os.EOF:this._err(Fs.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case Os.EXCLAMATION_MARK:t.data+="!",this.state=ea.COMMENT_LESS_THAN_SIGN_BANG;break;case Os.LESS_THAN_SIGN:t.data+="<";break;default:this.state=ea.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Os.HYPHEN_MINUS?this.state=ea.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ea.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Os.HYPHEN_MINUS?this.state=ea.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ea.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Os.GREATER_THAN_SIGN&&e!==Os.EOF&&this._err(Fs.nestedComment),this.state=ea.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case Os.HYPHEN_MINUS:this.state=ea.COMMENT_END;break;case Os.EOF:this._err(Fs.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=ea.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case Os.GREATER_THAN_SIGN:this.state=ea.DATA,this.emitCurrentComment(t);break;case Os.EXCLAMATION_MARK:this.state=ea.COMMENT_END_BANG;break;case Os.HYPHEN_MINUS:t.data+="-";break;case Os.EOF:this._err(Fs.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=ea.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case Os.HYPHEN_MINUS:t.data+="--!",this.state=ea.COMMENT_END_DASH;break;case Os.GREATER_THAN_SIGN:this._err(Fs.incorrectlyClosedComment),this.state=ea.DATA,this.emitCurrentComment(t);break;case Os.EOF:this._err(Fs.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=ea.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:this.state=ea.BEFORE_DOCTYPE_NAME;break;case Os.GREATER_THAN_SIGN:this.state=ea.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Os.EOF:{this._err(Fs.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(Fs.missingWhitespaceBeforeDoctypeName),this.state=ea.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(na(e))this._createDoctypeToken(String.fromCharCode(sa(e))),this.state=ea.DOCTYPE_NAME;else switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),this._createDoctypeToken(Is),this.state=ea.DOCTYPE_NAME;break;case Os.GREATER_THAN_SIGN:{this._err(Fs.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=ea.DATA;break}case Os.EOF:{this._err(Fs.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=ea.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:this.state=ea.AFTER_DOCTYPE_NAME;break;case Os.GREATER_THAN_SIGN:this.state=ea.DATA,this.emitCurrentDoctype(t);break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),t.name+=Is;break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(na(e)?sa(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:break;case Os.GREATER_THAN_SIGN:this.state=ea.DATA,this.emitCurrentDoctype(t);break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=ea.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=ea.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Fs.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=ea.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:this.state=ea.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Os.QUOTATION_MARK:this._err(Fs.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=ea.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Os.APOSTROPHE:this._err(Fs.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=ea.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Os.GREATER_THAN_SIGN:this._err(Fs.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ea.DATA,this.emitCurrentDoctype(t);break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fs.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ea.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:break;case Os.QUOTATION_MARK:t.publicId="",this.state=ea.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Os.APOSTROPHE:t.publicId="",this.state=ea.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Os.GREATER_THAN_SIGN:this._err(Fs.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ea.DATA,this.emitCurrentDoctype(t);break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fs.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=ea.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Os.QUOTATION_MARK:this.state=ea.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),t.publicId+=Is;break;case Os.GREATER_THAN_SIGN:this._err(Fs.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ea.DATA;break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Os.APOSTROPHE:this.state=ea.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),t.publicId+=Is;break;case Os.GREATER_THAN_SIGN:this._err(Fs.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ea.DATA;break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:this.state=ea.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Os.GREATER_THAN_SIGN:this.state=ea.DATA,this.emitCurrentDoctype(t);break;case Os.QUOTATION_MARK:this._err(Fs.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=ea.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Os.APOSTROPHE:this._err(Fs.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=ea.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fs.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ea.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:break;case Os.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ea.DATA;break;case Os.QUOTATION_MARK:t.systemId="",this.state=ea.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Os.APOSTROPHE:t.systemId="",this.state=ea.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fs.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ea.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:this.state=ea.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Os.QUOTATION_MARK:this._err(Fs.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=ea.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Os.APOSTROPHE:this._err(Fs.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=ea.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Os.GREATER_THAN_SIGN:this._err(Fs.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ea.DATA,this.emitCurrentDoctype(t);break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fs.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ea.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:break;case Os.QUOTATION_MARK:t.systemId="",this.state=ea.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Os.APOSTROPHE:t.systemId="",this.state=ea.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Os.GREATER_THAN_SIGN:this._err(Fs.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ea.DATA,this.emitCurrentDoctype(t);break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fs.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=ea.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Os.QUOTATION_MARK:this.state=ea.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),t.systemId+=Is;break;case Os.GREATER_THAN_SIGN:this._err(Fs.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ea.DATA;break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Os.APOSTROPHE:this.state=ea.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Os.NULL:this._err(Fs.unexpectedNullCharacter),t.systemId+=Is;break;case Os.GREATER_THAN_SIGN:this._err(Fs.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=ea.DATA;break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Os.SPACE:case Os.LINE_FEED:case Os.TABULATION:case Os.FORM_FEED:break;case Os.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ea.DATA;break;case Os.EOF:this._err(Fs.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Fs.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=ea.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case Os.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=ea.DATA;break;case Os.NULL:this._err(Fs.unexpectedNullCharacter);break;case Os.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Os.RIGHT_SQUARE_BRACKET:this.state=ea.CDATA_SECTION_BRACKET;break;case Os.EOF:this._err(Fs.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Os.RIGHT_SQUARE_BRACKET?this.state=ea.CDATA_SECTION_END:(this._emitChars("]"),this.state=ea.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Os.GREATER_THAN_SIGN:this.state=ea.DATA;break;case Os.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=ea.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(Os.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ra(this.preprocessor.peek(1))?ea.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){ra(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Os.SEMICOLON&&this._err(Fs.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}};const ca=new Set([Ws.DD,Ws.DT,Ws.LI,Ws.OPTGROUP,Ws.OPTION,Ws.P,Ws.RB,Ws.RP,Ws.RT,Ws.RTC]),ua=new Set([...ca,Ws.CAPTION,Ws.COLGROUP,Ws.TBODY,Ws.TD,Ws.TFOOT,Ws.TH,Ws.THEAD,Ws.TR]),ha=new Set([Ws.APPLET,Ws.CAPTION,Ws.HTML,Ws.MARQUEE,Ws.OBJECT,Ws.TABLE,Ws.TD,Ws.TEMPLATE,Ws.TH]),fa=new Set([...ha,Ws.OL,Ws.UL]),da=new Set([...ha,Ws.BUTTON]),pa=new Set([Ws.ANNOTATION_XML,Ws.MI,Ws.MN,Ws.MO,Ws.MS,Ws.MTEXT]),ma=new Set([Ws.DESC,Ws.FOREIGN_OBJECT,Ws.TITLE]),ga=new Set([Ws.TR,Ws.TEMPLATE,Ws.HTML]),ba=new Set([Ws.TBODY,Ws.TFOOT,Ws.THEAD,Ws.TEMPLATE,Ws.HTML]),ka=new Set([Ws.TABLE,Ws.TEMPLATE,Ws.HTML]),ya=new Set([Ws.TD,Ws.TH]);let Ea=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Ws.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===Ws.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===js.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const i=this._indexOf(e)+1;this.items.splice(i,0,t),this.tagIDs.splice(i,0,n),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==js.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Js,js.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ya,js.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(ka,js.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ba,js.HTML)}clearBackToTableRowContext(){this.clearBackTo(ga,js.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Ws.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===Ws.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const i=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case js.HTML:if(i===e)return!0;if(t.has(i))return!1;break;case js.SVG:if(ma.has(i))return!1;break;case js.MATHML:if(pa.has(i))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,ha)}hasInListItemScope(e){return this.hasInDynamicScope(e,fa)}hasInButtonScope(e){return this.hasInDynamicScope(e,da)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case js.HTML:if(Js.has(t))return!0;if(ha.has(t))return!1;break;case js.SVG:if(ma.has(t))return!1;break;case js.MATHML:if(pa.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===js.HTML)switch(this.tagIDs[t]){case e:return!0;case Ws.TABLE:case Ws.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===js.HTML)switch(this.tagIDs[e]){case Ws.TBODY:case Ws.THEAD:case Ws.TFOOT:return!0;case Ws.TABLE:case Ws.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===js.HTML)switch(this.tagIDs[t]){case e:return!0;case Ws.OPTION:case Ws.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;ca.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ua.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&ua.has(this.currentTagId);)this.pop()}};var va;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(va||(va={}));const wa={type:va.Marker};let Ta=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],i=t.length,r=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===va.Marker)break;const{element:a}=t;if(this.treeAdapter.getTagName(a)===r&&this.treeAdapter.getNamespaceURI(a)===s){const t=this.treeAdapter.getAttrList(a);t.length===i&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const i=new Map(t.map((e=>[e.name,e.value])));let r=0;for(let e=0;e<n.length;e++){const t=n[e];t.attrs.every((e=>i.get(e.name)===e.value))&&(r+=1,r>=3&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(wa)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:va.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:va.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(wa);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===va.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===va.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===va.Element&&t.element===e))}};const Sa={createDocument:()=>({nodeName:"#document",mode:Vs.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,i){const r=e.childNodes.find((e=>"#documentType"===e.nodeName));r?(r.name=t,r.publicId=n,r.systemId=i):Sa.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Sa.isTextNode(n))return void(n.value+=t)}Sa.appendChild(e,Sa.createTextNode(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];i&&Sa.isTextNode(i)?i.value+=t:Sa.insertBefore(e,Sa.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let i=0;i<t.length;i++)n.has(t[i].name)||e.attrs.push(t[i])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},xa="html",Aa=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Ca=[...Aa,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Da=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),_a=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Ra=[..._a,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function La(e,t){return t.some((t=>e.startsWith(t)))}const Ia=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),Oa=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:js.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:js.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:js.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:js.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:js.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:js.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:js.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:js.XML}],["xml:space",{prefix:"xml",name:"space",namespace:js.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:js.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:js.XMLNS}]]),Na=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),Pa=new Set([Ws.B,Ws.BIG,Ws.BLOCKQUOTE,Ws.BODY,Ws.BR,Ws.CENTER,Ws.CODE,Ws.DD,Ws.DIV,Ws.DL,Ws.DT,Ws.EM,Ws.EMBED,Ws.H1,Ws.H2,Ws.H3,Ws.H4,Ws.H5,Ws.H6,Ws.HEAD,Ws.HR,Ws.I,Ws.IMG,Ws.LI,Ws.LISTING,Ws.MENU,Ws.META,Ws.NOBR,Ws.OL,Ws.P,Ws.PRE,Ws.RUBY,Ws.S,Ws.SMALL,Ws.SPAN,Ws.STRONG,Ws.STRIKE,Ws.SUB,Ws.SUP,Ws.TABLE,Ws.TT,Ws.U,Ws.UL,Ws.VAR]);function Ma(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function Ua(e){for(let t=0;t<e.attrs.length;t++){const n=Ia.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function qa(e){for(let t=0;t<e.attrs.length;t++){const n=Oa.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}var Ba;!function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(Ba||(Ba={}));const Fa={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ha=new Set([Ws.TABLE,Ws.TBODY,Ws.TFOOT,Ws.THEAD,Ws.TR]),za={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Sa,onParseError:null};let ja=class{constructor(e,t,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=Ba.INITIAL,this.originalInsertionMode=Ba.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...za,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new la(this.options,this),this.activeFormattingElements=new Ta(this.treeAdapter),this.fragmentContextID=n?Qs(this.treeAdapter.getTagName(n)):Ws.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new Ea(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...za,...t};null!=e||(e=n.treeAdapter.createElement(Ys.TEMPLATE,js.HTML,[]));const i=n.treeAdapter.createElement("documentmock",js.HTML,[]),r=new this(n,i,e);return r.fragmentContextID===Ws.TEMPLATE&&r.tmplInsertionModeStack.unshift(Ba.IN_TEMPLATE),r._initTokenizerForFragmentParsing(),r._insertFakeRootElement(),r._resetInsertionMode(),r._findFormInFragmentContext(),r}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var i;if(!this.onParseError)return;const r=null!==(i=e.location)&&void 0!==i?i:Fa;this.onParseError({code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:n?r.startLine:r.endLine,endCol:n?r.startCol:r.endCol,endOffset:n?r.startOffset:r.endOffset})}onItemPush(e,t,n){var i,r;null===(r=(i=this.treeAdapter).onItemPush)||void 0===r||r.call(i,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(i=(n=this.treeAdapter).onItemPop)||void 0===i||i.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===js.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,js.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ba.TEXT}switchToPlaintextParsing(){this.insertionMode=Ba.TEXT,this.originalInsertionMode=Ba.IN_BODY,this.tokenizer.state=ta.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Ys.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===js.HTML)switch(this.fragmentContextID){case Ws.TITLE:case Ws.TEXTAREA:this.tokenizer.state=ta.RCDATA;break;case Ws.STYLE:case Ws.XMP:case Ws.IFRAME:case Ws.NOEMBED:case Ws.NOFRAMES:case Ws.NOSCRIPT:this.tokenizer.state=ta.RAWTEXT;break;case Ws.SCRIPT:this.tokenizer.state=ta.SCRIPT_DATA;break;case Ws.PLAINTEXT:this.tokenizer.state=ta.PLAINTEXT}}_setDocumentType(e){if(this.treeAdapter.setDocumentType(this.document,e.name||"",e.publicId||"",e.systemId||""),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}this._shouldFosterParentOnInsertion()?this._fosterParentElement(e):this.treeAdapter.appendChild(this.openElements.currentTmplContentOrNode,e)}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,js.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,js.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Ys.HTML,js.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,Ws.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const i=this.treeAdapter.getChildNodes(t),r=n?i.lastIndexOf(n):i.length,s=i[r-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:t,endCol:n,endOffset:i}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:n,endOffset:i})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,i=this.treeAdapter.getTagName(e),r=t.type===zs.END_TAG&&i===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,r)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==Ws.SVG||this.treeAdapter.getTagName(t)!==Ys.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==js.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Ws.MGLYPH||e.tagID===Ws.MALIGNMARK)&&!this._isIntegrationPoint(n,t,js.HTML))}_processToken(e){switch(e.type){case zs.CHARACTER:this.onCharacter(e);break;case zs.NULL_CHARACTER:this.onNullCharacter(e);break;case zs.COMMENT:this.onComment(e);break;case zs.DOCTYPE:this.onDoctype(e);break;case zs.START_TAG:this._processStartTag(e);break;case zs.END_TAG:this.onEndTag(e);break;case zs.EOF:this.onEof(e);break;case zs.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return function(e,t,n,i){return(!i||i===js.HTML)&&function(e,t,n){if(t===js.MATHML&&e===Ws.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===Gs.ENCODING){const t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===js.SVG&&(e===Ws.FOREIGN_OBJECT||e===Ws.DESC||e===Ws.TITLE)}(e,t,n)||(!i||i===js.MATHML)&&function(e,t){return t===js.MATHML&&(e===Ws.MI||e===Ws.MO||e===Ws.MN||e===Ws.MS||e===Ws.MTEXT)}(e,t)}(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===va.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ba.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Ws.P),this.openElements.popUntilTagNamePopped(Ws.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Ws.TR:return void(this.insertionMode=Ba.IN_ROW);case Ws.TBODY:case Ws.THEAD:case Ws.TFOOT:return void(this.insertionMode=Ba.IN_TABLE_BODY);case Ws.CAPTION:return void(this.insertionMode=Ba.IN_CAPTION);case Ws.COLGROUP:return void(this.insertionMode=Ba.IN_COLUMN_GROUP);case Ws.TABLE:return void(this.insertionMode=Ba.IN_TABLE);case Ws.BODY:return void(this.insertionMode=Ba.IN_BODY);case Ws.FRAMESET:return void(this.insertionMode=Ba.IN_FRAMESET);case Ws.SELECT:return void this._resetInsertionModeForSelect(e);case Ws.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Ws.HTML:return void(this.insertionMode=this.headElement?Ba.AFTER_HEAD:Ba.BEFORE_HEAD);case Ws.TD:case Ws.TH:if(e>0)return void(this.insertionMode=Ba.IN_CELL);break;case Ws.HEAD:if(e>0)return void(this.insertionMode=Ba.IN_HEAD)}this.insertionMode=Ba.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===Ws.TEMPLATE)break;if(e===Ws.TABLE)return void(this.insertionMode=Ba.IN_SELECT_IN_TABLE)}this.insertionMode=Ba.IN_SELECT}_isElementCausesFosterParenting(e){return Ha.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case Ws.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===js.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case Ws.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return Zs[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Ba.INITIAL:Ja(this,e);break;case Ba.BEFORE_HTML:eo(this,e);break;case Ba.BEFORE_HEAD:to(this,e);break;case Ba.IN_HEAD:ro(this,e);break;case Ba.IN_HEAD_NO_SCRIPT:so(this,e);break;case Ba.AFTER_HEAD:ao(this,e);break;case Ba.IN_BODY:case Ba.IN_CAPTION:case Ba.IN_CELL:case Ba.IN_TEMPLATE:co(this,e);break;case Ba.TEXT:case Ba.IN_SELECT:case Ba.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Ba.IN_TABLE:case Ba.IN_TABLE_BODY:case Ba.IN_ROW:yo(this,e);break;case Ba.IN_TABLE_TEXT:So(this,e);break;case Ba.IN_COLUMN_GROUP:Do(this,e);break;case Ba.AFTER_BODY:Uo(this,e);break;case Ba.AFTER_AFTER_BODY:qo(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=Is,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Ba.INITIAL:Ja(this,e);break;case Ba.BEFORE_HTML:eo(this,e);break;case Ba.BEFORE_HEAD:to(this,e);break;case Ba.IN_HEAD:ro(this,e);break;case Ba.IN_HEAD_NO_SCRIPT:so(this,e);break;case Ba.AFTER_HEAD:ao(this,e);break;case Ba.TEXT:this._insertCharacters(e);break;case Ba.IN_TABLE:case Ba.IN_TABLE_BODY:case Ba.IN_ROW:yo(this,e);break;case Ba.IN_COLUMN_GROUP:Do(this,e);break;case Ba.AFTER_BODY:Uo(this,e);break;case Ba.AFTER_AFTER_BODY:qo(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)$a(this,e);else switch(this.insertionMode){case Ba.INITIAL:case Ba.BEFORE_HTML:case Ba.BEFORE_HEAD:case Ba.IN_HEAD:case Ba.IN_HEAD_NO_SCRIPT:case Ba.AFTER_HEAD:case Ba.IN_BODY:case Ba.IN_TABLE:case Ba.IN_CAPTION:case Ba.IN_COLUMN_GROUP:case Ba.IN_TABLE_BODY:case Ba.IN_ROW:case Ba.IN_CELL:case Ba.IN_SELECT:case Ba.IN_SELECT_IN_TABLE:case Ba.IN_TEMPLATE:case Ba.IN_FRAMESET:case Ba.AFTER_FRAMESET:$a(this,e);break;case Ba.IN_TABLE_TEXT:xo(this,e);break;case Ba.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Ba.AFTER_AFTER_BODY:case Ba.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Ba.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?Vs.QUIRKS:function(e){if(e.name!==xa)return Vs.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Vs.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),Da.has(n))return Vs.QUIRKS;let e=null===t?Ca:Aa;if(La(n,e))return Vs.QUIRKS;if(e=null===t?_a:Ra,La(n,e))return Vs.LIMITED_QUIRKS}return Vs.NO_QUIRKS}(t);(function(e){return e.name===xa&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,Fs.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Ba.BEFORE_HTML}(this,e);break;case Ba.BEFORE_HEAD:case Ba.IN_HEAD:case Ba.IN_HEAD_NO_SCRIPT:case Ba.AFTER_HEAD:this._err(e,Fs.misplacedDoctype);break;case Ba.IN_TABLE_TEXT:xo(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,Fs.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===Ws.FONT&&e.attrs.some((({name:e})=>e===Gs.COLOR||e===Gs.SIZE||e===Gs.FACE))||Pa.has(t)}(t))Bo(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===js.MATHML?Ma(t):i===js.SVG&&(function(e){const t=Na.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=Qs(e.tagName))}(t),Ua(t)),qa(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Ba.INITIAL:Ja(this,e);break;case Ba.BEFORE_HTML:!function(e,t){t.tagID===Ws.HTML?(e._insertElement(t,js.HTML),e.insertionMode=Ba.BEFORE_HEAD):eo(e,t)}(this,e);break;case Ba.BEFORE_HEAD:!function(e,t){switch(t.tagID){case Ws.HTML:mo(e,t);break;case Ws.HEAD:e._insertElement(t,js.HTML),e.headElement=e.openElements.current,e.insertionMode=Ba.IN_HEAD;break;default:to(e,t)}}(this,e);break;case Ba.IN_HEAD:no(this,e);break;case Ba.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Ws.HTML:mo(e,t);break;case Ws.BASEFONT:case Ws.BGSOUND:case Ws.HEAD:case Ws.LINK:case Ws.META:case Ws.NOFRAMES:case Ws.STYLE:no(e,t);break;case Ws.NOSCRIPT:e._err(t,Fs.nestedNoscriptInHead);break;default:so(e,t)}}(this,e);break;case Ba.AFTER_HEAD:!function(e,t){switch(t.tagID){case Ws.HTML:mo(e,t);break;case Ws.BODY:e._insertElement(t,js.HTML),e.framesetOk=!1,e.insertionMode=Ba.IN_BODY;break;case Ws.FRAMESET:e._insertElement(t,js.HTML),e.insertionMode=Ba.IN_FRAMESET;break;case Ws.BASE:case Ws.BASEFONT:case Ws.BGSOUND:case Ws.LINK:case Ws.META:case Ws.NOFRAMES:case Ws.SCRIPT:case Ws.STYLE:case Ws.TEMPLATE:case Ws.TITLE:e._err(t,Fs.abandonedHeadElementChild),e.openElements.push(e.headElement,Ws.HEAD),no(e,t),e.openElements.remove(e.headElement);break;case Ws.HEAD:e._err(t,Fs.misplacedStartTagForHeadElement);break;default:ao(e,t)}}(this,e);break;case Ba.IN_BODY:mo(this,e);break;case Ba.IN_TABLE:Eo(this,e);break;case Ba.IN_TABLE_TEXT:xo(this,e);break;case Ba.IN_CAPTION:!function(e,t){Ao.has(t.tagID)?e.openElements.hasInTableScope(Ws.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ws.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ba.IN_TABLE,Eo(e,t)):mo(e,t)}(this,e);break;case Ba.IN_COLUMN_GROUP:Co(this,e);break;case Ba.IN_TABLE_BODY:_o(this,e);break;case Ba.IN_ROW:Lo(this,e);break;case Ba.IN_CELL:!function(e,t){Ao.has(t.tagID)?(e.openElements.hasInTableScope(Ws.TD)||e.openElements.hasInTableScope(Ws.TH))&&(e._closeTableCell(),Lo(e,t)):mo(e,t)}(this,e);break;case Ba.IN_SELECT:Oo(this,e);break;case Ba.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Ws.CAPTION||n===Ws.TABLE||n===Ws.TBODY||n===Ws.TFOOT||n===Ws.THEAD||n===Ws.TR||n===Ws.TD||n===Ws.TH?(e.openElements.popUntilTagNamePopped(Ws.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Oo(e,t)}(this,e);break;case Ba.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Ws.BASE:case Ws.BASEFONT:case Ws.BGSOUND:case Ws.LINK:case Ws.META:case Ws.NOFRAMES:case Ws.SCRIPT:case Ws.STYLE:case Ws.TEMPLATE:case Ws.TITLE:no(e,t);break;case Ws.CAPTION:case Ws.COLGROUP:case Ws.TBODY:case Ws.TFOOT:case Ws.THEAD:e.tmplInsertionModeStack[0]=Ba.IN_TABLE,e.insertionMode=Ba.IN_TABLE,Eo(e,t);break;case Ws.COL:e.tmplInsertionModeStack[0]=Ba.IN_COLUMN_GROUP,e.insertionMode=Ba.IN_COLUMN_GROUP,Co(e,t);break;case Ws.TR:e.tmplInsertionModeStack[0]=Ba.IN_TABLE_BODY,e.insertionMode=Ba.IN_TABLE_BODY,_o(e,t);break;case Ws.TD:case Ws.TH:e.tmplInsertionModeStack[0]=Ba.IN_ROW,e.insertionMode=Ba.IN_ROW,Lo(e,t);break;default:e.tmplInsertionModeStack[0]=Ba.IN_BODY,e.insertionMode=Ba.IN_BODY,mo(e,t)}}(this,e);break;case Ba.AFTER_BODY:!function(e,t){t.tagID===Ws.HTML?mo(e,t):Uo(e,t)}(this,e);break;case Ba.IN_FRAMESET:!function(e,t){switch(t.tagID){case Ws.HTML:mo(e,t);break;case Ws.FRAMESET:e._insertElement(t,js.HTML);break;case Ws.FRAME:e._appendElement(t,js.HTML),t.ackSelfClosing=!0;break;case Ws.NOFRAMES:no(e,t)}}(this,e);break;case Ba.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Ws.HTML:mo(e,t);break;case Ws.NOFRAMES:no(e,t)}}(this,e);break;case Ba.AFTER_AFTER_BODY:!function(e,t){t.tagID===Ws.HTML?mo(e,t):qo(e,t)}(this,e);break;case Ba.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Ws.HTML:mo(e,t);break;case Ws.NOFRAMES:no(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===Ws.P||t.tagID===Ws.BR)return Bo(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===js.HTML){e._endTagOutsideForeignContent(t);break}const r=e.treeAdapter.getTagName(i);if(r.toLowerCase()===t.tagName){t.tagName=r,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Ba.INITIAL:Ja(this,e);break;case Ba.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==Ws.HTML&&n!==Ws.HEAD&&n!==Ws.BODY&&n!==Ws.BR||eo(e,t)}(this,e);break;case Ba.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===Ws.HEAD||n===Ws.BODY||n===Ws.HTML||n===Ws.BR?to(e,t):e._err(t,Fs.endTagWithoutMatchingOpenElement)}(this,e);break;case Ba.IN_HEAD:!function(e,t){switch(t.tagID){case Ws.HEAD:e.openElements.pop(),e.insertionMode=Ba.AFTER_HEAD;break;case Ws.BODY:case Ws.BR:case Ws.HTML:ro(e,t);break;case Ws.TEMPLATE:io(e,t);break;default:e._err(t,Fs.endTagWithoutMatchingOpenElement)}}(this,e);break;case Ba.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Ws.NOSCRIPT:e.openElements.pop(),e.insertionMode=Ba.IN_HEAD;break;case Ws.BR:so(e,t);break;default:e._err(t,Fs.endTagWithoutMatchingOpenElement)}}(this,e);break;case Ba.AFTER_HEAD:!function(e,t){switch(t.tagID){case Ws.BODY:case Ws.HTML:case Ws.BR:ao(e,t);break;case Ws.TEMPLATE:io(e,t);break;default:e._err(t,Fs.endTagWithoutMatchingOpenElement)}}(this,e);break;case Ba.IN_BODY:bo(this,e);break;case Ba.TEXT:!function(e,t){var n;t.tagID===Ws.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Ba.IN_TABLE:vo(this,e);break;case Ba.IN_TABLE_TEXT:xo(this,e);break;case Ba.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case Ws.CAPTION:case Ws.TABLE:e.openElements.hasInTableScope(Ws.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ws.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ba.IN_TABLE,n===Ws.TABLE&&vo(e,t));break;case Ws.BODY:case Ws.COL:case Ws.COLGROUP:case Ws.HTML:case Ws.TBODY:case Ws.TD:case Ws.TFOOT:case Ws.TH:case Ws.THEAD:case Ws.TR:break;default:bo(e,t)}}(this,e);break;case Ba.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case Ws.COLGROUP:e.openElements.currentTagId===Ws.COLGROUP&&(e.openElements.pop(),e.insertionMode=Ba.IN_TABLE);break;case Ws.TEMPLATE:io(e,t);break;case Ws.COL:break;default:Do(e,t)}}(this,e);break;case Ba.IN_TABLE_BODY:Ro(this,e);break;case Ba.IN_ROW:Io(this,e);break;case Ba.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case Ws.TD:case Ws.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Ba.IN_ROW);break;case Ws.TABLE:case Ws.TBODY:case Ws.TFOOT:case Ws.THEAD:case Ws.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Io(e,t));break;case Ws.BODY:case Ws.CAPTION:case Ws.COL:case Ws.COLGROUP:case Ws.HTML:break;default:bo(e,t)}}(this,e);break;case Ba.IN_SELECT:No(this,e);break;case Ba.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Ws.CAPTION||n===Ws.TABLE||n===Ws.TBODY||n===Ws.TFOOT||n===Ws.THEAD||n===Ws.TR||n===Ws.TD||n===Ws.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Ws.SELECT),e._resetInsertionMode(),e.onEndTag(t)):No(e,t)}(this,e);break;case Ba.IN_TEMPLATE:!function(e,t){t.tagID===Ws.TEMPLATE&&io(e,t)}(this,e);break;case Ba.AFTER_BODY:Mo(this,e);break;case Ba.IN_FRAMESET:!function(e,t){t.tagID!==Ws.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===Ws.FRAMESET||(e.insertionMode=Ba.AFTER_FRAMESET))}(this,e);break;case Ba.AFTER_FRAMESET:!function(e,t){t.tagID===Ws.HTML&&(e.insertionMode=Ba.AFTER_AFTER_FRAMESET)}(this,e);break;case Ba.AFTER_AFTER_BODY:qo(this,e)}}onEof(e){switch(this.insertionMode){case Ba.INITIAL:Ja(this,e);break;case Ba.BEFORE_HTML:eo(this,e);break;case Ba.BEFORE_HEAD:to(this,e);break;case Ba.IN_HEAD:ro(this,e);break;case Ba.IN_HEAD_NO_SCRIPT:so(this,e);break;case Ba.AFTER_HEAD:ao(this,e);break;case Ba.IN_BODY:case Ba.IN_TABLE:case Ba.IN_CAPTION:case Ba.IN_COLUMN_GROUP:case Ba.IN_TABLE_BODY:case Ba.IN_ROW:case Ba.IN_CELL:case Ba.IN_SELECT:case Ba.IN_SELECT_IN_TABLE:ko(this,e);break;case Ba.TEXT:!function(e,t){e._err(t,Fs.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Ba.IN_TABLE_TEXT:xo(this,e);break;case Ba.IN_TEMPLATE:Po(this,e);break;case Ba.AFTER_BODY:case Ba.IN_FRAMESET:case Ba.AFTER_FRAMESET:case Ba.AFTER_AFTER_BODY:case Ba.AFTER_AFTER_FRAMESET:Za(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Os.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Ba.IN_HEAD:case Ba.IN_HEAD_NO_SCRIPT:case Ba.AFTER_HEAD:case Ba.TEXT:case Ba.IN_COLUMN_GROUP:case Ba.IN_SELECT:case Ba.IN_SELECT_IN_TABLE:case Ba.IN_FRAMESET:case Ba.AFTER_FRAMESET:this._insertCharacters(e);break;case Ba.IN_BODY:case Ba.IN_CAPTION:case Ba.IN_CELL:case Ba.IN_TEMPLATE:case Ba.AFTER_BODY:case Ba.AFTER_AFTER_BODY:case Ba.AFTER_AFTER_FRAMESET:lo(this,e);break;case Ba.IN_TABLE:case Ba.IN_TABLE_BODY:case Ba.IN_ROW:yo(this,e);break;case Ba.IN_TABLE_TEXT:To(this,e)}}};function Ga(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):go(e,t),n}function Va(e,t){let n=null,i=e.openElements.stackTop;for(;i>=0;i--){const r=e.openElements.items[i];if(r===t.element)break;e._isSpecialElement(r,e.openElements.tagIDs[i])&&(n=r)}return n||(e.openElements.shortenToLength(i<0?0:i),e.activeFormattingElements.removeEntry(t)),n}function Ya(e,t,n){let i=t,r=e.openElements.getCommonAncestor(t);for(let s=0,a=r;a!==n;s++,a=r){r=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),o=n&&s>=3;!n||o?(o&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=Wa(e,n),i===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(a,i),i=a)}return i}function Wa(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function Ka(e,t,n){const i=Qs(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const r=e.treeAdapter.getNamespaceURI(t);i===Ws.TEMPLATE&&r===js.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Xa(e,t,n){const i=e.treeAdapter.getNamespaceURI(n.element),{token:r}=n,s=e.treeAdapter.createElement(r.tagName,i,r.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,r),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,r.tagID)}function Qa(e,t){for(let n=0;n<8;n++){const n=Ga(e,t);if(!n)break;const i=Va(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const r=Ya(e,i,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),s&&Ka(e,s,r),Xa(e,i,n)}}function $a(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Za(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(n);i&&!i.endTag&&e._setEndLocation(n,t)}}}}function Ja(e,t){e._err(t,Fs.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Vs.QUIRKS),e.insertionMode=Ba.BEFORE_HTML,e._processToken(t)}function eo(e,t){e._insertFakeRootElement(),e.insertionMode=Ba.BEFORE_HEAD,e._processToken(t)}function to(e,t){e._insertFakeElement(Ys.HEAD,Ws.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ba.IN_HEAD,e._processToken(t)}function no(e,t){switch(t.tagID){case Ws.HTML:mo(e,t);break;case Ws.BASE:case Ws.BASEFONT:case Ws.BGSOUND:case Ws.LINK:case Ws.META:e._appendElement(t,js.HTML),t.ackSelfClosing=!0;break;case Ws.TITLE:e._switchToTextParsing(t,ta.RCDATA);break;case Ws.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,ta.RAWTEXT):(e._insertElement(t,js.HTML),e.insertionMode=Ba.IN_HEAD_NO_SCRIPT);break;case Ws.NOFRAMES:case Ws.STYLE:e._switchToTextParsing(t,ta.RAWTEXT);break;case Ws.SCRIPT:e._switchToTextParsing(t,ta.SCRIPT_DATA);break;case Ws.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ba.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Ba.IN_TEMPLATE);break;case Ws.HEAD:e._err(t,Fs.misplacedStartTagForHeadElement);break;default:ro(e,t)}}function io(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==Ws.TEMPLATE&&e._err(t,Fs.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Ws.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Fs.endTagWithoutMatchingOpenElement)}function ro(e,t){e.openElements.pop(),e.insertionMode=Ba.AFTER_HEAD,e._processToken(t)}function so(e,t){e._err(t,t.type===zs.EOF?Fs.openElementsLeftAfterEof:Fs.disallowedContentInNoscriptInHead),e.openElements.pop(),e.insertionMode=Ba.IN_HEAD,e._processToken(t)}function ao(e,t){e._insertFakeElement(Ys.BODY,Ws.BODY),e.insertionMode=Ba.IN_BODY,oo(e,t)}function oo(e,t){switch(t.type){case zs.CHARACTER:co(e,t);break;case zs.WHITESPACE_CHARACTER:lo(e,t);break;case zs.COMMENT:$a(e,t);break;case zs.START_TAG:mo(e,t);break;case zs.END_TAG:bo(e,t);break;case zs.EOF:ko(e,t)}}function lo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function co(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function uo(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,js.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ho(e){const t=Ks(e,Gs.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function fo(e,t){e._switchToTextParsing(t,ta.RAWTEXT)}function po(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,js.HTML)}function mo(e,t){switch(t.tagID){case Ws.I:case Ws.S:case Ws.B:case Ws.U:case Ws.EM:case Ws.TT:case Ws.BIG:case Ws.CODE:case Ws.FONT:case Ws.SMALL:case Ws.STRIKE:case Ws.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,js.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Ws.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Ys.A);n&&(Qa(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,js.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Ws.H1:case Ws.H2:case Ws.H3:case Ws.H4:case Ws.H5:case Ws.H6:!function(e,t){e.openElements.hasInButtonScope(Ws.P)&&e._closePElement(),Js.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,js.HTML)}(e,t);break;case Ws.P:case Ws.DL:case Ws.OL:case Ws.UL:case Ws.DIV:case Ws.DIR:case Ws.NAV:case Ws.MAIN:case Ws.MENU:case Ws.ASIDE:case Ws.CENTER:case Ws.FIGURE:case Ws.FOOTER:case Ws.HEADER:case Ws.HGROUP:case Ws.DIALOG:case Ws.DETAILS:case Ws.ADDRESS:case Ws.ARTICLE:case Ws.SEARCH:case Ws.SECTION:case Ws.SUMMARY:case Ws.FIELDSET:case Ws.BLOCKQUOTE:case Ws.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(Ws.P)&&e._closePElement(),e._insertElement(t,js.HTML)}(e,t);break;case Ws.LI:case Ws.DD:case Ws.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const i=e.openElements.tagIDs[t];if(n===Ws.LI&&i===Ws.LI||(n===Ws.DD||n===Ws.DT)&&(i===Ws.DD||i===Ws.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==Ws.ADDRESS&&i!==Ws.DIV&&i!==Ws.P&&e._isSpecialElement(e.openElements.items[t],i))break}e.openElements.hasInButtonScope(Ws.P)&&e._closePElement(),e._insertElement(t,js.HTML)}(e,t);break;case Ws.BR:case Ws.IMG:case Ws.WBR:case Ws.AREA:case Ws.EMBED:case Ws.KEYGEN:uo(e,t);break;case Ws.HR:!function(e,t){e.openElements.hasInButtonScope(Ws.P)&&e._closePElement(),e._appendElement(t,js.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case Ws.RB:case Ws.RTC:!function(e,t){e.openElements.hasInScope(Ws.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,js.HTML)}(e,t);break;case Ws.RT:case Ws.RP:!function(e,t){e.openElements.hasInScope(Ws.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Ws.RTC),e._insertElement(t,js.HTML)}(e,t);break;case Ws.PRE:case Ws.LISTING:!function(e,t){e.openElements.hasInButtonScope(Ws.P)&&e._closePElement(),e._insertElement(t,js.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Ws.XMP:!function(e,t){e.openElements.hasInButtonScope(Ws.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,ta.RAWTEXT)}(e,t);break;case Ws.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Ua(t),qa(t),t.selfClosing?e._appendElement(t,js.SVG):e._insertElement(t,js.SVG),t.ackSelfClosing=!0}(e,t);break;case Ws.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case Ws.BASE:case Ws.LINK:case Ws.META:case Ws.STYLE:case Ws.TITLE:case Ws.SCRIPT:case Ws.BGSOUND:case Ws.BASEFONT:case Ws.TEMPLATE:no(e,t);break;case Ws.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case Ws.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Ws.P)&&e._closePElement(),e._insertElement(t,js.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case Ws.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Ws.NOBR)&&(Qa(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,js.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Ws.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Ma(t),qa(t),t.selfClosing?e._appendElement(t,js.MATHML):e._insertElement(t,js.MATHML),t.ackSelfClosing=!0}(e,t);break;case Ws.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Vs.QUIRKS&&e.openElements.hasInButtonScope(Ws.P)&&e._closePElement(),e._insertElement(t,js.HTML),e.framesetOk=!1,e.insertionMode=Ba.IN_TABLE}(e,t);break;case Ws.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,js.HTML),ho(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Ws.PARAM:case Ws.TRACK:case Ws.SOURCE:!function(e,t){e._appendElement(t,js.HTML),t.ackSelfClosing=!0}(e,t);break;case Ws.IMAGE:!function(e,t){t.tagName=Ys.IMG,t.tagID=Ws.IMG,uo(e,t)}(e,t);break;case Ws.BUTTON:!function(e,t){e.openElements.hasInScope(Ws.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ws.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,js.HTML),e.framesetOk=!1}(e,t);break;case Ws.APPLET:case Ws.OBJECT:case Ws.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,js.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case Ws.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,ta.RAWTEXT)}(e,t);break;case Ws.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,js.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Ba.IN_TABLE||e.insertionMode===Ba.IN_CAPTION||e.insertionMode===Ba.IN_TABLE_BODY||e.insertionMode===Ba.IN_ROW||e.insertionMode===Ba.IN_CELL?Ba.IN_SELECT_IN_TABLE:Ba.IN_SELECT}(e,t);break;case Ws.OPTION:case Ws.OPTGROUP:!function(e,t){e.openElements.currentTagId===Ws.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,js.HTML)}(e,t);break;case Ws.NOEMBED:case Ws.NOFRAMES:fo(e,t);break;case Ws.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,js.HTML),e.insertionMode=Ba.IN_FRAMESET)}(e,t);break;case Ws.TEXTAREA:!function(e,t){e._insertElement(t,js.HTML),e.skipNextNewLine=!0,e.tokenizer.state=ta.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ba.TEXT}(e,t);break;case Ws.NOSCRIPT:e.options.scriptingEnabled?fo(e,t):po(e,t);break;case Ws.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(Ws.P)&&e._closePElement(),e._insertElement(t,js.HTML),e.tokenizer.state=ta.PLAINTEXT}(e,t);break;case Ws.COL:case Ws.TH:case Ws.TD:case Ws.TR:case Ws.HEAD:case Ws.FRAME:case Ws.TBODY:case Ws.TFOOT:case Ws.THEAD:case Ws.CAPTION:case Ws.COLGROUP:break;default:po(e,t)}}function go(e,t){const n=t.tagName,i=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const r=e.openElements.items[t],s=e.openElements.tagIDs[t];if(i===s&&(i!==Ws.UNKNOWN||e.treeAdapter.getTagName(r)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(r,s))break}}function bo(e,t){switch(t.tagID){case Ws.A:case Ws.B:case Ws.I:case Ws.S:case Ws.U:case Ws.EM:case Ws.TT:case Ws.BIG:case Ws.CODE:case Ws.FONT:case Ws.NOBR:case Ws.SMALL:case Ws.STRIKE:case Ws.STRONG:Qa(e,t);break;case Ws.P:!function(e){e.openElements.hasInButtonScope(Ws.P)||e._insertFakeElement(Ys.P,Ws.P),e._closePElement()}(e);break;case Ws.DL:case Ws.UL:case Ws.OL:case Ws.DIR:case Ws.DIV:case Ws.NAV:case Ws.PRE:case Ws.MAIN:case Ws.MENU:case Ws.ASIDE:case Ws.BUTTON:case Ws.CENTER:case Ws.FIGURE:case Ws.FOOTER:case Ws.HEADER:case Ws.HGROUP:case Ws.DIALOG:case Ws.ADDRESS:case Ws.ARTICLE:case Ws.DETAILS:case Ws.SEARCH:case Ws.SECTION:case Ws.SUMMARY:case Ws.LISTING:case Ws.FIELDSET:case Ws.BLOCKQUOTE:case Ws.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Ws.LI:!function(e){e.openElements.hasInListItemScope(Ws.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Ws.LI),e.openElements.popUntilTagNamePopped(Ws.LI))}(e);break;case Ws.DD:case Ws.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Ws.H1:case Ws.H2:case Ws.H3:case Ws.H4:case Ws.H5:case Ws.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Ws.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Ys.BR,Ws.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case Ws.BODY:!function(e,t){if(e.openElements.hasInScope(Ws.BODY)&&(e.insertionMode=Ba.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case Ws.HTML:!function(e,t){e.openElements.hasInScope(Ws.BODY)&&(e.insertionMode=Ba.AFTER_BODY,Mo(e,t))}(e,t);break;case Ws.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Ws.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Ws.FORM):n&&e.openElements.remove(n))}(e);break;case Ws.APPLET:case Ws.OBJECT:case Ws.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case Ws.TEMPLATE:io(e,t);break;default:go(e,t)}}function ko(e,t){e.tmplInsertionModeStack.length>0?Po(e,t):Za(e,t)}function yo(e,t){if(Ha.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ba.IN_TABLE_TEXT,t.type){case zs.CHARACTER:So(e,t);break;case zs.WHITESPACE_CHARACTER:To(e,t)}else wo(e,t)}function Eo(e,t){switch(t.tagID){case Ws.TD:case Ws.TH:case Ws.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ys.TBODY,Ws.TBODY),e.insertionMode=Ba.IN_TABLE_BODY,_o(e,t)}(e,t);break;case Ws.STYLE:case Ws.SCRIPT:case Ws.TEMPLATE:no(e,t);break;case Ws.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ys.COLGROUP,Ws.COLGROUP),e.insertionMode=Ba.IN_COLUMN_GROUP,Co(e,t)}(e,t);break;case Ws.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,js.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case Ws.TABLE:!function(e,t){e.openElements.hasInTableScope(Ws.TABLE)&&(e.openElements.popUntilTagNamePopped(Ws.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Ws.TBODY:case Ws.TFOOT:case Ws.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,js.HTML),e.insertionMode=Ba.IN_TABLE_BODY}(e,t);break;case Ws.INPUT:!function(e,t){ho(t)?e._appendElement(t,js.HTML):wo(e,t),t.ackSelfClosing=!0}(e,t);break;case Ws.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,js.HTML),e.insertionMode=Ba.IN_CAPTION}(e,t);break;case Ws.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,js.HTML),e.insertionMode=Ba.IN_COLUMN_GROUP}(e,t);break;default:wo(e,t)}}function vo(e,t){switch(t.tagID){case Ws.TABLE:e.openElements.hasInTableScope(Ws.TABLE)&&(e.openElements.popUntilTagNamePopped(Ws.TABLE),e._resetInsertionMode());break;case Ws.TEMPLATE:io(e,t);break;case Ws.BODY:case Ws.CAPTION:case Ws.COL:case Ws.COLGROUP:case Ws.HTML:case Ws.TBODY:case Ws.TD:case Ws.TFOOT:case Ws.TH:case Ws.THEAD:case Ws.TR:break;default:wo(e,t)}}function wo(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,oo(e,t),e.fosterParentingEnabled=n}function To(e,t){e.pendingCharacterTokens.push(t)}function So(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function xo(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)wo(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Ao=new Set([Ws.CAPTION,Ws.COL,Ws.COLGROUP,Ws.TBODY,Ws.TD,Ws.TFOOT,Ws.TH,Ws.THEAD,Ws.TR]);function Co(e,t){switch(t.tagID){case Ws.HTML:mo(e,t);break;case Ws.COL:e._appendElement(t,js.HTML),t.ackSelfClosing=!0;break;case Ws.TEMPLATE:no(e,t);break;default:Do(e,t)}}function Do(e,t){e.openElements.currentTagId===Ws.COLGROUP&&(e.openElements.pop(),e.insertionMode=Ba.IN_TABLE,e._processToken(t))}function _o(e,t){switch(t.tagID){case Ws.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,js.HTML),e.insertionMode=Ba.IN_ROW;break;case Ws.TH:case Ws.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Ys.TR,Ws.TR),e.insertionMode=Ba.IN_ROW,Lo(e,t);break;case Ws.CAPTION:case Ws.COL:case Ws.COLGROUP:case Ws.TBODY:case Ws.TFOOT:case Ws.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Ba.IN_TABLE,Eo(e,t));break;default:Eo(e,t)}}function Ro(e,t){const n=t.tagID;switch(t.tagID){case Ws.TBODY:case Ws.TFOOT:case Ws.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Ba.IN_TABLE);break;case Ws.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Ba.IN_TABLE,vo(e,t));break;case Ws.BODY:case Ws.CAPTION:case Ws.COL:case Ws.COLGROUP:case Ws.HTML:case Ws.TD:case Ws.TH:case Ws.TR:break;default:vo(e,t)}}function Lo(e,t){switch(t.tagID){case Ws.TH:case Ws.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,js.HTML),e.insertionMode=Ba.IN_CELL,e.activeFormattingElements.insertMarker();break;case Ws.CAPTION:case Ws.COL:case Ws.COLGROUP:case Ws.TBODY:case Ws.TFOOT:case Ws.THEAD:case Ws.TR:e.openElements.hasInTableScope(Ws.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Ba.IN_TABLE_BODY,_o(e,t));break;default:Eo(e,t)}}function Io(e,t){switch(t.tagID){case Ws.TR:e.openElements.hasInTableScope(Ws.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Ba.IN_TABLE_BODY);break;case Ws.TABLE:e.openElements.hasInTableScope(Ws.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Ba.IN_TABLE_BODY,Ro(e,t));break;case Ws.TBODY:case Ws.TFOOT:case Ws.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(Ws.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Ba.IN_TABLE_BODY,Ro(e,t));break;case Ws.BODY:case Ws.CAPTION:case Ws.COL:case Ws.COLGROUP:case Ws.HTML:case Ws.TD:case Ws.TH:break;default:vo(e,t)}}function Oo(e,t){switch(t.tagID){case Ws.HTML:mo(e,t);break;case Ws.OPTION:e.openElements.currentTagId===Ws.OPTION&&e.openElements.pop(),e._insertElement(t,js.HTML);break;case Ws.OPTGROUP:e.openElements.currentTagId===Ws.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Ws.OPTGROUP&&e.openElements.pop(),e._insertElement(t,js.HTML);break;case Ws.HR:e.openElements.currentTagId===Ws.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Ws.OPTGROUP&&e.openElements.pop(),e._appendElement(t,js.HTML),t.ackSelfClosing=!0;break;case Ws.INPUT:case Ws.KEYGEN:case Ws.TEXTAREA:case Ws.SELECT:e.openElements.hasInSelectScope(Ws.SELECT)&&(e.openElements.popUntilTagNamePopped(Ws.SELECT),e._resetInsertionMode(),t.tagID!==Ws.SELECT&&e._processStartTag(t));break;case Ws.SCRIPT:case Ws.TEMPLATE:no(e,t)}}function No(e,t){switch(t.tagID){case Ws.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===Ws.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Ws.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===Ws.OPTGROUP&&e.openElements.pop();break;case Ws.OPTION:e.openElements.currentTagId===Ws.OPTION&&e.openElements.pop();break;case Ws.SELECT:e.openElements.hasInSelectScope(Ws.SELECT)&&(e.openElements.popUntilTagNamePopped(Ws.SELECT),e._resetInsertionMode());break;case Ws.TEMPLATE:io(e,t)}}function Po(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Ws.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Za(e,t)}function Mo(e,t){var n;if(t.tagID===Ws.HTML){if(e.fragmentContext||(e.insertionMode=Ba.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Ws.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(i))||void 0===n?void 0:n.endTag)&&e._setEndLocation(i,t)}}else Uo(e,t)}function Uo(e,t){e.insertionMode=Ba.IN_BODY,oo(e,t)}function qo(e,t){e.insertionMode=Ba.IN_BODY,oo(e,t)}function Bo(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==js.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Fo(e,t){return ja.parse(e,t)}function Ho(e,t,n){"string"==typeof e&&(n=t,t=e,e=null);const i=ja.getFragmentParser(e,n);return i.tokenizer.write(t,!0),i.getFragment()}function zo(e){return Go(e&&e.line)+":"+Go(e&&e.column)}function jo(e){return zo(e&&e.start)+"-"+zo(e&&e.end)}function Go(e){return e&&"number"==typeof e?e:1}class Vo extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let i="",r={},s=!1;if(t&&(r="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?i=e:!r.cause&&e&&(s=!0,i=e.message,r.cause=e),!r.ruleId&&!r.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?r.ruleId=n:(r.source=n.slice(0,e),r.ruleId=n.slice(e+1))}if(!r.place&&r.ancestors&&r.ancestors){const e=r.ancestors[r.ancestors.length-1];e&&(r.place=e.position)}const a=r.place&&"start"in r.place?r.place.start:r.place;var o;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.message=i,this.line=a?a.line:void 0,this.name=((o=r.place)&&"object"==typeof o?"position"in o||"type"in o?jo(o.position):"start"in o||"end"in o?jo(o):"line"in o||"column"in o?zo(o):"":"")||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=s&&r.cause&&"string"==typeof r.cause.stack?r.cause.stack:""}}Vo.prototype.file="",Vo.prototype.name="",Vo.prototype.reason="",Vo.prototype.message="",Vo.prototype.stack="",Vo.prototype.column=void 0,Vo.prototype.line=void 0,Vo.prototype.ancestors=void 0,Vo.prototype.cause=void 0,Vo.prototype.fatal=void 0,Vo.prototype.place=void 0,Vo.prototype.ruleId=void 0,Vo.prototype.source=void 0;const Yo=function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');$o(e);let n,i=0,r=-1,s=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;s--;)if(47===e.codePointAt(s)){if(n){i=s+1;break}}else r<0&&(n=!0,r=s+1);return r<0?"":e.slice(i,r)}if(t===e)return"";let a=-1,o=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(n){i=s+1;break}}else a<0&&(n=!0,a=s+1),o>-1&&(e.codePointAt(s)===t.codePointAt(o--)?o<0&&(r=s):(o=-1,r=a));return i===r?r=a:r<0&&(r=e.length),e.slice(i,r)},Wo=function(e){if($o(e),0===e.length)return".";let t,n=-1,i=e.length;for(;--i;)if(47===e.codePointAt(i)){if(t){n=i;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},Ko=function(e){$o(e);let t,n=e.length,i=-1,r=0,s=-1,a=0;for(;n--;){const o=e.codePointAt(n);if(47!==o)i<0&&(t=!0,i=n+1),46===o?s<0?s=n:1!==a&&(a=1):s>-1&&(a=-1);else if(t){r=n+1;break}}return s<0||i<0||0===a||1===a&&s===i-1&&s===r+1?"":e.slice(s,i)},Xo=function(...e){let t,n=-1;for(;++n<e.length;)$o(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){$o(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,i,r="",s=0,a=-1,o=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===o);else if(a!==l-1&&2===o){if(r.length<2||2!==s||46!==r.codePointAt(r.length-1)||46!==r.codePointAt(r.length-2))if(r.length>2){if(i=r.lastIndexOf("/"),i!==r.length-1){i<0?(r="",s=0):(r=r.slice(0,i),s=r.length-1-r.lastIndexOf("/")),a=l,o=0;continue}}else if(r.length>0){r="",s=0,a=l,o=0;continue}t&&(r=r.length>0?r+"/..":"..",s=2)}else r.length>0?r+="/"+e.slice(a+1,l):r=e.slice(a+1,l),s=l-a-1;a=l,o=0}else 46===n&&o>-1?o++:o=-1}return r}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},Qo="/";function $o(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Zo=function(){return"/"};function Jo(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}const el=["history","path","basename","stem","extname","dirname"];class tl{constructor(e){let t;t=e?Jo(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Zo(),this.data={},this.history=[],this.messages=[];let n,i=-1;for(;++i<el.length;){const e=el[i];e in t&&null!=t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)el.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?Yo(this.path):void 0}set basename(e){il(e,"basename"),nl(e,"basename"),this.path=Xo(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Wo(this.path):void 0}set dirname(e){rl(this.basename,"dirname"),this.path=Xo(e||"",this.basename)}get extname(){return"string"==typeof this.path?Ko(this.path):void 0}set extname(e){if(nl(e,"extname"),rl(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Xo(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Jo(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!Jo(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),il(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?Yo(this.path,this.extname):void 0}set stem(e){il(e,"stem"),nl(e,"stem"),this.path=Xo(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const i=this.message(e,t,n);throw i.fatal=!0,i}info(e,t,n){const i=this.message(e,t,n);return i.fatal=void 0,i}message(e,t,n){const i=new Vo(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nl(e,t){if(e&&e.includes(Qo))throw new Error("`"+t+"` cannot be a path: did not expect `"+Qo+"`")}function il(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function rl(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const sl={abandonedHeadElementChild:{reason:"Unexpected metadata element after head",description:"Unexpected element after head. Expected the element before `</head>`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `--\x3e` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `<![CDATA[` in HTML. Remove it, use a comment, or encode special characters instead"},characterReferenceOutsideUnicodeRange:{reason:"Unexpected too big numeric character reference",description:"Unexpectedly high character reference. Expected character references to be at most hexadecimal 10ffff (or decimal 1114111)"},closingOfElementWithOpenChildElements:{reason:"Unexpected closing tag with open child elements",description:"Unexpectedly closing tag. Expected other tags to be closed first",url:!1},controlCharacterInInputStream:{reason:"Unexpected control character",description:"Unexpected control character `%x`. Expected a non-control code point, 0x00, or ASCII whitespace"},controlCharacterReference:{reason:"Unexpected control character reference",description:"Unexpectedly control character in reference. Expected a non-control code point, 0x00, or ASCII whitespace"},disallowedContentInNoscriptInHead:{reason:"Disallowed content inside `<noscript>` in `<head>`",description:"Unexpected text character `%c`. Only use text in `<noscript>`s in `<body>`",url:!1},duplicateAttribute:{reason:"Unexpected duplicate attribute",description:"Unexpectedly double attribute. Expected attributes to occur only once"},endTagWithAttributes:{reason:"Unexpected attribute on closing tag",description:"Unexpected attribute. Expected `>` instead"},endTagWithTrailingSolidus:{reason:"Unexpected slash at end of closing tag",description:"Unexpected `%c-1`. Expected `>` instead"},endTagWithoutMatchingOpenElement:{reason:"Unexpected unopened end tag",description:"Unexpected end tag. Expected no end tag or another end tag",url:!1},eofBeforeTagName:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected tag name instead"},eofInCdata:{reason:"Unexpected end of file in CDATA",description:"Unexpected end of file. Expected `]]>` to close the CDATA"},eofInComment:{reason:"Unexpected end of file in comment",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInDoctype:{reason:"Unexpected end of file in doctype",description:"Unexpected end of file. Expected a valid doctype (such as `<!doctype html>`)"},eofInElementThatCanContainOnlyText:{reason:"Unexpected end of file in element that can only contain text",description:"Unexpected end of file. Expected text or a closing tag",url:!1},eofInScriptHtmlCommentLikeText:{reason:"Unexpected end of file in comment inside script",description:"Unexpected end of file. Expected `--\x3e` to close the comment"},eofInTag:{reason:"Unexpected end of file in tag",description:"Unexpected end of file. Expected `>` to close the tag"},incorrectlyClosedComment:{reason:"Incorrectly closed comment",description:"Unexpected `%c-1`. Expected `--\x3e` to close the comment"},incorrectlyOpenedComment:{reason:"Incorrectly opened comment",description:"Unexpected `%c`. Expected `\x3c!--` to open the comment"},invalidCharacterSequenceAfterDoctypeName:{reason:"Invalid sequence after doctype name",description:"Unexpected sequence at `%c`. Expected `public` or `system`"},invalidFirstCharacterOfTagName:{reason:"Invalid first character in tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},misplacedDoctype:{reason:"Misplaced doctype",description:"Unexpected doctype. Expected doctype before head",url:!1},misplacedStartTagForHeadElement:{reason:"Misplaced `<head>` start tag",description:"Unexpected start tag `<head>`. Expected `<head>` directly after doctype",url:!1},missingAttributeValue:{reason:"Missing attribute value",description:"Unexpected `%c-1`. Expected an attribute value or no `%c-1` instead"},missingDoctype:{reason:"Missing doctype before other content",description:"Expected a `<!doctype html>` before anything else",url:!1},missingDoctypeName:{reason:"Missing doctype name",description:"Unexpected doctype end at `%c`. Expected `html` instead"},missingDoctypePublicIdentifier:{reason:"Missing public identifier in doctype",description:"Unexpected `%c`. Expected identifier for `public` instead"},missingDoctypeSystemIdentifier:{reason:"Missing system identifier in doctype",description:'Unexpected `%c`. Expected identifier for `system` instead (suggested: `"about:legacy-compat"`)'},missingEndTagName:{reason:"Missing name in end tag",description:"Unexpected `%c`. Expected an ASCII letter instead"},missingQuoteBeforeDoctypePublicIdentifier:{reason:"Missing quote before public identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingQuoteBeforeDoctypeSystemIdentifier:{reason:"Missing quote before system identifier in doctype",description:"Unexpected `%c`. Expected `\"` or `'` instead"},missingSemicolonAfterCharacterReference:{reason:"Missing semicolon after character reference",description:"Unexpected `%c`. Expected `;` instead"},missingWhitespaceAfterDoctypePublicKeyword:{reason:"Missing whitespace after public identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceAfterDoctypeSystemKeyword:{reason:"Missing whitespace after system identifier in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBeforeDoctypeName:{reason:"Missing whitespace before doctype name",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenAttributes:{reason:"Missing whitespace between attributes",description:"Unexpected `%c`. Expected ASCII whitespace instead"},missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:{reason:"Missing whitespace between public and system identifiers in doctype",description:"Unexpected `%c`. Expected ASCII whitespace instead"},nestedComment:{reason:"Unexpected nested comment",description:"Unexpected `\x3c!--`. Expected `--\x3e`"},nestedNoscriptInHead:{reason:"Unexpected nested `<noscript>` in `<head>`",description:"Unexpected `<noscript>`. Expected a closing tag or a meta element",url:!1},nonConformingDoctype:{reason:"Unexpected non-conforming doctype declaration",description:'Expected `<!doctype html>` or `<!doctype html system "about:legacy-compat">`',url:!1},nonVoidHtmlElementStartTagWithTrailingSolidus:{reason:"Unexpected trailing slash on start tag of non-void element",description:"Unexpected `/`. Expected `>` instead"},noncharacterCharacterReference:{reason:"Unexpected noncharacter code point referenced by character reference",description:"Unexpected code point. Do not use noncharacters in HTML"},noncharacterInInputStream:{reason:"Unexpected noncharacter character",description:"Unexpected code point `%x`. Do not use noncharacters in HTML"},nullCharacterReference:{reason:"Unexpected NULL character referenced by character reference",description:"Unexpected code point. Do not use NULL characters in HTML"},openElementsLeftAfterEof:{reason:"Unexpected end of file",description:"Unexpected end of file. Expected closing tag instead",url:!1},surrogateCharacterReference:{reason:"Unexpected surrogate character referenced by character reference",description:"Unexpected code point. Do not use lone surrogate characters in HTML"},surrogateInInputStream:{reason:"Unexpected surrogate character",description:"Unexpected code point `%x`. Do not use lone surrogate characters in HTML"},unexpectedCharacterAfterDoctypeSystemIdentifier:{reason:"Invalid character after system identifier in doctype",description:"Unexpected character at `%c`. Expected `>`"},unexpectedCharacterInAttributeName:{reason:"Unexpected character in attribute name",description:"Unexpected `%c`. Expected whitespace, `/`, `>`, `=`, or probably an ASCII letter"},unexpectedCharacterInUnquotedAttributeValue:{reason:"Unexpected character in unquoted attribute value",description:"Unexpected `%c`. Quote the attribute value to include it"},unexpectedEqualsSignBeforeAttributeName:{reason:"Unexpected equals sign before attribute name",description:"Unexpected `%c`. Add an attribute name before it"},unexpectedNullCharacter:{reason:"Unexpected NULL character",description:"Unexpected code point `%x`. Do not use NULL characters in HTML"},unexpectedQuestionMarkInsteadOfTagName:{reason:"Unexpected question mark instead of tag name",description:"Unexpected `%c`. Expected an ASCII letter instead"},unexpectedSolidusInTag:{reason:"Unexpected slash in tag",description:"Unexpected `%c-1`. Expected it followed by `>` or in a quoted attribute value"},unknownNamedCharacterReference:{reason:"Unexpected unknown named character reference",description:"Unexpected character reference. Expected known named character references"}},al=/-[a-z]/g,ol=/%c(?:([-+])(\d+))?/g,ll=/%x/g,cl={2:!0,1:!1,0:null},ul={};function hl(e){return e.charAt(1).toUpperCase()}function fl(e){const{emitParseErrors:t,...n}={...this.data("settings"),...e};this.parser=function(e,i){return function(e,t){const n=t||ul,i=n.onerror,r=e instanceof tl?e:new tl(e),s=n.fragment?Ho:Fo,a=String(r),o=s(a,{sourceCodeLocationInfo:!0,onParseError:n.onerror?function(e){const t=e.code,s=function(e){return e.replace(al,hl)}(t),o=n[s],l=null==o||o,c="number"==typeof l?l:l?1:0;if(c){const n=sl[s],a=new Vo(u(n.reason),{place:{start:{line:e.startLine,column:e.startCol,offset:e.startOffset},end:{line:e.endLine,column:e.endCol,offset:e.endOffset}},ruleId:t,source:"hast-util-from-html"});r.path&&(a.file=r.path,a.name=r.path+":"+a.name),a.fatal=cl[c],a.note=u(n.description),a.url=!1===n.url?void 0:"https://html.spec.whatwg.org/multipage/parsing.html#parse-error-"+t,i(a)}function u(t){return t.replace(ol,(function(t,n,i){const r=(i?Number.parseInt(i,10):0)*("-"===n?-1:1);return"`"===(s=a.charAt(e.startOffset+r))?"` ` `":s;var s})).replace(ll,(function(){return"0x"+a.charCodeAt(e.startOffset).toString(16).toUpperCase()}))}}:null,scriptingEnabled:!1});return function(e,t){const n=t||{};return As({file:n.file||void 0,location:!1,schema:"svg"===n.space?fs:hs,verbose:n.verbose||!1},e)}(o,{file:r,space:n.space,verbose:n.verbose})}(e,{...n,onerror:t?function(e){i.path&&(e.name=i.path+":"+e.name,e.file=i.path),i.messages.push(e)}:void 0})}}const dl=ml("end"),pl=ml("start");function ml(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}const gl=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],bl={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...gl,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...gl],h2:[["id","footnote-label"],["className","sr-only"]],img:[...gl,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...gl,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...gl],table:[...gl],ul:[...gl,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","disabled","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rel","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","target","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},kl={}.hasOwnProperty;function yl(e,t){if(t&&"object"==typeof t){const n=t;switch("string"==typeof n.type?n.type:""){case"comment":return function(e,t){if(e.schema.allowComments){const e="string"==typeof t.value?t.value:"",n=e.indexOf("--\x3e"),i={type:"comment",value:n<0?e:e.slice(0,n)};return Tl(i,t),i}}(e,n);case"doctype":return function(e,t){if(e.schema.allowDoctypes){const e={type:"doctype"};return Tl(e,t),e}}(e,n);case"element":return function(e,t){const n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n);const i=El(e,t.children),r=function(e,t){const n=e.stack[e.stack.length-1],i=e.schema.attributes,r=e.schema.required,s=i&&kl.call(i,n)?i[n]:void 0,a=i&&kl.call(i,"*")?i["*"]:void 0,o=t&&"object"==typeof t?t:{},l={};let c;for(c in o)if(kl.call(o,c)){let t;if(s&&(t=Sl(s,c)),!t&&a&&(t=Sl(a,c)),t){const n=o[c],i=Array.isArray(n)?vl(e,t,c,n):wl(e,t,c,n);null!=i&&(l[c]=i)}}if(r&&kl.call(r,n)){const e=r[n];for(c in e)kl.call(e,c)&&!kl.call(l,c)&&(l[c]=e[c])}return l}(e,t.properties);e.stack.pop();let s=!1;if(n.length>0&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(s=!0,e.schema.ancestors&&kl.call(e.schema.ancestors,n))){const t=e.schema.ancestors[n];let i=-1;for(s=!1;++i<t.length;)e.stack.includes(t[i])&&(s=!0)}if(!s)return e.schema.strip&&!e.schema.strip.includes(n)?i:void 0;const a={type:"element",tagName:n,properties:r,children:i};return Tl(a,t),a}(e,n);case"root":return function(e,t){const n={type:"root",children:El(e,t.children)};return Tl(n,t),n}(e,n);case"text":return function(e,t){const n={type:"text",value:"string"==typeof t.value?t.value:""};return Tl(n,t),n}(0,n)}}}function El(e,t){const n=[];if(Array.isArray(t)){const i=t;let r=-1;for(;++r<i.length;){const t=yl(e,i[r]);t&&(Array.isArray(t)?n.push(...t):n.push(t))}}return n}function vl(e,t,n,i){let r=-1;const s=[];for(;++r<i.length;){const a=wl(e,t,n,i[r]);"number"!=typeof a&&"string"!=typeof a||s.push(a)}return s}function wl(e,t,n,i){if(("boolean"==typeof i||"number"==typeof i||"string"==typeof i)&&function(e,t,n){const i=e.schema.protocols&&kl.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!i||0===i.length)return!0;const r=String(n),s=r.indexOf(":"),a=r.indexOf("?"),o=r.indexOf("#"),l=r.indexOf("/");if(s<0||l>-1&&s>l||a>-1&&s>a||o>-1&&s>o)return!0;let c=-1;for(;++c<i.length;){const e=i[c];if(s===e.length&&r.slice(0,e.length)===e)return!0}return!1}(e,n,i)){if("object"==typeof t&&t.length>1){let e=!1,n=0;for(;++n<t.length;){const r=t[n];if(r&&"object"==typeof r&&"flags"in r){if(r.test(String(i))){e=!0;break}}else if(r===i){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+i:i}}function Tl(e,t){const n=function(e){const t=pl(e),n=dl(e);if(t&&n)return{start:t,end:n}}(t);t.data&&(e.data=an(t.data)),n&&(e.position=n)}function Sl(e,t){let n,i=-1;for(;++i<e.length;){const r=e[i],s="string"==typeof r?r:r[0];if(s===t)return r;"data*"===s&&(n=r)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}function xl(e){return function(t){const n=function(e,t){let n={type:"root",children:[]};const i=yl({schema:t?{...bl,...t}:bl,stack:[]},e);return i&&(Array.isArray(i)?1===i.length?n=i[0]:n.children=i:n=i),n}(t,e);return n}}const Al=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];let Cl=class{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}};function Dl(e,t){const n={},i={};let r=-1;for(;++r<e.length;)Object.assign(n,e[r].property),Object.assign(i,e[r].normal);return new Cl(n,i,t)}function _l(e){return e.toLowerCase()}Cl.prototype.property={},Cl.prototype.normal={},Cl.prototype.space=null;let Rl=class{constructor(e,t){this.property=e,this.attribute=t}};Rl.prototype.space=null,Rl.prototype.boolean=!1,Rl.prototype.booleanish=!1,Rl.prototype.overloadedBoolean=!1,Rl.prototype.number=!1,Rl.prototype.commaSeparated=!1,Rl.prototype.spaceSeparated=!1,Rl.prototype.commaOrSpaceSeparated=!1,Rl.prototype.mustUseProperty=!1,Rl.prototype.defined=!1;let Ll=0;const Il=Bl(),Ol=Bl(),Nl=Bl(),Pl=Bl(),Ml=Bl(),Ul=Bl(),ql=Bl();function Bl(){return 2**++Ll}var Fl=Object.freeze({__proto__:null,boolean:Il,booleanish:Ol,commaOrSpaceSeparated:ql,commaSeparated:Ul,number:Pl,overloadedBoolean:Nl,spaceSeparated:Ml});const Hl=Object.keys(Fl);let zl=class extends Rl{constructor(e,t,n,i){let r=-1;if(super(e,t),jl(this,"space",i),"number"==typeof n)for(;++r<Hl.length;){const e=Hl[r];jl(this,Hl[r],(n&Fl[e])===Fl[e])}}};function jl(e,t,n){n&&(e[t]=n)}zl.prototype.defined=!0;const Gl={}.hasOwnProperty;function Vl(e){const t={},n={};let i;for(i in e.properties)if(Gl.call(e.properties,i)){const r=e.properties[i],s=new zl(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[_l(i)]=i,n[_l(s.attribute)]=i}return new Cl(t,n,e.space)}const Yl=Vl({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Wl=Vl({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Kl(e,t){return t in e?e[t]:t}function Xl(e,t){return Kl(e,t.toLowerCase())}const Ql=Vl({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Xl,properties:{xmlns:null,xmlnsXLink:null}}),$l=Vl({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Ol,ariaAutoComplete:null,ariaBusy:Ol,ariaChecked:Ol,ariaColCount:Pl,ariaColIndex:Pl,ariaColSpan:Pl,ariaControls:Ml,ariaCurrent:null,ariaDescribedBy:Ml,ariaDetails:null,ariaDisabled:Ol,ariaDropEffect:Ml,ariaErrorMessage:null,ariaExpanded:Ol,ariaFlowTo:Ml,ariaGrabbed:Ol,ariaHasPopup:null,ariaHidden:Ol,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ml,ariaLevel:Pl,ariaLive:null,ariaModal:Ol,ariaMultiLine:Ol,ariaMultiSelectable:Ol,ariaOrientation:null,ariaOwns:Ml,ariaPlaceholder:null,ariaPosInSet:Pl,ariaPressed:Ol,ariaReadOnly:Ol,ariaRelevant:null,ariaRequired:Ol,ariaRoleDescription:Ml,ariaRowCount:Pl,ariaRowIndex:Pl,ariaRowSpan:Pl,ariaSelected:Ol,ariaSetSize:Pl,ariaSort:null,ariaValueMax:Pl,ariaValueMin:Pl,ariaValueNow:Pl,ariaValueText:null,role:null}}),Zl=Vl({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Xl,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ul,acceptCharset:Ml,accessKey:Ml,action:null,allow:null,allowFullScreen:Il,allowPaymentRequest:Il,allowUserMedia:Il,alt:null,as:null,async:Il,autoCapitalize:null,autoComplete:Ml,autoFocus:Il,autoPlay:Il,blocking:Ml,capture:Il,charSet:null,checked:Il,cite:null,className:Ml,cols:Pl,colSpan:null,content:null,contentEditable:Ol,controls:Il,controlsList:Ml,coords:Pl|Ul,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Il,defer:Il,dir:null,dirName:null,disabled:Il,download:Nl,draggable:Ol,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Il,formTarget:null,headers:Ml,height:Pl,hidden:Il,high:Pl,href:null,hrefLang:null,htmlFor:Ml,httpEquiv:Ml,id:null,imageSizes:null,imageSrcSet:null,inert:Il,inputMode:null,integrity:null,is:null,isMap:Il,itemId:null,itemProp:Ml,itemRef:Ml,itemScope:Il,itemType:Ml,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Il,low:Pl,manifest:null,max:null,maxLength:Pl,media:null,method:null,min:null,minLength:Pl,multiple:Il,muted:Il,name:null,nonce:null,noModule:Il,noValidate:Il,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Il,optimum:Pl,pattern:null,ping:Ml,placeholder:null,playsInline:Il,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Il,referrerPolicy:null,rel:Ml,required:Il,reversed:Il,rows:Pl,rowSpan:Pl,sandbox:Ml,scope:null,scoped:Il,seamless:Il,selected:Il,shape:null,size:Pl,sizes:null,slot:null,span:Pl,spellCheck:Ol,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Pl,step:null,style:null,tabIndex:Pl,target:null,title:null,translate:null,type:null,typeMustMatch:Il,useMap:null,value:Ol,width:Pl,wrap:null,align:null,aLink:null,archive:Ml,axis:null,background:null,bgColor:null,border:Pl,borderColor:null,bottomMargin:Pl,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Il,declare:Il,event:null,face:null,frame:null,frameBorder:null,hSpace:Pl,leftMargin:Pl,link:null,longDesc:null,lowSrc:null,marginHeight:Pl,marginWidth:Pl,noResize:Il,noHref:Il,noShade:Il,noWrap:Il,object:null,profile:null,prompt:null,rev:null,rightMargin:Pl,rules:null,scheme:null,scrolling:Ol,standby:null,summary:null,text:null,topMargin:Pl,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Pl,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Il,disableRemotePlayback:Il,prefix:null,property:null,results:Pl,security:null,unselectable:null}}),Jl=Vl({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Kl,properties:{about:ql,accentHeight:Pl,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Pl,amplitude:Pl,arabicForm:null,ascent:Pl,attributeName:null,attributeType:null,azimuth:Pl,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Pl,by:null,calcMode:null,capHeight:Pl,className:Ml,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Pl,diffuseConstant:Pl,direction:null,display:null,dur:null,divisor:Pl,dominantBaseline:null,download:Il,dx:null,dy:null,edgeMode:null,editable:null,elevation:Pl,enableBackground:null,end:null,event:null,exponent:Pl,externalResourcesRequired:null,fill:null,fillOpacity:Pl,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ul,g2:Ul,glyphName:Ul,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Pl,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Pl,horizOriginX:Pl,horizOriginY:Pl,id:null,ideographic:Pl,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Pl,k:Pl,k1:Pl,k2:Pl,k3:Pl,k4:Pl,kernelMatrix:ql,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Pl,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Pl,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Pl,overlineThickness:Pl,paintOrder:null,panose1:null,path:null,pathLength:Pl,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ml,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Pl,pointsAtY:Pl,pointsAtZ:Pl,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ql,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ql,rev:ql,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ql,requiredFeatures:ql,requiredFonts:ql,requiredFormats:ql,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Pl,specularExponent:Pl,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Pl,strikethroughThickness:Pl,string:null,stroke:null,strokeDashArray:ql,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Pl,strokeOpacity:Pl,strokeWidth:null,style:null,surfaceScale:Pl,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ql,tabIndex:Pl,tableValues:null,target:null,targetX:Pl,targetY:Pl,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ql,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Pl,underlineThickness:Pl,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Pl,values:null,vAlphabetic:Pl,vMathematical:Pl,vectorEffect:null,vHanging:Pl,vIdeographic:Pl,version:null,vertAdvY:Pl,vertOriginX:Pl,vertOriginY:Pl,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Pl,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ec=/^data[-\w.:]+$/i,tc=/-[a-z]/g,nc=/[A-Z]/g;function ic(e){return"-"+e.toLowerCase()}function rc(e){return e.charAt(1).toUpperCase()}const sc=Dl([Wl,Yl,Ql,$l,Zl],"html"),ac=Dl([Wl,Yl,Ql,$l,Jl],"svg"),oc={}.hasOwnProperty;const lc=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],cc={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},uc=["cent","copy","divide","gt","lt","not","para","times"],hc={}.hasOwnProperty,fc={};let dc;for(dc in cc)hc.call(cc,dc)&&(fc[cc[dc]]=dc);function pc(e,t,n){let i,r=function(e,t,n){const i="&#x"+e.toString(16).toUpperCase();return n&&t&&!/[\dA-Fa-f]/.test(String.fromCharCode(t))?i:i+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(i=function(e,t,n,i){const r=String.fromCharCode(e);if(hc.call(fc,r)){const e=fc[r],s="&"+e;return n&&lc.includes(e)&&!uc.includes(e)&&(!i||t&&61!==t&&/[^\da-z]/i.test(String.fromCharCode(t)))?s:s+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){const i=function(e,t,n){const i="&#"+String(e);return n&&t&&!/\d/.test(String.fromCharCode(t))?i:i+";"}(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function mc(e,t){return function(e,t){return e=e.replace(t.subset?function(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}(t.subset):/["&'<>`]/g,n),t.subset||t.escapeOnly?e:e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(e,n,i){return t.format(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),t)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,n);function n(e,n,i){return t.format(e.charCodeAt(0),i.charCodeAt(n+1),t)}}(e,Object.assign({format:pc},t))}function gc(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;-1!==r;)i++,r=n.indexOf(t,r+t.length);return i}function bc(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}function kc(e){return e.join(" ").trim()}const yc=/[ \t\n\f\r]/g;function Ec(e){return"object"==typeof e?"text"===e.type&&vc(e.value):vc(e)}function vc(e){return""===e.replace(yc,"")}const wc=xc(1),Tc=xc(-1),Sc=[];function xc(e){return function(t,n,i){const r=t?t.children:Sc;let s=(n||0)+e,a=r[s];if(!i)for(;a&&Ec(a);)s+=e,a=r[s];return a}}const Ac={}.hasOwnProperty;function Cc(e){return function(t,n,i){return Ac.call(e,t.tagName)&&e[t.tagName](t,n,i)}}const Dc=Cc({body:function(e,t,n){const i=wc(n,t);return!i||"comment"!==i.type},caption:_c,colgroup:_c,dd:function(e,t,n){const i=wc(n,t);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName)},dt:function(e,t,n){const i=wc(n,t);return Boolean(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName))},head:_c,html:function(e,t,n){const i=wc(n,t);return!i||"comment"!==i.type},li:function(e,t,n){const i=wc(n,t);return!i||"element"===i.type&&"li"===i.tagName},optgroup:function(e,t,n){const i=wc(n,t);return!i||"element"===i.type&&"optgroup"===i.tagName},option:function(e,t,n){const i=wc(n,t);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName)},p:function(e,t,n){const i=wc(n,t);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:Rc,rt:Rc,tbody:function(e,t,n){const i=wc(n,t);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName)},td:Lc,tfoot:function(e,t,n){return!wc(n,t)},th:Lc,thead:function(e,t,n){const i=wc(n,t);return Boolean(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName))},tr:function(e,t,n){const i=wc(n,t);return!i||"element"===i.type&&"tr"===i.tagName}});function _c(e,t,n){const i=wc(n,t,!0);return!i||"comment"!==i.type&&!("text"===i.type&&Ec(i.value.charAt(0)))}function Rc(e,t,n){const i=wc(n,t);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName)}function Lc(e,t,n){const i=wc(n,t);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName)}const Ic=Cc({body:function(e){const t=wc(e,-1,!0);return!(t&&("comment"===t.type||"text"===t.type&&Ec(t.value.charAt(0))||"element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName)))},colgroup:function(e,t,n){const i=Tc(n,t),r=wc(e,-1,!0);return!(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&Dc(i,n.children.indexOf(i),n))&&Boolean(r&&"element"===r.type&&"col"===r.tagName)},head:function(e){const t=e.children,n=[];let i=-1;for(;++i<t.length;){const e=t[i];if("element"===e.type&&("title"===e.tagName||"base"===e.tagName)){if(n.includes(e.tagName))return!1;n.push(e.tagName)}}return t.length>0},html:function(e){const t=wc(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){const i=Tc(n,t),r=wc(e,-1);return(!n||!i||"element"!==i.type||"thead"!==i.tagName&&"tbody"!==i.tagName||!Dc(i,n.children.indexOf(i),n))&&Boolean(r&&"element"===r.type&&"tr"===r.tagName)}}),Oc={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Nc(e,t,n){const i=function(e,t){const n=_l(t);let i=t,r=Rl;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ec.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(tc,rc);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!tc.test(e)){let n=e.replace(nc,ic);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}r=zl}return new r(i,t)}(e.schema,t),r=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=e.settings.allowDangerousCharacters?0:1;let a,o=e.quote;if(!i.overloadedBoolean||n!==i.attribute&&""!==n?(i.boolean||i.overloadedBoolean&&"string"!=typeof n)&&(n=Boolean(n)):n=!0,null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";const l=mc(i.attribute,Object.assign({},e.settings.characterReferences,{subset:Oc.name[r][s]}));return!0===n?l:(n=Array.isArray(n)?(i.commaSeparated?bc:kc)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n?l:(e.settings.preferUnquoted&&(a=mc(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Oc.unquoted[r][s]}))),a!==n&&(e.settings.quoteSmart&&gc(n,o)>gc(n,e.alternative)&&(o=e.alternative),a=o+mc(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?Oc.single:Oc.double)[r][s],attribute:!0}))+o),l+(a?"="+a:a)))}function Pc(e,t,n,i){return!n||"element"!==n.type||"script"!==n.tagName&&"style"!==n.tagName?mc(e.value,Object.assign({},i.settings.characterReferences,{subset:["<","&"]})):e.value}const Mc=function(e,t){const n=t||{};function i(t,...n){let r=i.invalid;const s=i.handlers;if(t&&oc.call(t,e)){const n=String(t[e]);r=oc.call(s,n)?s[n]:i.unknown}if(r)return r.call(this,t,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}("type",{invalid:function(e){throw new Error("Expected node, not `"+e+"`")},unknown:function(e){throw new Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,i){return i.settings.bogusComments?"<?"+mc(e.value,Object.assign({},i.settings.characterReferences,{subset:[">"]}))+">":"\x3c!--"+e.value.replace(/^>|^->|<!--|-->|--!>|<!-$/g,(function(e){return mc(e,Object.assign({},i.settings.characterReferences,{subset:["<",">"]}))}))+"--\x3e"},doctype:function(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,i){const r=i.schema,s="svg"!==r.space&&i.settings.omitOptionalTags;let a="svg"===r.space?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase());const o=[];let l;"html"===r.space&&"svg"===e.tagName&&(i.schema=ac);const c=function(e,t){const n=[];let i,r=-1;if(t)for(i in t)if(null!=t[i]){const r=Nc(e,i,t[i]);r&&n.push(r)}for(;++r<n.length;){const t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&'"'!==t&&"'"!==t&&(n[r]+=" ")}return n.join("")}(i,e.properties),u=i.all("html"===r.space&&"template"===e.tagName?e.content:e);return i.schema=r,u&&(a=!1),!c&&s&&Ic(e,t,n)||(o.push("<",e.tagName,c?" "+c:""),a&&("svg"===r.space||i.settings.closeSelfClosing)&&(l=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===l||l&&'"'!==l&&"'"!==l)&&o.push(" "),o.push("/")),o.push(">")),o.push(u),a||s&&Dc(e,t,n)||o.push("</"+e.tagName+">"),o.join("")},raw:function(e,t,n,i){return i.settings.allowDangerousHtml?e.value:Pc(e,0,n,i)},root:function(e,t,n,i){return i.all(e)},text:Pc}}),Uc={},qc={},Bc=[];function Fc(e,t,n){return Mc(e,t,n,this)}function Hc(e){const t=[],n=e&&e.children||Bc;let i=-1;for(;++i<n.length;)t[i]=this.one(n[i],i,e);return t.join("")}function zc(e){const t={...this.data("settings"),...e};this.compiler=function(e){return function(e,t){const n=t||Uc,i=n.quote||'"',r='"'===i?"'":'"';if('"'!==i&&"'"!==i)throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:Fc,all:Hc,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Al,characterReferences:n.characterReferences||qc,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?ac:sc,quote:i,alternative:r}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}(e,t)}}let jc=class{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}};function Gc(e,t){const n={},i={};let r=-1;for(;++r<e.length;)Object.assign(n,e[r].property),Object.assign(i,e[r].normal);return new jc(n,i,t)}function Vc(e){return e.toLowerCase()}jc.prototype.property={},jc.prototype.normal={},jc.prototype.space=null;let Yc=class{constructor(e,t){this.property=e,this.attribute=t}};Yc.prototype.space=null,Yc.prototype.boolean=!1,Yc.prototype.booleanish=!1,Yc.prototype.overloadedBoolean=!1,Yc.prototype.number=!1,Yc.prototype.commaSeparated=!1,Yc.prototype.spaceSeparated=!1,Yc.prototype.commaOrSpaceSeparated=!1,Yc.prototype.mustUseProperty=!1,Yc.prototype.defined=!1;let Wc=0;const Kc=tu(),Xc=tu(),Qc=tu(),$c=tu(),Zc=tu(),Jc=tu(),eu=tu();function tu(){return 2**++Wc}var nu=Object.freeze({__proto__:null,boolean:Kc,booleanish:Xc,commaOrSpaceSeparated:eu,commaSeparated:Jc,number:$c,overloadedBoolean:Qc,spaceSeparated:Zc});const iu=Object.keys(nu);let ru=class extends Yc{constructor(e,t,n,i){let r=-1;if(super(e,t),su(this,"space",i),"number"==typeof n)for(;++r<iu.length;){const e=iu[r];su(this,iu[r],(n&nu[e])===nu[e])}}};function su(e,t,n){n&&(e[t]=n)}ru.prototype.defined=!0;const au={}.hasOwnProperty;function ou(e){const t={},n={};let i;for(i in e.properties)if(au.call(e.properties,i)){const r=e.properties[i],s=new ru(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[Vc(i)]=i,n[Vc(s.attribute)]=i}return new jc(t,n,e.space)}const lu=ou({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),cu=ou({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function uu(e,t){return t in e?e[t]:t}function hu(e,t){return uu(e,t.toLowerCase())}const fu=ou({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:hu,properties:{xmlns:null,xmlnsXLink:null}}),du=ou({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Xc,ariaAutoComplete:null,ariaBusy:Xc,ariaChecked:Xc,ariaColCount:$c,ariaColIndex:$c,ariaColSpan:$c,ariaControls:Zc,ariaCurrent:null,ariaDescribedBy:Zc,ariaDetails:null,ariaDisabled:Xc,ariaDropEffect:Zc,ariaErrorMessage:null,ariaExpanded:Xc,ariaFlowTo:Zc,ariaGrabbed:Xc,ariaHasPopup:null,ariaHidden:Xc,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Zc,ariaLevel:$c,ariaLive:null,ariaModal:Xc,ariaMultiLine:Xc,ariaMultiSelectable:Xc,ariaOrientation:null,ariaOwns:Zc,ariaPlaceholder:null,ariaPosInSet:$c,ariaPressed:Xc,ariaReadOnly:Xc,ariaRelevant:null,ariaRequired:Xc,ariaRoleDescription:Zc,ariaRowCount:$c,ariaRowIndex:$c,ariaRowSpan:$c,ariaSelected:Xc,ariaSetSize:$c,ariaSort:null,ariaValueMax:$c,ariaValueMin:$c,ariaValueNow:$c,ariaValueText:null,role:null}}),pu=ou({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:hu,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Jc,acceptCharset:Zc,accessKey:Zc,action:null,allow:null,allowFullScreen:Kc,allowPaymentRequest:Kc,allowUserMedia:Kc,alt:null,as:null,async:Kc,autoCapitalize:null,autoComplete:Zc,autoFocus:Kc,autoPlay:Kc,blocking:Zc,capture:Kc,charSet:null,checked:Kc,cite:null,className:Zc,cols:$c,colSpan:null,content:null,contentEditable:Xc,controls:Kc,controlsList:Zc,coords:$c|Jc,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Kc,defer:Kc,dir:null,dirName:null,disabled:Kc,download:Qc,draggable:Xc,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Kc,formTarget:null,headers:Zc,height:$c,hidden:Kc,high:$c,href:null,hrefLang:null,htmlFor:Zc,httpEquiv:Zc,id:null,imageSizes:null,imageSrcSet:null,inert:Kc,inputMode:null,integrity:null,is:null,isMap:Kc,itemId:null,itemProp:Zc,itemRef:Zc,itemScope:Kc,itemType:Zc,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Kc,low:$c,manifest:null,max:null,maxLength:$c,media:null,method:null,min:null,minLength:$c,multiple:Kc,muted:Kc,name:null,nonce:null,noModule:Kc,noValidate:Kc,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Kc,optimum:$c,pattern:null,ping:Zc,placeholder:null,playsInline:Kc,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Kc,referrerPolicy:null,rel:Zc,required:Kc,reversed:Kc,rows:$c,rowSpan:$c,sandbox:Zc,scope:null,scoped:Kc,seamless:Kc,selected:Kc,shape:null,size:$c,sizes:null,slot:null,span:$c,spellCheck:Xc,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$c,step:null,style:null,tabIndex:$c,target:null,title:null,translate:null,type:null,typeMustMatch:Kc,useMap:null,value:Xc,width:$c,wrap:null,align:null,aLink:null,archive:Zc,axis:null,background:null,bgColor:null,border:$c,borderColor:null,bottomMargin:$c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Kc,declare:Kc,event:null,face:null,frame:null,frameBorder:null,hSpace:$c,leftMargin:$c,link:null,longDesc:null,lowSrc:null,marginHeight:$c,marginWidth:$c,noResize:Kc,noHref:Kc,noShade:Kc,noWrap:Kc,object:null,profile:null,prompt:null,rev:null,rightMargin:$c,rules:null,scheme:null,scrolling:Xc,standby:null,summary:null,text:null,topMargin:$c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Kc,disableRemotePlayback:Kc,prefix:null,property:null,results:$c,security:null,unselectable:null}}),mu=ou({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:uu,properties:{about:eu,accentHeight:$c,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$c,amplitude:$c,arabicForm:null,ascent:$c,attributeName:null,attributeType:null,azimuth:$c,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$c,by:null,calcMode:null,capHeight:$c,className:Zc,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$c,diffuseConstant:$c,direction:null,display:null,dur:null,divisor:$c,dominantBaseline:null,download:Kc,dx:null,dy:null,edgeMode:null,editable:null,elevation:$c,enableBackground:null,end:null,event:null,exponent:$c,externalResourcesRequired:null,fill:null,fillOpacity:$c,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Jc,g2:Jc,glyphName:Jc,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$c,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$c,horizOriginX:$c,horizOriginY:$c,id:null,ideographic:$c,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$c,k:$c,k1:$c,k2:$c,k3:$c,k4:$c,kernelMatrix:eu,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$c,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$c,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$c,overlineThickness:$c,paintOrder:null,panose1:null,path:null,pathLength:$c,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Zc,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$c,pointsAtY:$c,pointsAtZ:$c,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:eu,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:eu,rev:eu,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:eu,requiredFeatures:eu,requiredFonts:eu,requiredFormats:eu,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$c,specularExponent:$c,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$c,strikethroughThickness:$c,string:null,stroke:null,strokeDashArray:eu,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$c,strokeOpacity:$c,strokeWidth:null,style:null,surfaceScale:$c,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:eu,tabIndex:$c,tableValues:null,target:null,targetX:$c,targetY:$c,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:eu,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$c,underlineThickness:$c,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$c,values:null,vAlphabetic:$c,vMathematical:$c,vectorEffect:null,vHanging:$c,vIdeographic:$c,version:null,vertAdvY:$c,vertOriginX:$c,vertOriginY:$c,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$c,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),gu=/^data[-\w.:]+$/i,bu=/-[a-z]/g,ku=/[A-Z]/g;function yu(e,t){const n=Vc(t);let i=t,r=Yc;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&gu.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(bu,vu);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!bu.test(e)){let n=e.replace(ku,Eu);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}r=ru}return new r(i,t)}function Eu(e){return"-"+e.toLowerCase()}function vu(e){return e.charAt(1).toUpperCase()}const wu=Gc([cu,lu,fu,du,pu],"html"),Tu=Gc([cu,lu,fu,du,mu],"svg");function Su(e){const t=[],n=String(e||"");let i=n.indexOf(","),r=0,s=!1;for(;!s;){-1===i&&(i=n.length,s=!0);const e=n.slice(r,i).trim();!e&&s||t.push(e),r=i+1,i=n.indexOf(",",r)}return t}const xu=/[#.]/g;function Au(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const Cu=new Set(["button","menu","reset","submit"]),Du={}.hasOwnProperty;function _u(e,t,n){const i=n&&function(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}(n);return function(n,r,...s){let a,o=-1;if(null==n)a={type:"root",children:[]},s.unshift(r);else if(a=function(e,t){const n=e||"",i={};let r,s,a=0;for(;a<n.length;){xu.lastIndex=a;const e=xu.exec(n),t=n.slice(a,e?e.index:n.length);t&&(r?"#"===r?i.id=t:Array.isArray(i.className)?i.className.push(t):i.className=[t]:s=t,a+=t.length),e&&(r=e[0],a++)}return{type:"element",tagName:s||t||"div",properties:i,children:[]}}(n,t),a.tagName=a.tagName.toLowerCase(),i&&Du.call(i,a.tagName)&&(a.tagName=i[a.tagName]),c=a.tagName,null==(l=r)||"object"!=typeof l||Array.isArray(l)||"input"!==c&&l.type&&"string"==typeof l.type&&("children"in l&&Array.isArray(l.children)||("button"===c?!Cu.has(l.type.toLowerCase()):"value"in l)))s.unshift(r);else{let t;for(t in r)Du.call(r,t)&&Ru(e,a.properties,t,r[t])}for(var l,c;++o<s.length;)Lu(a.children,s[o]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function Ru(e,t,n,i){const r=yu(e,n);let s,a=-1;if(null!=i){if("number"==typeof i){if(Number.isNaN(i))return;s=i}else s="boolean"==typeof i?i:"string"==typeof i?r.spaceSeparated?Au(i):r.commaSeparated?Su(i):r.commaOrSpaceSeparated?Au(Su(i).join(" ")):Iu(r,r.property,i):Array.isArray(i)?i.concat():"style"===r.property?function(e){const t=[];let n;for(n in e)Du.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}(i):String(i);if(Array.isArray(s)){const e=[];for(;++a<s.length;){const t=Iu(r,r.property,s[a]);e[a]=t}s=e}"className"===r.property&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[r.property]=s}}function Lu(e,t){let n=-1;if(null==t);else if("string"==typeof t||"number"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Lu(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Lu(e,t.children):e.push(t)}}function Iu(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||Vc(n)===Vc(t)))return!0}return n}const Ou=_u(wu,"div"),Nu=_u(Tu,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),Pu=/\r?\n|\r/g,Mu="http://www.w3.org/1999/xhtml",Uu="http://www.w3.org/2000/svg",qu={}.hasOwnProperty,Bu=Object.prototype;function Fu(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},zu(e,t,n),n;case"#document":case"#document-fragment":{const i="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(n={type:"root",children:Hu(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),i=function(e){const t=String(e),n=[];for(Pu.lastIndex=0;Pu.test(t);)n.push(Pu.lastIndex);return n.push(t.length+1),{toPoint:function(e){let t=-1;if("number"==typeof e&&e>-1&&e<n[n.length-1])for(;++t<n.length;)if(n[t]>e)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e}},toOffset:function(e){const t=e&&e.line,i=e&&e.column;if("number"==typeof t&&"number"==typeof i&&!Number.isNaN(t)&&!Number.isNaN(i)&&t-1 in n){const e=(n[t-2]||0)+i-1||0;if(e>-1&&e<n[n.length-1])return e}}}}(t),r=i.toPoint(0),s=i.toPoint(t.length);n.position={start:r,end:s}}return n}case"#documentType":return n={type:"doctype"},zu(e,t,n),n;case"#text":return n={type:"text",value:t.value},zu(e,t,n),n;default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===Uu?Tu:wu;let i=-1;const r={};for(;++i<t.attrs.length;){const e=t.attrs[i],n=(e.prefix?e.prefix+":":"")+e.name;qu.call(Bu,n)||(r[n]=e.value)}const s=("svg"===e.schema.space?Nu:Ou)(t.tagName,r,Hu(e,t.childNodes));if(zu(e,t,s),"template"===s.tagName){const n=t,i=n.sourceCodeLocation,r=i&&i.startTag&&Gu(i.startTag),a=i&&i.endTag&&Gu(i.endTag),o=Fu(e,n.content);r&&a&&e.file&&(o.position={start:r.end,end:a.start}),s.content=o}return e.schema=n,s}(e,t),n}}function Hu(e,t){let n=-1;const i=[];for(;++n<t.length;){const r=Fu(e,t[n]);i.push(r)}return i}function zu(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=ju(e,n,t.sourceCodeLocation);i&&(e.location=!0,n.position=i)}}function ju(e,t,n){const i=Gu(n);if("element"===t.type){const r=t.children[t.children.length-1];if(i&&!n.endTag&&r&&r.position&&r.position.end&&(i.end=Object.assign({},r.position.end)),e.verbose){const i={};let r;if(n.attrs)for(r in n.attrs)qu.call(n.attrs,r)&&(i[yu(e.schema,r).property]=Gu(n.attrs[r]));const s=Gu(n.startTag),a=n.endTag?Gu(n.endTag):void 0,o={opening:s};a&&(o.closing=a),o.properties=i,t.data={position:o}}}return i}function Gu(e){const t=Vu({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Vu({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Vu(e){return e.line&&e.column?e:void 0}class Yu{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Wu(e,t){const n={},i={};let r=-1;for(;++r<e.length;)Object.assign(n,e[r].property),Object.assign(i,e[r].normal);return new Yu(n,i,t)}function Ku(e){return e.toLowerCase()}Yu.prototype.property={},Yu.prototype.normal={},Yu.prototype.space=null;class Xu{constructor(e,t){this.property=e,this.attribute=t}}Xu.prototype.space=null,Xu.prototype.boolean=!1,Xu.prototype.booleanish=!1,Xu.prototype.overloadedBoolean=!1,Xu.prototype.number=!1,Xu.prototype.commaSeparated=!1,Xu.prototype.spaceSeparated=!1,Xu.prototype.commaOrSpaceSeparated=!1,Xu.prototype.mustUseProperty=!1,Xu.prototype.defined=!1;let Qu=0;const $u=rh(),Zu=rh(),Ju=rh(),eh=rh(),th=rh(),nh=rh(),ih=rh();function rh(){return 2**++Qu}var sh=Object.freeze({__proto__:null,boolean:$u,booleanish:Zu,commaOrSpaceSeparated:ih,commaSeparated:nh,number:eh,overloadedBoolean:Ju,spaceSeparated:th});const ah=Object.keys(sh);class oh extends Xu{constructor(e,t,n,i){let r=-1;if(super(e,t),lh(this,"space",i),"number"==typeof n)for(;++r<ah.length;){const e=ah[r];lh(this,ah[r],(n&sh[e])===sh[e])}}}function lh(e,t,n){n&&(e[t]=n)}oh.prototype.defined=!0;const ch={}.hasOwnProperty;function uh(e){const t={},n={};let i;for(i in e.properties)if(ch.call(e.properties,i)){const r=e.properties[i],s=new oh(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[Ku(i)]=i,n[Ku(s.attribute)]=i}return new Yu(t,n,e.space)}const hh=uh({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),fh=uh({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function dh(e,t){return t in e?e[t]:t}function ph(e,t){return dh(e,t.toLowerCase())}const mh=uh({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ph,properties:{xmlns:null,xmlnsXLink:null}}),gh=uh({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Zu,ariaAutoComplete:null,ariaBusy:Zu,ariaChecked:Zu,ariaColCount:eh,ariaColIndex:eh,ariaColSpan:eh,ariaControls:th,ariaCurrent:null,ariaDescribedBy:th,ariaDetails:null,ariaDisabled:Zu,ariaDropEffect:th,ariaErrorMessage:null,ariaExpanded:Zu,ariaFlowTo:th,ariaGrabbed:Zu,ariaHasPopup:null,ariaHidden:Zu,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:th,ariaLevel:eh,ariaLive:null,ariaModal:Zu,ariaMultiLine:Zu,ariaMultiSelectable:Zu,ariaOrientation:null,ariaOwns:th,ariaPlaceholder:null,ariaPosInSet:eh,ariaPressed:Zu,ariaReadOnly:Zu,ariaRelevant:null,ariaRequired:Zu,ariaRoleDescription:th,ariaRowCount:eh,ariaRowIndex:eh,ariaRowSpan:eh,ariaSelected:Zu,ariaSetSize:eh,ariaSort:null,ariaValueMax:eh,ariaValueMin:eh,ariaValueNow:eh,ariaValueText:null,role:null}}),bh=uh({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ph,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nh,acceptCharset:th,accessKey:th,action:null,allow:null,allowFullScreen:$u,allowPaymentRequest:$u,allowUserMedia:$u,alt:null,as:null,async:$u,autoCapitalize:null,autoComplete:th,autoFocus:$u,autoPlay:$u,blocking:th,capture:$u,charSet:null,checked:$u,cite:null,className:th,cols:eh,colSpan:null,content:null,contentEditable:Zu,controls:$u,controlsList:th,coords:eh|nh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$u,defer:$u,dir:null,dirName:null,disabled:$u,download:Ju,draggable:Zu,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$u,formTarget:null,headers:th,height:eh,hidden:$u,high:eh,href:null,hrefLang:null,htmlFor:th,httpEquiv:th,id:null,imageSizes:null,imageSrcSet:null,inert:$u,inputMode:null,integrity:null,is:null,isMap:$u,itemId:null,itemProp:th,itemRef:th,itemScope:$u,itemType:th,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$u,low:eh,manifest:null,max:null,maxLength:eh,media:null,method:null,min:null,minLength:eh,multiple:$u,muted:$u,name:null,nonce:null,noModule:$u,noValidate:$u,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$u,optimum:eh,pattern:null,ping:th,placeholder:null,playsInline:$u,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$u,referrerPolicy:null,rel:th,required:$u,reversed:$u,rows:eh,rowSpan:eh,sandbox:th,scope:null,scoped:$u,seamless:$u,selected:$u,shape:null,size:eh,sizes:null,slot:null,span:eh,spellCheck:Zu,src:null,srcDoc:null,srcLang:null,srcSet:null,start:eh,step:null,style:null,tabIndex:eh,target:null,title:null,translate:null,type:null,typeMustMatch:$u,useMap:null,value:Zu,width:eh,wrap:null,align:null,aLink:null,archive:th,axis:null,background:null,bgColor:null,border:eh,borderColor:null,bottomMargin:eh,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$u,declare:$u,event:null,face:null,frame:null,frameBorder:null,hSpace:eh,leftMargin:eh,link:null,longDesc:null,lowSrc:null,marginHeight:eh,marginWidth:eh,noResize:$u,noHref:$u,noShade:$u,noWrap:$u,object:null,profile:null,prompt:null,rev:null,rightMargin:eh,rules:null,scheme:null,scrolling:Zu,standby:null,summary:null,text:null,topMargin:eh,valueType:null,version:null,vAlign:null,vLink:null,vSpace:eh,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$u,disableRemotePlayback:$u,prefix:null,property:null,results:eh,security:null,unselectable:null}}),kh=uh({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:dh,properties:{about:ih,accentHeight:eh,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:eh,amplitude:eh,arabicForm:null,ascent:eh,attributeName:null,attributeType:null,azimuth:eh,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:eh,by:null,calcMode:null,capHeight:eh,className:th,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:eh,diffuseConstant:eh,direction:null,display:null,dur:null,divisor:eh,dominantBaseline:null,download:$u,dx:null,dy:null,edgeMode:null,editable:null,elevation:eh,enableBackground:null,end:null,event:null,exponent:eh,externalResourcesRequired:null,fill:null,fillOpacity:eh,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:nh,g2:nh,glyphName:nh,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:eh,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:eh,horizOriginX:eh,horizOriginY:eh,id:null,ideographic:eh,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:eh,k:eh,k1:eh,k2:eh,k3:eh,k4:eh,kernelMatrix:ih,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:eh,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:eh,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:eh,overlineThickness:eh,paintOrder:null,panose1:null,path:null,pathLength:eh,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:th,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:eh,pointsAtY:eh,pointsAtZ:eh,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ih,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ih,rev:ih,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ih,requiredFeatures:ih,requiredFonts:ih,requiredFormats:ih,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:eh,specularExponent:eh,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:eh,strikethroughThickness:eh,string:null,stroke:null,strokeDashArray:ih,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:eh,strokeOpacity:eh,strokeWidth:null,style:null,surfaceScale:eh,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ih,tabIndex:eh,tableValues:null,target:null,targetX:eh,targetY:eh,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ih,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:eh,underlineThickness:eh,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:eh,values:null,vAlphabetic:eh,vMathematical:eh,vectorEffect:null,vHanging:eh,vIdeographic:eh,version:null,vertAdvY:eh,vertOriginX:eh,vertOriginY:eh,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:eh,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),yh=/^data[-\w.:]+$/i,Eh=/-[a-z]/g,vh=/[A-Z]/g;function wh(e){return"-"+e.toLowerCase()}function Th(e){return e.charAt(1).toUpperCase()}const Sh=Wu([fh,hh,mh,gh,bh],"html"),xh=Wu([fh,hh,mh,gh,kh],"svg"),Ah={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ch={}.hasOwnProperty,Dh={},_h={}.hasOwnProperty,Rh=function(e,t){const n=t||{};function i(t,...n){let r=i.invalid;const s=i.handlers;if(t&&Ch.call(t,e)){const n=String(t[e]);r=Ch.call(s,n)?s[n]:i.unknown}if(r)return r.call(this,t,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ih(e.children,n,t),Oh(e,n),n},element:function(e,t){const n=t;let i=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(i=xh);const r=[];let s;if(e.properties)for(s in e.properties)if("children"!==s&&_h.call(e.properties,s)){const t=Lh(i,s,e.properties[s]);t&&r.push(t)}const a={nodeName:e.tagName,tagName:e.tagName,attrs:r,namespaceURI:Ah[i.space],childNodes:[],parentNode:null};return a.childNodes=Ih(e.children,a,i),Oh(e,a),"template"===e.tagName&&e.content&&(a.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ih(e.children,n,t),Oh(e,n),n}(e.content,i)),a},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Oh(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Oh(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Oh(e,t),t}}});function Lh(e,t,n){const i=function(e,t){const n=Ku(t);let i=t,r=Xu;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&yh.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Eh,Th);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Eh.test(e)){let n=e.replace(vh,wh);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}r=oh}return new r(i,t)}(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&i.boolean)return;Array.isArray(n)&&(n=i.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim());const r={name:i.attribute,value:!0===n?"":String(n)};if(i.space&&"html"!==i.space&&"svg"!==i.space){const e=r.name.indexOf(":");e<0?r.prefix="":(r.name=r.name.slice(e+1),r.prefix=i.attribute.slice(0,e)),r.namespace=Ah[i.space]}return r}function Ih(e,t,n){let i=-1;const r=[];if(e)for(;++i<e.length;){const s=Rh(e[i],n);s.parentNode=t,r.push(s)}return r}function Oh(e,t){const n=e.position;n&&n.start&&n.end&&(t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Nh=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ph=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Mh="�";var Uh;!function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"}(Uh=Uh||(Uh={}));const qh="[CDATA[",Bh="doctype",Fh="script";function Hh(e){return e>=55296&&e<=57343}function zh(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function jh(e){return e>=64976&&e<=65007||Ph.has(e)}var Gh,Vh,Yh,Wh,Kh,Xh,Qh;!function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"}(Gh=Gh||(Gh={}));class $h{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){const{line:t,col:n,offset:i}=this;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:i,endOffset:i}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Uh.EOF;return this._err(Gh.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Uh.EOF;const n=this.html.charCodeAt(t);return n===Uh.CARRIAGE_RETURN?Uh.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,Uh.EOF;let e=this.html.charCodeAt(this.pos);return e===Uh.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,Uh.LINE_FEED):e===Uh.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Hh(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===Uh.LINE_FEED||e===Uh.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){zh(e)?this._err(Gh.controlCharacterInInputStream):jh(e)&&this._err(Gh.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function Zh(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}!function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"}(Vh=Vh||(Vh={})),function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"}(Yh=Yh||(Yh={})),function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"}(Wh=Wh||(Wh={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(Kh=Kh||(Kh={})),function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"}(Xh=Xh||(Xh={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"}(Qh=Qh||(Qh={}));const Jh=new Map([[Xh.A,Qh.A],[Xh.ADDRESS,Qh.ADDRESS],[Xh.ANNOTATION_XML,Qh.ANNOTATION_XML],[Xh.APPLET,Qh.APPLET],[Xh.AREA,Qh.AREA],[Xh.ARTICLE,Qh.ARTICLE],[Xh.ASIDE,Qh.ASIDE],[Xh.B,Qh.B],[Xh.BASE,Qh.BASE],[Xh.BASEFONT,Qh.BASEFONT],[Xh.BGSOUND,Qh.BGSOUND],[Xh.BIG,Qh.BIG],[Xh.BLOCKQUOTE,Qh.BLOCKQUOTE],[Xh.BODY,Qh.BODY],[Xh.BR,Qh.BR],[Xh.BUTTON,Qh.BUTTON],[Xh.CAPTION,Qh.CAPTION],[Xh.CENTER,Qh.CENTER],[Xh.CODE,Qh.CODE],[Xh.COL,Qh.COL],[Xh.COLGROUP,Qh.COLGROUP],[Xh.DD,Qh.DD],[Xh.DESC,Qh.DESC],[Xh.DETAILS,Qh.DETAILS],[Xh.DIALOG,Qh.DIALOG],[Xh.DIR,Qh.DIR],[Xh.DIV,Qh.DIV],[Xh.DL,Qh.DL],[Xh.DT,Qh.DT],[Xh.EM,Qh.EM],[Xh.EMBED,Qh.EMBED],[Xh.FIELDSET,Qh.FIELDSET],[Xh.FIGCAPTION,Qh.FIGCAPTION],[Xh.FIGURE,Qh.FIGURE],[Xh.FONT,Qh.FONT],[Xh.FOOTER,Qh.FOOTER],[Xh.FOREIGN_OBJECT,Qh.FOREIGN_OBJECT],[Xh.FORM,Qh.FORM],[Xh.FRAME,Qh.FRAME],[Xh.FRAMESET,Qh.FRAMESET],[Xh.H1,Qh.H1],[Xh.H2,Qh.H2],[Xh.H3,Qh.H3],[Xh.H4,Qh.H4],[Xh.H5,Qh.H5],[Xh.H6,Qh.H6],[Xh.HEAD,Qh.HEAD],[Xh.HEADER,Qh.HEADER],[Xh.HGROUP,Qh.HGROUP],[Xh.HR,Qh.HR],[Xh.HTML,Qh.HTML],[Xh.I,Qh.I],[Xh.IMG,Qh.IMG],[Xh.IMAGE,Qh.IMAGE],[Xh.INPUT,Qh.INPUT],[Xh.IFRAME,Qh.IFRAME],[Xh.KEYGEN,Qh.KEYGEN],[Xh.LABEL,Qh.LABEL],[Xh.LI,Qh.LI],[Xh.LINK,Qh.LINK],[Xh.LISTING,Qh.LISTING],[Xh.MAIN,Qh.MAIN],[Xh.MALIGNMARK,Qh.MALIGNMARK],[Xh.MARQUEE,Qh.MARQUEE],[Xh.MATH,Qh.MATH],[Xh.MENU,Qh.MENU],[Xh.META,Qh.META],[Xh.MGLYPH,Qh.MGLYPH],[Xh.MI,Qh.MI],[Xh.MO,Qh.MO],[Xh.MN,Qh.MN],[Xh.MS,Qh.MS],[Xh.MTEXT,Qh.MTEXT],[Xh.NAV,Qh.NAV],[Xh.NOBR,Qh.NOBR],[Xh.NOFRAMES,Qh.NOFRAMES],[Xh.NOEMBED,Qh.NOEMBED],[Xh.NOSCRIPT,Qh.NOSCRIPT],[Xh.OBJECT,Qh.OBJECT],[Xh.OL,Qh.OL],[Xh.OPTGROUP,Qh.OPTGROUP],[Xh.OPTION,Qh.OPTION],[Xh.P,Qh.P],[Xh.PARAM,Qh.PARAM],[Xh.PLAINTEXT,Qh.PLAINTEXT],[Xh.PRE,Qh.PRE],[Xh.RB,Qh.RB],[Xh.RP,Qh.RP],[Xh.RT,Qh.RT],[Xh.RTC,Qh.RTC],[Xh.RUBY,Qh.RUBY],[Xh.S,Qh.S],[Xh.SCRIPT,Qh.SCRIPT],[Xh.SECTION,Qh.SECTION],[Xh.SELECT,Qh.SELECT],[Xh.SOURCE,Qh.SOURCE],[Xh.SMALL,Qh.SMALL],[Xh.SPAN,Qh.SPAN],[Xh.STRIKE,Qh.STRIKE],[Xh.STRONG,Qh.STRONG],[Xh.STYLE,Qh.STYLE],[Xh.SUB,Qh.SUB],[Xh.SUMMARY,Qh.SUMMARY],[Xh.SUP,Qh.SUP],[Xh.TABLE,Qh.TABLE],[Xh.TBODY,Qh.TBODY],[Xh.TEMPLATE,Qh.TEMPLATE],[Xh.TEXTAREA,Qh.TEXTAREA],[Xh.TFOOT,Qh.TFOOT],[Xh.TD,Qh.TD],[Xh.TH,Qh.TH],[Xh.THEAD,Qh.THEAD],[Xh.TITLE,Qh.TITLE],[Xh.TR,Qh.TR],[Xh.TRACK,Qh.TRACK],[Xh.TT,Qh.TT],[Xh.U,Qh.U],[Xh.UL,Qh.UL],[Xh.SVG,Qh.SVG],[Xh.VAR,Qh.VAR],[Xh.WBR,Qh.WBR],[Xh.XMP,Qh.XMP]]);function ef(e){var t;return null!==(t=Jh.get(e))&&void 0!==t?t:Qh.UNKNOWN}const tf=Qh,nf={[Yh.HTML]:new Set([tf.ADDRESS,tf.APPLET,tf.AREA,tf.ARTICLE,tf.ASIDE,tf.BASE,tf.BASEFONT,tf.BGSOUND,tf.BLOCKQUOTE,tf.BODY,tf.BR,tf.BUTTON,tf.CAPTION,tf.CENTER,tf.COL,tf.COLGROUP,tf.DD,tf.DETAILS,tf.DIR,tf.DIV,tf.DL,tf.DT,tf.EMBED,tf.FIELDSET,tf.FIGCAPTION,tf.FIGURE,tf.FOOTER,tf.FORM,tf.FRAME,tf.FRAMESET,tf.H1,tf.H2,tf.H3,tf.H4,tf.H5,tf.H6,tf.HEAD,tf.HEADER,tf.HGROUP,tf.HR,tf.HTML,tf.IFRAME,tf.IMG,tf.INPUT,tf.LI,tf.LINK,tf.LISTING,tf.MAIN,tf.MARQUEE,tf.MENU,tf.META,tf.NAV,tf.NOEMBED,tf.NOFRAMES,tf.NOSCRIPT,tf.OBJECT,tf.OL,tf.P,tf.PARAM,tf.PLAINTEXT,tf.PRE,tf.SCRIPT,tf.SECTION,tf.SELECT,tf.SOURCE,tf.STYLE,tf.SUMMARY,tf.TABLE,tf.TBODY,tf.TD,tf.TEMPLATE,tf.TEXTAREA,tf.TFOOT,tf.TH,tf.THEAD,tf.TITLE,tf.TR,tf.TRACK,tf.UL,tf.WBR,tf.XMP]),[Yh.MATHML]:new Set([tf.MI,tf.MO,tf.MN,tf.MS,tf.MTEXT,tf.ANNOTATION_XML]),[Yh.SVG]:new Set([tf.TITLE,tf.FOREIGN_OBJECT,tf.DESC]),[Yh.XLINK]:new Set,[Yh.XML]:new Set,[Yh.XMLNS]:new Set};function rf(e){return e===tf.H1||e===tf.H2||e===tf.H3||e===tf.H4||e===tf.H5||e===tf.H6}const sf=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var af;!function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"}(af||(af={}));const of={DATA:af.DATA,RCDATA:af.RCDATA,RAWTEXT:af.RAWTEXT,SCRIPT_DATA:af.SCRIPT_DATA,PLAINTEXT:af.PLAINTEXT};function lf(e){return e>=Uh.DIGIT_0&&e<=Uh.DIGIT_9}function cf(e){return e>=Uh.LATIN_CAPITAL_A&&e<=Uh.LATIN_CAPITAL_Z}function uf(e){return function(e){return e>=Uh.LATIN_SMALL_A&&e<=Uh.LATIN_SMALL_Z}(e)||cf(e)}function hf(e){return uf(e)||lf(e)}function ff(e){return e>=Uh.LATIN_CAPITAL_A&&e<=Uh.LATIN_CAPITAL_F}function df(e){return e>=Uh.LATIN_SMALL_A&&e<=Uh.LATIN_SMALL_F}function pf(e){return e+32}function mf(e){return e===Uh.SPACE||e===Uh.LINE_FEED||e===Uh.TABULATION||e===Uh.FORM_FEED}function gf(e){return mf(e)||e===Uh.SOLIDUS||e===Uh.GREATER_THAN_SIGN}class bf{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=af.DATA,this.returnState=af.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new $h(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,n;null===(n=(t=this.handler).onParseError)||void 0===n||n.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:Vh.START_TAG,tagName:"",tagID:Qh.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Vh.END_TAG,tagName:"",tagID:Qh.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Vh.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Vh.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;null===Zh(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(Gh.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=ef(e.tagName),e.type===Vh.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(Gh.endTagWithAttributes),e.selfClosing&&this._err(Gh.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case Vh.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Vh.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Vh.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:Vh.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=mf(e)?Vh.WHITESPACE_CHARACTER:e===Uh.NULL?Vh.NULL_CHARACTER:Vh.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Vh.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let a=0,l=i[0];a>=0&&(a=p(i,l,a+1,e),!(a<0));e=this._consume()){n+=1,l=i[a];const c=l&o.VALUE_LENGTH;if(c){const l=(c>>14)-1;if(e!==Uh.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((s=this.preprocessor.peek(1))===Uh.EQUALS_SIGN||hf(s))?(t=[Uh.AMPERSAND],a+=l):(t=0===l?[i[a]&~o.VALUE_LENGTH]:1===l?[i[++a]]:[i[++a],i[++a]],n=0,r=e!==Uh.SEMICOLON),0===l){this._consume();break}}}var s;return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(Gh.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===af.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===af.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===af.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case af.DATA:this._stateData(e);break;case af.RCDATA:this._stateRcdata(e);break;case af.RAWTEXT:this._stateRawtext(e);break;case af.SCRIPT_DATA:this._stateScriptData(e);break;case af.PLAINTEXT:this._statePlaintext(e);break;case af.TAG_OPEN:this._stateTagOpen(e);break;case af.END_TAG_OPEN:this._stateEndTagOpen(e);break;case af.TAG_NAME:this._stateTagName(e);break;case af.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case af.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case af.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case af.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case af.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case af.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case af.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case af.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case af.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case af.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case af.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case af.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case af.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case af.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case af.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case af.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case af.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case af.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case af.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case af.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case af.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case af.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case af.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case af.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case af.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case af.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case af.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case af.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case af.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case af.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case af.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case af.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case af.BOGUS_COMMENT:this._stateBogusComment(e);break;case af.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case af.COMMENT_START:this._stateCommentStart(e);break;case af.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case af.COMMENT:this._stateComment(e);break;case af.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case af.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case af.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case af.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case af.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case af.COMMENT_END:this._stateCommentEnd(e);break;case af.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case af.DOCTYPE:this._stateDoctype(e);break;case af.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case af.DOCTYPE_NAME:this._stateDoctypeName(e);break;case af.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case af.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case af.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case af.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case af.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case af.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case af.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case af.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case af.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case af.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case af.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case af.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case af.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case af.CDATA_SECTION:this._stateCdataSection(e);break;case af.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case af.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case af.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case af.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case af.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case af.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case af.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case af.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case af.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case af.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case Uh.LESS_THAN_SIGN:this.state=af.TAG_OPEN;break;case Uh.AMPERSAND:this.returnState=af.DATA,this.state=af.CHARACTER_REFERENCE;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this._emitCodePoint(e);break;case Uh.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case Uh.AMPERSAND:this.returnState=af.RCDATA,this.state=af.CHARACTER_REFERENCE;break;case Uh.LESS_THAN_SIGN:this.state=af.RCDATA_LESS_THAN_SIGN;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this._emitChars(Mh);break;case Uh.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case Uh.LESS_THAN_SIGN:this.state=af.RAWTEXT_LESS_THAN_SIGN;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this._emitChars(Mh);break;case Uh.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case Uh.LESS_THAN_SIGN:this.state=af.SCRIPT_DATA_LESS_THAN_SIGN;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this._emitChars(Mh);break;case Uh.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this._emitChars(Mh);break;case Uh.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(uf(e))this._createStartTagToken(),this.state=af.TAG_NAME,this._stateTagName(e);else switch(e){case Uh.EXCLAMATION_MARK:this.state=af.MARKUP_DECLARATION_OPEN;break;case Uh.SOLIDUS:this.state=af.END_TAG_OPEN;break;case Uh.QUESTION_MARK:this._err(Gh.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=af.BOGUS_COMMENT,this._stateBogusComment(e);break;case Uh.EOF:this._err(Gh.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(Gh.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=af.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(uf(e))this._createEndTagToken(),this.state=af.TAG_NAME,this._stateTagName(e);else switch(e){case Uh.GREATER_THAN_SIGN:this._err(Gh.missingEndTagName),this.state=af.DATA;break;case Uh.EOF:this._err(Gh.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(Gh.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=af.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:this.state=af.BEFORE_ATTRIBUTE_NAME;break;case Uh.SOLIDUS:this.state=af.SELF_CLOSING_START_TAG;break;case Uh.GREATER_THAN_SIGN:this.state=af.DATA,this.emitCurrentTagToken();break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),t.tagName+=Mh;break;case Uh.EOF:this._err(Gh.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(cf(e)?pf(e):e)}}_stateRcdataLessThanSign(e){e===Uh.SOLIDUS?this.state=af.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=af.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){uf(e)?(this.state=af.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=af.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=af.BEFORE_ATTRIBUTE_NAME,!1;case Uh.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=af.SELF_CLOSING_START_TAG,!1;case Uh.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=af.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=af.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===Uh.SOLIDUS?this.state=af.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=af.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){uf(e)?(this.state=af.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=af.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=af.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case Uh.SOLIDUS:this.state=af.SCRIPT_DATA_END_TAG_OPEN;break;case Uh.EXCLAMATION_MARK:this.state=af.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=af.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){uf(e)?(this.state=af.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=af.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=af.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===Uh.HYPHEN_MINUS?(this.state=af.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=af.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===Uh.HYPHEN_MINUS?(this.state=af.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=af.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case Uh.HYPHEN_MINUS:this.state=af.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case Uh.LESS_THAN_SIGN:this.state=af.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this._emitChars(Mh);break;case Uh.EOF:this._err(Gh.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case Uh.HYPHEN_MINUS:this.state=af.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case Uh.LESS_THAN_SIGN:this.state=af.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this.state=af.SCRIPT_DATA_ESCAPED,this._emitChars(Mh);break;case Uh.EOF:this._err(Gh.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=af.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case Uh.HYPHEN_MINUS:this._emitChars("-");break;case Uh.LESS_THAN_SIGN:this.state=af.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case Uh.GREATER_THAN_SIGN:this.state=af.SCRIPT_DATA,this._emitChars(">");break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this.state=af.SCRIPT_DATA_ESCAPED,this._emitChars(Mh);break;case Uh.EOF:this._err(Gh.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=af.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===Uh.SOLIDUS?this.state=af.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:uf(e)?(this._emitChars("<"),this.state=af.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=af.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){uf(e)?(this.state=af.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=af.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=af.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Fh,!1)&&gf(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=af.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=af.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case Uh.HYPHEN_MINUS:this.state=af.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case Uh.LESS_THAN_SIGN:this.state=af.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this._emitChars(Mh);break;case Uh.EOF:this._err(Gh.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case Uh.HYPHEN_MINUS:this.state=af.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case Uh.LESS_THAN_SIGN:this.state=af.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this.state=af.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Mh);break;case Uh.EOF:this._err(Gh.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=af.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case Uh.HYPHEN_MINUS:this._emitChars("-");break;case Uh.LESS_THAN_SIGN:this.state=af.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case Uh.GREATER_THAN_SIGN:this.state=af.SCRIPT_DATA,this._emitChars(">");break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this.state=af.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Mh);break;case Uh.EOF:this._err(Gh.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=af.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===Uh.SOLIDUS?(this.state=af.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=af.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Fh,!1)&&gf(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=af.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=af.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:break;case Uh.SOLIDUS:case Uh.GREATER_THAN_SIGN:case Uh.EOF:this.state=af.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Uh.EQUALS_SIGN:this._err(Gh.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=af.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=af.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:case Uh.SOLIDUS:case Uh.GREATER_THAN_SIGN:case Uh.EOF:this._leaveAttrName(),this.state=af.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case Uh.EQUALS_SIGN:this._leaveAttrName(),this.state=af.BEFORE_ATTRIBUTE_VALUE;break;case Uh.QUOTATION_MARK:case Uh.APOSTROPHE:case Uh.LESS_THAN_SIGN:this._err(Gh.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this.currentAttr.name+=Mh;break;default:this.currentAttr.name+=String.fromCodePoint(cf(e)?pf(e):e)}}_stateAfterAttributeName(e){switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:break;case Uh.SOLIDUS:this.state=af.SELF_CLOSING_START_TAG;break;case Uh.EQUALS_SIGN:this.state=af.BEFORE_ATTRIBUTE_VALUE;break;case Uh.GREATER_THAN_SIGN:this.state=af.DATA,this.emitCurrentTagToken();break;case Uh.EOF:this._err(Gh.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=af.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:break;case Uh.QUOTATION_MARK:this.state=af.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case Uh.APOSTROPHE:this.state=af.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case Uh.GREATER_THAN_SIGN:this._err(Gh.missingAttributeValue),this.state=af.DATA,this.emitCurrentTagToken();break;default:this.state=af.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case Uh.QUOTATION_MARK:this.state=af.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Uh.AMPERSAND:this.returnState=af.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=af.CHARACTER_REFERENCE;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this.currentAttr.value+=Mh;break;case Uh.EOF:this._err(Gh.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case Uh.APOSTROPHE:this.state=af.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case Uh.AMPERSAND:this.returnState=af.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=af.CHARACTER_REFERENCE;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this.currentAttr.value+=Mh;break;case Uh.EOF:this._err(Gh.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:this._leaveAttrValue(),this.state=af.BEFORE_ATTRIBUTE_NAME;break;case Uh.AMPERSAND:this.returnState=af.ATTRIBUTE_VALUE_UNQUOTED,this.state=af.CHARACTER_REFERENCE;break;case Uh.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=af.DATA,this.emitCurrentTagToken();break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this.currentAttr.value+=Mh;break;case Uh.QUOTATION_MARK:case Uh.APOSTROPHE:case Uh.LESS_THAN_SIGN:case Uh.EQUALS_SIGN:case Uh.GRAVE_ACCENT:this._err(Gh.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case Uh.EOF:this._err(Gh.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:this._leaveAttrValue(),this.state=af.BEFORE_ATTRIBUTE_NAME;break;case Uh.SOLIDUS:this._leaveAttrValue(),this.state=af.SELF_CLOSING_START_TAG;break;case Uh.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=af.DATA,this.emitCurrentTagToken();break;case Uh.EOF:this._err(Gh.eofInTag),this._emitEOFToken();break;default:this._err(Gh.missingWhitespaceBetweenAttributes),this.state=af.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case Uh.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=af.DATA,this.emitCurrentTagToken();break;case Uh.EOF:this._err(Gh.eofInTag),this._emitEOFToken();break;default:this._err(Gh.unexpectedSolidusInTag),this.state=af.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case Uh.GREATER_THAN_SIGN:this.state=af.DATA,this.emitCurrentComment(t);break;case Uh.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),t.data+=Mh;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=af.COMMENT_START):this._consumeSequenceIfMatch(Bh,!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=af.DOCTYPE):this._consumeSequenceIfMatch(qh,!0)?this.inForeignNode?this.state=af.CDATA_SECTION:(this._err(Gh.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=af.BOGUS_COMMENT):this._ensureHibernation()||(this._err(Gh.incorrectlyOpenedComment),this._createCommentToken(2),this.state=af.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case Uh.HYPHEN_MINUS:this.state=af.COMMENT_START_DASH;break;case Uh.GREATER_THAN_SIGN:this._err(Gh.abruptClosingOfEmptyComment),this.state=af.DATA,this.emitCurrentComment(this.currentToken);break;default:this.state=af.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case Uh.HYPHEN_MINUS:this.state=af.COMMENT_END;break;case Uh.GREATER_THAN_SIGN:this._err(Gh.abruptClosingOfEmptyComment),this.state=af.DATA,this.emitCurrentComment(t);break;case Uh.EOF:this._err(Gh.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=af.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case Uh.HYPHEN_MINUS:this.state=af.COMMENT_END_DASH;break;case Uh.LESS_THAN_SIGN:t.data+="<",this.state=af.COMMENT_LESS_THAN_SIGN;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),t.data+=Mh;break;case Uh.EOF:this._err(Gh.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case Uh.EXCLAMATION_MARK:t.data+="!",this.state=af.COMMENT_LESS_THAN_SIGN_BANG;break;case Uh.LESS_THAN_SIGN:t.data+="<";break;default:this.state=af.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===Uh.HYPHEN_MINUS?this.state=af.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=af.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===Uh.HYPHEN_MINUS?this.state=af.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=af.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==Uh.GREATER_THAN_SIGN&&e!==Uh.EOF&&this._err(Gh.nestedComment),this.state=af.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case Uh.HYPHEN_MINUS:this.state=af.COMMENT_END;break;case Uh.EOF:this._err(Gh.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=af.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case Uh.GREATER_THAN_SIGN:this.state=af.DATA,this.emitCurrentComment(t);break;case Uh.EXCLAMATION_MARK:this.state=af.COMMENT_END_BANG;break;case Uh.HYPHEN_MINUS:t.data+="-";break;case Uh.EOF:this._err(Gh.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=af.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case Uh.HYPHEN_MINUS:t.data+="--!",this.state=af.COMMENT_END_DASH;break;case Uh.GREATER_THAN_SIGN:this._err(Gh.incorrectlyClosedComment),this.state=af.DATA,this.emitCurrentComment(t);break;case Uh.EOF:this._err(Gh.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=af.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:this.state=af.BEFORE_DOCTYPE_NAME;break;case Uh.GREATER_THAN_SIGN:this.state=af.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case Uh.EOF:{this._err(Gh.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(Gh.missingWhitespaceBeforeDoctypeName),this.state=af.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(cf(e))this._createDoctypeToken(String.fromCharCode(pf(e))),this.state=af.DOCTYPE_NAME;else switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),this._createDoctypeToken(Mh),this.state=af.DOCTYPE_NAME;break;case Uh.GREATER_THAN_SIGN:{this._err(Gh.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=af.DATA;break}case Uh.EOF:{this._err(Gh.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=af.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:this.state=af.AFTER_DOCTYPE_NAME;break;case Uh.GREATER_THAN_SIGN:this.state=af.DATA,this.emitCurrentDoctype(t);break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),t.name+=Mh;break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(cf(e)?pf(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:break;case Uh.GREATER_THAN_SIGN:this.state=af.DATA,this.emitCurrentDoctype(t);break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=af.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=af.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(Gh.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=af.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:this.state=af.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case Uh.QUOTATION_MARK:this._err(Gh.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=af.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Uh.APOSTROPHE:this._err(Gh.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=af.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Uh.GREATER_THAN_SIGN:this._err(Gh.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=af.DATA,this.emitCurrentDoctype(t);break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Gh.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=af.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:break;case Uh.QUOTATION_MARK:t.publicId="",this.state=af.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case Uh.APOSTROPHE:t.publicId="",this.state=af.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case Uh.GREATER_THAN_SIGN:this._err(Gh.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=af.DATA,this.emitCurrentDoctype(t);break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Gh.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=af.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Uh.QUOTATION_MARK:this.state=af.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),t.publicId+=Mh;break;case Uh.GREATER_THAN_SIGN:this._err(Gh.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=af.DATA;break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Uh.APOSTROPHE:this.state=af.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),t.publicId+=Mh;break;case Uh.GREATER_THAN_SIGN:this._err(Gh.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=af.DATA;break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:this.state=af.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case Uh.GREATER_THAN_SIGN:this.state=af.DATA,this.emitCurrentDoctype(t);break;case Uh.QUOTATION_MARK:this._err(Gh.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=af.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Uh.APOSTROPHE:this._err(Gh.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=af.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Gh.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=af.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:break;case Uh.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=af.DATA;break;case Uh.QUOTATION_MARK:t.systemId="",this.state=af.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Uh.APOSTROPHE:t.systemId="",this.state=af.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Gh.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=af.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:this.state=af.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case Uh.QUOTATION_MARK:this._err(Gh.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=af.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Uh.APOSTROPHE:this._err(Gh.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=af.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Uh.GREATER_THAN_SIGN:this._err(Gh.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=af.DATA,this.emitCurrentDoctype(t);break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Gh.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=af.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:break;case Uh.QUOTATION_MARK:t.systemId="",this.state=af.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case Uh.APOSTROPHE:t.systemId="",this.state=af.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case Uh.GREATER_THAN_SIGN:this._err(Gh.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=af.DATA,this.emitCurrentDoctype(t);break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Gh.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=af.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case Uh.QUOTATION_MARK:this.state=af.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),t.systemId+=Mh;break;case Uh.GREATER_THAN_SIGN:this._err(Gh.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=af.DATA;break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case Uh.APOSTROPHE:this.state=af.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter),t.systemId+=Mh;break;case Uh.GREATER_THAN_SIGN:this._err(Gh.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=af.DATA;break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case Uh.SPACE:case Uh.LINE_FEED:case Uh.TABULATION:case Uh.FORM_FEED:break;case Uh.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=af.DATA;break;case Uh.EOF:this._err(Gh.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(Gh.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=af.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case Uh.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=af.DATA;break;case Uh.NULL:this._err(Gh.unexpectedNullCharacter);break;case Uh.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case Uh.RIGHT_SQUARE_BRACKET:this.state=af.CDATA_SECTION_BRACKET;break;case Uh.EOF:this._err(Gh.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===Uh.RIGHT_SQUARE_BRACKET?this.state=af.CDATA_SECTION_END:(this._emitChars("]"),this.state=af.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case Uh.GREATER_THAN_SIGN:this.state=af.DATA;break;case Uh.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=af.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===Uh.NUMBER_SIGN?this.state=af.NUMERIC_CHARACTER_REFERENCE:hf(e)?(this.state=af.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(Uh.AMPERSAND),this._reconsumeInState(this.returnState,e))}_stateNamedCharacterReference(e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation());else if(t){for(let e=0;e<t.length;e++)this._flushCodePointConsumedAsCharacterReference(t[e]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(Uh.AMPERSAND),this.state=af.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(e){hf(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===Uh.SEMICOLON&&this._err(Gh.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,e))}_stateNumericCharacterReference(e){this.charRefCode=0,e===Uh.LATIN_SMALL_X||e===Uh.LATIN_CAPITAL_X?this.state=af.HEXADEMICAL_CHARACTER_REFERENCE_START:lf(e)?(this.state=af.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(Gh.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(Uh.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(Uh.NUMBER_SIGN),this._reconsumeInState(this.returnState,e))}_stateHexademicalCharacterReferenceStart(e){!function(e){return lf(e)||ff(e)||df(e)}(e)?(this._err(Gh.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(Uh.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(Uh.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState):(this.state=af.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e))}_stateHexademicalCharacterReference(e){ff(e)?this.charRefCode=16*this.charRefCode+e-55:df(e)?this.charRefCode=16*this.charRefCode+e-87:lf(e)?this.charRefCode=16*this.charRefCode+e-48:e===Uh.SEMICOLON?this.state=af.NUMERIC_CHARACTER_REFERENCE_END:(this._err(Gh.missingSemicolonAfterCharacterReference),this.state=af.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharacterReference(e){lf(e)?this.charRefCode=10*this.charRefCode+e-48:e===Uh.SEMICOLON?this.state=af.NUMERIC_CHARACTER_REFERENCE_END:(this._err(Gh.missingSemicolonAfterCharacterReference),this.state=af.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===Uh.NULL)this._err(Gh.nullCharacterReference),this.charRefCode=Uh.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Gh.characterReferenceOutsideUnicodeRange),this.charRefCode=Uh.REPLACEMENT_CHARACTER;else if(Hh(this.charRefCode))this._err(Gh.surrogateCharacterReference),this.charRefCode=Uh.REPLACEMENT_CHARACTER;else if(jh(this.charRefCode))this._err(Gh.noncharacterCharacterReference);else if(zh(this.charRefCode)||this.charRefCode===Uh.CARRIAGE_RETURN){this._err(Gh.controlCharacterReference);const e=sf.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}const kf=new Set([Qh.DD,Qh.DT,Qh.LI,Qh.OPTGROUP,Qh.OPTION,Qh.P,Qh.RB,Qh.RP,Qh.RT,Qh.RTC]),yf=new Set([...kf,Qh.CAPTION,Qh.COLGROUP,Qh.TBODY,Qh.TD,Qh.TFOOT,Qh.TH,Qh.THEAD,Qh.TR]),Ef=new Map([[Qh.APPLET,Yh.HTML],[Qh.CAPTION,Yh.HTML],[Qh.HTML,Yh.HTML],[Qh.MARQUEE,Yh.HTML],[Qh.OBJECT,Yh.HTML],[Qh.TABLE,Yh.HTML],[Qh.TD,Yh.HTML],[Qh.TEMPLATE,Yh.HTML],[Qh.TH,Yh.HTML],[Qh.ANNOTATION_XML,Yh.MATHML],[Qh.MI,Yh.MATHML],[Qh.MN,Yh.MATHML],[Qh.MO,Yh.MATHML],[Qh.MS,Yh.MATHML],[Qh.MTEXT,Yh.MATHML],[Qh.DESC,Yh.SVG],[Qh.FOREIGN_OBJECT,Yh.SVG],[Qh.TITLE,Yh.SVG]]),vf=[Qh.H1,Qh.H2,Qh.H3,Qh.H4,Qh.H5,Qh.H6],wf=[Qh.TR,Qh.TEMPLATE,Qh.HTML],Tf=[Qh.TBODY,Qh.TFOOT,Qh.THEAD,Qh.TEMPLATE,Qh.HTML],Sf=[Qh.TABLE,Qh.TEMPLATE,Qh.HTML],xf=[Qh.TD,Qh.TH];class Af{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Qh.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===Qh.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Yh.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const i=this._indexOf(e)+1;this.items.splice(i,0,t),this.tagIDs.splice(i,0,n),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Yh.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n<0?0:n)}popUntilNumberedHeaderPopped(){this.popUntilPopped(vf,Yh.HTML)}popUntilTableCellPopped(){this.popUntilPopped(xf,Yh.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(Sf,Yh.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Tf,Yh.HTML)}clearBackToTableRowContext(){this.clearBackTo(wf,Yh.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Qh.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===Qh.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],i=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&i===Yh.HTML)return!0;if(Ef.get(n)===i)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e],n=this.treeAdapter.getNamespaceURI(this.items[e]);if(rf(t)&&n===Yh.HTML)return!0;if(Ef.get(t)===n)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],i=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&i===Yh.HTML)return!0;if((n===Qh.UL||n===Qh.OL)&&i===Yh.HTML||Ef.get(n)===i)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],i=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&i===Yh.HTML)return!0;if(n===Qh.BUTTON&&i===Yh.HTML||Ef.get(n)===i)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Yh.HTML){if(n===e)return!0;if(n===Qh.TABLE||n===Qh.TEMPLATE||n===Qh.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===Yh.HTML){if(t===Qh.TBODY||t===Qh.THEAD||t===Qh.TFOOT)return!0;if(t===Qh.TABLE||t===Qh.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===Yh.HTML){if(n===e)return!0;if(n!==Qh.OPTION&&n!==Qh.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;kf.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;yf.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&yf.has(this.currentTagId);)this.pop()}}var Cf;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(Cf=Cf||(Cf={}));const Df={type:Cf.Marker};class _f{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],i=t.length,r=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===Cf.Marker)break;const{element:a}=t;if(this.treeAdapter.getTagName(a)===r&&this.treeAdapter.getNamespaceURI(a)===s){const t=this.treeAdapter.getAttrList(a);t.length===i&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const i=new Map(t.map((e=>[e.name,e.value])));let r=0;for(let e=0;e<n.length;e++){const t=n[e];t.attrs.every((e=>i.get(e.name)===e.value))&&(r+=1,r>=3&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(Df)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:Cf.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Cf.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(Df);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===Cf.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===Cf.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===Cf.Element&&t.element===e))}}function Rf(e){return{nodeName:"#text",value:e,parentNode:null}}const Lf={createDocument:()=>({nodeName:"#document",mode:Kh.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,i){const r=e.childNodes.find((e=>"#documentType"===e.nodeName));r?(r.name=t,r.publicId=n,r.systemId=i):Lf.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Lf.isTextNode(n))return void(n.value+=t)}Lf.appendChild(e,Rf(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];i&&Lf.isTextNode(i)?i.value+=t:Lf.insertBefore(e,Rf(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let i=0;i<t.length;i++)n.has(t[i].name)||e.attrs.push(t[i])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},If="html",Of=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Nf=[...Of,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Pf=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Mf=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Uf=[...Mf,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function qf(e,t){return t.some((t=>e.startsWith(t)))}const Bf=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),Ff=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Yh.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Yh.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Yh.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Yh.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Yh.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Yh.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Yh.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Yh.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Yh.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Yh.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Yh.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Yh.XMLNS}]]),Hf=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((e=>[e.toLowerCase(),e]))),zf=new Set([Qh.B,Qh.BIG,Qh.BLOCKQUOTE,Qh.BODY,Qh.BR,Qh.CENTER,Qh.CODE,Qh.DD,Qh.DIV,Qh.DL,Qh.DT,Qh.EM,Qh.EMBED,Qh.H1,Qh.H2,Qh.H3,Qh.H4,Qh.H5,Qh.H6,Qh.HEAD,Qh.HR,Qh.I,Qh.IMG,Qh.LI,Qh.LISTING,Qh.MENU,Qh.META,Qh.NOBR,Qh.OL,Qh.P,Qh.PRE,Qh.RUBY,Qh.S,Qh.SMALL,Qh.SPAN,Qh.STRONG,Qh.STRIKE,Qh.SUB,Qh.SUP,Qh.TABLE,Qh.TT,Qh.U,Qh.UL,Qh.VAR]);function jf(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function Gf(e){for(let t=0;t<e.attrs.length;t++){const n=Bf.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function Vf(e){for(let t=0;t<e.attrs.length;t++){const n=Ff.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}var Yf;!function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"}(Yf||(Yf={}));const Wf={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Kf=new Set([Qh.TABLE,Qh.TBODY,Qh.TFOOT,Qh.THEAD,Qh.TR]),Xf={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Lf,onParseError:null};class Qf{constructor(e,t,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=Yf.INITIAL,this.originalInsertionMode=Yf.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Xf,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new bf(this.options,this),this.activeFormattingElements=new _f(this.treeAdapter),this.fragmentContextID=n?ef(this.treeAdapter.getTagName(n)):Qh.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new Af(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...Xf,...t};null!=e||(e=n.treeAdapter.createElement(Xh.TEMPLATE,Yh.HTML,[]));const i=n.treeAdapter.createElement("documentmock",Yh.HTML,[]),r=new this(n,i,e);return r.fragmentContextID===Qh.TEMPLATE&&r.tmplInsertionModeStack.unshift(Yf.IN_TEMPLATE),r._initTokenizerForFragmentParsing(),r._insertFakeRootElement(),r._resetInsertionMode(),r._findFormInFragmentContext(),r}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var i;if(!this.onParseError)return;const r=null!==(i=e.location)&&void 0!==i?i:Wf;this.onParseError({code:t,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:n?r.startLine:r.endLine,endCol:n?r.startCol:r.endCol,endOffset:n?r.startOffset:r.endOffset})}onItemPush(e,t,n){var i,r;null===(r=(i=this.treeAdapter).onItemPush)||void 0===r||r.call(i,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(i=(n=this.treeAdapter).onItemPop)||void 0===i||i.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||this.treeAdapter.getNamespaceURI(e)===Yh.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Yh.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Yf.TEXT}switchToPlaintextParsing(){this.insertionMode=Yf.TEXT,this.originalInsertionMode=Yf.IN_BODY,this.tokenizer.state=of.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Xh.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Yh.HTML)switch(this.fragmentContextID){case Qh.TITLE:case Qh.TEXTAREA:this.tokenizer.state=of.RCDATA;break;case Qh.STYLE:case Qh.XMP:case Qh.IFRAME:case Qh.NOEMBED:case Qh.NOFRAMES:case Qh.NOSCRIPT:this.tokenizer.state=of.RAWTEXT;break;case Qh.SCRIPT:this.tokenizer.state=of.SCRIPT_DATA;break;case Qh.PLAINTEXT:this.tokenizer.state=of.PLAINTEXT}}_setDocumentType(e){if(this.treeAdapter.setDocumentType(this.document,e.name||"",e.publicId||"",e.systemId||""),e.location){const t=this.treeAdapter.getChildNodes(this.document).find((e=>this.treeAdapter.isDocumentTypeNode(e)));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}this._shouldFosterParentOnInsertion()?this._fosterParentElement(e):this.treeAdapter.appendChild(this.openElements.currentTmplContentOrNode,e)}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,Yh.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Yh.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Xh.HTML,Yh.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,Qh.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const i=this.treeAdapter.getChildNodes(t),r=n?i.lastIndexOf(n):i.length,s=i[r-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:t,endCol:n,endOffset:i}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:t,endCol:n,endOffset:i})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,i=this.treeAdapter.getTagName(e),r=t.type===Vh.END_TAG&&i===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,r)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==Qh.SVG||this.treeAdapter.getTagName(t)!==Xh.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Yh.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Qh.MGLYPH||e.tagID===Qh.MALIGNMARK)&&!this._isIntegrationPoint(n,t,Yh.HTML))}_processToken(e){switch(e.type){case Vh.CHARACTER:this.onCharacter(e);break;case Vh.NULL_CHARACTER:this.onNullCharacter(e);break;case Vh.COMMENT:this.onComment(e);break;case Vh.DOCTYPE:this.onDoctype(e);break;case Vh.START_TAG:this._processStartTag(e);break;case Vh.END_TAG:this.onEndTag(e);break;case Vh.EOF:this.onEof(e);break;case Vh.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return function(e,t,n,i){return(!i||i===Yh.HTML)&&function(e,t,n){if(t===Yh.MATHML&&e===Qh.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===Wh.ENCODING){const t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===Yh.SVG&&(e===Qh.FOREIGN_OBJECT||e===Qh.DESC||e===Qh.TITLE)}(e,t,n)||(!i||i===Yh.MATHML)&&function(e,t){return t===Yh.MATHML&&(e===Qh.MI||e===Qh.MO||e===Qh.MN||e===Qh.MS||e===Qh.MTEXT)}(e,t)}(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex((e=>e.type===Cf.Marker||this.openElements.contains(e.element)));for(let n=t<0?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Yf.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Qh.P),this.openElements.popUntilTagNamePopped(Qh.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Qh.TR:return void(this.insertionMode=Yf.IN_ROW);case Qh.TBODY:case Qh.THEAD:case Qh.TFOOT:return void(this.insertionMode=Yf.IN_TABLE_BODY);case Qh.CAPTION:return void(this.insertionMode=Yf.IN_CAPTION);case Qh.COLGROUP:return void(this.insertionMode=Yf.IN_COLUMN_GROUP);case Qh.TABLE:return void(this.insertionMode=Yf.IN_TABLE);case Qh.BODY:return void(this.insertionMode=Yf.IN_BODY);case Qh.FRAMESET:return void(this.insertionMode=Yf.IN_FRAMESET);case Qh.SELECT:return void this._resetInsertionModeForSelect(e);case Qh.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Qh.HTML:return void(this.insertionMode=this.headElement?Yf.AFTER_HEAD:Yf.BEFORE_HEAD);case Qh.TD:case Qh.TH:if(e>0)return void(this.insertionMode=Yf.IN_CELL);break;case Qh.HEAD:if(e>0)return void(this.insertionMode=Yf.IN_HEAD)}this.insertionMode=Yf.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===Qh.TEMPLATE)break;if(e===Qh.TABLE)return void(this.insertionMode=Yf.IN_SELECT_IN_TABLE)}this.insertionMode=Yf.IN_SELECT}_isElementCausesFosterParenting(e){return Kf.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case Qh.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Yh.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case Qh.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return nf[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Yf.INITIAL:ad(this,e);break;case Yf.BEFORE_HTML:od(this,e);break;case Yf.BEFORE_HEAD:ld(this,e);break;case Yf.IN_HEAD:hd(this,e);break;case Yf.IN_HEAD_NO_SCRIPT:fd(this,e);break;case Yf.AFTER_HEAD:dd(this,e);break;case Yf.IN_BODY:case Yf.IN_CAPTION:case Yf.IN_CELL:case Yf.IN_TEMPLATE:gd(this,e);break;case Yf.TEXT:case Yf.IN_SELECT:case Yf.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Yf.IN_TABLE:case Yf.IN_TABLE_BODY:case Yf.IN_ROW:xd(this,e);break;case Yf.IN_TABLE_TEXT:Rd(this,e);break;case Yf.IN_COLUMN_GROUP:Nd(this,e);break;case Yf.AFTER_BODY:jd(this,e);break;case Yf.AFTER_AFTER_BODY:Gd(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=Mh,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Yf.INITIAL:ad(this,e);break;case Yf.BEFORE_HTML:od(this,e);break;case Yf.BEFORE_HEAD:ld(this,e);break;case Yf.IN_HEAD:hd(this,e);break;case Yf.IN_HEAD_NO_SCRIPT:fd(this,e);break;case Yf.AFTER_HEAD:dd(this,e);break;case Yf.TEXT:this._insertCharacters(e);break;case Yf.IN_TABLE:case Yf.IN_TABLE_BODY:case Yf.IN_ROW:xd(this,e);break;case Yf.IN_COLUMN_GROUP:Nd(this,e);break;case Yf.AFTER_BODY:jd(this,e);break;case Yf.AFTER_AFTER_BODY:Gd(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)rd(this,e);else switch(this.insertionMode){case Yf.INITIAL:case Yf.BEFORE_HTML:case Yf.BEFORE_HEAD:case Yf.IN_HEAD:case Yf.IN_HEAD_NO_SCRIPT:case Yf.AFTER_HEAD:case Yf.IN_BODY:case Yf.IN_TABLE:case Yf.IN_CAPTION:case Yf.IN_COLUMN_GROUP:case Yf.IN_TABLE_BODY:case Yf.IN_ROW:case Yf.IN_CELL:case Yf.IN_SELECT:case Yf.IN_SELECT_IN_TABLE:case Yf.IN_TEMPLATE:case Yf.IN_FRAMESET:case Yf.AFTER_FRAMESET:rd(this,e);break;case Yf.IN_TABLE_TEXT:Ld(this,e);break;case Yf.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Yf.AFTER_AFTER_BODY:case Yf.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Yf.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?Kh.QUIRKS:function(e){if(e.name!==If)return Kh.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Kh.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),Pf.has(n))return Kh.QUIRKS;let e=null===t?Nf:Of;if(qf(n,e))return Kh.QUIRKS;if(e=null===t?Mf:Uf,qf(n,e))return Kh.LIMITED_QUIRKS}return Kh.NO_QUIRKS}(t);(function(e){return e.name===If&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,Gh.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Yf.BEFORE_HTML}(this,e);break;case Yf.BEFORE_HEAD:case Yf.IN_HEAD:case Yf.IN_HEAD_NO_SCRIPT:case Yf.AFTER_HEAD:this._err(e,Gh.misplacedDoctype);break;case Yf.IN_TABLE_TEXT:Ld(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,Gh.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===Qh.FONT&&e.attrs.some((({name:e})=>e===Wh.COLOR||e===Wh.SIZE||e===Wh.FACE))||zf.has(t)}(t))Vd(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===Yh.MATHML?jf(t):i===Yh.SVG&&(function(e){const t=Hf.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=ef(e.tagName))}(t),Gf(t)),Vf(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Yf.INITIAL:ad(this,e);break;case Yf.BEFORE_HTML:!function(e,t){t.tagID===Qh.HTML?(e._insertElement(t,Yh.HTML),e.insertionMode=Yf.BEFORE_HEAD):od(e,t)}(this,e);break;case Yf.BEFORE_HEAD:!function(e,t){switch(t.tagID){case Qh.HTML:vd(e,t);break;case Qh.HEAD:e._insertElement(t,Yh.HTML),e.headElement=e.openElements.current,e.insertionMode=Yf.IN_HEAD;break;default:ld(e,t)}}(this,e);break;case Yf.IN_HEAD:cd(this,e);break;case Yf.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Qh.HTML:vd(e,t);break;case Qh.BASEFONT:case Qh.BGSOUND:case Qh.HEAD:case Qh.LINK:case Qh.META:case Qh.NOFRAMES:case Qh.STYLE:cd(e,t);break;case Qh.NOSCRIPT:e._err(t,Gh.nestedNoscriptInHead);break;default:fd(e,t)}}(this,e);break;case Yf.AFTER_HEAD:!function(e,t){switch(t.tagID){case Qh.HTML:vd(e,t);break;case Qh.BODY:e._insertElement(t,Yh.HTML),e.framesetOk=!1,e.insertionMode=Yf.IN_BODY;break;case Qh.FRAMESET:e._insertElement(t,Yh.HTML),e.insertionMode=Yf.IN_FRAMESET;break;case Qh.BASE:case Qh.BASEFONT:case Qh.BGSOUND:case Qh.LINK:case Qh.META:case Qh.NOFRAMES:case Qh.SCRIPT:case Qh.STYLE:case Qh.TEMPLATE:case Qh.TITLE:e._err(t,Gh.abandonedHeadElementChild),e.openElements.push(e.headElement,Qh.HEAD),cd(e,t),e.openElements.remove(e.headElement);break;case Qh.HEAD:e._err(t,Gh.misplacedStartTagForHeadElement);break;default:dd(e,t)}}(this,e);break;case Yf.IN_BODY:vd(this,e);break;case Yf.IN_TABLE:Ad(this,e);break;case Yf.IN_TABLE_TEXT:Ld(this,e);break;case Yf.IN_CAPTION:!function(e,t){Id.has(t.tagID)?e.openElements.hasInTableScope(Qh.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Qh.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Yf.IN_TABLE,Ad(e,t)):vd(e,t)}(this,e);break;case Yf.IN_COLUMN_GROUP:Od(this,e);break;case Yf.IN_TABLE_BODY:Pd(this,e);break;case Yf.IN_ROW:Ud(this,e);break;case Yf.IN_CELL:!function(e,t){Id.has(t.tagID)?(e.openElements.hasInTableScope(Qh.TD)||e.openElements.hasInTableScope(Qh.TH))&&(e._closeTableCell(),Ud(e,t)):vd(e,t)}(this,e);break;case Yf.IN_SELECT:Bd(this,e);break;case Yf.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Qh.CAPTION||n===Qh.TABLE||n===Qh.TBODY||n===Qh.TFOOT||n===Qh.THEAD||n===Qh.TR||n===Qh.TD||n===Qh.TH?(e.openElements.popUntilTagNamePopped(Qh.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Bd(e,t)}(this,e);break;case Yf.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Qh.BASE:case Qh.BASEFONT:case Qh.BGSOUND:case Qh.LINK:case Qh.META:case Qh.NOFRAMES:case Qh.SCRIPT:case Qh.STYLE:case Qh.TEMPLATE:case Qh.TITLE:cd(e,t);break;case Qh.CAPTION:case Qh.COLGROUP:case Qh.TBODY:case Qh.TFOOT:case Qh.THEAD:e.tmplInsertionModeStack[0]=Yf.IN_TABLE,e.insertionMode=Yf.IN_TABLE,Ad(e,t);break;case Qh.COL:e.tmplInsertionModeStack[0]=Yf.IN_COLUMN_GROUP,e.insertionMode=Yf.IN_COLUMN_GROUP,Od(e,t);break;case Qh.TR:e.tmplInsertionModeStack[0]=Yf.IN_TABLE_BODY,e.insertionMode=Yf.IN_TABLE_BODY,Pd(e,t);break;case Qh.TD:case Qh.TH:e.tmplInsertionModeStack[0]=Yf.IN_ROW,e.insertionMode=Yf.IN_ROW,Ud(e,t);break;default:e.tmplInsertionModeStack[0]=Yf.IN_BODY,e.insertionMode=Yf.IN_BODY,vd(e,t)}}(this,e);break;case Yf.AFTER_BODY:!function(e,t){t.tagID===Qh.HTML?vd(e,t):jd(e,t)}(this,e);break;case Yf.IN_FRAMESET:!function(e,t){switch(t.tagID){case Qh.HTML:vd(e,t);break;case Qh.FRAMESET:e._insertElement(t,Yh.HTML);break;case Qh.FRAME:e._appendElement(t,Yh.HTML),t.ackSelfClosing=!0;break;case Qh.NOFRAMES:cd(e,t)}}(this,e);break;case Yf.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Qh.HTML:vd(e,t);break;case Qh.NOFRAMES:cd(e,t)}}(this,e);break;case Yf.AFTER_AFTER_BODY:!function(e,t){t.tagID===Qh.HTML?vd(e,t):Gd(e,t)}(this,e);break;case Yf.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Qh.HTML:vd(e,t);break;case Qh.NOFRAMES:cd(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===Qh.P||t.tagID===Qh.BR)return Vd(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===Yh.HTML){e._endTagOutsideForeignContent(t);break}const r=e.treeAdapter.getTagName(i);if(r.toLowerCase()===t.tagName){t.tagName=r,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Yf.INITIAL:ad(this,e);break;case Yf.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==Qh.HTML&&n!==Qh.HEAD&&n!==Qh.BODY&&n!==Qh.BR||od(e,t)}(this,e);break;case Yf.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===Qh.HEAD||n===Qh.BODY||n===Qh.HTML||n===Qh.BR?ld(e,t):e._err(t,Gh.endTagWithoutMatchingOpenElement)}(this,e);break;case Yf.IN_HEAD:!function(e,t){switch(t.tagID){case Qh.HEAD:e.openElements.pop(),e.insertionMode=Yf.AFTER_HEAD;break;case Qh.BODY:case Qh.BR:case Qh.HTML:hd(e,t);break;case Qh.TEMPLATE:ud(e,t);break;default:e._err(t,Gh.endTagWithoutMatchingOpenElement)}}(this,e);break;case Yf.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Qh.NOSCRIPT:e.openElements.pop(),e.insertionMode=Yf.IN_HEAD;break;case Qh.BR:fd(e,t);break;default:e._err(t,Gh.endTagWithoutMatchingOpenElement)}}(this,e);break;case Yf.AFTER_HEAD:!function(e,t){switch(t.tagID){case Qh.BODY:case Qh.HTML:case Qh.BR:dd(e,t);break;case Qh.TEMPLATE:ud(e,t);break;default:e._err(t,Gh.endTagWithoutMatchingOpenElement)}}(this,e);break;case Yf.IN_BODY:Td(this,e);break;case Yf.TEXT:!function(e,t){var n;t.tagID===Qh.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Yf.IN_TABLE:Cd(this,e);break;case Yf.IN_TABLE_TEXT:Ld(this,e);break;case Yf.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case Qh.CAPTION:case Qh.TABLE:e.openElements.hasInTableScope(Qh.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Qh.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Yf.IN_TABLE,n===Qh.TABLE&&Cd(e,t));break;case Qh.BODY:case Qh.COL:case Qh.COLGROUP:case Qh.HTML:case Qh.TBODY:case Qh.TD:case Qh.TFOOT:case Qh.TH:case Qh.THEAD:case Qh.TR:break;default:Td(e,t)}}(this,e);break;case Yf.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case Qh.COLGROUP:e.openElements.currentTagId===Qh.COLGROUP&&(e.openElements.pop(),e.insertionMode=Yf.IN_TABLE);break;case Qh.TEMPLATE:ud(e,t);break;case Qh.COL:break;default:Nd(e,t)}}(this,e);break;case Yf.IN_TABLE_BODY:Md(this,e);break;case Yf.IN_ROW:qd(this,e);break;case Yf.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case Qh.TD:case Qh.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Yf.IN_ROW);break;case Qh.TABLE:case Qh.TBODY:case Qh.TFOOT:case Qh.THEAD:case Qh.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),qd(e,t));break;case Qh.BODY:case Qh.CAPTION:case Qh.COL:case Qh.COLGROUP:case Qh.HTML:break;default:Td(e,t)}}(this,e);break;case Yf.IN_SELECT:Fd(this,e);break;case Yf.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Qh.CAPTION||n===Qh.TABLE||n===Qh.TBODY||n===Qh.TFOOT||n===Qh.THEAD||n===Qh.TR||n===Qh.TD||n===Qh.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Qh.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Fd(e,t)}(this,e);break;case Yf.IN_TEMPLATE:!function(e,t){t.tagID===Qh.TEMPLATE&&ud(e,t)}(this,e);break;case Yf.AFTER_BODY:zd(this,e);break;case Yf.IN_FRAMESET:!function(e,t){t.tagID!==Qh.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===Qh.FRAMESET||(e.insertionMode=Yf.AFTER_FRAMESET))}(this,e);break;case Yf.AFTER_FRAMESET:!function(e,t){t.tagID===Qh.HTML&&(e.insertionMode=Yf.AFTER_AFTER_FRAMESET)}(this,e);break;case Yf.AFTER_AFTER_BODY:Gd(this,e)}}onEof(e){switch(this.insertionMode){case Yf.INITIAL:ad(this,e);break;case Yf.BEFORE_HTML:od(this,e);break;case Yf.BEFORE_HEAD:ld(this,e);break;case Yf.IN_HEAD:hd(this,e);break;case Yf.IN_HEAD_NO_SCRIPT:fd(this,e);break;case Yf.AFTER_HEAD:dd(this,e);break;case Yf.IN_BODY:case Yf.IN_TABLE:case Yf.IN_CAPTION:case Yf.IN_COLUMN_GROUP:case Yf.IN_TABLE_BODY:case Yf.IN_ROW:case Yf.IN_CELL:case Yf.IN_SELECT:case Yf.IN_SELECT_IN_TABLE:Sd(this,e);break;case Yf.TEXT:!function(e,t){e._err(t,Gh.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Yf.IN_TABLE_TEXT:Ld(this,e);break;case Yf.IN_TEMPLATE:Hd(this,e);break;case Yf.AFTER_BODY:case Yf.IN_FRAMESET:case Yf.AFTER_FRAMESET:case Yf.AFTER_AFTER_BODY:case Yf.AFTER_AFTER_FRAMESET:sd(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===Uh.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Yf.IN_HEAD:case Yf.IN_HEAD_NO_SCRIPT:case Yf.AFTER_HEAD:case Yf.TEXT:case Yf.IN_COLUMN_GROUP:case Yf.IN_SELECT:case Yf.IN_SELECT_IN_TABLE:case Yf.IN_FRAMESET:case Yf.AFTER_FRAMESET:this._insertCharacters(e);break;case Yf.IN_BODY:case Yf.IN_CAPTION:case Yf.IN_CELL:case Yf.IN_TEMPLATE:case Yf.AFTER_BODY:case Yf.AFTER_AFTER_BODY:case Yf.AFTER_AFTER_FRAMESET:md(this,e);break;case Yf.IN_TABLE:case Yf.IN_TABLE_BODY:case Yf.IN_ROW:xd(this,e);break;case Yf.IN_TABLE_TEXT:_d(this,e)}}}function $f(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):wd(e,t),n}function Zf(e,t){let n=null,i=e.openElements.stackTop;for(;i>=0;i--){const r=e.openElements.items[i];if(r===t.element)break;e._isSpecialElement(r,e.openElements.tagIDs[i])&&(n=r)}return n||(e.openElements.shortenToLength(i<0?0:i),e.activeFormattingElements.removeEntry(t)),n}function Jf(e,t,n){let i=t,r=e.openElements.getCommonAncestor(t);for(let s=0,a=r;a!==n;s++,a=r){r=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),o=n&&s>=3;!n||o?(o&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=ed(e,n),i===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(a,i),i=a)}return i}function ed(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function td(e,t,n){const i=ef(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const r=e.treeAdapter.getNamespaceURI(t);i===Qh.TEMPLATE&&r===Yh.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function nd(e,t,n){const i=e.treeAdapter.getNamespaceURI(n.element),{token:r}=n,s=e.treeAdapter.createElement(r.tagName,i,r.attrs);e._adoptNodes(t,s),e.treeAdapter.appendChild(t,s),e.activeFormattingElements.insertElementAfterBookmark(s,r),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,s,r.tagID)}function id(e,t){for(let n=0;n<8;n++){const n=$f(e,t);if(!n)break;const i=Zf(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;const r=Jf(e,i,n.element),s=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(r),s&&td(e,s,r),nd(e,i,n)}}function rd(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function sd(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(n);i&&!i.endTag&&e._setEndLocation(n,t)}}}}function ad(e,t){e._err(t,Gh.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Kh.QUIRKS),e.insertionMode=Yf.BEFORE_HTML,e._processToken(t)}function od(e,t){e._insertFakeRootElement(),e.insertionMode=Yf.BEFORE_HEAD,e._processToken(t)}function ld(e,t){e._insertFakeElement(Xh.HEAD,Qh.HEAD),e.headElement=e.openElements.current,e.insertionMode=Yf.IN_HEAD,e._processToken(t)}function cd(e,t){switch(t.tagID){case Qh.HTML:vd(e,t);break;case Qh.BASE:case Qh.BASEFONT:case Qh.BGSOUND:case Qh.LINK:case Qh.META:e._appendElement(t,Yh.HTML),t.ackSelfClosing=!0;break;case Qh.TITLE:e._switchToTextParsing(t,of.RCDATA);break;case Qh.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,of.RAWTEXT):(e._insertElement(t,Yh.HTML),e.insertionMode=Yf.IN_HEAD_NO_SCRIPT);break;case Qh.NOFRAMES:case Qh.STYLE:e._switchToTextParsing(t,of.RAWTEXT);break;case Qh.SCRIPT:e._switchToTextParsing(t,of.SCRIPT_DATA);break;case Qh.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Yf.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Yf.IN_TEMPLATE);break;case Qh.HEAD:e._err(t,Gh.misplacedStartTagForHeadElement);break;default:hd(e,t)}}function ud(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==Qh.TEMPLATE&&e._err(t,Gh.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Qh.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Gh.endTagWithoutMatchingOpenElement)}function hd(e,t){e.openElements.pop(),e.insertionMode=Yf.AFTER_HEAD,e._processToken(t)}function fd(e,t){e._err(t,t.type===Vh.EOF?Gh.openElementsLeftAfterEof:Gh.disallowedContentInNoscriptInHead),e.openElements.pop(),e.insertionMode=Yf.IN_HEAD,e._processToken(t)}function dd(e,t){e._insertFakeElement(Xh.BODY,Qh.BODY),e.insertionMode=Yf.IN_BODY,pd(e,t)}function pd(e,t){switch(t.type){case Vh.CHARACTER:gd(e,t);break;case Vh.WHITESPACE_CHARACTER:md(e,t);break;case Vh.COMMENT:rd(e,t);break;case Vh.START_TAG:vd(e,t);break;case Vh.END_TAG:Td(e,t);break;case Vh.EOF:Sd(e,t)}}function md(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function gd(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function bd(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Yh.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function kd(e){const t=Zh(e,Wh.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function yd(e,t){e._switchToTextParsing(t,of.RAWTEXT)}function Ed(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Yh.HTML)}function vd(e,t){switch(t.tagID){case Qh.I:case Qh.S:case Qh.B:case Qh.U:case Qh.EM:case Qh.TT:case Qh.BIG:case Qh.CODE:case Qh.FONT:case Qh.SMALL:case Qh.STRIKE:case Qh.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Yh.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Qh.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Xh.A);n&&(id(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Yh.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Qh.H1:case Qh.H2:case Qh.H3:case Qh.H4:case Qh.H5:case Qh.H6:!function(e,t){e.openElements.hasInButtonScope(Qh.P)&&e._closePElement(),rf(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Yh.HTML)}(e,t);break;case Qh.P:case Qh.DL:case Qh.OL:case Qh.UL:case Qh.DIV:case Qh.DIR:case Qh.NAV:case Qh.MAIN:case Qh.MENU:case Qh.ASIDE:case Qh.CENTER:case Qh.FIGURE:case Qh.FOOTER:case Qh.HEADER:case Qh.HGROUP:case Qh.DIALOG:case Qh.DETAILS:case Qh.ADDRESS:case Qh.ARTICLE:case Qh.SECTION:case Qh.SUMMARY:case Qh.FIELDSET:case Qh.BLOCKQUOTE:case Qh.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(Qh.P)&&e._closePElement(),e._insertElement(t,Yh.HTML)}(e,t);break;case Qh.LI:case Qh.DD:case Qh.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const i=e.openElements.tagIDs[t];if(n===Qh.LI&&i===Qh.LI||(n===Qh.DD||n===Qh.DT)&&(i===Qh.DD||i===Qh.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==Qh.ADDRESS&&i!==Qh.DIV&&i!==Qh.P&&e._isSpecialElement(e.openElements.items[t],i))break}e.openElements.hasInButtonScope(Qh.P)&&e._closePElement(),e._insertElement(t,Yh.HTML)}(e,t);break;case Qh.BR:case Qh.IMG:case Qh.WBR:case Qh.AREA:case Qh.EMBED:case Qh.KEYGEN:bd(e,t);break;case Qh.HR:!function(e,t){e.openElements.hasInButtonScope(Qh.P)&&e._closePElement(),e._appendElement(t,Yh.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case Qh.RB:case Qh.RTC:!function(e,t){e.openElements.hasInScope(Qh.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Yh.HTML)}(e,t);break;case Qh.RT:case Qh.RP:!function(e,t){e.openElements.hasInScope(Qh.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Qh.RTC),e._insertElement(t,Yh.HTML)}(e,t);break;case Qh.PRE:case Qh.LISTING:!function(e,t){e.openElements.hasInButtonScope(Qh.P)&&e._closePElement(),e._insertElement(t,Yh.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Qh.XMP:!function(e,t){e.openElements.hasInButtonScope(Qh.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,of.RAWTEXT)}(e,t);break;case Qh.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Gf(t),Vf(t),t.selfClosing?e._appendElement(t,Yh.SVG):e._insertElement(t,Yh.SVG),t.ackSelfClosing=!0}(e,t);break;case Qh.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case Qh.BASE:case Qh.LINK:case Qh.META:case Qh.STYLE:case Qh.TITLE:case Qh.SCRIPT:case Qh.BGSOUND:case Qh.BASEFONT:case Qh.TEMPLATE:cd(e,t);break;case Qh.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case Qh.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Qh.P)&&e._closePElement(),e._insertElement(t,Yh.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case Qh.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Qh.NOBR)&&(id(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Yh.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Qh.MATH:!function(e,t){e._reconstructActiveFormattingElements(),jf(t),Vf(t),t.selfClosing?e._appendElement(t,Yh.MATHML):e._insertElement(t,Yh.MATHML),t.ackSelfClosing=!0}(e,t);break;case Qh.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Kh.QUIRKS&&e.openElements.hasInButtonScope(Qh.P)&&e._closePElement(),e._insertElement(t,Yh.HTML),e.framesetOk=!1,e.insertionMode=Yf.IN_TABLE}(e,t);break;case Qh.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Yh.HTML),kd(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Qh.PARAM:case Qh.TRACK:case Qh.SOURCE:!function(e,t){e._appendElement(t,Yh.HTML),t.ackSelfClosing=!0}(e,t);break;case Qh.IMAGE:!function(e,t){t.tagName=Xh.IMG,t.tagID=Qh.IMG,bd(e,t)}(e,t);break;case Qh.BUTTON:!function(e,t){e.openElements.hasInScope(Qh.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Qh.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Yh.HTML),e.framesetOk=!1}(e,t);break;case Qh.APPLET:case Qh.OBJECT:case Qh.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Yh.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case Qh.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,of.RAWTEXT)}(e,t);break;case Qh.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Yh.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Yf.IN_TABLE||e.insertionMode===Yf.IN_CAPTION||e.insertionMode===Yf.IN_TABLE_BODY||e.insertionMode===Yf.IN_ROW||e.insertionMode===Yf.IN_CELL?Yf.IN_SELECT_IN_TABLE:Yf.IN_SELECT}(e,t);break;case Qh.OPTION:case Qh.OPTGROUP:!function(e,t){e.openElements.currentTagId===Qh.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Yh.HTML)}(e,t);break;case Qh.NOEMBED:yd(e,t);break;case Qh.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Yh.HTML),e.insertionMode=Yf.IN_FRAMESET)}(e,t);break;case Qh.TEXTAREA:!function(e,t){e._insertElement(t,Yh.HTML),e.skipNextNewLine=!0,e.tokenizer.state=of.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Yf.TEXT}(e,t);break;case Qh.NOSCRIPT:e.options.scriptingEnabled?yd(e,t):Ed(e,t);break;case Qh.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(Qh.P)&&e._closePElement(),e._insertElement(t,Yh.HTML),e.tokenizer.state=of.PLAINTEXT}(e,t);break;case Qh.COL:case Qh.TH:case Qh.TD:case Qh.TR:case Qh.HEAD:case Qh.FRAME:case Qh.TBODY:case Qh.TFOOT:case Qh.THEAD:case Qh.CAPTION:case Qh.COLGROUP:break;default:Ed(e,t)}}function wd(e,t){const n=t.tagName,i=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const r=e.openElements.items[t],s=e.openElements.tagIDs[t];if(i===s&&(i!==Qh.UNKNOWN||e.treeAdapter.getTagName(r)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(r,s))break}}function Td(e,t){switch(t.tagID){case Qh.A:case Qh.B:case Qh.I:case Qh.S:case Qh.U:case Qh.EM:case Qh.TT:case Qh.BIG:case Qh.CODE:case Qh.FONT:case Qh.NOBR:case Qh.SMALL:case Qh.STRIKE:case Qh.STRONG:id(e,t);break;case Qh.P:!function(e){e.openElements.hasInButtonScope(Qh.P)||e._insertFakeElement(Xh.P,Qh.P),e._closePElement()}(e);break;case Qh.DL:case Qh.UL:case Qh.OL:case Qh.DIR:case Qh.DIV:case Qh.NAV:case Qh.PRE:case Qh.MAIN:case Qh.MENU:case Qh.ASIDE:case Qh.BUTTON:case Qh.CENTER:case Qh.FIGURE:case Qh.FOOTER:case Qh.HEADER:case Qh.HGROUP:case Qh.DIALOG:case Qh.ADDRESS:case Qh.ARTICLE:case Qh.DETAILS:case Qh.SECTION:case Qh.SUMMARY:case Qh.LISTING:case Qh.FIELDSET:case Qh.BLOCKQUOTE:case Qh.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Qh.LI:!function(e){e.openElements.hasInListItemScope(Qh.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Qh.LI),e.openElements.popUntilTagNamePopped(Qh.LI))}(e);break;case Qh.DD:case Qh.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Qh.H1:case Qh.H2:case Qh.H3:case Qh.H4:case Qh.H5:case Qh.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Qh.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Xh.BR,Qh.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case Qh.BODY:!function(e,t){if(e.openElements.hasInScope(Qh.BODY)&&(e.insertionMode=Yf.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case Qh.HTML:!function(e,t){e.openElements.hasInScope(Qh.BODY)&&(e.insertionMode=Yf.AFTER_BODY,zd(e,t))}(e,t);break;case Qh.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Qh.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Qh.FORM):n&&e.openElements.remove(n))}(e);break;case Qh.APPLET:case Qh.OBJECT:case Qh.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case Qh.TEMPLATE:ud(e,t);break;default:wd(e,t)}}function Sd(e,t){e.tmplInsertionModeStack.length>0?Hd(e,t):sd(e,t)}function xd(e,t){if(Kf.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Yf.IN_TABLE_TEXT,t.type){case Vh.CHARACTER:Rd(e,t);break;case Vh.WHITESPACE_CHARACTER:_d(e,t)}else Dd(e,t)}function Ad(e,t){switch(t.tagID){case Qh.TD:case Qh.TH:case Qh.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Xh.TBODY,Qh.TBODY),e.insertionMode=Yf.IN_TABLE_BODY,Pd(e,t)}(e,t);break;case Qh.STYLE:case Qh.SCRIPT:case Qh.TEMPLATE:cd(e,t);break;case Qh.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Xh.COLGROUP,Qh.COLGROUP),e.insertionMode=Yf.IN_COLUMN_GROUP,Od(e,t)}(e,t);break;case Qh.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Yh.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case Qh.TABLE:!function(e,t){e.openElements.hasInTableScope(Qh.TABLE)&&(e.openElements.popUntilTagNamePopped(Qh.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Qh.TBODY:case Qh.TFOOT:case Qh.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Yh.HTML),e.insertionMode=Yf.IN_TABLE_BODY}(e,t);break;case Qh.INPUT:!function(e,t){kd(t)?e._appendElement(t,Yh.HTML):Dd(e,t),t.ackSelfClosing=!0}(e,t);break;case Qh.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Yh.HTML),e.insertionMode=Yf.IN_CAPTION}(e,t);break;case Qh.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Yh.HTML),e.insertionMode=Yf.IN_COLUMN_GROUP}(e,t);break;default:Dd(e,t)}}function Cd(e,t){switch(t.tagID){case Qh.TABLE:e.openElements.hasInTableScope(Qh.TABLE)&&(e.openElements.popUntilTagNamePopped(Qh.TABLE),e._resetInsertionMode());break;case Qh.TEMPLATE:ud(e,t);break;case Qh.BODY:case Qh.CAPTION:case Qh.COL:case Qh.COLGROUP:case Qh.HTML:case Qh.TBODY:case Qh.TD:case Qh.TFOOT:case Qh.TH:case Qh.THEAD:case Qh.TR:break;default:Dd(e,t)}}function Dd(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,pd(e,t),e.fosterParentingEnabled=n}function _d(e,t){e.pendingCharacterTokens.push(t)}function Rd(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ld(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Dd(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Id=new Set([Qh.CAPTION,Qh.COL,Qh.COLGROUP,Qh.TBODY,Qh.TD,Qh.TFOOT,Qh.TH,Qh.THEAD,Qh.TR]);function Od(e,t){switch(t.tagID){case Qh.HTML:vd(e,t);break;case Qh.COL:e._appendElement(t,Yh.HTML),t.ackSelfClosing=!0;break;case Qh.TEMPLATE:cd(e,t);break;default:Nd(e,t)}}function Nd(e,t){e.openElements.currentTagId===Qh.COLGROUP&&(e.openElements.pop(),e.insertionMode=Yf.IN_TABLE,e._processToken(t))}function Pd(e,t){switch(t.tagID){case Qh.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Yh.HTML),e.insertionMode=Yf.IN_ROW;break;case Qh.TH:case Qh.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Xh.TR,Qh.TR),e.insertionMode=Yf.IN_ROW,Ud(e,t);break;case Qh.CAPTION:case Qh.COL:case Qh.COLGROUP:case Qh.TBODY:case Qh.TFOOT:case Qh.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Yf.IN_TABLE,Ad(e,t));break;default:Ad(e,t)}}function Md(e,t){const n=t.tagID;switch(t.tagID){case Qh.TBODY:case Qh.TFOOT:case Qh.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Yf.IN_TABLE);break;case Qh.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Yf.IN_TABLE,Cd(e,t));break;case Qh.BODY:case Qh.CAPTION:case Qh.COL:case Qh.COLGROUP:case Qh.HTML:case Qh.TD:case Qh.TH:case Qh.TR:break;default:Cd(e,t)}}function Ud(e,t){switch(t.tagID){case Qh.TH:case Qh.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,Yh.HTML),e.insertionMode=Yf.IN_CELL,e.activeFormattingElements.insertMarker();break;case Qh.CAPTION:case Qh.COL:case Qh.COLGROUP:case Qh.TBODY:case Qh.TFOOT:case Qh.THEAD:case Qh.TR:e.openElements.hasInTableScope(Qh.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Yf.IN_TABLE_BODY,Pd(e,t));break;default:Ad(e,t)}}function qd(e,t){switch(t.tagID){case Qh.TR:e.openElements.hasInTableScope(Qh.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Yf.IN_TABLE_BODY);break;case Qh.TABLE:e.openElements.hasInTableScope(Qh.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Yf.IN_TABLE_BODY,Md(e,t));break;case Qh.TBODY:case Qh.TFOOT:case Qh.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(Qh.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Yf.IN_TABLE_BODY,Md(e,t));break;case Qh.BODY:case Qh.CAPTION:case Qh.COL:case Qh.COLGROUP:case Qh.HTML:case Qh.TD:case Qh.TH:break;default:Cd(e,t)}}function Bd(e,t){switch(t.tagID){case Qh.HTML:vd(e,t);break;case Qh.OPTION:e.openElements.currentTagId===Qh.OPTION&&e.openElements.pop(),e._insertElement(t,Yh.HTML);break;case Qh.OPTGROUP:e.openElements.currentTagId===Qh.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Qh.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Yh.HTML);break;case Qh.INPUT:case Qh.KEYGEN:case Qh.TEXTAREA:case Qh.SELECT:e.openElements.hasInSelectScope(Qh.SELECT)&&(e.openElements.popUntilTagNamePopped(Qh.SELECT),e._resetInsertionMode(),t.tagID!==Qh.SELECT&&e._processStartTag(t));break;case Qh.SCRIPT:case Qh.TEMPLATE:cd(e,t)}}function Fd(e,t){switch(t.tagID){case Qh.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===Qh.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Qh.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===Qh.OPTGROUP&&e.openElements.pop();break;case Qh.OPTION:e.openElements.currentTagId===Qh.OPTION&&e.openElements.pop();break;case Qh.SELECT:e.openElements.hasInSelectScope(Qh.SELECT)&&(e.openElements.popUntilTagNamePopped(Qh.SELECT),e._resetInsertionMode());break;case Qh.TEMPLATE:ud(e,t)}}function Hd(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Qh.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):sd(e,t)}function zd(e,t){var n;if(t.tagID===Qh.HTML){if(e.fragmentContext||(e.insertionMode=Yf.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Qh.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(i))||void 0===n?void 0:n.endTag)&&e._setEndLocation(i,t)}}else jd(e,t)}function jd(e,t){e.insertionMode=Yf.IN_BODY,pd(e,t)}function Gd(e,t){e.insertionMode=Yf.IN_BODY,pd(e,t)}function Vd(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Yh.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}const Yd=Kd("end"),Wd=Kd("start");function Kd(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}const Xd={}.hasOwnProperty,Qd=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),$d={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Zd(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),i=function(e){const t={handlers:{root:ep,element:tp,text:np,comment:rp,doctype:ip,raw:sp},unknown:ap}||{};function n(t,...i){let r=n.invalid;const s=n.handlers;if(t&&Xd.call(t,e)){const i=String(t[e]);r=Xd.call(s,i)?s[i]:n.unknown}if(r)return r.call(this,t,...i)}return n.handlers=t.handlers||{},n.invalid=t.invalid,n.unknown=t.unknown,n}("type"),r={parser:n?new Qf($d):Qf.getFragmentParser(void 0,$d),handle(e){i(e,r)},stitches:!1,options:t||{}};i(e,r),op(r,Wd());const s=function(e,t){const n=t||{};return Fu({file:n.file||void 0,location:!1,schema:"svg"===n.space?Tu:wu,verbose:n.verbose||!1},e)}(n?r.parser.document:r.parser.getFragment(),{file:r.options.file});return r.stitches&&mn(s,"comment",(function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t})),"root"===s.type&&1===s.children.length&&s.children[0].type===e.type?s.children[0]:s}function Jd(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function ep(e,t){Jd(e.children,t)}function tp(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===of.PLAINTEXT)return;op(t,Wd(e));const i=t.parser.openElements.current;let r="namespaceURI"in i?i.namespaceURI:Mu;r===Mu&&"svg"===n&&(r=Uu);const s=(o={...e,children:[]},Rh(o,"svg"===({space:r===Uu?"svg":"html"}||Dh).space?xh:Sh)),a={type:Vh.START_TAG,tagName:n,tagID:ef(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in s?s.attrs:[],location:cp(e)};var o;t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),Jd(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Nh.includes(n))return;if(t.parser.tokenizer.state===of.PLAINTEXT)return;op(t,Yd(e));const i={type:Vh.END_TAG,tagName:n,tagID:ef(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:cp(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==of.RCDATA&&t.parser.tokenizer.state!==of.RAWTEXT&&t.parser.tokenizer.state!==of.SCRIPT_DATA||(t.parser.tokenizer.state=of.DATA)}(e,t)}function np(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Vh.CHARACTER,chars:e.value,location:cp(e)};op(t,Wd(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function ip(e,t){const n={type:Vh.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:cp(e)};op(t,Wd(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function rp(e,t){const n={type:Vh.COMMENT,data:e.value,location:cp(e)};op(t,Wd(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function sp(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,lp(t,Wd(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function ap(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw Qd.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}!function(e,t){t.stitches=!0;const n=function(e){return an("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const i=Zd({type:"root",children:e.children},t.options);n.children=i.children}rp({type:"comment",value:{stitch:n}},t)}(n,t)}function op(e,t){lp(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=of.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function lp(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function cp(e){const t=Wd(e)||{line:void 0,column:void 0,offset:void 0},n=Yd(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function up(e){return function(t,n){return Zd(t,{...e,file:n})}}var hp,fp,dp,pp,mp,gp,bp,kp={},yp=function(){if(dp)return kp;dp=1;var e=kp&&kp.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kp,"__esModule",{value:!0}),kp.default=function(e,n){var i=null;if(!e||"string"!=typeof e)return i;var r=(0,t.default)(e),s="function"==typeof n;return r.forEach((function(e){if("declaration"===e.type){var t=e.property,r=e.value;s?n(t,r,e):r&&((i=i||{})[t]=r)}})),i};var t=e(function(){if(fp)return hp;fp=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(o,l):l}return hp=function(o,u){if("string"!=typeof o)throw new TypeError("First argument must be a string");if(!o)return[];u=u||{};var h=1,f=1;function d(e){var n=e.match(t);n&&(h+=n.length);var i=e.lastIndexOf("\n");f=~i?e.length-i:f+e.length}function p(){var e={line:h,column:f};return function(t){return t.position=new m(e),k(),t}}function m(e){this.start=e,this.end={line:h,column:f},this.source=u.source}function g(e){var t=new Error(u.source+":"+h+":"+f+": "+e);if(t.reason=e,t.filename=u.source,t.line=h,t.column=f,t.source=o,!u.silent)throw t}function b(e){var t=e.exec(o);if(t){var n=t[0];return d(n),o=o.slice(n.length),t}}function k(){b(n)}function y(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var e=p();if("/"==o.charAt(0)&&"*"==o.charAt(1)){for(var t=2;l!=o.charAt(t)&&("*"!=o.charAt(t)||"/"!=o.charAt(t+1));)++t;if(l===o.charAt((t+=2)-1))return g("End of comment missing");var n=o.slice(2,t-2);return f+=2,d(n),o=o.slice(t),f+=2,e({type:"comment",comment:n})}}function v(){var t=p(),n=b(i);if(n){if(E(),!b(r))return g("property missing ':'");var o=b(s),u=t({type:"declaration",property:c(n[0].replace(e,l)),value:o?c(o[0].replace(e,l)):l});return b(a),u}}return m.prototype.content=o,k(),function(){var e,t=[];for(y(t);e=v();)!1!==e&&(t.push(e),y(t));return t}()},hp}());return kp}(),Ep=e(yp),vp=Ep.default||Ep,wp=e(mp?pp:(mp=1,pp={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]})),Tp=function(){if(bp)return gp;bp=1;const e="a-f\\d",t=`#?[${e}]{3}[${e}]?`,n=`#?[${e}]{6}([${e}]{2})?`,i=new RegExp(`[^#${e}]`,"gi"),r=new RegExp(`^${t}$|^${n}$`,"i");return gp=(e,t={})=>{if("string"!=typeof e||i.test(e)||!r.test(e))throw new TypeError("Expected a valid hex string");let n=1;8===(e=e.replace(/^#/,"")).length&&(n=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),4===e.length&&(n=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const s=Number.parseInt(e,16),a=s>>16,o=s>>8&255,l=255&s,c="number"==typeof t.alpha?t.alpha:n;return"array"===t.format?[a,o,l,c]:"css"===t.format?`rgb(${a} ${o} ${l}${1===c?"":` / ${Number((100*c).toFixed(2))}%`})`:{red:a,green:o,blue:l,alpha:c}},gp}(),Sp=e(Tp),xp=new RegExp(/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,"i");const Ap="-?\\d*(?:\\.\\d+)",Cp=`(${Ap}?)`,Dp=`(${Ap}?%)`,_p=`(${Ap}?%?)`,Rp=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*${Dp}\\s*,\n \\s*${Dp}\\s*\n (?:,\\s*${_p}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var Lp=new RegExp(Rp);const Ip=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+${Dp}\n \\s+${Dp}\n \\s*(?:\\s*\\/\\s*${_p}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var Op=new RegExp(Ip);const Np=`^\n rgba?\\(\n \\s*${Cp}\\s*,\n \\s*${Cp}\\s*,\n \\s*${Cp}\\s*\n (?:,\\s*${_p}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var Pp=new RegExp(Np);const Mp=`^\n rgba?\\(\n \\s*${Dp}\\s*,\n \\s*${Dp}\\s*,\n \\s*${Dp}\\s*\n (?:,\\s*${_p}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var Up=new RegExp(Mp);const qp=`^\n rgba?\\(\n \\s*${Cp}\n \\s+${Cp}\n \\s+${Cp}\n \\s*(?:\\s*\\/\\s*${_p}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var Bp=new RegExp(qp);const Fp=`^\n rgba?\\(\n \\s*${Dp}\n \\s+${Dp}\n \\s+${Dp}\n \\s*(?:\\s*\\/\\s*${_p}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var Hp=new RegExp(Fp),zp=new RegExp(/^transparent$/,"i");const jp=(e,t,n)=>Math.min(Math.max(t,e),n),Gp=e=>{let t=e;return"number"!=typeof t&&(t=t.endsWith("%")?255*parseFloat(t)/100:parseFloat(t)),jp(Math.round(t),0,255)},Vp=e=>jp(parseFloat(e),0,100);function Yp(e){let t=e;return"number"!=typeof t&&(t=t.endsWith("%")?parseFloat(t)/100:parseFloat(t)),jp(t,0,1)}function Wp([,e,t,n,i=1]){return{type:"rgb",values:[e,t,n].map(Gp),alpha:Yp(null===i?1:i)}}
2
- /**
3
- * parse-css-color
4
- * @version v0.2.1
5
- * @link http://github.com/noeldelgado/parse-css-color/
6
- * @license MIT
7
- */const Kp=["background-color","color","font-style","font-weight","text-decoration-color","text-decoration-line","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-decoration","width","height","min-width","min-height"];function Xp(e){var t;e.tagName&&(null===(t=e.properties)||void 0===t?void 0:t.style)&&(e.properties.style=function(e){try{const t=function(e){const t=Object.assign({},e);return delete t.background,"background"in e&&null!==(e=>{if("string"!=typeof e)return null;const t=xp.exec(e);if(t)return function(e){const[t,n,i,r]=Sp(e,{format:"array"});return Wp([null,t,n,i,r])}(t[0]);const n=Op.exec(e)||Lp.exec(e);if(n)return function([,e,t,n,i=1]){let r=e;return r=r.endsWith("turn")?360*parseFloat(r)/1:r.endsWith("rad")?Math.round(180*parseFloat(r)/Math.PI):parseFloat(r),{type:"hsl",values:[r,Vp(t),Vp(n)],alpha:Yp(null===i?1:i)}}(n);const i=Bp.exec(e)||Hp.exec(e)||Pp.exec(e)||Up.exec(e);if(i)return Wp(i);if(zp.exec(e))return Wp([null,0,0,0,0]);const r=wp[e.toLowerCase()];return r?Wp([null,r[0],r[1],r[2],1]):null})(e.background)&&(t["background-color"]=e.background),t}(vp(e));return Object.entries(t).filter((([e])=>Kp.includes(e))).map((([e,t])=>`${e}: ${t}`)).join("; ")}catch(t){return console.error("Failed to parse style value",e,t),""}}(e.properties.style))}const Qp=/\u00A0/g,$p=["200B","200C","200D","FEFF"],Zp=new Set(["audio","canvas","embed","iframe","img","input","object","svg","video"]),Jp=new Set(["br"]),em=(e,t)=>{if(e&&"object"==typeof e){if("element"===e.type&&"p"===e.tagName&&t&&tm(e)&&Array.isArray(t.children)){const n=t.children.indexOf(e);if(-1!==n)return void t.children.splice(n,1)}if(Array.isArray(e.children)&&0!==e.children.length)for(let t=e.children.length-1;t>=0;t--)em(e.children[t],e)}},tm=e=>!Array.isArray(e.children)||0===e.children.length||e.children.every((e=>nm(e))),nm=e=>{if(!e)return!0;if("text"===e.type)return im("string"==typeof e.value?e.value:"");if("comment"===e.type)return!0;if("element"===e.type){const t=e,n=t.tagName;return"string"!=typeof n||!Zp.has(n)&&(!!Jp.has(n)||!Array.isArray(t.children)||0===t.children.length||t.children.every((e=>nm(e))))}return!0},im=e=>{if(!e)return!0;const t=(e=>{let t=e;for(const e of $p){const n=String.fromCodePoint(Number.parseInt(e,16));t=t.split(n).join("")}return t})(e.replaceAll(Qp," "));return""===t.trim()};async function rm(e,n){var i;(null==n?void 0:n.forceHardLineBreaks)&&(e=e.replaceAll(/(?<!\\)([\n\r])/g," $1"));return(await j().use(Ht).use(Lr).use(Sn,{allowDangerousHtml:!0}).use(up).use((()=>e=>(mn(e,"element",(e=>{var n,i;if("a"===e.tagName){const r=null===(n=e.properties)||void 0===n?void 0:n.href,s=null===(i=e.properties)||void 0===i?void 0:i.title;if(!r)return;const a=t(r,s);e.properties.target=a.target,e.properties.rel=a.rel,e.properties.referrerpolicy=a.referrerpolicy}})),e))).use(xl,Object.assign({},am(null!==(i=null==n?void 0:n.whitelist)&&void 0!==i?i:[]))).use((()=>e=>{mn(e,"element",Xp)})).use(((e=!1)=>()=>e?e=>(em(e,null),e):e=>e)(null==n?void 0:n.removeEmptyParagraphs)).use(function(e=!1){return()=>e?e=>(mn(e,"element",(e=>{"img"===e.tagName&&(e.properties=e.properties||{},e.properties.loading="lazy",e.properties.src&&(e.properties["data-src"]=e.properties.src,e.properties.src=void 0))})),e):e=>e}(null==n?void 0:n.lazyLoadImages)).use(zc).process(e)).toString()}async function sm(e,t){return(await j().use(fl).use(xl,Object.assign({},am(null!=t?t:[]))).use((()=>e=>{mn(e,"element",Xp)})).use(zc).process(e)).toString()}function am(e){var t,n,i,r;const s=[...null!==(t=bl.attributes["*"])&&void 0!==t?t:[]].filter((e=>"height"!==e));s.push("style");const a=Object.assign(Object.assign({},bl),{strip:[...null!==(n=bl.strip)&&void 0!==n?n:[],"style"],tagNames:[...bl.tagNames||[],...e.map((e=>e.tagName))],attributes:Object.assign(Object.assign({},bl.attributes),{p:[...null!==(i=bl.attributes.p)&&void 0!==i?i:[],["className","MsoNormal"]],a:[...null!==(r=bl.attributes.a)&&void 0!==r?r:[],"referrerpolicy"],"*":s})});for(const t of e)a.attributes[t.tagName]=t.attributes;return a}export{g as d,t as g,rm as m,sm as s}