@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
@@ -0,0 +1,7 @@
1
+ import{g as e}from"./p-BFTU3MAI.js";import{s as t,v as n,e as r,f as i,E as o,g as a,h as s,B as l,u as c,a as u,b as h,r as f,d}from"./p-2kcqdtMr.js";function p(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}}const g={};function m(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 b(e.children,t,n)}return Array.isArray(e)?b(e,t,n):""}function b(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=m(e[i],t,n);return r.join("")}const k={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:"‌"},y={}.hasOwnProperty;function w(e){return!!y.call(k,e)&&k[e]}function v(e,t,n,r){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function E(e,t){return e.length>0?(v(e,e.length,0,t),e):t}const x={}.hasOwnProperty;function S(e){const t={};let n=-1;for(;++n<e.length;)T(t,e[n]);return t}function T(e,t){let n;for(n in t){const r=(x.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){x.call(r,o)||(r[o]=[]);const e=i[o];C(r[o],Array.isArray(e)?e:e?[e]:[])}}}function C(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);v(e,0,0,r)}function A(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 D(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const R=z(/\p{P}/u),_=z(/[A-Za-z]/),L=z(/[\dA-Za-z]/),N=z(/[#-'*+\--9=?A-Z^-~]/);function I(e){return null!==e&&(e<32||127===e)}const O=z(/\d/),M=z(/[\dA-Fa-f]/),P=z(/[!-/:-@[-`{-~]/);function q(e){return null!==e&&e<-2}function F(e){return null!==e&&(e<0||32===e)}function B(e){return-2===e||-1===e||32===e}function U(e){return P(e)||R(e)}const H=z(/\s/);function z(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function j(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(37===o&&L(e.charCodeAt(n+1))&&L(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function V(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return B(r)?(e.enter(n),a(r)):t(r)};function a(r){return B(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}const G={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"),V(e,t,"linePrefix");e.consume(n)}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):q(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},$={tokenize:function(e){const t=this,n=[];let r,i,o,a=0;return s;function s(r){if(a<n.length){const i=n[a];return t.containerState=i[1],e.attempt(i[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&k();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}b(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return v(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(i){if(a===n.length){if(!r)return f(i);if(r.currentConstruct&&r.currentConstruct.concrete)return p(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Y,u,h)(i)}function u(e){return r&&k(),b(a),f(e)}function h(e){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,p(e)}function f(n){return t.containerState={},e.attempt(Y,d,p)(n)}function d(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function p(n){return null===n?(r&&k(),b(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):q(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),g)}function m(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){s=t.events[l][1].end;break}i=!0}for(b(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;v(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function b(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function k(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Y={tokenize:function(e,t,n){return V(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function W(e){return null===e||F(e)||H(e)?1:U(e)?2:void 0}function Q(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const X={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=W(r);let o;return function(t){return o=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===o)return e.consume(s),a;const l=e.exit("attentionSequence"),c=W(s),u=!c||2===c&&i||n.includes(s),h=!i||2===i&&c||n.includes(r);return l._open=Boolean(42===o?u:u&&(i||!h)),l._close=Boolean(42===o?h:h&&(c||!u)),t(s)}},resolveAll:function(e,t){let n,r,i,o,a,s,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;s=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);K(h,-s),K(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=E(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=E(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=E(l,Q(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=E(l,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=E(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,v(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 K(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Z={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return _(t)?(e.consume(t),o):l(t)}function o(e){return 43===e||45===e||46===e||L(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||L(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||I(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):N(t)?(e.consume(t),l):n(t)}function c(e){return L(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=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||L(t))&&r++<63){const n=45===t?h:u;return e.consume(t),n}return n(t)}}},J={tokenize:function(e,t,n){return function(t){return B(t)?V(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||q(e)?t(e):n(e)}},partial:!0},ee={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return B(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 r=this;return function(t){return B(t)?V(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(ee,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}},te={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return P(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},ne={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=L,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=M,c):(e.enter("characterReferenceValue"),i=7,o=O,c(t))}function c(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==L||w(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&a++<i?(e.consume(s),c):n(s)}}},re={tokenize:function(e,t,n){const r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},ie={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(t){return e.enter("codeFencedFence"),B(t)?V(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===o?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===o?(i++,e.consume(t),c):i>=s?(e.exit("codeFencedFenceSequence"),B(t)?V(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||q(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),B(t)?V(e,c,"whitespace")(t):c(t))}function c(n){return null===n||q(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(re,d,k)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||q(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):B(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),V(e,h,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function h(t){return null===t||q(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||q(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),f)}function d(t){return e.attempt(i,k,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return a>0&&B(t)?V(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||q(t)?e.check(re,d,k)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||q(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),b)}function k(n){return e.exit("codeFenced"),t(n)}},concrete:!0},oe={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),V(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):q(t)?e.attempt(ae,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||q(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},ae={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):q(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):V(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):q(e)?i(e):n(e)}},partial:!0},se={name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):q(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||q(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"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),r-=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 le(e){const t={};let n,r,i,o,a,s,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&&(s=n[1]._tokenizer.events,i=0,i<s.length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,ce(e,c)),c=t[c],l=!0);else if(n[1]._container){for(i=c,r=void 0;i--&&(o=e[i],"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(e[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},e[r][1].start),a=e.slice(r,c),a.unshift(n),v(e,r,c-r+1,a))}}return!l}function ce(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,h,f=-1,d=n,p=0,g=0;const m=[g];for(;d;){for(;e[++i][1]!==d;);o.push(i),d._tokenizer||(u=r.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<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(g=f+1,m.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(a.events=[],d?(d._tokenizer=void 0,d.previous=void 0):m.pop(),f=m.length;f--;){const t=s.slice(m[f],m[f+1]),n=o.pop();l.unshift([n,n+t.length-1]),v(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 ue={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):q(t)?e.check(he,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return le(e),e}},he={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),V(e,i,"linePrefix")};function i(i){if(null===i||q(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};function fe(e,t,n,r,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h):null===t||32===t||41===t||I(t)?n(t):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),p(t))};function h(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),h(t)):null===t||60===t||q(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(i){return u||null!==i&&41!==i&&!F(i)?u<c&&40===i?(e.consume(i),u++,p):41===i?(e.consume(i),u--,p):null===i||32===i||40===i||I(i)?n(i):(e.consume(i),92===i?g:p):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i))}function g(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function de(e,t,n,r,i,o){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(h){return l>999||null===h||91===h||93===h&&!s||94===h&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):q(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||q(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!B(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function pe(e,t,n,r,i,o){let a;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s):n(t)};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===a?(e.exit(o),s(a)):null===t?n(t):q(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),V(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||q(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 ge(e,t){let n;return function r(i){return q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):B(i)?V(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const me={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return de.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=D(r.sliceSerialize(r.events[r.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 F(t)?ge(e,s)(t):s(t)}function s(t){return fe(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(be,c,c)(t)}function c(t){return B(t)?V(e,u,"whitespace")(t):u(t)}function u(o){return null===o||q(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},be={tokenize:function(e,t,n){return function(t){return F(t)?ge(e,r)(t):n(t)};function r(t){return pe(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return B(t)?V(e,o,"whitespace")(t):o(t)}function o(e){return null===e||q(e)?t(e):n(e)}},partial:!0},ke={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return q(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},ye={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||F(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||q(n)?(e.exit("atxHeading"),t(n)):B(n)?V(e,o,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),o(t))}function s(t){return null===t||35===t||F(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[o][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},v(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},we=["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"],ve=["pre","script","style","textarea"],Ee={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),o=!0,d):63===s?(e.consume(s),i=3,r.interrupt?t:P):_(s)?(e.consume(s),a=String.fromCharCode(s),p):n(s)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,s=0,f):_(o)?(e.consume(o),i=4,r.interrupt?t:P):n(o)}function h(i){return 45===i?(e.consume(i),r.interrupt?t:P):n(i)}function f(i){return i==="CDATA[".charCodeAt(s++)?(e.consume(i),6===s?r.interrupt?t:C:f):n(i)}function d(t){return _(t)?(e.consume(t),a=String.fromCharCode(t),p):n(t)}function p(s){if(null===s||47===s||62===s||F(s)){const l=47===s,c=a.toLowerCase();return l||o||!ve.includes(c)?we.includes(a.toLowerCase())?(i=6,l?(e.consume(s),g):r.interrupt?t(s):C(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?m(s):b(s)):(i=1,r.interrupt?t(s):C(s))}return 45===s||L(s)?(e.consume(s),a+=String.fromCharCode(s),p):n(s)}function g(i){return 62===i?(e.consume(i),r.interrupt?t:C):n(i)}function m(t){return B(t)?(e.consume(t),m):S(t)}function b(t){return 47===t?(e.consume(t),S):58===t||95===t||_(t)?(e.consume(t),k):B(t)?(e.consume(t),b):S(t)}function k(t){return 45===t||46===t||58===t||95===t||L(t)?(e.consume(t),k):y(t)}function y(t){return 61===t?(e.consume(t),w):B(t)?(e.consume(t),y):b(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,v):B(t)?(e.consume(t),w):E(t)}function v(t){return t===l?(e.consume(t),l=null,x):null===t||q(t)?n(t):(e.consume(t),v)}function E(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||F(t)?y(t):(e.consume(t),E)}function x(e){return 47===e||62===e||B(e)?b(e):n(e)}function S(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return null===t||q(t)?C(t):B(t)?(e.consume(t),T):n(t)}function C(t){return 45===t&&2===i?(e.consume(t),N):60===t&&1===i?(e.consume(t),I):62===t&&4===i?(e.consume(t),U):63===t&&3===i?(e.consume(t),P):93===t&&5===i?(e.consume(t),M):!q(t)||6!==i&&7!==i?null===t||q(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(xe,H,A)(t))}function A(t){return e.check(Se,D,H)(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return null===t||q(t)?A(t):(e.enter("htmlFlowData"),C(t))}function N(t){return 45===t?(e.consume(t),P):C(t)}function I(t){return 47===t?(e.consume(t),a="",O):C(t)}function O(t){if(62===t){const n=a.toLowerCase();return ve.includes(n)?(e.consume(t),U):C(t)}return _(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),O):C(t)}function M(t){return 93===t?(e.consume(t),P):C(t)}function P(t){return 62===t?(e.consume(t),U):45===t&&2===i?(e.consume(t),P):C(t)}function U(t){return null===t||q(t)?(e.exit("htmlFlowData"),H(t)):(e.consume(t),U)}function H(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},xe={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(J,t,n)}},partial:!0},Se={tokenize:function(e,t,n){const r=this;return function(t){return q(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Te={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),k):_(t)?(e.consume(t),x):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,d):_(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):q(t)?(a=u,O(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?I(e):45===e?h(e):u(e)}function d(t){return t==="CDATA[".charCodeAt(o++)?(e.consume(t),6===o?p:d):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):q(t)?(a=p,O(t)):(e.consume(t),p)}function g(t){return 93===t?(e.consume(t),m):p(t)}function m(t){return 62===t?I(t):93===t?(e.consume(t),m):p(t)}function b(t){return null===t||62===t?I(t):q(t)?(a=b,O(t)):(e.consume(t),b)}function k(t){return null===t?n(t):63===t?(e.consume(t),y):q(t)?(a=k,O(t)):(e.consume(t),k)}function y(e){return 62===e?I(e):k(e)}function w(t){return _(t)?(e.consume(t),v):n(t)}function v(t){return 45===t||L(t)?(e.consume(t),v):E(t)}function E(t){return q(t)?(a=E,O(t)):B(t)?(e.consume(t),E):I(t)}function x(t){return 45===t||L(t)?(e.consume(t),x):47===t||62===t||F(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),I):58===t||95===t||_(t)?(e.consume(t),T):q(t)?(a=S,O(t)):B(t)?(e.consume(t),S):I(t)}function T(t){return 45===t||46===t||58===t||95===t||L(t)?(e.consume(t),T):C(t)}function C(t){return 61===t?(e.consume(t),A):q(t)?(a=C,O(t)):B(t)?(e.consume(t),C):S(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,D):q(t)?(a=A,O(t)):B(t)?(e.consume(t),A):(e.consume(t),R)}function D(t){return t===i?(e.consume(t),i=void 0,N):null===t?n(t):q(t)?(a=D,O(t)):(e.consume(t),D)}function R(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||F(t)?S(t):(e.consume(t),R)}function N(e){return 47===e||62===e||F(e)?S(e):n(e)}function I(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function O(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return B(t)?V(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),a(t)}}},Ce={name:"labelEnd",tokenize:function(e,t,n){const r=this;let i,o,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return function(t){return i?i._inactive?u(t):(o=r.parser.defined.includes(D(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s):n(t)};function s(t){return 40===t?e.attempt(Ae,c,o?c:u)(t):91===t?e.attempt(De,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(Re,c,u)(t)}function c(e){return t(e)}function u(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},u={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=E(o,e.slice(r+1,r+s+3)),o=E(o,[["enter",u,t]]),o=E(o,Q(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=E(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=E(o,e.slice(i+1)),o=E(o,[["exit",l,t]]),v(e,r,e.length,o),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}},Ae={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return F(t)?ge(e,i)(t):i(t)}function i(t){return 41===t?c(t):fe(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return F(t)?ge(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?pe(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return F(t)?ge(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},De={tokenize:function(e,t,n){const r=this;return function(t){return de.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(D(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},Re={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},_e={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Ce.resolveAll},Le={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:Ce.resolveAll},Ne={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),V(e,t,"linePrefix")}}},Ie={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),a(o)):i>=3&&(null===o||q(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),B(t)?V(e,o,"whitespace")(t):o(t))}}},Oe={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:O(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Ie,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return O(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.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"),r.containerState.marker=r.containerState.marker||t,e.check(J,r.interrupt?n:c,e.attempt(Me,h,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return B(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):n(t)}function h(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(J,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,V(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!B(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Pe,t,i)(n))}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,V(e,e.attempt(Oe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Me={tokenize:function(e,t,n){const r=this;return V(e,(function(e){const i=r.events[r.events.length-1];return!B(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Pe={tokenize:function(e,t,n){const r=this;return V(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0},qe={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}return r.parser.lazy[r.now().line]||!r.interrupt&&!a?n(t):(e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t))};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),B(t)?V(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||q(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a,e.push(["exit",a,t]),e}},Fe={tokenize:function(e){const t=this,n=e.attempt(J,(function(r){if(null!==r)return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n;e.consume(r)}),e.attempt(this.parser.constructs.flowInitial,r,V(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ue,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}},Be={resolveAll:je()},Ue=ze("string"),He=ze("text");function ze(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return l(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:je("text"===e?Ve:void 0)}}function je(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function Ve(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 r=e[n-1][1],i=t.sliceStream(r);let o,a=i.length,s=-1,l=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)o=!0,l++;else if(-1!==e){a++;break}}if(l){const i={type:n===e.length||o||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function Ge(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[];const l={consume:function(e){q(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,b()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(){const e=s.pop();return e.end=f(),c.events.push(["exit",e,c]),e},attempt:g((function(e,t){m(e,t.from)})),check:g(p),interrupt:g(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 r=[];let i;for(;++n<e.length;){const o=e[n];let a;if("string"==typeof o)a=o;else switch(o){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&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,r.push(a)}return r.join("")}(h(e),t)},now:f,defineSkip:function(e){i[e.line]=e.column,b()},write:function(e){return a=E(a,e),function(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)d(t.charCodeAt(r._bufferIndex));else d(t)}}(),null!==a[a.length-1]?[]:(m(t,0),c.events=Q(o,c.events,c),c.events)}};let u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function h(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}(a,e)}function f(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function d(e){u=u(e)}function p(e,t){t.restore()}function g(e,t){return function(n,i,o){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],r=null!==t&&e.null;return p([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function p(e){return a=e,u=0,0===e.length?o:g(e[u])}function g(e){return function(n){return d=function(){const e=f(),t=c.previous,n=c.currentConstruct,i=c.events.length,o=Array.from(s);return{restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=o,b()},from:i}}(),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,m,k)(n)}}function m(){return e(h,d),i}function k(){return d.restore(),++u<a.length?g(a[u]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&v(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(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}var $e=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:me},disable:{null:[]},document:{42:Oe,43:Oe,45:Oe,48:Oe,49:Oe,50:Oe,51:Oe,52:Oe,53:Oe,54:Oe,55:Oe,56:Oe,57:Oe,62:ee},flow:{35:ye,42:Ie,45:[qe,Ie],60:Ee,61:qe,95:Ie,96:ie,126:ie},flowInitial:{[-2]:oe,[-1]:oe,32:oe},insideSpan:{null:[X,Be]},string:{38:ne,92:te},text:{[-5]:Ne,[-4]:Ne,[-3]:Ne,33:_e,38:ne,42:X,60:[Z,Te],91:Le,92:[ke,te],93:Ce,95:X,96:se}});const Ye=/[\0\t\n\r]/g,We=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Qe(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return A(n.slice(t?2:1),t?16:10)}return w(n)||e}function Xe(e){return e&&"object"==typeof e?"position"in e||"type"in e?Ze(e.position):"start"in e||"end"in e?Ze(e):"line"in e||"column"in e?Ke(e):"":""}function Ke(e){return Je(e&&e.line)+":"+Je(e&&e.column)}function Ze(e){return Ke(e&&e.start)+"-"+Ke(e&&e.end)}function Je(e){return e&&"number"==typeof e?e:1}const et={}.hasOwnProperty;function tt(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:i(v),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(b),blockQuote:i((function(){return{type:"blockquote",children:[]}})),characterEscape:u,characterReference:u,codeFenced:i(p),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(p,o),codeText:i((function(){return{type:"inlineCode",value:""}}),o),codeTextData:u,data:u,codeFlowValue:u,definition:i((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:i(k),hardBreakTrailing:i(k),htmlFlow:i(y,o),htmlFlowData:u,htmlText:i(y,o),htmlTextData:u,image:i((function(){return{type:"image",title:null,url:"",alt:null}})),label:o,link:i(v),listItem:i((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:i(E,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:i(E),paragraph:i((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(b),strong:i((function(){return{type:"strong",children:[]}})),thematicBreak:i((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:s(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),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:s(),characterEscapeValue:h,characterReferenceMarkerHexadecimal:d,characterReferenceMarkerNumeric:d,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;n?(r=A(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=w(t);const i=this.stack.pop();i.value+=r,i.position.end=nt(e.end)},codeFenced:s((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:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:h,data:h,definition:s(),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=D(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(f),hardBreakTrailing:s(f),htmlFlow:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:h,htmlText:s((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:h,image:s((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(We,Qe)}(t),n.identifier=D(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=nt(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:s((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:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=D(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:s((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:s(),thematicBreak:s()}};rt(t,(e||{}).mdastExtensions||[]);const n={};return function(e){let i={type:"root",children:[]};const s={stack:[i],tokenStack:[],config:t,enter:a,exit:l,buffer:o,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=r(e,u.pop(),h));for(h=-1;++h<e.length;){const n=t[e[h][0]];et.call(n,e[h][1].type)&&n[e[h][1].type].call(Object.assign({sliceSerialize:e[h][2].sliceSerialize},s),e[h][1])}if(s.tokenStack.length>0){const e=s.tokenStack[s.tokenStack.length-1];(e[1]||ot).call(s,void 0,e[0])}for(i.position={start:nt(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nt(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;++h<t.transforms.length;)i=t.transforms[h](i)||i;return i};function r(e,t,n){let r,i,o,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||o||(o=s),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(r){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(s,0,["enter",i,t[2]]),s++,n++,o=void 0,a=!0}}}return e[t][1]._spread=c,n}function i(e,t){return function(n){a.call(this,e(n),n),t&&t.call(this,n)}}function o(){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:nt(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Xe({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||ot).call(this,e,r[0])),n.position.end=nt(e.end)}function c(){return function(e){return m(e,"boolean"!=typeof g.includeImageAlt||g.includeImageAlt,"boolean"!=typeof g.includeHtml||g.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:nt(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=nt(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 b(){return{type:"heading",depth:0,children:[]}}function k(){return{type:"break"}}function y(){return{type:"html",value:""}}function v(){return{type:"link",title:null,url:"",children:[]}}function E(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!le(e););return e}(function(e){const t={defined:[],lazy:{},constructs:S([$e,...(e||{}).extensions||[]]),content:n(G),document:n($),flow:n(Fe),string:n(Ue),text:n(He)};return t;function n(e){return function(n){return Ge(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,a){const s=[];let l,c,u,h,f;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),u=0,n="",r&&(65279===i.charCodeAt(0)&&u++,r=void 0);u<i.length;){if(Ye.lastIndex=u,l=Ye.exec(i),h=l&&void 0!==l.index?l.index:i.length,f=i.charCodeAt(h),!l){n=i.slice(u);break}if(10===f&&u===h&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<h&&(s.push(i.slice(u,h)),t+=h-u),f){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=h+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function nt(e){return{line:e.line,column:e.column,offset:e.offset}}function rt(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?rt(e,r):it(e,r)}}function it(e,t){let n;for(n in t)if(et.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ot(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Xe({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Xe({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Xe({start:t.start,end:t.end})+") is still open")}function at(e){const t=this;t.parser=function(n){return tt(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function st(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push({type:"text",value:r}),i}function lt(e){const t=e.spread;return null==t?e.children.length>1:t}const ct=ht("end"),ut=ht("start");function ht(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 ft(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(dt(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(dt(t.slice(i),i>0,!1)),o.join("")}function dt(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const pt={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":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},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-",r=String(t.identifier).toUpperCase(),i=j(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),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(),r=e.definitionById.get(n);if(!r)return st(e,t);const i={src:j(r.url||""),alt:t.alt};null!=r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:j(t.url)};null!=t.alt&&(n.alt=t.alt),null!=t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return st(e,t);const i={href:j(r.url||"")};null!=r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:j(t.url)};null!=t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=lt(n[r])}return t}(n):lt(t),o={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.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:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];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 o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},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),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=ut(t.children[1]),a=ct(t.children[t.children.length-1]);o&&a&&(r.position={start:o,end:a}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},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 r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,a=o?o.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=o?o[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:i,properties:r,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:ft(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:gt,yaml:gt,definition:gt,footnoteDefinition:gt};function gt(){}function mt(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 bt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const kt={}.hasOwnProperty,yt={};function wt(e,t){e.position&&(t.position=function(e){const t=ut(e),n=ct(e);if(t&&n)return{start:t,end:n}}(e))}function vt(e,n){let r=n;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;"string"==typeof n&&("element"===r.type?r.tagName=n:r={type:"element",tagName:n,properties:{},children:"children"in r?r.children:[r]}),"element"===r.type&&o&&Object.assign(r.properties,t(o)),"children"in r&&r.children&&null!=i&&(r.children=i)}return r}function Et(e,t){const n=t.data||{},r=!("value"in t)||kt.call(n,"hProperties")||kt.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function xt(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function St(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Tt(e,r){const i=function(e,r){const i=r||yt,o=new Map,a=new Map,s=new Map,l={...pt,...i.handlers},c={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=c.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=St(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=St(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:vt,definitionById:o,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:l,one:function(e,n){const r=e.type,i=c.handlers[r];if(kt.call(c.handlers,r)&&i)return i(c,e,n);if(c.options.passThrough&&c.options.passThrough.includes(r)){if("children"in e){const{children:n,...r}=e,i=t(r);return i.children=c.all(e),i}return t(e)}return(c.options.unknownHandler||Et)(c,e,n)},options:i,patch:wt,wrap:xt};return n(e,(function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?o:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}})),c}(e,r),o=i.one(e,void 0),a=function(e){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||mt,i=e.options.footnoteBackLabel||bt,o=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const t=e.footnoteById.get(e.footnoteOrder[c]);if(!t)continue;const o=e.all(t),a=String(t.identifier).toUpperCase(),s=j(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 r?r:r(c,u);"string"==typeof e&&(e={type:"text",value:e}),h.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+s+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof i?i:i(c,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const d=o[o.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 o.push(...h);const p={type:"element",tagName:"li",properties:{id:n+"fn-"+s},children:e.wrap(o,!0)};e.patch(t,p),l.push(p)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...t(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(i),s=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return a&&s.children.push({type:"text",value:"\n"},a),s}function Ct(e,t){return e&&"run"in e?async function(n,r){const i=Tt(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Tt(n,{file:r,...e||t})}}function At(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function Dt(e){return"function"==typeof e?e:function(){return e}}const Rt="phrasing",_t=["autolink","link","image","label"];function Lt(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Nt(e){this.config.enter.autolinkProtocol.call(this,e)}function It(e){this.config.exit.autolinkProtocol.call(this,e)}function Ot(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}function Mt(e){this.config.exit.autolinkEmail.call(this,e)}function Pt(e){this.exit(e)}function qt(e){!function(e,t,n){const o=r((n||{}).ignore||[]),a=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 r=-1;for(;++r<n.length;){const e=n[r];t.push([(i=e[0],"string"==typeof i?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i),Dt(e[1])])}var i;return t}(t);let s=-1;for(;++s<a.length;)i(e,"text",l);function l(e,t){let n,r=-1;for(;++r<t.length;){const e=t[r],i=n?n.children:void 0;if(o(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[s][0],i=a[s][1];let o=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let h=r.exec(e.value);for(;h;){const n=h.index,a={index:h.index,input:h.input,stack:[...t,e]};let s=i(...h,a);if("string"==typeof s&&(s=s.length>0?{type:"text",value:s}:void 0),!1===s?r.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),!r.global)break;h=r.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,Ft],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Bt]],{ignore:["link","linkReference"]})}function Ft(e,t,n,r,i){let o="";if(!Ut(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="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],r=n.indexOf(")");const i=At(e,"(");let o=At(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function Bt(e,t,n,r){return!(!Ut(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Ut(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||H(n)||U(n))&&(!t||47!==n)}function Ht(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function zt(){this.buffer()}function jt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=D(this.sliceSerialize(e)).toLowerCase()}function Vt(e){this.exit(e)}function Gt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function $t(){this.buffer()}function Yt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=D(this.sliceSerialize(e)).toLowerCase()}function Wt(e){this.exit(e)}function Qt(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function Xt(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(n.safe(n.associationId(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(n.indentLines(n.containerFlow(e,i.current()),Kt)),a(),o}function Kt(e,t,n){return 0===t?e:(n?"":" ")+e}Qt.peek=function(){return"["};const Zt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function Jt(e){this.enter({type:"delete",children:[]},e)}function en(e){this.exit(e)}function tn(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function nn(e){return e.length}function rn(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 on(e,t,n){return">"+(n?"":" ")+e}function an(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function sn(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&(an(o=n.stack,(a=n.unsafe[i]).inConstruct,!0)&&!an(o,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var o,a;return"\\\n"}function ln(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function cn(e,t,n){return(n?"":" ")+e}function un(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 hn(e,t,n,r){const i=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),o=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}tn.peek=function(){return"~"},hn.peek=function(e,t,n){return n.options.emphasis||"*"};const fn={};function dn(e){return pn(e,"boolean"!=typeof fn.includeImageAlt||fn.includeImageAlt,"boolean"!=typeof fn.includeHtml||fn.includeHtml)}function pn(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 gn(e.children,t,n)}return Array.isArray(e)?gn(e,t,n):""}function gn(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=pn(e[i],t,n);return r.join("")}function mn(e){return e.value||""}function bn(e,t,n,r){const i=un(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function kn(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(h+"]"),l}function yn(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function wn(e,t){const n=dn(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 vn(e,t,n,r){const i=un(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(wn(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=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${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function En(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(h+"]"),l}function xn(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 Sn(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}mn.peek=function(){return"<"},bn.peek=function(){return"!"},kn.peek=function(){return"!"},yn.peek=function(){return"`"},vn.peek=function(e,t,n){return wn(e,n)?"<":"["},En.peek=function(){return"["};const Tn=r(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Cn(e,t,n,r){const i=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),o=n.enter("strong"),a=n.createTracker(r);let s=a.move(i+i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}Cn.peek=function(e,t,n){return n.options.strong||"*"};const An={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),on);return i(),a},break:sn,code:function(e,t,n,r){const i=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),o=e.value||"",a="`"===i?"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(o,cn);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(ln(o,i)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),o&&(u+=s.move(o+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const i=un(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),a(),c},emphasis:hn,hardBreak:sn,heading:function(e,t,r,i){const a=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(i);if(function(e,t){let r=!1;return n(e,(function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return r=!0,o})),Boolean((!e.depth||e.depth<3)&&dn(e)&&(t.options.setext||r))}(e,r)){const t=r.enter("headingSetext"),n=r.enter("phrasing"),i=r.containerPhrasing(e,{...s.current(),before:"\n",after:"\n"});return n(),t(),i+"\n"+(1===a?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const l="#".repeat(a),c=r.enter("headingAtx"),u=r.enter("phrasing");s.move(l+" ");let h=r.containerPhrasing(e,{before:"# ",after:"\n",...s.current()});return/^[\t ]/.test(h)&&(h="&#x"+h.charCodeAt(0).toString(16).toUpperCase()+";"+h.slice(1)),h=h?l+" "+h:l,r.options.closeAtx&&(h+=" "+l),u(),c(),h},html:mn,image:bn,imageReference:kn,inlineCode:yn,link:vn,linkReference:En,list:function(e,t,n,r){const i=n.enter("list"),o=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):xn(n);const s=e.ordered?"."===a?")":".":function(e){const t=xn(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),Sn(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=s),n.bulletCurrent=a;const c=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){const i=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 o=n.bulletCurrent||xn(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?o:o+" ".repeat(a-o.length))+e}));return l(),c},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a},root:function(e,t,n,r){return(e.children.some((function(e){return Tn(e)}))?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Cn,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Sn(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?r.slice(0,-1):r}};function Dn(e){this.enter({type:"table",align:e._align.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function Rn(e){this.exit(e),this.data.inTable=void 0}function _n(e){this.enter({type:"tableRow",children:[]},e)}function Ln(e){this.exit(e)}function Nn(e){this.enter({type:"tableCell",children:[]},e)}function In(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,On)),this.stack[this.stack.length-1].value=t,this.exit(e)}function On(e,t){return"|"===t?t:e}function Mn(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=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 r=An.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return a(),o}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const i=s([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function a(e,t,n,r){const i=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:o,after:o});return a(),i(),s}function s(e,t){return function(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||nn,i=[],o=[],a=[],s=[];let l=0,c=-1;for(;++c<e.length;){const n=[],i=[];let h=-1;for(e[c].length>l&&(l=e[c].length);++h<e[c].length;){const o=null==(u=e[c][h])?"":String(u);if(!1!==t.alignDelimiters){const e=r(o);i[h]=e,(void 0===s[h]||e>s[h])&&(s[h]=e)}n.push(o)}o[c]=n,a[c]=i}var u;let h=-1;if("object"==typeof n&&"length"in n)for(;++h<l;)i[h]=rn(n[h]);else{const e=rn(n);for(;++h<l;)i[h]=e}h=-1;const f=[],d=[];for(;++h<l;){const e=i[h];let n="",r="";99===e?(n=":",r=":"):108===e?n=":":114===e&&(r=":");let o=!1===t.alignDelimiters?1:Math.max(1,s[h]-n.length-r.length);const a=n+"-".repeat(o)+r;!1!==t.alignDelimiters&&(o=n.length+o+r.length,o>s[h]&&(s[h]=o),d[h]=o),f[h]=a}o.splice(1,0,f),a.splice(1,0,d),c=-1;const p=[];for(;++c<o.length;){const e=o[c],n=a[c];h=-1;const r=[];for(;++h<l;){const o=e[h]||"";let a="",c="";if(!1!==t.alignDelimiters){const e=s[h]-(n[h]||0),t=i[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||r.push("|"),!1===t.padding||!1===t.alignDelimiters&&""===o||!1===t.delimiterStart&&!h||r.push(" "),!1!==t.alignDelimiters&&r.push(a),r.push(o),!1!==t.alignDelimiters&&r.push(c),!1!==t.padding&&r.push(" "),!1===t.delimiterEnd&&h===l-1||r.push("|")}p.push(!1===t.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return p.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("tableRow");for(;++i<r.length;)o[i]=a(r[i],0,t,n);return s(),o}}function Pn(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 qn(e,t,n,r){const i=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),o=n.enter("emphasis"),a=n.createTracker(r);let s=a.move(i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i),o(),s}qn.peek=function(e,t,n){return n.options.emphasis||"*"};const Fn={};function Bn(e){return Un(e,"boolean"!=typeof Fn.includeImageAlt||Fn.includeImageAlt,"boolean"!=typeof Fn.includeHtml||Fn.includeHtml)}function Un(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 Hn(e.children,t,n)}return Array.isArray(e)?Hn(e,t,n):""}function Hn(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Un(e[i],t,n);return r.join("")}function zn(e){return e.value||""}function jn(e,t,n,r){const i=Pn(n),o='"'===i?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),s()),c+=l.move(")"),a(),c}function Vn(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(h+"]"),l}function Gn(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function $n(e,t){const n=Bn(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 Yn(e,t,n,r){const i=Pn(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if($n(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=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${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),l()),c+=a.move(")"),s(),c}function Wn(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),a();const u=n.stack;n.stack=[],a=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=u,o(),"full"!==i&&c&&c===h?"shortcut"===i?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(h+"]"),l}function Qn(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 Xn(e,t,n,r){const i=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),o=n.enter("strong"),a=n.createTracker(r);let s=a.move(i+i);return s+=a.move(n.containerPhrasing(e,{before:s,after:i,...a.current()})),s+=a.move(i+i),o(),s}zn.peek=function(){return"<"},jn.peek=function(){return"!"},Vn.peek=function(){return"!"},Gn.peek=function(){return"`"},Yn.peek=function(e,t,n){return $n(e,n)?"<":"["},Wn.peek=function(){return"["},Xn.peek=function(e,t,n){return n.options.strong||"*"};const Kn=function(e,t,n,r){const i=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 o=n.bulletCurrent||Qn(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){return t?(n?"":" ".repeat(a))+e:(n?o:o+" ".repeat(a-o.length))+e}));return l(),c};function Zn(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Jn(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 r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===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 er(e,t,n,r){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=Kn(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}const tr={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},nr={tokenize:function(e,t,n){let r,i,o;return a;function a(t){return 46===t||95===t?e.check(ir,l,s)(t):null===t||F(t)||H(t)||45!==t&&U(t)?l(t):(o=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),a}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},rr={tokenize:function(e,t){let n=0,r=0;return i;function i(a){return 40===a?(n++,e.consume(a),i):41===a&&r<n?o(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(ir,t,o)(a):null===a||F(a)||H(a)?t(a):(e.consume(a),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},ir={tokenize:function(e,t,n){return r;function r(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),r):38===a?(e.consume(a),o):93===a?(e.consume(a),i):60===a||null===a||F(a)||H(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||F(e)||H(e)?t(e):r(e)}function o(e){return _(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):_(t)?(e.consume(t),a):n(t)}},partial:!0},or={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return L(e)?n(e):t(e)}},partial:!0},ar={tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!hr.call(r,r.previous)||gr(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(tr,e.attempt(nr,e.attempt(rr,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:hr},sr={tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){return 72!==t&&104!==t||!fr.call(r,r.previous)||gr(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a)};function a(t){if(_(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),o?l:(o=!0,s)):n(t)}function l(t){return null===t||I(t)||F(t)||H(t)||U(t)?n(t):e.attempt(nr,e.attempt(rr,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:fr},lr={tokenize:function(e,t,n){const r=this;let i,o;return function(t){return pr(t)&&dr.call(r,r.previous)&&!gr(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)):n(t)};function a(t){return pr(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(or,c,l)(t):45===t||95===t||L(t)?(o=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),i=!0,s}function c(a){return o&&i&&_(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:dr},cr={};let ur=48;for(;ur<123;)cr[ur]=lr,ur++,58===ur?ur=65:91===ur&&(ur=97);function hr(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||F(e)}function fr(e){return!_(e)}function dr(e){return!(47===e||pr(e))}function pr(e){return 43===e||45===e||46===e||95===e||L(e)}function gr(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}cr[43]=lr,cr[45]=lr,cr[46]=lr,cr[95]=lr,cr[72]=[lr,sr],cr[104]=[lr,sr],cr[87]=[lr,ar],cr[119]=[lr,ar];const mr={tokenize:function(e,t,n){const r=this;return V(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function br(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const e=r.events[i][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(i){if(!a||!a._balanced)return n(i);const s=D(r.sliceSerialize({start:a.end,end:r.now()}));return 94===s.codePointAt(0)&&o.includes(s.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)):n(i)}}function kr(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 r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)};return e.splice(n,e.length-n+1,e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]),e}function yr(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(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(s){if(a>999||93===s&&!o||null===s||91===s||F(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(D(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return F(s)||(o=!0),a++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function wr(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a,s=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(s>999||93===t&&!a||null===t||91===t||F(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=D(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return F(t)||(a=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),V(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function vr(e,t,n){return e.check(J,t,e.attempt(mr,t,n))}function Er(e){e.exit("gfmFootnoteDefinition")}function xr(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const i=this.previous,o=this.events;let a=0;return function(t){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(t):(e.enter("strikethroughSequenceTemporary"),s(t))};function s(o){const l=W(i);if(126===o)return a>1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=W(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},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 r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],s=t.parser.constructs.insideSpan.null;s&&v(a,a.length,0,Q(s,e.slice(r+1,n),t)),v(a,a.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),v(e,r-1,n-r+3,a),n=r+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 Sr{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}}(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 r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function Tr(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function Cr(e,t,n){const r=this;let i,o=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?w:s;return o===w&&r.parser.lazy[r.now().line]?n(e):o(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){return 124===e||(i=!0,a+=1),l(e)}(t)}function l(t){return null===t?n(t):q(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):B(t)?V(e,l,"whitespace")(t):(a+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||F(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 r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,B(t)?V(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?p(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):y(t)}function d(t){return B(t)?V(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(a+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(a+=1,g(t)):null===t||q(t)?k(t):y(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):y(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(t))}function b(t){return B(t)?V(e,k,"whitespace")(t):k(t)}function k(n){return 124===n?f(n):(null===n||q(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function w(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||q(n)?(e.exit("tableRow"),t(n)):B(n)?V(e,v,"whitespace")(n):(e.enter("data"),E(n))}function E(t){return null===t||124===t||F(t)?(e.exit("data"),v(t)):(e.consume(t),92===t?x:E)}function x(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function Ar(e,t){let n,r,i,o=-1,a=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0;const f=new Sr;for(;++o<e.length;){const d=e[o],p=d[1];"enter"===d[0]?"tableHead"===p.type?(u=!1,0!==h&&(Rr(f,t,h,n,r),r=void 0,h=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(o,0,[["enter",n,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(a=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(o,0,[["enter",r,t]])),s="tableDelimiterRow"===p.type?2:r?3:1):!s||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type?"tableCellDivider"===p.type&&(a?a=!1:(0!==l[1]&&(c[0]=c[1],i=Dr(f,t,l,s,void 0,i)),l=c,c=[l[1],o,0,0])):(a=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=Dr(f,t,l,s,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableHead"===p.type?(u=!0,h=o):"tableRow"===p.type||"tableDelimiterRow"===p.type?(h=o,0!==l[1]?(c[0]=c[1],i=Dr(f,t,l,s,o,i)):0!==c[1]&&(i=Dr(f,t,c,s,o,i)),s=0):!s||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(c[3]=o)}for(0!==h&&Rr(f,t,h,n,r),f.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Tr(t.events,o))}return e}function Dr(e,t,n,r,i,o){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},_r(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=_r(t.events,n[1]);if(o={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=_r(t.events,n[2]),o=_r(t.events,n[3]),a={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]];r[1].end=Object.assign({},t.events[n[3]][1].end),r[1].type="chunkText",r[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!==i&&(o.end=Object.assign({},_r(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Rr(e,t,n,r,i){const o=[],a=_r(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function _r(e,t){const n=e[t];return n[1]["enter"===n[0]?"start":"end"]}const Lr={tokenize:function(e,t,n){const r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return F(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return q(r)?t(r):B(r)?e.check({tokenize:Nr},t,n)(r):n(r)}}};function Nr(e,t,n){return V(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const Ir={};function Or(e){const t=e||Ir,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return S([{text:cr},{document:{91:{tokenize:wr,continuation:{tokenize:vr},exit:Er}},text:{91:{tokenize:yr},93:{add:"after",tokenize:br,resolveTo:kr}}},xr(e),{flow:{null:{tokenize:Cr,resolveAll:Ar}}},{text:{91:Lr}}])}(t)),i.push([{transforms:[qt],enter:{literalAutolink:Lt,literalAutolinkEmail:Nt,literalAutolinkHttp:Nt,literalAutolinkWww:Nt},exit:{literalAutolink:Pt,literalAutolinkEmail:Mt,literalAutolinkHttp:It,literalAutolinkWww:Ot}},{enter:{gfmFootnoteDefinition:Ht,gfmFootnoteDefinitionLabelString:zt,gfmFootnoteCall:Gt,gfmFootnoteCallString:$t},exit:{gfmFootnoteDefinition:Vt,gfmFootnoteDefinitionLabelString:jt,gfmFootnoteCall:Wt,gfmFootnoteCallString:Yt}},{canContainEols:["delete"],enter:{strikethrough:Jt},exit:{strikethrough:en}},{enter:{table:Dn,tableData:Nn,tableHeader:Nn,tableRow:_n},exit:{codeText:In,table:Rn,tableData:Ln,tableHeader:Ln,tableRow:Ln}},{exit:{taskListCheckValueChecked:Zn,taskListCheckValueUnchecked:Zn,paragraph:Jn}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Rt,notInConstruct:_t},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Rt,notInConstruct:_t},{character:":",before:"[ps]",after:"\\/",inConstruct:Rt,notInConstruct:_t}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Xt,footnoteReference:Qt}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Zt}],handlers:{delete:tn}},Mn(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:er}}]}}(t))}let Mr=class{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}};function Pr(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Mr(n,r,t)}function qr(e){return e.toLowerCase()}Mr.prototype.property={},Mr.prototype.normal={},Mr.prototype.space=null;let Fr=class{constructor(e,t){this.property=e,this.attribute=t}};Fr.prototype.space=null,Fr.prototype.boolean=!1,Fr.prototype.booleanish=!1,Fr.prototype.overloadedBoolean=!1,Fr.prototype.number=!1,Fr.prototype.commaSeparated=!1,Fr.prototype.spaceSeparated=!1,Fr.prototype.commaOrSpaceSeparated=!1,Fr.prototype.mustUseProperty=!1,Fr.prototype.defined=!1;let Br=0;const Ur=Yr(),Hr=Yr(),zr=Yr(),jr=Yr(),Vr=Yr(),Gr=Yr(),$r=Yr();function Yr(){return 2**++Br}var Wr=Object.freeze({__proto__:null,boolean:Ur,booleanish:Hr,commaOrSpaceSeparated:$r,commaSeparated:Gr,number:jr,overloadedBoolean:zr,spaceSeparated:Vr});const Qr=Object.keys(Wr);let Xr=class extends Fr{constructor(e,t,n,r){let i=-1;if(super(e,t),Kr(this,"space",r),"number"==typeof n)for(;++i<Qr.length;){const e=Qr[i];Kr(this,Qr[i],(n&Wr[e])===Wr[e])}}};function Kr(e,t,n){n&&(e[t]=n)}Xr.prototype.defined=!0;const Zr={}.hasOwnProperty;function Jr(e){const t={},n={};let r;for(r in e.properties)if(Zr.call(e.properties,r)){const i=e.properties[r],o=new Xr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[qr(r)]=r,n[qr(o.attribute)]=r}return new Mr(t,n,e.space)}const ei=Jr({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}}),ti=Jr({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function ni(e,t){return t in e?e[t]:t}function ri(e,t){return ni(e,t.toLowerCase())}const ii=Jr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ri,properties:{xmlns:null,xmlnsXLink:null}}),oi=Jr({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Hr,ariaAutoComplete:null,ariaBusy:Hr,ariaChecked:Hr,ariaColCount:jr,ariaColIndex:jr,ariaColSpan:jr,ariaControls:Vr,ariaCurrent:null,ariaDescribedBy:Vr,ariaDetails:null,ariaDisabled:Hr,ariaDropEffect:Vr,ariaErrorMessage:null,ariaExpanded:Hr,ariaFlowTo:Vr,ariaGrabbed:Hr,ariaHasPopup:null,ariaHidden:Hr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Vr,ariaLevel:jr,ariaLive:null,ariaModal:Hr,ariaMultiLine:Hr,ariaMultiSelectable:Hr,ariaOrientation:null,ariaOwns:Vr,ariaPlaceholder:null,ariaPosInSet:jr,ariaPressed:Hr,ariaReadOnly:Hr,ariaRelevant:null,ariaRequired:Hr,ariaRoleDescription:Vr,ariaRowCount:jr,ariaRowIndex:jr,ariaRowSpan:jr,ariaSelected:Hr,ariaSetSize:jr,ariaSort:null,ariaValueMax:jr,ariaValueMin:jr,ariaValueNow:jr,ariaValueText:null,role:null}}),ai=Jr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ri,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gr,acceptCharset:Vr,accessKey:Vr,action:null,allow:null,allowFullScreen:Ur,allowPaymentRequest:Ur,allowUserMedia:Ur,alt:null,as:null,async:Ur,autoCapitalize:null,autoComplete:Vr,autoFocus:Ur,autoPlay:Ur,blocking:Vr,capture:Ur,charSet:null,checked:Ur,cite:null,className:Vr,cols:jr,colSpan:null,content:null,contentEditable:Hr,controls:Ur,controlsList:Vr,coords:jr|Gr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ur,defer:Ur,dir:null,dirName:null,disabled:Ur,download:zr,draggable:Hr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ur,formTarget:null,headers:Vr,height:jr,hidden:Ur,high:jr,href:null,hrefLang:null,htmlFor:Vr,httpEquiv:Vr,id:null,imageSizes:null,imageSrcSet:null,inert:Ur,inputMode:null,integrity:null,is:null,isMap:Ur,itemId:null,itemProp:Vr,itemRef:Vr,itemScope:Ur,itemType:Vr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ur,low:jr,manifest:null,max:null,maxLength:jr,media:null,method:null,min:null,minLength:jr,multiple:Ur,muted:Ur,name:null,nonce:null,noModule:Ur,noValidate:Ur,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:Ur,optimum:jr,pattern:null,ping:Vr,placeholder:null,playsInline:Ur,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ur,referrerPolicy:null,rel:Vr,required:Ur,reversed:Ur,rows:jr,rowSpan:jr,sandbox:Vr,scope:null,scoped:Ur,seamless:Ur,selected:Ur,shape:null,size:jr,sizes:null,slot:null,span:jr,spellCheck:Hr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:jr,step:null,style:null,tabIndex:jr,target:null,title:null,translate:null,type:null,typeMustMatch:Ur,useMap:null,value:Hr,width:jr,wrap:null,align:null,aLink:null,archive:Vr,axis:null,background:null,bgColor:null,border:jr,borderColor:null,bottomMargin:jr,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:jr,leftMargin:jr,link:null,longDesc:null,lowSrc:null,marginHeight:jr,marginWidth:jr,noResize:Ur,noHref:Ur,noShade:Ur,noWrap:Ur,object:null,profile:null,prompt:null,rev:null,rightMargin:jr,rules:null,scheme:null,scrolling:Hr,standby:null,summary:null,text:null,topMargin:jr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:jr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ur,disableRemotePlayback:Ur,prefix:null,property:null,results:jr,security:null,unselectable:null}}),si=Jr({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:ni,properties:{about:$r,accentHeight:jr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:jr,amplitude:jr,arabicForm:null,ascent:jr,attributeName:null,attributeType:null,azimuth:jr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:jr,by:null,calcMode:null,capHeight:jr,className:Vr,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:jr,diffuseConstant:jr,direction:null,display:null,dur:null,divisor:jr,dominantBaseline:null,download:Ur,dx:null,dy:null,edgeMode:null,editable:null,elevation:jr,enableBackground:null,end:null,event:null,exponent:jr,externalResourcesRequired:null,fill:null,fillOpacity:jr,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:Gr,g2:Gr,glyphName:Gr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:jr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:jr,horizOriginX:jr,horizOriginY:jr,id:null,ideographic:jr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:jr,k:jr,k1:jr,k2:jr,k3:jr,k4:jr,kernelMatrix:$r,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:jr,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:jr,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:jr,overlineThickness:jr,paintOrder:null,panose1:null,path:null,pathLength:jr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Vr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:jr,pointsAtY:jr,pointsAtZ:jr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:$r,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:$r,rev:$r,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:$r,requiredFeatures:$r,requiredFonts:$r,requiredFormats:$r,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:jr,specularExponent:jr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:jr,strikethroughThickness:jr,string:null,stroke:null,strokeDashArray:$r,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:jr,strokeOpacity:jr,strokeWidth:null,style:null,surfaceScale:jr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:$r,tabIndex:jr,tableValues:null,target:null,targetX:jr,targetY:jr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:$r,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:jr,underlineThickness:jr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:jr,values:null,vAlphabetic:jr,vMathematical:jr,vectorEffect:null,vHanging:jr,vIdeographic:jr,version:null,vertAdvY:jr,vertOriginX:jr,vertOriginY:jr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:jr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),li=/^data[-\w.:]+$/i,ci=/-[a-z]/g,ui=/[A-Z]/g;function hi(e,t){const n=qr(t);let r=t,i=Fr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&li.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(ci,di);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!ci.test(e)){let n=e.replace(ui,fi);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Xr}return new i(r,t)}function fi(e){return"-"+e.toLowerCase()}function di(e){return e.charAt(1).toUpperCase()}const pi=Pr([ti,ei,ii,oi,ai],"html"),gi=Pr([ti,ei,ii,oi,si],"svg");function mi(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){-1===r&&(r=n.length,o=!0);const e=n.slice(i,r).trim();!e&&o||t.push(e),i=r+1,r=n.indexOf(",",i)}return t}const bi=/[#.]/g;function ki(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const yi=new Set(["button","menu","reset","submit"]),wi={}.hasOwnProperty;function vi(e,t,n){const r=n&&function(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}(n);return function(n,i,...o){let a,s=-1;if(null==n)a={type:"root",children:[]},o.unshift(i);else if(a=function(e,t){const n=e||"",r={};let i,o,a=0;for(;a<n.length;){bi.lastIndex=a;const e=bi.exec(n),t=n.slice(a,e?e.index:n.length);t&&(i?"#"===i?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:o=t,a+=t.length),e&&(i=e[0],a++)}return{type:"element",tagName:o||t||"div",properties:r,children:[]}}(n,t),a.tagName=a.tagName.toLowerCase(),r&&wi.call(r,a.tagName)&&(a.tagName=r[a.tagName]),c=a.tagName,null==(l=i)||"object"!=typeof l||Array.isArray(l)||"input"!==c&&l.type&&"string"==typeof l.type&&("children"in l&&Array.isArray(l.children)||("button"===c?!yi.has(l.type.toLowerCase()):"value"in l)))o.unshift(i);else{let t;for(t in i)wi.call(i,t)&&Ei(e,a.properties,t,i[t])}for(var l,c;++s<o.length;)xi(a.children,o[s]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function Ei(e,t,n,r){const i=hi(e,n);let o,a=-1;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;o=r}else o="boolean"==typeof r?r:"string"==typeof r?i.spaceSeparated?ki(r):i.commaSeparated?mi(r):i.commaOrSpaceSeparated?ki(mi(r).join(" ")):Si(i,i.property,r):Array.isArray(r)?r.concat():"style"===i.property?function(e){const t=[];let n;for(n in e)wi.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(o)){const e=[];for(;++a<o.length;){const t=Si(i,i.property,o[a]);e[a]=t}o=e}"className"===i.property&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[i.property]=o}}function xi(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;)xi(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?xi(e,t.children):e.push(t)}}function Si(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||qr(n)===qr(t)))return!0}return n}const Ti=vi(pi,"div"),Ci=vi(gi,"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"]),Ai=/\r?\n|\r/g,Di="http://www.w3.org/1999/xhtml",Ri="http://www.w3.org/2000/svg",_i={}.hasOwnProperty,Li=Object.prototype;function Ni(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},Oi(e,t,n),n;case"#document":case"#document-fragment":{const r="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(n={type:"root",children:Ii(e,t.childNodes),data:{quirksMode:r}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];for(Ai.lastIndex=0;Ai.test(t);)n.push(Ai.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,r=e&&e.column;if("number"==typeof t&&"number"==typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){const e=(n[t-2]||0)+r-1||0;if(e>-1&&e<n[n.length-1])return e}}}}(t),i=r.toPoint(0),o=r.toPoint(t.length);n.position={start:i,end:o}}return n}case"#documentType":return n={type:"doctype"},Oi(e,t,n),n;case"#text":return n={type:"text",value:t.value},Oi(e,t,n),n;default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===Ri?gi:pi;let r=-1;const i={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;_i.call(Li,n)||(i[n]=e.value)}const o=("svg"===e.schema.space?Ci:Ti)(t.tagName,i,Ii(e,t.childNodes));if(Oi(e,t,o),"template"===o.tagName){const n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&Pi(r.startTag),a=r&&r.endTag&&Pi(r.endTag),s=Ni(e,n.content);i&&a&&e.file&&(s.position={start:i.end,end:a.start}),o.content=s}return e.schema=n,o}(e,t),n}}function Ii(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Ni(e,t[n]);r.push(i)}return r}function Oi(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Mi(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Mi(e,t,n){const r=Pi(n);if("element"===t.type){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const r={};let i;if(n.attrs)for(i in n.attrs)_i.call(n.attrs,i)&&(r[hi(e.schema,i).property]=Pi(n.attrs[i]));const o=Pi(n.startTag),a=n.endTag?Pi(n.endTag):void 0,s={opening:o};a&&(s.closing=a),s.properties=r,t.data={position:s}}}return r}function Pi(e){const t=qi({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=qi({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function qi(e){return e.line&&e.column?e:void 0}class Fi{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Bi(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new Fi(n,r,t)}function Ui(e){return e.toLowerCase()}Fi.prototype.property={},Fi.prototype.normal={},Fi.prototype.space=null;class Hi{constructor(e,t){this.property=e,this.attribute=t}}Hi.prototype.space=null,Hi.prototype.boolean=!1,Hi.prototype.booleanish=!1,Hi.prototype.overloadedBoolean=!1,Hi.prototype.number=!1,Hi.prototype.commaSeparated=!1,Hi.prototype.spaceSeparated=!1,Hi.prototype.commaOrSpaceSeparated=!1,Hi.prototype.mustUseProperty=!1,Hi.prototype.defined=!1;let zi=0;const ji=Xi(),Vi=Xi(),Gi=Xi(),$i=Xi(),Yi=Xi(),Wi=Xi(),Qi=Xi();function Xi(){return 2**++zi}var Ki=Object.freeze({__proto__:null,boolean:ji,booleanish:Vi,commaOrSpaceSeparated:Qi,commaSeparated:Wi,number:$i,overloadedBoolean:Gi,spaceSeparated:Yi});const Zi=Object.keys(Ki);class Ji extends Hi{constructor(e,t,n,r){let i=-1;if(super(e,t),eo(this,"space",r),"number"==typeof n)for(;++i<Zi.length;){const e=Zi[i];eo(this,Zi[i],(n&Ki[e])===Ki[e])}}}function eo(e,t,n){n&&(e[t]=n)}Ji.prototype.defined=!0;const to={}.hasOwnProperty;function no(e){const t={},n={};let r;for(r in e.properties)if(to.call(e.properties,r)){const i=e.properties[r],o=new Ji(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ui(r)]=r,n[Ui(o.attribute)]=r}return new Fi(t,n,e.space)}const ro=no({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}}),io=no({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function oo(e,t){return t in e?e[t]:t}function ao(e,t){return oo(e,t.toLowerCase())}const so=no({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ao,properties:{xmlns:null,xmlnsXLink:null}}),lo=no({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Vi,ariaAutoComplete:null,ariaBusy:Vi,ariaChecked:Vi,ariaColCount:$i,ariaColIndex:$i,ariaColSpan:$i,ariaControls:Yi,ariaCurrent:null,ariaDescribedBy:Yi,ariaDetails:null,ariaDisabled:Vi,ariaDropEffect:Yi,ariaErrorMessage:null,ariaExpanded:Vi,ariaFlowTo:Yi,ariaGrabbed:Vi,ariaHasPopup:null,ariaHidden:Vi,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Yi,ariaLevel:$i,ariaLive:null,ariaModal:Vi,ariaMultiLine:Vi,ariaMultiSelectable:Vi,ariaOrientation:null,ariaOwns:Yi,ariaPlaceholder:null,ariaPosInSet:$i,ariaPressed:Vi,ariaReadOnly:Vi,ariaRelevant:null,ariaRequired:Vi,ariaRoleDescription:Yi,ariaRowCount:$i,ariaRowIndex:$i,ariaRowSpan:$i,ariaSelected:Vi,ariaSetSize:$i,ariaSort:null,ariaValueMax:$i,ariaValueMin:$i,ariaValueNow:$i,ariaValueText:null,role:null}}),co=no({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ao,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wi,acceptCharset:Yi,accessKey:Yi,action:null,allow:null,allowFullScreen:ji,allowPaymentRequest:ji,allowUserMedia:ji,alt:null,as:null,async:ji,autoCapitalize:null,autoComplete:Yi,autoFocus:ji,autoPlay:ji,blocking:Yi,capture:ji,charSet:null,checked:ji,cite:null,className:Yi,cols:$i,colSpan:null,content:null,contentEditable:Vi,controls:ji,controlsList:Yi,coords:$i|Wi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ji,defer:ji,dir:null,dirName:null,disabled:ji,download:Gi,draggable:Vi,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ji,formTarget:null,headers:Yi,height:$i,hidden:ji,high:$i,href:null,hrefLang:null,htmlFor:Yi,httpEquiv:Yi,id:null,imageSizes:null,imageSrcSet:null,inert:ji,inputMode:null,integrity:null,is:null,isMap:ji,itemId:null,itemProp:Yi,itemRef:Yi,itemScope:ji,itemType:Yi,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ji,low:$i,manifest:null,max:null,maxLength:$i,media:null,method:null,min:null,minLength:$i,multiple:ji,muted:ji,name:null,nonce:null,noModule:ji,noValidate:ji,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:ji,optimum:$i,pattern:null,ping:Yi,placeholder:null,playsInline:ji,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ji,referrerPolicy:null,rel:Yi,required:ji,reversed:ji,rows:$i,rowSpan:$i,sandbox:Yi,scope:null,scoped:ji,seamless:ji,selected:ji,shape:null,size:$i,sizes:null,slot:null,span:$i,spellCheck:Vi,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$i,step:null,style:null,tabIndex:$i,target:null,title:null,translate:null,type:null,typeMustMatch:ji,useMap:null,value:Vi,width:$i,wrap:null,align:null,aLink:null,archive:Yi,axis:null,background:null,bgColor:null,border:$i,borderColor:null,bottomMargin:$i,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ji,declare:ji,event:null,face:null,frame:null,frameBorder:null,hSpace:$i,leftMargin:$i,link:null,longDesc:null,lowSrc:null,marginHeight:$i,marginWidth:$i,noResize:ji,noHref:ji,noShade:ji,noWrap:ji,object:null,profile:null,prompt:null,rev:null,rightMargin:$i,rules:null,scheme:null,scrolling:Vi,standby:null,summary:null,text:null,topMargin:$i,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$i,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ji,disableRemotePlayback:ji,prefix:null,property:null,results:$i,security:null,unselectable:null}}),uo=no({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:oo,properties:{about:Qi,accentHeight:$i,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$i,amplitude:$i,arabicForm:null,ascent:$i,attributeName:null,attributeType:null,azimuth:$i,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$i,by:null,calcMode:null,capHeight:$i,className:Yi,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:$i,diffuseConstant:$i,direction:null,display:null,dur:null,divisor:$i,dominantBaseline:null,download:ji,dx:null,dy:null,edgeMode:null,editable:null,elevation:$i,enableBackground:null,end:null,event:null,exponent:$i,externalResourcesRequired:null,fill:null,fillOpacity:$i,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:Wi,g2:Wi,glyphName:Wi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$i,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$i,horizOriginX:$i,horizOriginY:$i,id:null,ideographic:$i,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$i,k:$i,k1:$i,k2:$i,k3:$i,k4:$i,kernelMatrix:Qi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$i,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:$i,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:$i,overlineThickness:$i,paintOrder:null,panose1:null,path:null,pathLength:$i,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Yi,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$i,pointsAtY:$i,pointsAtZ:$i,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Qi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Qi,rev:Qi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Qi,requiredFeatures:Qi,requiredFonts:Qi,requiredFormats:Qi,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:$i,specularExponent:$i,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$i,strikethroughThickness:$i,string:null,stroke:null,strokeDashArray:Qi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$i,strokeOpacity:$i,strokeWidth:null,style:null,surfaceScale:$i,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Qi,tabIndex:$i,tableValues:null,target:null,targetX:$i,targetY:$i,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Qi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$i,underlineThickness:$i,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$i,values:null,vAlphabetic:$i,vMathematical:$i,vectorEffect:null,vHanging:$i,vIdeographic:$i,version:null,vertAdvY:$i,vertOriginX:$i,vertOriginY:$i,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$i,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),ho=/^data[-\w.:]+$/i,fo=/-[a-z]/g,po=/[A-Z]/g;function go(e){return"-"+e.toLowerCase()}function mo(e){return e.charAt(1).toUpperCase()}const bo=Bi([io,ro,so,lo,co],"html"),ko=Bi([io,ro,so,lo,uo],"svg"),yo={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/"},wo={}.hasOwnProperty,vo={},Eo={}.hasOwnProperty,xo=function(e,t){const n=t||{};function r(t,...n){let i=r.invalid;const o=r.handlers;if(t&&wo.call(t,e)){const n=String(t[e]);i=wo.call(o,n)?o[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=To(e.children,n,t),Co(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=ko);const i=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&Eo.call(e.properties,o)){const t=So(r,o,e.properties[o]);t&&i.push(t)}const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:yo[r.space],childNodes:[],parentNode:null};return a.childNodes=To(e.children,a,r),Co(e,a),"template"===e.tagName&&e.content&&(a.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=To(e.children,n,t),Co(e,n),n}(e.content,r)),a},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Co(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Co(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Co(e,t),t}}});function So(e,t,n){const r=function(e,t){const n=Ui(t);let r=t,i=Hi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&ho.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(fo,mo);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!fo.test(e)){let n=e.replace(po,go);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Ji}return new i(r,t)}(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim());const i={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=i.name.indexOf(":");e<0?i.prefix="":(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=yo[r.space]}return i}function To(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=xo(e[r],n);o.parentNode=t,i.push(o)}return i}function Co(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 Ao=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Do=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]),Ro="�";var _o;!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"}(_o=_o||(_o={}));const Lo="[CDATA[",No="doctype",Io="script";function Oo(e){return e>=55296&&e<=57343}function Mo(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function Po(e){return e>=64976&&e<=65007||Do.has(e)}var qo,Fo,Bo,Uo,Ho,zo,jo;!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"}(qo=qo||(qo={}));class Vo{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:r}=this;return{code:e,startLine:t,endLine:t,startCol:n,endCol:n,startOffset:r,endOffset:r}}_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,_o.EOF;return this._err(qo.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,_o.EOF;const n=this.html.charCodeAt(t);return n===_o.CARRIAGE_RETURN?_o.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,_o.EOF;let e=this.html.charCodeAt(this.pos);return e===_o.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,_o.LINE_FEED):e===_o.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Oo(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===_o.LINE_FEED||e===_o.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){Mo(e)?this._err(qo.controlCharacterInInputStream):Po(e)&&this._err(qo.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function Go(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"}(Fo=Fo||(Fo={})),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/"}(Bo=Bo||(Bo={})),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"}(Uo=Uo||(Uo={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(Ho=Ho||(Ho={})),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"}(zo=zo||(zo={})),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"}(jo=jo||(jo={}));const $o=new Map([[zo.A,jo.A],[zo.ADDRESS,jo.ADDRESS],[zo.ANNOTATION_XML,jo.ANNOTATION_XML],[zo.APPLET,jo.APPLET],[zo.AREA,jo.AREA],[zo.ARTICLE,jo.ARTICLE],[zo.ASIDE,jo.ASIDE],[zo.B,jo.B],[zo.BASE,jo.BASE],[zo.BASEFONT,jo.BASEFONT],[zo.BGSOUND,jo.BGSOUND],[zo.BIG,jo.BIG],[zo.BLOCKQUOTE,jo.BLOCKQUOTE],[zo.BODY,jo.BODY],[zo.BR,jo.BR],[zo.BUTTON,jo.BUTTON],[zo.CAPTION,jo.CAPTION],[zo.CENTER,jo.CENTER],[zo.CODE,jo.CODE],[zo.COL,jo.COL],[zo.COLGROUP,jo.COLGROUP],[zo.DD,jo.DD],[zo.DESC,jo.DESC],[zo.DETAILS,jo.DETAILS],[zo.DIALOG,jo.DIALOG],[zo.DIR,jo.DIR],[zo.DIV,jo.DIV],[zo.DL,jo.DL],[zo.DT,jo.DT],[zo.EM,jo.EM],[zo.EMBED,jo.EMBED],[zo.FIELDSET,jo.FIELDSET],[zo.FIGCAPTION,jo.FIGCAPTION],[zo.FIGURE,jo.FIGURE],[zo.FONT,jo.FONT],[zo.FOOTER,jo.FOOTER],[zo.FOREIGN_OBJECT,jo.FOREIGN_OBJECT],[zo.FORM,jo.FORM],[zo.FRAME,jo.FRAME],[zo.FRAMESET,jo.FRAMESET],[zo.H1,jo.H1],[zo.H2,jo.H2],[zo.H3,jo.H3],[zo.H4,jo.H4],[zo.H5,jo.H5],[zo.H6,jo.H6],[zo.HEAD,jo.HEAD],[zo.HEADER,jo.HEADER],[zo.HGROUP,jo.HGROUP],[zo.HR,jo.HR],[zo.HTML,jo.HTML],[zo.I,jo.I],[zo.IMG,jo.IMG],[zo.IMAGE,jo.IMAGE],[zo.INPUT,jo.INPUT],[zo.IFRAME,jo.IFRAME],[zo.KEYGEN,jo.KEYGEN],[zo.LABEL,jo.LABEL],[zo.LI,jo.LI],[zo.LINK,jo.LINK],[zo.LISTING,jo.LISTING],[zo.MAIN,jo.MAIN],[zo.MALIGNMARK,jo.MALIGNMARK],[zo.MARQUEE,jo.MARQUEE],[zo.MATH,jo.MATH],[zo.MENU,jo.MENU],[zo.META,jo.META],[zo.MGLYPH,jo.MGLYPH],[zo.MI,jo.MI],[zo.MO,jo.MO],[zo.MN,jo.MN],[zo.MS,jo.MS],[zo.MTEXT,jo.MTEXT],[zo.NAV,jo.NAV],[zo.NOBR,jo.NOBR],[zo.NOFRAMES,jo.NOFRAMES],[zo.NOEMBED,jo.NOEMBED],[zo.NOSCRIPT,jo.NOSCRIPT],[zo.OBJECT,jo.OBJECT],[zo.OL,jo.OL],[zo.OPTGROUP,jo.OPTGROUP],[zo.OPTION,jo.OPTION],[zo.P,jo.P],[zo.PARAM,jo.PARAM],[zo.PLAINTEXT,jo.PLAINTEXT],[zo.PRE,jo.PRE],[zo.RB,jo.RB],[zo.RP,jo.RP],[zo.RT,jo.RT],[zo.RTC,jo.RTC],[zo.RUBY,jo.RUBY],[zo.S,jo.S],[zo.SCRIPT,jo.SCRIPT],[zo.SECTION,jo.SECTION],[zo.SELECT,jo.SELECT],[zo.SOURCE,jo.SOURCE],[zo.SMALL,jo.SMALL],[zo.SPAN,jo.SPAN],[zo.STRIKE,jo.STRIKE],[zo.STRONG,jo.STRONG],[zo.STYLE,jo.STYLE],[zo.SUB,jo.SUB],[zo.SUMMARY,jo.SUMMARY],[zo.SUP,jo.SUP],[zo.TABLE,jo.TABLE],[zo.TBODY,jo.TBODY],[zo.TEMPLATE,jo.TEMPLATE],[zo.TEXTAREA,jo.TEXTAREA],[zo.TFOOT,jo.TFOOT],[zo.TD,jo.TD],[zo.TH,jo.TH],[zo.THEAD,jo.THEAD],[zo.TITLE,jo.TITLE],[zo.TR,jo.TR],[zo.TRACK,jo.TRACK],[zo.TT,jo.TT],[zo.U,jo.U],[zo.UL,jo.UL],[zo.SVG,jo.SVG],[zo.VAR,jo.VAR],[zo.WBR,jo.WBR],[zo.XMP,jo.XMP]]);function Yo(e){var t;return null!==(t=$o.get(e))&&void 0!==t?t:jo.UNKNOWN}const Wo=jo,Qo={[Bo.HTML]:new Set([Wo.ADDRESS,Wo.APPLET,Wo.AREA,Wo.ARTICLE,Wo.ASIDE,Wo.BASE,Wo.BASEFONT,Wo.BGSOUND,Wo.BLOCKQUOTE,Wo.BODY,Wo.BR,Wo.BUTTON,Wo.CAPTION,Wo.CENTER,Wo.COL,Wo.COLGROUP,Wo.DD,Wo.DETAILS,Wo.DIR,Wo.DIV,Wo.DL,Wo.DT,Wo.EMBED,Wo.FIELDSET,Wo.FIGCAPTION,Wo.FIGURE,Wo.FOOTER,Wo.FORM,Wo.FRAME,Wo.FRAMESET,Wo.H1,Wo.H2,Wo.H3,Wo.H4,Wo.H5,Wo.H6,Wo.HEAD,Wo.HEADER,Wo.HGROUP,Wo.HR,Wo.HTML,Wo.IFRAME,Wo.IMG,Wo.INPUT,Wo.LI,Wo.LINK,Wo.LISTING,Wo.MAIN,Wo.MARQUEE,Wo.MENU,Wo.META,Wo.NAV,Wo.NOEMBED,Wo.NOFRAMES,Wo.NOSCRIPT,Wo.OBJECT,Wo.OL,Wo.P,Wo.PARAM,Wo.PLAINTEXT,Wo.PRE,Wo.SCRIPT,Wo.SECTION,Wo.SELECT,Wo.SOURCE,Wo.STYLE,Wo.SUMMARY,Wo.TABLE,Wo.TBODY,Wo.TD,Wo.TEMPLATE,Wo.TEXTAREA,Wo.TFOOT,Wo.TH,Wo.THEAD,Wo.TITLE,Wo.TR,Wo.TRACK,Wo.UL,Wo.WBR,Wo.XMP]),[Bo.MATHML]:new Set([Wo.MI,Wo.MO,Wo.MN,Wo.MS,Wo.MTEXT,Wo.ANNOTATION_XML]),[Bo.SVG]:new Set([Wo.TITLE,Wo.FOREIGN_OBJECT,Wo.DESC]),[Bo.XLINK]:new Set,[Bo.XML]:new Set,[Bo.XMLNS]:new Set};function Xo(e){return e===Wo.H1||e===Wo.H2||e===Wo.H3||e===Wo.H4||e===Wo.H5||e===Wo.H6}const Ko=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 Zo;!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"}(Zo||(Zo={}));const Jo={DATA:Zo.DATA,RCDATA:Zo.RCDATA,RAWTEXT:Zo.RAWTEXT,SCRIPT_DATA:Zo.SCRIPT_DATA,PLAINTEXT:Zo.PLAINTEXT};function ea(e){return e>=_o.DIGIT_0&&e<=_o.DIGIT_9}function ta(e){return e>=_o.LATIN_CAPITAL_A&&e<=_o.LATIN_CAPITAL_Z}function na(e){return function(e){return e>=_o.LATIN_SMALL_A&&e<=_o.LATIN_SMALL_Z}(e)||ta(e)}function ra(e){return na(e)||ea(e)}function ia(e){return e>=_o.LATIN_CAPITAL_A&&e<=_o.LATIN_CAPITAL_F}function oa(e){return e>=_o.LATIN_SMALL_A&&e<=_o.LATIN_SMALL_F}function aa(e){return e+32}function sa(e){return e===_o.SPACE||e===_o.LINE_FEED||e===_o.TABULATION||e===_o.FORM_FEED}function la(e){return sa(e)||e===_o.SOLIDUS||e===_o.GREATER_THAN_SIGN}class ca{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=Zo.DATA,this.returnState=Zo.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Vo(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:Fo.START_TAG,tagName:"",tagID:jo.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Fo.END_TAG,tagName:"",tagID:jo.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:Fo.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:Fo.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===Go(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(qo.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=Yo(e.tagName),e.type===Fo.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(qo.endTagWithAttributes),e.selfClosing&&this._err(qo.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 Fo.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case Fo.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case Fo.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:Fo.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=sa(e)?Fo.WHITESPACE_CHARACTER:e===_o.NULL?Fo.NULL_CHARACTER:Fo.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(Fo.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let o=0,c=s[0];o>=0&&(o=a(s,c,o+1,e),!(o<0));e=this._consume()){n+=1,c=s[o];const a=c&l.VALUE_LENGTH;if(a){const c=(a>>14)-1;if(e!==_o.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((i=this.preprocessor.peek(1))===_o.EQUALS_SIGN||ra(i))?(t=[_o.AMPERSAND],o+=c):(t=0===c?[s[o]&~l.VALUE_LENGTH]:1===c?[s[++o]]:[s[++o],s[++o]],n=0,r=e!==_o.SEMICOLON),0===c){this._consume();break}}}var i;return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(qo.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===Zo.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Zo.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Zo.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Zo.DATA:this._stateData(e);break;case Zo.RCDATA:this._stateRcdata(e);break;case Zo.RAWTEXT:this._stateRawtext(e);break;case Zo.SCRIPT_DATA:this._stateScriptData(e);break;case Zo.PLAINTEXT:this._statePlaintext(e);break;case Zo.TAG_OPEN:this._stateTagOpen(e);break;case Zo.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Zo.TAG_NAME:this._stateTagName(e);break;case Zo.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Zo.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Zo.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Zo.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Zo.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Zo.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Zo.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Zo.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Zo.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Zo.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Zo.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Zo.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Zo.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Zo.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Zo.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Zo.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Zo.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Zo.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Zo.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Zo.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Zo.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Zo.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Zo.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Zo.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Zo.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Zo.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Zo.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Zo.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Zo.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Zo.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Zo.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Zo.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Zo.BOGUS_COMMENT:this._stateBogusComment(e);break;case Zo.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Zo.COMMENT_START:this._stateCommentStart(e);break;case Zo.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Zo.COMMENT:this._stateComment(e);break;case Zo.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Zo.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Zo.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Zo.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Zo.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Zo.COMMENT_END:this._stateCommentEnd(e);break;case Zo.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Zo.DOCTYPE:this._stateDoctype(e);break;case Zo.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Zo.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Zo.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Zo.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Zo.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Zo.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Zo.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Zo.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Zo.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Zo.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Zo.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Zo.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Zo.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Zo.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Zo.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Zo.CDATA_SECTION:this._stateCdataSection(e);break;case Zo.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Zo.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Zo.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case Zo.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case Zo.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case Zo.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case Zo.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case Zo.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case Zo.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case Zo.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case _o.LESS_THAN_SIGN:this.state=Zo.TAG_OPEN;break;case _o.AMPERSAND:this.returnState=Zo.DATA,this.state=Zo.CHARACTER_REFERENCE;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this._emitCodePoint(e);break;case _o.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case _o.AMPERSAND:this.returnState=Zo.RCDATA,this.state=Zo.CHARACTER_REFERENCE;break;case _o.LESS_THAN_SIGN:this.state=Zo.RCDATA_LESS_THAN_SIGN;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this._emitChars(Ro);break;case _o.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case _o.LESS_THAN_SIGN:this.state=Zo.RAWTEXT_LESS_THAN_SIGN;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this._emitChars(Ro);break;case _o.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case _o.LESS_THAN_SIGN:this.state=Zo.SCRIPT_DATA_LESS_THAN_SIGN;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this._emitChars(Ro);break;case _o.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case _o.NULL:this._err(qo.unexpectedNullCharacter),this._emitChars(Ro);break;case _o.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(na(e))this._createStartTagToken(),this.state=Zo.TAG_NAME,this._stateTagName(e);else switch(e){case _o.EXCLAMATION_MARK:this.state=Zo.MARKUP_DECLARATION_OPEN;break;case _o.SOLIDUS:this.state=Zo.END_TAG_OPEN;break;case _o.QUESTION_MARK:this._err(qo.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Zo.BOGUS_COMMENT,this._stateBogusComment(e);break;case _o.EOF:this._err(qo.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(qo.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Zo.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(na(e))this._createEndTagToken(),this.state=Zo.TAG_NAME,this._stateTagName(e);else switch(e){case _o.GREATER_THAN_SIGN:this._err(qo.missingEndTagName),this.state=Zo.DATA;break;case _o.EOF:this._err(qo.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(qo.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Zo.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:this.state=Zo.BEFORE_ATTRIBUTE_NAME;break;case _o.SOLIDUS:this.state=Zo.SELF_CLOSING_START_TAG;break;case _o.GREATER_THAN_SIGN:this.state=Zo.DATA,this.emitCurrentTagToken();break;case _o.NULL:this._err(qo.unexpectedNullCharacter),t.tagName+=Ro;break;case _o.EOF:this._err(qo.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(ta(e)?aa(e):e)}}_stateRcdataLessThanSign(e){e===_o.SOLIDUS?this.state=Zo.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Zo.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){na(e)?(this.state=Zo.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=Zo.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 _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Zo.BEFORE_ATTRIBUTE_NAME,!1;case _o.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Zo.SELF_CLOSING_START_TAG,!1;case _o.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Zo.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Zo.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===_o.SOLIDUS?this.state=Zo.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Zo.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){na(e)?(this.state=Zo.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=Zo.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Zo.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case _o.SOLIDUS:this.state=Zo.SCRIPT_DATA_END_TAG_OPEN;break;case _o.EXCLAMATION_MARK:this.state=Zo.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=Zo.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){na(e)?(this.state=Zo.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=Zo.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Zo.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===_o.HYPHEN_MINUS?(this.state=Zo.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Zo.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===_o.HYPHEN_MINUS?(this.state=Zo.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Zo.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case _o.HYPHEN_MINUS:this.state=Zo.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case _o.LESS_THAN_SIGN:this.state=Zo.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this._emitChars(Ro);break;case _o.EOF:this._err(qo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case _o.HYPHEN_MINUS:this.state=Zo.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case _o.LESS_THAN_SIGN:this.state=Zo.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this.state=Zo.SCRIPT_DATA_ESCAPED,this._emitChars(Ro);break;case _o.EOF:this._err(qo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Zo.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case _o.HYPHEN_MINUS:this._emitChars("-");break;case _o.LESS_THAN_SIGN:this.state=Zo.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case _o.GREATER_THAN_SIGN:this.state=Zo.SCRIPT_DATA,this._emitChars(">");break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this.state=Zo.SCRIPT_DATA_ESCAPED,this._emitChars(Ro);break;case _o.EOF:this._err(qo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Zo.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===_o.SOLIDUS?this.state=Zo.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:na(e)?(this._emitChars("<"),this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=Zo.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){na(e)?(this.state=Zo.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=Zo.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Zo.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(Io,!1)&&la(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Zo.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case _o.HYPHEN_MINUS:this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case _o.LESS_THAN_SIGN:this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this._emitChars(Ro);break;case _o.EOF:this._err(qo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case _o.HYPHEN_MINUS:this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case _o.LESS_THAN_SIGN:this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ro);break;case _o.EOF:this._err(qo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case _o.HYPHEN_MINUS:this._emitChars("-");break;case _o.LESS_THAN_SIGN:this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case _o.GREATER_THAN_SIGN:this.state=Zo.SCRIPT_DATA,this._emitChars(">");break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ro);break;case _o.EOF:this._err(qo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===_o.SOLIDUS?(this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(Io,!1)&&la(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Zo.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Zo.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:break;case _o.SOLIDUS:case _o.GREATER_THAN_SIGN:case _o.EOF:this.state=Zo.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case _o.EQUALS_SIGN:this._err(qo.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Zo.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=Zo.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:case _o.SOLIDUS:case _o.GREATER_THAN_SIGN:case _o.EOF:this._leaveAttrName(),this.state=Zo.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case _o.EQUALS_SIGN:this._leaveAttrName(),this.state=Zo.BEFORE_ATTRIBUTE_VALUE;break;case _o.QUOTATION_MARK:case _o.APOSTROPHE:case _o.LESS_THAN_SIGN:this._err(qo.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this.currentAttr.name+=Ro;break;default:this.currentAttr.name+=String.fromCodePoint(ta(e)?aa(e):e)}}_stateAfterAttributeName(e){switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:break;case _o.SOLIDUS:this.state=Zo.SELF_CLOSING_START_TAG;break;case _o.EQUALS_SIGN:this.state=Zo.BEFORE_ATTRIBUTE_VALUE;break;case _o.GREATER_THAN_SIGN:this.state=Zo.DATA,this.emitCurrentTagToken();break;case _o.EOF:this._err(qo.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=Zo.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:break;case _o.QUOTATION_MARK:this.state=Zo.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case _o.APOSTROPHE:this.state=Zo.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case _o.GREATER_THAN_SIGN:this._err(qo.missingAttributeValue),this.state=Zo.DATA,this.emitCurrentTagToken();break;default:this.state=Zo.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case _o.QUOTATION_MARK:this.state=Zo.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case _o.AMPERSAND:this.returnState=Zo.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=Zo.CHARACTER_REFERENCE;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this.currentAttr.value+=Ro;break;case _o.EOF:this._err(qo.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case _o.APOSTROPHE:this.state=Zo.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case _o.AMPERSAND:this.returnState=Zo.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=Zo.CHARACTER_REFERENCE;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this.currentAttr.value+=Ro;break;case _o.EOF:this._err(qo.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:this._leaveAttrValue(),this.state=Zo.BEFORE_ATTRIBUTE_NAME;break;case _o.AMPERSAND:this.returnState=Zo.ATTRIBUTE_VALUE_UNQUOTED,this.state=Zo.CHARACTER_REFERENCE;break;case _o.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Zo.DATA,this.emitCurrentTagToken();break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this.currentAttr.value+=Ro;break;case _o.QUOTATION_MARK:case _o.APOSTROPHE:case _o.LESS_THAN_SIGN:case _o.EQUALS_SIGN:case _o.GRAVE_ACCENT:this._err(qo.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case _o.EOF:this._err(qo.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:this._leaveAttrValue(),this.state=Zo.BEFORE_ATTRIBUTE_NAME;break;case _o.SOLIDUS:this._leaveAttrValue(),this.state=Zo.SELF_CLOSING_START_TAG;break;case _o.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Zo.DATA,this.emitCurrentTagToken();break;case _o.EOF:this._err(qo.eofInTag),this._emitEOFToken();break;default:this._err(qo.missingWhitespaceBetweenAttributes),this.state=Zo.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case _o.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=Zo.DATA,this.emitCurrentTagToken();break;case _o.EOF:this._err(qo.eofInTag),this._emitEOFToken();break;default:this._err(qo.unexpectedSolidusInTag),this.state=Zo.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case _o.GREATER_THAN_SIGN:this.state=Zo.DATA,this.emitCurrentComment(t);break;case _o.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case _o.NULL:this._err(qo.unexpectedNullCharacter),t.data+=Ro;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=Zo.COMMENT_START):this._consumeSequenceIfMatch(No,!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=Zo.DOCTYPE):this._consumeSequenceIfMatch(Lo,!0)?this.inForeignNode?this.state=Zo.CDATA_SECTION:(this._err(qo.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=Zo.BOGUS_COMMENT):this._ensureHibernation()||(this._err(qo.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Zo.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case _o.HYPHEN_MINUS:this.state=Zo.COMMENT_START_DASH;break;case _o.GREATER_THAN_SIGN:this._err(qo.abruptClosingOfEmptyComment),this.state=Zo.DATA,this.emitCurrentComment(this.currentToken);break;default:this.state=Zo.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case _o.HYPHEN_MINUS:this.state=Zo.COMMENT_END;break;case _o.GREATER_THAN_SIGN:this._err(qo.abruptClosingOfEmptyComment),this.state=Zo.DATA,this.emitCurrentComment(t);break;case _o.EOF:this._err(qo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Zo.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case _o.HYPHEN_MINUS:this.state=Zo.COMMENT_END_DASH;break;case _o.LESS_THAN_SIGN:t.data+="<",this.state=Zo.COMMENT_LESS_THAN_SIGN;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),t.data+=Ro;break;case _o.EOF:this._err(qo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case _o.EXCLAMATION_MARK:t.data+="!",this.state=Zo.COMMENT_LESS_THAN_SIGN_BANG;break;case _o.LESS_THAN_SIGN:t.data+="<";break;default:this.state=Zo.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===_o.HYPHEN_MINUS?this.state=Zo.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Zo.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===_o.HYPHEN_MINUS?this.state=Zo.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Zo.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==_o.GREATER_THAN_SIGN&&e!==_o.EOF&&this._err(qo.nestedComment),this.state=Zo.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case _o.HYPHEN_MINUS:this.state=Zo.COMMENT_END;break;case _o.EOF:this._err(qo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Zo.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case _o.GREATER_THAN_SIGN:this.state=Zo.DATA,this.emitCurrentComment(t);break;case _o.EXCLAMATION_MARK:this.state=Zo.COMMENT_END_BANG;break;case _o.HYPHEN_MINUS:t.data+="-";break;case _o.EOF:this._err(qo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=Zo.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case _o.HYPHEN_MINUS:t.data+="--!",this.state=Zo.COMMENT_END_DASH;break;case _o.GREATER_THAN_SIGN:this._err(qo.incorrectlyClosedComment),this.state=Zo.DATA,this.emitCurrentComment(t);break;case _o.EOF:this._err(qo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=Zo.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:this.state=Zo.BEFORE_DOCTYPE_NAME;break;case _o.GREATER_THAN_SIGN:this.state=Zo.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case _o.EOF:{this._err(qo.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(qo.missingWhitespaceBeforeDoctypeName),this.state=Zo.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ta(e))this._createDoctypeToken(String.fromCharCode(aa(e))),this.state=Zo.DOCTYPE_NAME;else switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:break;case _o.NULL:this._err(qo.unexpectedNullCharacter),this._createDoctypeToken(Ro),this.state=Zo.DOCTYPE_NAME;break;case _o.GREATER_THAN_SIGN:{this._err(qo.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Zo.DATA;break}case _o.EOF:{this._err(qo.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=Zo.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:this.state=Zo.AFTER_DOCTYPE_NAME;break;case _o.GREATER_THAN_SIGN:this.state=Zo.DATA,this.emitCurrentDoctype(t);break;case _o.NULL:this._err(qo.unexpectedNullCharacter),t.name+=Ro;break;case _o.EOF:this._err(qo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(ta(e)?aa(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:break;case _o.GREATER_THAN_SIGN:this.state=Zo.DATA,this.emitCurrentDoctype(t);break;case _o.EOF:this._err(qo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=Zo.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=Zo.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(qo.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Zo.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:this.state=Zo.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case _o.QUOTATION_MARK:this._err(qo.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Zo.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case _o.APOSTROPHE:this._err(qo.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Zo.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case _o.GREATER_THAN_SIGN:this._err(qo.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Zo.DATA,this.emitCurrentDoctype(t);break;case _o.EOF:this._err(qo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(qo.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Zo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:break;case _o.QUOTATION_MARK:t.publicId="",this.state=Zo.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case _o.APOSTROPHE:t.publicId="",this.state=Zo.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case _o.GREATER_THAN_SIGN:this._err(qo.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Zo.DATA,this.emitCurrentDoctype(t);break;case _o.EOF:this._err(qo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(qo.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Zo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case _o.QUOTATION_MARK:this.state=Zo.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),t.publicId+=Ro;break;case _o.GREATER_THAN_SIGN:this._err(qo.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Zo.DATA;break;case _o.EOF:this._err(qo.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 _o.APOSTROPHE:this.state=Zo.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),t.publicId+=Ro;break;case _o.GREATER_THAN_SIGN:this._err(qo.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Zo.DATA;break;case _o.EOF:this._err(qo.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 _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:this.state=Zo.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case _o.GREATER_THAN_SIGN:this.state=Zo.DATA,this.emitCurrentDoctype(t);break;case _o.QUOTATION_MARK:this._err(qo.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Zo.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case _o.APOSTROPHE:this._err(qo.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Zo.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case _o.EOF:this._err(qo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(qo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Zo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:break;case _o.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Zo.DATA;break;case _o.QUOTATION_MARK:t.systemId="",this.state=Zo.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case _o.APOSTROPHE:t.systemId="",this.state=Zo.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case _o.EOF:this._err(qo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(qo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Zo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:this.state=Zo.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case _o.QUOTATION_MARK:this._err(qo.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Zo.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case _o.APOSTROPHE:this._err(qo.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Zo.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case _o.GREATER_THAN_SIGN:this._err(qo.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Zo.DATA,this.emitCurrentDoctype(t);break;case _o.EOF:this._err(qo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(qo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Zo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:break;case _o.QUOTATION_MARK:t.systemId="",this.state=Zo.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case _o.APOSTROPHE:t.systemId="",this.state=Zo.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case _o.GREATER_THAN_SIGN:this._err(qo.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Zo.DATA,this.emitCurrentDoctype(t);break;case _o.EOF:this._err(qo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(qo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Zo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case _o.QUOTATION_MARK:this.state=Zo.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),t.systemId+=Ro;break;case _o.GREATER_THAN_SIGN:this._err(qo.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Zo.DATA;break;case _o.EOF:this._err(qo.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 _o.APOSTROPHE:this.state=Zo.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case _o.NULL:this._err(qo.unexpectedNullCharacter),t.systemId+=Ro;break;case _o.GREATER_THAN_SIGN:this._err(qo.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Zo.DATA;break;case _o.EOF:this._err(qo.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 _o.SPACE:case _o.LINE_FEED:case _o.TABULATION:case _o.FORM_FEED:break;case _o.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Zo.DATA;break;case _o.EOF:this._err(qo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(qo.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Zo.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case _o.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Zo.DATA;break;case _o.NULL:this._err(qo.unexpectedNullCharacter);break;case _o.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case _o.RIGHT_SQUARE_BRACKET:this.state=Zo.CDATA_SECTION_BRACKET;break;case _o.EOF:this._err(qo.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===_o.RIGHT_SQUARE_BRACKET?this.state=Zo.CDATA_SECTION_END:(this._emitChars("]"),this.state=Zo.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case _o.GREATER_THAN_SIGN:this.state=Zo.DATA;break;case _o.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=Zo.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===_o.NUMBER_SIGN?this.state=Zo.NUMERIC_CHARACTER_REFERENCE:ra(e)?(this.state=Zo.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(_o.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(_o.AMPERSAND),this.state=Zo.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(e){ra(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===_o.SEMICOLON&&this._err(qo.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,e))}_stateNumericCharacterReference(e){this.charRefCode=0,e===_o.LATIN_SMALL_X||e===_o.LATIN_CAPITAL_X?this.state=Zo.HEXADEMICAL_CHARACTER_REFERENCE_START:ea(e)?(this.state=Zo.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(qo.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(_o.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(_o.NUMBER_SIGN),this._reconsumeInState(this.returnState,e))}_stateHexademicalCharacterReferenceStart(e){!function(e){return ea(e)||ia(e)||oa(e)}(e)?(this._err(qo.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(_o.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(_o.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState):(this.state=Zo.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e))}_stateHexademicalCharacterReference(e){ia(e)?this.charRefCode=16*this.charRefCode+e-55:oa(e)?this.charRefCode=16*this.charRefCode+e-87:ea(e)?this.charRefCode=16*this.charRefCode+e-48:e===_o.SEMICOLON?this.state=Zo.NUMERIC_CHARACTER_REFERENCE_END:(this._err(qo.missingSemicolonAfterCharacterReference),this.state=Zo.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharacterReference(e){ea(e)?this.charRefCode=10*this.charRefCode+e-48:e===_o.SEMICOLON?this.state=Zo.NUMERIC_CHARACTER_REFERENCE_END:(this._err(qo.missingSemicolonAfterCharacterReference),this.state=Zo.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===_o.NULL)this._err(qo.nullCharacterReference),this.charRefCode=_o.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(qo.characterReferenceOutsideUnicodeRange),this.charRefCode=_o.REPLACEMENT_CHARACTER;else if(Oo(this.charRefCode))this._err(qo.surrogateCharacterReference),this.charRefCode=_o.REPLACEMENT_CHARACTER;else if(Po(this.charRefCode))this._err(qo.noncharacterCharacterReference);else if(Mo(this.charRefCode)||this.charRefCode===_o.CARRIAGE_RETURN){this._err(qo.controlCharacterReference);const e=Ko.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}const ua=new Set([jo.DD,jo.DT,jo.LI,jo.OPTGROUP,jo.OPTION,jo.P,jo.RB,jo.RP,jo.RT,jo.RTC]),ha=new Set([...ua,jo.CAPTION,jo.COLGROUP,jo.TBODY,jo.TD,jo.TFOOT,jo.TH,jo.THEAD,jo.TR]),fa=new Map([[jo.APPLET,Bo.HTML],[jo.CAPTION,Bo.HTML],[jo.HTML,Bo.HTML],[jo.MARQUEE,Bo.HTML],[jo.OBJECT,Bo.HTML],[jo.TABLE,Bo.HTML],[jo.TD,Bo.HTML],[jo.TEMPLATE,Bo.HTML],[jo.TH,Bo.HTML],[jo.ANNOTATION_XML,Bo.MATHML],[jo.MI,Bo.MATHML],[jo.MN,Bo.MATHML],[jo.MO,Bo.MATHML],[jo.MS,Bo.MATHML],[jo.MTEXT,Bo.MATHML],[jo.DESC,Bo.SVG],[jo.FOREIGN_OBJECT,Bo.SVG],[jo.TITLE,Bo.SVG]]),da=[jo.H1,jo.H2,jo.H3,jo.H4,jo.H5,jo.H6],pa=[jo.TR,jo.TEMPLATE,jo.HTML],ga=[jo.TBODY,jo.TFOOT,jo.THEAD,jo.TEMPLATE,jo.HTML],ma=[jo.TABLE,jo.TEMPLATE,jo.HTML],ba=[jo.TD,jo.TH];class ka{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=jo.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===jo.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Bo.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 r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===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])!==Bo.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(da,Bo.HTML)}popUntilTableCellPopped(){this.popUntilPopped(ba,Bo.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(ma,Bo.HTML)}clearBackToTableBodyContext(){this.clearBackTo(ga,Bo.HTML)}clearBackToTableRowContext(){this.clearBackTo(pa,Bo.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]===jo.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]===jo.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===Bo.HTML)return!0;if(fa.get(n)===r)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(Xo(t)&&n===Bo.HTML)return!0;if(fa.get(t)===n)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===Bo.HTML)return!0;if((n===jo.UL||n===jo.OL)&&r===Bo.HTML||fa.get(n)===r)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===Bo.HTML)return!0;if(n===jo.BUTTON&&r===Bo.HTML||fa.get(n)===r)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])===Bo.HTML){if(n===e)return!0;if(n===jo.TABLE||n===jo.TEMPLATE||n===jo.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])===Bo.HTML){if(t===jo.TBODY||t===jo.THEAD||t===jo.TFOOT)return!0;if(t===jo.TABLE||t===jo.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])===Bo.HTML){if(n===e)return!0;if(n!==jo.OPTION&&n!==jo.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;ua.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ha.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&ha.has(this.currentTagId);)this.pop()}}var ya;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(ya=ya||(ya={}));const wa={type:ya.Marker};class va{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,i=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){const t=this.entries[e];if(t.type===ya.Marker)break;const{element:a}=t;if(this.treeAdapter.getTagName(a)===i&&this.treeAdapter.getNamespaceURI(a)===o){const t=this.treeAdapter.getAttrList(a);t.length===r&&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 r=new Map(t.map((e=>[e.name,e.value])));let i=0;for(let e=0;e<n.length;e++){const t=n[e];t.attrs.every((e=>r.get(e.name)===e.value))&&(i+=1,i>=3&&this.entries.splice(t.idx,1))}}insertMarker(){this.entries.unshift(wa)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:ya.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:ya.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===ya.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===ya.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===ya.Element&&t.element===e))}}function Ea(e){return{nodeName:"#text",value:e,parentNode:null}}const xa={createDocument:()=>({nodeName:"#document",mode:Ho.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 r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const i=e.childNodes.find((e=>"#documentType"===e.nodeName));i?(i.name=t,i.publicId=n,i.systemId=r):xa.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:r,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(xa.isTextNode(n))return void(n.value+=t)}xa.appendChild(e,Ea(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&xa.isTextNode(r)?r.value+=t:xa.insertBefore(e,Ea(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map((e=>e.name)));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},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}}},Sa="html",Ta=["+//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=[...Ta,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Aa=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Da=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Ra=[...Da,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function _a(e,t){return t.some((t=>e.startsWith(t)))}const La=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]))),Na=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Bo.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Bo.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Bo.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Bo.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Bo.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Bo.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Bo.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Bo.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Bo.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Bo.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Bo.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Bo.XMLNS}]]),Ia=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]))),Oa=new Set([jo.B,jo.BIG,jo.BLOCKQUOTE,jo.BODY,jo.BR,jo.CENTER,jo.CODE,jo.DD,jo.DIV,jo.DL,jo.DT,jo.EM,jo.EMBED,jo.H1,jo.H2,jo.H3,jo.H4,jo.H5,jo.H6,jo.HEAD,jo.HR,jo.I,jo.IMG,jo.LI,jo.LISTING,jo.MENU,jo.META,jo.NOBR,jo.OL,jo.P,jo.PRE,jo.RUBY,jo.S,jo.SMALL,jo.SPAN,jo.STRONG,jo.STRIKE,jo.SUB,jo.SUP,jo.TABLE,jo.TT,jo.U,jo.UL,jo.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 Pa(e){for(let t=0;t<e.attrs.length;t++){const n=La.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=Na.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 Fa;!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"}(Fa||(Fa={}));const Ba={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ua=new Set([jo.TABLE,jo.TBODY,jo.TFOOT,jo.THEAD,jo.TR]),Ha={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:xa,onParseError:null};class za{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=Fa.INITIAL,this.originalInsertionMode=Fa.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={...Ha,...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 ca(this.options,this),this.activeFormattingElements=new va(this.treeAdapter),this.fragmentContextID=n?Yo(this.treeAdapter.getTagName(n)):jo.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new ka(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={...Ha,...t};null!=e||(e=n.treeAdapter.createElement(zo.TEMPLATE,Bo.HTML,[]));const r=n.treeAdapter.createElement("documentmock",Bo.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===jo.TEMPLATE&&i.tmplInsertionModeStack.unshift(Fa.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const i=null!==(r=e.location)&&void 0!==r?r:Ba;this.onParseError({code:t,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:n?i.startLine:i.endLine,endCol:n?i.startCol:i.endCol,endOffset:n?i.startOffset:i.endOffset})}onItemPush(e,t,n){var r,i;null===(i=(r=this.treeAdapter).onItemPush)||void 0===i||i.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.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)===Bo.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Bo.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Fa.TEXT}switchToPlaintextParsing(){this.insertionMode=Fa.TEXT,this.originalInsertionMode=Fa.IN_BODY,this.tokenizer.state=Jo.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)===zo.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Bo.HTML)switch(this.fragmentContextID){case jo.TITLE:case jo.TEXTAREA:this.tokenizer.state=Jo.RCDATA;break;case jo.STYLE:case jo.XMP:case jo.IFRAME:case jo.NOEMBED:case jo.NOFRAMES:case jo.NOSCRIPT:this.tokenizer.state=Jo.RAWTEXT;break;case jo.SCRIPT:this.tokenizer.state=Jo.SCRIPT_DATA;break;case jo.PLAINTEXT:this.tokenizer.state=Jo.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,Bo.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Bo.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(zo.HTML,Bo.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,jo.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 r=this.treeAdapter.getChildNodes(t),i=n?r.lastIndexOf(n):r.length,o=r[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,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,r=this.treeAdapter.getTagName(e),i=t.type===Fo.END_TAG&&r===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,i)}}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!==jo.SVG||this.treeAdapter.getTagName(t)!==zo.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Bo.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===jo.MGLYPH||e.tagID===jo.MALIGNMARK)&&!this._isIntegrationPoint(n,t,Bo.HTML))}_processToken(e){switch(e.type){case Fo.CHARACTER:this.onCharacter(e);break;case Fo.NULL_CHARACTER:this.onNullCharacter(e);break;case Fo.COMMENT:this.onComment(e);break;case Fo.DOCTYPE:this.onDoctype(e);break;case Fo.START_TAG:this._processStartTag(e);break;case Fo.END_TAG:this.onEndTag(e);break;case Fo.EOF:this.onEof(e);break;case Fo.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return function(e,t,n,r){return(!r||r===Bo.HTML)&&function(e,t,n){if(t===Bo.MATHML&&e===jo.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===Uo.ENCODING){const t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===Bo.SVG&&(e===jo.FOREIGN_OBJECT||e===jo.DESC||e===jo.TITLE)}(e,t,n)||(!r||r===Bo.MATHML)&&function(e,t){return t===Bo.MATHML&&(e===jo.MI||e===jo.MO||e===jo.MN||e===jo.MS||e===jo.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===ya.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=Fa.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(jo.P),this.openElements.popUntilTagNamePopped(jo.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case jo.TR:return void(this.insertionMode=Fa.IN_ROW);case jo.TBODY:case jo.THEAD:case jo.TFOOT:return void(this.insertionMode=Fa.IN_TABLE_BODY);case jo.CAPTION:return void(this.insertionMode=Fa.IN_CAPTION);case jo.COLGROUP:return void(this.insertionMode=Fa.IN_COLUMN_GROUP);case jo.TABLE:return void(this.insertionMode=Fa.IN_TABLE);case jo.BODY:return void(this.insertionMode=Fa.IN_BODY);case jo.FRAMESET:return void(this.insertionMode=Fa.IN_FRAMESET);case jo.SELECT:return void this._resetInsertionModeForSelect(e);case jo.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case jo.HTML:return void(this.insertionMode=this.headElement?Fa.AFTER_HEAD:Fa.BEFORE_HEAD);case jo.TD:case jo.TH:if(e>0)return void(this.insertionMode=Fa.IN_CELL);break;case jo.HEAD:if(e>0)return void(this.insertionMode=Fa.IN_HEAD)}this.insertionMode=Fa.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===jo.TEMPLATE)break;if(e===jo.TABLE)return void(this.insertionMode=Fa.IN_SELECT_IN_TABLE)}this.insertionMode=Fa.IN_SELECT}_isElementCausesFosterParenting(e){return Ua.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 jo.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Bo.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case jo.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 Qo[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 Fa.INITIAL:Za(this,e);break;case Fa.BEFORE_HTML:Ja(this,e);break;case Fa.BEFORE_HEAD:es(this,e);break;case Fa.IN_HEAD:rs(this,e);break;case Fa.IN_HEAD_NO_SCRIPT:is(this,e);break;case Fa.AFTER_HEAD:os(this,e);break;case Fa.IN_BODY:case Fa.IN_CAPTION:case Fa.IN_CELL:case Fa.IN_TEMPLATE:ls(this,e);break;case Fa.TEXT:case Fa.IN_SELECT:case Fa.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Fa.IN_TABLE:case Fa.IN_TABLE_BODY:case Fa.IN_ROW:bs(this,e);break;case Fa.IN_TABLE_TEXT:Es(this,e);break;case Fa.IN_COLUMN_GROUP:Cs(this,e);break;case Fa.AFTER_BODY:Ms(this,e);break;case Fa.AFTER_AFTER_BODY:Ps(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=Ro,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Fa.INITIAL:Za(this,e);break;case Fa.BEFORE_HTML:Ja(this,e);break;case Fa.BEFORE_HEAD:es(this,e);break;case Fa.IN_HEAD:rs(this,e);break;case Fa.IN_HEAD_NO_SCRIPT:is(this,e);break;case Fa.AFTER_HEAD:os(this,e);break;case Fa.TEXT:this._insertCharacters(e);break;case Fa.IN_TABLE:case Fa.IN_TABLE_BODY:case Fa.IN_ROW:bs(this,e);break;case Fa.IN_COLUMN_GROUP:Cs(this,e);break;case Fa.AFTER_BODY:Ms(this,e);break;case Fa.AFTER_AFTER_BODY:Ps(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)Xa(this,e);else switch(this.insertionMode){case Fa.INITIAL:case Fa.BEFORE_HTML:case Fa.BEFORE_HEAD:case Fa.IN_HEAD:case Fa.IN_HEAD_NO_SCRIPT:case Fa.AFTER_HEAD:case Fa.IN_BODY:case Fa.IN_TABLE:case Fa.IN_CAPTION:case Fa.IN_COLUMN_GROUP:case Fa.IN_TABLE_BODY:case Fa.IN_ROW:case Fa.IN_CELL:case Fa.IN_SELECT:case Fa.IN_SELECT_IN_TABLE:case Fa.IN_TEMPLATE:case Fa.IN_FRAMESET:case Fa.AFTER_FRAMESET:Xa(this,e);break;case Fa.IN_TABLE_TEXT:xs(this,e);break;case Fa.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Fa.AFTER_AFTER_BODY:case Fa.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Fa.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?Ho.QUIRKS:function(e){if(e.name!==Sa)return Ho.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Ho.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),Aa.has(n))return Ho.QUIRKS;let e=null===t?Ca:Ta;if(_a(n,e))return Ho.QUIRKS;if(e=null===t?Da:Ra,_a(n,e))return Ho.LIMITED_QUIRKS}return Ho.NO_QUIRKS}(t);(function(e){return e.name===Sa&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,qo.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Fa.BEFORE_HTML}(this,e);break;case Fa.BEFORE_HEAD:case Fa.IN_HEAD:case Fa.IN_HEAD_NO_SCRIPT:case Fa.AFTER_HEAD:this._err(e,qo.misplacedDoctype);break;case Fa.IN_TABLE_TEXT:xs(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,qo.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===jo.FONT&&e.attrs.some((({name:e})=>e===Uo.COLOR||e===Uo.SIZE||e===Uo.FACE))||Oa.has(t)}(t))qs(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Bo.MATHML?Ma(t):r===Bo.SVG&&(function(e){const t=Ia.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=Yo(e.tagName))}(t),Pa(t)),qa(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Fa.INITIAL:Za(this,e);break;case Fa.BEFORE_HTML:!function(e,t){t.tagID===jo.HTML?(e._insertElement(t,Bo.HTML),e.insertionMode=Fa.BEFORE_HEAD):Ja(e,t)}(this,e);break;case Fa.BEFORE_HEAD:!function(e,t){switch(t.tagID){case jo.HTML:ds(e,t);break;case jo.HEAD:e._insertElement(t,Bo.HTML),e.headElement=e.openElements.current,e.insertionMode=Fa.IN_HEAD;break;default:es(e,t)}}(this,e);break;case Fa.IN_HEAD:ts(this,e);break;case Fa.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case jo.HTML:ds(e,t);break;case jo.BASEFONT:case jo.BGSOUND:case jo.HEAD:case jo.LINK:case jo.META:case jo.NOFRAMES:case jo.STYLE:ts(e,t);break;case jo.NOSCRIPT:e._err(t,qo.nestedNoscriptInHead);break;default:is(e,t)}}(this,e);break;case Fa.AFTER_HEAD:!function(e,t){switch(t.tagID){case jo.HTML:ds(e,t);break;case jo.BODY:e._insertElement(t,Bo.HTML),e.framesetOk=!1,e.insertionMode=Fa.IN_BODY;break;case jo.FRAMESET:e._insertElement(t,Bo.HTML),e.insertionMode=Fa.IN_FRAMESET;break;case jo.BASE:case jo.BASEFONT:case jo.BGSOUND:case jo.LINK:case jo.META:case jo.NOFRAMES:case jo.SCRIPT:case jo.STYLE:case jo.TEMPLATE:case jo.TITLE:e._err(t,qo.abandonedHeadElementChild),e.openElements.push(e.headElement,jo.HEAD),ts(e,t),e.openElements.remove(e.headElement);break;case jo.HEAD:e._err(t,qo.misplacedStartTagForHeadElement);break;default:os(e,t)}}(this,e);break;case Fa.IN_BODY:ds(this,e);break;case Fa.IN_TABLE:ks(this,e);break;case Fa.IN_TABLE_TEXT:xs(this,e);break;case Fa.IN_CAPTION:!function(e,t){Ss.has(t.tagID)?e.openElements.hasInTableScope(jo.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(jo.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Fa.IN_TABLE,ks(e,t)):ds(e,t)}(this,e);break;case Fa.IN_COLUMN_GROUP:Ts(this,e);break;case Fa.IN_TABLE_BODY:As(this,e);break;case Fa.IN_ROW:Rs(this,e);break;case Fa.IN_CELL:!function(e,t){Ss.has(t.tagID)?(e.openElements.hasInTableScope(jo.TD)||e.openElements.hasInTableScope(jo.TH))&&(e._closeTableCell(),Rs(e,t)):ds(e,t)}(this,e);break;case Fa.IN_SELECT:Ls(this,e);break;case Fa.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===jo.CAPTION||n===jo.TABLE||n===jo.TBODY||n===jo.TFOOT||n===jo.THEAD||n===jo.TR||n===jo.TD||n===jo.TH?(e.openElements.popUntilTagNamePopped(jo.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Ls(e,t)}(this,e);break;case Fa.IN_TEMPLATE:!function(e,t){switch(t.tagID){case jo.BASE:case jo.BASEFONT:case jo.BGSOUND:case jo.LINK:case jo.META:case jo.NOFRAMES:case jo.SCRIPT:case jo.STYLE:case jo.TEMPLATE:case jo.TITLE:ts(e,t);break;case jo.CAPTION:case jo.COLGROUP:case jo.TBODY:case jo.TFOOT:case jo.THEAD:e.tmplInsertionModeStack[0]=Fa.IN_TABLE,e.insertionMode=Fa.IN_TABLE,ks(e,t);break;case jo.COL:e.tmplInsertionModeStack[0]=Fa.IN_COLUMN_GROUP,e.insertionMode=Fa.IN_COLUMN_GROUP,Ts(e,t);break;case jo.TR:e.tmplInsertionModeStack[0]=Fa.IN_TABLE_BODY,e.insertionMode=Fa.IN_TABLE_BODY,As(e,t);break;case jo.TD:case jo.TH:e.tmplInsertionModeStack[0]=Fa.IN_ROW,e.insertionMode=Fa.IN_ROW,Rs(e,t);break;default:e.tmplInsertionModeStack[0]=Fa.IN_BODY,e.insertionMode=Fa.IN_BODY,ds(e,t)}}(this,e);break;case Fa.AFTER_BODY:!function(e,t){t.tagID===jo.HTML?ds(e,t):Ms(e,t)}(this,e);break;case Fa.IN_FRAMESET:!function(e,t){switch(t.tagID){case jo.HTML:ds(e,t);break;case jo.FRAMESET:e._insertElement(t,Bo.HTML);break;case jo.FRAME:e._appendElement(t,Bo.HTML),t.ackSelfClosing=!0;break;case jo.NOFRAMES:ts(e,t)}}(this,e);break;case Fa.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case jo.HTML:ds(e,t);break;case jo.NOFRAMES:ts(e,t)}}(this,e);break;case Fa.AFTER_AFTER_BODY:!function(e,t){t.tagID===jo.HTML?ds(e,t):Ps(e,t)}(this,e);break;case Fa.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case jo.HTML:ds(e,t);break;case jo.NOFRAMES:ts(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===jo.P||t.tagID===jo.BR)return qs(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Bo.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Fa.INITIAL:Za(this,e);break;case Fa.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==jo.HTML&&n!==jo.HEAD&&n!==jo.BODY&&n!==jo.BR||Ja(e,t)}(this,e);break;case Fa.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===jo.HEAD||n===jo.BODY||n===jo.HTML||n===jo.BR?es(e,t):e._err(t,qo.endTagWithoutMatchingOpenElement)}(this,e);break;case Fa.IN_HEAD:!function(e,t){switch(t.tagID){case jo.HEAD:e.openElements.pop(),e.insertionMode=Fa.AFTER_HEAD;break;case jo.BODY:case jo.BR:case jo.HTML:rs(e,t);break;case jo.TEMPLATE:ns(e,t);break;default:e._err(t,qo.endTagWithoutMatchingOpenElement)}}(this,e);break;case Fa.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case jo.NOSCRIPT:e.openElements.pop(),e.insertionMode=Fa.IN_HEAD;break;case jo.BR:is(e,t);break;default:e._err(t,qo.endTagWithoutMatchingOpenElement)}}(this,e);break;case Fa.AFTER_HEAD:!function(e,t){switch(t.tagID){case jo.BODY:case jo.HTML:case jo.BR:os(e,t);break;case jo.TEMPLATE:ns(e,t);break;default:e._err(t,qo.endTagWithoutMatchingOpenElement)}}(this,e);break;case Fa.IN_BODY:gs(this,e);break;case Fa.TEXT:!function(e,t){var n;t.tagID===jo.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 Fa.IN_TABLE:ys(this,e);break;case Fa.IN_TABLE_TEXT:xs(this,e);break;case Fa.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case jo.CAPTION:case jo.TABLE:e.openElements.hasInTableScope(jo.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(jo.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Fa.IN_TABLE,n===jo.TABLE&&ys(e,t));break;case jo.BODY:case jo.COL:case jo.COLGROUP:case jo.HTML:case jo.TBODY:case jo.TD:case jo.TFOOT:case jo.TH:case jo.THEAD:case jo.TR:break;default:gs(e,t)}}(this,e);break;case Fa.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case jo.COLGROUP:e.openElements.currentTagId===jo.COLGROUP&&(e.openElements.pop(),e.insertionMode=Fa.IN_TABLE);break;case jo.TEMPLATE:ns(e,t);break;case jo.COL:break;default:Cs(e,t)}}(this,e);break;case Fa.IN_TABLE_BODY:Ds(this,e);break;case Fa.IN_ROW:_s(this,e);break;case Fa.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case jo.TD:case jo.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Fa.IN_ROW);break;case jo.TABLE:case jo.TBODY:case jo.TFOOT:case jo.THEAD:case jo.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),_s(e,t));break;case jo.BODY:case jo.CAPTION:case jo.COL:case jo.COLGROUP:case jo.HTML:break;default:gs(e,t)}}(this,e);break;case Fa.IN_SELECT:Ns(this,e);break;case Fa.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===jo.CAPTION||n===jo.TABLE||n===jo.TBODY||n===jo.TFOOT||n===jo.THEAD||n===jo.TR||n===jo.TD||n===jo.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(jo.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ns(e,t)}(this,e);break;case Fa.IN_TEMPLATE:!function(e,t){t.tagID===jo.TEMPLATE&&ns(e,t)}(this,e);break;case Fa.AFTER_BODY:Os(this,e);break;case Fa.IN_FRAMESET:!function(e,t){t.tagID!==jo.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===jo.FRAMESET||(e.insertionMode=Fa.AFTER_FRAMESET))}(this,e);break;case Fa.AFTER_FRAMESET:!function(e,t){t.tagID===jo.HTML&&(e.insertionMode=Fa.AFTER_AFTER_FRAMESET)}(this,e);break;case Fa.AFTER_AFTER_BODY:Ps(this,e)}}onEof(e){switch(this.insertionMode){case Fa.INITIAL:Za(this,e);break;case Fa.BEFORE_HTML:Ja(this,e);break;case Fa.BEFORE_HEAD:es(this,e);break;case Fa.IN_HEAD:rs(this,e);break;case Fa.IN_HEAD_NO_SCRIPT:is(this,e);break;case Fa.AFTER_HEAD:os(this,e);break;case Fa.IN_BODY:case Fa.IN_TABLE:case Fa.IN_CAPTION:case Fa.IN_COLUMN_GROUP:case Fa.IN_TABLE_BODY:case Fa.IN_ROW:case Fa.IN_CELL:case Fa.IN_SELECT:case Fa.IN_SELECT_IN_TABLE:ms(this,e);break;case Fa.TEXT:!function(e,t){e._err(t,qo.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Fa.IN_TABLE_TEXT:xs(this,e);break;case Fa.IN_TEMPLATE:Is(this,e);break;case Fa.AFTER_BODY:case Fa.IN_FRAMESET:case Fa.AFTER_FRAMESET:case Fa.AFTER_AFTER_BODY:case Fa.AFTER_AFTER_FRAMESET:Ka(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===_o.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 Fa.IN_HEAD:case Fa.IN_HEAD_NO_SCRIPT:case Fa.AFTER_HEAD:case Fa.TEXT:case Fa.IN_COLUMN_GROUP:case Fa.IN_SELECT:case Fa.IN_SELECT_IN_TABLE:case Fa.IN_FRAMESET:case Fa.AFTER_FRAMESET:this._insertCharacters(e);break;case Fa.IN_BODY:case Fa.IN_CAPTION:case Fa.IN_CELL:case Fa.IN_TEMPLATE:case Fa.AFTER_BODY:case Fa.AFTER_AFTER_BODY:case Fa.AFTER_AFTER_FRAMESET:ss(this,e);break;case Fa.IN_TABLE:case Fa.IN_TABLE_BODY:case Fa.IN_ROW:bs(this,e);break;case Fa.IN_TABLE_TEXT:vs(this,e)}}}function ja(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):ps(e,t),n}function Va(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Ga(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let o=0,a=i;a!==n;o++,a=i){i=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&o>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=$a(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function $a(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Ya(e,t,n){const r=Yo(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);r===jo.TEMPLATE&&i===Bo.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Wa(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,i.tagID)}function Qa(e,t){for(let n=0;n<8;n++){const n=ja(e,t);if(!n)break;const r=Va(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const i=Ga(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),o&&Ya(e,o,i),Wa(e,r,n)}}function Xa(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Ka(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function Za(e,t){e._err(t,qo.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ho.QUIRKS),e.insertionMode=Fa.BEFORE_HTML,e._processToken(t)}function Ja(e,t){e._insertFakeRootElement(),e.insertionMode=Fa.BEFORE_HEAD,e._processToken(t)}function es(e,t){e._insertFakeElement(zo.HEAD,jo.HEAD),e.headElement=e.openElements.current,e.insertionMode=Fa.IN_HEAD,e._processToken(t)}function ts(e,t){switch(t.tagID){case jo.HTML:ds(e,t);break;case jo.BASE:case jo.BASEFONT:case jo.BGSOUND:case jo.LINK:case jo.META:e._appendElement(t,Bo.HTML),t.ackSelfClosing=!0;break;case jo.TITLE:e._switchToTextParsing(t,Jo.RCDATA);break;case jo.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Jo.RAWTEXT):(e._insertElement(t,Bo.HTML),e.insertionMode=Fa.IN_HEAD_NO_SCRIPT);break;case jo.NOFRAMES:case jo.STYLE:e._switchToTextParsing(t,Jo.RAWTEXT);break;case jo.SCRIPT:e._switchToTextParsing(t,Jo.SCRIPT_DATA);break;case jo.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Fa.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Fa.IN_TEMPLATE);break;case jo.HEAD:e._err(t,qo.misplacedStartTagForHeadElement);break;default:rs(e,t)}}function ns(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==jo.TEMPLATE&&e._err(t,qo.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(jo.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,qo.endTagWithoutMatchingOpenElement)}function rs(e,t){e.openElements.pop(),e.insertionMode=Fa.AFTER_HEAD,e._processToken(t)}function is(e,t){e._err(t,t.type===Fo.EOF?qo.openElementsLeftAfterEof:qo.disallowedContentInNoscriptInHead),e.openElements.pop(),e.insertionMode=Fa.IN_HEAD,e._processToken(t)}function os(e,t){e._insertFakeElement(zo.BODY,jo.BODY),e.insertionMode=Fa.IN_BODY,as(e,t)}function as(e,t){switch(t.type){case Fo.CHARACTER:ls(e,t);break;case Fo.WHITESPACE_CHARACTER:ss(e,t);break;case Fo.COMMENT:Xa(e,t);break;case Fo.START_TAG:ds(e,t);break;case Fo.END_TAG:gs(e,t);break;case Fo.EOF:ms(e,t)}}function ss(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ls(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function cs(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Bo.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function us(e){const t=Go(e,Uo.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function hs(e,t){e._switchToTextParsing(t,Jo.RAWTEXT)}function fs(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Bo.HTML)}function ds(e,t){switch(t.tagID){case jo.I:case jo.S:case jo.B:case jo.U:case jo.EM:case jo.TT:case jo.BIG:case jo.CODE:case jo.FONT:case jo.SMALL:case jo.STRIKE:case jo.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Bo.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case jo.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(zo.A);n&&(Qa(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Bo.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case jo.H1:case jo.H2:case jo.H3:case jo.H4:case jo.H5:case jo.H6:!function(e,t){e.openElements.hasInButtonScope(jo.P)&&e._closePElement(),Xo(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Bo.HTML)}(e,t);break;case jo.P:case jo.DL:case jo.OL:case jo.UL:case jo.DIV:case jo.DIR:case jo.NAV:case jo.MAIN:case jo.MENU:case jo.ASIDE:case jo.CENTER:case jo.FIGURE:case jo.FOOTER:case jo.HEADER:case jo.HGROUP:case jo.DIALOG:case jo.DETAILS:case jo.ADDRESS:case jo.ARTICLE:case jo.SECTION:case jo.SUMMARY:case jo.FIELDSET:case jo.BLOCKQUOTE:case jo.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(jo.P)&&e._closePElement(),e._insertElement(t,Bo.HTML)}(e,t);break;case jo.LI:case jo.DD:case jo.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){const r=e.openElements.tagIDs[t];if(n===jo.LI&&r===jo.LI||(n===jo.DD||n===jo.DT)&&(r===jo.DD||r===jo.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==jo.ADDRESS&&r!==jo.DIV&&r!==jo.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(jo.P)&&e._closePElement(),e._insertElement(t,Bo.HTML)}(e,t);break;case jo.BR:case jo.IMG:case jo.WBR:case jo.AREA:case jo.EMBED:case jo.KEYGEN:cs(e,t);break;case jo.HR:!function(e,t){e.openElements.hasInButtonScope(jo.P)&&e._closePElement(),e._appendElement(t,Bo.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case jo.RB:case jo.RTC:!function(e,t){e.openElements.hasInScope(jo.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Bo.HTML)}(e,t);break;case jo.RT:case jo.RP:!function(e,t){e.openElements.hasInScope(jo.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(jo.RTC),e._insertElement(t,Bo.HTML)}(e,t);break;case jo.PRE:case jo.LISTING:!function(e,t){e.openElements.hasInButtonScope(jo.P)&&e._closePElement(),e._insertElement(t,Bo.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case jo.XMP:!function(e,t){e.openElements.hasInButtonScope(jo.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Jo.RAWTEXT)}(e,t);break;case jo.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Pa(t),qa(t),t.selfClosing?e._appendElement(t,Bo.SVG):e._insertElement(t,Bo.SVG),t.ackSelfClosing=!0}(e,t);break;case jo.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case jo.BASE:case jo.LINK:case jo.META:case jo.STYLE:case jo.TITLE:case jo.SCRIPT:case jo.BGSOUND:case jo.BASEFONT:case jo.TEMPLATE:ts(e,t);break;case jo.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 jo.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(jo.P)&&e._closePElement(),e._insertElement(t,Bo.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case jo.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(jo.NOBR)&&(Qa(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Bo.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case jo.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Ma(t),qa(t),t.selfClosing?e._appendElement(t,Bo.MATHML):e._insertElement(t,Bo.MATHML),t.ackSelfClosing=!0}(e,t);break;case jo.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ho.QUIRKS&&e.openElements.hasInButtonScope(jo.P)&&e._closePElement(),e._insertElement(t,Bo.HTML),e.framesetOk=!1,e.insertionMode=Fa.IN_TABLE}(e,t);break;case jo.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Bo.HTML),us(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case jo.PARAM:case jo.TRACK:case jo.SOURCE:!function(e,t){e._appendElement(t,Bo.HTML),t.ackSelfClosing=!0}(e,t);break;case jo.IMAGE:!function(e,t){t.tagName=zo.IMG,t.tagID=jo.IMG,cs(e,t)}(e,t);break;case jo.BUTTON:!function(e,t){e.openElements.hasInScope(jo.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(jo.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Bo.HTML),e.framesetOk=!1}(e,t);break;case jo.APPLET:case jo.OBJECT:case jo.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Bo.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case jo.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Jo.RAWTEXT)}(e,t);break;case jo.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Bo.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Fa.IN_TABLE||e.insertionMode===Fa.IN_CAPTION||e.insertionMode===Fa.IN_TABLE_BODY||e.insertionMode===Fa.IN_ROW||e.insertionMode===Fa.IN_CELL?Fa.IN_SELECT_IN_TABLE:Fa.IN_SELECT}(e,t);break;case jo.OPTION:case jo.OPTGROUP:!function(e,t){e.openElements.currentTagId===jo.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Bo.HTML)}(e,t);break;case jo.NOEMBED:hs(e,t);break;case jo.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Bo.HTML),e.insertionMode=Fa.IN_FRAMESET)}(e,t);break;case jo.TEXTAREA:!function(e,t){e._insertElement(t,Bo.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Jo.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Fa.TEXT}(e,t);break;case jo.NOSCRIPT:e.options.scriptingEnabled?hs(e,t):fs(e,t);break;case jo.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(jo.P)&&e._closePElement(),e._insertElement(t,Bo.HTML),e.tokenizer.state=Jo.PLAINTEXT}(e,t);break;case jo.COL:case jo.TH:case jo.TD:case jo.TR:case jo.HEAD:case jo.FRAME:case jo.TBODY:case jo.TFOOT:case jo.THEAD:case jo.CAPTION:case jo.COLGROUP:break;default:fs(e,t)}}function ps(e,t){const n=t.tagName,r=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){const i=e.openElements.items[t],o=e.openElements.tagIDs[t];if(r===o&&(r!==jo.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(i,o))break}}function gs(e,t){switch(t.tagID){case jo.A:case jo.B:case jo.I:case jo.S:case jo.U:case jo.EM:case jo.TT:case jo.BIG:case jo.CODE:case jo.FONT:case jo.NOBR:case jo.SMALL:case jo.STRIKE:case jo.STRONG:Qa(e,t);break;case jo.P:!function(e){e.openElements.hasInButtonScope(jo.P)||e._insertFakeElement(zo.P,jo.P),e._closePElement()}(e);break;case jo.DL:case jo.UL:case jo.OL:case jo.DIR:case jo.DIV:case jo.NAV:case jo.PRE:case jo.MAIN:case jo.MENU:case jo.ASIDE:case jo.BUTTON:case jo.CENTER:case jo.FIGURE:case jo.FOOTER:case jo.HEADER:case jo.HGROUP:case jo.DIALOG:case jo.ADDRESS:case jo.ARTICLE:case jo.DETAILS:case jo.SECTION:case jo.SUMMARY:case jo.LISTING:case jo.FIELDSET:case jo.BLOCKQUOTE:case jo.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case jo.LI:!function(e){e.openElements.hasInListItemScope(jo.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(jo.LI),e.openElements.popUntilTagNamePopped(jo.LI))}(e);break;case jo.DD:case jo.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case jo.H1:case jo.H2:case jo.H3:case jo.H4:case jo.H5:case jo.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case jo.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(zo.BR,jo.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case jo.BODY:!function(e,t){if(e.openElements.hasInScope(jo.BODY)&&(e.insertionMode=Fa.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case jo.HTML:!function(e,t){e.openElements.hasInScope(jo.BODY)&&(e.insertionMode=Fa.AFTER_BODY,Os(e,t))}(e,t);break;case jo.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(jo.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(jo.FORM):n&&e.openElements.remove(n))}(e);break;case jo.APPLET:case jo.OBJECT:case jo.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 jo.TEMPLATE:ns(e,t);break;default:ps(e,t)}}function ms(e,t){e.tmplInsertionModeStack.length>0?Is(e,t):Ka(e,t)}function bs(e,t){if(Ua.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Fa.IN_TABLE_TEXT,t.type){case Fo.CHARACTER:Es(e,t);break;case Fo.WHITESPACE_CHARACTER:vs(e,t)}else ws(e,t)}function ks(e,t){switch(t.tagID){case jo.TD:case jo.TH:case jo.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(zo.TBODY,jo.TBODY),e.insertionMode=Fa.IN_TABLE_BODY,As(e,t)}(e,t);break;case jo.STYLE:case jo.SCRIPT:case jo.TEMPLATE:ts(e,t);break;case jo.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(zo.COLGROUP,jo.COLGROUP),e.insertionMode=Fa.IN_COLUMN_GROUP,Ts(e,t)}(e,t);break;case jo.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Bo.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case jo.TABLE:!function(e,t){e.openElements.hasInTableScope(jo.TABLE)&&(e.openElements.popUntilTagNamePopped(jo.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case jo.TBODY:case jo.TFOOT:case jo.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Bo.HTML),e.insertionMode=Fa.IN_TABLE_BODY}(e,t);break;case jo.INPUT:!function(e,t){us(t)?e._appendElement(t,Bo.HTML):ws(e,t),t.ackSelfClosing=!0}(e,t);break;case jo.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Bo.HTML),e.insertionMode=Fa.IN_CAPTION}(e,t);break;case jo.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Bo.HTML),e.insertionMode=Fa.IN_COLUMN_GROUP}(e,t);break;default:ws(e,t)}}function ys(e,t){switch(t.tagID){case jo.TABLE:e.openElements.hasInTableScope(jo.TABLE)&&(e.openElements.popUntilTagNamePopped(jo.TABLE),e._resetInsertionMode());break;case jo.TEMPLATE:ns(e,t);break;case jo.BODY:case jo.CAPTION:case jo.COL:case jo.COLGROUP:case jo.HTML:case jo.TBODY:case jo.TD:case jo.TFOOT:case jo.TH:case jo.THEAD:case jo.TR:break;default:ws(e,t)}}function ws(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,as(e,t),e.fosterParentingEnabled=n}function vs(e,t){e.pendingCharacterTokens.push(t)}function Es(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function xs(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ws(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Ss=new Set([jo.CAPTION,jo.COL,jo.COLGROUP,jo.TBODY,jo.TD,jo.TFOOT,jo.TH,jo.THEAD,jo.TR]);function Ts(e,t){switch(t.tagID){case jo.HTML:ds(e,t);break;case jo.COL:e._appendElement(t,Bo.HTML),t.ackSelfClosing=!0;break;case jo.TEMPLATE:ts(e,t);break;default:Cs(e,t)}}function Cs(e,t){e.openElements.currentTagId===jo.COLGROUP&&(e.openElements.pop(),e.insertionMode=Fa.IN_TABLE,e._processToken(t))}function As(e,t){switch(t.tagID){case jo.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Bo.HTML),e.insertionMode=Fa.IN_ROW;break;case jo.TH:case jo.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(zo.TR,jo.TR),e.insertionMode=Fa.IN_ROW,Rs(e,t);break;case jo.CAPTION:case jo.COL:case jo.COLGROUP:case jo.TBODY:case jo.TFOOT:case jo.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Fa.IN_TABLE,ks(e,t));break;default:ks(e,t)}}function Ds(e,t){const n=t.tagID;switch(t.tagID){case jo.TBODY:case jo.TFOOT:case jo.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Fa.IN_TABLE);break;case jo.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Fa.IN_TABLE,ys(e,t));break;case jo.BODY:case jo.CAPTION:case jo.COL:case jo.COLGROUP:case jo.HTML:case jo.TD:case jo.TH:case jo.TR:break;default:ys(e,t)}}function Rs(e,t){switch(t.tagID){case jo.TH:case jo.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,Bo.HTML),e.insertionMode=Fa.IN_CELL,e.activeFormattingElements.insertMarker();break;case jo.CAPTION:case jo.COL:case jo.COLGROUP:case jo.TBODY:case jo.TFOOT:case jo.THEAD:case jo.TR:e.openElements.hasInTableScope(jo.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Fa.IN_TABLE_BODY,As(e,t));break;default:ks(e,t)}}function _s(e,t){switch(t.tagID){case jo.TR:e.openElements.hasInTableScope(jo.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Fa.IN_TABLE_BODY);break;case jo.TABLE:e.openElements.hasInTableScope(jo.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Fa.IN_TABLE_BODY,Ds(e,t));break;case jo.TBODY:case jo.TFOOT:case jo.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(jo.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Fa.IN_TABLE_BODY,Ds(e,t));break;case jo.BODY:case jo.CAPTION:case jo.COL:case jo.COLGROUP:case jo.HTML:case jo.TD:case jo.TH:break;default:ys(e,t)}}function Ls(e,t){switch(t.tagID){case jo.HTML:ds(e,t);break;case jo.OPTION:e.openElements.currentTagId===jo.OPTION&&e.openElements.pop(),e._insertElement(t,Bo.HTML);break;case jo.OPTGROUP:e.openElements.currentTagId===jo.OPTION&&e.openElements.pop(),e.openElements.currentTagId===jo.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Bo.HTML);break;case jo.INPUT:case jo.KEYGEN:case jo.TEXTAREA:case jo.SELECT:e.openElements.hasInSelectScope(jo.SELECT)&&(e.openElements.popUntilTagNamePopped(jo.SELECT),e._resetInsertionMode(),t.tagID!==jo.SELECT&&e._processStartTag(t));break;case jo.SCRIPT:case jo.TEMPLATE:ts(e,t)}}function Ns(e,t){switch(t.tagID){case jo.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===jo.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===jo.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===jo.OPTGROUP&&e.openElements.pop();break;case jo.OPTION:e.openElements.currentTagId===jo.OPTION&&e.openElements.pop();break;case jo.SELECT:e.openElements.hasInSelectScope(jo.SELECT)&&(e.openElements.popUntilTagNamePopped(jo.SELECT),e._resetInsertionMode());break;case jo.TEMPLATE:ns(e,t)}}function Is(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(jo.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Ka(e,t)}function Os(e,t){var n;if(t.tagID===jo.HTML){if(e.fragmentContext||(e.insertionMode=Fa.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===jo.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else Ms(e,t)}function Ms(e,t){e.insertionMode=Fa.IN_BODY,as(e,t)}function Ps(e,t){e.insertionMode=Fa.IN_BODY,as(e,t)}function qs(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Bo.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}const Fs=Us("end"),Bs=Us("start");function Us(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 Hs={}.hasOwnProperty,zs=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),js={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Vs(e,t){const r=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:$s,element:Ys,text:Ws,comment:Xs,doctype:Qs,raw:Ks},unknown:Zs}||{};function n(t,...r){let i=n.invalid;const o=n.handlers;if(t&&Hs.call(t,e)){const r=String(t[e]);i=Hs.call(o,r)?o[r]:n.unknown}if(i)return i.call(this,t,...r)}return n.handlers=t.handlers||{},n.invalid=t.invalid,n.unknown=t.unknown,n}("type"),o={parser:r?new za(js):za.getFragmentParser(void 0,js),handle(e){i(e,o)},stitches:!1,options:t||{}};i(e,o),Js(o,Bs());const a=function(e,t){const n=t||{};return Ni({file:n.file||void 0,location:!1,schema:"svg"===n.space?gi:pi,verbose:n.verbose||!1},e)}(r?o.parser.document:o.parser.getFragment(),{file:o.options.file});return o.stitches&&n(a,"comment",(function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t})),"root"===a.type&&1===a.children.length&&a.children[0].type===e.type?a.children[0]:a}function Gs(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function $s(e,t){Gs(e.children,t)}function Ys(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Jo.PLAINTEXT)return;Js(t,Bs(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Di;i===Di&&"svg"===n&&(i=Ri);const o=(s={...e,children:[]},xo(s,"svg"===({space:i===Ri?"svg":"html"}||vo).space?ko:bo)),a={type:Fo.START_TAG,tagName:n,tagID:Yo(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:tl(e)};var s;t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),Gs(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Ao.includes(n))return;if(t.parser.tokenizer.state===Jo.PLAINTEXT)return;Js(t,Fs(e));const r={type:Fo.END_TAG,tagName:n,tagID:Yo(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:tl(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==Jo.RCDATA&&t.parser.tokenizer.state!==Jo.RAWTEXT&&t.parser.tokenizer.state!==Jo.SCRIPT_DATA||(t.parser.tokenizer.state=Jo.DATA)}(e,t)}function Ws(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:Fo.CHARACTER,chars:e.value,location:tl(e)};Js(t,Bs(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Qs(e,t){const n={type:Fo.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:tl(e)};Js(t,Bs(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Xs(e,t){const n={type:Fo.COMMENT,data:e.value,location:tl(e)};Js(t,Bs(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Ks(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,el(t,Bs(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 Zs(e,n){const r=e;if(!n.options.passThrough||!n.options.passThrough.includes(r.type)){let e="";throw zs.has(r.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 `"+r.type+"` node"+e)}!function(e,n){n.stitches=!0;const r=function(e){return t("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in r){const t=Vs({type:"root",children:e.children},n.options);r.children=t.children}Xs({type:"comment",value:{stitch:r}},n)}(r,n)}function Js(e,t){el(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=Jo.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 el(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 tl(e){const t=Bs(e)||{line:void 0,column:void 0,offset:void 0},n=Fs(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 nl(e){return function(t,n){return Vs(t,{...e,file:n})}}var rl,il,ol,al,sl,ll,cl,ul={},hl=function(){if(ol)return ul;ol=1;var e=ul&&ul.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ul,"__esModule",{value:!0}),ul.default=function(e,n){var r=null;if(!e||"string"!=typeof e)return r;var i=(0,t.default)(e),o="function"==typeof n;return i.forEach((function(e){if("declaration"===e.type){var t=e.property,i=e.value;o?n(t,i,e):i&&((r=r||{})[t]=i)}})),r};var t=e(function(){if(il)return rl;il=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(s,l):l}return rl=function(s,u){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];u=u||{};var h=1,f=1;function d(e){var n=e.match(t);n&&(h+=n.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function p(){var e={line:h,column:f};return function(t){return t.position=new g(e),k(),t}}function g(e){this.start=e,this.end={line:h,column:f},this.source=u.source}function m(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=s,!u.silent)throw t}function b(e){var t=e.exec(s);if(t){var n=t[0];return d(n),s=s.slice(n.length),t}}function k(){b(n)}function y(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var e=p();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;l!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(l===s.charAt((t+=2)-1))return m("End of comment missing");var n=s.slice(2,t-2);return f+=2,d(n),s=s.slice(t),f+=2,e({type:"comment",comment:n})}}function v(){var t=p(),n=b(r);if(n){if(w(),!b(i))return m("property missing ':'");var s=b(o),u=t({type:"declaration",property:c(n[0].replace(e,l)),value:s?c(s[0].replace(e,l)):l});return b(a),u}}return g.prototype.content=s,k(),function(){var e,t=[];for(y(t);e=v();)!1!==e&&(t.push(e),y(t));return t}()},rl}());return ul}(),fl=e(hl),dl=fl.default||fl,pl=e(sl?al:(sl=1,al={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]})),gl=function(){if(cl)return ll;cl=1;const e="a-f\\d",t=`#?[${e}]{3}[${e}]?`,n=`#?[${e}]{6}([${e}]{2})?`,r=new RegExp(`[^#${e}]`,"gi"),i=new RegExp(`^${t}$|^${n}$`,"i");return ll=(e,t={})=>{if("string"!=typeof e||r.test(e)||!i.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 o=Number.parseInt(e,16),a=o>>16,s=o>>8&255,l=255&o,c="number"==typeof t.alpha?t.alpha:n;return"array"===t.format?[a,s,l,c]:"css"===t.format?`rgb(${a} ${s} ${l}${1===c?"":` / ${Number((100*c).toFixed(2))}%`})`:{red:a,green:s,blue:l,alpha:c}},ll}(),ml=e(gl),bl=new RegExp(/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,"i");const kl="-?\\d*(?:\\.\\d+)",yl=`(${kl}?)`,wl=`(${kl}?%)`,vl=`(${kl}?%?)`,El=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*${wl}\\s*,\n \\s*${wl}\\s*\n (?:,\\s*${vl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var xl=new RegExp(El);const Sl=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+${wl}\n \\s+${wl}\n \\s*(?:\\s*\\/\\s*${vl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var Tl=new RegExp(Sl);const Cl=`^\n rgba?\\(\n \\s*${yl}\\s*,\n \\s*${yl}\\s*,\n \\s*${yl}\\s*\n (?:,\\s*${vl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var Al=new RegExp(Cl);const Dl=`^\n rgba?\\(\n \\s*${wl}\\s*,\n \\s*${wl}\\s*,\n \\s*${wl}\\s*\n (?:,\\s*${vl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var Rl=new RegExp(Dl);const _l=`^\n rgba?\\(\n \\s*${yl}\n \\s+${yl}\n \\s+${yl}\n \\s*(?:\\s*\\/\\s*${vl}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var Ll=new RegExp(_l);const Nl=`^\n rgba?\\(\n \\s*${wl}\n \\s+${wl}\n \\s+${wl}\n \\s*(?:\\s*\\/\\s*${vl}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var Il=new RegExp(Nl),Ol=new RegExp(/^transparent$/,"i");const Ml=(e,t,n)=>Math.min(Math.max(t,e),n),Pl=e=>{let t=e;return"number"!=typeof t&&(t=t.endsWith("%")?255*parseFloat(t)/100:parseFloat(t)),Ml(Math.round(t),0,255)},ql=e=>Ml(parseFloat(e),0,100);function Fl(e){let t=e;return"number"!=typeof t&&(t=t.endsWith("%")?parseFloat(t)/100:parseFloat(t)),Ml(t,0,1)}function Bl([,e,t,n,r=1]){return{type:"rgb",values:[e,t,n].map(Pl),alpha:Fl(null===r?1:r)}}
2
+ /**
3
+ * parse-css-color
4
+ * @version v0.2.1
5
+ * @link http://github.com/noeldelgado/parse-css-color/
6
+ * @license MIT
7
+ */const Ul=["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 Hl(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=bl.exec(e);if(t)return function(e){const[t,n,r,i]=ml(e,{format:"array"});return Bl([null,t,n,r,i])}(t[0]);const n=Tl.exec(e)||xl.exec(e);if(n)return function([,e,t,n,r=1]){let i=e;return i=i.endsWith("turn")?360*parseFloat(i)/1:i.endsWith("rad")?Math.round(180*parseFloat(i)/Math.PI):parseFloat(i),{type:"hsl",values:[i,ql(t),ql(n)],alpha:Fl(null===r?1:r)}}(n);const r=Ll.exec(e)||Il.exec(e)||Al.exec(e)||Rl.exec(e);if(r)return Bl(r);if(Ol.exec(e))return Bl([null,0,0,0,0]);const i=pl[e.toLowerCase()];return i?Bl([null,i[0],i[1],i[2],1]):null})(e.background)&&(t["background-color"]=e.background),t}(dl(e));return Object.entries(t).filter((([e])=>Ul.includes(e))).map((([e,t])=>`${e}: ${t}`)).join("; ")}catch(t){return console.error("Failed to parse style value",e,t),""}}(e.properties.style))}const zl=/\u00A0/g,jl=["200B","200C","200D","FEFF"],Vl=new Set(["audio","canvas","embed","iframe","img","input","object","svg","video"]),Gl=new Set(["br"]),$l=(e,t)=>{if(e&&"object"==typeof e){if("element"===e.type&&"p"===e.tagName&&t&&Yl(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--)$l(e.children[t],e)}},Yl=e=>!Array.isArray(e.children)||0===e.children.length||e.children.every((e=>Wl(e))),Wl=e=>{if(!e)return!0;if("text"===e.type)return Ql("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||!Vl.has(n)&&(!!Gl.has(n)||!Array.isArray(t.children)||0===t.children.length||t.children.every((e=>Wl(e))))}return!0},Ql=e=>{if(!e)return!0;const t=(e=>{let t=e;for(const e of jl){const n=String.fromCodePoint(Number.parseInt(e,16));t=t.split(n).join("")}return t})(e.replaceAll(zl," "));return""===t.trim()};async function Xl(e,t){var r;(null==t?void 0:t.forceHardLineBreaks)&&(e=e.replaceAll(/(?<!\\)([\n\r])/g," $1"));return(await c().use(at).use(Or).use(Ct,{allowDangerousHtml:!0}).use(nl).use((()=>e=>(n(e,"element",(e=>{var t,n;if("a"===e.tagName){const r=null===(t=e.properties)||void 0===t?void 0:t.href,i=null===(n=e.properties)||void 0===n?void 0:n.title;if(!r)return;const o=p(r,i);e.properties.target=o.target,e.properties.rel=o.rel,e.properties.referrerpolicy=o.referrerpolicy}})),e))).use(u,Object.assign({},Zl(null!==(r=null==t?void 0:t.whitelist)&&void 0!==r?r:[]))).use((()=>e=>{n(e,"element",Hl)})).use(((e=!1)=>()=>e?e=>($l(e,null),e):e=>e)(null==t?void 0:t.removeEmptyParagraphs)).use(function(e=!1){return()=>e?e=>(n(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==t?void 0:t.lazyLoadImages)).use(h).process(e)).toString()}async function Kl(e,t){return(await c().use(f).use(u,Object.assign({},Zl(null!=t?t:[]))).use((()=>e=>{n(e,"element",Hl)})).use(h).process(e)).toString()}function Zl(e){var t,n,r,i;const o=[...null!==(t=d.attributes["*"])&&void 0!==t?t:[]].filter((e=>"height"!==e));o.push("style");const a=Object.assign(Object.assign({},d),{strip:[...null!==(n=d.strip)&&void 0!==n?n:[],"style"],tagNames:[...d.tagNames||[],...e.map((e=>e.tagName))],attributes:Object.assign(Object.assign({},d.attributes),{p:[...null!==(r=d.attributes.p)&&void 0!==r?r:[],["className","MsoNormal"]],a:[...null!==(i=d.attributes.a)&&void 0!==i?i:[],"referrerpolicy"],"*":o})});for(const t of e)a.attributes[t.tagName]=t.attributes;return a}export{p as g,Xl as m,Kl as s}