@limetech/lime-elements 39.13.3 → 39.14.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.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/{_assignValue-D2D1zedG.js → _assignValue-DpsLUlF4.js} +25 -2
- package/dist/cjs/{_baseForOwn-QM0kHQT5.js → _baseEach-C570gT5Y.js} +43 -1
- package/dist/cjs/{_baseIsEqual-D6hrjmx4.js → _baseIsEqual-aOPReRWl.js} +1 -0
- package/dist/cjs/{_baseIteratee-iGEZ9pZY.js → _baseIteratee-DggA4e7a.js} +3 -1
- package/dist/cjs/_commonjsHelpers-CFO10eej.js +7 -0
- package/dist/cjs/_getAllKeysIn-BQIV8aw7.js +118 -0
- package/dist/cjs/_isIterateeCall-CPWXFS_s.js +72 -0
- package/dist/cjs/cloneDeep-CxFNKF1Y.js +619 -0
- package/dist/cjs/{isArrayLikeObject-CTP6Ak01.js → difference-Bfsq4sXB.js} +93 -5
- package/dist/cjs/{focus-trigger-element-NnpJ5nTp.js → focus-trigger-element-Brw8VubX.js} +1 -1
- package/dist/cjs/{format-D04vDIBj.js → format-D4jZb7Ls.js} +1 -1
- package/dist/cjs/{index-mbfaT7TB.js → index-BgFEL6FF.js} +1 -1
- package/dist/cjs/{isEmpty-DCC_l2Xp.js → isEmpty-EBCFxX1S.js} +1 -1
- package/dist/cjs/{isEqual-BsHLqE-x.js → isEqual-bXyw7kXo.js} +1 -1
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-badge.cjs.entry.js +2 -2
- package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +2 -3
- package/dist/cjs/limel-chip_2.cjs.entry.js +3 -3
- package/dist/cjs/limel-circular-progress.cjs.entry.js +2 -2
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
- package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +5 -44
- package/dist/cjs/limel-file-viewer.cjs.entry.js +2 -2
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +12 -74
- package/dist/cjs/limel-form.cjs.entry.js +38541 -50295
- package/dist/cjs/limel-markdown.cjs.entry.js +3 -3
- package/dist/cjs/limel-popover_2.cjs.entry.js +2 -3
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +23 -481
- package/dist/cjs/limel-tab-bar.cjs.entry.js +4 -83
- package/dist/cjs/limel-table.cjs.entry.js +14 -269
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{markdown-parser-DCnW9yak.js → markdown-parser-BIa99LAc.js} +2 -2
- package/dist/cjs/{moment-DCqC7BZP.js → moment-CqRdiK10.js} +1 -1
- package/dist/cjs/pickBy-kLjYLoam.js +201 -0
- package/dist/cjs/{sv-jO-ewmqh.js → sv-BSR4W58y.js} +1 -1
- package/dist/collection/components/form/adapters/widget-adapter.js +23 -30
- package/dist/collection/components/form/fields/array-field.js +39 -6
- package/dist/collection/components/form/fields/field-helpers.js +4 -4
- package/dist/collection/components/form/fields/object-field.js +4 -2
- package/dist/collection/components/form/fields/schema-field.js +33 -70
- package/dist/collection/components/form/form.css +19 -19
- package/dist/collection/components/form/form.js +40 -72
- package/dist/collection/components/form/form.test-schemas.js +308 -0
- package/dist/collection/components/form/row/row-context.js +2 -0
- package/dist/collection/components/form/row/row.js +2 -2
- package/dist/collection/components/form/templates/array-context.js +2 -0
- package/dist/collection/components/form/templates/array-field-collapsible-item.js +4 -4
- package/dist/collection/components/form/templates/array-field-item.js +47 -0
- package/dist/collection/components/form/templates/array-field-simple-item.js +6 -7
- package/dist/collection/components/form/templates/array-field.js +38 -94
- package/dist/collection/components/form/templates/index.js +1 -0
- package/dist/collection/components/form/templates/object-field.js +15 -11
- package/dist/collection/components/form/validation-display.js +75 -0
- package/dist/collection/components/form/validator.js +10 -0
- package/dist/collection/components/form/widgets/code-editor.js +1 -1
- package/dist/collection/components/form/widgets/select.js +2 -1
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/trigger/create-html-inserter.js +2 -2
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/trigger/factory-helpers/append-transaction-handler.js +7 -0
- package/dist/collection/components/text-editor/prosemirror-adapter/plugins/trigger/inserter.js +1 -1
- package/dist/esm/{_assignValue-DkGAX8ec.js → _assignValue-DOEO9byf.js} +24 -2
- package/dist/esm/{_baseForOwn-CfpQNnvA.js → _baseEach-CL_-rBMy.js} +42 -2
- package/dist/esm/{_baseIsEqual-BvHnKRmD.js → _baseIsEqual-BfXMsuGh.js} +2 -2
- package/dist/esm/{_baseIteratee-DFBCJcMA.js → _baseIteratee-kS1-0_xD.js} +3 -3
- package/dist/esm/_commonjsHelpers-B85MJLTf.js +5 -0
- package/dist/esm/_getAllKeysIn-BKpeslPJ.js +113 -0
- package/dist/esm/_isIterateeCall-CTcCv8Mb.js +69 -0
- package/dist/esm/cloneDeep-BXAw5H-1.js +609 -0
- package/dist/esm/{isArrayLikeObject-D7yRwRv4.js → difference-DMAjHh-t.js} +91 -7
- package/dist/esm/{focus-trigger-element-6aEStEKM.js → focus-trigger-element-DubROLkE.js} +1 -1
- package/dist/esm/{format-BMPGHLQ8.js → format-hTrthuPP.js} +1 -1
- package/dist/esm/{index-DJJymEnS.js → index-t4DgGbWS.js} +1 -1
- package/dist/esm/{isArrayLike-bWHU4ebg.js → isArrayLike-D1QkaJU2.js} +1 -1
- package/dist/esm/{isEmpty-tfwtR2ai.js → isEmpty-DrFXbHWO.js} +2 -2
- package/dist/esm/{isEqual-BkQ4Z_9r.js → isEqual-CpaoJ_AF.js} +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-badge.entry.js +2 -2
- package/dist/esm/limel-breadcrumbs_7.entry.js +2 -3
- package/dist/esm/limel-chip_2.entry.js +4 -4
- package/dist/esm/limel-circular-progress.entry.js +2 -2
- package/dist/esm/limel-code-editor.entry.js +1 -1
- package/dist/esm/limel-date-picker.entry.js +3 -3
- package/dist/esm/limel-dialog.entry.js +3 -3
- package/dist/esm/limel-file-dropzone_2.entry.js +4 -43
- package/dist/esm/limel-file-viewer.entry.js +2 -2
- package/dist/esm/limel-flatpickr-adapter.entry.js +8 -70
- package/dist/esm/limel-form.entry.js +38553 -50307
- package/dist/esm/limel-markdown.entry.js +3 -3
- package/dist/esm/limel-popover_2.entry.js +2 -3
- package/dist/esm/limel-prosemirror-adapter.entry.js +22 -480
- package/dist/esm/limel-tab-bar.entry.js +4 -83
- package/dist/esm/limel-table.entry.js +11 -266
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{markdown-parser-CXYHPPe2.js → markdown-parser-D7vLKElE.js} +2 -2
- package/dist/esm/{moment-DhvPC9Jt.js → moment-DQRNe8qq.js} +1 -1
- package/dist/esm/pickBy-BEA90LIZ.js +195 -0
- package/dist/esm/{sv-84mf7Xsv.js → sv-CY-6-yEp.js} +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-1cb2d781.entry.js +13 -0
- package/dist/lime-elements/{p-00d6ccd6.entry.js → p-25ae3a55.entry.js} +5 -5
- package/dist/lime-elements/{p-be0cbddb.entry.js → p-374ec191.entry.js} +1 -1
- package/dist/lime-elements/p-3a662d7e.entry.js +1 -0
- package/dist/lime-elements/{p-f0f5eda1.entry.js → p-41be4893.entry.js} +1 -1
- package/dist/lime-elements/{p-c84911e6.entry.js → p-4ad193a2.entry.js} +1 -1
- package/dist/lime-elements/{p-dd7a2361.entry.js → p-4ce682cf.entry.js} +3 -3
- package/dist/lime-elements/{p-eeae0ef6.entry.js → p-5ee484a7.entry.js} +4 -4
- package/dist/lime-elements/{p-b1d6553c.entry.js → p-77abb595.entry.js} +1 -1
- package/dist/lime-elements/p-8065425a.entry.js +1 -0
- package/dist/lime-elements/{p-77ba0f66.entry.js → p-8299af78.entry.js} +1 -1
- package/dist/lime-elements/{p-87c5e951.entry.js → p-8c7a7003.entry.js} +1 -1
- package/dist/lime-elements/{p-ce20d720.entry.js → p-97c401f1.entry.js} +1 -1
- package/dist/lime-elements/p-9a378cf0.entry.js +1 -0
- package/dist/lime-elements/p-B3zCFNAw.js +1 -0
- package/dist/lime-elements/p-B6bNnxRu.js +1 -0
- package/dist/lime-elements/p-B85MJLTf.js +1 -0
- package/dist/lime-elements/p-BCMRfUKp.js +1 -0
- package/dist/lime-elements/p-BbU4FGNT.js +1 -0
- package/dist/lime-elements/p-Bp0tNo1s.js +1 -0
- package/dist/lime-elements/{p-DpyWBa_Z.js → p-Bt64o80S.js} +1 -1
- package/dist/lime-elements/{p-BqiDn_Sf.js → p-BvDmWgCs.js} +1 -1
- package/dist/lime-elements/p-CMjGNANG.js +1 -0
- package/dist/lime-elements/p-DFWcgJ_i.js +1 -0
- package/dist/lime-elements/{p-B4YDb6f3.js → p-DJvGLFul.js} +1 -1
- package/dist/lime-elements/p-DTXIk0fN.js +1 -0
- package/dist/lime-elements/{p-BgPHaiMH.js → p-D_uMnX5g.js} +1 -1
- package/dist/lime-elements/{p-g3InYy9F.js → p-DdYOzHlg.js} +1 -1
- package/dist/lime-elements/{p-ndpPJpml.js → p-DsDkl4Sy.js} +1 -1
- package/dist/lime-elements/p-UGKt6Ywx.js +1 -0
- package/dist/lime-elements/p-afcf580c.entry.js +16 -0
- package/dist/lime-elements/p-f6c3f49b.entry.js +1 -0
- package/dist/lime-elements/p-v6b303K5.js +1 -0
- package/dist/lime-elements/p-xQsJdKrq.js +1 -0
- package/dist/lime-elements/{p-BYx8mudw.js → p-zo6O9LC9.js} +2 -2
- package/dist/types/components/form/adapters/widget-adapter.d.ts +3 -2
- package/dist/types/components/form/fields/array-field.d.ts +11 -19
- package/dist/types/components/form/fields/object-field.d.ts +2 -2
- package/dist/types/components/form/fields/schema-field.d.ts +5 -18
- package/dist/types/components/form/form.d.ts +4 -8
- package/dist/types/components/form/form.test-schemas.d.ts +30 -0
- package/dist/types/components/form/row/row-context.d.ts +2 -0
- package/dist/types/components/form/templates/array-context.d.ts +7 -0
- package/dist/types/components/form/templates/array-field-collapsible-item.d.ts +7 -11
- package/dist/types/components/form/templates/array-field-item.d.ts +6 -0
- package/dist/types/components/form/templates/array-field-simple-item.d.ts +7 -9
- package/dist/types/components/form/templates/array-field.d.ts +7 -8
- package/dist/types/components/form/templates/index.d.ts +1 -0
- package/dist/types/components/form/templates/object-field.d.ts +6 -1
- package/dist/types/components/form/templates/types.d.ts +2 -4
- package/dist/types/components/form/validation-display.d.ts +60 -0
- package/dist/types/components/form/validator.d.ts +6 -0
- package/dist/types/components/form/widgets/code-editor.d.ts +1 -1
- package/dist/types/components/form/widgets/types.d.ts +1 -1
- package/dist/types/components/text-editor/prosemirror-adapter/plugins/trigger/create-html-inserter.d.ts +2 -1
- package/package.json +4 -2
- package/dist/cjs/_baseAssignValue-BJgt6T7z.js +0 -27
- package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -10
- package/dist/cjs/_getPrototype-BK9cL-57.js +0 -8
- package/dist/cjs/negate-Bg3SqQh6.js +0 -42
- package/dist/collection/components/form/fields/types.js +0 -1
- package/dist/collection/components/form/schema-cache.js +0 -66
- package/dist/esm/_baseAssignValue-C8Uwn8zr.js +0 -25
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -7
- package/dist/esm/_getPrototype-jV9gkkJy.js +0 -6
- package/dist/esm/negate-ooVD-6_a.js +0 -40
- package/dist/lime-elements/p-45dfcaf3.entry.js +0 -1
- package/dist/lime-elements/p-5db2d069.entry.js +0 -1
- package/dist/lime-elements/p-9728aa4a.entry.js +0 -1
- package/dist/lime-elements/p-BFTU3MAI.js +0 -1
- package/dist/lime-elements/p-BlJd1RC5.js +0 -1
- package/dist/lime-elements/p-C6SEjICu.js +0 -1
- package/dist/lime-elements/p-CqEHNkif.js +0 -1
- package/dist/lime-elements/p-Cs5T63LB.js +0 -1
- package/dist/lime-elements/p-Cw1B5fXE.js +0 -1
- package/dist/lime-elements/p-DKxusNKT.js +0 -1
- package/dist/lime-elements/p-DrjUjEz3.js +0 -1
- package/dist/lime-elements/p-DzlmgobW.js +0 -1
- package/dist/lime-elements/p-ZcW3uvZL.js +0 -1
- package/dist/lime-elements/p-a4a09ce9.entry.js +0 -7
- package/dist/lime-elements/p-c4e2885d.entry.js +0 -16
- package/dist/lime-elements/p-ee80a6f2.entry.js +0 -1
- package/dist/lime-elements/p-ooVD-6_a.js +0 -1
- package/dist/types/components/form/fields/types.d.ts +0 -41
- package/dist/types/components/form/schema-cache.d.ts +0 -17
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as e}from"./p-BFTU3MAI.js";import{s as t,v as n,e as r,f as i,g as o,E as a,z as s,h as l,i as c,B as u,u as h,a as f,b as d,r as p,d as g}from"./p-B4YDb6f3.js";function m(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 b={};function k(e){return y(e,"boolean"!=typeof b.includeImageAlt||b.includeImageAlt,"boolean"!=typeof b.includeHtml||b.includeHtml)}function y(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 v(e.children,t,n)}return Array.isArray(e)?v(e,t,n):""}function v(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=y(e[i],t,n);return r.join("")}const w={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:""},E={}.hasOwnProperty;function S(e){return!!E.call(w,e)&&w[e]}function T(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 x(e,t){return e.length>0?(T(e,e.length,0,t),e):t}const C={}.hasOwnProperty;function A(e){const t={};let n=-1;for(;++n<e.length;)D(t,e[n]);return t}function D(e,t){let n;for(n in t){const r=(C.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){C.call(r,o)||(r[o]=[]);const e=i[o];R(r[o],Array.isArray(e)?e:e?[e]:[])}}}function R(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);T(e,0,0,r)}function _(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 L(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const N=G(/\p{P}/u),O=G(/[A-Za-z]/),I=G(/[\dA-Za-z]/),M=G(/[#-'*+\--9=?A-Z^-~]/);function P(e){return null!==e&&(e<32||127===e)}const q=G(/\d/),F=G(/[\dA-Fa-f]/),B=G(/[!-/:-@[-`{-~]/);function U(e){return null!==e&&e<-2}function H(e){return null!==e&&(e<0||32===e)}function z(e){return-2===e||-1===e||32===e}function j(e){return B(e)||N(e)}const V=G(/\s/);function G(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function $(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(37===o&&I(e.charCodeAt(n+1))&&I(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 Y(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return z(r)?(e.enter(n),a(r)):t(r)};function a(r){return z(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}const W={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"),Y(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)):U(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},Q={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 T(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(X,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(X,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)):U(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++;T(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}}},X={tokenize:function(e,t,n){return Y(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function K(e){return null===e||H(e)||V(e)?1:j(e)?2:void 0}function Z(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 J={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=K(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=K(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);ee(h,-s),ee(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=x(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=x(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=x(l,Z(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=x(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=x(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,T(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 ee(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const te={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 O(t)?(e.consume(t),o):l(t)}function o(e){return 43===e||45===e||46===e||I(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||I(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||P(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):M(t)?(e.consume(t),l):n(t)}function c(e){return I(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||I(t))&&r++<63){const n=45===t?h:u;return e.consume(t),n}return n(t)}}},ne={tokenize:function(e,t,n){return function(t){return z(t)?Y(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||U(e)?t(e):n(e)}},partial:!0},re={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 z(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 z(t)?Y(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(re,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}},ie={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 B(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},oe={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=I,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=F,c):(e.enter("characterReferenceValue"),i=7,o=q,c(t))}function c(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==I||S(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)}}},ae={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},se={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"),z(t)?Y(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"),z(t)?Y(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||U(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"),z(t)?Y(e,c,"whitespace")(t):c(t))}function c(n){return null===n||U(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(ae,d,k)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||U(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):z(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Y(e,h,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function h(t){return null===t||U(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||U(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&&z(t)?Y(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||U(t)?e.check(ae,d,k)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||U(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),b)}function k(n){return e.exit("codeFenced"),t(n)}},concrete:!0},le={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Y(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):U(t)?e.attempt(ce,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||U(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},ce={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):U(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Y(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):U(e)?i(e):n(e)}},partial:!0},ue={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)):U(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||U(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 he(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,fe(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),T(e,r,c-r+1,a))}}return!l}function fe(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]),T(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 de={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):U(t)?e.check(pe,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 he(e),e}},pe={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Y(e,i,"linePrefix")};function i(i){if(null===i||U(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 ge(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||P(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||U(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&&!H(i)?u<c&&40===i?(e.consume(i),u++,p):41===i?(e.consume(i),u--,p):null===i||32===i||40===i||P(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 me(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):U(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||U(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!z(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function be(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):U(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Y(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||U(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 ke(e,t){let n;return function r(i){return U(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):z(i)?Y(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const ye={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return me.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=L(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 H(t)?ke(e,s)(t):s(t)}function s(t){return ge(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(ve,c,c)(t)}function c(t){return z(t)?Y(e,u,"whitespace")(t):u(t)}function u(o){return null===o||U(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},ve={tokenize:function(e,t,n){return function(t){return H(t)?ke(e,r)(t):n(t)};function r(t){return be(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return z(t)?Y(e,o,"whitespace")(t):o(t)}function o(e){return null===e||U(e)?t(e):n(e)}},partial:!0},we={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return U(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Ee={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||H(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||U(n)?(e.exit("atxHeading"),t(n)):z(n)?Y(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||H(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"},T(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},Se=["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"],Te=["pre","script","style","textarea"],xe={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):O(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(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 O(t)?(e.consume(t),a=String.fromCharCode(t),p):n(t)}function p(s){if(null===s||47===s||62===s||H(s)){const l=47===s,c=a.toLowerCase();return l||o||!Te.includes(c)?Se.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||I(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 z(t)?(e.consume(t),m):T(t)}function b(t){return 47===t?(e.consume(t),T):58===t||95===t||O(t)?(e.consume(t),k):z(t)?(e.consume(t),b):T(t)}function k(t){return 45===t||46===t||58===t||95===t||I(t)?(e.consume(t),k):y(t)}function y(t){return 61===t?(e.consume(t),v):z(t)?(e.consume(t),y):b(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):z(t)?(e.consume(t),v):E(t)}function w(t){return t===l?(e.consume(t),l=null,S):null===t||U(t)?n(t):(e.consume(t),w)}function E(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||H(t)?y(t):(e.consume(t),E)}function S(e){return 47===e||62===e||z(e)?b(e):n(e)}function T(t){return 62===t?(e.consume(t),x):n(t)}function x(t){return null===t||U(t)?C(t):z(t)?(e.consume(t),x):n(t)}function C(t){return 45===t&&2===i?(e.consume(t),_):60===t&&1===i?(e.consume(t),L):62===t&&4===i?(e.consume(t),q):63===t&&3===i?(e.consume(t),P):93===t&&5===i?(e.consume(t),M):!U(t)||6!==i&&7!==i?null===t||U(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(Ce,F,A)(t))}function A(t){return e.check(Ae,D,F)(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return null===t||U(t)?A(t):(e.enter("htmlFlowData"),C(t))}function _(t){return 45===t?(e.consume(t),P):C(t)}function L(t){return 47===t?(e.consume(t),a="",N):C(t)}function N(t){if(62===t){const n=a.toLowerCase();return Te.includes(n)?(e.consume(t),q):C(t)}return O(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),N):C(t)}function M(t){return 93===t?(e.consume(t),P):C(t)}function P(t){return 62===t?(e.consume(t),q):45===t&&2===i?(e.consume(t),P):C(t)}function q(t){return null===t||U(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),q)}function F(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},Ce={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ne,t,n)}},partial:!0},Ae={tokenize:function(e,t,n){const r=this;return function(t){return U(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},De={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),v):63===t?(e.consume(t),k):O(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,d):O(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):U(t)?(a=u,N(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?L(e):45===e?h(e):u(e)}function d(t){return t==="CDATA[".charCodeAt(o++)?(e.consume(t),6===o?p:d):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):U(t)?(a=p,N(t)):(e.consume(t),p)}function g(t){return 93===t?(e.consume(t),m):p(t)}function m(t){return 62===t?L(t):93===t?(e.consume(t),m):p(t)}function b(t){return null===t||62===t?L(t):U(t)?(a=b,N(t)):(e.consume(t),b)}function k(t){return null===t?n(t):63===t?(e.consume(t),y):U(t)?(a=k,N(t)):(e.consume(t),k)}function y(e){return 62===e?L(e):k(e)}function v(t){return O(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||I(t)?(e.consume(t),w):E(t)}function E(t){return U(t)?(a=E,N(t)):z(t)?(e.consume(t),E):L(t)}function S(t){return 45===t||I(t)?(e.consume(t),S):47===t||62===t||H(t)?T(t):n(t)}function T(t){return 47===t?(e.consume(t),L):58===t||95===t||O(t)?(e.consume(t),x):U(t)?(a=T,N(t)):z(t)?(e.consume(t),T):L(t)}function x(t){return 45===t||46===t||58===t||95===t||I(t)?(e.consume(t),x):C(t)}function C(t){return 61===t?(e.consume(t),A):U(t)?(a=C,N(t)):z(t)?(e.consume(t),C):T(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):U(t)?(a=A,N(t)):z(t)?(e.consume(t),A):(e.consume(t),R)}function D(t){return t===i?(e.consume(t),i=void 0,_):null===t?n(t):U(t)?(a=D,N(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||H(t)?T(t):(e.consume(t),R)}function _(e){return 47===e||62===e||H(e)?T(e):n(e)}function L(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function N(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return z(t)?Y(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)}}},Re={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(L(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(_e,c,o?c:u)(t):91===t?e.attempt(Le,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(Ne,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=x(o,e.slice(r+1,r+s+3)),o=x(o,[["enter",u,t]]),o=x(o,Z(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=x(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=x(o,e.slice(i+1)),o=x(o,[["exit",l,t]]),T(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}},_e={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 H(t)?ke(e,i)(t):i(t)}function i(t){return 41===t?c(t):ge(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return H(t)?ke(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?be(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return H(t)?ke(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)}}},Le={tokenize:function(e,t,n){const r=this;return function(t){return me.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(L(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},Ne={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)}}},Oe={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:Re.resolveAll},Ie={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:Re.resolveAll},Me={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Y(e,t,"linePrefix")}}},Pe={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||U(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),z(t)?Y(e,o,"whitespace")(t):o(t))}}},qe={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:q(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(Pe,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 q(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(ne,r.interrupt?n:c,e.attempt(Fe,h,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return z(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(ne,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!z(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(Be,t,i)(n))}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(e,e.attempt(qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Fe={tokenize:function(e,t,n){const r=this;return Y(e,(function(e){const i=r.events[r.events.length-1];return!z(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Be={tokenize:function(e,t,n){const r=this;return Y(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},Ue={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"),z(t)?Y(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||U(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}},He={tokenize:function(e){const t=this,n=e.attempt(ne,(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,Y(e,e.attempt(this.parser.constructs.flow,r,e.attempt(de,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)}}},ze={resolveAll:$e()},je=Ge("string"),Ve=Ge("text");function Ge(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:$e("text"===e?Ye:void 0)}}function $e(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 Ye(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 We(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){U(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=x(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=Z(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&&T(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 Qe=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:ye},disable:{null:[]},document:{42:qe,43:qe,45:qe,48:qe,49:qe,50:qe,51:qe,52:qe,53:qe,54:qe,55:qe,56:qe,57:qe,62:re},flow:{35:Ee,42:Pe,45:[Ue,Pe],60:xe,61:Ue,95:Pe,96:se,126:se},flowInitial:{[-2]:le,[-1]:le,32:le},insideSpan:{null:[J,ze]},string:{38:oe,92:ie},text:{[-5]:Me,[-4]:Me,[-3]:Me,33:Oe,38:oe,42:J,60:[te,De],91:Ie,92:[we,ie],93:Re,95:J,96:ue}});const Xe=/[\0\t\n\r]/g,Ke=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ze(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return _(n.slice(t?2:1),t?16:10)}return S(n)||e}function Je(e){return e&&"object"==typeof e?"position"in e||"type"in e?tt(e.position):"start"in e||"end"in e?tt(e):"line"in e||"column"in e?et(e):"":""}function et(e){return nt(e&&e.line)+":"+nt(e&&e.column)}function tt(e){return et(e&&e.start)+"-"+et(e&&e.end)}function nt(e){return e&&"number"==typeof e?e:1}const rt={}.hasOwnProperty;function it(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(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(g),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(m),hardBreakTrailing:i(m),htmlFlow:i(b,o),htmlFlowData:u,htmlText:i(b,o),htmlTextData:u,image:i((function(){return{type:"image",title:null,url:"",alt:null}})),label:o,link:i(y),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(v,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:i(v),paragraph:i((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(g),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=_(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=S(t);const i=this.stack.pop();i.value+=r,i.position.end=ot(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=L(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(Ke,Ze)}(t),n.identifier=L(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=ot(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=L(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()}};at(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]];rt.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]||lt).call(s,void 0,e[0])}for(i.position={start:ot(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ot(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:ot(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+"` ("+Je({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||lt).call(this,e,r[0])),n.position.end=ot(e.end)}function c(){return k(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:ot(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=ot(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 g(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function b(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!he(e););return e}(function(e){const t={defined:[],lazy:{},constructs:A([Qe,...(e||{}).extensions||[]]),content:n(W),document:n(Q),flow:n(He),string:n(je),text:n(Ve)};return t;function n(e){return function(n){return We(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(Xe.lastIndex=u,l=Xe.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 ot(e){return{line:e.line,column:e.column,offset:e.offset}}function at(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?at(e,r):st(e,r)}}function st(e,t){let n;for(n in t)if(rt.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 lt(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Je({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Je({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Je({start:t.start,end:t.end})+") is still open")}function ct(e){const t=this;t.parser=function(n){return it(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ut(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 ht(e){const t=e.spread;return null==t?e.children.length>1:t}const ft=pt("end"),dt=pt("start");function pt(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 gt(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(mt(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(mt(t.slice(i),i>0,!1)),o.join("")}function mt(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 bt={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={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},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=$(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 ut(e,t);const i={src:$(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:$(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 ut(e,t);const i={href:$(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:$(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=ht(n[r])}return t}(n):ht(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=dt(t.children[1]),a=ft(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:gt(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:kt,yaml:kt,definition:kt,footnoteDefinition:kt};function kt(){}function yt(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 vt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const wt={}.hasOwnProperty,Et={};function St(e,t){e.position&&(t.position=function(e){const t=dt(e),n=ft(e);if(t&&n)return{start:t,end:n}}(e))}function Tt(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 xt(e,t){const n=t.data||{},r=!("value"in t)||wt.call(n,"hProperties")||wt.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 Ct(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 At(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Dt(e,r){const i=function(e,r){const i=r||Et,o=new Map,a=new Map,s=new Map,l={...bt,...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=At(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=At(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:Tt,definitionById:o,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:l,one:function(e,n){const r=e.type,i=c.handlers[r];if(wt.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||xt)(c,e,n)},options:i,patch:St,wrap:Ct};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||yt,i=e.options.footnoteBackLabel||vt,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=$(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 Rt(e,t){return e&&"run"in e?async function(n,r){const i=Dt(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Dt(n,{file:r,...e||t})}}function _t(e){return"function"==typeof e?e:function(){return e}}const Lt="phrasing",Nt=["autolink","link","image","label"];function Ot(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function It(e){this.config.enter.autolinkProtocol.call(this,e)}function Mt(e){this.config.exit.autolinkProtocol.call(this,e)}function Pt(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}function qt(e){this.config.exit.autolinkEmail.call(this,e)}function Ft(e){this.exit(e)}function Bt(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),_t(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,Ut],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Ht]],{ignore:["link","linkReference"]})}function Ut(e,t,n,r,i){let a="";if(!zt(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",a="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 s=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=o(e,"(");let a=o(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}(n+r);if(!s[0])return!1;const l={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function Ht(e,t,n,r){return!(!zt(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function zt(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||V(n)||j(n))&&(!t||47!==n)}function jt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Vt(){this.buffer()}function Gt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=L(this.sliceSerialize(e)).toLowerCase()}function $t(e){this.exit(e)}function Yt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Wt(){this.buffer()}function Qt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=L(this.sliceSerialize(e)).toLowerCase()}function Xt(e){this.exit(e)}function Kt(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 Zt(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()),Jt)),a(),o}function Jt(e,t,n){return 0===t?e:(n?"":" ")+e}Kt.peek=function(){return"["};const en=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function tn(e){this.enter({type:"delete",children:[]},e)}function nn(e){this.exit(e)}function rn(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 on(e){return e.length}function an(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 sn(e,t,n){return">"+(n?"":" ")+e}function ln(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 cn(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&(ln(o=n.stack,(a=n.unsafe[i]).inConstruct,!0)&&!ln(o,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var o,a;return"\\\n"}function un(e,t,n){return(n?"":" ")+e}function hn(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 fn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function dn(e,t,n){const r=K(e),i=K(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function pn(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),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=dn(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=fn(c)+l.slice(1));const h=l.charCodeAt(l.length-1),f=dn(r.after.charCodeAt(0),h,i);f.inside&&(l=l.slice(0,-1)+fn(h));const d=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+d}function gn(e){return e.value||""}function mn(e,t,n,r){const i=hn(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 bn(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 kn(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 yn(e,t){const n=k(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=hn(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(yn(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 En(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}rn.peek=function(){return"~"},pn.peek=function(e,t,n){return n.options.emphasis||"*"},gn.peek=function(){return"<"},mn.peek=function(){return"!"},bn.peek=function(){return"!"},kn.peek=function(){return"`"},vn.peek=function(e,t,n){return yn(e,n)?"<":"["},wn.peek=function(){return"["};const Tn=r(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);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),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=dn(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=fn(c)+l.slice(1));const h=l.charCodeAt(l.length-1),f=dn(r.after.charCodeAt(0),h,i);f.inside&&(l=l.slice(0,-1)+fn(h));const d=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+d}xn.peek=function(e,t,n){return n.options.strong||"*"};const Cn={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()),sn);return i(),a},break:cn,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,un);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(function(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}(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=hn(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:pn,hardBreak:cn,heading:function(e,t,r,i){const o=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,a})),Boolean((!e.depth||e.depth<3)&&k(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===o?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const l="#".repeat(o),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=fn(h.charCodeAt(0))+h.slice(1)),h=h?l+" "+h:l,r.options.closeAtx&&(h+=" "+l),u(),c(),h},html:gn,image:mn,imageReference:bn,inlineCode:kn,link:vn,linkReference:wn,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):En(n);const s=e.ordered?"."===a?")":".":function(e){const t=En(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||En(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:xn,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 An(e){this.enter({type:"table",align:e._align.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function Dn(e){this.exit(e),this.data.inTable=void 0}function Rn(e){this.enter({type:"tableRow",children:[]},e)}function _n(e){this.exit(e)}function Ln(e){this.enter({type:"tableCell",children:[]},e)}function Nn(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 In(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=Cn.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||on,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]=an(n[h]);else{const e=an(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 Mn(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Pn(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 qn(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=Cn.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}const Fn={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},Bn={tokenize:function(e,t,n){let r,i,o;return a;function a(t){return 46===t||95===t?e.check(Hn,l,s)(t):null===t||H(t)||V(t)||45!==t&&j(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},Un={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(Hn,t,o)(a):null===a||H(a)||V(a)?t(a):(e.consume(a),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},Hn={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||H(a)||V(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||H(e)||V(e)?t(e):r(e)}function o(e){return O(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):O(t)?(e.consume(t),a):n(t)}},partial:!0},zn={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return I(e)?n(e):t(e)}},partial:!0},jn={tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!Wn.call(r,r.previous)||Zn(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Fn,e.attempt(Bn,e.attempt(Un,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Wn},Vn={tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){return 72!==t&&104!==t||!Qn.call(r,r.previous)||Zn(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a)};function a(t){if(O(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||P(t)||H(t)||V(t)||j(t)?n(t):e.attempt(Bn,e.attempt(Un,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Qn},Gn={tokenize:function(e,t,n){const r=this;let i,o;return function(t){return Kn(t)&&Xn.call(r,r.previous)&&!Zn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)):n(t)};function a(t){return Kn(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(zn,c,l)(t):45===t||95===t||I(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&&O(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:Xn},$n={};let Yn=48;for(;Yn<123;)$n[Yn]=Gn,Yn++,58===Yn?Yn=65:91===Yn&&(Yn=97);function Wn(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||H(e)}function Qn(e){return!O(e)}function Xn(e){return!(47===e||Kn(e))}function Kn(e){return 43===e||45===e||46===e||95===e||I(e)}function Zn(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}$n[43]=Gn,$n[45]=Gn,$n[46]=Gn,$n[95]=Gn,$n[72]=[Gn,Vn],$n[104]=[Gn,Vn],$n[87]=[Gn,jn],$n[119]=[Gn,jn];const Jn={tokenize:function(e,t,n){const r=this;return Y(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 er(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=L(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 tr(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 nr(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||H(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(L(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return H(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 rr(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||H(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=L(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return H(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),Y(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function ir(e,t,n){return e.check(ne,t,e.attempt(Jn,t,n))}function or(e){e.exit("gfmFootnoteDefinition")}function ar(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=K(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=K(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&&T(a,a.length,0,Z(s,e.slice(r+1,n),t)),T(a,a.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),T(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 lr(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?v:s;return o===v&&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):U(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):z(t)?Y(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||H(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,z(t)?Y(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 z(t)?Y(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||U(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 z(t)?Y(e,k,"whitespace")(t):k(t)}function k(n){return 124===n?f(n):(null===n||U(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function v(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||U(n)?(e.exit("tableRow"),t(n)):z(n)?Y(e,w,"whitespace")(n):(e.enter("data"),E(n))}function E(t){return null===t||124===t||H(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?S:E)}function S(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function ur(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&&(fr(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=hr(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=hr(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=hr(f,t,l,s,o,i)):0!==c[1]&&(i=hr(f,t,c,s,o,i)),s=0):!s||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(c[3]=o)}for(0!==h&&fr(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=lr(t.events,o))}return e}function hr(e,t,n,r,i,o){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},dr(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=dr(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=dr(t.events,n[2]),o=dr(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({},dr(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function fr(e,t,n,r,i){const o=[],a=dr(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 dr(e,t){const n=e[t];return n[1]["enter"===n[0]?"start":"end"]}const pr={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 H(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 U(r)?t(r):z(r)?e.check({tokenize:gr},t,n)(r):n(r)}}};function gr(e,t,n){return Y(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const mr={};function br(e){const t=e||mr,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return A([{text:$n},{document:{91:{tokenize:rr,continuation:{tokenize:ir},exit:or}},text:{91:{tokenize:nr},93:{add:"after",tokenize:er,resolveTo:tr}}},ar(e),{flow:{null:{tokenize:cr,resolveAll:ur}}},{text:{91:pr}}])}(t)),i.push([{transforms:[Bt],enter:{literalAutolink:Ot,literalAutolinkEmail:It,literalAutolinkHttp:It,literalAutolinkWww:It},exit:{literalAutolink:Ft,literalAutolinkEmail:qt,literalAutolinkHttp:Mt,literalAutolinkWww:Pt}},{enter:{gfmFootnoteDefinition:jt,gfmFootnoteDefinitionLabelString:Vt,gfmFootnoteCall:Yt,gfmFootnoteCallString:Wt},exit:{gfmFootnoteDefinition:$t,gfmFootnoteDefinitionLabelString:Gt,gfmFootnoteCall:Xt,gfmFootnoteCallString:Qt}},{canContainEols:["delete"],enter:{strikethrough:tn},exit:{strikethrough:nn}},{enter:{table:An,tableData:Ln,tableHeader:Ln,tableRow:Rn},exit:{codeText:Nn,table:Dn,tableData:_n,tableHeader:_n,tableRow:_n}},{exit:{taskListCheckValueChecked:Mn,taskListCheckValueUnchecked:Mn,paragraph:Pn}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Lt,notInConstruct:Nt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Lt,notInConstruct:Nt},{character:":",before:"[ps]",after:"\\/",inConstruct:Lt,notInConstruct:Nt}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Zt,footnoteReference:Kt}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:en}],handlers:{delete:rn}},In(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qn}}]}}(t))}let kr=class{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}};function yr(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 kr(n,r,t)}function vr(e){return e.toLowerCase()}kr.prototype.property={},kr.prototype.normal={},kr.prototype.space=null;let wr=class{constructor(e,t){this.property=e,this.attribute=t}};wr.prototype.space=null,wr.prototype.boolean=!1,wr.prototype.booleanish=!1,wr.prototype.overloadedBoolean=!1,wr.prototype.number=!1,wr.prototype.commaSeparated=!1,wr.prototype.spaceSeparated=!1,wr.prototype.commaOrSpaceSeparated=!1,wr.prototype.mustUseProperty=!1,wr.prototype.defined=!1;let Er=0;const Sr=_r(),Tr=_r(),xr=_r(),Cr=_r(),Ar=_r(),Dr=_r(),Rr=_r();function _r(){return 2**++Er}var Lr=Object.freeze({__proto__:null,boolean:Sr,booleanish:Tr,commaOrSpaceSeparated:Rr,commaSeparated:Dr,number:Cr,overloadedBoolean:xr,spaceSeparated:Ar});const Nr=Object.keys(Lr);let Or=class extends wr{constructor(e,t,n,r){let i=-1;if(super(e,t),Ir(this,"space",r),"number"==typeof n)for(;++i<Nr.length;){const e=Nr[i];Ir(this,Nr[i],(n&Lr[e])===Lr[e])}}};function Ir(e,t,n){n&&(e[t]=n)}Or.prototype.defined=!0;const Mr={}.hasOwnProperty;function Pr(e){const t={},n={};let r;for(r in e.properties)if(Mr.call(e.properties,r)){const i=e.properties[r],o=new Or(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[vr(r)]=r,n[vr(o.attribute)]=r}return new kr(t,n,e.space)}const qr=Pr({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}}),Fr=Pr({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Br(e,t){return t in e?e[t]:t}function Ur(e,t){return Br(e,t.toLowerCase())}const Hr=Pr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ur,properties:{xmlns:null,xmlnsXLink:null}}),zr=Pr({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Tr,ariaAutoComplete:null,ariaBusy:Tr,ariaChecked:Tr,ariaColCount:Cr,ariaColIndex:Cr,ariaColSpan:Cr,ariaControls:Ar,ariaCurrent:null,ariaDescribedBy:Ar,ariaDetails:null,ariaDisabled:Tr,ariaDropEffect:Ar,ariaErrorMessage:null,ariaExpanded:Tr,ariaFlowTo:Ar,ariaGrabbed:Tr,ariaHasPopup:null,ariaHidden:Tr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ar,ariaLevel:Cr,ariaLive:null,ariaModal:Tr,ariaMultiLine:Tr,ariaMultiSelectable:Tr,ariaOrientation:null,ariaOwns:Ar,ariaPlaceholder:null,ariaPosInSet:Cr,ariaPressed:Tr,ariaReadOnly:Tr,ariaRelevant:null,ariaRequired:Tr,ariaRoleDescription:Ar,ariaRowCount:Cr,ariaRowIndex:Cr,ariaRowSpan:Cr,ariaSelected:Tr,ariaSetSize:Cr,ariaSort:null,ariaValueMax:Cr,ariaValueMin:Cr,ariaValueNow:Cr,ariaValueText:null,role:null}}),jr=Pr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ur,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dr,acceptCharset:Ar,accessKey:Ar,action:null,allow:null,allowFullScreen:Sr,allowPaymentRequest:Sr,allowUserMedia:Sr,alt:null,as:null,async:Sr,autoCapitalize:null,autoComplete:Ar,autoFocus:Sr,autoPlay:Sr,blocking:Ar,capture:Sr,charSet:null,checked:Sr,cite:null,className:Ar,cols:Cr,colSpan:null,content:null,contentEditable:Tr,controls:Sr,controlsList:Ar,coords:Cr|Dr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Sr,defer:Sr,dir:null,dirName:null,disabled:Sr,download:xr,draggable:Tr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Sr,formTarget:null,headers:Ar,height:Cr,hidden:Sr,high:Cr,href:null,hrefLang:null,htmlFor:Ar,httpEquiv:Ar,id:null,imageSizes:null,imageSrcSet:null,inert:Sr,inputMode:null,integrity:null,is:null,isMap:Sr,itemId:null,itemProp:Ar,itemRef:Ar,itemScope:Sr,itemType:Ar,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Sr,low:Cr,manifest:null,max:null,maxLength:Cr,media:null,method:null,min:null,minLength:Cr,multiple:Sr,muted:Sr,name:null,nonce:null,noModule:Sr,noValidate:Sr,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:Sr,optimum:Cr,pattern:null,ping:Ar,placeholder:null,playsInline:Sr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Sr,referrerPolicy:null,rel:Ar,required:Sr,reversed:Sr,rows:Cr,rowSpan:Cr,sandbox:Ar,scope:null,scoped:Sr,seamless:Sr,selected:Sr,shape:null,size:Cr,sizes:null,slot:null,span:Cr,spellCheck:Tr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Cr,step:null,style:null,tabIndex:Cr,target:null,title:null,translate:null,type:null,typeMustMatch:Sr,useMap:null,value:Tr,width:Cr,wrap:null,align:null,aLink:null,archive:Ar,axis:null,background:null,bgColor:null,border:Cr,borderColor:null,bottomMargin:Cr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Sr,declare:Sr,event:null,face:null,frame:null,frameBorder:null,hSpace:Cr,leftMargin:Cr,link:null,longDesc:null,lowSrc:null,marginHeight:Cr,marginWidth:Cr,noResize:Sr,noHref:Sr,noShade:Sr,noWrap:Sr,object:null,profile:null,prompt:null,rev:null,rightMargin:Cr,rules:null,scheme:null,scrolling:Tr,standby:null,summary:null,text:null,topMargin:Cr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Cr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Sr,disableRemotePlayback:Sr,prefix:null,property:null,results:Cr,security:null,unselectable:null}}),Vr=Pr({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:Br,properties:{about:Rr,accentHeight:Cr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Cr,amplitude:Cr,arabicForm:null,ascent:Cr,attributeName:null,attributeType:null,azimuth:Cr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Cr,by:null,calcMode:null,capHeight:Cr,className:Ar,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:Cr,diffuseConstant:Cr,direction:null,display:null,dur:null,divisor:Cr,dominantBaseline:null,download:Sr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Cr,enableBackground:null,end:null,event:null,exponent:Cr,externalResourcesRequired:null,fill:null,fillOpacity:Cr,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:Dr,g2:Dr,glyphName:Dr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Cr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Cr,horizOriginX:Cr,horizOriginY:Cr,id:null,ideographic:Cr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Cr,k:Cr,k1:Cr,k2:Cr,k3:Cr,k4:Cr,kernelMatrix:Rr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Cr,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:Cr,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:Cr,overlineThickness:Cr,paintOrder:null,panose1:null,path:null,pathLength:Cr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ar,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Cr,pointsAtY:Cr,pointsAtZ:Cr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Rr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Rr,rev:Rr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Rr,requiredFeatures:Rr,requiredFonts:Rr,requiredFormats:Rr,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:Cr,specularExponent:Cr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Cr,strikethroughThickness:Cr,string:null,stroke:null,strokeDashArray:Rr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Cr,strokeOpacity:Cr,strokeWidth:null,style:null,surfaceScale:Cr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Rr,tabIndex:Cr,tableValues:null,target:null,targetX:Cr,targetY:Cr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Rr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Cr,underlineThickness:Cr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Cr,values:null,vAlphabetic:Cr,vMathematical:Cr,vectorEffect:null,vHanging:Cr,vIdeographic:Cr,version:null,vertAdvY:Cr,vertOriginX:Cr,vertOriginY:Cr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Cr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Gr=/^data[-\w.:]+$/i,$r=/-[a-z]/g,Yr=/[A-Z]/g;function Wr(e,t){const n=vr(t);let r=t,i=wr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Gr.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace($r,Xr);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!$r.test(e)){let n=e.replace(Yr,Qr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Or}return new i(r,t)}function Qr(e){return"-"+e.toLowerCase()}function Xr(e){return e.charAt(1).toUpperCase()}const Kr=yr([Fr,qr,Hr,zr,jr],"html"),Zr=yr([Fr,qr,Hr,zr,Vr],"svg");function Jr(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 ei=/[#.]/g;function ti(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const ni=new Set(["button","menu","reset","submit"]),ri={}.hasOwnProperty;function ii(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;){ei.lastIndex=a;const e=ei.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&&ri.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?!ni.has(l.type.toLowerCase()):"value"in l)))o.unshift(i);else{let t;for(t in i)ri.call(i,t)&&oi(e,a.properties,t,i[t])}for(var l,c;++s<o.length;)ai(a.children,o[s]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function oi(e,t,n,r){const i=Wr(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?ti(r):i.commaSeparated?Jr(r):i.commaOrSpaceSeparated?ti(Jr(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)ri.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 ai(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;)ai(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?ai(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||vr(n)===vr(t)))return!0}return n}const li=ii(Kr,"div"),ci=ii(Zr,"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"]),ui=/\r?\n|\r/g,hi="http://www.w3.org/1999/xhtml",fi="http://www.w3.org/2000/svg",di={}.hasOwnProperty,pi=Object.prototype;function gi(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},bi(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:mi(e,t.childNodes),data:{quirksMode:r}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];for(ui.lastIndex=0;ui.test(t);)n.push(ui.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"},bi(e,t,n),n;case"#text":return n={type:"text",value:t.value},bi(e,t,n),n;default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===fi?Zr:Kr;let r=-1;const i={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;di.call(pi,n)||(i[n]=e.value)}const o=("svg"===e.schema.space?ci:li)(t.tagName,i,mi(e,t.childNodes));if(bi(e,t,o),"template"===o.tagName){const n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&yi(r.startTag),a=r&&r.endTag&&yi(r.endTag),s=gi(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 mi(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=gi(e,t[n]);r.push(i)}return r}function bi(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=ki(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function ki(e,t,n){const r=yi(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)di.call(n.attrs,i)&&(r[Wr(e.schema,i).property]=yi(n.attrs[i]));const o=yi(n.startTag),a=n.endTag?yi(n.endTag):void 0,s={opening:o};a&&(s.closing=a),s.properties=r,t.data={position:s}}}return r}function yi(e){const t=vi({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=vi({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function vi(e){return e.line&&e.column?e:void 0}class wi{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Ei(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 wi(n,r,t)}function Si(e){return e.toLowerCase()}wi.prototype.property={},wi.prototype.normal={},wi.prototype.space=null;class Ti{constructor(e,t){this.property=e,this.attribute=t}}Ti.prototype.space=null,Ti.prototype.boolean=!1,Ti.prototype.booleanish=!1,Ti.prototype.overloadedBoolean=!1,Ti.prototype.number=!1,Ti.prototype.commaSeparated=!1,Ti.prototype.spaceSeparated=!1,Ti.prototype.commaOrSpaceSeparated=!1,Ti.prototype.mustUseProperty=!1,Ti.prototype.defined=!1;let xi=0;const Ci=Oi(),Ai=Oi(),Di=Oi(),Ri=Oi(),_i=Oi(),Li=Oi(),Ni=Oi();function Oi(){return 2**++xi}var Ii=Object.freeze({__proto__:null,boolean:Ci,booleanish:Ai,commaOrSpaceSeparated:Ni,commaSeparated:Li,number:Ri,overloadedBoolean:Di,spaceSeparated:_i});const Mi=Object.keys(Ii);class Pi extends Ti{constructor(e,t,n,r){let i=-1;if(super(e,t),qi(this,"space",r),"number"==typeof n)for(;++i<Mi.length;){const e=Mi[i];qi(this,Mi[i],(n&Ii[e])===Ii[e])}}}function qi(e,t,n){n&&(e[t]=n)}Pi.prototype.defined=!0;const Fi={}.hasOwnProperty;function Bi(e){const t={},n={};let r;for(r in e.properties)if(Fi.call(e.properties,r)){const i=e.properties[r],o=new Pi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Si(r)]=r,n[Si(o.attribute)]=r}return new wi(t,n,e.space)}const Ui=Bi({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}}),Hi=Bi({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function zi(e,t){return t in e?e[t]:t}function ji(e,t){return zi(e,t.toLowerCase())}const Vi=Bi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ji,properties:{xmlns:null,xmlnsXLink:null}}),Gi=Bi({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Ai,ariaAutoComplete:null,ariaBusy:Ai,ariaChecked:Ai,ariaColCount:Ri,ariaColIndex:Ri,ariaColSpan:Ri,ariaControls:_i,ariaCurrent:null,ariaDescribedBy:_i,ariaDetails:null,ariaDisabled:Ai,ariaDropEffect:_i,ariaErrorMessage:null,ariaExpanded:Ai,ariaFlowTo:_i,ariaGrabbed:Ai,ariaHasPopup:null,ariaHidden:Ai,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_i,ariaLevel:Ri,ariaLive:null,ariaModal:Ai,ariaMultiLine:Ai,ariaMultiSelectable:Ai,ariaOrientation:null,ariaOwns:_i,ariaPlaceholder:null,ariaPosInSet:Ri,ariaPressed:Ai,ariaReadOnly:Ai,ariaRelevant:null,ariaRequired:Ai,ariaRoleDescription:_i,ariaRowCount:Ri,ariaRowIndex:Ri,ariaRowSpan:Ri,ariaSelected:Ai,ariaSetSize:Ri,ariaSort:null,ariaValueMax:Ri,ariaValueMin:Ri,ariaValueNow:Ri,ariaValueText:null,role:null}}),$i=Bi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ji,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Li,acceptCharset:_i,accessKey:_i,action:null,allow:null,allowFullScreen:Ci,allowPaymentRequest:Ci,allowUserMedia:Ci,alt:null,as:null,async:Ci,autoCapitalize:null,autoComplete:_i,autoFocus:Ci,autoPlay:Ci,blocking:_i,capture:Ci,charSet:null,checked:Ci,cite:null,className:_i,cols:Ri,colSpan:null,content:null,contentEditable:Ai,controls:Ci,controlsList:_i,coords:Ri|Li,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ci,defer:Ci,dir:null,dirName:null,disabled:Ci,download:Di,draggable:Ai,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ci,formTarget:null,headers:_i,height:Ri,hidden:Ci,high:Ri,href:null,hrefLang:null,htmlFor:_i,httpEquiv:_i,id:null,imageSizes:null,imageSrcSet:null,inert:Ci,inputMode:null,integrity:null,is:null,isMap:Ci,itemId:null,itemProp:_i,itemRef:_i,itemScope:Ci,itemType:_i,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ci,low:Ri,manifest:null,max:null,maxLength:Ri,media:null,method:null,min:null,minLength:Ri,multiple:Ci,muted:Ci,name:null,nonce:null,noModule:Ci,noValidate:Ci,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:Ci,optimum:Ri,pattern:null,ping:_i,placeholder:null,playsInline:Ci,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ci,referrerPolicy:null,rel:_i,required:Ci,reversed:Ci,rows:Ri,rowSpan:Ri,sandbox:_i,scope:null,scoped:Ci,seamless:Ci,selected:Ci,shape:null,size:Ri,sizes:null,slot:null,span:Ri,spellCheck:Ai,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ri,step:null,style:null,tabIndex:Ri,target:null,title:null,translate:null,type:null,typeMustMatch:Ci,useMap:null,value:Ai,width:Ri,wrap:null,align:null,aLink:null,archive:_i,axis:null,background:null,bgColor:null,border:Ri,borderColor:null,bottomMargin:Ri,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ci,declare:Ci,event:null,face:null,frame:null,frameBorder:null,hSpace:Ri,leftMargin:Ri,link:null,longDesc:null,lowSrc:null,marginHeight:Ri,marginWidth:Ri,noResize:Ci,noHref:Ci,noShade:Ci,noWrap:Ci,object:null,profile:null,prompt:null,rev:null,rightMargin:Ri,rules:null,scheme:null,scrolling:Ai,standby:null,summary:null,text:null,topMargin:Ri,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ri,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ci,disableRemotePlayback:Ci,prefix:null,property:null,results:Ri,security:null,unselectable:null}}),Yi=Bi({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:zi,properties:{about:Ni,accentHeight:Ri,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ri,amplitude:Ri,arabicForm:null,ascent:Ri,attributeName:null,attributeType:null,azimuth:Ri,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ri,by:null,calcMode:null,capHeight:Ri,className:_i,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:Ri,diffuseConstant:Ri,direction:null,display:null,dur:null,divisor:Ri,dominantBaseline:null,download:Ci,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ri,enableBackground:null,end:null,event:null,exponent:Ri,externalResourcesRequired:null,fill:null,fillOpacity:Ri,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:Li,g2:Li,glyphName:Li,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ri,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ri,horizOriginX:Ri,horizOriginY:Ri,id:null,ideographic:Ri,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ri,k:Ri,k1:Ri,k2:Ri,k3:Ri,k4:Ri,kernelMatrix:Ni,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ri,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:Ri,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:Ri,overlineThickness:Ri,paintOrder:null,panose1:null,path:null,pathLength:Ri,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_i,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ri,pointsAtY:Ri,pointsAtZ:Ri,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ni,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ni,rev:Ni,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ni,requiredFeatures:Ni,requiredFonts:Ni,requiredFormats:Ni,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:Ri,specularExponent:Ri,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ri,strikethroughThickness:Ri,string:null,stroke:null,strokeDashArray:Ni,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ri,strokeOpacity:Ri,strokeWidth:null,style:null,surfaceScale:Ri,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ni,tabIndex:Ri,tableValues:null,target:null,targetX:Ri,targetY:Ri,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ni,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ri,underlineThickness:Ri,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ri,values:null,vAlphabetic:Ri,vMathematical:Ri,vectorEffect:null,vHanging:Ri,vIdeographic:Ri,version:null,vertAdvY:Ri,vertOriginX:Ri,vertOriginY:Ri,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ri,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Wi=/^data[-\w.:]+$/i,Qi=/-[a-z]/g,Xi=/[A-Z]/g;function Ki(e){return"-"+e.toLowerCase()}function Zi(e){return e.charAt(1).toUpperCase()}const Ji=Ei([Hi,Ui,Vi,Gi,$i],"html"),eo=Ei([Hi,Ui,Vi,Gi,Yi],"svg"),to={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/"},no={},ro={}.hasOwnProperty,io=s("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ao(e.children,n,t),so(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=eo);const i=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&ro.call(e.properties,o)){const t=oo(r,o,e.properties[o]);t&&i.push(t)}const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:to[r.space],childNodes:[],parentNode:null};return a.childNodes=ao(e.children,a,r),so(e,a),"template"===e.tagName&&e.content&&(a.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ao(e.children,n,t),so(e,n),n}(e.content,r)),a},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return so(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return so(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return so(e,t),t}}});function oo(e,t,n){const r=function(e,t){const n=Si(t);let r=t,i=Ti;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Wi.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Qi,Zi);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Qi.test(e)){let n=e.replace(Xi,Ki);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Pi}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=to[r.space]}return i}function ao(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=io(e[r],n);o.parentNode=t,i.push(o)}return i}function so(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 lo=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],co=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]),uo="�";var ho;!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"}(ho=ho||(ho={}));const fo="[CDATA[",po="doctype",go="script";function mo(e){return e>=55296&&e<=57343}function bo(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function ko(e){return e>=64976&&e<=65007||co.has(e)}var yo,vo,wo,Eo,So,To,xo;!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"}(yo=yo||(yo={}));class Co{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,ho.EOF;return this._err(yo.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,ho.EOF;const n=this.html.charCodeAt(t);return n===ho.CARRIAGE_RETURN?ho.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,ho.EOF;let e=this.html.charCodeAt(this.pos);return e===ho.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ho.LINE_FEED):e===ho.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,mo(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===ho.LINE_FEED||e===ho.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){bo(e)?this._err(yo.controlCharacterInInputStream):ko(e)&&this._err(yo.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function Ao(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"}(vo=vo||(vo={})),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/"}(wo=wo||(wo={})),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"}(Eo=Eo||(Eo={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(So=So||(So={})),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"}(To=To||(To={})),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"}(xo=xo||(xo={}));const Do=new Map([[To.A,xo.A],[To.ADDRESS,xo.ADDRESS],[To.ANNOTATION_XML,xo.ANNOTATION_XML],[To.APPLET,xo.APPLET],[To.AREA,xo.AREA],[To.ARTICLE,xo.ARTICLE],[To.ASIDE,xo.ASIDE],[To.B,xo.B],[To.BASE,xo.BASE],[To.BASEFONT,xo.BASEFONT],[To.BGSOUND,xo.BGSOUND],[To.BIG,xo.BIG],[To.BLOCKQUOTE,xo.BLOCKQUOTE],[To.BODY,xo.BODY],[To.BR,xo.BR],[To.BUTTON,xo.BUTTON],[To.CAPTION,xo.CAPTION],[To.CENTER,xo.CENTER],[To.CODE,xo.CODE],[To.COL,xo.COL],[To.COLGROUP,xo.COLGROUP],[To.DD,xo.DD],[To.DESC,xo.DESC],[To.DETAILS,xo.DETAILS],[To.DIALOG,xo.DIALOG],[To.DIR,xo.DIR],[To.DIV,xo.DIV],[To.DL,xo.DL],[To.DT,xo.DT],[To.EM,xo.EM],[To.EMBED,xo.EMBED],[To.FIELDSET,xo.FIELDSET],[To.FIGCAPTION,xo.FIGCAPTION],[To.FIGURE,xo.FIGURE],[To.FONT,xo.FONT],[To.FOOTER,xo.FOOTER],[To.FOREIGN_OBJECT,xo.FOREIGN_OBJECT],[To.FORM,xo.FORM],[To.FRAME,xo.FRAME],[To.FRAMESET,xo.FRAMESET],[To.H1,xo.H1],[To.H2,xo.H2],[To.H3,xo.H3],[To.H4,xo.H4],[To.H5,xo.H5],[To.H6,xo.H6],[To.HEAD,xo.HEAD],[To.HEADER,xo.HEADER],[To.HGROUP,xo.HGROUP],[To.HR,xo.HR],[To.HTML,xo.HTML],[To.I,xo.I],[To.IMG,xo.IMG],[To.IMAGE,xo.IMAGE],[To.INPUT,xo.INPUT],[To.IFRAME,xo.IFRAME],[To.KEYGEN,xo.KEYGEN],[To.LABEL,xo.LABEL],[To.LI,xo.LI],[To.LINK,xo.LINK],[To.LISTING,xo.LISTING],[To.MAIN,xo.MAIN],[To.MALIGNMARK,xo.MALIGNMARK],[To.MARQUEE,xo.MARQUEE],[To.MATH,xo.MATH],[To.MENU,xo.MENU],[To.META,xo.META],[To.MGLYPH,xo.MGLYPH],[To.MI,xo.MI],[To.MO,xo.MO],[To.MN,xo.MN],[To.MS,xo.MS],[To.MTEXT,xo.MTEXT],[To.NAV,xo.NAV],[To.NOBR,xo.NOBR],[To.NOFRAMES,xo.NOFRAMES],[To.NOEMBED,xo.NOEMBED],[To.NOSCRIPT,xo.NOSCRIPT],[To.OBJECT,xo.OBJECT],[To.OL,xo.OL],[To.OPTGROUP,xo.OPTGROUP],[To.OPTION,xo.OPTION],[To.P,xo.P],[To.PARAM,xo.PARAM],[To.PLAINTEXT,xo.PLAINTEXT],[To.PRE,xo.PRE],[To.RB,xo.RB],[To.RP,xo.RP],[To.RT,xo.RT],[To.RTC,xo.RTC],[To.RUBY,xo.RUBY],[To.S,xo.S],[To.SCRIPT,xo.SCRIPT],[To.SECTION,xo.SECTION],[To.SELECT,xo.SELECT],[To.SOURCE,xo.SOURCE],[To.SMALL,xo.SMALL],[To.SPAN,xo.SPAN],[To.STRIKE,xo.STRIKE],[To.STRONG,xo.STRONG],[To.STYLE,xo.STYLE],[To.SUB,xo.SUB],[To.SUMMARY,xo.SUMMARY],[To.SUP,xo.SUP],[To.TABLE,xo.TABLE],[To.TBODY,xo.TBODY],[To.TEMPLATE,xo.TEMPLATE],[To.TEXTAREA,xo.TEXTAREA],[To.TFOOT,xo.TFOOT],[To.TD,xo.TD],[To.TH,xo.TH],[To.THEAD,xo.THEAD],[To.TITLE,xo.TITLE],[To.TR,xo.TR],[To.TRACK,xo.TRACK],[To.TT,xo.TT],[To.U,xo.U],[To.UL,xo.UL],[To.SVG,xo.SVG],[To.VAR,xo.VAR],[To.WBR,xo.WBR],[To.XMP,xo.XMP]]);function Ro(e){var t;return null!==(t=Do.get(e))&&void 0!==t?t:xo.UNKNOWN}const _o=xo,Lo={[wo.HTML]:new Set([_o.ADDRESS,_o.APPLET,_o.AREA,_o.ARTICLE,_o.ASIDE,_o.BASE,_o.BASEFONT,_o.BGSOUND,_o.BLOCKQUOTE,_o.BODY,_o.BR,_o.BUTTON,_o.CAPTION,_o.CENTER,_o.COL,_o.COLGROUP,_o.DD,_o.DETAILS,_o.DIR,_o.DIV,_o.DL,_o.DT,_o.EMBED,_o.FIELDSET,_o.FIGCAPTION,_o.FIGURE,_o.FOOTER,_o.FORM,_o.FRAME,_o.FRAMESET,_o.H1,_o.H2,_o.H3,_o.H4,_o.H5,_o.H6,_o.HEAD,_o.HEADER,_o.HGROUP,_o.HR,_o.HTML,_o.IFRAME,_o.IMG,_o.INPUT,_o.LI,_o.LINK,_o.LISTING,_o.MAIN,_o.MARQUEE,_o.MENU,_o.META,_o.NAV,_o.NOEMBED,_o.NOFRAMES,_o.NOSCRIPT,_o.OBJECT,_o.OL,_o.P,_o.PARAM,_o.PLAINTEXT,_o.PRE,_o.SCRIPT,_o.SECTION,_o.SELECT,_o.SOURCE,_o.STYLE,_o.SUMMARY,_o.TABLE,_o.TBODY,_o.TD,_o.TEMPLATE,_o.TEXTAREA,_o.TFOOT,_o.TH,_o.THEAD,_o.TITLE,_o.TR,_o.TRACK,_o.UL,_o.WBR,_o.XMP]),[wo.MATHML]:new Set([_o.MI,_o.MO,_o.MN,_o.MS,_o.MTEXT,_o.ANNOTATION_XML]),[wo.SVG]:new Set([_o.TITLE,_o.FOREIGN_OBJECT,_o.DESC]),[wo.XLINK]:new Set,[wo.XML]:new Set,[wo.XMLNS]:new Set};function No(e){return e===_o.H1||e===_o.H2||e===_o.H3||e===_o.H4||e===_o.H5||e===_o.H6}const Oo=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 Io;!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"}(Io||(Io={}));const Mo={DATA:Io.DATA,RCDATA:Io.RCDATA,RAWTEXT:Io.RAWTEXT,SCRIPT_DATA:Io.SCRIPT_DATA,PLAINTEXT:Io.PLAINTEXT};function Po(e){return e>=ho.DIGIT_0&&e<=ho.DIGIT_9}function qo(e){return e>=ho.LATIN_CAPITAL_A&&e<=ho.LATIN_CAPITAL_Z}function Fo(e){return function(e){return e>=ho.LATIN_SMALL_A&&e<=ho.LATIN_SMALL_Z}(e)||qo(e)}function Bo(e){return Fo(e)||Po(e)}function Uo(e){return e>=ho.LATIN_CAPITAL_A&&e<=ho.LATIN_CAPITAL_F}function Ho(e){return e>=ho.LATIN_SMALL_A&&e<=ho.LATIN_SMALL_F}function zo(e){return e+32}function jo(e){return e===ho.SPACE||e===ho.LINE_FEED||e===ho.TABULATION||e===ho.FORM_FEED}function Vo(e){return jo(e)||e===ho.SOLIDUS||e===ho.GREATER_THAN_SIGN}class Go{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=Io.DATA,this.returnState=Io.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Co(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:vo.START_TAG,tagName:"",tagID:xo.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:vo.END_TAG,tagName:"",tagID:xo.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:vo.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:vo.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===Ao(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(yo.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=Ro(e.tagName),e.type===vo.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(yo.endTagWithAttributes),e.selfClosing&&this._err(yo.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 vo.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case vo.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case vo.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:vo.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=jo(e)?vo.WHITESPACE_CHARACTER:e===ho.NULL?vo.NULL_CHARACTER:vo.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(vo.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let o=0,a=c[0];o>=0&&(o=l(c,a,o+1,e),!(o<0));e=this._consume()){n+=1,a=c[o];const s=a&u.VALUE_LENGTH;if(s){const a=(s>>14)-1;if(e!==ho.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((i=this.preprocessor.peek(1))===ho.EQUALS_SIGN||Bo(i))?(t=[ho.AMPERSAND],o+=a):(t=0===a?[c[o]&~u.VALUE_LENGTH]:1===a?[c[++o]]:[c[++o],c[++o]],n=0,r=e!==ho.SEMICOLON),0===a){this._consume();break}}}var i;return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(yo.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===Io.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Io.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Io.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Io.DATA:this._stateData(e);break;case Io.RCDATA:this._stateRcdata(e);break;case Io.RAWTEXT:this._stateRawtext(e);break;case Io.SCRIPT_DATA:this._stateScriptData(e);break;case Io.PLAINTEXT:this._statePlaintext(e);break;case Io.TAG_OPEN:this._stateTagOpen(e);break;case Io.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Io.TAG_NAME:this._stateTagName(e);break;case Io.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Io.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Io.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Io.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Io.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Io.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Io.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Io.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Io.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Io.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Io.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Io.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Io.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Io.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Io.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Io.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Io.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Io.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Io.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Io.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Io.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Io.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Io.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Io.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Io.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Io.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Io.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Io.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Io.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Io.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Io.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Io.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Io.BOGUS_COMMENT:this._stateBogusComment(e);break;case Io.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Io.COMMENT_START:this._stateCommentStart(e);break;case Io.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Io.COMMENT:this._stateComment(e);break;case Io.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Io.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Io.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Io.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Io.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Io.COMMENT_END:this._stateCommentEnd(e);break;case Io.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Io.DOCTYPE:this._stateDoctype(e);break;case Io.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Io.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Io.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Io.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Io.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Io.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Io.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Io.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Io.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Io.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Io.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Io.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Io.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Io.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Io.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Io.CDATA_SECTION:this._stateCdataSection(e);break;case Io.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Io.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Io.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case Io.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case Io.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case Io.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case Io.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case Io.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case Io.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case Io.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case ho.LESS_THAN_SIGN:this.state=Io.TAG_OPEN;break;case ho.AMPERSAND:this.returnState=Io.DATA,this.state=Io.CHARACTER_REFERENCE;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitCodePoint(e);break;case ho.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case ho.AMPERSAND:this.returnState=Io.RCDATA,this.state=Io.CHARACTER_REFERENCE;break;case ho.LESS_THAN_SIGN:this.state=Io.RCDATA_LESS_THAN_SIGN;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitChars(uo);break;case ho.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case ho.LESS_THAN_SIGN:this.state=Io.RAWTEXT_LESS_THAN_SIGN;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitChars(uo);break;case ho.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_LESS_THAN_SIGN;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitChars(uo);break;case ho.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitChars(uo);break;case ho.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Fo(e))this._createStartTagToken(),this.state=Io.TAG_NAME,this._stateTagName(e);else switch(e){case ho.EXCLAMATION_MARK:this.state=Io.MARKUP_DECLARATION_OPEN;break;case ho.SOLIDUS:this.state=Io.END_TAG_OPEN;break;case ho.QUESTION_MARK:this._err(yo.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Io.BOGUS_COMMENT,this._stateBogusComment(e);break;case ho.EOF:this._err(yo.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(yo.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Io.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Fo(e))this._createEndTagToken(),this.state=Io.TAG_NAME,this._stateTagName(e);else switch(e){case ho.GREATER_THAN_SIGN:this._err(yo.missingEndTagName),this.state=Io.DATA;break;case ho.EOF:this._err(yo.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(yo.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Io.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this.state=Io.BEFORE_ATTRIBUTE_NAME;break;case ho.SOLIDUS:this.state=Io.SELF_CLOSING_START_TAG;break;case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentTagToken();break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.tagName+=uo;break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(qo(e)?zo(e):e)}}_stateRcdataLessThanSign(e){e===ho.SOLIDUS?this.state=Io.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Io.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){Fo(e)?(this.state=Io.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=Io.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 ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Io.BEFORE_ATTRIBUTE_NAME,!1;case ho.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Io.SELF_CLOSING_START_TAG,!1;case ho.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Io.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Io.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===ho.SOLIDUS?this.state=Io.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Io.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){Fo(e)?(this.state=Io.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=Io.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Io.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case ho.SOLIDUS:this.state=Io.SCRIPT_DATA_END_TAG_OPEN;break;case ho.EXCLAMATION_MARK:this.state=Io.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=Io.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){Fo(e)?(this.state=Io.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=Io.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Io.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===ho.HYPHEN_MINUS?(this.state=Io.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Io.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===ho.HYPHEN_MINUS?(this.state=Io.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Io.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case ho.HYPHEN_MINUS:this.state=Io.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitChars(uo);break;case ho.EOF:this._err(yo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case ho.HYPHEN_MINUS:this.state=Io.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.state=Io.SCRIPT_DATA_ESCAPED,this._emitChars(uo);break;case ho.EOF:this._err(yo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Io.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case ho.HYPHEN_MINUS:this._emitChars("-");break;case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case ho.GREATER_THAN_SIGN:this.state=Io.SCRIPT_DATA,this._emitChars(">");break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.state=Io.SCRIPT_DATA_ESCAPED,this._emitChars(uo);break;case ho.EOF:this._err(yo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Io.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===ho.SOLIDUS?this.state=Io.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Fo(e)?(this._emitChars("<"),this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=Io.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Fo(e)?(this.state=Io.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=Io.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Io.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(go,!1)&&Vo(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Io.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case ho.HYPHEN_MINUS:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitChars(uo);break;case ho.EOF:this._err(yo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case ho.HYPHEN_MINUS:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(uo);break;case ho.EOF:this._err(yo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case ho.HYPHEN_MINUS:this._emitChars("-");break;case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case ho.GREATER_THAN_SIGN:this.state=Io.SCRIPT_DATA,this._emitChars(">");break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(uo);break;case ho.EOF:this._err(yo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===ho.SOLIDUS?(this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(go,!1)&&Vo(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Io.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.SOLIDUS:case ho.GREATER_THAN_SIGN:case ho.EOF:this.state=Io.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case ho.EQUALS_SIGN:this._err(yo.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Io.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=Io.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:case ho.SOLIDUS:case ho.GREATER_THAN_SIGN:case ho.EOF:this._leaveAttrName(),this.state=Io.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case ho.EQUALS_SIGN:this._leaveAttrName(),this.state=Io.BEFORE_ATTRIBUTE_VALUE;break;case ho.QUOTATION_MARK:case ho.APOSTROPHE:case ho.LESS_THAN_SIGN:this._err(yo.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.currentAttr.name+=uo;break;default:this.currentAttr.name+=String.fromCodePoint(qo(e)?zo(e):e)}}_stateAfterAttributeName(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.SOLIDUS:this.state=Io.SELF_CLOSING_START_TAG;break;case ho.EQUALS_SIGN:this.state=Io.BEFORE_ATTRIBUTE_VALUE;break;case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentTagToken();break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=Io.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.QUOTATION_MARK:this.state=Io.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case ho.APOSTROPHE:this.state=Io.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case ho.GREATER_THAN_SIGN:this._err(yo.missingAttributeValue),this.state=Io.DATA,this.emitCurrentTagToken();break;default:this.state=Io.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case ho.QUOTATION_MARK:this.state=Io.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case ho.AMPERSAND:this.returnState=Io.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=Io.CHARACTER_REFERENCE;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.currentAttr.value+=uo;break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case ho.APOSTROPHE:this.state=Io.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case ho.AMPERSAND:this.returnState=Io.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=Io.CHARACTER_REFERENCE;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.currentAttr.value+=uo;break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this._leaveAttrValue(),this.state=Io.BEFORE_ATTRIBUTE_NAME;break;case ho.AMPERSAND:this.returnState=Io.ATTRIBUTE_VALUE_UNQUOTED,this.state=Io.CHARACTER_REFERENCE;break;case ho.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Io.DATA,this.emitCurrentTagToken();break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.currentAttr.value+=uo;break;case ho.QUOTATION_MARK:case ho.APOSTROPHE:case ho.LESS_THAN_SIGN:case ho.EQUALS_SIGN:case ho.GRAVE_ACCENT:this._err(yo.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this._leaveAttrValue(),this.state=Io.BEFORE_ATTRIBUTE_NAME;break;case ho.SOLIDUS:this._leaveAttrValue(),this.state=Io.SELF_CLOSING_START_TAG;break;case ho.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Io.DATA,this.emitCurrentTagToken();break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:this._err(yo.missingWhitespaceBetweenAttributes),this.state=Io.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case ho.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=Io.DATA,this.emitCurrentTagToken();break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:this._err(yo.unexpectedSolidusInTag),this.state=Io.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentComment(t);break;case ho.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.data+=uo;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=Io.COMMENT_START):this._consumeSequenceIfMatch(po,!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=Io.DOCTYPE):this._consumeSequenceIfMatch(fo,!0)?this.inForeignNode?this.state=Io.CDATA_SECTION:(this._err(yo.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=Io.BOGUS_COMMENT):this._ensureHibernation()||(this._err(yo.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Io.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case ho.HYPHEN_MINUS:this.state=Io.COMMENT_START_DASH;break;case ho.GREATER_THAN_SIGN:this._err(yo.abruptClosingOfEmptyComment),this.state=Io.DATA,this.emitCurrentComment(this.currentToken);break;default:this.state=Io.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case ho.HYPHEN_MINUS:this.state=Io.COMMENT_END;break;case ho.GREATER_THAN_SIGN:this._err(yo.abruptClosingOfEmptyComment),this.state=Io.DATA,this.emitCurrentComment(t);break;case ho.EOF:this._err(yo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Io.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case ho.HYPHEN_MINUS:this.state=Io.COMMENT_END_DASH;break;case ho.LESS_THAN_SIGN:t.data+="<",this.state=Io.COMMENT_LESS_THAN_SIGN;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.data+=uo;break;case ho.EOF:this._err(yo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case ho.EXCLAMATION_MARK:t.data+="!",this.state=Io.COMMENT_LESS_THAN_SIGN_BANG;break;case ho.LESS_THAN_SIGN:t.data+="<";break;default:this.state=Io.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===ho.HYPHEN_MINUS?this.state=Io.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Io.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===ho.HYPHEN_MINUS?this.state=Io.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Io.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==ho.GREATER_THAN_SIGN&&e!==ho.EOF&&this._err(yo.nestedComment),this.state=Io.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case ho.HYPHEN_MINUS:this.state=Io.COMMENT_END;break;case ho.EOF:this._err(yo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Io.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentComment(t);break;case ho.EXCLAMATION_MARK:this.state=Io.COMMENT_END_BANG;break;case ho.HYPHEN_MINUS:t.data+="-";break;case ho.EOF:this._err(yo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=Io.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case ho.HYPHEN_MINUS:t.data+="--!",this.state=Io.COMMENT_END_DASH;break;case ho.GREATER_THAN_SIGN:this._err(yo.incorrectlyClosedComment),this.state=Io.DATA,this.emitCurrentComment(t);break;case ho.EOF:this._err(yo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=Io.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this.state=Io.BEFORE_DOCTYPE_NAME;break;case ho.GREATER_THAN_SIGN:this.state=Io.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case ho.EOF:{this._err(yo.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(yo.missingWhitespaceBeforeDoctypeName),this.state=Io.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(qo(e))this._createDoctypeToken(String.fromCharCode(zo(e))),this.state=Io.DOCTYPE_NAME;else switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._createDoctypeToken(uo),this.state=Io.DOCTYPE_NAME;break;case ho.GREATER_THAN_SIGN:{this._err(yo.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Io.DATA;break}case ho.EOF:{this._err(yo.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=Io.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this.state=Io.AFTER_DOCTYPE_NAME;break;case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.name+=uo;break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(qo(e)?zo(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=Io.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=Io.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(yo.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this.state=Io.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case ho.QUOTATION_MARK:this._err(yo.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Io.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case ho.APOSTROPHE:this._err(yo.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Io.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case ho.GREATER_THAN_SIGN:this._err(yo.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.QUOTATION_MARK:t.publicId="",this.state=Io.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case ho.APOSTROPHE:t.publicId="",this.state=Io.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case ho.GREATER_THAN_SIGN:this._err(yo.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case ho.QUOTATION_MARK:this.state=Io.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.publicId+=uo;break;case ho.GREATER_THAN_SIGN:this._err(yo.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.EOF:this._err(yo.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 ho.APOSTROPHE:this.state=Io.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.publicId+=uo;break;case ho.GREATER_THAN_SIGN:this._err(yo.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.EOF:this._err(yo.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 ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this.state=Io.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.QUOTATION_MARK:this._err(yo.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case ho.APOSTROPHE:this._err(yo.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.QUOTATION_MARK:t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case ho.APOSTROPHE:t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this.state=Io.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case ho.QUOTATION_MARK:this._err(yo.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case ho.APOSTROPHE:this._err(yo.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case ho.GREATER_THAN_SIGN:this._err(yo.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.QUOTATION_MARK:t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case ho.APOSTROPHE:t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case ho.GREATER_THAN_SIGN:this._err(yo.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case ho.QUOTATION_MARK:this.state=Io.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.systemId+=uo;break;case ho.GREATER_THAN_SIGN:this._err(yo.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.EOF:this._err(yo.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 ho.APOSTROPHE:this.state=Io.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.systemId+=uo;break;case ho.GREATER_THAN_SIGN:this._err(yo.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.EOF:this._err(yo.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 ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case ho.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.NULL:this._err(yo.unexpectedNullCharacter);break;case ho.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case ho.RIGHT_SQUARE_BRACKET:this.state=Io.CDATA_SECTION_BRACKET;break;case ho.EOF:this._err(yo.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===ho.RIGHT_SQUARE_BRACKET?this.state=Io.CDATA_SECTION_END:(this._emitChars("]"),this.state=Io.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case ho.GREATER_THAN_SIGN:this.state=Io.DATA;break;case ho.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=Io.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===ho.NUMBER_SIGN?this.state=Io.NUMERIC_CHARACTER_REFERENCE:Bo(e)?(this.state=Io.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(ho.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(ho.AMPERSAND),this.state=Io.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(e){Bo(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===ho.SEMICOLON&&this._err(yo.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,e))}_stateNumericCharacterReference(e){this.charRefCode=0,e===ho.LATIN_SMALL_X||e===ho.LATIN_CAPITAL_X?this.state=Io.HEXADEMICAL_CHARACTER_REFERENCE_START:Po(e)?(this.state=Io.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(yo.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(ho.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(ho.NUMBER_SIGN),this._reconsumeInState(this.returnState,e))}_stateHexademicalCharacterReferenceStart(e){!function(e){return Po(e)||Uo(e)||Ho(e)}(e)?(this._err(yo.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(ho.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(ho.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState):(this.state=Io.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e))}_stateHexademicalCharacterReference(e){Uo(e)?this.charRefCode=16*this.charRefCode+e-55:Ho(e)?this.charRefCode=16*this.charRefCode+e-87:Po(e)?this.charRefCode=16*this.charRefCode+e-48:e===ho.SEMICOLON?this.state=Io.NUMERIC_CHARACTER_REFERENCE_END:(this._err(yo.missingSemicolonAfterCharacterReference),this.state=Io.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharacterReference(e){Po(e)?this.charRefCode=10*this.charRefCode+e-48:e===ho.SEMICOLON?this.state=Io.NUMERIC_CHARACTER_REFERENCE_END:(this._err(yo.missingSemicolonAfterCharacterReference),this.state=Io.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===ho.NULL)this._err(yo.nullCharacterReference),this.charRefCode=ho.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(yo.characterReferenceOutsideUnicodeRange),this.charRefCode=ho.REPLACEMENT_CHARACTER;else if(mo(this.charRefCode))this._err(yo.surrogateCharacterReference),this.charRefCode=ho.REPLACEMENT_CHARACTER;else if(ko(this.charRefCode))this._err(yo.noncharacterCharacterReference);else if(bo(this.charRefCode)||this.charRefCode===ho.CARRIAGE_RETURN){this._err(yo.controlCharacterReference);const e=Oo.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}const $o=new Set([xo.DD,xo.DT,xo.LI,xo.OPTGROUP,xo.OPTION,xo.P,xo.RB,xo.RP,xo.RT,xo.RTC]),Yo=new Set([...$o,xo.CAPTION,xo.COLGROUP,xo.TBODY,xo.TD,xo.TFOOT,xo.TH,xo.THEAD,xo.TR]),Wo=new Map([[xo.APPLET,wo.HTML],[xo.CAPTION,wo.HTML],[xo.HTML,wo.HTML],[xo.MARQUEE,wo.HTML],[xo.OBJECT,wo.HTML],[xo.TABLE,wo.HTML],[xo.TD,wo.HTML],[xo.TEMPLATE,wo.HTML],[xo.TH,wo.HTML],[xo.ANNOTATION_XML,wo.MATHML],[xo.MI,wo.MATHML],[xo.MN,wo.MATHML],[xo.MO,wo.MATHML],[xo.MS,wo.MATHML],[xo.MTEXT,wo.MATHML],[xo.DESC,wo.SVG],[xo.FOREIGN_OBJECT,wo.SVG],[xo.TITLE,wo.SVG]]),Qo=[xo.H1,xo.H2,xo.H3,xo.H4,xo.H5,xo.H6],Xo=[xo.TR,xo.TEMPLATE,xo.HTML],Ko=[xo.TBODY,xo.TFOOT,xo.THEAD,xo.TEMPLATE,xo.HTML],Zo=[xo.TABLE,xo.TEMPLATE,xo.HTML],Jo=[xo.TD,xo.TH];class ea{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=xo.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===xo.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===wo.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])!==wo.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(Qo,wo.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Jo,wo.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(Zo,wo.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Ko,wo.HTML)}clearBackToTableRowContext(){this.clearBackTo(Xo,wo.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]===xo.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]===xo.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===wo.HTML)return!0;if(Wo.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(No(t)&&n===wo.HTML)return!0;if(Wo.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===wo.HTML)return!0;if((n===xo.UL||n===xo.OL)&&r===wo.HTML||Wo.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===wo.HTML)return!0;if(n===xo.BUTTON&&r===wo.HTML||Wo.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])===wo.HTML){if(n===e)return!0;if(n===xo.TABLE||n===xo.TEMPLATE||n===xo.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])===wo.HTML){if(t===xo.TBODY||t===xo.THEAD||t===xo.TFOOT)return!0;if(t===xo.TABLE||t===xo.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])===wo.HTML){if(n===e)return!0;if(n!==xo.OPTION&&n!==xo.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;$o.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Yo.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&Yo.has(this.currentTagId);)this.pop()}}var ta;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(ta=ta||(ta={}));const na={type:ta.Marker};class ra{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===ta.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(na)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:ta.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:ta.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(na);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===ta.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===ta.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===ta.Element&&t.element===e))}}function ia(e){return{nodeName:"#text",value:e,parentNode:null}}const oa={createDocument:()=>({nodeName:"#document",mode:So.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):oa.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(oa.isTextNode(n))return void(n.value+=t)}oa.appendChild(e,ia(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&oa.isTextNode(r)?r.value+=t:oa.insertBefore(e,ia(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}}},aa="html",sa=["+//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//"],la=[...sa,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],ca=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),ua=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],ha=[...ua,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function fa(e,t){return t.some((t=>e.startsWith(t)))}const da=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]))),pa=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:wo.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:wo.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:wo.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:wo.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:wo.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:wo.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:wo.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:wo.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:wo.XML}],["xml:space",{prefix:"xml",name:"space",namespace:wo.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:wo.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:wo.XMLNS}]]),ga=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]))),ma=new Set([xo.B,xo.BIG,xo.BLOCKQUOTE,xo.BODY,xo.BR,xo.CENTER,xo.CODE,xo.DD,xo.DIV,xo.DL,xo.DT,xo.EM,xo.EMBED,xo.H1,xo.H2,xo.H3,xo.H4,xo.H5,xo.H6,xo.HEAD,xo.HR,xo.I,xo.IMG,xo.LI,xo.LISTING,xo.MENU,xo.META,xo.NOBR,xo.OL,xo.P,xo.PRE,xo.RUBY,xo.S,xo.SMALL,xo.SPAN,xo.STRONG,xo.STRIKE,xo.SUB,xo.SUP,xo.TABLE,xo.TT,xo.U,xo.UL,xo.VAR]);function ba(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function ka(e){for(let t=0;t<e.attrs.length;t++){const n=da.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function ya(e){for(let t=0;t<e.attrs.length;t++){const n=pa.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 va;!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"}(va||(va={}));const wa={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ea=new Set([xo.TABLE,xo.TBODY,xo.TFOOT,xo.THEAD,xo.TR]),Sa={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:oa,onParseError:null};class Ta{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=va.INITIAL,this.originalInsertionMode=va.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={...Sa,...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 Go(this.options,this),this.activeFormattingElements=new ra(this.treeAdapter),this.fragmentContextID=n?Ro(this.treeAdapter.getTagName(n)):xo.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new ea(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...Sa,...t};null!=e||(e=n.treeAdapter.createElement(To.TEMPLATE,wo.HTML,[]));const r=n.treeAdapter.createElement("documentmock",wo.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===xo.TEMPLATE&&i.tmplInsertionModeStack.unshift(va.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:wa;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)===wo.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,wo.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=va.TEXT}switchToPlaintextParsing(){this.insertionMode=va.TEXT,this.originalInsertionMode=va.IN_BODY,this.tokenizer.state=Mo.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)===To.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===wo.HTML)switch(this.fragmentContextID){case xo.TITLE:case xo.TEXTAREA:this.tokenizer.state=Mo.RCDATA;break;case xo.STYLE:case xo.XMP:case xo.IFRAME:case xo.NOEMBED:case xo.NOFRAMES:case xo.NOSCRIPT:this.tokenizer.state=Mo.RAWTEXT;break;case xo.SCRIPT:this.tokenizer.state=Mo.SCRIPT_DATA;break;case xo.PLAINTEXT:this.tokenizer.state=Mo.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,wo.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,wo.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(To.HTML,wo.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,xo.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===vo.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!==xo.SVG||this.treeAdapter.getTagName(t)!==To.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==wo.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===xo.MGLYPH||e.tagID===xo.MALIGNMARK)&&!this._isIntegrationPoint(n,t,wo.HTML))}_processToken(e){switch(e.type){case vo.CHARACTER:this.onCharacter(e);break;case vo.NULL_CHARACTER:this.onNullCharacter(e);break;case vo.COMMENT:this.onComment(e);break;case vo.DOCTYPE:this.onDoctype(e);break;case vo.START_TAG:this._processStartTag(e);break;case vo.END_TAG:this.onEndTag(e);break;case vo.EOF:this.onEof(e);break;case vo.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return function(e,t,n,r){return(!r||r===wo.HTML)&&function(e,t,n){if(t===wo.MATHML&&e===xo.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===Eo.ENCODING){const t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===wo.SVG&&(e===xo.FOREIGN_OBJECT||e===xo.DESC||e===xo.TITLE)}(e,t,n)||(!r||r===wo.MATHML)&&function(e,t){return t===wo.MATHML&&(e===xo.MI||e===xo.MO||e===xo.MN||e===xo.MS||e===xo.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===ta.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=va.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(xo.P),this.openElements.popUntilTagNamePopped(xo.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case xo.TR:return void(this.insertionMode=va.IN_ROW);case xo.TBODY:case xo.THEAD:case xo.TFOOT:return void(this.insertionMode=va.IN_TABLE_BODY);case xo.CAPTION:return void(this.insertionMode=va.IN_CAPTION);case xo.COLGROUP:return void(this.insertionMode=va.IN_COLUMN_GROUP);case xo.TABLE:return void(this.insertionMode=va.IN_TABLE);case xo.BODY:return void(this.insertionMode=va.IN_BODY);case xo.FRAMESET:return void(this.insertionMode=va.IN_FRAMESET);case xo.SELECT:return void this._resetInsertionModeForSelect(e);case xo.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case xo.HTML:return void(this.insertionMode=this.headElement?va.AFTER_HEAD:va.BEFORE_HEAD);case xo.TD:case xo.TH:if(e>0)return void(this.insertionMode=va.IN_CELL);break;case xo.HEAD:if(e>0)return void(this.insertionMode=va.IN_HEAD)}this.insertionMode=va.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===xo.TEMPLATE)break;if(e===xo.TABLE)return void(this.insertionMode=va.IN_SELECT_IN_TABLE)}this.insertionMode=va.IN_SELECT}_isElementCausesFosterParenting(e){return Ea.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 xo.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===wo.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case xo.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 Lo[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 va.INITIAL:Ia(this,e);break;case va.BEFORE_HTML:Ma(this,e);break;case va.BEFORE_HEAD:Pa(this,e);break;case va.IN_HEAD:Ba(this,e);break;case va.IN_HEAD_NO_SCRIPT:Ua(this,e);break;case va.AFTER_HEAD:Ha(this,e);break;case va.IN_BODY:case va.IN_CAPTION:case va.IN_CELL:case va.IN_TEMPLATE:Va(this,e);break;case va.TEXT:case va.IN_SELECT:case va.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case va.IN_TABLE:case va.IN_TABLE_BODY:case va.IN_ROW:Ja(this,e);break;case va.IN_TABLE_TEXT:is(this,e);break;case va.IN_COLUMN_GROUP:ls(this,e);break;case va.AFTER_BODY:bs(this,e);break;case va.AFTER_AFTER_BODY:ks(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=uo,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case va.INITIAL:Ia(this,e);break;case va.BEFORE_HTML:Ma(this,e);break;case va.BEFORE_HEAD:Pa(this,e);break;case va.IN_HEAD:Ba(this,e);break;case va.IN_HEAD_NO_SCRIPT:Ua(this,e);break;case va.AFTER_HEAD:Ha(this,e);break;case va.TEXT:this._insertCharacters(e);break;case va.IN_TABLE:case va.IN_TABLE_BODY:case va.IN_ROW:Ja(this,e);break;case va.IN_COLUMN_GROUP:ls(this,e);break;case va.AFTER_BODY:bs(this,e);break;case va.AFTER_AFTER_BODY:ks(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)Na(this,e);else switch(this.insertionMode){case va.INITIAL:case va.BEFORE_HTML:case va.BEFORE_HEAD:case va.IN_HEAD:case va.IN_HEAD_NO_SCRIPT:case va.AFTER_HEAD:case va.IN_BODY:case va.IN_TABLE:case va.IN_CAPTION:case va.IN_COLUMN_GROUP:case va.IN_TABLE_BODY:case va.IN_ROW:case va.IN_CELL:case va.IN_SELECT:case va.IN_SELECT_IN_TABLE:case va.IN_TEMPLATE:case va.IN_FRAMESET:case va.AFTER_FRAMESET:Na(this,e);break;case va.IN_TABLE_TEXT:os(this,e);break;case va.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case va.AFTER_AFTER_BODY:case va.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case va.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?So.QUIRKS:function(e){if(e.name!==aa)return So.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return So.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),ca.has(n))return So.QUIRKS;let e=null===t?la:sa;if(fa(n,e))return So.QUIRKS;if(e=null===t?ua:ha,fa(n,e))return So.LIMITED_QUIRKS}return So.NO_QUIRKS}(t);(function(e){return e.name===aa&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,yo.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=va.BEFORE_HTML}(this,e);break;case va.BEFORE_HEAD:case va.IN_HEAD:case va.IN_HEAD_NO_SCRIPT:case va.AFTER_HEAD:this._err(e,yo.misplacedDoctype);break;case va.IN_TABLE_TEXT:os(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,yo.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===xo.FONT&&e.attrs.some((({name:e})=>e===Eo.COLOR||e===Eo.SIZE||e===Eo.FACE))||ma.has(t)}(t))ys(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===wo.MATHML?ba(t):r===wo.SVG&&(function(e){const t=ga.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=Ro(e.tagName))}(t),ka(t)),ya(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 va.INITIAL:Ia(this,e);break;case va.BEFORE_HTML:!function(e,t){t.tagID===xo.HTML?(e._insertElement(t,wo.HTML),e.insertionMode=va.BEFORE_HEAD):Ma(e,t)}(this,e);break;case va.BEFORE_HEAD:!function(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.HEAD:e._insertElement(t,wo.HTML),e.headElement=e.openElements.current,e.insertionMode=va.IN_HEAD;break;default:Pa(e,t)}}(this,e);break;case va.IN_HEAD:qa(this,e);break;case va.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.BASEFONT:case xo.BGSOUND:case xo.HEAD:case xo.LINK:case xo.META:case xo.NOFRAMES:case xo.STYLE:qa(e,t);break;case xo.NOSCRIPT:e._err(t,yo.nestedNoscriptInHead);break;default:Ua(e,t)}}(this,e);break;case va.AFTER_HEAD:!function(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.BODY:e._insertElement(t,wo.HTML),e.framesetOk=!1,e.insertionMode=va.IN_BODY;break;case xo.FRAMESET:e._insertElement(t,wo.HTML),e.insertionMode=va.IN_FRAMESET;break;case xo.BASE:case xo.BASEFONT:case xo.BGSOUND:case xo.LINK:case xo.META:case xo.NOFRAMES:case xo.SCRIPT:case xo.STYLE:case xo.TEMPLATE:case xo.TITLE:e._err(t,yo.abandonedHeadElementChild),e.openElements.push(e.headElement,xo.HEAD),qa(e,t),e.openElements.remove(e.headElement);break;case xo.HEAD:e._err(t,yo.misplacedStartTagForHeadElement);break;default:Ha(e,t)}}(this,e);break;case va.IN_BODY:Qa(this,e);break;case va.IN_TABLE:es(this,e);break;case va.IN_TABLE_TEXT:os(this,e);break;case va.IN_CAPTION:!function(e,t){as.has(t.tagID)?e.openElements.hasInTableScope(xo.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(xo.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=va.IN_TABLE,es(e,t)):Qa(e,t)}(this,e);break;case va.IN_COLUMN_GROUP:ss(this,e);break;case va.IN_TABLE_BODY:cs(this,e);break;case va.IN_ROW:hs(this,e);break;case va.IN_CELL:!function(e,t){as.has(t.tagID)?(e.openElements.hasInTableScope(xo.TD)||e.openElements.hasInTableScope(xo.TH))&&(e._closeTableCell(),hs(e,t)):Qa(e,t)}(this,e);break;case va.IN_SELECT:ds(this,e);break;case va.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===xo.CAPTION||n===xo.TABLE||n===xo.TBODY||n===xo.TFOOT||n===xo.THEAD||n===xo.TR||n===xo.TD||n===xo.TH?(e.openElements.popUntilTagNamePopped(xo.SELECT),e._resetInsertionMode(),e._processStartTag(t)):ds(e,t)}(this,e);break;case va.IN_TEMPLATE:!function(e,t){switch(t.tagID){case xo.BASE:case xo.BASEFONT:case xo.BGSOUND:case xo.LINK:case xo.META:case xo.NOFRAMES:case xo.SCRIPT:case xo.STYLE:case xo.TEMPLATE:case xo.TITLE:qa(e,t);break;case xo.CAPTION:case xo.COLGROUP:case xo.TBODY:case xo.TFOOT:case xo.THEAD:e.tmplInsertionModeStack[0]=va.IN_TABLE,e.insertionMode=va.IN_TABLE,es(e,t);break;case xo.COL:e.tmplInsertionModeStack[0]=va.IN_COLUMN_GROUP,e.insertionMode=va.IN_COLUMN_GROUP,ss(e,t);break;case xo.TR:e.tmplInsertionModeStack[0]=va.IN_TABLE_BODY,e.insertionMode=va.IN_TABLE_BODY,cs(e,t);break;case xo.TD:case xo.TH:e.tmplInsertionModeStack[0]=va.IN_ROW,e.insertionMode=va.IN_ROW,hs(e,t);break;default:e.tmplInsertionModeStack[0]=va.IN_BODY,e.insertionMode=va.IN_BODY,Qa(e,t)}}(this,e);break;case va.AFTER_BODY:!function(e,t){t.tagID===xo.HTML?Qa(e,t):bs(e,t)}(this,e);break;case va.IN_FRAMESET:!function(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.FRAMESET:e._insertElement(t,wo.HTML);break;case xo.FRAME:e._appendElement(t,wo.HTML),t.ackSelfClosing=!0;break;case xo.NOFRAMES:qa(e,t)}}(this,e);break;case va.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.NOFRAMES:qa(e,t)}}(this,e);break;case va.AFTER_AFTER_BODY:!function(e,t){t.tagID===xo.HTML?Qa(e,t):ks(e,t)}(this,e);break;case va.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.NOFRAMES:qa(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===xo.P||t.tagID===xo.BR)return ys(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)===wo.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 va.INITIAL:Ia(this,e);break;case va.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==xo.HTML&&n!==xo.HEAD&&n!==xo.BODY&&n!==xo.BR||Ma(e,t)}(this,e);break;case va.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===xo.HEAD||n===xo.BODY||n===xo.HTML||n===xo.BR?Pa(e,t):e._err(t,yo.endTagWithoutMatchingOpenElement)}(this,e);break;case va.IN_HEAD:!function(e,t){switch(t.tagID){case xo.HEAD:e.openElements.pop(),e.insertionMode=va.AFTER_HEAD;break;case xo.BODY:case xo.BR:case xo.HTML:Ba(e,t);break;case xo.TEMPLATE:Fa(e,t);break;default:e._err(t,yo.endTagWithoutMatchingOpenElement)}}(this,e);break;case va.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case xo.NOSCRIPT:e.openElements.pop(),e.insertionMode=va.IN_HEAD;break;case xo.BR:Ua(e,t);break;default:e._err(t,yo.endTagWithoutMatchingOpenElement)}}(this,e);break;case va.AFTER_HEAD:!function(e,t){switch(t.tagID){case xo.BODY:case xo.HTML:case xo.BR:Ha(e,t);break;case xo.TEMPLATE:Fa(e,t);break;default:e._err(t,yo.endTagWithoutMatchingOpenElement)}}(this,e);break;case va.IN_BODY:Ka(this,e);break;case va.TEXT:!function(e,t){var n;t.tagID===xo.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 va.IN_TABLE:ts(this,e);break;case va.IN_TABLE_TEXT:os(this,e);break;case va.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case xo.CAPTION:case xo.TABLE:e.openElements.hasInTableScope(xo.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(xo.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=va.IN_TABLE,n===xo.TABLE&&ts(e,t));break;case xo.BODY:case xo.COL:case xo.COLGROUP:case xo.HTML:case xo.TBODY:case xo.TD:case xo.TFOOT:case xo.TH:case xo.THEAD:case xo.TR:break;default:Ka(e,t)}}(this,e);break;case va.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case xo.COLGROUP:e.openElements.currentTagId===xo.COLGROUP&&(e.openElements.pop(),e.insertionMode=va.IN_TABLE);break;case xo.TEMPLATE:Fa(e,t);break;case xo.COL:break;default:ls(e,t)}}(this,e);break;case va.IN_TABLE_BODY:us(this,e);break;case va.IN_ROW:fs(this,e);break;case va.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case xo.TD:case xo.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=va.IN_ROW);break;case xo.TABLE:case xo.TBODY:case xo.TFOOT:case xo.THEAD:case xo.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),fs(e,t));break;case xo.BODY:case xo.CAPTION:case xo.COL:case xo.COLGROUP:case xo.HTML:break;default:Ka(e,t)}}(this,e);break;case va.IN_SELECT:ps(this,e);break;case va.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===xo.CAPTION||n===xo.TABLE||n===xo.TBODY||n===xo.TFOOT||n===xo.THEAD||n===xo.TR||n===xo.TD||n===xo.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(xo.SELECT),e._resetInsertionMode(),e.onEndTag(t)):ps(e,t)}(this,e);break;case va.IN_TEMPLATE:!function(e,t){t.tagID===xo.TEMPLATE&&Fa(e,t)}(this,e);break;case va.AFTER_BODY:ms(this,e);break;case va.IN_FRAMESET:!function(e,t){t.tagID!==xo.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===xo.FRAMESET||(e.insertionMode=va.AFTER_FRAMESET))}(this,e);break;case va.AFTER_FRAMESET:!function(e,t){t.tagID===xo.HTML&&(e.insertionMode=va.AFTER_AFTER_FRAMESET)}(this,e);break;case va.AFTER_AFTER_BODY:ks(this,e)}}onEof(e){switch(this.insertionMode){case va.INITIAL:Ia(this,e);break;case va.BEFORE_HTML:Ma(this,e);break;case va.BEFORE_HEAD:Pa(this,e);break;case va.IN_HEAD:Ba(this,e);break;case va.IN_HEAD_NO_SCRIPT:Ua(this,e);break;case va.AFTER_HEAD:Ha(this,e);break;case va.IN_BODY:case va.IN_TABLE:case va.IN_CAPTION:case va.IN_COLUMN_GROUP:case va.IN_TABLE_BODY:case va.IN_ROW:case va.IN_CELL:case va.IN_SELECT:case va.IN_SELECT_IN_TABLE:Za(this,e);break;case va.TEXT:!function(e,t){e._err(t,yo.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case va.IN_TABLE_TEXT:os(this,e);break;case va.IN_TEMPLATE:gs(this,e);break;case va.AFTER_BODY:case va.IN_FRAMESET:case va.AFTER_FRAMESET:case va.AFTER_AFTER_BODY:case va.AFTER_AFTER_FRAMESET:Oa(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===ho.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 va.IN_HEAD:case va.IN_HEAD_NO_SCRIPT:case va.AFTER_HEAD:case va.TEXT:case va.IN_COLUMN_GROUP:case va.IN_SELECT:case va.IN_SELECT_IN_TABLE:case va.IN_FRAMESET:case va.AFTER_FRAMESET:this._insertCharacters(e);break;case va.IN_BODY:case va.IN_CAPTION:case va.IN_CELL:case va.IN_TEMPLATE:case va.AFTER_BODY:case va.AFTER_AFTER_BODY:case va.AFTER_AFTER_FRAMESET:ja(this,e);break;case va.IN_TABLE:case va.IN_TABLE_BODY:case va.IN_ROW:Ja(this,e);break;case va.IN_TABLE_TEXT:rs(this,e)}}}function xa(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):Xa(e,t),n}function Ca(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 Aa(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=Da(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function Da(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 Ra(e,t,n){const r=Ro(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);r===xo.TEMPLATE&&i===wo.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function _a(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 La(e,t){for(let n=0;n<8;n++){const n=xa(e,t);if(!n)break;const r=Ca(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const i=Aa(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),o&&Ra(e,o,i),_a(e,r,n)}}function Na(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Oa(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 Ia(e,t){e._err(t,yo.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,So.QUIRKS),e.insertionMode=va.BEFORE_HTML,e._processToken(t)}function Ma(e,t){e._insertFakeRootElement(),e.insertionMode=va.BEFORE_HEAD,e._processToken(t)}function Pa(e,t){e._insertFakeElement(To.HEAD,xo.HEAD),e.headElement=e.openElements.current,e.insertionMode=va.IN_HEAD,e._processToken(t)}function qa(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.BASE:case xo.BASEFONT:case xo.BGSOUND:case xo.LINK:case xo.META:e._appendElement(t,wo.HTML),t.ackSelfClosing=!0;break;case xo.TITLE:e._switchToTextParsing(t,Mo.RCDATA);break;case xo.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Mo.RAWTEXT):(e._insertElement(t,wo.HTML),e.insertionMode=va.IN_HEAD_NO_SCRIPT);break;case xo.NOFRAMES:case xo.STYLE:e._switchToTextParsing(t,Mo.RAWTEXT);break;case xo.SCRIPT:e._switchToTextParsing(t,Mo.SCRIPT_DATA);break;case xo.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=va.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(va.IN_TEMPLATE);break;case xo.HEAD:e._err(t,yo.misplacedStartTagForHeadElement);break;default:Ba(e,t)}}function Fa(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==xo.TEMPLATE&&e._err(t,yo.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(xo.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,yo.endTagWithoutMatchingOpenElement)}function Ba(e,t){e.openElements.pop(),e.insertionMode=va.AFTER_HEAD,e._processToken(t)}function Ua(e,t){e._err(t,t.type===vo.EOF?yo.openElementsLeftAfterEof:yo.disallowedContentInNoscriptInHead),e.openElements.pop(),e.insertionMode=va.IN_HEAD,e._processToken(t)}function Ha(e,t){e._insertFakeElement(To.BODY,xo.BODY),e.insertionMode=va.IN_BODY,za(e,t)}function za(e,t){switch(t.type){case vo.CHARACTER:Va(e,t);break;case vo.WHITESPACE_CHARACTER:ja(e,t);break;case vo.COMMENT:Na(e,t);break;case vo.START_TAG:Qa(e,t);break;case vo.END_TAG:Ka(e,t);break;case vo.EOF:Za(e,t)}}function ja(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Va(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Ga(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,wo.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $a(e){const t=Ao(e,Eo.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function Ya(e,t){e._switchToTextParsing(t,Mo.RAWTEXT)}function Wa(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML)}function Qa(e,t){switch(t.tagID){case xo.I:case xo.S:case xo.B:case xo.U:case xo.EM:case xo.TT:case xo.BIG:case xo.CODE:case xo.FONT:case xo.SMALL:case xo.STRIKE:case xo.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case xo.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(To.A);n&&(La(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case xo.H1:case xo.H2:case xo.H3:case xo.H4:case xo.H5:case xo.H6:!function(e,t){e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),No(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,wo.HTML)}(e,t);break;case xo.P:case xo.DL:case xo.OL:case xo.UL:case xo.DIV:case xo.DIR:case xo.NAV:case xo.MAIN:case xo.MENU:case xo.ASIDE:case xo.CENTER:case xo.FIGURE:case xo.FOOTER:case xo.HEADER:case xo.HGROUP:case xo.DIALOG:case xo.DETAILS:case xo.ADDRESS:case xo.ARTICLE:case xo.SECTION:case xo.SUMMARY:case xo.FIELDSET:case xo.BLOCKQUOTE:case xo.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._insertElement(t,wo.HTML)}(e,t);break;case xo.LI:case xo.DD:case xo.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===xo.LI&&r===xo.LI||(n===xo.DD||n===xo.DT)&&(r===xo.DD||r===xo.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==xo.ADDRESS&&r!==xo.DIV&&r!==xo.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._insertElement(t,wo.HTML)}(e,t);break;case xo.BR:case xo.IMG:case xo.WBR:case xo.AREA:case xo.EMBED:case xo.KEYGEN:Ga(e,t);break;case xo.HR:!function(e,t){e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._appendElement(t,wo.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case xo.RB:case xo.RTC:!function(e,t){e.openElements.hasInScope(xo.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,wo.HTML)}(e,t);break;case xo.RT:case xo.RP:!function(e,t){e.openElements.hasInScope(xo.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(xo.RTC),e._insertElement(t,wo.HTML)}(e,t);break;case xo.PRE:case xo.LISTING:!function(e,t){e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._insertElement(t,wo.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case xo.XMP:!function(e,t){e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Mo.RAWTEXT)}(e,t);break;case xo.SVG:!function(e,t){e._reconstructActiveFormattingElements(),ka(t),ya(t),t.selfClosing?e._appendElement(t,wo.SVG):e._insertElement(t,wo.SVG),t.ackSelfClosing=!0}(e,t);break;case xo.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case xo.BASE:case xo.LINK:case xo.META:case xo.STYLE:case xo.TITLE:case xo.SCRIPT:case xo.BGSOUND:case xo.BASEFONT:case xo.TEMPLATE:qa(e,t);break;case xo.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 xo.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._insertElement(t,wo.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case xo.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(xo.NOBR)&&(La(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,wo.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case xo.MATH:!function(e,t){e._reconstructActiveFormattingElements(),ba(t),ya(t),t.selfClosing?e._appendElement(t,wo.MATHML):e._insertElement(t,wo.MATHML),t.ackSelfClosing=!0}(e,t);break;case xo.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==So.QUIRKS&&e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._insertElement(t,wo.HTML),e.framesetOk=!1,e.insertionMode=va.IN_TABLE}(e,t);break;case xo.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,wo.HTML),$a(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case xo.PARAM:case xo.TRACK:case xo.SOURCE:!function(e,t){e._appendElement(t,wo.HTML),t.ackSelfClosing=!0}(e,t);break;case xo.IMAGE:!function(e,t){t.tagName=To.IMG,t.tagID=xo.IMG,Ga(e,t)}(e,t);break;case xo.BUTTON:!function(e,t){e.openElements.hasInScope(xo.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(xo.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML),e.framesetOk=!1}(e,t);break;case xo.APPLET:case xo.OBJECT:case xo.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case xo.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Mo.RAWTEXT)}(e,t);break;case xo.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===va.IN_TABLE||e.insertionMode===va.IN_CAPTION||e.insertionMode===va.IN_TABLE_BODY||e.insertionMode===va.IN_ROW||e.insertionMode===va.IN_CELL?va.IN_SELECT_IN_TABLE:va.IN_SELECT}(e,t);break;case xo.OPTION:case xo.OPTGROUP:!function(e,t){e.openElements.currentTagId===xo.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML)}(e,t);break;case xo.NOEMBED:Ya(e,t);break;case xo.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,wo.HTML),e.insertionMode=va.IN_FRAMESET)}(e,t);break;case xo.TEXTAREA:!function(e,t){e._insertElement(t,wo.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Mo.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=va.TEXT}(e,t);break;case xo.NOSCRIPT:e.options.scriptingEnabled?Ya(e,t):Wa(e,t);break;case xo.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._insertElement(t,wo.HTML),e.tokenizer.state=Mo.PLAINTEXT}(e,t);break;case xo.COL:case xo.TH:case xo.TD:case xo.TR:case xo.HEAD:case xo.FRAME:case xo.TBODY:case xo.TFOOT:case xo.THEAD:case xo.CAPTION:case xo.COLGROUP:break;default:Wa(e,t)}}function Xa(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!==xo.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 Ka(e,t){switch(t.tagID){case xo.A:case xo.B:case xo.I:case xo.S:case xo.U:case xo.EM:case xo.TT:case xo.BIG:case xo.CODE:case xo.FONT:case xo.NOBR:case xo.SMALL:case xo.STRIKE:case xo.STRONG:La(e,t);break;case xo.P:!function(e){e.openElements.hasInButtonScope(xo.P)||e._insertFakeElement(To.P,xo.P),e._closePElement()}(e);break;case xo.DL:case xo.UL:case xo.OL:case xo.DIR:case xo.DIV:case xo.NAV:case xo.PRE:case xo.MAIN:case xo.MENU:case xo.ASIDE:case xo.BUTTON:case xo.CENTER:case xo.FIGURE:case xo.FOOTER:case xo.HEADER:case xo.HGROUP:case xo.DIALOG:case xo.ADDRESS:case xo.ARTICLE:case xo.DETAILS:case xo.SECTION:case xo.SUMMARY:case xo.LISTING:case xo.FIELDSET:case xo.BLOCKQUOTE:case xo.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case xo.LI:!function(e){e.openElements.hasInListItemScope(xo.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(xo.LI),e.openElements.popUntilTagNamePopped(xo.LI))}(e);break;case xo.DD:case xo.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case xo.H1:case xo.H2:case xo.H3:case xo.H4:case xo.H5:case xo.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case xo.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(To.BR,xo.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case xo.BODY:!function(e,t){if(e.openElements.hasInScope(xo.BODY)&&(e.insertionMode=va.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case xo.HTML:!function(e,t){e.openElements.hasInScope(xo.BODY)&&(e.insertionMode=va.AFTER_BODY,ms(e,t))}(e,t);break;case xo.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(xo.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(xo.FORM):n&&e.openElements.remove(n))}(e);break;case xo.APPLET:case xo.OBJECT:case xo.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 xo.TEMPLATE:Fa(e,t);break;default:Xa(e,t)}}function Za(e,t){e.tmplInsertionModeStack.length>0?gs(e,t):Oa(e,t)}function Ja(e,t){if(Ea.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=va.IN_TABLE_TEXT,t.type){case vo.CHARACTER:is(e,t);break;case vo.WHITESPACE_CHARACTER:rs(e,t)}else ns(e,t)}function es(e,t){switch(t.tagID){case xo.TD:case xo.TH:case xo.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(To.TBODY,xo.TBODY),e.insertionMode=va.IN_TABLE_BODY,cs(e,t)}(e,t);break;case xo.STYLE:case xo.SCRIPT:case xo.TEMPLATE:qa(e,t);break;case xo.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(To.COLGROUP,xo.COLGROUP),e.insertionMode=va.IN_COLUMN_GROUP,ss(e,t)}(e,t);break;case xo.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,wo.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case xo.TABLE:!function(e,t){e.openElements.hasInTableScope(xo.TABLE)&&(e.openElements.popUntilTagNamePopped(xo.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case xo.TBODY:case xo.TFOOT:case xo.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,wo.HTML),e.insertionMode=va.IN_TABLE_BODY}(e,t);break;case xo.INPUT:!function(e,t){$a(t)?e._appendElement(t,wo.HTML):ns(e,t),t.ackSelfClosing=!0}(e,t);break;case xo.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,wo.HTML),e.insertionMode=va.IN_CAPTION}(e,t);break;case xo.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,wo.HTML),e.insertionMode=va.IN_COLUMN_GROUP}(e,t);break;default:ns(e,t)}}function ts(e,t){switch(t.tagID){case xo.TABLE:e.openElements.hasInTableScope(xo.TABLE)&&(e.openElements.popUntilTagNamePopped(xo.TABLE),e._resetInsertionMode());break;case xo.TEMPLATE:Fa(e,t);break;case xo.BODY:case xo.CAPTION:case xo.COL:case xo.COLGROUP:case xo.HTML:case xo.TBODY:case xo.TD:case xo.TFOOT:case xo.TH:case xo.THEAD:case xo.TR:break;default:ns(e,t)}}function ns(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,za(e,t),e.fosterParentingEnabled=n}function rs(e,t){e.pendingCharacterTokens.push(t)}function is(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function os(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ns(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const as=new Set([xo.CAPTION,xo.COL,xo.COLGROUP,xo.TBODY,xo.TD,xo.TFOOT,xo.TH,xo.THEAD,xo.TR]);function ss(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.COL:e._appendElement(t,wo.HTML),t.ackSelfClosing=!0;break;case xo.TEMPLATE:qa(e,t);break;default:ls(e,t)}}function ls(e,t){e.openElements.currentTagId===xo.COLGROUP&&(e.openElements.pop(),e.insertionMode=va.IN_TABLE,e._processToken(t))}function cs(e,t){switch(t.tagID){case xo.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,wo.HTML),e.insertionMode=va.IN_ROW;break;case xo.TH:case xo.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(To.TR,xo.TR),e.insertionMode=va.IN_ROW,hs(e,t);break;case xo.CAPTION:case xo.COL:case xo.COLGROUP:case xo.TBODY:case xo.TFOOT:case xo.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE,es(e,t));break;default:es(e,t)}}function us(e,t){const n=t.tagID;switch(t.tagID){case xo.TBODY:case xo.TFOOT:case xo.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE);break;case xo.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE,ts(e,t));break;case xo.BODY:case xo.CAPTION:case xo.COL:case xo.COLGROUP:case xo.HTML:case xo.TD:case xo.TH:case xo.TR:break;default:ts(e,t)}}function hs(e,t){switch(t.tagID){case xo.TH:case xo.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,wo.HTML),e.insertionMode=va.IN_CELL,e.activeFormattingElements.insertMarker();break;case xo.CAPTION:case xo.COL:case xo.COLGROUP:case xo.TBODY:case xo.TFOOT:case xo.THEAD:case xo.TR:e.openElements.hasInTableScope(xo.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE_BODY,cs(e,t));break;default:es(e,t)}}function fs(e,t){switch(t.tagID){case xo.TR:e.openElements.hasInTableScope(xo.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE_BODY);break;case xo.TABLE:e.openElements.hasInTableScope(xo.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE_BODY,us(e,t));break;case xo.TBODY:case xo.TFOOT:case xo.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(xo.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE_BODY,us(e,t));break;case xo.BODY:case xo.CAPTION:case xo.COL:case xo.COLGROUP:case xo.HTML:case xo.TD:case xo.TH:break;default:ts(e,t)}}function ds(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.OPTION:e.openElements.currentTagId===xo.OPTION&&e.openElements.pop(),e._insertElement(t,wo.HTML);break;case xo.OPTGROUP:e.openElements.currentTagId===xo.OPTION&&e.openElements.pop(),e.openElements.currentTagId===xo.OPTGROUP&&e.openElements.pop(),e._insertElement(t,wo.HTML);break;case xo.INPUT:case xo.KEYGEN:case xo.TEXTAREA:case xo.SELECT:e.openElements.hasInSelectScope(xo.SELECT)&&(e.openElements.popUntilTagNamePopped(xo.SELECT),e._resetInsertionMode(),t.tagID!==xo.SELECT&&e._processStartTag(t));break;case xo.SCRIPT:case xo.TEMPLATE:qa(e,t)}}function ps(e,t){switch(t.tagID){case xo.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===xo.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===xo.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===xo.OPTGROUP&&e.openElements.pop();break;case xo.OPTION:e.openElements.currentTagId===xo.OPTION&&e.openElements.pop();break;case xo.SELECT:e.openElements.hasInSelectScope(xo.SELECT)&&(e.openElements.popUntilTagNamePopped(xo.SELECT),e._resetInsertionMode());break;case xo.TEMPLATE:Fa(e,t)}}function gs(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(xo.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Oa(e,t)}function ms(e,t){var n;if(t.tagID===xo.HTML){if(e.fragmentContext||(e.insertionMode=va.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===xo.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 bs(e,t)}function bs(e,t){e.insertionMode=va.IN_BODY,za(e,t)}function ks(e,t){e.insertionMode=va.IN_BODY,za(e,t)}function ys(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==wo.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}const vs=Es("end"),ws=Es("start");function Es(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 Ss=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ts={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function xs(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=s("type",{handlers:{root:As,element:Ds,text:Rs,comment:Ls,doctype:_s,raw:Ns},unknown:Os}),o={parser:r?new Ta(Ts):Ta.getFragmentParser(void 0,Ts),handle(e){i(e,o)},stitches:!1,options:t||{}};i(e,o),Is(o,ws());const a=function(e,t){const n=t||{};return gi({file:n.file||void 0,location:!1,schema:"svg"===n.space?Zr:Kr,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 Cs(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function As(e,t){Cs(e.children,t)}function Ds(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Mo.PLAINTEXT)return;Is(t,ws(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:hi;i===hi&&"svg"===n&&(i=fi);const o=(s={...e,children:[]},io(s,"svg"===({space:i===fi?"svg":"html"}||no).space?eo:Ji)),a={type:vo.START_TAG,tagName:n,tagID:Ro(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:Ps(e)};var s;t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),Cs(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&lo.includes(n))return;if(t.parser.tokenizer.state===Mo.PLAINTEXT)return;Is(t,vs(e));const r={type:vo.END_TAG,tagName:n,tagID:Ro(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ps(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==Mo.RCDATA&&t.parser.tokenizer.state!==Mo.RAWTEXT&&t.parser.tokenizer.state!==Mo.SCRIPT_DATA||(t.parser.tokenizer.state=Mo.DATA)}(e,t)}function Rs(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:vo.CHARACTER,chars:e.value,location:Ps(e)};Is(t,ws(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function _s(e,t){const n={type:vo.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ps(e)};Is(t,ws(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Ls(e,t){const n={type:vo.COMMENT,data:e.value,location:Ps(e)};Is(t,ws(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Ns(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,Ms(t,ws(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 Os(e,n){const r=e;if(!n.options.passThrough||!n.options.passThrough.includes(r.type)){let e="";throw Ss.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=xs({type:"root",children:e.children},n.options);r.children=t.children}Ls({type:"comment",value:{stitch:r}},n)}(r,n)}function Is(e,t){Ms(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=Mo.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 Ms(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 Ps(e){const t=ws(e)||{line:void 0,column:void 0,offset:void 0},n=vs(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 qs(e){return function(t,n){return xs(t,{...e,file:n})}}var Fs,Bs,Us,Hs,zs,js,Vs,Gs={},$s=function(){if(Us)return Gs;Us=1;var e=Gs&&Gs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.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(Bs)return Fs;Bs=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 Fs=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=v();)!1!==t&&e.push(t);return e}function v(){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 w(){var t=p(),n=b(r);if(n){if(v(),!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=w();)!1!==e&&(t.push(e),y(t));return t}()},Fs}());return Gs}(),Ys=e($s),Ws=Ys.default||Ys,Qs=e(zs?Hs:(zs=1,Hs={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]})),Xs=function(){if(Vs)return js;Vs=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 js=(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}},js}(),Ks=e(Xs),Zs=new RegExp(/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,"i");const Js="-?\\d*(?:\\.\\d+)",el=`(${Js}?)`,tl=`(${Js}?%)`,nl=`(${Js}?%?)`,rl=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*${tl}\\s*,\n \\s*${tl}\\s*\n (?:,\\s*${nl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var il=new RegExp(rl);const ol=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+${tl}\n \\s+${tl}\n \\s*(?:\\s*\\/\\s*${nl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var al=new RegExp(ol);const sl=`^\n rgba?\\(\n \\s*${el}\\s*,\n \\s*${el}\\s*,\n \\s*${el}\\s*\n (?:,\\s*${nl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var ll=new RegExp(sl);const cl=`^\n rgba?\\(\n \\s*${tl}\\s*,\n \\s*${tl}\\s*,\n \\s*${tl}\\s*\n (?:,\\s*${nl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var ul=new RegExp(cl);const hl=`^\n rgba?\\(\n \\s*${el}\n \\s+${el}\n \\s+${el}\n \\s*(?:\\s*\\/\\s*${nl}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var fl=new RegExp(hl);const dl=`^\n rgba?\\(\n \\s*${tl}\n \\s+${tl}\n \\s+${tl}\n \\s*(?:\\s*\\/\\s*${nl}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var pl=new RegExp(dl),gl=new RegExp(/^transparent$/,"i");const ml=(e,t,n)=>Math.min(Math.max(t,e),n),bl=e=>{let t=e;return"number"!=typeof t&&(t=t.endsWith("%")?255*parseFloat(t)/100:parseFloat(t)),ml(Math.round(t),0,255)},kl=e=>ml(parseFloat(e),0,100);function yl(e){let t=e;return"number"!=typeof t&&(t=t.endsWith("%")?parseFloat(t)/100:parseFloat(t)),ml(t,0,1)}function vl([,e,t,n,r=1]){return{type:"rgb",values:[e,t,n].map(bl),alpha:yl(null===r?1:r)}}
|
|
1
|
+
import{g as e}from"./p-B85MJLTf.js";import{s as t,v as n,e as r,f as i,g as o,E as a,z as s,h as l,i as c,B as u,u as h,a as f,b as d,r as p,d as g}from"./p-DJvGLFul.js";function m(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 b={};function k(e){return y(e,"boolean"!=typeof b.includeImageAlt||b.includeImageAlt,"boolean"!=typeof b.includeHtml||b.includeHtml)}function y(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 v(e.children,t,n)}return Array.isArray(e)?v(e,t,n):""}function v(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=y(e[i],t,n);return r.join("")}const w={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:""},E={}.hasOwnProperty;function S(e){return!!E.call(w,e)&&w[e]}function T(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 x(e,t){return e.length>0?(T(e,e.length,0,t),e):t}const C={}.hasOwnProperty;function A(e){const t={};let n=-1;for(;++n<e.length;)D(t,e[n]);return t}function D(e,t){let n;for(n in t){const r=(C.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){C.call(r,o)||(r[o]=[]);const e=i[o];R(r[o],Array.isArray(e)?e:e?[e]:[])}}}function R(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);T(e,0,0,r)}function _(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 L(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const N=G(/\p{P}/u),O=G(/[A-Za-z]/),I=G(/[\dA-Za-z]/),M=G(/[#-'*+\--9=?A-Z^-~]/);function P(e){return null!==e&&(e<32||127===e)}const q=G(/\d/),F=G(/[\dA-Fa-f]/),B=G(/[!-/:-@[-`{-~]/);function U(e){return null!==e&&e<-2}function H(e){return null!==e&&(e<0||32===e)}function z(e){return-2===e||-1===e||32===e}function j(e){return B(e)||N(e)}const V=G(/\s/);function G(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function $(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(37===o&&I(e.charCodeAt(n+1))&&I(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 Y(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){return z(r)?(e.enter(n),a(r)):t(r)};function a(r){return z(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}const W={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"),Y(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)):U(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}},Q={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 T(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(X,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(X,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)):U(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++;T(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}}},X={tokenize:function(e,t,n){return Y(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function K(e){return null===e||H(e)||V(e)?1:j(e)?2:void 0}function Z(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 J={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=K(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=K(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);ee(h,-s),ee(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=x(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=x(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=x(l,Z(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=x(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=x(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,T(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 ee(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const te={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 O(t)?(e.consume(t),o):l(t)}function o(e){return 43===e||45===e||46===e||I(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||I(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||P(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):M(t)?(e.consume(t),l):n(t)}function c(e){return I(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||I(t))&&r++<63){const n=45===t?h:u;return e.consume(t),n}return n(t)}}},ne={tokenize:function(e,t,n){return function(t){return z(t)?Y(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||U(e)?t(e):n(e)}},partial:!0},re={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 z(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 z(t)?Y(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(re,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}},ie={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 B(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},oe={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=I,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=F,c):(e.enter("characterReferenceValue"),i=7,o=q,c(t))}function c(s){if(59===s&&a){const i=e.exit("characterReferenceValue");return o!==I||S(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)}}},ae={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},se={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"),z(t)?Y(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"),z(t)?Y(e,u,"whitespace")(t):u(t)):n(t)}function u(r){return null===r||U(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"),z(t)?Y(e,c,"whitespace")(t):c(t))}function c(n){return null===n||U(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(ae,d,k)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||U(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):z(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Y(e,h,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function h(t){return null===t||U(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||U(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&&z(t)?Y(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||U(t)?e.check(ae,d,k)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||U(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),b)}function k(n){return e.exit("codeFenced"),t(n)}},concrete:!0},le={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Y(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):U(t)?e.attempt(ce,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||U(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},ce={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):U(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):Y(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):U(e)?i(e):n(e)}},partial:!0},ue={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)):U(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||U(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 he(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,fe(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),T(e,r,c-r+1,a))}}return!l}function fe(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]),T(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 de={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):U(t)?e.check(pe,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 he(e),e}},pe={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Y(e,i,"linePrefix")};function i(i){if(null===i||U(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 ge(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||P(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||U(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&&!H(i)?u<c&&40===i?(e.consume(i),u++,p):41===i?(e.consume(i),u--,p):null===i||32===i||40===i||P(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 me(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):U(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||U(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!z(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function be(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):U(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Y(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||U(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 ke(e,t){let n;return function r(i){return U(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):z(i)?Y(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const ye={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return me.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=L(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 H(t)?ke(e,s)(t):s(t)}function s(t){return ge(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(ve,c,c)(t)}function c(t){return z(t)?Y(e,u,"whitespace")(t):u(t)}function u(o){return null===o||U(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},ve={tokenize:function(e,t,n){return function(t){return H(t)?ke(e,r)(t):n(t)};function r(t){return be(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return z(t)?Y(e,o,"whitespace")(t):o(t)}function o(e){return null===e||U(e)?t(e):n(e)}},partial:!0},we={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return U(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},Ee={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||H(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||U(n)?(e.exit("atxHeading"),t(n)):z(n)?Y(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||H(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"},T(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e}},Se=["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"],Te=["pre","script","style","textarea"],xe={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):O(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(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 O(t)?(e.consume(t),a=String.fromCharCode(t),p):n(t)}function p(s){if(null===s||47===s||62===s||H(s)){const l=47===s,c=a.toLowerCase();return l||o||!Te.includes(c)?Se.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||I(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 z(t)?(e.consume(t),m):T(t)}function b(t){return 47===t?(e.consume(t),T):58===t||95===t||O(t)?(e.consume(t),k):z(t)?(e.consume(t),b):T(t)}function k(t){return 45===t||46===t||58===t||95===t||I(t)?(e.consume(t),k):y(t)}function y(t){return 61===t?(e.consume(t),v):z(t)?(e.consume(t),y):b(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):z(t)?(e.consume(t),v):E(t)}function w(t){return t===l?(e.consume(t),l=null,S):null===t||U(t)?n(t):(e.consume(t),w)}function E(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||H(t)?y(t):(e.consume(t),E)}function S(e){return 47===e||62===e||z(e)?b(e):n(e)}function T(t){return 62===t?(e.consume(t),x):n(t)}function x(t){return null===t||U(t)?C(t):z(t)?(e.consume(t),x):n(t)}function C(t){return 45===t&&2===i?(e.consume(t),_):60===t&&1===i?(e.consume(t),L):62===t&&4===i?(e.consume(t),q):63===t&&3===i?(e.consume(t),P):93===t&&5===i?(e.consume(t),M):!U(t)||6!==i&&7!==i?null===t||U(t)?(e.exit("htmlFlowData"),A(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(Ce,F,A)(t))}function A(t){return e.check(Ae,D,F)(t)}function D(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return null===t||U(t)?A(t):(e.enter("htmlFlowData"),C(t))}function _(t){return 45===t?(e.consume(t),P):C(t)}function L(t){return 47===t?(e.consume(t),a="",N):C(t)}function N(t){if(62===t){const n=a.toLowerCase();return Te.includes(n)?(e.consume(t),q):C(t)}return O(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),N):C(t)}function M(t){return 93===t?(e.consume(t),P):C(t)}function P(t){return 62===t?(e.consume(t),q):45===t&&2===i?(e.consume(t),P):C(t)}function q(t){return null===t||U(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),q)}function F(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},Ce={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ne,t,n)}},partial:!0},Ae={tokenize:function(e,t,n){const r=this;return function(t){return U(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},De={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),v):63===t?(e.consume(t),k):O(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),o=0,d):O(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):U(t)?(a=u,N(t)):(e.consume(t),u)}function h(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?L(e):45===e?h(e):u(e)}function d(t){return t==="CDATA[".charCodeAt(o++)?(e.consume(t),6===o?p:d):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),g):U(t)?(a=p,N(t)):(e.consume(t),p)}function g(t){return 93===t?(e.consume(t),m):p(t)}function m(t){return 62===t?L(t):93===t?(e.consume(t),m):p(t)}function b(t){return null===t||62===t?L(t):U(t)?(a=b,N(t)):(e.consume(t),b)}function k(t){return null===t?n(t):63===t?(e.consume(t),y):U(t)?(a=k,N(t)):(e.consume(t),k)}function y(e){return 62===e?L(e):k(e)}function v(t){return O(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||I(t)?(e.consume(t),w):E(t)}function E(t){return U(t)?(a=E,N(t)):z(t)?(e.consume(t),E):L(t)}function S(t){return 45===t||I(t)?(e.consume(t),S):47===t||62===t||H(t)?T(t):n(t)}function T(t){return 47===t?(e.consume(t),L):58===t||95===t||O(t)?(e.consume(t),x):U(t)?(a=T,N(t)):z(t)?(e.consume(t),T):L(t)}function x(t){return 45===t||46===t||58===t||95===t||I(t)?(e.consume(t),x):C(t)}function C(t){return 61===t?(e.consume(t),A):U(t)?(a=C,N(t)):z(t)?(e.consume(t),C):T(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):U(t)?(a=A,N(t)):z(t)?(e.consume(t),A):(e.consume(t),R)}function D(t){return t===i?(e.consume(t),i=void 0,_):null===t?n(t):U(t)?(a=D,N(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||H(t)?T(t):(e.consume(t),R)}function _(e){return 47===e||62===e||H(e)?T(e):n(e)}function L(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function N(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return z(t)?Y(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)}}},Re={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(L(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(_e,c,o?c:u)(t):91===t?e.attempt(Le,c,o?l:u)(t):o?c(t):u(t)}function l(t){return e.attempt(Ne,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=x(o,e.slice(r+1,r+s+3)),o=x(o,[["enter",u,t]]),o=x(o,Z(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=x(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=x(o,e.slice(i+1)),o=x(o,[["exit",l,t]]),T(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}},_e={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 H(t)?ke(e,i)(t):i(t)}function i(t){return 41===t?c(t):ge(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return H(t)?ke(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?be(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return H(t)?ke(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)}}},Le={tokenize:function(e,t,n){const r=this;return function(t){return me.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(L(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},Ne={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)}}},Oe={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:Re.resolveAll},Ie={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:Re.resolveAll},Me={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Y(e,t,"linePrefix")}}},Pe={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||U(o))?(e.exit("thematicBreak"),t(o)):n(o)}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),z(t)?Y(e,o,"whitespace")(t):o(t))}}},qe={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:q(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(Pe,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 q(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(ne,r.interrupt?n:c,e.attempt(Fe,h,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return z(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(ne,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){return r.containerState.furtherBlankLines||!z(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(Be,t,i)(n))}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(e,e.attempt(qe,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Fe={tokenize:function(e,t,n){const r=this;return Y(e,(function(e){const i=r.events[r.events.length-1];return!z(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Be={tokenize:function(e,t,n){const r=this;return Y(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},Ue={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"),z(t)?Y(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||U(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}},He={tokenize:function(e){const t=this,n=e.attempt(ne,(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,Y(e,e.attempt(this.parser.constructs.flow,r,e.attempt(de,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)}}},ze={resolveAll:$e()},je=Ge("string"),Ve=Ge("text");function Ge(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:$e("text"===e?Ye:void 0)}}function $e(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 Ye(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 We(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){U(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=x(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=Z(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&&T(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 Qe=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:ye},disable:{null:[]},document:{42:qe,43:qe,45:qe,48:qe,49:qe,50:qe,51:qe,52:qe,53:qe,54:qe,55:qe,56:qe,57:qe,62:re},flow:{35:Ee,42:Pe,45:[Ue,Pe],60:xe,61:Ue,95:Pe,96:se,126:se},flowInitial:{[-2]:le,[-1]:le,32:le},insideSpan:{null:[J,ze]},string:{38:oe,92:ie},text:{[-5]:Me,[-4]:Me,[-3]:Me,33:Oe,38:oe,42:J,60:[te,De],91:Ie,92:[we,ie],93:Re,95:J,96:ue}});const Xe=/[\0\t\n\r]/g,Ke=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ze(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return _(n.slice(t?2:1),t?16:10)}return S(n)||e}function Je(e){return e&&"object"==typeof e?"position"in e||"type"in e?tt(e.position):"start"in e||"end"in e?tt(e):"line"in e||"column"in e?et(e):"":""}function et(e){return nt(e&&e.line)+":"+nt(e&&e.column)}function tt(e){return et(e&&e.start)+"-"+et(e&&e.end)}function nt(e){return e&&"number"==typeof e?e:1}const rt={}.hasOwnProperty;function it(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(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:i(g),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(m),hardBreakTrailing:i(m),htmlFlow:i(b,o),htmlFlowData:u,htmlText:i(b,o),htmlTextData:u,image:i((function(){return{type:"image",title:null,url:"",alt:null}})),label:o,link:i(y),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(v,(function(){this.data.expectingFirstListItemValue=!0})),listUnordered:i(v),paragraph:i((function(){return{type:"paragraph",children:[]}})),reference:function(){this.data.referenceType="collapsed"},referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(g),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=_(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0):r=S(t);const i=this.stack.pop();i.value+=r,i.position.end=ot(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=L(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(Ke,Ze)}(t),n.identifier=L(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=ot(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=L(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()}};at(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]];rt.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]||lt).call(s,void 0,e[0])}for(i.position={start:ot(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ot(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:ot(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+"` ("+Je({start:e.start,end:e.end})+"): it’s not open");r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||lt).call(this,e,r[0])),n.position.end=ot(e.end)}function c(){return k(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:ot(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=ot(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 g(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function b(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!he(e););return e}(function(e){const t={defined:[],lazy:{},constructs:A([Qe,...(e||{}).extensions||[]]),content:n(W),document:n(Q),flow:n(He),string:n(je),text:n(Ve)};return t;function n(e){return function(n){return We(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(Xe.lastIndex=u,l=Xe.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 ot(e){return{line:e.line,column:e.column,offset:e.offset}}function at(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?at(e,r):st(e,r)}}function st(e,t){let n;for(n in t)if(rt.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 lt(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Je({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Je({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Je({start:t.start,end:t.end})+") is still open")}function ct(e){const t=this;t.parser=function(n){return it(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ut(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 ht(e){const t=e.spread;return null==t?e.children.length>1:t}const ft=pt("end"),dt=pt("start");function pt(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 gt(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(mt(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(mt(t.slice(i),i>0,!1)),o.join("")}function mt(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 bt={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={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},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=$(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 ut(e,t);const i={src:$(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:$(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 ut(e,t);const i={href:$(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:$(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=ht(n[r])}return t}(n):ht(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=dt(t.children[1]),a=ft(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:gt(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:kt,yaml:kt,definition:kt,footnoteDefinition:kt};function kt(){}function yt(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 vt(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const wt={}.hasOwnProperty,Et={};function St(e,t){e.position&&(t.position=function(e){const t=dt(e),n=ft(e);if(t&&n)return{start:t,end:n}}(e))}function Tt(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 xt(e,t){const n=t.data||{},r=!("value"in t)||wt.call(n,"hProperties")||wt.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 Ct(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 At(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Dt(e,r){const i=function(e,r){const i=r||Et,o=new Map,a=new Map,s=new Map,l={...bt,...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=At(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=At(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:Tt,definitionById:o,footnoteById:a,footnoteCounts:s,footnoteOrder:[],handlers:l,one:function(e,n){const r=e.type,i=c.handlers[r];if(wt.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||xt)(c,e,n)},options:i,patch:St,wrap:Ct};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||yt,i=e.options.footnoteBackLabel||vt,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=$(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 Rt(e,t){return e&&"run"in e?async function(n,r){const i=Dt(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Dt(n,{file:r,...e||t})}}function _t(e){return"function"==typeof e?e:function(){return e}}const Lt="phrasing",Nt=["autolink","link","image","label"];function Ot(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function It(e){this.config.enter.autolinkProtocol.call(this,e)}function Mt(e){this.config.exit.autolinkProtocol.call(this,e)}function Pt(e){this.config.exit.data.call(this,e),this.stack[this.stack.length-1].url="http://"+this.sliceSerialize(e)}function qt(e){this.config.exit.autolinkEmail.call(this,e)}function Ft(e){this.exit(e)}function Bt(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),_t(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,Ut],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Ht]],{ignore:["link","linkReference"]})}function Ut(e,t,n,r,i){let a="";if(!zt(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",a="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 s=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=o(e,"(");let a=o(e,")");for(;-1!==r&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}(n+r);if(!s[0])return!1;const l={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function Ht(e,t,n,r){return!(!zt(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function zt(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||V(n)||j(n))&&(!t||47!==n)}function jt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Vt(){this.buffer()}function Gt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=L(this.sliceSerialize(e)).toLowerCase()}function $t(e){this.exit(e)}function Yt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Wt(){this.buffer()}function Qt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=L(this.sliceSerialize(e)).toLowerCase()}function Xt(e){this.exit(e)}function Kt(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 Zt(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()),Jt)),a(),o}function Jt(e,t,n){return 0===t?e:(n?"":" ")+e}Kt.peek=function(){return"["};const en=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function tn(e){this.enter({type:"delete",children:[]},e)}function nn(e){this.exit(e)}function rn(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 on(e){return e.length}function an(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 sn(e,t,n){return">"+(n?"":" ")+e}function ln(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 cn(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&(ln(o=n.stack,(a=n.unsafe[i]).inConstruct,!0)&&!ln(o,a.notInConstruct,!1)))return/[ \t]/.test(r.before)?"":" ";var o,a;return"\\\n"}function un(e,t,n){return(n?"":" ")+e}function hn(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 fn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function dn(e,t,n){const r=K(e),i=K(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function pn(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),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=dn(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=fn(c)+l.slice(1));const h=l.charCodeAt(l.length-1),f=dn(r.after.charCodeAt(0),h,i);f.inside&&(l=l.slice(0,-1)+fn(h));const d=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+d}function gn(e){return e.value||""}function mn(e,t,n,r){const i=hn(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 bn(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 kn(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 yn(e,t){const n=k(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=hn(n),o='"'===i?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(yn(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 En(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}rn.peek=function(){return"~"},pn.peek=function(e,t,n){return n.options.emphasis||"*"},gn.peek=function(){return"<"},mn.peek=function(){return"!"},bn.peek=function(){return"!"},kn.peek=function(){return"`"},vn.peek=function(e,t,n){return yn(e,n)?"<":"["},wn.peek=function(){return"["};const Tn=r(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);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),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const c=l.charCodeAt(0),u=dn(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=fn(c)+l.slice(1));const h=l.charCodeAt(l.length-1),f=dn(r.after.charCodeAt(0),h,i);f.inside&&(l=l.slice(0,-1)+fn(h));const d=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+l+d}xn.peek=function(e,t,n){return n.options.strong||"*"};const Cn={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()),sn);return i(),a},break:cn,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,un);return e(),t}const s=n.createTracker(r),l=i.repeat(Math.max(function(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}(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=hn(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:pn,hardBreak:cn,heading:function(e,t,r,i){const o=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,a})),Boolean((!e.depth||e.depth<3)&&k(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===o?"=":"-").repeat(i.length-(Math.max(i.lastIndexOf("\r"),i.lastIndexOf("\n"))+1))}const l="#".repeat(o),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=fn(h.charCodeAt(0))+h.slice(1)),h=h?l+" "+h:l,r.options.closeAtx&&(h+=" "+l),u(),c(),h},html:gn,image:mn,imageReference:bn,inlineCode:kn,link:vn,linkReference:wn,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):En(n);const s=e.ordered?"."===a?")":".":function(e){const t=En(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||En(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:xn,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 An(e){this.enter({type:"table",align:e._align.map((function(e){return"none"===e?null:e})),children:[]},e),this.data.inTable=!0}function Dn(e){this.exit(e),this.data.inTable=void 0}function Rn(e){this.enter({type:"tableRow",children:[]},e)}function _n(e){this.exit(e)}function Ln(e){this.enter({type:"tableCell",children:[]},e)}function Nn(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 In(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=Cn.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||on,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]=an(n[h]);else{const e=an(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 Mn(e){this.stack[this.stack.length-2].checked="taskListCheckValueChecked"===e.type}function Pn(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 qn(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=Cn.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,(function(e){return e+a}))),l}const Fn={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},Bn={tokenize:function(e,t,n){let r,i,o;return a;function a(t){return 46===t||95===t?e.check(Hn,l,s)(t):null===t||H(t)||V(t)||45!==t&&j(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},Un={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(Hn,t,o)(a):null===a||H(a)||V(a)?t(a):(e.consume(a),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},Hn={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||H(a)||V(a)?t(a):n(a)}function i(e){return null===e||40===e||91===e||H(e)||V(e)?t(e):r(e)}function o(e){return O(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):O(t)?(e.consume(t),a):n(t)}},partial:!0},zn={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return I(e)?n(e):t(e)}},partial:!0},jn={tokenize:function(e,t,n){const r=this;return function(t){return 87!==t&&119!==t||!Wn.call(r,r.previous)||Zn(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Fn,e.attempt(Bn,e.attempt(Un,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:Wn},Vn={tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){return 72!==t&&104!==t||!Qn.call(r,r.previous)||Zn(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),a)};function a(t){if(O(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||P(t)||H(t)||V(t)||j(t)?n(t):e.attempt(Bn,e.attempt(Un,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Qn},Gn={tokenize:function(e,t,n){const r=this;let i,o;return function(t){return Kn(t)&&Xn.call(r,r.previous)&&!Zn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)):n(t)};function a(t){return Kn(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(zn,c,l)(t):45===t||95===t||I(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&&O(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:Xn},$n={};let Yn=48;for(;Yn<123;)$n[Yn]=Gn,Yn++,58===Yn?Yn=65:91===Yn&&(Yn=97);function Wn(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||H(e)}function Qn(e){return!O(e)}function Xn(e){return!(47===e||Kn(e))}function Kn(e){return 43===e||45===e||46===e||95===e||I(e)}function Zn(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}$n[43]=Gn,$n[45]=Gn,$n[46]=Gn,$n[95]=Gn,$n[72]=[Gn,Vn],$n[104]=[Gn,Vn],$n[87]=[Gn,jn],$n[119]=[Gn,jn];const Jn={tokenize:function(e,t,n){const r=this;return Y(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 er(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=L(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 tr(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 nr(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||H(s))return n(s);if(93===s){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(L(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return H(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 rr(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||H(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=L(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return H(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),Y(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function ir(e,t,n){return e.check(ne,t,e.attempt(Jn,t,n))}function or(e){e.exit("gfmFootnoteDefinition")}function ar(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=K(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=K(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&&T(a,a.length,0,Z(s,e.slice(r+1,n),t)),T(a,a.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),T(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 lr(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?v:s;return o===v&&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):U(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):z(t)?Y(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||H(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,z(t)?Y(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 z(t)?Y(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||U(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 z(t)?Y(e,k,"whitespace")(t):k(t)}function k(n){return 124===n?f(n):(null===n||U(n))&&i&&o===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function v(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||U(n)?(e.exit("tableRow"),t(n)):z(n)?Y(e,w,"whitespace")(n):(e.enter("data"),E(n))}function E(t){return null===t||124===t||H(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?S:E)}function S(t){return 92===t||124===t?(e.consume(t),E):E(t)}}function ur(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&&(fr(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=hr(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=hr(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=hr(f,t,l,s,o,i)):0!==c[1]&&(i=hr(f,t,c,s,o,i)),s=0):!s||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(c[3]=o)}for(0!==h&&fr(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=lr(t.events,o))}return e}function hr(e,t,n,r,i,o){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},dr(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=dr(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=dr(t.events,n[2]),o=dr(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({},dr(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function fr(e,t,n,r,i){const o=[],a=dr(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 dr(e,t){const n=e[t];return n[1]["enter"===n[0]?"start":"end"]}const pr={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 H(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 U(r)?t(r):z(r)?e.check({tokenize:gr},t,n)(r):n(r)}}};function gr(e,t,n){return Y(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}const mr={};function br(e){const t=e||mr,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return A([{text:$n},{document:{91:{tokenize:rr,continuation:{tokenize:ir},exit:or}},text:{91:{tokenize:nr},93:{add:"after",tokenize:er,resolveTo:tr}}},ar(e),{flow:{null:{tokenize:cr,resolveAll:ur}}},{text:{91:pr}}])}(t)),i.push([{transforms:[Bt],enter:{literalAutolink:Ot,literalAutolinkEmail:It,literalAutolinkHttp:It,literalAutolinkWww:It},exit:{literalAutolink:Ft,literalAutolinkEmail:qt,literalAutolinkHttp:Mt,literalAutolinkWww:Pt}},{enter:{gfmFootnoteDefinition:jt,gfmFootnoteDefinitionLabelString:Vt,gfmFootnoteCall:Yt,gfmFootnoteCallString:Wt},exit:{gfmFootnoteDefinition:$t,gfmFootnoteDefinitionLabelString:Gt,gfmFootnoteCall:Xt,gfmFootnoteCallString:Qt}},{canContainEols:["delete"],enter:{strikethrough:tn},exit:{strikethrough:nn}},{enter:{table:An,tableData:Ln,tableHeader:Ln,tableRow:Rn},exit:{codeText:Nn,table:Dn,tableData:_n,tableHeader:_n,tableRow:_n}},{exit:{taskListCheckValueChecked:Mn,taskListCheckValueUnchecked:Mn,paragraph:Pn}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Lt,notInConstruct:Nt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Lt,notInConstruct:Nt},{character:":",before:"[ps]",after:"\\/",inConstruct:Lt,notInConstruct:Nt}]},{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Zt,footnoteReference:Kt}},{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:en}],handlers:{delete:rn}},In(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qn}}]}}(t))}let kr=class{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}};function yr(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 kr(n,r,t)}function vr(e){return e.toLowerCase()}kr.prototype.property={},kr.prototype.normal={},kr.prototype.space=null;let wr=class{constructor(e,t){this.property=e,this.attribute=t}};wr.prototype.space=null,wr.prototype.boolean=!1,wr.prototype.booleanish=!1,wr.prototype.overloadedBoolean=!1,wr.prototype.number=!1,wr.prototype.commaSeparated=!1,wr.prototype.spaceSeparated=!1,wr.prototype.commaOrSpaceSeparated=!1,wr.prototype.mustUseProperty=!1,wr.prototype.defined=!1;let Er=0;const Sr=_r(),Tr=_r(),xr=_r(),Cr=_r(),Ar=_r(),Dr=_r(),Rr=_r();function _r(){return 2**++Er}var Lr=Object.freeze({__proto__:null,boolean:Sr,booleanish:Tr,commaOrSpaceSeparated:Rr,commaSeparated:Dr,number:Cr,overloadedBoolean:xr,spaceSeparated:Ar});const Nr=Object.keys(Lr);let Or=class extends wr{constructor(e,t,n,r){let i=-1;if(super(e,t),Ir(this,"space",r),"number"==typeof n)for(;++i<Nr.length;){const e=Nr[i];Ir(this,Nr[i],(n&Lr[e])===Lr[e])}}};function Ir(e,t,n){n&&(e[t]=n)}Or.prototype.defined=!0;const Mr={}.hasOwnProperty;function Pr(e){const t={},n={};let r;for(r in e.properties)if(Mr.call(e.properties,r)){const i=e.properties[r],o=new Or(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[vr(r)]=r,n[vr(o.attribute)]=r}return new kr(t,n,e.space)}const qr=Pr({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}}),Fr=Pr({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Br(e,t){return t in e?e[t]:t}function Ur(e,t){return Br(e,t.toLowerCase())}const Hr=Pr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Ur,properties:{xmlns:null,xmlnsXLink:null}}),zr=Pr({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Tr,ariaAutoComplete:null,ariaBusy:Tr,ariaChecked:Tr,ariaColCount:Cr,ariaColIndex:Cr,ariaColSpan:Cr,ariaControls:Ar,ariaCurrent:null,ariaDescribedBy:Ar,ariaDetails:null,ariaDisabled:Tr,ariaDropEffect:Ar,ariaErrorMessage:null,ariaExpanded:Tr,ariaFlowTo:Ar,ariaGrabbed:Tr,ariaHasPopup:null,ariaHidden:Tr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ar,ariaLevel:Cr,ariaLive:null,ariaModal:Tr,ariaMultiLine:Tr,ariaMultiSelectable:Tr,ariaOrientation:null,ariaOwns:Ar,ariaPlaceholder:null,ariaPosInSet:Cr,ariaPressed:Tr,ariaReadOnly:Tr,ariaRelevant:null,ariaRequired:Tr,ariaRoleDescription:Ar,ariaRowCount:Cr,ariaRowIndex:Cr,ariaRowSpan:Cr,ariaSelected:Tr,ariaSetSize:Cr,ariaSort:null,ariaValueMax:Cr,ariaValueMin:Cr,ariaValueNow:Cr,ariaValueText:null,role:null}}),jr=Pr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ur,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Dr,acceptCharset:Ar,accessKey:Ar,action:null,allow:null,allowFullScreen:Sr,allowPaymentRequest:Sr,allowUserMedia:Sr,alt:null,as:null,async:Sr,autoCapitalize:null,autoComplete:Ar,autoFocus:Sr,autoPlay:Sr,blocking:Ar,capture:Sr,charSet:null,checked:Sr,cite:null,className:Ar,cols:Cr,colSpan:null,content:null,contentEditable:Tr,controls:Sr,controlsList:Ar,coords:Cr|Dr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Sr,defer:Sr,dir:null,dirName:null,disabled:Sr,download:xr,draggable:Tr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Sr,formTarget:null,headers:Ar,height:Cr,hidden:Sr,high:Cr,href:null,hrefLang:null,htmlFor:Ar,httpEquiv:Ar,id:null,imageSizes:null,imageSrcSet:null,inert:Sr,inputMode:null,integrity:null,is:null,isMap:Sr,itemId:null,itemProp:Ar,itemRef:Ar,itemScope:Sr,itemType:Ar,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Sr,low:Cr,manifest:null,max:null,maxLength:Cr,media:null,method:null,min:null,minLength:Cr,multiple:Sr,muted:Sr,name:null,nonce:null,noModule:Sr,noValidate:Sr,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:Sr,optimum:Cr,pattern:null,ping:Ar,placeholder:null,playsInline:Sr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Sr,referrerPolicy:null,rel:Ar,required:Sr,reversed:Sr,rows:Cr,rowSpan:Cr,sandbox:Ar,scope:null,scoped:Sr,seamless:Sr,selected:Sr,shape:null,size:Cr,sizes:null,slot:null,span:Cr,spellCheck:Tr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Cr,step:null,style:null,tabIndex:Cr,target:null,title:null,translate:null,type:null,typeMustMatch:Sr,useMap:null,value:Tr,width:Cr,wrap:null,align:null,aLink:null,archive:Ar,axis:null,background:null,bgColor:null,border:Cr,borderColor:null,bottomMargin:Cr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Sr,declare:Sr,event:null,face:null,frame:null,frameBorder:null,hSpace:Cr,leftMargin:Cr,link:null,longDesc:null,lowSrc:null,marginHeight:Cr,marginWidth:Cr,noResize:Sr,noHref:Sr,noShade:Sr,noWrap:Sr,object:null,profile:null,prompt:null,rev:null,rightMargin:Cr,rules:null,scheme:null,scrolling:Tr,standby:null,summary:null,text:null,topMargin:Cr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Cr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Sr,disableRemotePlayback:Sr,prefix:null,property:null,results:Cr,security:null,unselectable:null}}),Vr=Pr({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:Br,properties:{about:Rr,accentHeight:Cr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Cr,amplitude:Cr,arabicForm:null,ascent:Cr,attributeName:null,attributeType:null,azimuth:Cr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Cr,by:null,calcMode:null,capHeight:Cr,className:Ar,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:Cr,diffuseConstant:Cr,direction:null,display:null,dur:null,divisor:Cr,dominantBaseline:null,download:Sr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Cr,enableBackground:null,end:null,event:null,exponent:Cr,externalResourcesRequired:null,fill:null,fillOpacity:Cr,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:Dr,g2:Dr,glyphName:Dr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Cr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Cr,horizOriginX:Cr,horizOriginY:Cr,id:null,ideographic:Cr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Cr,k:Cr,k1:Cr,k2:Cr,k3:Cr,k4:Cr,kernelMatrix:Rr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Cr,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:Cr,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:Cr,overlineThickness:Cr,paintOrder:null,panose1:null,path:null,pathLength:Cr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ar,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Cr,pointsAtY:Cr,pointsAtZ:Cr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Rr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Rr,rev:Rr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Rr,requiredFeatures:Rr,requiredFonts:Rr,requiredFormats:Rr,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:Cr,specularExponent:Cr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Cr,strikethroughThickness:Cr,string:null,stroke:null,strokeDashArray:Rr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Cr,strokeOpacity:Cr,strokeWidth:null,style:null,surfaceScale:Cr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Rr,tabIndex:Cr,tableValues:null,target:null,targetX:Cr,targetY:Cr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Rr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Cr,underlineThickness:Cr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Cr,values:null,vAlphabetic:Cr,vMathematical:Cr,vectorEffect:null,vHanging:Cr,vIdeographic:Cr,version:null,vertAdvY:Cr,vertOriginX:Cr,vertOriginY:Cr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Cr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Gr=/^data[-\w.:]+$/i,$r=/-[a-z]/g,Yr=/[A-Z]/g;function Wr(e,t){const n=vr(t);let r=t,i=wr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Gr.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace($r,Xr);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!$r.test(e)){let n=e.replace(Yr,Qr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Or}return new i(r,t)}function Qr(e){return"-"+e.toLowerCase()}function Xr(e){return e.charAt(1).toUpperCase()}const Kr=yr([Fr,qr,Hr,zr,jr],"html"),Zr=yr([Fr,qr,Hr,zr,Vr],"svg");function Jr(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 ei=/[#.]/g;function ti(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}const ni=new Set(["button","menu","reset","submit"]),ri={}.hasOwnProperty;function ii(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;){ei.lastIndex=a;const e=ei.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&&ri.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?!ni.has(l.type.toLowerCase()):"value"in l)))o.unshift(i);else{let t;for(t in i)ri.call(i,t)&&oi(e,a.properties,t,i[t])}for(var l,c;++s<o.length;)ai(a.children,o[s]);return"element"===a.type&&"template"===a.tagName&&(a.content={type:"root",children:a.children},a.children=[]),a}}function oi(e,t,n,r){const i=Wr(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?ti(r):i.commaSeparated?Jr(r):i.commaOrSpaceSeparated?ti(Jr(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)ri.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 ai(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;)ai(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?ai(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||vr(n)===vr(t)))return!0}return n}const li=ii(Kr,"div"),ci=ii(Zr,"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"]),ui=/\r?\n|\r/g,hi="http://www.w3.org/1999/xhtml",fi="http://www.w3.org/2000/svg",di={}.hasOwnProperty,pi=Object.prototype;function gi(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},bi(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:mi(e,t.childNodes),data:{quirksMode:r}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];for(ui.lastIndex=0;ui.test(t);)n.push(ui.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"},bi(e,t,n),n;case"#text":return n={type:"text",value:t.value},bi(e,t,n),n;default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===fi?Zr:Kr;let r=-1;const i={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;di.call(pi,n)||(i[n]=e.value)}const o=("svg"===e.schema.space?ci:li)(t.tagName,i,mi(e,t.childNodes));if(bi(e,t,o),"template"===o.tagName){const n=t,r=n.sourceCodeLocation,i=r&&r.startTag&&yi(r.startTag),a=r&&r.endTag&&yi(r.endTag),s=gi(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 mi(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=gi(e,t[n]);r.push(i)}return r}function bi(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=ki(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function ki(e,t,n){const r=yi(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)di.call(n.attrs,i)&&(r[Wr(e.schema,i).property]=yi(n.attrs[i]));const o=yi(n.startTag),a=n.endTag?yi(n.endTag):void 0,s={opening:o};a&&(s.closing=a),s.properties=r,t.data={position:s}}}return r}function yi(e){const t=vi({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=vi({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function vi(e){return e.line&&e.column?e:void 0}class wi{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Ei(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 wi(n,r,t)}function Si(e){return e.toLowerCase()}wi.prototype.property={},wi.prototype.normal={},wi.prototype.space=null;class Ti{constructor(e,t){this.property=e,this.attribute=t}}Ti.prototype.space=null,Ti.prototype.boolean=!1,Ti.prototype.booleanish=!1,Ti.prototype.overloadedBoolean=!1,Ti.prototype.number=!1,Ti.prototype.commaSeparated=!1,Ti.prototype.spaceSeparated=!1,Ti.prototype.commaOrSpaceSeparated=!1,Ti.prototype.mustUseProperty=!1,Ti.prototype.defined=!1;let xi=0;const Ci=Oi(),Ai=Oi(),Di=Oi(),Ri=Oi(),_i=Oi(),Li=Oi(),Ni=Oi();function Oi(){return 2**++xi}var Ii=Object.freeze({__proto__:null,boolean:Ci,booleanish:Ai,commaOrSpaceSeparated:Ni,commaSeparated:Li,number:Ri,overloadedBoolean:Di,spaceSeparated:_i});const Mi=Object.keys(Ii);class Pi extends Ti{constructor(e,t,n,r){let i=-1;if(super(e,t),qi(this,"space",r),"number"==typeof n)for(;++i<Mi.length;){const e=Mi[i];qi(this,Mi[i],(n&Ii[e])===Ii[e])}}}function qi(e,t,n){n&&(e[t]=n)}Pi.prototype.defined=!0;const Fi={}.hasOwnProperty;function Bi(e){const t={},n={};let r;for(r in e.properties)if(Fi.call(e.properties,r)){const i=e.properties[r],o=new Pi(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Si(r)]=r,n[Si(o.attribute)]=r}return new wi(t,n,e.space)}const Ui=Bi({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}}),Hi=Bi({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function zi(e,t){return t in e?e[t]:t}function ji(e,t){return zi(e,t.toLowerCase())}const Vi=Bi({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:ji,properties:{xmlns:null,xmlnsXLink:null}}),Gi=Bi({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Ai,ariaAutoComplete:null,ariaBusy:Ai,ariaChecked:Ai,ariaColCount:Ri,ariaColIndex:Ri,ariaColSpan:Ri,ariaControls:_i,ariaCurrent:null,ariaDescribedBy:_i,ariaDetails:null,ariaDisabled:Ai,ariaDropEffect:_i,ariaErrorMessage:null,ariaExpanded:Ai,ariaFlowTo:_i,ariaGrabbed:Ai,ariaHasPopup:null,ariaHidden:Ai,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_i,ariaLevel:Ri,ariaLive:null,ariaModal:Ai,ariaMultiLine:Ai,ariaMultiSelectable:Ai,ariaOrientation:null,ariaOwns:_i,ariaPlaceholder:null,ariaPosInSet:Ri,ariaPressed:Ai,ariaReadOnly:Ai,ariaRelevant:null,ariaRequired:Ai,ariaRoleDescription:_i,ariaRowCount:Ri,ariaRowIndex:Ri,ariaRowSpan:Ri,ariaSelected:Ai,ariaSetSize:Ri,ariaSort:null,ariaValueMax:Ri,ariaValueMin:Ri,ariaValueNow:Ri,ariaValueText:null,role:null}}),$i=Bi({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:ji,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Li,acceptCharset:_i,accessKey:_i,action:null,allow:null,allowFullScreen:Ci,allowPaymentRequest:Ci,allowUserMedia:Ci,alt:null,as:null,async:Ci,autoCapitalize:null,autoComplete:_i,autoFocus:Ci,autoPlay:Ci,blocking:_i,capture:Ci,charSet:null,checked:Ci,cite:null,className:_i,cols:Ri,colSpan:null,content:null,contentEditable:Ai,controls:Ci,controlsList:_i,coords:Ri|Li,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ci,defer:Ci,dir:null,dirName:null,disabled:Ci,download:Di,draggable:Ai,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ci,formTarget:null,headers:_i,height:Ri,hidden:Ci,high:Ri,href:null,hrefLang:null,htmlFor:_i,httpEquiv:_i,id:null,imageSizes:null,imageSrcSet:null,inert:Ci,inputMode:null,integrity:null,is:null,isMap:Ci,itemId:null,itemProp:_i,itemRef:_i,itemScope:Ci,itemType:_i,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ci,low:Ri,manifest:null,max:null,maxLength:Ri,media:null,method:null,min:null,minLength:Ri,multiple:Ci,muted:Ci,name:null,nonce:null,noModule:Ci,noValidate:Ci,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:Ci,optimum:Ri,pattern:null,ping:_i,placeholder:null,playsInline:Ci,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ci,referrerPolicy:null,rel:_i,required:Ci,reversed:Ci,rows:Ri,rowSpan:Ri,sandbox:_i,scope:null,scoped:Ci,seamless:Ci,selected:Ci,shape:null,size:Ri,sizes:null,slot:null,span:Ri,spellCheck:Ai,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ri,step:null,style:null,tabIndex:Ri,target:null,title:null,translate:null,type:null,typeMustMatch:Ci,useMap:null,value:Ai,width:Ri,wrap:null,align:null,aLink:null,archive:_i,axis:null,background:null,bgColor:null,border:Ri,borderColor:null,bottomMargin:Ri,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ci,declare:Ci,event:null,face:null,frame:null,frameBorder:null,hSpace:Ri,leftMargin:Ri,link:null,longDesc:null,lowSrc:null,marginHeight:Ri,marginWidth:Ri,noResize:Ci,noHref:Ci,noShade:Ci,noWrap:Ci,object:null,profile:null,prompt:null,rev:null,rightMargin:Ri,rules:null,scheme:null,scrolling:Ai,standby:null,summary:null,text:null,topMargin:Ri,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ri,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ci,disableRemotePlayback:Ci,prefix:null,property:null,results:Ri,security:null,unselectable:null}}),Yi=Bi({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:zi,properties:{about:Ni,accentHeight:Ri,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ri,amplitude:Ri,arabicForm:null,ascent:Ri,attributeName:null,attributeType:null,azimuth:Ri,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ri,by:null,calcMode:null,capHeight:Ri,className:_i,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:Ri,diffuseConstant:Ri,direction:null,display:null,dur:null,divisor:Ri,dominantBaseline:null,download:Ci,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ri,enableBackground:null,end:null,event:null,exponent:Ri,externalResourcesRequired:null,fill:null,fillOpacity:Ri,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:Li,g2:Li,glyphName:Li,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ri,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ri,horizOriginX:Ri,horizOriginY:Ri,id:null,ideographic:Ri,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ri,k:Ri,k1:Ri,k2:Ri,k3:Ri,k4:Ri,kernelMatrix:Ni,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ri,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:Ri,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:Ri,overlineThickness:Ri,paintOrder:null,panose1:null,path:null,pathLength:Ri,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:_i,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ri,pointsAtY:Ri,pointsAtZ:Ri,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ni,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ni,rev:Ni,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ni,requiredFeatures:Ni,requiredFonts:Ni,requiredFormats:Ni,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:Ri,specularExponent:Ri,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ri,strikethroughThickness:Ri,string:null,stroke:null,strokeDashArray:Ni,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ri,strokeOpacity:Ri,strokeWidth:null,style:null,surfaceScale:Ri,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ni,tabIndex:Ri,tableValues:null,target:null,targetX:Ri,targetY:Ri,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ni,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ri,underlineThickness:Ri,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ri,values:null,vAlphabetic:Ri,vMathematical:Ri,vectorEffect:null,vHanging:Ri,vIdeographic:Ri,version:null,vertAdvY:Ri,vertOriginX:Ri,vertOriginY:Ri,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ri,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Wi=/^data[-\w.:]+$/i,Qi=/-[a-z]/g,Xi=/[A-Z]/g;function Ki(e){return"-"+e.toLowerCase()}function Zi(e){return e.charAt(1).toUpperCase()}const Ji=Ei([Hi,Ui,Vi,Gi,$i],"html"),eo=Ei([Hi,Ui,Vi,Gi,Yi],"svg"),to={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/"},no={},ro={}.hasOwnProperty,io=s("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ao(e.children,n,t),so(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=eo);const i=[];let o;if(e.properties)for(o in e.properties)if("children"!==o&&ro.call(e.properties,o)){const t=oo(r,o,e.properties[o]);t&&i.push(t)}const a={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:to[r.space],childNodes:[],parentNode:null};return a.childNodes=ao(e.children,a,r),so(e,a),"template"===e.tagName&&e.content&&(a.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ao(e.children,n,t),so(e,n),n}(e.content,r)),a},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return so(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return so(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return so(e,t),t}}});function oo(e,t,n){const r=function(e,t){const n=Si(t);let r=t,i=Ti;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Wi.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Qi,Zi);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Qi.test(e)){let n=e.replace(Xi,Ki);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Pi}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=to[r.space]}return i}function ao(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const o=io(e[r],n);o.parentNode=t,i.push(o)}return i}function so(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 lo=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],co=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]),uo="�";var ho;!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"}(ho=ho||(ho={}));const fo="[CDATA[",po="doctype",go="script";function mo(e){return e>=55296&&e<=57343}function bo(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function ko(e){return e>=64976&&e<=65007||co.has(e)}var yo,vo,wo,Eo,So,To,xo;!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"}(yo=yo||(yo={}));class Co{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,ho.EOF;return this._err(yo.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,ho.EOF;const n=this.html.charCodeAt(t);return n===ho.CARRIAGE_RETURN?ho.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,ho.EOF;let e=this.html.charCodeAt(this.pos);return e===ho.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ho.LINE_FEED):e===ho.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,mo(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===ho.LINE_FEED||e===ho.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){bo(e)?this._err(yo.controlCharacterInInputStream):ko(e)&&this._err(yo.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function Ao(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"}(vo=vo||(vo={})),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/"}(wo=wo||(wo={})),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"}(Eo=Eo||(Eo={})),function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"}(So=So||(So={})),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"}(To=To||(To={})),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"}(xo=xo||(xo={}));const Do=new Map([[To.A,xo.A],[To.ADDRESS,xo.ADDRESS],[To.ANNOTATION_XML,xo.ANNOTATION_XML],[To.APPLET,xo.APPLET],[To.AREA,xo.AREA],[To.ARTICLE,xo.ARTICLE],[To.ASIDE,xo.ASIDE],[To.B,xo.B],[To.BASE,xo.BASE],[To.BASEFONT,xo.BASEFONT],[To.BGSOUND,xo.BGSOUND],[To.BIG,xo.BIG],[To.BLOCKQUOTE,xo.BLOCKQUOTE],[To.BODY,xo.BODY],[To.BR,xo.BR],[To.BUTTON,xo.BUTTON],[To.CAPTION,xo.CAPTION],[To.CENTER,xo.CENTER],[To.CODE,xo.CODE],[To.COL,xo.COL],[To.COLGROUP,xo.COLGROUP],[To.DD,xo.DD],[To.DESC,xo.DESC],[To.DETAILS,xo.DETAILS],[To.DIALOG,xo.DIALOG],[To.DIR,xo.DIR],[To.DIV,xo.DIV],[To.DL,xo.DL],[To.DT,xo.DT],[To.EM,xo.EM],[To.EMBED,xo.EMBED],[To.FIELDSET,xo.FIELDSET],[To.FIGCAPTION,xo.FIGCAPTION],[To.FIGURE,xo.FIGURE],[To.FONT,xo.FONT],[To.FOOTER,xo.FOOTER],[To.FOREIGN_OBJECT,xo.FOREIGN_OBJECT],[To.FORM,xo.FORM],[To.FRAME,xo.FRAME],[To.FRAMESET,xo.FRAMESET],[To.H1,xo.H1],[To.H2,xo.H2],[To.H3,xo.H3],[To.H4,xo.H4],[To.H5,xo.H5],[To.H6,xo.H6],[To.HEAD,xo.HEAD],[To.HEADER,xo.HEADER],[To.HGROUP,xo.HGROUP],[To.HR,xo.HR],[To.HTML,xo.HTML],[To.I,xo.I],[To.IMG,xo.IMG],[To.IMAGE,xo.IMAGE],[To.INPUT,xo.INPUT],[To.IFRAME,xo.IFRAME],[To.KEYGEN,xo.KEYGEN],[To.LABEL,xo.LABEL],[To.LI,xo.LI],[To.LINK,xo.LINK],[To.LISTING,xo.LISTING],[To.MAIN,xo.MAIN],[To.MALIGNMARK,xo.MALIGNMARK],[To.MARQUEE,xo.MARQUEE],[To.MATH,xo.MATH],[To.MENU,xo.MENU],[To.META,xo.META],[To.MGLYPH,xo.MGLYPH],[To.MI,xo.MI],[To.MO,xo.MO],[To.MN,xo.MN],[To.MS,xo.MS],[To.MTEXT,xo.MTEXT],[To.NAV,xo.NAV],[To.NOBR,xo.NOBR],[To.NOFRAMES,xo.NOFRAMES],[To.NOEMBED,xo.NOEMBED],[To.NOSCRIPT,xo.NOSCRIPT],[To.OBJECT,xo.OBJECT],[To.OL,xo.OL],[To.OPTGROUP,xo.OPTGROUP],[To.OPTION,xo.OPTION],[To.P,xo.P],[To.PARAM,xo.PARAM],[To.PLAINTEXT,xo.PLAINTEXT],[To.PRE,xo.PRE],[To.RB,xo.RB],[To.RP,xo.RP],[To.RT,xo.RT],[To.RTC,xo.RTC],[To.RUBY,xo.RUBY],[To.S,xo.S],[To.SCRIPT,xo.SCRIPT],[To.SECTION,xo.SECTION],[To.SELECT,xo.SELECT],[To.SOURCE,xo.SOURCE],[To.SMALL,xo.SMALL],[To.SPAN,xo.SPAN],[To.STRIKE,xo.STRIKE],[To.STRONG,xo.STRONG],[To.STYLE,xo.STYLE],[To.SUB,xo.SUB],[To.SUMMARY,xo.SUMMARY],[To.SUP,xo.SUP],[To.TABLE,xo.TABLE],[To.TBODY,xo.TBODY],[To.TEMPLATE,xo.TEMPLATE],[To.TEXTAREA,xo.TEXTAREA],[To.TFOOT,xo.TFOOT],[To.TD,xo.TD],[To.TH,xo.TH],[To.THEAD,xo.THEAD],[To.TITLE,xo.TITLE],[To.TR,xo.TR],[To.TRACK,xo.TRACK],[To.TT,xo.TT],[To.U,xo.U],[To.UL,xo.UL],[To.SVG,xo.SVG],[To.VAR,xo.VAR],[To.WBR,xo.WBR],[To.XMP,xo.XMP]]);function Ro(e){var t;return null!==(t=Do.get(e))&&void 0!==t?t:xo.UNKNOWN}const _o=xo,Lo={[wo.HTML]:new Set([_o.ADDRESS,_o.APPLET,_o.AREA,_o.ARTICLE,_o.ASIDE,_o.BASE,_o.BASEFONT,_o.BGSOUND,_o.BLOCKQUOTE,_o.BODY,_o.BR,_o.BUTTON,_o.CAPTION,_o.CENTER,_o.COL,_o.COLGROUP,_o.DD,_o.DETAILS,_o.DIR,_o.DIV,_o.DL,_o.DT,_o.EMBED,_o.FIELDSET,_o.FIGCAPTION,_o.FIGURE,_o.FOOTER,_o.FORM,_o.FRAME,_o.FRAMESET,_o.H1,_o.H2,_o.H3,_o.H4,_o.H5,_o.H6,_o.HEAD,_o.HEADER,_o.HGROUP,_o.HR,_o.HTML,_o.IFRAME,_o.IMG,_o.INPUT,_o.LI,_o.LINK,_o.LISTING,_o.MAIN,_o.MARQUEE,_o.MENU,_o.META,_o.NAV,_o.NOEMBED,_o.NOFRAMES,_o.NOSCRIPT,_o.OBJECT,_o.OL,_o.P,_o.PARAM,_o.PLAINTEXT,_o.PRE,_o.SCRIPT,_o.SECTION,_o.SELECT,_o.SOURCE,_o.STYLE,_o.SUMMARY,_o.TABLE,_o.TBODY,_o.TD,_o.TEMPLATE,_o.TEXTAREA,_o.TFOOT,_o.TH,_o.THEAD,_o.TITLE,_o.TR,_o.TRACK,_o.UL,_o.WBR,_o.XMP]),[wo.MATHML]:new Set([_o.MI,_o.MO,_o.MN,_o.MS,_o.MTEXT,_o.ANNOTATION_XML]),[wo.SVG]:new Set([_o.TITLE,_o.FOREIGN_OBJECT,_o.DESC]),[wo.XLINK]:new Set,[wo.XML]:new Set,[wo.XMLNS]:new Set};function No(e){return e===_o.H1||e===_o.H2||e===_o.H3||e===_o.H4||e===_o.H5||e===_o.H6}const Oo=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 Io;!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"}(Io||(Io={}));const Mo={DATA:Io.DATA,RCDATA:Io.RCDATA,RAWTEXT:Io.RAWTEXT,SCRIPT_DATA:Io.SCRIPT_DATA,PLAINTEXT:Io.PLAINTEXT};function Po(e){return e>=ho.DIGIT_0&&e<=ho.DIGIT_9}function qo(e){return e>=ho.LATIN_CAPITAL_A&&e<=ho.LATIN_CAPITAL_Z}function Fo(e){return function(e){return e>=ho.LATIN_SMALL_A&&e<=ho.LATIN_SMALL_Z}(e)||qo(e)}function Bo(e){return Fo(e)||Po(e)}function Uo(e){return e>=ho.LATIN_CAPITAL_A&&e<=ho.LATIN_CAPITAL_F}function Ho(e){return e>=ho.LATIN_SMALL_A&&e<=ho.LATIN_SMALL_F}function zo(e){return e+32}function jo(e){return e===ho.SPACE||e===ho.LINE_FEED||e===ho.TABULATION||e===ho.FORM_FEED}function Vo(e){return jo(e)||e===ho.SOLIDUS||e===ho.GREATER_THAN_SIGN}class Go{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=Io.DATA,this.returnState=Io.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Co(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:vo.START_TAG,tagName:"",tagID:xo.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:vo.END_TAG,tagName:"",tagID:xo.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:vo.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:vo.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===Ao(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(yo.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=Ro(e.tagName),e.type===vo.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(yo.endTagWithAttributes),e.selfClosing&&this._err(yo.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 vo.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case vo.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case vo.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:vo.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=jo(e)?vo.WHITESPACE_CHARACTER:e===ho.NULL?vo.NULL_CHARACTER:vo.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(vo.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,n=0,r=!1;for(let o=0,a=c[0];o>=0&&(o=l(c,a,o+1,e),!(o<0));e=this._consume()){n+=1,a=c[o];const s=a&u.VALUE_LENGTH;if(s){const a=(s>>14)-1;if(e!==ho.SEMICOLON&&this._isCharacterReferenceInAttribute()&&((i=this.preprocessor.peek(1))===ho.EQUALS_SIGN||Bo(i))?(t=[ho.AMPERSAND],o+=a):(t=0===a?[c[o]&~u.VALUE_LENGTH]:1===a?[c[++o]]:[c[++o],c[++o]],n=0,r=e!==ho.SEMICOLON),0===a){this._consume();break}}}var i;return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(yo.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===Io.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Io.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Io.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Io.DATA:this._stateData(e);break;case Io.RCDATA:this._stateRcdata(e);break;case Io.RAWTEXT:this._stateRawtext(e);break;case Io.SCRIPT_DATA:this._stateScriptData(e);break;case Io.PLAINTEXT:this._statePlaintext(e);break;case Io.TAG_OPEN:this._stateTagOpen(e);break;case Io.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Io.TAG_NAME:this._stateTagName(e);break;case Io.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Io.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Io.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Io.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Io.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Io.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Io.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Io.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Io.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Io.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Io.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Io.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Io.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Io.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Io.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Io.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Io.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Io.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Io.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Io.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Io.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Io.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Io.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Io.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Io.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Io.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Io.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Io.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Io.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Io.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Io.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Io.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Io.BOGUS_COMMENT:this._stateBogusComment(e);break;case Io.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Io.COMMENT_START:this._stateCommentStart(e);break;case Io.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Io.COMMENT:this._stateComment(e);break;case Io.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Io.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Io.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Io.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Io.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Io.COMMENT_END:this._stateCommentEnd(e);break;case Io.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Io.DOCTYPE:this._stateDoctype(e);break;case Io.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Io.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Io.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Io.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Io.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Io.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Io.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Io.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Io.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Io.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Io.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Io.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Io.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Io.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Io.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Io.CDATA_SECTION:this._stateCdataSection(e);break;case Io.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Io.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Io.CHARACTER_REFERENCE:this._stateCharacterReference(e);break;case Io.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(e);break;case Io.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;case Io.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(e);break;case Io.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(e);break;case Io.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(e);break;case Io.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(e);break;case Io.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case ho.LESS_THAN_SIGN:this.state=Io.TAG_OPEN;break;case ho.AMPERSAND:this.returnState=Io.DATA,this.state=Io.CHARACTER_REFERENCE;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitCodePoint(e);break;case ho.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case ho.AMPERSAND:this.returnState=Io.RCDATA,this.state=Io.CHARACTER_REFERENCE;break;case ho.LESS_THAN_SIGN:this.state=Io.RCDATA_LESS_THAN_SIGN;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitChars(uo);break;case ho.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case ho.LESS_THAN_SIGN:this.state=Io.RAWTEXT_LESS_THAN_SIGN;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitChars(uo);break;case ho.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_LESS_THAN_SIGN;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitChars(uo);break;case ho.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitChars(uo);break;case ho.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Fo(e))this._createStartTagToken(),this.state=Io.TAG_NAME,this._stateTagName(e);else switch(e){case ho.EXCLAMATION_MARK:this.state=Io.MARKUP_DECLARATION_OPEN;break;case ho.SOLIDUS:this.state=Io.END_TAG_OPEN;break;case ho.QUESTION_MARK:this._err(yo.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Io.BOGUS_COMMENT,this._stateBogusComment(e);break;case ho.EOF:this._err(yo.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(yo.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Io.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Fo(e))this._createEndTagToken(),this.state=Io.TAG_NAME,this._stateTagName(e);else switch(e){case ho.GREATER_THAN_SIGN:this._err(yo.missingEndTagName),this.state=Io.DATA;break;case ho.EOF:this._err(yo.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(yo.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Io.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this.state=Io.BEFORE_ATTRIBUTE_NAME;break;case ho.SOLIDUS:this.state=Io.SELF_CLOSING_START_TAG;break;case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentTagToken();break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.tagName+=uo;break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(qo(e)?zo(e):e)}}_stateRcdataLessThanSign(e){e===ho.SOLIDUS?this.state=Io.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Io.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){Fo(e)?(this.state=Io.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=Io.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 ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Io.BEFORE_ATTRIBUTE_NAME,!1;case ho.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Io.SELF_CLOSING_START_TAG,!1;case ho.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Io.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Io.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===ho.SOLIDUS?this.state=Io.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Io.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){Fo(e)?(this.state=Io.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=Io.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Io.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case ho.SOLIDUS:this.state=Io.SCRIPT_DATA_END_TAG_OPEN;break;case ho.EXCLAMATION_MARK:this.state=Io.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=Io.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){Fo(e)?(this.state=Io.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=Io.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Io.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===ho.HYPHEN_MINUS?(this.state=Io.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Io.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===ho.HYPHEN_MINUS?(this.state=Io.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Io.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case ho.HYPHEN_MINUS:this.state=Io.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitChars(uo);break;case ho.EOF:this._err(yo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case ho.HYPHEN_MINUS:this.state=Io.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.state=Io.SCRIPT_DATA_ESCAPED,this._emitChars(uo);break;case ho.EOF:this._err(yo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Io.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case ho.HYPHEN_MINUS:this._emitChars("-");break;case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case ho.GREATER_THAN_SIGN:this.state=Io.SCRIPT_DATA,this._emitChars(">");break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.state=Io.SCRIPT_DATA_ESCAPED,this._emitChars(uo);break;case ho.EOF:this._err(yo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Io.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===ho.SOLIDUS?this.state=Io.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Fo(e)?(this._emitChars("<"),this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=Io.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Fo(e)?(this.state=Io.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=Io.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Io.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(go,!1)&&Vo(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Io.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case ho.HYPHEN_MINUS:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._emitChars(uo);break;case ho.EOF:this._err(yo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case ho.HYPHEN_MINUS:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(uo);break;case ho.EOF:this._err(yo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case ho.HYPHEN_MINUS:this._emitChars("-");break;case ho.LESS_THAN_SIGN:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case ho.GREATER_THAN_SIGN:this.state=Io.SCRIPT_DATA,this._emitChars(">");break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(uo);break;case ho.EOF:this._err(yo.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===ho.SOLIDUS?(this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(go,!1)&&Vo(this.preprocessor.peek(6))){this._emitCodePoint(e);for(let e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Io.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Io.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.SOLIDUS:case ho.GREATER_THAN_SIGN:case ho.EOF:this.state=Io.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case ho.EQUALS_SIGN:this._err(yo.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Io.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=Io.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:case ho.SOLIDUS:case ho.GREATER_THAN_SIGN:case ho.EOF:this._leaveAttrName(),this.state=Io.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case ho.EQUALS_SIGN:this._leaveAttrName(),this.state=Io.BEFORE_ATTRIBUTE_VALUE;break;case ho.QUOTATION_MARK:case ho.APOSTROPHE:case ho.LESS_THAN_SIGN:this._err(yo.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.currentAttr.name+=uo;break;default:this.currentAttr.name+=String.fromCodePoint(qo(e)?zo(e):e)}}_stateAfterAttributeName(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.SOLIDUS:this.state=Io.SELF_CLOSING_START_TAG;break;case ho.EQUALS_SIGN:this.state=Io.BEFORE_ATTRIBUTE_VALUE;break;case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentTagToken();break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=Io.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.QUOTATION_MARK:this.state=Io.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case ho.APOSTROPHE:this.state=Io.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case ho.GREATER_THAN_SIGN:this._err(yo.missingAttributeValue),this.state=Io.DATA,this.emitCurrentTagToken();break;default:this.state=Io.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case ho.QUOTATION_MARK:this.state=Io.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case ho.AMPERSAND:this.returnState=Io.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=Io.CHARACTER_REFERENCE;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.currentAttr.value+=uo;break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case ho.APOSTROPHE:this.state=Io.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case ho.AMPERSAND:this.returnState=Io.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=Io.CHARACTER_REFERENCE;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.currentAttr.value+=uo;break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this._leaveAttrValue(),this.state=Io.BEFORE_ATTRIBUTE_NAME;break;case ho.AMPERSAND:this.returnState=Io.ATTRIBUTE_VALUE_UNQUOTED,this.state=Io.CHARACTER_REFERENCE;break;case ho.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Io.DATA,this.emitCurrentTagToken();break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this.currentAttr.value+=uo;break;case ho.QUOTATION_MARK:case ho.APOSTROPHE:case ho.LESS_THAN_SIGN:case ho.EQUALS_SIGN:case ho.GRAVE_ACCENT:this._err(yo.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this._leaveAttrValue(),this.state=Io.BEFORE_ATTRIBUTE_NAME;break;case ho.SOLIDUS:this._leaveAttrValue(),this.state=Io.SELF_CLOSING_START_TAG;break;case ho.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Io.DATA,this.emitCurrentTagToken();break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:this._err(yo.missingWhitespaceBetweenAttributes),this.state=Io.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case ho.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=Io.DATA,this.emitCurrentTagToken();break;case ho.EOF:this._err(yo.eofInTag),this._emitEOFToken();break;default:this._err(yo.unexpectedSolidusInTag),this.state=Io.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentComment(t);break;case ho.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.data+=uo;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=Io.COMMENT_START):this._consumeSequenceIfMatch(po,!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=Io.DOCTYPE):this._consumeSequenceIfMatch(fo,!0)?this.inForeignNode?this.state=Io.CDATA_SECTION:(this._err(yo.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=Io.BOGUS_COMMENT):this._ensureHibernation()||(this._err(yo.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Io.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case ho.HYPHEN_MINUS:this.state=Io.COMMENT_START_DASH;break;case ho.GREATER_THAN_SIGN:this._err(yo.abruptClosingOfEmptyComment),this.state=Io.DATA,this.emitCurrentComment(this.currentToken);break;default:this.state=Io.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case ho.HYPHEN_MINUS:this.state=Io.COMMENT_END;break;case ho.GREATER_THAN_SIGN:this._err(yo.abruptClosingOfEmptyComment),this.state=Io.DATA,this.emitCurrentComment(t);break;case ho.EOF:this._err(yo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Io.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case ho.HYPHEN_MINUS:this.state=Io.COMMENT_END_DASH;break;case ho.LESS_THAN_SIGN:t.data+="<",this.state=Io.COMMENT_LESS_THAN_SIGN;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.data+=uo;break;case ho.EOF:this._err(yo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case ho.EXCLAMATION_MARK:t.data+="!",this.state=Io.COMMENT_LESS_THAN_SIGN_BANG;break;case ho.LESS_THAN_SIGN:t.data+="<";break;default:this.state=Io.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===ho.HYPHEN_MINUS?this.state=Io.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Io.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===ho.HYPHEN_MINUS?this.state=Io.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Io.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==ho.GREATER_THAN_SIGN&&e!==ho.EOF&&this._err(yo.nestedComment),this.state=Io.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case ho.HYPHEN_MINUS:this.state=Io.COMMENT_END;break;case ho.EOF:this._err(yo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Io.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentComment(t);break;case ho.EXCLAMATION_MARK:this.state=Io.COMMENT_END_BANG;break;case ho.HYPHEN_MINUS:t.data+="-";break;case ho.EOF:this._err(yo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=Io.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case ho.HYPHEN_MINUS:t.data+="--!",this.state=Io.COMMENT_END_DASH;break;case ho.GREATER_THAN_SIGN:this._err(yo.incorrectlyClosedComment),this.state=Io.DATA,this.emitCurrentComment(t);break;case ho.EOF:this._err(yo.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=Io.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this.state=Io.BEFORE_DOCTYPE_NAME;break;case ho.GREATER_THAN_SIGN:this.state=Io.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case ho.EOF:{this._err(yo.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(yo.missingWhitespaceBeforeDoctypeName),this.state=Io.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(qo(e))this._createDoctypeToken(String.fromCharCode(zo(e))),this.state=Io.DOCTYPE_NAME;else switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.NULL:this._err(yo.unexpectedNullCharacter),this._createDoctypeToken(uo),this.state=Io.DOCTYPE_NAME;break;case ho.GREATER_THAN_SIGN:{this._err(yo.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Io.DATA;break}case ho.EOF:{this._err(yo.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=Io.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this.state=Io.AFTER_DOCTYPE_NAME;break;case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.name+=uo;break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(qo(e)?zo(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=Io.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=Io.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(yo.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this.state=Io.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case ho.QUOTATION_MARK:this._err(yo.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Io.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case ho.APOSTROPHE:this._err(yo.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Io.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case ho.GREATER_THAN_SIGN:this._err(yo.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.QUOTATION_MARK:t.publicId="",this.state=Io.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case ho.APOSTROPHE:t.publicId="",this.state=Io.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case ho.GREATER_THAN_SIGN:this._err(yo.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case ho.QUOTATION_MARK:this.state=Io.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.publicId+=uo;break;case ho.GREATER_THAN_SIGN:this._err(yo.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.EOF:this._err(yo.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 ho.APOSTROPHE:this.state=Io.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.publicId+=uo;break;case ho.GREATER_THAN_SIGN:this._err(yo.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.EOF:this._err(yo.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 ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this.state=Io.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case ho.GREATER_THAN_SIGN:this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.QUOTATION_MARK:this._err(yo.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case ho.APOSTROPHE:this._err(yo.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.QUOTATION_MARK:t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case ho.APOSTROPHE:t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:this.state=Io.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case ho.QUOTATION_MARK:this._err(yo.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case ho.APOSTROPHE:this._err(yo.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case ho.GREATER_THAN_SIGN:this._err(yo.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.QUOTATION_MARK:t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case ho.APOSTROPHE:t.systemId="",this.state=Io.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case ho.GREATER_THAN_SIGN:this._err(yo.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Io.DATA,this.emitCurrentDoctype(t);break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case ho.QUOTATION_MARK:this.state=Io.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.systemId+=uo;break;case ho.GREATER_THAN_SIGN:this._err(yo.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.EOF:this._err(yo.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 ho.APOSTROPHE:this.state=Io.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case ho.NULL:this._err(yo.unexpectedNullCharacter),t.systemId+=uo;break;case ho.GREATER_THAN_SIGN:this._err(yo.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.EOF:this._err(yo.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 ho.SPACE:case ho.LINE_FEED:case ho.TABULATION:case ho.FORM_FEED:break;case ho.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.EOF:this._err(yo.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yo.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Io.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case ho.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Io.DATA;break;case ho.NULL:this._err(yo.unexpectedNullCharacter);break;case ho.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case ho.RIGHT_SQUARE_BRACKET:this.state=Io.CDATA_SECTION_BRACKET;break;case ho.EOF:this._err(yo.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===ho.RIGHT_SQUARE_BRACKET?this.state=Io.CDATA_SECTION_END:(this._emitChars("]"),this.state=Io.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case ho.GREATER_THAN_SIGN:this.state=Io.DATA;break;case ho.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=Io.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===ho.NUMBER_SIGN?this.state=Io.NUMERIC_CHARACTER_REFERENCE:Bo(e)?(this.state=Io.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(ho.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(ho.AMPERSAND),this.state=Io.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(e){Bo(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===ho.SEMICOLON&&this._err(yo.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,e))}_stateNumericCharacterReference(e){this.charRefCode=0,e===ho.LATIN_SMALL_X||e===ho.LATIN_CAPITAL_X?this.state=Io.HEXADEMICAL_CHARACTER_REFERENCE_START:Po(e)?(this.state=Io.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(yo.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(ho.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(ho.NUMBER_SIGN),this._reconsumeInState(this.returnState,e))}_stateHexademicalCharacterReferenceStart(e){!function(e){return Po(e)||Uo(e)||Ho(e)}(e)?(this._err(yo.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(ho.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(ho.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState):(this.state=Io.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e))}_stateHexademicalCharacterReference(e){Uo(e)?this.charRefCode=16*this.charRefCode+e-55:Ho(e)?this.charRefCode=16*this.charRefCode+e-87:Po(e)?this.charRefCode=16*this.charRefCode+e-48:e===ho.SEMICOLON?this.state=Io.NUMERIC_CHARACTER_REFERENCE_END:(this._err(yo.missingSemicolonAfterCharacterReference),this.state=Io.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharacterReference(e){Po(e)?this.charRefCode=10*this.charRefCode+e-48:e===ho.SEMICOLON?this.state=Io.NUMERIC_CHARACTER_REFERENCE_END:(this._err(yo.missingSemicolonAfterCharacterReference),this.state=Io.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===ho.NULL)this._err(yo.nullCharacterReference),this.charRefCode=ho.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(yo.characterReferenceOutsideUnicodeRange),this.charRefCode=ho.REPLACEMENT_CHARACTER;else if(mo(this.charRefCode))this._err(yo.surrogateCharacterReference),this.charRefCode=ho.REPLACEMENT_CHARACTER;else if(ko(this.charRefCode))this._err(yo.noncharacterCharacterReference);else if(bo(this.charRefCode)||this.charRefCode===ho.CARRIAGE_RETURN){this._err(yo.controlCharacterReference);const e=Oo.get(this.charRefCode);void 0!==e&&(this.charRefCode=e)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}}const $o=new Set([xo.DD,xo.DT,xo.LI,xo.OPTGROUP,xo.OPTION,xo.P,xo.RB,xo.RP,xo.RT,xo.RTC]),Yo=new Set([...$o,xo.CAPTION,xo.COLGROUP,xo.TBODY,xo.TD,xo.TFOOT,xo.TH,xo.THEAD,xo.TR]),Wo=new Map([[xo.APPLET,wo.HTML],[xo.CAPTION,wo.HTML],[xo.HTML,wo.HTML],[xo.MARQUEE,wo.HTML],[xo.OBJECT,wo.HTML],[xo.TABLE,wo.HTML],[xo.TD,wo.HTML],[xo.TEMPLATE,wo.HTML],[xo.TH,wo.HTML],[xo.ANNOTATION_XML,wo.MATHML],[xo.MI,wo.MATHML],[xo.MN,wo.MATHML],[xo.MO,wo.MATHML],[xo.MS,wo.MATHML],[xo.MTEXT,wo.MATHML],[xo.DESC,wo.SVG],[xo.FOREIGN_OBJECT,wo.SVG],[xo.TITLE,wo.SVG]]),Qo=[xo.H1,xo.H2,xo.H3,xo.H4,xo.H5,xo.H6],Xo=[xo.TR,xo.TEMPLATE,xo.HTML],Ko=[xo.TBODY,xo.TFOOT,xo.THEAD,xo.TEMPLATE,xo.HTML],Zo=[xo.TABLE,xo.TEMPLATE,xo.HTML],Jo=[xo.TD,xo.TH];class ea{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=xo.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===xo.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===wo.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])!==wo.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(Qo,wo.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Jo,wo.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(Zo,wo.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Ko,wo.HTML)}clearBackToTableRowContext(){this.clearBackTo(Xo,wo.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]===xo.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]===xo.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===wo.HTML)return!0;if(Wo.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(No(t)&&n===wo.HTML)return!0;if(Wo.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===wo.HTML)return!0;if((n===xo.UL||n===xo.OL)&&r===wo.HTML||Wo.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===wo.HTML)return!0;if(n===xo.BUTTON&&r===wo.HTML||Wo.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])===wo.HTML){if(n===e)return!0;if(n===xo.TABLE||n===xo.TEMPLATE||n===xo.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])===wo.HTML){if(t===xo.TBODY||t===xo.THEAD||t===xo.TFOOT)return!0;if(t===xo.TABLE||t===xo.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])===wo.HTML){if(n===e)return!0;if(n!==xo.OPTION&&n!==xo.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;$o.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Yo.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&Yo.has(this.currentTagId);)this.pop()}}var ta;!function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"}(ta=ta||(ta={}));const na={type:ta.Marker};class ra{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===ta.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(na)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:ta.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:ta.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(na);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){const t=this.entries.find((t=>t.type===ta.Marker||this.treeAdapter.getTagName(t.element)===e));return t&&t.type===ta.Element?t:null}getElementEntry(e){return this.entries.find((t=>t.type===ta.Element&&t.element===e))}}function ia(e){return{nodeName:"#text",value:e,parentNode:null}}const oa={createDocument:()=>({nodeName:"#document",mode:So.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):oa.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(oa.isTextNode(n))return void(n.value+=t)}oa.appendChild(e,ia(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&oa.isTextNode(r)?r.value+=t:oa.insertBefore(e,ia(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}}},aa="html",sa=["+//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//"],la=[...sa,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],ca=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),ua=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],ha=[...ua,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function fa(e,t){return t.some((t=>e.startsWith(t)))}const da=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]))),pa=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:wo.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:wo.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:wo.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:wo.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:wo.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:wo.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:wo.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:wo.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:wo.XML}],["xml:space",{prefix:"xml",name:"space",namespace:wo.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:wo.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:wo.XMLNS}]]),ga=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]))),ma=new Set([xo.B,xo.BIG,xo.BLOCKQUOTE,xo.BODY,xo.BR,xo.CENTER,xo.CODE,xo.DD,xo.DIV,xo.DL,xo.DT,xo.EM,xo.EMBED,xo.H1,xo.H2,xo.H3,xo.H4,xo.H5,xo.H6,xo.HEAD,xo.HR,xo.I,xo.IMG,xo.LI,xo.LISTING,xo.MENU,xo.META,xo.NOBR,xo.OL,xo.P,xo.PRE,xo.RUBY,xo.S,xo.SMALL,xo.SPAN,xo.STRONG,xo.STRIKE,xo.SUB,xo.SUP,xo.TABLE,xo.TT,xo.U,xo.UL,xo.VAR]);function ba(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function ka(e){for(let t=0;t<e.attrs.length;t++){const n=da.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function ya(e){for(let t=0;t<e.attrs.length;t++){const n=pa.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 va;!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"}(va||(va={}));const wa={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ea=new Set([xo.TABLE,xo.TBODY,xo.TFOOT,xo.THEAD,xo.TR]),Sa={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:oa,onParseError:null};class Ta{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=va.INITIAL,this.originalInsertionMode=va.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={...Sa,...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 Go(this.options,this),this.activeFormattingElements=new ra(this.treeAdapter),this.fragmentContextID=n?Ro(this.treeAdapter.getTagName(n)):xo.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new ea(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...Sa,...t};null!=e||(e=n.treeAdapter.createElement(To.TEMPLATE,wo.HTML,[]));const r=n.treeAdapter.createElement("documentmock",wo.HTML,[]),i=new this(n,r,e);return i.fragmentContextID===xo.TEMPLATE&&i.tmplInsertionModeStack.unshift(va.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:wa;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)===wo.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,wo.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=va.TEXT}switchToPlaintextParsing(){this.insertionMode=va.TEXT,this.originalInsertionMode=va.IN_BODY,this.tokenizer.state=Mo.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)===To.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===wo.HTML)switch(this.fragmentContextID){case xo.TITLE:case xo.TEXTAREA:this.tokenizer.state=Mo.RCDATA;break;case xo.STYLE:case xo.XMP:case xo.IFRAME:case xo.NOEMBED:case xo.NOFRAMES:case xo.NOSCRIPT:this.tokenizer.state=Mo.RAWTEXT;break;case xo.SCRIPT:this.tokenizer.state=Mo.SCRIPT_DATA;break;case xo.PLAINTEXT:this.tokenizer.state=Mo.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,wo.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,wo.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(To.HTML,wo.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,xo.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===vo.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!==xo.SVG||this.treeAdapter.getTagName(t)!==To.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==wo.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===xo.MGLYPH||e.tagID===xo.MALIGNMARK)&&!this._isIntegrationPoint(n,t,wo.HTML))}_processToken(e){switch(e.type){case vo.CHARACTER:this.onCharacter(e);break;case vo.NULL_CHARACTER:this.onNullCharacter(e);break;case vo.COMMENT:this.onComment(e);break;case vo.DOCTYPE:this.onDoctype(e);break;case vo.START_TAG:this._processStartTag(e);break;case vo.END_TAG:this.onEndTag(e);break;case vo.EOF:this.onEof(e);break;case vo.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return function(e,t,n,r){return(!r||r===wo.HTML)&&function(e,t,n){if(t===wo.MATHML&&e===xo.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===Eo.ENCODING){const t=n[e].value.toLowerCase();return"text/html"===t||"application/xhtml+xml"===t}return t===wo.SVG&&(e===xo.FOREIGN_OBJECT||e===xo.DESC||e===xo.TITLE)}(e,t,n)||(!r||r===wo.MATHML)&&function(e,t){return t===wo.MATHML&&(e===xo.MI||e===xo.MO||e===xo.MN||e===xo.MS||e===xo.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===ta.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=va.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(xo.P),this.openElements.popUntilTagNamePopped(xo.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case xo.TR:return void(this.insertionMode=va.IN_ROW);case xo.TBODY:case xo.THEAD:case xo.TFOOT:return void(this.insertionMode=va.IN_TABLE_BODY);case xo.CAPTION:return void(this.insertionMode=va.IN_CAPTION);case xo.COLGROUP:return void(this.insertionMode=va.IN_COLUMN_GROUP);case xo.TABLE:return void(this.insertionMode=va.IN_TABLE);case xo.BODY:return void(this.insertionMode=va.IN_BODY);case xo.FRAMESET:return void(this.insertionMode=va.IN_FRAMESET);case xo.SELECT:return void this._resetInsertionModeForSelect(e);case xo.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case xo.HTML:return void(this.insertionMode=this.headElement?va.AFTER_HEAD:va.BEFORE_HEAD);case xo.TD:case xo.TH:if(e>0)return void(this.insertionMode=va.IN_CELL);break;case xo.HEAD:if(e>0)return void(this.insertionMode=va.IN_HEAD)}this.insertionMode=va.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===xo.TEMPLATE)break;if(e===xo.TABLE)return void(this.insertionMode=va.IN_SELECT_IN_TABLE)}this.insertionMode=va.IN_SELECT}_isElementCausesFosterParenting(e){return Ea.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 xo.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===wo.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case xo.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 Lo[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 va.INITIAL:Ia(this,e);break;case va.BEFORE_HTML:Ma(this,e);break;case va.BEFORE_HEAD:Pa(this,e);break;case va.IN_HEAD:Ba(this,e);break;case va.IN_HEAD_NO_SCRIPT:Ua(this,e);break;case va.AFTER_HEAD:Ha(this,e);break;case va.IN_BODY:case va.IN_CAPTION:case va.IN_CELL:case va.IN_TEMPLATE:Va(this,e);break;case va.TEXT:case va.IN_SELECT:case va.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case va.IN_TABLE:case va.IN_TABLE_BODY:case va.IN_ROW:Ja(this,e);break;case va.IN_TABLE_TEXT:is(this,e);break;case va.IN_COLUMN_GROUP:ls(this,e);break;case va.AFTER_BODY:bs(this,e);break;case va.AFTER_AFTER_BODY:ks(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=uo,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case va.INITIAL:Ia(this,e);break;case va.BEFORE_HTML:Ma(this,e);break;case va.BEFORE_HEAD:Pa(this,e);break;case va.IN_HEAD:Ba(this,e);break;case va.IN_HEAD_NO_SCRIPT:Ua(this,e);break;case va.AFTER_HEAD:Ha(this,e);break;case va.TEXT:this._insertCharacters(e);break;case va.IN_TABLE:case va.IN_TABLE_BODY:case va.IN_ROW:Ja(this,e);break;case va.IN_COLUMN_GROUP:ls(this,e);break;case va.AFTER_BODY:bs(this,e);break;case va.AFTER_AFTER_BODY:ks(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)Na(this,e);else switch(this.insertionMode){case va.INITIAL:case va.BEFORE_HTML:case va.BEFORE_HEAD:case va.IN_HEAD:case va.IN_HEAD_NO_SCRIPT:case va.AFTER_HEAD:case va.IN_BODY:case va.IN_TABLE:case va.IN_CAPTION:case va.IN_COLUMN_GROUP:case va.IN_TABLE_BODY:case va.IN_ROW:case va.IN_CELL:case va.IN_SELECT:case va.IN_SELECT_IN_TABLE:case va.IN_TEMPLATE:case va.IN_FRAMESET:case va.AFTER_FRAMESET:Na(this,e);break;case va.IN_TABLE_TEXT:os(this,e);break;case va.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case va.AFTER_AFTER_BODY:case va.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case va.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?So.QUIRKS:function(e){if(e.name!==aa)return So.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return So.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),ca.has(n))return So.QUIRKS;let e=null===t?la:sa;if(fa(n,e))return So.QUIRKS;if(e=null===t?ua:ha,fa(n,e))return So.LIMITED_QUIRKS}return So.NO_QUIRKS}(t);(function(e){return e.name===aa&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,yo.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=va.BEFORE_HTML}(this,e);break;case va.BEFORE_HEAD:case va.IN_HEAD:case va.IN_HEAD_NO_SCRIPT:case va.AFTER_HEAD:this._err(e,yo.misplacedDoctype);break;case va.IN_TABLE_TEXT:os(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,yo.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===xo.FONT&&e.attrs.some((({name:e})=>e===Eo.COLOR||e===Eo.SIZE||e===Eo.FACE))||ma.has(t)}(t))ys(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===wo.MATHML?ba(t):r===wo.SVG&&(function(e){const t=ga.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=Ro(e.tagName))}(t),ka(t)),ya(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 va.INITIAL:Ia(this,e);break;case va.BEFORE_HTML:!function(e,t){t.tagID===xo.HTML?(e._insertElement(t,wo.HTML),e.insertionMode=va.BEFORE_HEAD):Ma(e,t)}(this,e);break;case va.BEFORE_HEAD:!function(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.HEAD:e._insertElement(t,wo.HTML),e.headElement=e.openElements.current,e.insertionMode=va.IN_HEAD;break;default:Pa(e,t)}}(this,e);break;case va.IN_HEAD:qa(this,e);break;case va.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.BASEFONT:case xo.BGSOUND:case xo.HEAD:case xo.LINK:case xo.META:case xo.NOFRAMES:case xo.STYLE:qa(e,t);break;case xo.NOSCRIPT:e._err(t,yo.nestedNoscriptInHead);break;default:Ua(e,t)}}(this,e);break;case va.AFTER_HEAD:!function(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.BODY:e._insertElement(t,wo.HTML),e.framesetOk=!1,e.insertionMode=va.IN_BODY;break;case xo.FRAMESET:e._insertElement(t,wo.HTML),e.insertionMode=va.IN_FRAMESET;break;case xo.BASE:case xo.BASEFONT:case xo.BGSOUND:case xo.LINK:case xo.META:case xo.NOFRAMES:case xo.SCRIPT:case xo.STYLE:case xo.TEMPLATE:case xo.TITLE:e._err(t,yo.abandonedHeadElementChild),e.openElements.push(e.headElement,xo.HEAD),qa(e,t),e.openElements.remove(e.headElement);break;case xo.HEAD:e._err(t,yo.misplacedStartTagForHeadElement);break;default:Ha(e,t)}}(this,e);break;case va.IN_BODY:Qa(this,e);break;case va.IN_TABLE:es(this,e);break;case va.IN_TABLE_TEXT:os(this,e);break;case va.IN_CAPTION:!function(e,t){as.has(t.tagID)?e.openElements.hasInTableScope(xo.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(xo.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=va.IN_TABLE,es(e,t)):Qa(e,t)}(this,e);break;case va.IN_COLUMN_GROUP:ss(this,e);break;case va.IN_TABLE_BODY:cs(this,e);break;case va.IN_ROW:hs(this,e);break;case va.IN_CELL:!function(e,t){as.has(t.tagID)?(e.openElements.hasInTableScope(xo.TD)||e.openElements.hasInTableScope(xo.TH))&&(e._closeTableCell(),hs(e,t)):Qa(e,t)}(this,e);break;case va.IN_SELECT:ds(this,e);break;case va.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===xo.CAPTION||n===xo.TABLE||n===xo.TBODY||n===xo.TFOOT||n===xo.THEAD||n===xo.TR||n===xo.TD||n===xo.TH?(e.openElements.popUntilTagNamePopped(xo.SELECT),e._resetInsertionMode(),e._processStartTag(t)):ds(e,t)}(this,e);break;case va.IN_TEMPLATE:!function(e,t){switch(t.tagID){case xo.BASE:case xo.BASEFONT:case xo.BGSOUND:case xo.LINK:case xo.META:case xo.NOFRAMES:case xo.SCRIPT:case xo.STYLE:case xo.TEMPLATE:case xo.TITLE:qa(e,t);break;case xo.CAPTION:case xo.COLGROUP:case xo.TBODY:case xo.TFOOT:case xo.THEAD:e.tmplInsertionModeStack[0]=va.IN_TABLE,e.insertionMode=va.IN_TABLE,es(e,t);break;case xo.COL:e.tmplInsertionModeStack[0]=va.IN_COLUMN_GROUP,e.insertionMode=va.IN_COLUMN_GROUP,ss(e,t);break;case xo.TR:e.tmplInsertionModeStack[0]=va.IN_TABLE_BODY,e.insertionMode=va.IN_TABLE_BODY,cs(e,t);break;case xo.TD:case xo.TH:e.tmplInsertionModeStack[0]=va.IN_ROW,e.insertionMode=va.IN_ROW,hs(e,t);break;default:e.tmplInsertionModeStack[0]=va.IN_BODY,e.insertionMode=va.IN_BODY,Qa(e,t)}}(this,e);break;case va.AFTER_BODY:!function(e,t){t.tagID===xo.HTML?Qa(e,t):bs(e,t)}(this,e);break;case va.IN_FRAMESET:!function(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.FRAMESET:e._insertElement(t,wo.HTML);break;case xo.FRAME:e._appendElement(t,wo.HTML),t.ackSelfClosing=!0;break;case xo.NOFRAMES:qa(e,t)}}(this,e);break;case va.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.NOFRAMES:qa(e,t)}}(this,e);break;case va.AFTER_AFTER_BODY:!function(e,t){t.tagID===xo.HTML?Qa(e,t):ks(e,t)}(this,e);break;case va.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.NOFRAMES:qa(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===xo.P||t.tagID===xo.BR)return ys(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)===wo.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 va.INITIAL:Ia(this,e);break;case va.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==xo.HTML&&n!==xo.HEAD&&n!==xo.BODY&&n!==xo.BR||Ma(e,t)}(this,e);break;case va.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===xo.HEAD||n===xo.BODY||n===xo.HTML||n===xo.BR?Pa(e,t):e._err(t,yo.endTagWithoutMatchingOpenElement)}(this,e);break;case va.IN_HEAD:!function(e,t){switch(t.tagID){case xo.HEAD:e.openElements.pop(),e.insertionMode=va.AFTER_HEAD;break;case xo.BODY:case xo.BR:case xo.HTML:Ba(e,t);break;case xo.TEMPLATE:Fa(e,t);break;default:e._err(t,yo.endTagWithoutMatchingOpenElement)}}(this,e);break;case va.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case xo.NOSCRIPT:e.openElements.pop(),e.insertionMode=va.IN_HEAD;break;case xo.BR:Ua(e,t);break;default:e._err(t,yo.endTagWithoutMatchingOpenElement)}}(this,e);break;case va.AFTER_HEAD:!function(e,t){switch(t.tagID){case xo.BODY:case xo.HTML:case xo.BR:Ha(e,t);break;case xo.TEMPLATE:Fa(e,t);break;default:e._err(t,yo.endTagWithoutMatchingOpenElement)}}(this,e);break;case va.IN_BODY:Ka(this,e);break;case va.TEXT:!function(e,t){var n;t.tagID===xo.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 va.IN_TABLE:ts(this,e);break;case va.IN_TABLE_TEXT:os(this,e);break;case va.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case xo.CAPTION:case xo.TABLE:e.openElements.hasInTableScope(xo.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(xo.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=va.IN_TABLE,n===xo.TABLE&&ts(e,t));break;case xo.BODY:case xo.COL:case xo.COLGROUP:case xo.HTML:case xo.TBODY:case xo.TD:case xo.TFOOT:case xo.TH:case xo.THEAD:case xo.TR:break;default:Ka(e,t)}}(this,e);break;case va.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case xo.COLGROUP:e.openElements.currentTagId===xo.COLGROUP&&(e.openElements.pop(),e.insertionMode=va.IN_TABLE);break;case xo.TEMPLATE:Fa(e,t);break;case xo.COL:break;default:ls(e,t)}}(this,e);break;case va.IN_TABLE_BODY:us(this,e);break;case va.IN_ROW:fs(this,e);break;case va.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case xo.TD:case xo.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=va.IN_ROW);break;case xo.TABLE:case xo.TBODY:case xo.TFOOT:case xo.THEAD:case xo.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),fs(e,t));break;case xo.BODY:case xo.CAPTION:case xo.COL:case xo.COLGROUP:case xo.HTML:break;default:Ka(e,t)}}(this,e);break;case va.IN_SELECT:ps(this,e);break;case va.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===xo.CAPTION||n===xo.TABLE||n===xo.TBODY||n===xo.TFOOT||n===xo.THEAD||n===xo.TR||n===xo.TD||n===xo.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(xo.SELECT),e._resetInsertionMode(),e.onEndTag(t)):ps(e,t)}(this,e);break;case va.IN_TEMPLATE:!function(e,t){t.tagID===xo.TEMPLATE&&Fa(e,t)}(this,e);break;case va.AFTER_BODY:ms(this,e);break;case va.IN_FRAMESET:!function(e,t){t.tagID!==xo.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===xo.FRAMESET||(e.insertionMode=va.AFTER_FRAMESET))}(this,e);break;case va.AFTER_FRAMESET:!function(e,t){t.tagID===xo.HTML&&(e.insertionMode=va.AFTER_AFTER_FRAMESET)}(this,e);break;case va.AFTER_AFTER_BODY:ks(this,e)}}onEof(e){switch(this.insertionMode){case va.INITIAL:Ia(this,e);break;case va.BEFORE_HTML:Ma(this,e);break;case va.BEFORE_HEAD:Pa(this,e);break;case va.IN_HEAD:Ba(this,e);break;case va.IN_HEAD_NO_SCRIPT:Ua(this,e);break;case va.AFTER_HEAD:Ha(this,e);break;case va.IN_BODY:case va.IN_TABLE:case va.IN_CAPTION:case va.IN_COLUMN_GROUP:case va.IN_TABLE_BODY:case va.IN_ROW:case va.IN_CELL:case va.IN_SELECT:case va.IN_SELECT_IN_TABLE:Za(this,e);break;case va.TEXT:!function(e,t){e._err(t,yo.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case va.IN_TABLE_TEXT:os(this,e);break;case va.IN_TEMPLATE:gs(this,e);break;case va.AFTER_BODY:case va.IN_FRAMESET:case va.AFTER_FRAMESET:case va.AFTER_AFTER_BODY:case va.AFTER_AFTER_FRAMESET:Oa(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===ho.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 va.IN_HEAD:case va.IN_HEAD_NO_SCRIPT:case va.AFTER_HEAD:case va.TEXT:case va.IN_COLUMN_GROUP:case va.IN_SELECT:case va.IN_SELECT_IN_TABLE:case va.IN_FRAMESET:case va.AFTER_FRAMESET:this._insertCharacters(e);break;case va.IN_BODY:case va.IN_CAPTION:case va.IN_CELL:case va.IN_TEMPLATE:case va.AFTER_BODY:case va.AFTER_AFTER_BODY:case va.AFTER_AFTER_FRAMESET:ja(this,e);break;case va.IN_TABLE:case va.IN_TABLE_BODY:case va.IN_ROW:Ja(this,e);break;case va.IN_TABLE_TEXT:rs(this,e)}}}function xa(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):Xa(e,t),n}function Ca(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 Aa(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=Da(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function Da(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 Ra(e,t,n){const r=Ro(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);r===xo.TEMPLATE&&i===wo.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function _a(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 La(e,t){for(let n=0;n<8;n++){const n=xa(e,t);if(!n)break;const r=Ca(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const i=Aa(e,r,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(i),o&&Ra(e,o,i),_a(e,r,n)}}function Na(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Oa(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 Ia(e,t){e._err(t,yo.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,So.QUIRKS),e.insertionMode=va.BEFORE_HTML,e._processToken(t)}function Ma(e,t){e._insertFakeRootElement(),e.insertionMode=va.BEFORE_HEAD,e._processToken(t)}function Pa(e,t){e._insertFakeElement(To.HEAD,xo.HEAD),e.headElement=e.openElements.current,e.insertionMode=va.IN_HEAD,e._processToken(t)}function qa(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.BASE:case xo.BASEFONT:case xo.BGSOUND:case xo.LINK:case xo.META:e._appendElement(t,wo.HTML),t.ackSelfClosing=!0;break;case xo.TITLE:e._switchToTextParsing(t,Mo.RCDATA);break;case xo.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Mo.RAWTEXT):(e._insertElement(t,wo.HTML),e.insertionMode=va.IN_HEAD_NO_SCRIPT);break;case xo.NOFRAMES:case xo.STYLE:e._switchToTextParsing(t,Mo.RAWTEXT);break;case xo.SCRIPT:e._switchToTextParsing(t,Mo.SCRIPT_DATA);break;case xo.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=va.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(va.IN_TEMPLATE);break;case xo.HEAD:e._err(t,yo.misplacedStartTagForHeadElement);break;default:Ba(e,t)}}function Fa(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==xo.TEMPLATE&&e._err(t,yo.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(xo.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,yo.endTagWithoutMatchingOpenElement)}function Ba(e,t){e.openElements.pop(),e.insertionMode=va.AFTER_HEAD,e._processToken(t)}function Ua(e,t){e._err(t,t.type===vo.EOF?yo.openElementsLeftAfterEof:yo.disallowedContentInNoscriptInHead),e.openElements.pop(),e.insertionMode=va.IN_HEAD,e._processToken(t)}function Ha(e,t){e._insertFakeElement(To.BODY,xo.BODY),e.insertionMode=va.IN_BODY,za(e,t)}function za(e,t){switch(t.type){case vo.CHARACTER:Va(e,t);break;case vo.WHITESPACE_CHARACTER:ja(e,t);break;case vo.COMMENT:Na(e,t);break;case vo.START_TAG:Qa(e,t);break;case vo.END_TAG:Ka(e,t);break;case vo.EOF:Za(e,t)}}function ja(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Va(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Ga(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,wo.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function $a(e){const t=Ao(e,Eo.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function Ya(e,t){e._switchToTextParsing(t,Mo.RAWTEXT)}function Wa(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML)}function Qa(e,t){switch(t.tagID){case xo.I:case xo.S:case xo.B:case xo.U:case xo.EM:case xo.TT:case xo.BIG:case xo.CODE:case xo.FONT:case xo.SMALL:case xo.STRIKE:case xo.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case xo.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(To.A);n&&(La(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case xo.H1:case xo.H2:case xo.H3:case xo.H4:case xo.H5:case xo.H6:!function(e,t){e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),No(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,wo.HTML)}(e,t);break;case xo.P:case xo.DL:case xo.OL:case xo.UL:case xo.DIV:case xo.DIR:case xo.NAV:case xo.MAIN:case xo.MENU:case xo.ASIDE:case xo.CENTER:case xo.FIGURE:case xo.FOOTER:case xo.HEADER:case xo.HGROUP:case xo.DIALOG:case xo.DETAILS:case xo.ADDRESS:case xo.ARTICLE:case xo.SECTION:case xo.SUMMARY:case xo.FIELDSET:case xo.BLOCKQUOTE:case xo.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._insertElement(t,wo.HTML)}(e,t);break;case xo.LI:case xo.DD:case xo.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===xo.LI&&r===xo.LI||(n===xo.DD||n===xo.DT)&&(r===xo.DD||r===xo.DT)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r);break}if(r!==xo.ADDRESS&&r!==xo.DIV&&r!==xo.P&&e._isSpecialElement(e.openElements.items[t],r))break}e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._insertElement(t,wo.HTML)}(e,t);break;case xo.BR:case xo.IMG:case xo.WBR:case xo.AREA:case xo.EMBED:case xo.KEYGEN:Ga(e,t);break;case xo.HR:!function(e,t){e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._appendElement(t,wo.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case xo.RB:case xo.RTC:!function(e,t){e.openElements.hasInScope(xo.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,wo.HTML)}(e,t);break;case xo.RT:case xo.RP:!function(e,t){e.openElements.hasInScope(xo.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(xo.RTC),e._insertElement(t,wo.HTML)}(e,t);break;case xo.PRE:case xo.LISTING:!function(e,t){e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._insertElement(t,wo.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case xo.XMP:!function(e,t){e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Mo.RAWTEXT)}(e,t);break;case xo.SVG:!function(e,t){e._reconstructActiveFormattingElements(),ka(t),ya(t),t.selfClosing?e._appendElement(t,wo.SVG):e._insertElement(t,wo.SVG),t.ackSelfClosing=!0}(e,t);break;case xo.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case xo.BASE:case xo.LINK:case xo.META:case xo.STYLE:case xo.TITLE:case xo.SCRIPT:case xo.BGSOUND:case xo.BASEFONT:case xo.TEMPLATE:qa(e,t);break;case xo.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 xo.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._insertElement(t,wo.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case xo.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(xo.NOBR)&&(La(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,wo.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case xo.MATH:!function(e,t){e._reconstructActiveFormattingElements(),ba(t),ya(t),t.selfClosing?e._appendElement(t,wo.MATHML):e._insertElement(t,wo.MATHML),t.ackSelfClosing=!0}(e,t);break;case xo.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==So.QUIRKS&&e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._insertElement(t,wo.HTML),e.framesetOk=!1,e.insertionMode=va.IN_TABLE}(e,t);break;case xo.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,wo.HTML),$a(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case xo.PARAM:case xo.TRACK:case xo.SOURCE:!function(e,t){e._appendElement(t,wo.HTML),t.ackSelfClosing=!0}(e,t);break;case xo.IMAGE:!function(e,t){t.tagName=To.IMG,t.tagID=xo.IMG,Ga(e,t)}(e,t);break;case xo.BUTTON:!function(e,t){e.openElements.hasInScope(xo.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(xo.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML),e.framesetOk=!1}(e,t);break;case xo.APPLET:case xo.OBJECT:case xo.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case xo.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Mo.RAWTEXT)}(e,t);break;case xo.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===va.IN_TABLE||e.insertionMode===va.IN_CAPTION||e.insertionMode===va.IN_TABLE_BODY||e.insertionMode===va.IN_ROW||e.insertionMode===va.IN_CELL?va.IN_SELECT_IN_TABLE:va.IN_SELECT}(e,t);break;case xo.OPTION:case xo.OPTGROUP:!function(e,t){e.openElements.currentTagId===xo.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,wo.HTML)}(e,t);break;case xo.NOEMBED:Ya(e,t);break;case xo.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,wo.HTML),e.insertionMode=va.IN_FRAMESET)}(e,t);break;case xo.TEXTAREA:!function(e,t){e._insertElement(t,wo.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Mo.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=va.TEXT}(e,t);break;case xo.NOSCRIPT:e.options.scriptingEnabled?Ya(e,t):Wa(e,t);break;case xo.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(xo.P)&&e._closePElement(),e._insertElement(t,wo.HTML),e.tokenizer.state=Mo.PLAINTEXT}(e,t);break;case xo.COL:case xo.TH:case xo.TD:case xo.TR:case xo.HEAD:case xo.FRAME:case xo.TBODY:case xo.TFOOT:case xo.THEAD:case xo.CAPTION:case xo.COLGROUP:break;default:Wa(e,t)}}function Xa(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!==xo.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 Ka(e,t){switch(t.tagID){case xo.A:case xo.B:case xo.I:case xo.S:case xo.U:case xo.EM:case xo.TT:case xo.BIG:case xo.CODE:case xo.FONT:case xo.NOBR:case xo.SMALL:case xo.STRIKE:case xo.STRONG:La(e,t);break;case xo.P:!function(e){e.openElements.hasInButtonScope(xo.P)||e._insertFakeElement(To.P,xo.P),e._closePElement()}(e);break;case xo.DL:case xo.UL:case xo.OL:case xo.DIR:case xo.DIV:case xo.NAV:case xo.PRE:case xo.MAIN:case xo.MENU:case xo.ASIDE:case xo.BUTTON:case xo.CENTER:case xo.FIGURE:case xo.FOOTER:case xo.HEADER:case xo.HGROUP:case xo.DIALOG:case xo.ADDRESS:case xo.ARTICLE:case xo.DETAILS:case xo.SECTION:case xo.SUMMARY:case xo.LISTING:case xo.FIELDSET:case xo.BLOCKQUOTE:case xo.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case xo.LI:!function(e){e.openElements.hasInListItemScope(xo.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(xo.LI),e.openElements.popUntilTagNamePopped(xo.LI))}(e);break;case xo.DD:case xo.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case xo.H1:case xo.H2:case xo.H3:case xo.H4:case xo.H5:case xo.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case xo.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(To.BR,xo.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case xo.BODY:!function(e,t){if(e.openElements.hasInScope(xo.BODY)&&(e.insertionMode=va.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case xo.HTML:!function(e,t){e.openElements.hasInScope(xo.BODY)&&(e.insertionMode=va.AFTER_BODY,ms(e,t))}(e,t);break;case xo.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(xo.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(xo.FORM):n&&e.openElements.remove(n))}(e);break;case xo.APPLET:case xo.OBJECT:case xo.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 xo.TEMPLATE:Fa(e,t);break;default:Xa(e,t)}}function Za(e,t){e.tmplInsertionModeStack.length>0?gs(e,t):Oa(e,t)}function Ja(e,t){if(Ea.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=va.IN_TABLE_TEXT,t.type){case vo.CHARACTER:is(e,t);break;case vo.WHITESPACE_CHARACTER:rs(e,t)}else ns(e,t)}function es(e,t){switch(t.tagID){case xo.TD:case xo.TH:case xo.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(To.TBODY,xo.TBODY),e.insertionMode=va.IN_TABLE_BODY,cs(e,t)}(e,t);break;case xo.STYLE:case xo.SCRIPT:case xo.TEMPLATE:qa(e,t);break;case xo.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(To.COLGROUP,xo.COLGROUP),e.insertionMode=va.IN_COLUMN_GROUP,ss(e,t)}(e,t);break;case xo.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,wo.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case xo.TABLE:!function(e,t){e.openElements.hasInTableScope(xo.TABLE)&&(e.openElements.popUntilTagNamePopped(xo.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case xo.TBODY:case xo.TFOOT:case xo.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,wo.HTML),e.insertionMode=va.IN_TABLE_BODY}(e,t);break;case xo.INPUT:!function(e,t){$a(t)?e._appendElement(t,wo.HTML):ns(e,t),t.ackSelfClosing=!0}(e,t);break;case xo.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,wo.HTML),e.insertionMode=va.IN_CAPTION}(e,t);break;case xo.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,wo.HTML),e.insertionMode=va.IN_COLUMN_GROUP}(e,t);break;default:ns(e,t)}}function ts(e,t){switch(t.tagID){case xo.TABLE:e.openElements.hasInTableScope(xo.TABLE)&&(e.openElements.popUntilTagNamePopped(xo.TABLE),e._resetInsertionMode());break;case xo.TEMPLATE:Fa(e,t);break;case xo.BODY:case xo.CAPTION:case xo.COL:case xo.COLGROUP:case xo.HTML:case xo.TBODY:case xo.TD:case xo.TFOOT:case xo.TH:case xo.THEAD:case xo.TR:break;default:ns(e,t)}}function ns(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,za(e,t),e.fosterParentingEnabled=n}function rs(e,t){e.pendingCharacterTokens.push(t)}function is(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function os(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ns(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const as=new Set([xo.CAPTION,xo.COL,xo.COLGROUP,xo.TBODY,xo.TD,xo.TFOOT,xo.TH,xo.THEAD,xo.TR]);function ss(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.COL:e._appendElement(t,wo.HTML),t.ackSelfClosing=!0;break;case xo.TEMPLATE:qa(e,t);break;default:ls(e,t)}}function ls(e,t){e.openElements.currentTagId===xo.COLGROUP&&(e.openElements.pop(),e.insertionMode=va.IN_TABLE,e._processToken(t))}function cs(e,t){switch(t.tagID){case xo.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,wo.HTML),e.insertionMode=va.IN_ROW;break;case xo.TH:case xo.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(To.TR,xo.TR),e.insertionMode=va.IN_ROW,hs(e,t);break;case xo.CAPTION:case xo.COL:case xo.COLGROUP:case xo.TBODY:case xo.TFOOT:case xo.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE,es(e,t));break;default:es(e,t)}}function us(e,t){const n=t.tagID;switch(t.tagID){case xo.TBODY:case xo.TFOOT:case xo.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE);break;case xo.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE,ts(e,t));break;case xo.BODY:case xo.CAPTION:case xo.COL:case xo.COLGROUP:case xo.HTML:case xo.TD:case xo.TH:case xo.TR:break;default:ts(e,t)}}function hs(e,t){switch(t.tagID){case xo.TH:case xo.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,wo.HTML),e.insertionMode=va.IN_CELL,e.activeFormattingElements.insertMarker();break;case xo.CAPTION:case xo.COL:case xo.COLGROUP:case xo.TBODY:case xo.TFOOT:case xo.THEAD:case xo.TR:e.openElements.hasInTableScope(xo.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE_BODY,cs(e,t));break;default:es(e,t)}}function fs(e,t){switch(t.tagID){case xo.TR:e.openElements.hasInTableScope(xo.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE_BODY);break;case xo.TABLE:e.openElements.hasInTableScope(xo.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE_BODY,us(e,t));break;case xo.TBODY:case xo.TFOOT:case xo.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(xo.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=va.IN_TABLE_BODY,us(e,t));break;case xo.BODY:case xo.CAPTION:case xo.COL:case xo.COLGROUP:case xo.HTML:case xo.TD:case xo.TH:break;default:ts(e,t)}}function ds(e,t){switch(t.tagID){case xo.HTML:Qa(e,t);break;case xo.OPTION:e.openElements.currentTagId===xo.OPTION&&e.openElements.pop(),e._insertElement(t,wo.HTML);break;case xo.OPTGROUP:e.openElements.currentTagId===xo.OPTION&&e.openElements.pop(),e.openElements.currentTagId===xo.OPTGROUP&&e.openElements.pop(),e._insertElement(t,wo.HTML);break;case xo.INPUT:case xo.KEYGEN:case xo.TEXTAREA:case xo.SELECT:e.openElements.hasInSelectScope(xo.SELECT)&&(e.openElements.popUntilTagNamePopped(xo.SELECT),e._resetInsertionMode(),t.tagID!==xo.SELECT&&e._processStartTag(t));break;case xo.SCRIPT:case xo.TEMPLATE:qa(e,t)}}function ps(e,t){switch(t.tagID){case xo.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===xo.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===xo.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===xo.OPTGROUP&&e.openElements.pop();break;case xo.OPTION:e.openElements.currentTagId===xo.OPTION&&e.openElements.pop();break;case xo.SELECT:e.openElements.hasInSelectScope(xo.SELECT)&&(e.openElements.popUntilTagNamePopped(xo.SELECT),e._resetInsertionMode());break;case xo.TEMPLATE:Fa(e,t)}}function gs(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(xo.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Oa(e,t)}function ms(e,t){var n;if(t.tagID===xo.HTML){if(e.fragmentContext||(e.insertionMode=va.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===xo.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 bs(e,t)}function bs(e,t){e.insertionMode=va.IN_BODY,za(e,t)}function ks(e,t){e.insertionMode=va.IN_BODY,za(e,t)}function ys(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==wo.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}const vs=Es("end"),ws=Es("start");function Es(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 Ss=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Ts={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function xs(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=s("type",{handlers:{root:As,element:Ds,text:Rs,comment:Ls,doctype:_s,raw:Ns},unknown:Os}),o={parser:r?new Ta(Ts):Ta.getFragmentParser(void 0,Ts),handle(e){i(e,o)},stitches:!1,options:t||{}};i(e,o),Is(o,ws());const a=function(e,t){const n=t||{};return gi({file:n.file||void 0,location:!1,schema:"svg"===n.space?Zr:Kr,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 Cs(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function As(e,t){Cs(e.children,t)}function Ds(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Mo.PLAINTEXT)return;Is(t,ws(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:hi;i===hi&&"svg"===n&&(i=fi);const o=(s={...e,children:[]},io(s,"svg"===({space:i===fi?"svg":"html"}||no).space?eo:Ji)),a={type:vo.START_TAG,tagName:n,tagID:Ro(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:Ps(e)};var s;t.parser.currentToken=a,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),Cs(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&lo.includes(n))return;if(t.parser.tokenizer.state===Mo.PLAINTEXT)return;Is(t,vs(e));const r={type:vo.END_TAG,tagName:n,tagID:Ro(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Ps(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==Mo.RCDATA&&t.parser.tokenizer.state!==Mo.RAWTEXT&&t.parser.tokenizer.state!==Mo.SCRIPT_DATA||(t.parser.tokenizer.state=Mo.DATA)}(e,t)}function Rs(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:vo.CHARACTER,chars:e.value,location:Ps(e)};Is(t,ws(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function _s(e,t){const n={type:vo.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Ps(e)};Is(t,ws(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Ls(e,t){const n={type:vo.COMMENT,data:e.value,location:Ps(e)};Is(t,ws(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Ns(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,Ms(t,ws(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 Os(e,n){const r=e;if(!n.options.passThrough||!n.options.passThrough.includes(r.type)){let e="";throw Ss.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=xs({type:"root",children:e.children},n.options);r.children=t.children}Ls({type:"comment",value:{stitch:r}},n)}(r,n)}function Is(e,t){Ms(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=Mo.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 Ms(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 Ps(e){const t=ws(e)||{line:void 0,column:void 0,offset:void 0},n=vs(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 qs(e){return function(t,n){return xs(t,{...e,file:n})}}var Fs,Bs,Us,Hs,zs,js,Vs,Gs={},$s=function(){if(Us)return Gs;Us=1;var e=Gs&&Gs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.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(Bs)return Fs;Bs=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 Fs=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=v();)!1!==t&&e.push(t);return e}function v(){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 w(){var t=p(),n=b(r);if(n){if(v(),!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=w();)!1!==e&&(t.push(e),y(t));return t}()},Fs}());return Gs}(),Ys=e($s),Ws=Ys.default||Ys,Qs=e(zs?Hs:(zs=1,Hs={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]})),Xs=function(){if(Vs)return js;Vs=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 js=(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}},js}(),Ks=e(Xs),Zs=new RegExp(/^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/,"i");const Js="-?\\d*(?:\\.\\d+)",el=`(${Js}?)`,tl=`(${Js}?%)`,nl=`(${Js}?%?)`,rl=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*${tl}\\s*,\n \\s*${tl}\\s*\n (?:,\\s*${nl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var il=new RegExp(rl);const ol=`^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+${tl}\n \\s+${tl}\n \\s*(?:\\s*\\/\\s*${nl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var al=new RegExp(ol);const sl=`^\n rgba?\\(\n \\s*${el}\\s*,\n \\s*${el}\\s*,\n \\s*${el}\\s*\n (?:,\\s*${nl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var ll=new RegExp(sl);const cl=`^\n rgba?\\(\n \\s*${tl}\\s*,\n \\s*${tl}\\s*,\n \\s*${tl}\\s*\n (?:,\\s*${nl}\\s*)?\n \\)\n $\n`.replace(/\n|\s/g,"");var ul=new RegExp(cl);const hl=`^\n rgba?\\(\n \\s*${el}\n \\s+${el}\n \\s+${el}\n \\s*(?:\\s*\\/\\s*${nl}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var fl=new RegExp(hl);const dl=`^\n rgba?\\(\n \\s*${tl}\n \\s+${tl}\n \\s+${tl}\n \\s*(?:\\s*\\/\\s*${nl}\\s*)?\n \\)\n$\n`.replace(/\n|\s/g,"");var pl=new RegExp(dl),gl=new RegExp(/^transparent$/,"i");const ml=(e,t,n)=>Math.min(Math.max(t,e),n),bl=e=>{let t=e;return"number"!=typeof t&&(t=t.endsWith("%")?255*parseFloat(t)/100:parseFloat(t)),ml(Math.round(t),0,255)},kl=e=>ml(parseFloat(e),0,100);function yl(e){let t=e;return"number"!=typeof t&&(t=t.endsWith("%")?parseFloat(t)/100:parseFloat(t)),ml(t,0,1)}function vl([,e,t,n,r=1]){return{type:"rgb",values:[e,t,n].map(bl),alpha:yl(null===r?1:r)}}
|
|
2
2
|
/**
|
|
3
3
|
* parse-css-color
|
|
4
4
|
* @version v0.2.1
|