-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcli.js
2 lines (2 loc) · 411 KB
/
cli.js
1
2
#! /usr/bin/env node
var t=require("fs"),e=require("path"),n=require("rollup"),r=require("util"),i=require("events"),s=require("assert"),o=require("readline");function a(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var c=a(t),l=a(e),u=a(r),h=a(i),p=a(s),f=a(o);function d(n,r=!1){const i=`${e.isAbsolute(n)?"":function(){var t;let n;try{n=require("vscode")}catch(t){}if(null==n?void 0:n.workspace)return`${(null===(t=n.workspace.workspaceFolders)||void 0===t?void 0:t[0]).uri.path}${e.sep}`;{let t=e.resolve(__dirname).split(e.sep).includes("node_modules")?3:2;return t=2,`${__dirname.split(e.sep).slice(0,-t).join(e.sep)}${e.sep}`}}()}${n}`;return r?t.realpathSync(i):i}function T(t,e,n){const r=n.reduce(((t,n)=>(t[n]={get:()=>e[n]},t)),{});Object.defineProperties(t,r)}function m(t,e,n,r){return t.substr(0,e)+r+t.substr(e+n.length)}function E(t,e=" "){return Array(t+1).map((()=>null)).join(e)}var _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function g(t){var e={exports:{}};return t(e,e.exports),e.exports}var A=(_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}})({0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}),N=String.fromCodePoint||function(t){var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)};var O=function(t){return t>=55296&&t<=57343||t>1114111?"�":(t in A.default&&(t=A.default[t]),N(t))},S=Object.defineProperty({default:O},"__esModule",{value:!0}),C={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",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:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",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:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},v={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"},b={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},y=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},I=y(S),R=y(C),M=y(v),L=y(b);function k(t){return" "===t||"\n"===t||"\t"===t||"\f"===t||"\r"===t}function D(t){return t>="a"&&t<="z"||t>="A"&&t<="Z"}function P(t,e,n){var r=t.toLowerCase();return t===r?function(t,i){i===r?t._state=e:(t._state=n,t._index--)}:function(i,s){s===r||s===t?i._state=e:(i._state=n,i._index--)}}function x(t,e){var n=t.toLowerCase();return function(r,i){i===n||i===t?r._state=e:(r._state=3,r._index--)}}var w=P("C",24,16),H=P("D",25,16),U=P("A",26,16),F=P("T",27,16),B=P("A",28,16),G=x("R",35),j=x("I",36),q=x("P",37),K=x("T",38),$=P("R",40,1),Y=P("I",41,1),V=P("P",42,1),Q=P("T",43,1),z=x("Y",45),X=x("L",46),W=x("E",47),Z=P("Y",49,1),J=P("L",50,1),tt=P("E",51,1),et=x("I",54),nt=x("T",55),rt=x("L",56),it=x("E",57),st=P("I",58,1),ot=P("T",59,1),at=P("L",60,1),ct=P("E",61,1),lt=P("#",63,64),ut=P("X",66,65),ht=function(){function t(t,e){var n;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=e,this.xmlMode=!!(null==t?void 0:t.xmlMode),this.decodeEntities=null===(n=null==t?void 0:t.decodeEntities)||void 0===n||n}return t.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},t.prototype.write=function(t){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=t,this.parse()},t.prototype.end=function(t){this.ended&&this.cbs.onerror(Error(".end() after done!")),t&&this.write(t),this.ended=!0,this.running&&this.finish()},t.prototype.pause=function(){this.running=!1},t.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},t.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},t.prototype.stateText=function(t){"<"===t?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==t||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},t.prototype.stateBeforeTagName=function(t){"/"===t?this._state=5:"<"===t?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===t||1!==this.special||k(t)?this._state=1:"!"===t?(this._state=15,this.sectionStart=this._index+1):"?"===t?(this._state=17,this.sectionStart=this._index+1):D(t)?(this._state=this.xmlMode||"s"!==t&&"S"!==t?this.xmlMode||"t"!==t&&"T"!==t?3:52:32,this.sectionStart=this._index):this._state=1},t.prototype.stateInTagName=function(t){("/"===t||">"===t||k(t))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},t.prototype.stateBeforeClosingTagName=function(t){k(t)||(">"===t?this._state=1:1!==this.special?"s"===t||"S"===t?this._state=33:"t"===t||"T"===t?this._state=53:(this._state=1,this._index--):D(t)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},t.prototype.stateInClosingTagName=function(t){(">"===t||k(t))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},t.prototype.stateAfterClosingTagName=function(t){">"===t&&(this._state=1,this.sectionStart=this._index+1)},t.prototype.stateBeforeAttributeName=function(t){">"===t?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===t?this._state=4:k(t)||(this._state=9,this.sectionStart=this._index)},t.prototype.stateInSelfClosingTag=function(t){">"===t?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):k(t)||(this._state=8,this._index--)},t.prototype.stateInAttributeName=function(t){("="===t||"/"===t||">"===t||k(t))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},t.prototype.stateAfterAttributeName=function(t){"="===t?this._state=11:"/"===t||">"===t?(this.cbs.onattribend(void 0),this._state=8,this._index--):k(t)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},t.prototype.stateBeforeAttributeValue=function(t){'"'===t?(this._state=12,this.sectionStart=this._index+1):"'"===t?(this._state=13,this.sectionStart=this._index+1):k(t)||(this._state=14,this.sectionStart=this._index,this._index--)},t.prototype.handleInAttributeValue=function(t,e){t===e?(this.emitToken("onattribdata"),this.cbs.onattribend(e),this._state=8):this.decodeEntities&&"&"===t&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},t.prototype.stateInAttributeValueDoubleQuotes=function(t){this.handleInAttributeValue(t,'"')},t.prototype.stateInAttributeValueSingleQuotes=function(t){this.handleInAttributeValue(t,"'")},t.prototype.stateInAttributeValueNoQuotes=function(t){k(t)||">"===t?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===t&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},t.prototype.stateBeforeDeclaration=function(t){this._state="["===t?23:"-"===t?18:16},t.prototype.stateInDeclaration=function(t){">"===t&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},t.prototype.stateInProcessingInstruction=function(t){">"===t&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},t.prototype.stateBeforeComment=function(t){"-"===t?(this._state=19,this.sectionStart=this._index+1):this._state=16},t.prototype.stateInComment=function(t){"-"===t&&(this._state=21)},t.prototype.stateInSpecialComment=function(t){">"===t&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},t.prototype.stateAfterComment1=function(t){this._state="-"===t?22:19},t.prototype.stateAfterComment2=function(t){">"===t?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==t&&(this._state=19)},t.prototype.stateBeforeCdata6=function(t){"["===t?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},t.prototype.stateInCdata=function(t){"]"===t&&(this._state=30)},t.prototype.stateAfterCdata1=function(t){this._state="]"===t?31:29},t.prototype.stateAfterCdata2=function(t){">"===t?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==t&&(this._state=29)},t.prototype.stateBeforeSpecialS=function(t){"c"===t||"C"===t?this._state=34:"t"===t||"T"===t?this._state=44:(this._state=3,this._index--)},t.prototype.stateBeforeSpecialSEnd=function(t){2!==this.special||"c"!==t&&"C"!==t?3!==this.special||"t"!==t&&"T"!==t?this._state=1:this._state=48:this._state=39},t.prototype.stateBeforeSpecialLast=function(t,e){("/"===t||">"===t||k(t))&&(this.special=e),this._state=3,this._index--},t.prototype.stateAfterSpecialLast=function(t,e){">"===t||k(t)?(this.special=1,this._state=6,this.sectionStart=this._index-e,this._index--):this._state=1},t.prototype.parseFixedEntity=function(t){if(void 0===t&&(t=this.xmlMode?L.default:R.default),this.sectionStart+1<this._index){var e=this.buffer.substring(this.sectionStart+1,this._index);Object.prototype.hasOwnProperty.call(t,e)&&(this.emitPartial(t[e]),this.sectionStart=this._index+1)}},t.prototype.parseLegacyEntity=function(){for(var t=this.sectionStart+1,e=Math.min(this._index-t,6);e>=2;){var n=this.buffer.substr(t,e);if(Object.prototype.hasOwnProperty.call(M.default,n))return this.emitPartial(M.default[n]),void(this.sectionStart+=e+1);e--}},t.prototype.stateInNamedEntity=function(t){";"===t?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1<this._index&&!this.xmlMode&&this.parseLegacyEntity(),this._state=this.baseState):(t<"0"||t>"9")&&!D(t)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==t&&this.parseFixedEntity(M.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},t.prototype.decodeNumericEntity=function(t,e,n){var r=this.sectionStart+t;if(r!==this._index){var i=this.buffer.substring(r,this._index),s=parseInt(i,e);this.emitPartial(I.default(s)),this.sectionStart=n?this._index+1:this._index}this._state=this.baseState},t.prototype.stateInNumericEntity=function(t){";"===t?this.decodeNumericEntity(2,10,!0):(t<"0"||t>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},t.prototype.stateInHexEntity=function(t){";"===t?this.decodeNumericEntity(3,16,!0):(t<"a"||t>"f")&&(t<"A"||t>"F")&&(t<"0"||t>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},t.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},t.prototype.parse=function(){for(;this._index<this.buffer.length&&this.running;){var t=this.buffer.charAt(this._index);1===this._state?this.stateText(t):12===this._state?this.stateInAttributeValueDoubleQuotes(t):9===this._state?this.stateInAttributeName(t):19===this._state?this.stateInComment(t):20===this._state?this.stateInSpecialComment(t):8===this._state?this.stateBeforeAttributeName(t):3===this._state?this.stateInTagName(t):6===this._state?this.stateInClosingTagName(t):2===this._state?this.stateBeforeTagName(t):10===this._state?this.stateAfterAttributeName(t):13===this._state?this.stateInAttributeValueSingleQuotes(t):11===this._state?this.stateBeforeAttributeValue(t):5===this._state?this.stateBeforeClosingTagName(t):7===this._state?this.stateAfterClosingTagName(t):32===this._state?this.stateBeforeSpecialS(t):21===this._state?this.stateAfterComment1(t):14===this._state?this.stateInAttributeValueNoQuotes(t):4===this._state?this.stateInSelfClosingTag(t):16===this._state?this.stateInDeclaration(t):15===this._state?this.stateBeforeDeclaration(t):22===this._state?this.stateAfterComment2(t):18===this._state?this.stateBeforeComment(t):33===this._state?this.stateBeforeSpecialSEnd(t):53===this._state?st(this,t):39===this._state?$(this,t):40===this._state?Y(this,t):41===this._state?V(this,t):34===this._state?G(this,t):35===this._state?j(this,t):36===this._state?q(this,t):37===this._state?K(this,t):38===this._state?this.stateBeforeSpecialLast(t,2):42===this._state?Q(this,t):43===this._state?this.stateAfterSpecialLast(t,6):44===this._state?z(this,t):29===this._state?this.stateInCdata(t):45===this._state?X(this,t):46===this._state?W(this,t):47===this._state?this.stateBeforeSpecialLast(t,3):48===this._state?Z(this,t):49===this._state?J(this,t):50===this._state?tt(this,t):51===this._state?this.stateAfterSpecialLast(t,5):52===this._state?et(this,t):54===this._state?nt(this,t):55===this._state?rt(this,t):56===this._state?it(this,t):57===this._state?this.stateBeforeSpecialLast(t,4):58===this._state?ot(this,t):59===this._state?at(this,t):60===this._state?ct(this,t):61===this._state?this.stateAfterSpecialLast(t,5):17===this._state?this.stateInProcessingInstruction(t):64===this._state?this.stateInNamedEntity(t):23===this._state?w(this,t):62===this._state?lt(this,t):24===this._state?H(this,t):25===this._state?U(this,t):30===this._state?this.stateAfterCdata1(t):31===this._state?this.stateAfterCdata2(t):26===this._state?F(this,t):27===this._state?B(this,t):28===this._state?this.stateBeforeCdata6(t):66===this._state?this.stateInHexEntity(t):65===this._state?this.stateInNumericEntity(t):63===this._state?ut(this,t):this.cbs.onerror(Error("unknown _state"),this._state),this._index++}this.cleanup()},t.prototype.finish=function(){this.sectionStart<this._index&&this.handleTrailingData(),this.cbs.onend()},t.prototype.handleTrailingData=function(){var t=this.buffer.substr(this.sectionStart);29===this._state||30===this._state||31===this._state?this.cbs.oncdata(t):19===this._state||21===this._state||22===this._state?this.cbs.oncomment(t):64!==this._state||this.xmlMode?65!==this._state||this.xmlMode?66!==this._state||this.xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this.cbs.ontext(t):(this.decodeNumericEntity(3,16,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.decodeNumericEntity(2,10,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.parseLegacyEntity(),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData()))},t.prototype.getSection=function(){return this.buffer.substring(this.sectionStart,this._index)},t.prototype.emitToken=function(t){this.cbs[t](this.getSection()),this.sectionStart=-1},t.prototype.emitPartial=function(t){1!==this.baseState?this.cbs.onattribdata(t):this.cbs.ontext(t)},t}(),pt=Object.defineProperty({default:ht},"__esModule",{value:!0}),ft=g((function(t,e){var n=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;var r=n(pt),i=new Set(["input","option","optgroup","select","button","datalist","textarea"]),s=new Set(["p"]),o={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:s,h1:s,h2:s,h3:s,h4:s,h5:s,h6:s,select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:s,article:s,aside:s,blockquote:s,details:s,div:s,dl:s,fieldset:s,figcaption:s,figure:s,footer:s,form:s,header:s,hr:s,main:s,nav:s,ol:s,pre:s,section:s,table:s,ul:s,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},a=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),c=new Set(["math","svg"]),l=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),u=/\s|\//,h=function(){function t(t,e){var n,i,s,o,a;void 0===e&&(e={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=e,this.cbs=null!=t?t:{},this.lowerCaseTagNames=null!==(n=e.lowerCaseTags)&&void 0!==n?n:!e.xmlMode,this.lowerCaseAttributeNames=null!==(i=e.lowerCaseAttributeNames)&&void 0!==i?i:!e.xmlMode,this.tokenizer=new(null!==(s=e.Tokenizer)&&void 0!==s?s:r.default)(this.options,this),null===(a=(o=this.cbs).onparserinit)||void 0===a||a.call(o,this)}return t.prototype.updatePosition=function(t){null===this.endIndex?this.tokenizer.sectionStart<=t?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-t:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},t.prototype.ontext=function(t){var e,n;this.updatePosition(1),this.endIndex--,null===(n=(e=this.cbs).ontext)||void 0===n||n.call(e,t)},t.prototype.onopentagname=function(t){var e,n;if(this.lowerCaseTagNames&&(t=t.toLowerCase()),this.tagname=t,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(o,t))for(var r=void 0;this.stack.length>0&&o[t].has(r=this.stack[this.stack.length-1]);)this.onclosetag(r);!this.options.xmlMode&&a.has(t)||(this.stack.push(t),c.has(t)?this.foreignContext.push(!0):l.has(t)&&this.foreignContext.push(!1)),null===(n=(e=this.cbs).onopentagname)||void 0===n||n.call(e,t),this.cbs.onopentag&&(this.attribs={})},t.prototype.onopentagend=function(){var t,e;this.updatePosition(1),this.attribs&&(null===(e=(t=this.cbs).onopentag)||void 0===e||e.call(t,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&a.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},t.prototype.onclosetag=function(t){if(this.updatePosition(1),this.lowerCaseTagNames&&(t=t.toLowerCase()),(c.has(t)||l.has(t))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&a.has(t))this.options.xmlMode||"br"!==t&&"p"!==t||(this.onopentagname(t),this.closeCurrentTag());else{var e=this.stack.lastIndexOf(t);if(-1!==e)if(this.cbs.onclosetag)for(e=this.stack.length-e;e--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=e;else"p"!==t||this.options.xmlMode||(this.onopentagname(t),this.closeCurrentTag())}},t.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},t.prototype.closeCurrentTag=function(){var t,e,n=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===n&&(null===(e=(t=this.cbs).onclosetag)||void 0===e||e.call(t,n),this.stack.pop())},t.prototype.onattribname=function(t){this.lowerCaseAttributeNames&&(t=t.toLowerCase()),this.attribname=t},t.prototype.onattribdata=function(t){this.attribvalue+=t},t.prototype.onattribend=function(t){var e,n;null===(n=(e=this.cbs).onattribute)||void 0===n||n.call(e,this.attribname,this.attribvalue,t),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},t.prototype.getInstructionName=function(t){var e=t.search(u),n=e<0?t:t.substr(0,e);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(t){if(this.cbs.onprocessinginstruction){var e=this.getInstructionName(t);this.cbs.onprocessinginstruction("!"+e,"!"+t)}},t.prototype.onprocessinginstruction=function(t){if(this.cbs.onprocessinginstruction){var e=this.getInstructionName(t);this.cbs.onprocessinginstruction("?"+e,"?"+t)}},t.prototype.oncomment=function(t){var e,n,r,i;this.updatePosition(4),null===(n=(e=this.cbs).oncomment)||void 0===n||n.call(e,t),null===(i=(r=this.cbs).oncommentend)||void 0===i||i.call(r)},t.prototype.oncdata=function(t){var e,n,r,i,s,o;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(n=(e=this.cbs).oncdatastart)||void 0===n||n.call(e),null===(i=(r=this.cbs).ontext)||void 0===i||i.call(r,t),null===(o=(s=this.cbs).oncdataend)||void 0===o||o.call(s)):this.oncomment("[CDATA["+t+"]]")},t.prototype.onerror=function(t){var e,n;null===(n=(e=this.cbs).onerror)||void 0===n||n.call(e,t)},t.prototype.onend=function(){var t,e;if(this.cbs.onclosetag)for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n]));null===(e=(t=this.cbs).onend)||void 0===e||e.call(t)},t.prototype.reset=function(){var t,e,n,r;null===(e=(t=this.cbs).onreset)||void 0===e||e.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this)},t.prototype.parseComplete=function(t){this.reset(),this.end(t)},t.prototype.write=function(t){this.tokenizer.write(t)},t.prototype.end=function(t){this.tokenizer.end(t)},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){this.tokenizer.resume()},t.prototype.parseChunk=function(t){this.write(t)},t.prototype.done=function(t){this.end(t)},t}();e.Parser=h})),dt=g((function(t,e){var n,r=_&&_.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=_&&_.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.cloneNode=e.Element=e.Document=e.NodeWithChildren=e.ProcessingInstruction=e.Comment=e.Text=e.DataNode=e.Node=void 0;var s=new Map([["tag",1],["script",1],["style",1],["directive",1],["text",3],["cdata",4],["comment",8],["root",9]]),o=function(){function t(t){this.type=t,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"nodeType",{get:function(){var t;return null!==(t=s.get(this.type))&&void 0!==t?t:1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(t){return void 0===t&&(t=!1),d(this,t)},t}();e.Node=o;var a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.data=n,r}return r(e,t),Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!1,configurable:!0}),e}(o);e.DataNode=a;var c=function(t){function e(e){return t.call(this,"text",e)||this}return r(e,t),e}(a);e.Text=c;var l=function(t){function e(e){return t.call(this,"comment",e)||this}return r(e,t),e}(a);e.Comment=l;var u=function(t){function e(e,n){var r=t.call(this,"directive",n)||this;return r.name=e,r}return r(e,t),e}(a);e.ProcessingInstruction=u;var h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.children=n,r}return r(e,t),Object.defineProperty(e.prototype,"firstChild",{get:function(){var t;return null!==(t=this.children[0])&&void 0!==t?t:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(o);e.NodeWithChildren=h;var p=function(t){function e(e){return t.call(this,"root",e)||this}return r(e,t),e}(h);e.Document=p;var f=function(t){function e(e,n,r){void 0===r&&(r=[]);var i=t.call(this,"script"===e?"script":"style"===e?"style":"tag",r)||this;return i.name=e,i.attribs=n,i.attribs=n,i}return r(e,t),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map((function(e){var n,r;return{name:e,value:t.attribs[e],namespace:null===(n=t["x-attribsNamespace"])||void 0===n?void 0:n[e],prefix:null===(r=t["x-attribsPrefix"])||void 0===r?void 0:r[e]}}))},enumerable:!1,configurable:!0}),e}(h);function d(t,e){var n;switch(void 0===e&&(e=!1),t.type){case"text":n=new c(t.data);break;case"directive":var r=t;n=new u(r.name,r.data),null!=r["x-name"]&&(n["x-name"]=r["x-name"],n["x-publicId"]=r["x-publicId"],n["x-systemId"]=r["x-systemId"]);break;case"comment":n=new l(t.data);break;case"tag":case"script":case"style":var s=t,o=e?T(s.children):[],a=new f(s.name,i({},s.attribs),o);o.forEach((function(t){return t.parent=a})),s["x-attribsNamespace"]&&(a["x-attribsNamespace"]=i({},s["x-attribsNamespace"])),s["x-attribsPrefix"]&&(a["x-attribsPrefix"]=i({},s["x-attribsPrefix"])),n=a;break;case"cdata":o=e?T(t.children):[];var d=new h(t.type,o);o.forEach((function(t){return t.parent=d})),n=d;break;case"root":var m=t,E=(o=e?T(m.children):[],new p(o));o.forEach((function(t){return t.parent=E})),m["x-mode"]&&(E["x-mode"]=m["x-mode"]),n=E;break;case"doctype":throw new Error("Not implemented yet: ElementType.Doctype case")}return n.startIndex=t.startIndex,n.endIndex=t.endIndex,n}function T(t){for(var e=t.map((function(t){return d(t,!0)})),n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}e.Element=f,e.cloneNode=d})),Tt=g((function(t,e){var n=_&&_.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=_&&_.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0,r(dt,e);var i=/\s+/g,s={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1},o=function(){function t(t,e,n){this.dom=[],this.root=new dt.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof e&&(n=e,e=s),"object"==typeof t&&(e=t,t=void 0),this.callback=null!=t?t:null,this.options=null!=e?e:s,this.elementCB=null!=n?n:null}return t.prototype.onparserinit=function(t){this.parser=t},t.prototype.onreset=function(){var t;this.dom=[],this.root=new dt.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null!==(t=this.parser)&&void 0!==t?t:null},t.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},t.prototype.onerror=function(t){this.handleCallback(t)},t.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},t.prototype.onopentag=function(t,e){var n=new dt.Element(t,e);this.addNode(n),this.tagStack.push(n)},t.prototype.ontext=function(t){var e=this.options.normalizeWhitespace,n=this.lastNode;if(n&&"text"===n.type)e?n.data=(n.data+t).replace(i," "):n.data+=t;else{e&&(t=t.replace(i," "));var r=new dt.Text(t);this.addNode(r),this.lastNode=r}},t.prototype.oncomment=function(t){if(this.lastNode&&"comment"===this.lastNode.type)this.lastNode.data+=t;else{var e=new dt.Comment(t);this.addNode(e),this.lastNode=e}},t.prototype.oncommentend=function(){this.lastNode=null},t.prototype.oncdatastart=function(){var t=new dt.Text(""),e=new dt.NodeWithChildren("cdata",[t]);this.addNode(e),t.parent=e,this.lastNode=t},t.prototype.oncdataend=function(){this.lastNode=null},t.prototype.onprocessinginstruction=function(t,e){var n=new dt.ProcessingInstruction(t,e);this.addNode(n)},t.prototype.handleCallback=function(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t},t.prototype.addNode=function(t){var e=this.tagStack[this.tagStack.length-1],n=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),n&&(t.prev=n,n.next=t),t.parent=e,this.lastNode=null},t.prototype.addDataNode=function(t){this.addNode(t),this.lastNode=t},t}();e.DomHandler=o,e.default=o})),mt=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=void 0,e.isTag=function(t){return"tag"===t.type||"script"===t.type||"style"===t.type},e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})),Et=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.hasChildren=e.isComment=e.isText=e.isCDATA=e.isTag=void 0,e.isTag=function(t){return mt.isTag(t)},e.isCDATA=function(t){return"cdata"===t.type},e.isText=function(t){return"text"===t.type},e.isComment=function(t){return"comment"===t.type},e.hasChildren=function(t){return Object.prototype.hasOwnProperty.call(t,"children")}})),_t=g((function(t,e){var n=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=n(C),i=n(v),s=n(b),o=n(S),a=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function c(t){var e=u(t);return function(t){return String(t).replace(a,e)}}e.decodeXML=c(s.default),e.decodeHTMLStrict=c(r.default);var l=function(t,e){return t<e?1:-1};function u(t){return function(e){if("#"===e.charAt(1)){var n=e.charAt(2);return"X"===n||"x"===n?o.default(parseInt(e.substr(3),16)):o.default(parseInt(e.substr(2),10))}return t[e.slice(1,-1)]||e}}e.decodeHTML=function(){for(var t=Object.keys(i.default).sort(l),e=Object.keys(r.default).sort(l),n=0,s=0;n<e.length;n++)t[s]===e[n]?(e[n]+=";?",s++):e[n]+=";";var o=new RegExp("&(?:"+e.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=u(r.default);function c(t){return";"!==t.substr(-1)&&(t+=";"),a(t)}return function(t){return String(t).replace(o,c)}}()})),gt=g((function(t,e){var n=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=a(n(b).default),i=c(r);e.encodeXML=f(r);var s=a(n(C).default),o=c(s);function a(t){return Object.keys(t).sort().reduce((function(e,n){return e[t[n]]="&"+n+";",e}),{})}function c(t){for(var e=[],n=[],r=0,i=Object.keys(t);r<i.length;r++){var s=i[r];1===s.length?e.push("\\"+s):n.push(s)}e.sort();for(var o=0;o<e.length-1;o++){for(var a=o;a<e.length-1&&e[a].charCodeAt(1)+1===e[a+1].charCodeAt(1);)a+=1;var c=1+a-o;c<3||e.splice(o,c,e[o]+"-"+e[a])}return n.unshift("["+e.join("")+"]"),new RegExp(n.join("|"),"g")}e.encodeHTML=function(t,e){return function(n){return n.replace(e,(function(e){return t[e]})).replace(l,h)}}(s,o),e.encodeNonAsciiHTML=f(s);var l=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,u=null!=String.prototype.codePointAt?function(t){return t.codePointAt(0)}:function(t){return 1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536};function h(t){return"&#x"+(t.length>1?u(t):t.charCodeAt(0)).toString(16).toUpperCase()+";"}var p=new RegExp(i.source+"|"+l.source,"g");function f(t){return function(e){return e.replace(p,(function(e){return t[e]||h(e)}))}}e.escape=function(t){return t.replace(p,h)},e.escapeUTF8=function(t){return t.replace(i,h)}})),At=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0,e.decode=function(t,e){return(!e||e<=0?_t.decodeXML:_t.decodeHTML)(t)},e.decodeStrict=function(t,e){return(!e||e<=0?_t.decodeXML:_t.decodeHTMLStrict)(t)},e.encode=function(t,e){return(!e||e<=0?gt.encodeXML:gt.encodeHTML)(t)};var n=gt;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return n.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return n.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return n.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return n.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return n.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return n.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return n.encodeHTML}});var r=_t;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return r.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return r.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return r.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return r.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return r.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return r.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return r.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return r.decodeXML}})})),Nt=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.attributeNames=e.elementNames=void 0,e.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),e.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])})),Ot=_&&_.__assign||function(){return(Ot=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},St=_&&_.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),Ct=_&&_.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),vt=(_&&_.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&St(e,t,n);return Ct(e,t),e})(mt),bt=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);var yt=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function It(t,e){void 0===e&&(e={});for(var n=Array.isArray(t)||t.cheerio?t:[t],r="",i=0;i<n.length;i++)r+=Mt(n[i],e);return r}var Rt=It;function Mt(t,e){switch(t.type){case vt.Root:return It(t.children,e);case vt.Directive:case vt.Doctype:return"<"+t.data+">";case vt.Comment:return function(t){return"\x3c!--"+t.data+"--\x3e"}(t);case vt.CDATA:return function(t){return"<![CDATA["+t.children[0].data+"]]>"}(t);case vt.Script:case vt.Style:case vt.Tag:return function(t,e){var n;"foreign"===e.xmlMode&&(t.name=null!==(n=Nt.elementNames.get(t.name))&&void 0!==n?n:t.name,t.parent&&Lt.has(t.parent.name)&&(e=Ot(Ot({},e),{xmlMode:!1})));!e.xmlMode&&kt.has(t.name)&&(e=Ot(Ot({},e),{xmlMode:"foreign"}));var r="<"+t.name,i=function(t,e){if(t)return Object.keys(t).map((function(n){var r,i,s=null!==(r=t[n])&&void 0!==r?r:"";return"foreign"===e.xmlMode&&(n=null!==(i=Nt.attributeNames.get(n))&&void 0!==i?i:n),e.emptyAttrs||e.xmlMode||""!==s?n+'="'+(e.decodeEntities?At.encodeXML(s):s.replace(/"/g,"""))+'"':n})).join(" ")}(t.attribs,e);i&&(r+=" "+i);0===t.children.length&&(e.xmlMode?!1!==e.selfClosingTags:e.selfClosingTags&&yt.has(t.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",t.children.length>0&&(r+=It(t.children,e)),!e.xmlMode&&yt.has(t.name)||(r+="</"+t.name+">"));return r}(t,e);case vt.Text:return function(t,e){var n=t.data||"";!e.decodeEntities||t.parent&&bt.has(t.parent.name)||(n=At.encodeXML(n));return n}(t,e)}}var Lt=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),kt=new Set(["svg","math"]);var Dt=Object.defineProperty({default:Rt},"__esModule",{value:!0}),Pt=g((function(t,e){var n=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getText=e.getInnerHTML=e.getOuterHTML=void 0;var r=n(Dt);function i(t,e){return r.default(t,e)}e.getOuterHTML=i,e.getInnerHTML=function(t,e){return Et.hasChildren(t)?t.children.map((function(t){return i(t,e)})).join(""):""},e.getText=function t(e){return Array.isArray(e)?e.map(t).join(""):Et.isTag(e)?"br"===e.name?"\n":t(e.children):Et.isCDATA(e)?t(e.children):Et.isText(e)?e.data:""}})),xt=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.nextElementSibling=e.getName=e.hasAttrib=e.getAttributeValue=e.getSiblings=e.getParent=e.getChildren=void 0;var n=[];function r(t){var e;return null!==(e=t.children)&&void 0!==e?e:n}function i(t){return t.parent||null}e.getChildren=r,e.getParent=i,e.getSiblings=function(t){var e=i(t);if(null!=e)return r(e);for(var n=[t],s=t.prev,o=t.next;null!=s;)n.unshift(s),s=s.prev;for(;null!=o;)n.push(o),o=o.next;return n},e.getAttributeValue=function(t,e){var n;return null===(n=t.attribs)||void 0===n?void 0:n[e]},e.hasAttrib=function(t,e){return null!=t.attribs&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&null!=t.attribs[e]},e.getName=function(t){return t.name},e.nextElementSibling=function(t){for(var e=t.next;null!==e&&!Et.isTag(e);)e=e.next;return e}})),wt=g((function(t,e){function n(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}}Object.defineProperty(e,"__esModule",{value:!0}),e.prepend=e.prependChild=e.append=e.appendChild=e.replaceElement=e.removeElement=void 0,e.removeElement=n,e.replaceElement=function(t,e){var n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;r&&(r.prev=e);var i=e.parent=t.parent;if(i){var s=i.children;s[s.lastIndexOf(t)]=e}},e.appendChild=function(t,e){if(n(e),e.next=null,e.parent=t,t.children.push(e)>1){var r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null},e.append=function(t,e){n(e);var r=t.parent,i=t.next;if(e.next=i,e.prev=t,t.next=e,e.parent=r,i){if(i.prev=e,r){var s=r.children;s.splice(s.lastIndexOf(i),0,e)}}else r&&r.children.push(e)},e.prependChild=function(t,e){if(n(e),e.parent=t,e.prev=null,1!==t.children.unshift(e)){var r=t.children[1];r.prev=e,e.next=r}else e.next=null},e.prepend=function(t,e){n(e);var r=t.parent;if(r){var i=r.children;i.splice(i.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}})),Ht=g((function(t,e){function n(t,e,r,i){for(var s=[],o=0,a=e;o<a.length;o++){var c=a[o];if(t(c)&&(s.push(c),--i<=0))break;if(r&&Et.hasChildren(c)&&c.children.length>0){var l=n(t,c.children,r,i);if(s.push.apply(s,l),(i-=l.length)<=0)break}}return s}Object.defineProperty(e,"__esModule",{value:!0}),e.findAll=e.existsOne=e.findOne=e.findOneChild=e.find=e.filter=void 0,e.filter=function(t,e,r,i){return void 0===r&&(r=!0),void 0===i&&(i=1/0),Array.isArray(e)||(e=[e]),n(t,e,r,i)},e.find=n,e.findOneChild=function(t,e){return e.find(t)},e.findOne=function t(e,n,r){void 0===r&&(r=!0);for(var i=null,s=0;s<n.length&&!i;s++){var o=n[s];Et.isTag(o)&&(e(o)?i=o:r&&o.children.length>0&&(i=t(e,o.children)))}return i},e.existsOne=function t(e,n){return n.some((function(n){return Et.isTag(n)&&(e(n)||n.children.length>0&&t(e,n.children))}))},e.findAll=function(t,e){for(var n,r,i=[],s=e.filter(Et.isTag);r=s.shift();){var o=null===(n=r.children)||void 0===n?void 0:n.filter(Et.isTag);o&&o.length>0&&s.unshift.apply(s,o),t(r)&&i.push(r)}return i}})),Ut=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getElementsByTagType=e.getElementsByTagName=e.getElementById=e.getElements=e.testElement=void 0;var n={tag_name:function(t){return"function"==typeof t?function(e){return Et.isTag(e)&&t(e.name)}:"*"===t?Et.isTag:function(e){return Et.isTag(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return Et.isText(e)&&t(e.data)}:function(e){return Et.isText(e)&&e.data===t}}};function r(t,e){return"function"==typeof e?function(n){return Et.isTag(n)&&e(n.attribs[t])}:function(n){return Et.isTag(n)&&n.attribs[t]===e}}function i(t,e){return function(n){return t(n)||e(n)}}function s(t){var e=Object.keys(t).map((function(e){var i=t[e];return e in n?n[e](i):r(e,i)}));return 0===e.length?null:e.reduce(i)}e.testElement=function(t,e){var n=s(t);return!n||n(e)},e.getElements=function(t,e,n,r){void 0===r&&(r=1/0);var i=s(t);return i?Ht.filter(i,e,n,r):[]},e.getElementById=function(t,e,n){return void 0===n&&(n=!0),Array.isArray(e)||(e=[e]),Ht.findOne(r("id",t),e,n)},e.getElementsByTagName=function(t,e,r,i){return void 0===r&&(r=!0),void 0===i&&(i=1/0),Ht.filter(n.tag_name(t),e,r,i)},e.getElementsByTagType=function(t,e,r,i){return void 0===r&&(r=!0),void 0===i&&(i=1/0),Ht.filter(n.tag_type(t),e,r,i)}})),Ft=g((function(t,e){function n(t,e){var n=[],r=[];if(t===e)return 0;for(var i=Et.hasChildren(t)?t:t.parent;i;)n.unshift(i),i=i.parent;for(i=Et.hasChildren(e)?e:e.parent;i;)r.unshift(i),i=i.parent;for(var s=Math.min(n.length,r.length),o=0;o<s&&n[o]===r[o];)o++;if(0===o)return 1;var a=n[o-1],c=a.children,l=n[o],u=r[o];return c.indexOf(l)>c.indexOf(u)?a===e?20:4:a===t?10:2}Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.removeSubsets=void 0,e.removeSubsets=function(t){for(var e=t.length;--e>=0;){var n=t[e];if(e>0&&t.lastIndexOf(n,e-1)>=0)t.splice(e,1);else for(var r=n.parent;r;r=r.parent)if(t.includes(r)){t.splice(e,1);break}}return t},e.compareDocumentPosition=n,e.uniqueSort=function(t){return(t=t.filter((function(t,e,n){return!n.includes(t,e+1)}))).sort((function(t,e){var r=n(t,e);return 2&r?-1:4&r?1:0})),t}})),Bt=g((function(t,e){var n=_&&_.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=_&&_.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),r(Pt,e),r(xt,e),r(wt,e),r(Ht,e),r(Ut,e),r(Ft,e),r(Et,e)})),Gt=g((function(t,e){var n,r=_&&_.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=_&&_.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),s=_&&_.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=_&&_.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&i(e,t,n);return s(e,t),e},a=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.parseFeed=e.FeedHandler=void 0;var c,l,u=a(Tt),h=o(Bt);!function(t){t[t.image=0]="image",t[t.audio=1]="audio",t[t.video=2]="video",t[t.document=3]="document",t[t.executable=4]="executable"}(c||(c={})),function(t){t[t.sample=0]="sample",t[t.full=1]="full",t[t.nonstop=2]="nonstop"}(l||(l={}));var p=function(t){function e(e,n){return"object"==typeof e&&(n=e=void 0),t.call(this,e,n)||this}return r(e,t),e.prototype.onend=function(){var t,e,n=T(A,this.dom);if(n){var r={};if("feed"===n.name){var i=n.children;r.type="atom",g(r,"id","id",i),g(r,"title","title",i);var s=E("href",T("link",i));s&&(r.link=s),g(r,"description","subtitle",i),(o=m("updated",i))&&(r.updated=new Date(o)),g(r,"author","email",i,!0),r.items=d("entry",i).map((function(t){var e={},n=t.children;g(e,"id","id",n),g(e,"title","title",n);var r=E("href",T("link",n));r&&(e.link=r);var i=m("summary",n)||m("content",n);i&&(e.description=i);var s=m("updated",n);return s&&(e.pubDate=new Date(s)),e.media=f(n),e}))}else{var o;i=null!==(e=null===(t=T("channel",n.children))||void 0===t?void 0:t.children)&&void 0!==e?e:[];r.type=n.name.substr(0,3),r.id="",g(r,"title","title",i),g(r,"link","link",i),g(r,"description","description",i),(o=m("lastBuildDate",i))&&(r.updated=new Date(o)),g(r,"author","managingEditor",i,!0),r.items=d("item",n.children).map((function(t){var e={},n=t.children;g(e,"id","guid",n),g(e,"title","title",n),g(e,"link","link",n),g(e,"description","description",n);var r=m("pubDate",n);return r&&(e.pubDate=new Date(r)),e.media=f(n),e}))}this.feed=r,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},e}(u.default);function f(t){return d("media:content",t).map((function(t){var e={medium:t.attribs.medium,isDefault:!!t.attribs.isDefault};return t.attribs.url&&(e.url=t.attribs.url),t.attribs.fileSize&&(e.fileSize=parseInt(t.attribs.fileSize,10)),t.attribs.type&&(e.type=t.attribs.type),t.attribs.expression&&(e.expression=t.attribs.expression),t.attribs.bitrate&&(e.bitrate=parseInt(t.attribs.bitrate,10)),t.attribs.framerate&&(e.framerate=parseInt(t.attribs.framerate,10)),t.attribs.samplingrate&&(e.samplingrate=parseInt(t.attribs.samplingrate,10)),t.attribs.channels&&(e.channels=parseInt(t.attribs.channels,10)),t.attribs.duration&&(e.duration=parseInt(t.attribs.duration,10)),t.attribs.height&&(e.height=parseInt(t.attribs.height,10)),t.attribs.width&&(e.width=parseInt(t.attribs.width,10)),t.attribs.lang&&(e.lang=t.attribs.lang),e}))}function d(t,e){return h.getElementsByTagName(t,e,!0)}function T(t,e){return h.getElementsByTagName(t,e,!0,1)[0]}function m(t,e,n){return void 0===n&&(n=!1),h.getText(h.getElementsByTagName(t,e,n,1)).trim()}function E(t,e){return e?e.attribs[t]:null}function g(t,e,n,r,i){void 0===i&&(i=!1);var s=m(n,r,i);s&&(t[e]=s)}function A(t){return"rss"===t||"feed"===t||"rdf:RDF"===t}e.FeedHandler=p,e.parseFeed=function(t,e){void 0===e&&(e={xmlMode:!0});var n=new p(e);return new ft.Parser(n,e).end(t),n.feed}})),jt=g((function(t,e){var n=_&&_.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=_&&_.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=_&&_.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&n(e,t,i);return r(e,t),e},s=_&&_.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)},o=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};function a(t,e){var n=new Tt.DomHandler(void 0,e);return new ft.Parser(n,e).end(t),n.root}Object.defineProperty(e,"__esModule",{value:!0}),e.RssHandler=e.DefaultHandler=e.DomUtils=e.ElementType=e.Tokenizer=e.createDomStream=e.parseDOM=e.parseDocument=e.DomHandler=e.Parser=void 0,Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return ft.Parser}}),Object.defineProperty(e,"DomHandler",{enumerable:!0,get:function(){return Tt.DomHandler}}),Object.defineProperty(e,"DefaultHandler",{enumerable:!0,get:function(){return Tt.DomHandler}}),e.parseDocument=a,e.parseDOM=function(t,e){return a(t,e).children},e.createDomStream=function(t,e,n){var r=new Tt.DomHandler(t,e,n);return new ft.Parser(r,e)},Object.defineProperty(e,"Tokenizer",{enumerable:!0,get:function(){return o(pt).default}});var c=i(mt);e.ElementType=c,s(Gt,e),e.DomUtils=i(Bt),Object.defineProperty(e,"RssHandler",{enumerable:!0,get:function(){return Gt.FeedHandler}})})),qt={parse:jt.parseDocument,render:Dt.default};const Kt=[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];var $t="�",Yt={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},Vt={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},Qt=function(t){return t>=55296&&t<=57343},zt=function(t){return t>=56320&&t<=57343},Xt=function(t,e){return 1024*(t-55296)+9216+e},Wt=function(t){return 32!==t&&10!==t&&13!==t&&9!==t&&12!==t&&t>=1&&t<=31||t>=127&&t<=159},Zt=function(t){return t>=64976&&t<=65007||Kt.indexOf(t)>-1},Jt="control-character-in-input-stream",te="noncharacter-in-input-stream",ee="surrogate-in-input-stream",ne="non-void-html-element-start-tag-with-trailing-solidus",re="end-tag-with-attributes",ie="end-tag-with-trailing-solidus",se="unexpected-solidus-in-tag",oe="unexpected-null-character",ae="unexpected-question-mark-instead-of-tag-name",ce="invalid-first-character-of-tag-name",le="unexpected-equals-sign-before-attribute-name",ue="missing-end-tag-name",he="unexpected-character-in-attribute-name",pe="unknown-named-character-reference",fe="missing-semicolon-after-character-reference",de="unexpected-character-after-doctype-system-identifier",Te="unexpected-character-in-unquoted-attribute-value",me="eof-before-tag-name",Ee="eof-in-tag",_e="missing-attribute-value",ge="missing-whitespace-between-attributes",Ae="missing-whitespace-after-doctype-public-keyword",Ne="missing-whitespace-between-doctype-public-and-system-identifiers",Oe="missing-whitespace-after-doctype-system-keyword",Se="missing-quote-before-doctype-public-identifier",Ce="missing-quote-before-doctype-system-identifier",ve="missing-doctype-public-identifier",be="missing-doctype-system-identifier",ye="abrupt-doctype-public-identifier",Ie="abrupt-doctype-system-identifier",Re="cdata-in-html-content",Me="incorrectly-opened-comment",Le="eof-in-script-html-comment-like-text",ke="eof-in-doctype",De="nested-comment",Pe="abrupt-closing-of-empty-comment",xe="eof-in-comment",we="incorrectly-closed-comment",He="eof-in-cdata",Ue="absence-of-digits-in-numeric-character-reference",Fe="null-character-reference",Be="surrogate-character-reference",Ge="character-reference-outside-unicode-range",je="control-character-reference",qe="noncharacter-character-reference",Ke="missing-whitespace-before-doctype-name",$e="missing-doctype-name",Ye="invalid-character-sequence-after-doctype-name",Ve="duplicate-attribute",Qe="non-conforming-doctype",ze="missing-doctype",Xe="misplaced-doctype",We="end-tag-without-matching-open-element",Ze="closing-of-element-with-open-child-elements",Je="disallowed-content-in-noscript-in-head",tn="open-elements-left-after-eof",en="abandoned-head-element-child",nn="misplaced-start-tag-for-head-element",rn="nested-noscript-in-head",sn="eof-in-element-that-can-contain-only-text";const on=Yt;var an=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.lastCharPos){const e=this.html.charCodeAt(this.pos+1);if(zt(e))return this.pos++,this._addGap(),Xt(t,e)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,on.EOF;return this._err(ee),t}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(t,e){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=e}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,on.EOF;let t=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&t===on.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(t===on.CARRIAGE_RETURN)return this.skipNextNewLine=!0,on.LINE_FEED;this.skipNextNewLine=!1,Qt(t)&&(t=this._processSurrogate(t));return t>31&&t<127||t===on.LINE_FEED||t===on.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t}_checkForProblematicCharacters(t){Wt(t)?this._err(Jt):Zt(t)&&this._err(te)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},cn=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204]);const ln=Yt,un=Vt,hn={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},pn="DATA_STATE";function fn(t){return t===ln.SPACE||t===ln.LINE_FEED||t===ln.TABULATION||t===ln.FORM_FEED}function dn(t){return t>=ln.DIGIT_0&&t<=ln.DIGIT_9}function Tn(t){return t>=ln.LATIN_CAPITAL_A&&t<=ln.LATIN_CAPITAL_Z}function mn(t){return t>=ln.LATIN_SMALL_A&&t<=ln.LATIN_SMALL_Z}function En(t){return mn(t)||Tn(t)}function _n(t){return En(t)||dn(t)}function gn(t){return t>=ln.LATIN_CAPITAL_A&&t<=ln.LATIN_CAPITAL_F}function An(t){return t>=ln.LATIN_SMALL_A&&t<=ln.LATIN_SMALL_F}function Nn(t){return t+32}function On(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(t>>>10&1023|55296)+String.fromCharCode(56320|1023&t))}function Sn(t){return String.fromCharCode(Nn(t))}function Cn(t,e){const n=cn[++t];let r=++t,i=r+n-1;for(;r<=i;){const t=r+i>>>1,s=cn[t];if(s<e)r=t+1;else{if(!(s>e))return cn[t+n];i=t-1}}return-1}class vn{constructor(){this.preprocessor=new an,this.tokenQueue=[],this.allowCDATA=!1,this.state=pn,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(t){this._consume(),this._err(t),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()}write(t,e){this.active=!0,this.preprocessor.write(t,e)}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:vn.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(t){this.state=t,this._unconsume()}_consumeSequenceIfMatch(t,e,n){let r=0,i=!0;const s=t.length;let o,a=0,c=e;for(;a<s;a++){if(a>0&&(c=this._consume(),r++),c===ln.EOF){i=!1;break}if(o=t[a],c!==o&&(n||c!==Nn(o))){i=!1;break}}if(!i)for(;r--;)this._unconsume();return i}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==un.SCRIPT_STRING.length)return!1;for(let t=0;t<this.tempBuff.length;t++)if(this.tempBuff[t]!==un.SCRIPT_STRING[t])return!1;return!0}_createStartTagToken(){this.currentToken={type:vn.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:vn.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:vn.COMMENT_TOKEN,data:""}}_createDoctypeToken(t){this.currentToken={type:vn.DOCTYPE_TOKEN,name:t,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(t,e){this.currentCharacterToken={type:t,chars:e}}_createEOFToken(){this.currentToken={type:vn.EOF_TOKEN}}_createAttr(t){this.currentAttr={name:t,value:""}}_leaveAttrName(t){null===vn.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(Ve),this.state=t}_leaveAttrValue(t){this.state=t}_emitCurrentToken(){this._emitCurrentCharacterToken();const t=this.currentToken;this.currentToken=null,t.type===vn.START_TAG_TOKEN?this.lastStartTagName=t.tagName:t.type===vn.END_TAG_TOKEN&&(t.attrs.length>0&&this._err(re),t.selfClosing&&this._err(ie)),this.tokenQueue.push(t)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(t,e){this.currentCharacterToken&&this.currentCharacterToken.type!==t&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=e:this._createCharacterToken(t,e)}_emitCodePoint(t){let e=vn.CHARACTER_TOKEN;fn(t)?e=vn.WHITESPACE_CHARACTER_TOKEN:t===ln.NULL&&(e=vn.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(e,On(t))}_emitSeveralCodePoints(t){for(let e=0;e<t.length;e++)this._emitCodePoint(t[e])}_emitChars(t){this._appendCharToCurrentCharacterToken(vn.CHARACTER_TOKEN,t)}_matchNamedCharacterReference(t){let e=null,n=1,r=Cn(0,t);for(this.tempBuff.push(t);r>-1;){const t=cn[r],i=t<7;i&&1&t&&(e=2&t?[cn[++r],cn[++r]]:[cn[++r]],n=0);const s=this._consume();if(this.tempBuff.push(s),n++,s===ln.EOF)break;r=i?4&t?Cn(r,s):-1:s===t?++r:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return e}_isCharacterReferenceInAttribute(){return"ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_UNQUOTED_STATE"===this.returnState}_isCharacterReferenceAttributeQuirk(t){if(!t&&this._isCharacterReferenceInAttribute()){const t=this._consume();return this._unconsume(),t===ln.EQUALS_SIGN||_n(t)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let t=0;t<this.tempBuff.length;t++)this.currentAttr.value+=On(this.tempBuff[t]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[pn](t){this.preprocessor.dropParsedChunk(),t===ln.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":t===ln.AMPERSAND?(this.returnState=pn,this.state="CHARACTER_REFERENCE_STATE"):t===ln.NULL?(this._err(oe),this._emitCodePoint(t)):t===ln.EOF?this._emitEOFToken():this._emitCodePoint(t)}RCDATA_STATE(t){this.preprocessor.dropParsedChunk(),t===ln.AMPERSAND?(this.returnState="RCDATA_STATE",this.state="CHARACTER_REFERENCE_STATE"):t===ln.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":t===ln.NULL?(this._err(oe),this._emitChars($t)):t===ln.EOF?this._emitEOFToken():this._emitCodePoint(t)}RAWTEXT_STATE(t){this.preprocessor.dropParsedChunk(),t===ln.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":t===ln.NULL?(this._err(oe),this._emitChars($t)):t===ln.EOF?this._emitEOFToken():this._emitCodePoint(t)}SCRIPT_DATA_STATE(t){this.preprocessor.dropParsedChunk(),t===ln.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":t===ln.NULL?(this._err(oe),this._emitChars($t)):t===ln.EOF?this._emitEOFToken():this._emitCodePoint(t)}PLAINTEXT_STATE(t){this.preprocessor.dropParsedChunk(),t===ln.NULL?(this._err(oe),this._emitChars($t)):t===ln.EOF?this._emitEOFToken():this._emitCodePoint(t)}TAG_OPEN_STATE(t){t===ln.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":t===ln.SOLIDUS?this.state="END_TAG_OPEN_STATE":En(t)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):t===ln.QUESTION_MARK?(this._err(ae),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE")):t===ln.EOF?(this._err(me),this._emitChars("<"),this._emitEOFToken()):(this._err(ce),this._emitChars("<"),this._reconsumeInState(pn))}END_TAG_OPEN_STATE(t){En(t)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):t===ln.GREATER_THAN_SIGN?(this._err(ue),this.state=pn):t===ln.EOF?(this._err(me),this._emitChars("</"),this._emitEOFToken()):(this._err(ce),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}TAG_NAME_STATE(t){fn(t)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":t===ln.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":t===ln.GREATER_THAN_SIGN?(this.state=pn,this._emitCurrentToken()):Tn(t)?this.currentToken.tagName+=Sn(t):t===ln.NULL?(this._err(oe),this.currentToken.tagName+=$t):t===ln.EOF?(this._err(Ee),this._emitEOFToken()):this.currentToken.tagName+=On(t)}RCDATA_LESS_THAN_SIGN_STATE(t){t===ln.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChars("<"),this._reconsumeInState("RCDATA_STATE"))}RCDATA_END_TAG_OPEN_STATE(t){En(t)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("RCDATA_STATE"))}RCDATA_END_TAG_NAME_STATE(t){if(Tn(t))this.currentToken.tagName+=Sn(t),this.tempBuff.push(t);else if(mn(t))this.currentToken.tagName+=On(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(fn(t))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(t===ln.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(t===ln.GREATER_THAN_SIGN)return this.state=pn,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE")}}RAWTEXT_LESS_THAN_SIGN_STATE(t){t===ln.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChars("<"),this._reconsumeInState("RAWTEXT_STATE"))}RAWTEXT_END_TAG_OPEN_STATE(t){En(t)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("RAWTEXT_STATE"))}RAWTEXT_END_TAG_NAME_STATE(t){if(Tn(t))this.currentToken.tagName+=Sn(t),this.tempBuff.push(t);else if(mn(t))this.currentToken.tagName+=On(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(fn(t))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(t===ln.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(t===ln.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=pn)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE")}}SCRIPT_DATA_LESS_THAN_SIGN_STATE(t){t===ln.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):t===ln.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_STATE"))}SCRIPT_DATA_END_TAG_OPEN_STATE(t){En(t)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("SCRIPT_DATA_STATE"))}SCRIPT_DATA_END_TAG_NAME_STATE(t){if(Tn(t))this.currentToken.tagName+=Sn(t),this.tempBuff.push(t);else if(mn(t))this.currentToken.tagName+=On(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(fn(t))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(t===ln.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(t===ln.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=pn)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE")}}SCRIPT_DATA_ESCAPE_START_STATE(t){t===ln.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChars("-")):this._reconsumeInState("SCRIPT_DATA_STATE")}SCRIPT_DATA_ESCAPE_START_DASH_STATE(t){t===ln.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):this._reconsumeInState("SCRIPT_DATA_STATE")}SCRIPT_DATA_ESCAPED_STATE(t){t===ln.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChars("-")):t===ln.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":t===ln.NULL?(this._err(oe),this._emitChars($t)):t===ln.EOF?(this._err(Le),this._emitEOFToken()):this._emitCodePoint(t)}SCRIPT_DATA_ESCAPED_DASH_STATE(t){t===ln.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):t===ln.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":t===ln.NULL?(this._err(oe),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars($t)):t===ln.EOF?(this._err(Le),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(t))}SCRIPT_DATA_ESCAPED_DASH_DASH_STATE(t){t===ln.HYPHEN_MINUS?this._emitChars("-"):t===ln.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":t===ln.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChars(">")):t===ln.NULL?(this._err(oe),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars($t)):t===ln.EOF?(this._err(Le),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(t))}SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE(t){t===ln.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):En(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE(t){En(t)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE(t){if(Tn(t))this.currentToken.tagName+=Sn(t),this.tempBuff.push(t);else if(mn(t))this.currentToken.tagName+=On(t),this.tempBuff.push(t);else{if(this.lastStartTagName===this.currentToken.tagName){if(fn(t))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(t===ln.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(t===ln.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=pn)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}}SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE(t){fn(t)||t===ln.SOLIDUS||t===ln.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(t)):Tn(t)?(this.tempBuff.push(Nn(t)),this._emitCodePoint(t)):mn(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPED_STATE(t){t===ln.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChars("-")):t===ln.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):t===ln.NULL?(this._err(oe),this._emitChars($t)):t===ln.EOF?(this._err(Le),this._emitEOFToken()):this._emitCodePoint(t)}SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE(t){t===ln.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):t===ln.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):t===ln.NULL?(this._err(oe),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars($t)):t===ln.EOF?(this._err(Le),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(t))}SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE(t){t===ln.HYPHEN_MINUS?this._emitChars("-"):t===ln.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):t===ln.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChars(">")):t===ln.NULL?(this._err(oe),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars($t)):t===ln.EOF?(this._err(Le),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(t))}SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE(t){t===ln.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChars("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE(t){fn(t)||t===ln.SOLIDUS||t===ln.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(t)):Tn(t)?(this.tempBuff.push(Nn(t)),this._emitCodePoint(t)):mn(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}BEFORE_ATTRIBUTE_NAME_STATE(t){fn(t)||(t===ln.SOLIDUS||t===ln.GREATER_THAN_SIGN||t===ln.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):t===ln.EQUALS_SIGN?(this._err(le),this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}ATTRIBUTE_NAME_STATE(t){fn(t)||t===ln.SOLIDUS||t===ln.GREATER_THAN_SIGN||t===ln.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):t===ln.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):Tn(t)?this.currentAttr.name+=Sn(t):t===ln.QUOTATION_MARK||t===ln.APOSTROPHE||t===ln.LESS_THAN_SIGN?(this._err(he),this.currentAttr.name+=On(t)):t===ln.NULL?(this._err(oe),this.currentAttr.name+=$t):this.currentAttr.name+=On(t)}AFTER_ATTRIBUTE_NAME_STATE(t){fn(t)||(t===ln.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":t===ln.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":t===ln.GREATER_THAN_SIGN?(this.state=pn,this._emitCurrentToken()):t===ln.EOF?(this._err(Ee),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}BEFORE_ATTRIBUTE_VALUE_STATE(t){fn(t)||(t===ln.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":t===ln.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":t===ln.GREATER_THAN_SIGN?(this._err(_e),this.state=pn,this._emitCurrentToken()):this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"))}ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE(t){t===ln.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":t===ln.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):t===ln.NULL?(this._err(oe),this.currentAttr.value+=$t):t===ln.EOF?(this._err(Ee),this._emitEOFToken()):this.currentAttr.value+=On(t)}ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE(t){t===ln.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":t===ln.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):t===ln.NULL?(this._err(oe),this.currentAttr.value+=$t):t===ln.EOF?(this._err(Ee),this._emitEOFToken()):this.currentAttr.value+=On(t)}ATTRIBUTE_VALUE_UNQUOTED_STATE(t){fn(t)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):t===ln.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_UNQUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):t===ln.GREATER_THAN_SIGN?(this._leaveAttrValue(pn),this._emitCurrentToken()):t===ln.NULL?(this._err(oe),this.currentAttr.value+=$t):t===ln.QUOTATION_MARK||t===ln.APOSTROPHE||t===ln.LESS_THAN_SIGN||t===ln.EQUALS_SIGN||t===ln.GRAVE_ACCENT?(this._err(Te),this.currentAttr.value+=On(t)):t===ln.EOF?(this._err(Ee),this._emitEOFToken()):this.currentAttr.value+=On(t)}AFTER_ATTRIBUTE_VALUE_QUOTED_STATE(t){fn(t)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):t===ln.SOLIDUS?this._leaveAttrValue("SELF_CLOSING_START_TAG_STATE"):t===ln.GREATER_THAN_SIGN?(this._leaveAttrValue(pn),this._emitCurrentToken()):t===ln.EOF?(this._err(Ee),this._emitEOFToken()):(this._err(ge),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}SELF_CLOSING_START_TAG_STATE(t){t===ln.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=pn,this._emitCurrentToken()):t===ln.EOF?(this._err(Ee),this._emitEOFToken()):(this._err(se),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}BOGUS_COMMENT_STATE(t){t===ln.GREATER_THAN_SIGN?(this.state=pn,this._emitCurrentToken()):t===ln.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===ln.NULL?(this._err(oe),this.currentToken.data+=$t):this.currentToken.data+=On(t)}MARKUP_DECLARATION_OPEN_STATE(t){this._consumeSequenceIfMatch(un.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state="COMMENT_START_STATE"):this._consumeSequenceIfMatch(un.DOCTYPE_STRING,t,!1)?this.state="DOCTYPE_STATE":this._consumeSequenceIfMatch(un.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state="CDATA_SECTION_STATE":(this._err(Re),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state="BOGUS_COMMENT_STATE"):this._ensureHibernation()||(this._err(Me),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}COMMENT_START_STATE(t){t===ln.HYPHEN_MINUS?this.state="COMMENT_START_DASH_STATE":t===ln.GREATER_THAN_SIGN?(this._err(Pe),this.state=pn,this._emitCurrentToken()):this._reconsumeInState("COMMENT_STATE")}COMMENT_START_DASH_STATE(t){t===ln.HYPHEN_MINUS?this.state="COMMENT_END_STATE":t===ln.GREATER_THAN_SIGN?(this._err(Pe),this.state=pn,this._emitCurrentToken()):t===ln.EOF?(this._err(xe),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_STATE(t){t===ln.HYPHEN_MINUS?this.state="COMMENT_END_DASH_STATE":t===ln.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state="COMMENT_LESS_THAN_SIGN_STATE"):t===ln.NULL?(this._err(oe),this.currentToken.data+=$t):t===ln.EOF?(this._err(xe),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=On(t)}COMMENT_LESS_THAN_SIGN_STATE(t){t===ln.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state="COMMENT_LESS_THAN_SIGN_BANG_STATE"):t===ln.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_STATE(t){t===ln.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE(t){t===ln.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE":this._reconsumeInState("COMMENT_END_DASH_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE(t){t!==ln.GREATER_THAN_SIGN&&t!==ln.EOF&&this._err(De),this._reconsumeInState("COMMENT_END_STATE")}COMMENT_END_DASH_STATE(t){t===ln.HYPHEN_MINUS?this.state="COMMENT_END_STATE":t===ln.EOF?(this._err(xe),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_STATE(t){t===ln.GREATER_THAN_SIGN?(this.state=pn,this._emitCurrentToken()):t===ln.EXCLAMATION_MARK?this.state="COMMENT_END_BANG_STATE":t===ln.HYPHEN_MINUS?this.currentToken.data+="-":t===ln.EOF?(this._err(xe),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_BANG_STATE(t){t===ln.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state="COMMENT_END_DASH_STATE"):t===ln.GREATER_THAN_SIGN?(this._err(we),this.state=pn,this._emitCurrentToken()):t===ln.EOF?(this._err(xe),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState("COMMENT_STATE"))}DOCTYPE_STATE(t){fn(t)?this.state="BEFORE_DOCTYPE_NAME_STATE":t===ln.GREATER_THAN_SIGN?this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"):t===ln.EOF?(this._err(ke),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ke),this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"))}BEFORE_DOCTYPE_NAME_STATE(t){fn(t)||(Tn(t)?(this._createDoctypeToken(Sn(t)),this.state="DOCTYPE_NAME_STATE"):t===ln.NULL?(this._err(oe),this._createDoctypeToken($t),this.state="DOCTYPE_NAME_STATE"):t===ln.GREATER_THAN_SIGN?(this._err($e),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=pn):t===ln.EOF?(this._err(ke),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(On(t)),this.state="DOCTYPE_NAME_STATE"))}DOCTYPE_NAME_STATE(t){fn(t)?this.state="AFTER_DOCTYPE_NAME_STATE":t===ln.GREATER_THAN_SIGN?(this.state=pn,this._emitCurrentToken()):Tn(t)?this.currentToken.name+=Sn(t):t===ln.NULL?(this._err(oe),this.currentToken.name+=$t):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=On(t)}AFTER_DOCTYPE_NAME_STATE(t){fn(t)||(t===ln.GREATER_THAN_SIGN?(this.state=pn,this._emitCurrentToken()):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(un.PUBLIC_STRING,t,!1)?this.state="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE":this._consumeSequenceIfMatch(un.SYSTEM_STRING,t,!1)?this.state="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE":this._ensureHibernation()||(this._err(Ye),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE(t){fn(t)?this.state="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE":t===ln.QUOTATION_MARK?(this._err(Ae),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):t===ln.APOSTROPHE?(this._err(Ae),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):t===ln.GREATER_THAN_SIGN?(this._err(ve),this.currentToken.forceQuirks=!0,this.state=pn,this._emitCurrentToken()):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Se),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE(t){fn(t)||(t===ln.QUOTATION_MARK?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):t===ln.APOSTROPHE?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):t===ln.GREATER_THAN_SIGN?(this._err(ve),this.currentToken.forceQuirks=!0,this.state=pn,this._emitCurrentToken()):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Se),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE(t){t===ln.QUOTATION_MARK?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":t===ln.NULL?(this._err(oe),this.currentToken.publicId+=$t):t===ln.GREATER_THAN_SIGN?(this._err(ye),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=pn):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=On(t)}DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE(t){t===ln.APOSTROPHE?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":t===ln.NULL?(this._err(oe),this.currentToken.publicId+=$t):t===ln.GREATER_THAN_SIGN?(this._err(ye),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=pn):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=On(t)}AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE(t){fn(t)?this.state="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE":t===ln.GREATER_THAN_SIGN?(this.state=pn,this._emitCurrentToken()):t===ln.QUOTATION_MARK?(this._err(Ne),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):t===ln.APOSTROPHE?(this._err(Ne),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ce),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE(t){fn(t)||(t===ln.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=pn):t===ln.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):t===ln.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ce),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE(t){fn(t)?this.state="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE":t===ln.QUOTATION_MARK?(this._err(Oe),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):t===ln.APOSTROPHE?(this._err(Oe),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):t===ln.GREATER_THAN_SIGN?(this._err(be),this.currentToken.forceQuirks=!0,this.state=pn,this._emitCurrentToken()):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ce),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE(t){fn(t)||(t===ln.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):t===ln.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):t===ln.GREATER_THAN_SIGN?(this._err(be),this.currentToken.forceQuirks=!0,this.state=pn,this._emitCurrentToken()):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(Ce),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE(t){t===ln.QUOTATION_MARK?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":t===ln.NULL?(this._err(oe),this.currentToken.systemId+=$t):t===ln.GREATER_THAN_SIGN?(this._err(Ie),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=pn):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=On(t)}DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE(t){t===ln.APOSTROPHE?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":t===ln.NULL?(this._err(oe),this.currentToken.systemId+=$t):t===ln.GREATER_THAN_SIGN?(this._err(Ie),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=pn):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=On(t)}AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE(t){fn(t)||(t===ln.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=pn):t===ln.EOF?(this._err(ke),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(de),this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}BOGUS_DOCTYPE_STATE(t){t===ln.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=pn):t===ln.NULL?this._err(oe):t===ln.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}CDATA_SECTION_STATE(t){t===ln.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_BRACKET_STATE":t===ln.EOF?(this._err(He),this._emitEOFToken()):this._emitCodePoint(t)}CDATA_SECTION_BRACKET_STATE(t){t===ln.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_END_STATE":(this._emitChars("]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CDATA_SECTION_END_STATE(t){t===ln.GREATER_THAN_SIGN?this.state=pn:t===ln.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CHARACTER_REFERENCE_STATE(t){this.tempBuff=[ln.AMPERSAND],t===ln.NUMBER_SIGN?(this.tempBuff.push(t),this.state="NUMERIC_CHARACTER_REFERENCE_STATE"):_n(t)?this._reconsumeInState("NAMED_CHARACTER_REFERENCE_STATE"):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}NAMED_CHARACTER_REFERENCE_STATE(t){const e=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[ln.AMPERSAND];else if(e){const t=this.tempBuff[this.tempBuff.length-1]===ln.SEMICOLON;this._isCharacterReferenceAttributeQuirk(t)||(t||this._errOnNextCodePoint(fe),this.tempBuff=e),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state="AMBIGUOS_AMPERSAND_STATE"}AMBIGUOS_AMPERSAND_STATE(t){_n(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=On(t):this._emitCodePoint(t):(t===ln.SEMICOLON&&this._err(pe),this._reconsumeInState(this.returnState))}NUMERIC_CHARACTER_REFERENCE_STATE(t){this.charRefCode=0,t===ln.LATIN_SMALL_X||t===ln.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE"):this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_START_STATE")}HEXADEMICAL_CHARACTER_REFERENCE_START_STATE(t){!function(t){return dn(t)||gn(t)||An(t)}(t)?(this._err(Ue),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState("HEXADEMICAL_CHARACTER_REFERENCE_STATE")}DECIMAL_CHARACTER_REFERENCE_START_STATE(t){dn(t)?this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_STATE"):(this._err(Ue),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}HEXADEMICAL_CHARACTER_REFERENCE_STATE(t){gn(t)?this.charRefCode=16*this.charRefCode+t-55:An(t)?this.charRefCode=16*this.charRefCode+t-87:dn(t)?this.charRefCode=16*this.charRefCode+t-48:t===ln.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(fe),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}DECIMAL_CHARACTER_REFERENCE_STATE(t){dn(t)?this.charRefCode=10*this.charRefCode+t-48:t===ln.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(fe),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}NUMERIC_CHARACTER_REFERENCE_END_STATE(){if(this.charRefCode===ln.NULL)this._err(Fe),this.charRefCode=ln.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(Ge),this.charRefCode=ln.REPLACEMENT_CHARACTER;else if(Qt(this.charRefCode))this._err(Be),this.charRefCode=ln.REPLACEMENT_CHARACTER;else if(Zt(this.charRefCode))this._err(qe);else if(Wt(this.charRefCode)||this.charRefCode===ln.CARRIAGE_RETURN){this._err(je);const t=hn[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}vn.CHARACTER_TOKEN="CHARACTER_TOKEN",vn.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",vn.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",vn.START_TAG_TOKEN="START_TAG_TOKEN",vn.END_TAG_TOKEN="END_TAG_TOKEN",vn.COMMENT_TOKEN="COMMENT_TOKEN",vn.DOCTYPE_TOKEN="DOCTYPE_TOKEN",vn.EOF_TOKEN="EOF_TOKEN",vn.HIBERNATION_TOKEN="HIBERNATION_TOKEN",vn.MODE={DATA:pn,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},vn.getTokenAttr=function(t,e){for(let n=t.attrs.length-1;n>=0;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null};var bn=vn,yn=g((function(t,e){const n=e.NAMESPACES={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/"};e.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},e.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const r=e.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};e.SPECIAL_ELEMENTS={[n.HTML]:{[r.ADDRESS]:!0,[r.APPLET]:!0,[r.AREA]:!0,[r.ARTICLE]:!0,[r.ASIDE]:!0,[r.BASE]:!0,[r.BASEFONT]:!0,[r.BGSOUND]:!0,[r.BLOCKQUOTE]:!0,[r.BODY]:!0,[r.BR]:!0,[r.BUTTON]:!0,[r.CAPTION]:!0,[r.CENTER]:!0,[r.COL]:!0,[r.COLGROUP]:!0,[r.DD]:!0,[r.DETAILS]:!0,[r.DIR]:!0,[r.DIV]:!0,[r.DL]:!0,[r.DT]:!0,[r.EMBED]:!0,[r.FIELDSET]:!0,[r.FIGCAPTION]:!0,[r.FIGURE]:!0,[r.FOOTER]:!0,[r.FORM]:!0,[r.FRAME]:!0,[r.FRAMESET]:!0,[r.H1]:!0,[r.H2]:!0,[r.H3]:!0,[r.H4]:!0,[r.H5]:!0,[r.H6]:!0,[r.HEAD]:!0,[r.HEADER]:!0,[r.HGROUP]:!0,[r.HR]:!0,[r.HTML]:!0,[r.IFRAME]:!0,[r.IMG]:!0,[r.INPUT]:!0,[r.LI]:!0,[r.LINK]:!0,[r.LISTING]:!0,[r.MAIN]:!0,[r.MARQUEE]:!0,[r.MENU]:!0,[r.META]:!0,[r.NAV]:!0,[r.NOEMBED]:!0,[r.NOFRAMES]:!0,[r.NOSCRIPT]:!0,[r.OBJECT]:!0,[r.OL]:!0,[r.P]:!0,[r.PARAM]:!0,[r.PLAINTEXT]:!0,[r.PRE]:!0,[r.SCRIPT]:!0,[r.SECTION]:!0,[r.SELECT]:!0,[r.SOURCE]:!0,[r.STYLE]:!0,[r.SUMMARY]:!0,[r.TABLE]:!0,[r.TBODY]:!0,[r.TD]:!0,[r.TEMPLATE]:!0,[r.TEXTAREA]:!0,[r.TFOOT]:!0,[r.TH]:!0,[r.THEAD]:!0,[r.TITLE]:!0,[r.TR]:!0,[r.TRACK]:!0,[r.UL]:!0,[r.WBR]:!0,[r.XMP]:!0},[n.MATHML]:{[r.MI]:!0,[r.MO]:!0,[r.MN]:!0,[r.MS]:!0,[r.MTEXT]:!0,[r.ANNOTATION_XML]:!0},[n.SVG]:{[r.TITLE]:!0,[r.FOREIGN_OBJECT]:!0,[r.DESC]:!0}}}));const In=yn.TAG_NAMES,Rn=yn.NAMESPACES;function Mn(t){switch(t.length){case 1:return t===In.P;case 2:return t===In.RB||t===In.RP||t===In.RT||t===In.DD||t===In.DT||t===In.LI;case 3:return t===In.RTC;case 6:return t===In.OPTION;case 8:return t===In.OPTGROUP}return!1}function Ln(t){switch(t.length){case 1:return t===In.P;case 2:return t===In.RB||t===In.RP||t===In.RT||t===In.DD||t===In.DT||t===In.LI||t===In.TD||t===In.TH||t===In.TR;case 3:return t===In.RTC;case 5:return t===In.TBODY||t===In.TFOOT||t===In.THEAD;case 6:return t===In.OPTION;case 7:return t===In.CAPTION;case 8:return t===In.OPTGROUP||t===In.COLGROUP}return!1}function kn(t,e){switch(t.length){case 2:if(t===In.TD||t===In.TH)return e===Rn.HTML;if(t===In.MI||t===In.MO||t===In.MN||t===In.MS)return e===Rn.MATHML;break;case 4:if(t===In.HTML)return e===Rn.HTML;if(t===In.DESC)return e===Rn.SVG;break;case 5:if(t===In.TABLE)return e===Rn.HTML;if(t===In.MTEXT)return e===Rn.MATHML;if(t===In.TITLE)return e===Rn.SVG;break;case 6:return(t===In.APPLET||t===In.OBJECT)&&e===Rn.HTML;case 7:return(t===In.CAPTION||t===In.MARQUEE)&&e===Rn.HTML;case 8:return t===In.TEMPLATE&&e===Rn.HTML;case 13:return t===In.FOREIGN_OBJECT&&e===Rn.SVG;case 14:return t===In.ANNOTATION_XML&&e===Rn.MATHML}return!1}var Dn=class{constructor(t,e){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=e}_indexOf(t){let e=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){e=n;break}return e}_isInTemplate(){return this.currentTagName===In.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Rn.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,e){const n=this._indexOf(t);this.items[n]=e,n===this.stackTop&&this._updateCurrentElement()}insertAfter(t,e){const n=this._indexOf(t)+1;this.items.splice(n,0,e),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const e=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===t&&n===Rn.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const e=this.current;if(this.pop(),e===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,e=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===In.H1||t===In.H2||t===In.H3||t===In.H4||t===In.H5||t===In.H6&&e===Rn.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,e=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===In.TD||t===In.TH&&e===Rn.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==In.TABLE&&this.currentTagName!==In.TEMPLATE&&this.currentTagName!==In.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Rn.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==In.TBODY&&this.currentTagName!==In.TFOOT&&this.currentTagName!==In.THEAD&&this.currentTagName!==In.TEMPLATE&&this.currentTagName!==In.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Rn.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==In.TR&&this.currentTagName!==In.TEMPLATE&&this.currentTagName!==In.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Rn.HTML;)this.pop()}remove(t){for(let e=this.stackTop;e>=0;e--)if(this.items[e]===t){this.items.splice(e,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===In.BODY?t:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){let e=this._indexOf(t);return--e>=0?this.items[e]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===In.HTML}hasInScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===Rn.HTML)return!0;if(kn(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const e=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if((e===In.H1||e===In.H2||e===In.H3||e===In.H4||e===In.H5||e===In.H6)&&n===Rn.HTML)return!0;if(kn(e,n))return!1}return!0}hasInListItemScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===Rn.HTML)return!0;if((n===In.UL||n===In.OL)&&r===Rn.HTML||kn(n,r))return!1}return!0}hasInButtonScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===Rn.HTML)return!0;if(n===In.BUTTON&&r===Rn.HTML||kn(n,r))return!1}return!0}hasInTableScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===Rn.HTML){if(n===t)return!0;if(n===In.TABLE||n===In.TEMPLATE||n===In.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const e=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Rn.HTML){if(e===In.TBODY||e===In.THEAD||e===In.TFOOT)return!0;if(e===In.TABLE||e===In.HTML)return!1}}return!0}hasInSelectScope(t){for(let e=this.stackTop;e>=0;e--){const n=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===Rn.HTML){if(n===t)return!0;if(n!==In.OPTION&&n!==In.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Mn(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Ln(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;Mn(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};class Pn{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const e=[];if(this.length>=3){const n=this.treeAdapter.getAttrList(t).length,r=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t);for(let t=this.length-1;t>=0;t--){const s=this.entries[t];if(s.type===Pn.MARKER_ENTRY)break;const o=s.element,a=this.treeAdapter.getAttrList(o);this.treeAdapter.getTagName(o)===r&&this.treeAdapter.getNamespaceURI(o)===i&&a.length===n&&e.push({idx:t,attrs:a})}}return e.length<3?[]:e}_ensureNoahArkCondition(t){const e=this._getNoahArkConditionCandidates(t);let n=e.length;if(n){const r=this.treeAdapter.getAttrList(t),i=r.length,s=Object.create(null);for(let t=0;t<i;t++){const e=r[t];s[e.name]=e.value}for(let t=0;t<i;t++)for(let r=0;r<n;r++){const i=e[r].attrs[t];if(s[i.name]!==i.value&&(e.splice(r,1),n--),e.length<3)return}for(let t=n-1;t>=2;t--)this.entries.splice(e[t].idx,1),this.length--}}insertMarker(){this.entries.push({type:Pn.MARKER_ENTRY}),this.length++}pushElement(t,e){this._ensureNoahArkCondition(t),this.entries.push({type:Pn.ELEMENT_ENTRY,element:t,token:e}),this.length++}insertElementAfterBookmark(t,e){let n=this.length-1;for(;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:Pn.ELEMENT_ENTRY,element:t,token:e}),this.length++}removeEntry(t){for(let e=this.length-1;e>=0;e--)if(this.entries[e]===t){this.entries.splice(e,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===Pn.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let e=this.length-1;e>=0;e--){const n=this.entries[e];if(n.type===Pn.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===t)return n}return null}getElementEntry(t){for(let e=this.length-1;e>=0;e--){const n=this.entries[e];if(n.type===Pn.ELEMENT_ENTRY&&n.element===t)return n}return null}}Pn.MARKER_ENTRY="MARKER_ENTRY",Pn.ELEMENT_ENTRY="ELEMENT_ENTRY";var xn=Pn;class wn{constructor(t){const e={},n=this._getOverriddenMethods(this,e);for(const r of Object.keys(n))"function"==typeof n[r]&&(e[r]=t[r],t[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}}wn.install=function(t,e,n){t.__mixins||(t.__mixins=[]);for(let n=0;n<t.__mixins.length;n++)if(t.__mixins[n].constructor===e)return t.__mixins[n];const r=new e(t,n);return t.__mixins.push(r),r};var Hn=wn;var Un=class extends Hn{constructor(t){super(t),this.preprocessor=t,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(t,e){return{advance(){const n=this.pos+1,r=this.html[n];return t.isEol&&(t.isEol=!1,t.line++,t.lineStartPos=n),("\n"===r||"\r"===r&&"\n"!==this.html[n+1])&&(t.isEol=!0),t.col=n-t.lineStartPos+1,t.offset=t.droppedBufferSize+n,e.advance.call(this)},retreat(){e.retreat.call(this),t.isEol=!1,t.col=this.pos-t.lineStartPos+1},dropParsedChunk(){const n=this.pos;e.dropParsedChunk.call(this);const r=n-this.pos;t.lineStartPos-=r,t.droppedBufferSize+=r,t.offset=t.droppedBufferSize+this.pos}}}};var Fn=class extends Hn{constructor(t){super(t),this.tokenizer=t,this.posTracker=Hn.install(t.preprocessor,Un),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const t=this.tokenizer.currentToken,e=this.tokenizer.currentAttr;t.location.attrs||(t.location.attrs=Object.create(null)),t.location.attrs[e.name]=this.currentAttrLocation}_getOverriddenMethods(t,e){const n={_createStartTagToken(){e._createStartTagToken.call(this),this.currentToken.location=t.ctLoc},_createEndTagToken(){e._createEndTagToken.call(this),this.currentToken.location=t.ctLoc},_createCommentToken(){e._createCommentToken.call(this),this.currentToken.location=t.ctLoc},_createDoctypeToken(n){e._createDoctypeToken.call(this,n),this.currentToken.location=t.ctLoc},_createCharacterToken(n,r){e._createCharacterToken.call(this,n,r),this.currentCharacterToken.location=t.ctLoc},_createEOFToken(){e._createEOFToken.call(this),this.currentToken.location=t._getCurrentLocation()},_createAttr(n){e._createAttr.call(this,n),t.currentAttrLocation=t._getCurrentLocation()},_leaveAttrName(n){e._leaveAttrName.call(this,n),t._attachCurrentAttrLocationInfo()},_leaveAttrValue(n){e._leaveAttrValue.call(this,n),t._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const n=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentToken.type===bn.EOF_TOKEN?(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset):(n.endLine=t.posTracker.line,n.endCol=t.posTracker.col+1,n.endOffset=t.posTracker.offset+1),e._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const n=this.currentCharacterToken&&this.currentCharacterToken.location;n&&-1===n.endOffset&&(n.endLine=t.posTracker.line,n.endCol=t.posTracker.col,n.endOffset=t.posTracker.offset),e._emitCurrentCharacterToken.call(this)}};return Object.keys(bn.MODE).forEach((r=>{const i=bn.MODE[r];n[i]=function(n){t.ctLoc=t._getCurrentLocation(),e[i].call(this,n)}})),n}};var Bn=class extends Hn{constructor(t,e){super(t),this.onItemPop=e.onItemPop}_getOverriddenMethods(t,e){return{pop(){t.onItemPop(this.current),e.pop.call(this)},popAllUpToHtmlElement(){for(let e=this.stackTop;e>0;e--)t.onItemPop(this.items[e]);e.popAllUpToHtmlElement.call(this)},remove(n){t.onItemPop(this.current),e.remove.call(this,n)}}}};const Gn=yn.TAG_NAMES;var jn=class extends Hn{constructor(t){super(t),this.parser=t,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(t){let e=null;this.lastStartTagToken&&(e=Object.assign({},this.lastStartTagToken.location),e.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(t,e)}_setEndLocation(t,e){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&e.location){const n=e.location,r=this.treeAdapter.getTagName(t),i={};e.type===bn.END_TAG_TOKEN&&r===e.tagName?(i.endTag=Object.assign({},n),i.endLine=n.endLine,i.endCol=n.endCol,i.endOffset=n.endOffset):(i.endLine=n.startLine,i.endCol=n.startCol,i.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}_getOverriddenMethods(t,e){return{_bootstrap(n,r){e._bootstrap.call(this,n,r),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null;const i=Hn.install(this.tokenizer,Fn);t.posTracker=i.posTracker,Hn.install(this.openElements,Bn,{onItemPop:function(e){t._setEndLocation(e,t.currentToken)}})},_runParsingLoop(n){e._runParsingLoop.call(this,n);for(let e=this.openElements.stackTop;e>=0;e--)t._setEndLocation(this.openElements.items[e],t.currentToken)},_processTokenInForeignContent(n){t.currentToken=n,e._processTokenInForeignContent.call(this,n)},_processToken(n){t.currentToken=n,e._processToken.call(this,n);if(n.type===bn.END_TAG_TOKEN&&(n.tagName===Gn.HTML||n.tagName===Gn.BODY&&this.openElements.hasInScope(Gn.BODY)))for(let e=this.openElements.stackTop;e>=0;e--){const r=this.openElements.items[e];if(this.treeAdapter.getTagName(r)===n.tagName){t._setEndLocation(r,n);break}}},_setDocumentType(t){e._setDocumentType.call(this,t);const n=this.treeAdapter.getChildNodes(this.document),r=n.length;for(let e=0;e<r;e++){const r=n[e];if(this.treeAdapter.isDocumentTypeNode(r)){this.treeAdapter.setNodeSourceCodeLocation(r,t.location);break}}},_attachElementToTree(n){t._setStartLocation(n),t.lastStartTagToken=null,e._attachElementToTree.call(this,n)},_appendElement(n,r){t.lastStartTagToken=n,e._appendElement.call(this,n,r)},_insertElement(n,r){t.lastStartTagToken=n,e._insertElement.call(this,n,r)},_insertTemplate(n){t.lastStartTagToken=n,e._insertTemplate.call(this,n);const r=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(r,null)},_insertFakeRootElement(){e._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(t,n){e._appendCommentNode.call(this,t,n);const r=this.treeAdapter.getChildNodes(n),i=r[r.length-1];this.treeAdapter.setNodeSourceCodeLocation(i,t.location)},_findFosterParentingLocation(){return t.lastFosterParentingLocation=e._findFosterParentingLocation.call(this),t.lastFosterParentingLocation},_insertCharacters(n){e._insertCharacters.call(this,n);const r=this._shouldFosterParentOnInsertion(),i=r&&t.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,s=this.treeAdapter.getChildNodes(i),o=r&&t.lastFosterParentingLocation.beforeElement?s.indexOf(t.lastFosterParentingLocation.beforeElement)-1:s.length-1,a=s[o];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:t,endCol:e,endOffset:r}=n.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:t,endCol:e,endOffset:r})}else this.treeAdapter.setNodeSourceCodeLocation(a,n.location)}}}};var qn=class extends Hn{constructor(t,e){super(t),this.posTracker=null,this.onParseError=e.onParseError}_setErrorLocation(t){t.startLine=t.endLine=this.posTracker.line,t.startCol=t.endCol=this.posTracker.col,t.startOffset=t.endOffset=this.posTracker.offset}_reportError(t){const e={code:t,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(e),this.onParseError(e)}_getOverriddenMethods(t){return{_err(e){t._reportError(e)}}}};var Kn=class extends qn{constructor(t,e){super(t,e),this.posTracker=Hn.install(t,Un),this.lastErrOffset=-1}_reportError(t){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(t))}};var $n=class extends qn{constructor(t,e){super(t,e);const n=Hn.install(t.preprocessor,Kn,e);this.posTracker=n.posTracker}};var Yn=class extends qn{constructor(t,e){super(t,e),this.opts=e,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(t){this.ctLoc&&(t.startLine=this.ctLoc.startLine,t.startCol=this.ctLoc.startCol,t.startOffset=this.ctLoc.startOffset,t.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,t.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,t.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(t,e){return{_bootstrap(n,r){e._bootstrap.call(this,n,r),Hn.install(this.tokenizer,$n,t.opts),Hn.install(this.tokenizer,Fn)},_processInputToken(n){t.ctLoc=n.location,e._processInputToken.call(this,n)},_err(e,n){t.locBeforeToken=n&&n.beforeToken,t._reportError(e)}}}},Vn=g((function(t,e){const{DOCUMENT_MODE:n}=yn;e.createDocument=function(){return{nodeName:"#document",mode:n.NO_QUIRKS,childNodes:[]}},e.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},e.createElement=function(t,e,n){return{nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}},e.createCommentNode=function(t){return{nodeName:"#comment",data:t,parentNode:null}};const r=function(t){return{nodeName:"#text",value:t,parentNode:null}},i=e.appendChild=function(t,e){t.childNodes.push(e),e.parentNode=t},s=e.insertBefore=function(t,e,n){const r=t.childNodes.indexOf(n);t.childNodes.splice(r,0,e),e.parentNode=t};e.setTemplateContent=function(t,e){t.content=e},e.getTemplateContent=function(t){return t.content},e.setDocumentType=function(t,e,n,r){let s=null;for(let e=0;e<t.childNodes.length;e++)if("#documentType"===t.childNodes[e].nodeName){s=t.childNodes[e];break}s?(s.name=e,s.publicId=n,s.systemId=r):i(t,{nodeName:"#documentType",name:e,publicId:n,systemId:r})},e.setDocumentMode=function(t,e){t.mode=e},e.getDocumentMode=function(t){return t.mode},e.detachNode=function(t){if(t.parentNode){const e=t.parentNode.childNodes.indexOf(t);t.parentNode.childNodes.splice(e,1),t.parentNode=null}},e.insertText=function(t,e){if(t.childNodes.length){const n=t.childNodes[t.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=e)}i(t,r(e))},e.insertTextBefore=function(t,e,n){const i=t.childNodes[t.childNodes.indexOf(n)-1];i&&"#text"===i.nodeName?i.value+=e:s(t,r(e),n)},e.adoptAttributes=function(t,e){const n=[];for(let e=0;e<t.attrs.length;e++)n.push(t.attrs[e].name);for(let r=0;r<e.length;r++)-1===n.indexOf(e[r].name)&&t.attrs.push(e[r])},e.getFirstChild=function(t){return t.childNodes[0]},e.getChildNodes=function(t){return t.childNodes},e.getParentNode=function(t){return t.parentNode},e.getAttrList=function(t){return t.attrs},e.getTagName=function(t){return t.tagName},e.getNamespaceURI=function(t){return t.namespaceURI},e.getTextNodeContent=function(t){return t.value},e.getCommentNodeContent=function(t){return t.data},e.getDocumentTypeNodeName=function(t){return t.name},e.getDocumentTypeNodePublicId=function(t){return t.publicId},e.getDocumentTypeNodeSystemId=function(t){return t.systemId},e.isTextNode=function(t){return"#text"===t.nodeName},e.isCommentNode=function(t){return"#comment"===t.nodeName},e.isDocumentTypeNode=function(t){return"#documentType"===t.nodeName},e.isElementNode=function(t){return!!t.tagName},e.setNodeSourceCodeLocation=function(t,e){t.sourceCodeLocation=e},e.getNodeSourceCodeLocation=function(t){return t.sourceCodeLocation},e.updateNodeSourceCodeLocation=function(t,e){t.sourceCodeLocation=Object.assign(t.sourceCodeLocation,e)}})),Qn=function(t,e){return[t,e=e||Object.create(null)].reduce(((t,e)=>(Object.keys(e).forEach((n=>{t[n]=e[n]})),t)),Object.create(null))};const{DOCUMENT_MODE:zn}=yn,Xn=["+//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//"],Wn=Xn.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),Zn=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],Jn=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],tr=Jn.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function er(t){const e=-1!==t.indexOf('"')?"'":'"';return e+t+e}function nr(t,e){for(let n=0;n<e.length;n++)if(0===t.indexOf(e[n]))return!0;return!1}var rr=function(t){return"html"===t.name&&null===t.publicId&&(null===t.systemId||"about:legacy-compat"===t.systemId)},ir=function(t){if("html"!==t.name)return zn.QUIRKS;const e=t.systemId;if(e&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===e.toLowerCase())return zn.QUIRKS;let n=t.publicId;if(null!==n){if(n=n.toLowerCase(),Zn.indexOf(n)>-1)return zn.QUIRKS;let t=null===e?Wn:Xn;if(nr(n,t))return zn.QUIRKS;if(t=null===e?Jn:tr,nr(n,t))return zn.LIMITED_QUIRKS}return zn.NO_QUIRKS},sr=function(t,e,n){let r="!DOCTYPE ";return t&&(r+=t),e?r+=" PUBLIC "+er(e):n&&(r+=" SYSTEM"),null!==n&&(r+=" "+er(n)),r},or=g((function(t,e){const n=yn.TAG_NAMES,r=yn.NAMESPACES,i=yn.ATTRS,s="text/html",o="application/xhtml+xml",a={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},c={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:r.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:r.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:r.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:r.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:r.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:r.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:r.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:r.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:r.XML},"xml:space":{prefix:"xml",name:"space",namespace:r.XML},xmlns:{prefix:"",name:"xmlns",namespace:r.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:r.XMLNS}},l=e.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},u={[n.B]:!0,[n.BIG]:!0,[n.BLOCKQUOTE]:!0,[n.BODY]:!0,[n.BR]:!0,[n.CENTER]:!0,[n.CODE]:!0,[n.DD]:!0,[n.DIV]:!0,[n.DL]:!0,[n.DT]:!0,[n.EM]:!0,[n.EMBED]:!0,[n.H1]:!0,[n.H2]:!0,[n.H3]:!0,[n.H4]:!0,[n.H5]:!0,[n.H6]:!0,[n.HEAD]:!0,[n.HR]:!0,[n.I]:!0,[n.IMG]:!0,[n.LI]:!0,[n.LISTING]:!0,[n.MENU]:!0,[n.META]:!0,[n.NOBR]:!0,[n.OL]:!0,[n.P]:!0,[n.PRE]:!0,[n.RUBY]:!0,[n.S]:!0,[n.SMALL]:!0,[n.SPAN]:!0,[n.STRONG]:!0,[n.STRIKE]:!0,[n.SUB]:!0,[n.SUP]:!0,[n.TABLE]:!0,[n.TT]:!0,[n.U]:!0,[n.UL]:!0,[n.VAR]:!0};e.causesExit=function(t){const e=t.tagName;return!!(e===n.FONT&&(null!==bn.getTokenAttr(t,i.COLOR)||null!==bn.getTokenAttr(t,i.SIZE)||null!==bn.getTokenAttr(t,i.FACE)))||u[e]},e.adjustTokenMathMLAttrs=function(t){for(let e=0;e<t.attrs.length;e++)if("definitionurl"===t.attrs[e].name){t.attrs[e].name="definitionURL";break}},e.adjustTokenSVGAttrs=function(t){for(let e=0;e<t.attrs.length;e++){const n=a[t.attrs[e].name];n&&(t.attrs[e].name=n)}},e.adjustTokenXMLAttrs=function(t){for(let e=0;e<t.attrs.length;e++){const n=c[t.attrs[e].name];n&&(t.attrs[e].prefix=n.prefix,t.attrs[e].name=n.name,t.attrs[e].namespace=n.namespace)}},e.adjustTokenSVGTagName=function(t){const e=l[t.tagName];e&&(t.tagName=e)},e.isIntegrationPoint=function(t,e,a,c){return!(c&&c!==r.HTML||!function(t,e,a){if(e===r.MATHML&&t===n.ANNOTATION_XML)for(let t=0;t<a.length;t++)if(a[t].name===i.ENCODING){const e=a[t].value.toLowerCase();return e===s||e===o}return e===r.SVG&&(t===n.FOREIGN_OBJECT||t===n.DESC||t===n.TITLE)}(t,e,a))||!(c&&c!==r.MATHML||!function(t,e){return e===r.MATHML&&(t===n.MI||t===n.MO||t===n.MN||t===n.MS||t===n.MTEXT)}(t,e))}}));const ar=yn.TAG_NAMES,cr=yn.NAMESPACES,lr=yn.ATTRS,ur={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:Vn},hr="IN_TABLE_MODE",pr={[ar.TR]:"IN_ROW_MODE",[ar.TBODY]:"IN_TABLE_BODY_MODE",[ar.THEAD]:"IN_TABLE_BODY_MODE",[ar.TFOOT]:"IN_TABLE_BODY_MODE",[ar.CAPTION]:"IN_CAPTION_MODE",[ar.COLGROUP]:"IN_COLUMN_GROUP_MODE",[ar.TABLE]:hr,[ar.BODY]:"IN_BODY_MODE",[ar.FRAMESET]:"IN_FRAMESET_MODE"},fr={[ar.CAPTION]:hr,[ar.COLGROUP]:hr,[ar.TBODY]:hr,[ar.TFOOT]:hr,[ar.THEAD]:hr,[ar.COL]:"IN_COLUMN_GROUP_MODE",[ar.TR]:"IN_TABLE_BODY_MODE",[ar.TD]:"IN_ROW_MODE",[ar.TH]:"IN_ROW_MODE"},dr={INITIAL_MODE:{[bn.CHARACTER_TOKEN]:Rr,[bn.NULL_CHARACTER_TOKEN]:Rr,[bn.WHITESPACE_CHARACTER_TOKEN]:Sr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:function(t,e){t._setDocumentType(e);const n=e.forceQuirks?yn.DOCUMENT_MODE.QUIRKS:ir(e);rr(e)||t._err(Qe);t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode="BEFORE_HTML_MODE"},[bn.START_TAG_TOKEN]:Rr,[bn.END_TAG_TOKEN]:Rr,[bn.EOF_TOKEN]:Rr},BEFORE_HTML_MODE:{[bn.CHARACTER_TOKEN]:Mr,[bn.NULL_CHARACTER_TOKEN]:Mr,[bn.WHITESPACE_CHARACTER_TOKEN]:Sr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){e.tagName===ar.HTML?(t._insertElement(e,cr.HTML),t.insertionMode="BEFORE_HEAD_MODE"):Mr(t,e)},[bn.END_TAG_TOKEN]:function(t,e){const n=e.tagName;n!==ar.HTML&&n!==ar.HEAD&&n!==ar.BODY&&n!==ar.BR||Mr(t,e)},[bn.EOF_TOKEN]:Mr},BEFORE_HEAD_MODE:{[bn.CHARACTER_TOKEN]:Lr,[bn.NULL_CHARACTER_TOKEN]:Lr,[bn.WHITESPACE_CHARACTER_TOKEN]:Sr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Cr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.HTML?zr(t,e):n===ar.HEAD?(t._insertElement(e,cr.HTML),t.headElement=t.openElements.current,t.insertionMode="IN_HEAD_MODE"):Lr(t,e)},[bn.END_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.HEAD||n===ar.BODY||n===ar.HTML||n===ar.BR?Lr(t,e):t._err(We)},[bn.EOF_TOKEN]:Lr},IN_HEAD_MODE:{[bn.CHARACTER_TOKEN]:Pr,[bn.NULL_CHARACTER_TOKEN]:Pr,[bn.WHITESPACE_CHARACTER_TOKEN]:yr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Cr,[bn.START_TAG_TOKEN]:kr,[bn.END_TAG_TOKEN]:Dr,[bn.EOF_TOKEN]:Pr},IN_HEAD_NO_SCRIPT_MODE:{[bn.CHARACTER_TOKEN]:xr,[bn.NULL_CHARACTER_TOKEN]:xr,[bn.WHITESPACE_CHARACTER_TOKEN]:yr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Cr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.HTML?zr(t,e):n===ar.BASEFONT||n===ar.BGSOUND||n===ar.HEAD||n===ar.LINK||n===ar.META||n===ar.NOFRAMES||n===ar.STYLE?kr(t,e):n===ar.NOSCRIPT?t._err(rn):xr(t,e)},[bn.END_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.NOSCRIPT?(t.openElements.pop(),t.insertionMode="IN_HEAD_MODE"):n===ar.BR?xr(t,e):t._err(We)},[bn.EOF_TOKEN]:xr},AFTER_HEAD_MODE:{[bn.CHARACTER_TOKEN]:wr,[bn.NULL_CHARACTER_TOKEN]:wr,[bn.WHITESPACE_CHARACTER_TOKEN]:yr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Cr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.HTML?zr(t,e):n===ar.BODY?(t._insertElement(e,cr.HTML),t.framesetOk=!1,t.insertionMode="IN_BODY_MODE"):n===ar.FRAMESET?(t._insertElement(e,cr.HTML),t.insertionMode="IN_FRAMESET_MODE"):n===ar.BASE||n===ar.BASEFONT||n===ar.BGSOUND||n===ar.LINK||n===ar.META||n===ar.NOFRAMES||n===ar.SCRIPT||n===ar.STYLE||n===ar.TEMPLATE||n===ar.TITLE?(t._err(en),t.openElements.push(t.headElement),kr(t,e),t.openElements.remove(t.headElement)):n===ar.HEAD?t._err(nn):wr(t,e)},[bn.END_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.BODY||n===ar.HTML||n===ar.BR?wr(t,e):n===ar.TEMPLATE?Dr(t,e):t._err(We)},[bn.EOF_TOKEN]:wr},IN_BODY_MODE:{[bn.CHARACTER_TOKEN]:Ur,[bn.NULL_CHARACTER_TOKEN]:Sr,[bn.WHITESPACE_CHARACTER_TOKEN]:Hr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:zr,[bn.END_TAG_TOKEN]:Jr,[bn.EOF_TOKEN]:ti},TEXT_MODE:{[bn.CHARACTER_TOKEN]:yr,[bn.NULL_CHARACTER_TOKEN]:yr,[bn.WHITESPACE_CHARACTER_TOKEN]:yr,[bn.COMMENT_TOKEN]:Sr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:Sr,[bn.END_TAG_TOKEN]:function(t,e){e.tagName===ar.SCRIPT&&(t.pendingScript=t.openElements.current);t.openElements.pop(),t.insertionMode=t.originalInsertionMode},[bn.EOF_TOKEN]:function(t,e){t._err(sn),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t._processToken(e)}},[hr]:{[bn.CHARACTER_TOKEN]:ei,[bn.NULL_CHARACTER_TOKEN]:ei,[bn.WHITESPACE_CHARACTER_TOKEN]:ei,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:ni,[bn.END_TAG_TOKEN]:ri,[bn.EOF_TOKEN]:ti},IN_TABLE_TEXT_MODE:{[bn.CHARACTER_TOKEN]:function(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0},[bn.NULL_CHARACTER_TOKEN]:Sr,[bn.WHITESPACE_CHARACTER_TOKEN]:function(t,e){t.pendingCharacterTokens.push(e)},[bn.COMMENT_TOKEN]:si,[bn.DOCTYPE_TOKEN]:si,[bn.START_TAG_TOKEN]:si,[bn.END_TAG_TOKEN]:si,[bn.EOF_TOKEN]:si},IN_CAPTION_MODE:{[bn.CHARACTER_TOKEN]:Ur,[bn.NULL_CHARACTER_TOKEN]:Sr,[bn.WHITESPACE_CHARACTER_TOKEN]:Hr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.CAPTION||n===ar.COL||n===ar.COLGROUP||n===ar.TBODY||n===ar.TD||n===ar.TFOOT||n===ar.TH||n===ar.THEAD||n===ar.TR?t.openElements.hasInTableScope(ar.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(ar.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=hr,t._processToken(e)):zr(t,e)},[bn.END_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.CAPTION||n===ar.TABLE?t.openElements.hasInTableScope(ar.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(ar.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=hr,n===ar.TABLE&&t._processToken(e)):n!==ar.BODY&&n!==ar.COL&&n!==ar.COLGROUP&&n!==ar.HTML&&n!==ar.TBODY&&n!==ar.TD&&n!==ar.TFOOT&&n!==ar.TH&&n!==ar.THEAD&&n!==ar.TR&&Jr(t,e)},[bn.EOF_TOKEN]:ti},IN_COLUMN_GROUP_MODE:{[bn.CHARACTER_TOKEN]:oi,[bn.NULL_CHARACTER_TOKEN]:oi,[bn.WHITESPACE_CHARACTER_TOKEN]:yr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.HTML?zr(t,e):n===ar.COL?(t._appendElement(e,cr.HTML),e.ackSelfClosing=!0):n===ar.TEMPLATE?kr(t,e):oi(t,e)},[bn.END_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.COLGROUP?t.openElements.currentTagName===ar.COLGROUP&&(t.openElements.pop(),t.insertionMode=hr):n===ar.TEMPLATE?Dr(t,e):n!==ar.COL&&oi(t,e)},[bn.EOF_TOKEN]:ti},IN_TABLE_BODY_MODE:{[bn.CHARACTER_TOKEN]:ei,[bn.NULL_CHARACTER_TOKEN]:ei,[bn.WHITESPACE_CHARACTER_TOKEN]:ei,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.TR?(t.openElements.clearBackToTableBodyContext(),t._insertElement(e,cr.HTML),t.insertionMode="IN_ROW_MODE"):n===ar.TH||n===ar.TD?(t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(ar.TR),t.insertionMode="IN_ROW_MODE",t._processToken(e)):n===ar.CAPTION||n===ar.COL||n===ar.COLGROUP||n===ar.TBODY||n===ar.TFOOT||n===ar.THEAD?t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=hr,t._processToken(e)):ni(t,e)},[bn.END_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.TBODY||n===ar.TFOOT||n===ar.THEAD?t.openElements.hasInTableScope(n)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=hr):n===ar.TABLE?t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=hr,t._processToken(e)):(n!==ar.BODY&&n!==ar.CAPTION&&n!==ar.COL&&n!==ar.COLGROUP||n!==ar.HTML&&n!==ar.TD&&n!==ar.TH&&n!==ar.TR)&&ri(t,e)},[bn.EOF_TOKEN]:ti},IN_ROW_MODE:{[bn.CHARACTER_TOKEN]:ei,[bn.NULL_CHARACTER_TOKEN]:ei,[bn.WHITESPACE_CHARACTER_TOKEN]:ei,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.TH||n===ar.TD?(t.openElements.clearBackToTableRowContext(),t._insertElement(e,cr.HTML),t.insertionMode="IN_CELL_MODE",t.activeFormattingElements.insertMarker()):n===ar.CAPTION||n===ar.COL||n===ar.COLGROUP||n===ar.TBODY||n===ar.TFOOT||n===ar.THEAD||n===ar.TR?t.openElements.hasInTableScope(ar.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode="IN_TABLE_BODY_MODE",t._processToken(e)):ni(t,e)},[bn.END_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.TR?t.openElements.hasInTableScope(ar.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode="IN_TABLE_BODY_MODE"):n===ar.TABLE?t.openElements.hasInTableScope(ar.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode="IN_TABLE_BODY_MODE",t._processToken(e)):n===ar.TBODY||n===ar.TFOOT||n===ar.THEAD?(t.openElements.hasInTableScope(n)||t.openElements.hasInTableScope(ar.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode="IN_TABLE_BODY_MODE",t._processToken(e)):(n!==ar.BODY&&n!==ar.CAPTION&&n!==ar.COL&&n!==ar.COLGROUP||n!==ar.HTML&&n!==ar.TD&&n!==ar.TH)&&ri(t,e)},[bn.EOF_TOKEN]:ti},IN_CELL_MODE:{[bn.CHARACTER_TOKEN]:Ur,[bn.NULL_CHARACTER_TOKEN]:Sr,[bn.WHITESPACE_CHARACTER_TOKEN]:Hr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.CAPTION||n===ar.COL||n===ar.COLGROUP||n===ar.TBODY||n===ar.TD||n===ar.TFOOT||n===ar.TH||n===ar.THEAD||n===ar.TR?(t.openElements.hasInTableScope(ar.TD)||t.openElements.hasInTableScope(ar.TH))&&(t._closeTableCell(),t._processToken(e)):zr(t,e)},[bn.END_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.TD||n===ar.TH?t.openElements.hasInTableScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker(),t.insertionMode="IN_ROW_MODE"):n===ar.TABLE||n===ar.TBODY||n===ar.TFOOT||n===ar.THEAD||n===ar.TR?t.openElements.hasInTableScope(n)&&(t._closeTableCell(),t._processToken(e)):n!==ar.BODY&&n!==ar.CAPTION&&n!==ar.COL&&n!==ar.COLGROUP&&n!==ar.HTML&&Jr(t,e)},[bn.EOF_TOKEN]:ti},IN_SELECT_MODE:{[bn.CHARACTER_TOKEN]:yr,[bn.NULL_CHARACTER_TOKEN]:Sr,[bn.WHITESPACE_CHARACTER_TOKEN]:yr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:ai,[bn.END_TAG_TOKEN]:ci,[bn.EOF_TOKEN]:ti},IN_SELECT_IN_TABLE_MODE:{[bn.CHARACTER_TOKEN]:yr,[bn.NULL_CHARACTER_TOKEN]:Sr,[bn.WHITESPACE_CHARACTER_TOKEN]:yr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.CAPTION||n===ar.TABLE||n===ar.TBODY||n===ar.TFOOT||n===ar.THEAD||n===ar.TR||n===ar.TD||n===ar.TH?(t.openElements.popUntilTagNamePopped(ar.SELECT),t._resetInsertionMode(),t._processToken(e)):ai(t,e)},[bn.END_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.CAPTION||n===ar.TABLE||n===ar.TBODY||n===ar.TFOOT||n===ar.THEAD||n===ar.TR||n===ar.TD||n===ar.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(ar.SELECT),t._resetInsertionMode(),t._processToken(e)):ci(t,e)},[bn.EOF_TOKEN]:ti},IN_TEMPLATE_MODE:{[bn.CHARACTER_TOKEN]:Ur,[bn.NULL_CHARACTER_TOKEN]:Sr,[bn.WHITESPACE_CHARACTER_TOKEN]:Hr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;if(n===ar.BASE||n===ar.BASEFONT||n===ar.BGSOUND||n===ar.LINK||n===ar.META||n===ar.NOFRAMES||n===ar.SCRIPT||n===ar.STYLE||n===ar.TEMPLATE||n===ar.TITLE)kr(t,e);else{const r=fr[n]||"IN_BODY_MODE";t._popTmplInsertionMode(),t._pushTmplInsertionMode(r),t.insertionMode=r,t._processToken(e)}},[bn.END_TAG_TOKEN]:function(t,e){e.tagName===ar.TEMPLATE&&Dr(t,e)},[bn.EOF_TOKEN]:li},AFTER_BODY_MODE:{[bn.CHARACTER_TOKEN]:ui,[bn.NULL_CHARACTER_TOKEN]:ui,[bn.WHITESPACE_CHARACTER_TOKEN]:Hr,[bn.COMMENT_TOKEN]:function(t,e){t._appendCommentNode(e,t.openElements.items[0])},[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){e.tagName===ar.HTML?zr(t,e):ui(t,e)},[bn.END_TAG_TOKEN]:function(t,e){e.tagName===ar.HTML?t.fragmentContext||(t.insertionMode="AFTER_AFTER_BODY_MODE"):ui(t,e)},[bn.EOF_TOKEN]:Ir},IN_FRAMESET_MODE:{[bn.CHARACTER_TOKEN]:Sr,[bn.NULL_CHARACTER_TOKEN]:Sr,[bn.WHITESPACE_CHARACTER_TOKEN]:yr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.HTML?zr(t,e):n===ar.FRAMESET?t._insertElement(e,cr.HTML):n===ar.FRAME?(t._appendElement(e,cr.HTML),e.ackSelfClosing=!0):n===ar.NOFRAMES&&kr(t,e)},[bn.END_TAG_TOKEN]:function(t,e){e.tagName!==ar.FRAMESET||t.openElements.isRootHtmlElementCurrent()||(t.openElements.pop(),t.fragmentContext||t.openElements.currentTagName===ar.FRAMESET||(t.insertionMode="AFTER_FRAMESET_MODE"))},[bn.EOF_TOKEN]:Ir},AFTER_FRAMESET_MODE:{[bn.CHARACTER_TOKEN]:Sr,[bn.NULL_CHARACTER_TOKEN]:Sr,[bn.WHITESPACE_CHARACTER_TOKEN]:yr,[bn.COMMENT_TOKEN]:vr,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.HTML?zr(t,e):n===ar.NOFRAMES&&kr(t,e)},[bn.END_TAG_TOKEN]:function(t,e){e.tagName===ar.HTML&&(t.insertionMode="AFTER_AFTER_FRAMESET_MODE")},[bn.EOF_TOKEN]:Ir},AFTER_AFTER_BODY_MODE:{[bn.CHARACTER_TOKEN]:hi,[bn.NULL_CHARACTER_TOKEN]:hi,[bn.WHITESPACE_CHARACTER_TOKEN]:Hr,[bn.COMMENT_TOKEN]:br,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){e.tagName===ar.HTML?zr(t,e):hi(t,e)},[bn.END_TAG_TOKEN]:hi,[bn.EOF_TOKEN]:Ir},AFTER_AFTER_FRAMESET_MODE:{[bn.CHARACTER_TOKEN]:Sr,[bn.NULL_CHARACTER_TOKEN]:Sr,[bn.WHITESPACE_CHARACTER_TOKEN]:Hr,[bn.COMMENT_TOKEN]:br,[bn.DOCTYPE_TOKEN]:Sr,[bn.START_TAG_TOKEN]:function(t,e){const n=e.tagName;n===ar.HTML?zr(t,e):n===ar.NOFRAMES&&kr(t,e)},[bn.END_TAG_TOKEN]:Sr,[bn.EOF_TOKEN]:Ir}};var Tr=class{constructor(t){this.options=Qn(ur,t),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&Hn.install(this,jn),this.options.onParseError&&Hn.install(this,Yn,{onParseError:this.options.onParseError})}parse(t){const e=this.treeAdapter.createDocument();return this._bootstrap(e,null),this.tokenizer.write(t,!0),this._runParsingLoop(null),e}parseFragment(t,e){e||(e=this.treeAdapter.createElement(ar.TEMPLATE,cr.HTML,[]));const n=this.treeAdapter.createElement("documentmock",cr.HTML,[]);this._bootstrap(n,e),this.treeAdapter.getTagName(e)===ar.TEMPLATE&&this._pushTmplInsertionMode("IN_TEMPLATE_MODE"),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(t,!0),this._runParsingLoop(null);const r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i}_bootstrap(t,e){this.tokenizer=new bn(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=t,this.fragmentContext=e,this.headElement=null,this.formElement=null,this.openElements=new Dn(this.document,this.treeAdapter),this.activeFormattingElements=new xn(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(t){for(;!this.stopped;){this._setupTokenizerCDATAMode();const e=this.tokenizer.getNextToken();if(e.type===bn.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.type===bn.WHITESPACE_CHARACTER_TOKEN&&"\n"===e.chars[0])){if(1===e.chars.length)continue;e.chars=e.chars.substr(1)}if(this._processInputToken(e),t&&this.pendingScript)break}}runParsingLoopForCurrentChunk(t,e){if(this._runParsingLoop(e),e&&this.pendingScript){const t=this.pendingScript;return this.pendingScript=null,void e(t)}t&&t()}_setupTokenizerCDATAMode(){const t=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=t&&t!==this.document&&this.treeAdapter.getNamespaceURI(t)!==cr.HTML&&!this._isIntegrationPoint(t)}_switchToTextParsing(t,e){this._insertElement(t,cr.HTML),this.tokenizer.state=e,this.originalInsertionMode=this.insertionMode,this.insertionMode="TEXT_MODE"}switchToPlaintextParsing(){this.insertionMode="TEXT_MODE",this.originalInsertionMode="IN_BODY_MODE",this.tokenizer.state=bn.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;do{if(this.treeAdapter.getTagName(t)===ar.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===cr.HTML){const t=this.treeAdapter.getTagName(this.fragmentContext);t===ar.TITLE||t===ar.TEXTAREA?this.tokenizer.state=bn.MODE.RCDATA:t===ar.STYLE||t===ar.XMP||t===ar.IFRAME||t===ar.NOEMBED||t===ar.NOFRAMES||t===ar.NOSCRIPT?this.tokenizer.state=bn.MODE.RAWTEXT:t===ar.SCRIPT?this.tokenizer.state=bn.MODE.SCRIPT_DATA:t===ar.PLAINTEXT&&(this.tokenizer.state=bn.MODE.PLAINTEXT)}}_setDocumentType(t){const e=t.name||"",n=t.publicId||"",r=t.systemId||"";this.treeAdapter.setDocumentType(this.document,e,n,r)}_attachElementToTree(t){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const e=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(e,t)}}_appendElement(t,e){const n=this.treeAdapter.createElement(t.tagName,e,t.attrs);this._attachElementToTree(n)}_insertElement(t,e){const n=this.treeAdapter.createElement(t.tagName,e,t.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(t){const e=this.treeAdapter.createElement(t,cr.HTML,[]);this._attachElementToTree(e),this.openElements.push(e)}_insertTemplate(t){const e=this.treeAdapter.createElement(t.tagName,cr.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(e,n),this._attachElementToTree(e),this.openElements.push(e)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(ar.HTML,cr.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t)}_appendCommentNode(t,e){const n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(e,n)}_insertCharacters(t){if(this._shouldFosterParentOnInsertion())this._fosterParentText(t.chars);else{const e=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(e,t.chars)}}_adoptNodes(t,e){for(let n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(e,n)}_shouldProcessTokenInForeignContent(t){const e=this._getAdjustedCurrentElement();if(!e||e===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(e);if(n===cr.HTML)return!1;if(this.treeAdapter.getTagName(e)===ar.ANNOTATION_XML&&n===cr.MATHML&&t.type===bn.START_TAG_TOKEN&&t.tagName===ar.SVG)return!1;const r=t.type===bn.CHARACTER_TOKEN||t.type===bn.NULL_CHARACTER_TOKEN||t.type===bn.WHITESPACE_CHARACTER_TOKEN;return(!(t.type===bn.START_TAG_TOKEN&&t.tagName!==ar.MGLYPH&&t.tagName!==ar.MALIGNMARK)&&!r||!this._isIntegrationPoint(e,cr.MATHML))&&((t.type!==bn.START_TAG_TOKEN&&!r||!this._isIntegrationPoint(e,cr.HTML))&&t.type!==bn.EOF_TOKEN)}_processToken(t){dr[this.insertionMode][t.type](this,t)}_processTokenInBodyMode(t){dr.IN_BODY_MODE[t.type](this,t)}_processTokenInForeignContent(t){t.type===bn.CHARACTER_TOKEN?function(t,e){t._insertCharacters(e),t.framesetOk=!1}(this,t):t.type===bn.NULL_CHARACTER_TOKEN?function(t,e){e.chars=$t,t._insertCharacters(e)}(this,t):t.type===bn.WHITESPACE_CHARACTER_TOKEN?yr(this,t):t.type===bn.COMMENT_TOKEN?vr(this,t):t.type===bn.START_TAG_TOKEN?function(t,e){if(or.causesExit(e)&&!t.fragmentContext){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==cr.HTML&&!t._isIntegrationPoint(t.openElements.current);)t.openElements.pop();t._processToken(e)}else{const n=t._getAdjustedCurrentElement(),r=t.treeAdapter.getNamespaceURI(n);r===cr.MATHML?or.adjustTokenMathMLAttrs(e):r===cr.SVG&&(or.adjustTokenSVGTagName(e),or.adjustTokenSVGAttrs(e)),or.adjustTokenXMLAttrs(e),e.selfClosing?t._appendElement(e,r):t._insertElement(e,r),e.ackSelfClosing=!0}}(this,t):t.type===bn.END_TAG_TOKEN&&function(t,e){for(let n=t.openElements.stackTop;n>0;n--){const r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===cr.HTML){t._processToken(e);break}if(t.treeAdapter.getTagName(r).toLowerCase()===e.tagName){t.openElements.popUntilElementPopped(r);break}}}(this,t)}_processInputToken(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t),t.type===bn.START_TAG_TOKEN&&t.selfClosing&&!t.ackSelfClosing&&this._err(ne)}_isIntegrationPoint(t,e){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return or.isIntegrationPoint(n,r,i,e)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.length;if(t){let e=t,n=null;do{if(e--,n=this.activeFormattingElements.entries[e],n.type===xn.MARKER_ENTRY||this.openElements.contains(n.element)){e++;break}}while(e>0);for(let r=e;r<t;r++)n=this.activeFormattingElements.entries[r],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode="IN_ROW_MODE"}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(ar.P),this.openElements.popUntilTagNamePopped(ar.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop,e=!1;t>=0;t--){let n=this.openElements.items[t];0===t&&(e=!0,this.fragmentContext&&(n=this.fragmentContext));const r=this.treeAdapter.getTagName(n),i=pr[r];if(i){this.insertionMode=i;break}if(!(e||r!==ar.TD&&r!==ar.TH)){this.insertionMode="IN_CELL_MODE";break}if(!e&&r===ar.HEAD){this.insertionMode="IN_HEAD_MODE";break}if(r===ar.SELECT){this._resetInsertionModeForSelect(t);break}if(r===ar.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===ar.HTML){this.insertionMode=this.headElement?"AFTER_HEAD_MODE":"BEFORE_HEAD_MODE";break}if(e){this.insertionMode="IN_BODY_MODE";break}}}_resetInsertionModeForSelect(t){if(t>0)for(let e=t-1;e>0;e--){const t=this.openElements.items[e],n=this.treeAdapter.getTagName(t);if(n===ar.TEMPLATE)break;if(n===ar.TABLE)return void(this.insertionMode="IN_SELECT_IN_TABLE_MODE")}this.insertionMode="IN_SELECT_MODE"}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const e=this.treeAdapter.getTagName(t);return e===ar.TABLE||e===ar.TBODY||e===ar.TFOOT||e===ar.THEAD||e===ar.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let e=this.openElements.stackTop;e>=0;e--){const n=this.openElements.items[e],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===ar.TEMPLATE&&i===cr.HTML){t.parent=this.treeAdapter.getTemplateContent(n);break}if(r===ar.TABLE){t.parent=this.treeAdapter.getParentNode(n),t.parent?t.beforeElement=n:t.parent=this.openElements.items[e-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const e=this._findFosterParentingLocation();e.beforeElement?this.treeAdapter.insertBefore(e.parent,t,e.beforeElement):this.treeAdapter.appendChild(e.parent,t)}_fosterParentText(t){const e=this._findFosterParentingLocation();e.beforeElement?this.treeAdapter.insertTextBefore(e.parent,t,e.beforeElement):this.treeAdapter.insertText(e.parent,t)}_isSpecialElement(t){const e=this.treeAdapter.getTagName(t),n=this.treeAdapter.getNamespaceURI(t);return yn.SPECIAL_ELEMENTS[n][e]}};function mr(t,e){let n=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(e.tagName)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):Zr(t,e),n}function Er(t,e){let n=null;for(let r=t.openElements.stackTop;r>=0;r--){const i=t.openElements.items[r];if(i===e.element)break;t._isSpecialElement(i)&&(n=i)}return n||(t.openElements.popUntilElementPopped(e.element),t.activeFormattingElements.removeEntry(e)),n}function _r(t,e,n){let r=e,i=t.openElements.getCommonAncestor(e);for(let s=0,o=i;o!==n;s++,o=i){i=t.openElements.getCommonAncestor(o);const n=t.activeFormattingElements.getElementEntry(o),a=n&&s>=3;!n||a?(a&&t.activeFormattingElements.removeEntry(n),t.openElements.remove(o)):(o=gr(t,n),r===e&&(t.activeFormattingElements.bookmark=n),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(o,r),r=o)}return r}function gr(t,e){const n=t.treeAdapter.getNamespaceURI(e.element),r=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs);return t.openElements.replace(e.element,r),e.element=r,r}function Ar(t,e,n){if(t._isElementCausesFosterParenting(e))t._fosterParentElement(n);else{const r=t.treeAdapter.getTagName(e),i=t.treeAdapter.getNamespaceURI(e);r===ar.TEMPLATE&&i===cr.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n)}}function Nr(t,e,n){const r=t.treeAdapter.getNamespaceURI(n.element),i=n.token,s=t.treeAdapter.createElement(i.tagName,r,i.attrs);t._adoptNodes(e,s),t.treeAdapter.appendChild(e,s),t.activeFormattingElements.insertElementAfterBookmark(s,n.token),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,s)}function Or(t,e){let n;for(let r=0;r<8&&(n=mr(t,e),n);r++){const e=Er(t,n);if(!e)break;t.activeFormattingElements.bookmark=n;const r=_r(t,e,n.element),i=t.openElements.getCommonAncestor(n.element);t.treeAdapter.detachNode(r),Ar(t,i,r),Nr(t,e,n)}}function Sr(){}function Cr(t){t._err(Xe)}function vr(t,e){t._appendCommentNode(e,t.openElements.currentTmplContent||t.openElements.current)}function br(t,e){t._appendCommentNode(e,t.document)}function yr(t,e){t._insertCharacters(e)}function Ir(t){t.stopped=!0}function Rr(t,e){t._err(ze,{beforeToken:!0}),t.treeAdapter.setDocumentMode(t.document,yn.DOCUMENT_MODE.QUIRKS),t.insertionMode="BEFORE_HTML_MODE",t._processToken(e)}function Mr(t,e){t._insertFakeRootElement(),t.insertionMode="BEFORE_HEAD_MODE",t._processToken(e)}function Lr(t,e){t._insertFakeElement(ar.HEAD),t.headElement=t.openElements.current,t.insertionMode="IN_HEAD_MODE",t._processToken(e)}function kr(t,e){const n=e.tagName;n===ar.HTML?zr(t,e):n===ar.BASE||n===ar.BASEFONT||n===ar.BGSOUND||n===ar.LINK||n===ar.META?(t._appendElement(e,cr.HTML),e.ackSelfClosing=!0):n===ar.TITLE?t._switchToTextParsing(e,bn.MODE.RCDATA):n===ar.NOSCRIPT?t.options.scriptingEnabled?t._switchToTextParsing(e,bn.MODE.RAWTEXT):(t._insertElement(e,cr.HTML),t.insertionMode="IN_HEAD_NO_SCRIPT_MODE"):n===ar.NOFRAMES||n===ar.STYLE?t._switchToTextParsing(e,bn.MODE.RAWTEXT):n===ar.SCRIPT?t._switchToTextParsing(e,bn.MODE.SCRIPT_DATA):n===ar.TEMPLATE?(t._insertTemplate(e,cr.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode="IN_TEMPLATE_MODE",t._pushTmplInsertionMode("IN_TEMPLATE_MODE")):n===ar.HEAD?t._err(nn):Pr(t,e)}function Dr(t,e){const n=e.tagName;n===ar.HEAD?(t.openElements.pop(),t.insertionMode="AFTER_HEAD_MODE"):n===ar.BODY||n===ar.BR||n===ar.HTML?Pr(t,e):n===ar.TEMPLATE&&t.openElements.tmplCount>0?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagName!==ar.TEMPLATE&&t._err(Ze),t.openElements.popUntilTagNamePopped(ar.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t._popTmplInsertionMode(),t._resetInsertionMode()):t._err(We)}function Pr(t,e){t.openElements.pop(),t.insertionMode="AFTER_HEAD_MODE",t._processToken(e)}function xr(t,e){const n=e.type===bn.EOF_TOKEN?tn:Je;t._err(n),t.openElements.pop(),t.insertionMode="IN_HEAD_MODE",t._processToken(e)}function wr(t,e){t._insertFakeElement(ar.BODY),t.insertionMode="IN_BODY_MODE",t._processToken(e)}function Hr(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function Ur(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function Fr(t,e){t.openElements.hasInButtonScope(ar.P)&&t._closePElement(),t._insertElement(e,cr.HTML)}function Br(t,e){t.openElements.hasInButtonScope(ar.P)&&t._closePElement(),t._insertElement(e,cr.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function Gr(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,cr.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function jr(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,cr.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function qr(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,cr.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function Kr(t,e){t._appendElement(e,cr.HTML),e.ackSelfClosing=!0}function $r(t,e){t._switchToTextParsing(e,bn.MODE.RAWTEXT)}function Yr(t,e){t.openElements.currentTagName===ar.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,cr.HTML)}function Vr(t,e){t.openElements.hasInScope(ar.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,cr.HTML)}function Qr(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,cr.HTML)}function zr(t,e){const n=e.tagName;switch(n.length){case 1:n===ar.I||n===ar.S||n===ar.B||n===ar.U?Gr(t,e):n===ar.P?Fr(t,e):n===ar.A?function(t,e){const n=t.activeFormattingElements.getElementEntryInScopeWithTagName(ar.A);n&&(Or(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,cr.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e):Qr(t,e);break;case 2:n===ar.DL||n===ar.OL||n===ar.UL?Fr(t,e):n===ar.H1||n===ar.H2||n===ar.H3||n===ar.H4||n===ar.H5||n===ar.H6?function(t,e){t.openElements.hasInButtonScope(ar.P)&&t._closePElement();const n=t.openElements.currentTagName;n!==ar.H1&&n!==ar.H2&&n!==ar.H3&&n!==ar.H4&&n!==ar.H5&&n!==ar.H6||t.openElements.pop(),t._insertElement(e,cr.HTML)}(t,e):n===ar.LI||n===ar.DD||n===ar.DT?function(t,e){t.framesetOk=!1;const n=e.tagName;for(let e=t.openElements.stackTop;e>=0;e--){const r=t.openElements.items[e],i=t.treeAdapter.getTagName(r);let s=null;if(n===ar.LI&&i===ar.LI?s=ar.LI:n!==ar.DD&&n!==ar.DT||i!==ar.DD&&i!==ar.DT||(s=i),s){t.openElements.generateImpliedEndTagsWithExclusion(s),t.openElements.popUntilTagNamePopped(s);break}if(i!==ar.ADDRESS&&i!==ar.DIV&&i!==ar.P&&t._isSpecialElement(r))break}t.openElements.hasInButtonScope(ar.P)&&t._closePElement(),t._insertElement(e,cr.HTML)}(t,e):n===ar.EM||n===ar.TT?Gr(t,e):n===ar.BR?qr(t,e):n===ar.HR?function(t,e){t.openElements.hasInButtonScope(ar.P)&&t._closePElement(),t._appendElement(e,cr.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}(t,e):n===ar.RB?Vr(t,e):n===ar.RT||n===ar.RP?function(t,e){t.openElements.hasInScope(ar.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(ar.RTC),t._insertElement(e,cr.HTML)}(t,e):n!==ar.TH&&n!==ar.TD&&n!==ar.TR&&Qr(t,e);break;case 3:n===ar.DIV||n===ar.DIR||n===ar.NAV?Fr(t,e):n===ar.PRE?Br(t,e):n===ar.BIG?Gr(t,e):n===ar.IMG||n===ar.WBR?qr(t,e):n===ar.XMP?function(t,e){t.openElements.hasInButtonScope(ar.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,bn.MODE.RAWTEXT)}(t,e):n===ar.SVG?function(t,e){t._reconstructActiveFormattingElements(),or.adjustTokenSVGAttrs(e),or.adjustTokenXMLAttrs(e),e.selfClosing?t._appendElement(e,cr.SVG):t._insertElement(e,cr.SVG),e.ackSelfClosing=!0}(t,e):n===ar.RTC?Vr(t,e):n!==ar.COL&&Qr(t,e);break;case 4:n===ar.HTML?function(t,e){0===t.openElements.tmplCount&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}(t,e):n===ar.BASE||n===ar.LINK||n===ar.META?kr(t,e):n===ar.BODY?function(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();n&&0===t.openElements.tmplCount&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}(t,e):n===ar.MAIN||n===ar.MENU?Fr(t,e):n===ar.FORM?function(t,e){const n=t.openElements.tmplCount>0;t.formElement&&!n||(t.openElements.hasInButtonScope(ar.P)&&t._closePElement(),t._insertElement(e,cr.HTML),n||(t.formElement=t.openElements.current))}(t,e):n===ar.CODE||n===ar.FONT?Gr(t,e):n===ar.NOBR?function(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(ar.NOBR)&&(Or(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,cr.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e):n===ar.AREA?qr(t,e):n===ar.MATH?function(t,e){t._reconstructActiveFormattingElements(),or.adjustTokenMathMLAttrs(e),or.adjustTokenXMLAttrs(e),e.selfClosing?t._appendElement(e,cr.MATHML):t._insertElement(e,cr.MATHML),e.ackSelfClosing=!0}(t,e):n===ar.MENU?function(t,e){t.openElements.hasInButtonScope(ar.P)&&t._closePElement(),t._insertElement(e,cr.HTML)}(t,e):n!==ar.HEAD&&Qr(t,e);break;case 5:n===ar.STYLE||n===ar.TITLE?kr(t,e):n===ar.ASIDE?Fr(t,e):n===ar.SMALL?Gr(t,e):n===ar.TABLE?function(t,e){t.treeAdapter.getDocumentMode(t.document)!==yn.DOCUMENT_MODE.QUIRKS&&t.openElements.hasInButtonScope(ar.P)&&t._closePElement(),t._insertElement(e,cr.HTML),t.framesetOk=!1,t.insertionMode=hr}(t,e):n===ar.EMBED?qr(t,e):n===ar.INPUT?function(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,cr.HTML);const n=bn.getTokenAttr(e,lr.TYPE);n&&"hidden"===n.toLowerCase()||(t.framesetOk=!1),e.ackSelfClosing=!0}(t,e):n===ar.PARAM||n===ar.TRACK?Kr(t,e):n===ar.IMAGE?function(t,e){e.tagName=ar.IMG,qr(t,e)}(t,e):n!==ar.FRAME&&n!==ar.TBODY&&n!==ar.TFOOT&&n!==ar.THEAD&&Qr(t,e);break;case 6:n===ar.SCRIPT?kr(t,e):n===ar.CENTER||n===ar.FIGURE||n===ar.FOOTER||n===ar.HEADER||n===ar.HGROUP||n===ar.DIALOG?Fr(t,e):n===ar.BUTTON?function(t,e){t.openElements.hasInScope(ar.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(ar.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,cr.HTML),t.framesetOk=!1}(t,e):n===ar.STRIKE||n===ar.STRONG?Gr(t,e):n===ar.APPLET||n===ar.OBJECT?jr(t,e):n===ar.KEYGEN?qr(t,e):n===ar.SOURCE?Kr(t,e):n===ar.IFRAME?function(t,e){t.framesetOk=!1,t._switchToTextParsing(e,bn.MODE.RAWTEXT)}(t,e):n===ar.SELECT?function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,cr.HTML),t.framesetOk=!1,t.insertionMode===hr||"IN_CAPTION_MODE"===t.insertionMode||"IN_TABLE_BODY_MODE"===t.insertionMode||"IN_ROW_MODE"===t.insertionMode||"IN_CELL_MODE"===t.insertionMode?t.insertionMode="IN_SELECT_IN_TABLE_MODE":t.insertionMode="IN_SELECT_MODE"}(t,e):n===ar.OPTION?Yr(t,e):Qr(t,e);break;case 7:n===ar.BGSOUND?kr(t,e):n===ar.DETAILS||n===ar.ADDRESS||n===ar.ARTICLE||n===ar.SECTION||n===ar.SUMMARY?Fr(t,e):n===ar.LISTING?Br(t,e):n===ar.MARQUEE?jr(t,e):n===ar.NOEMBED?$r(t,e):n!==ar.CAPTION&&Qr(t,e);break;case 8:n===ar.BASEFONT?kr(t,e):n===ar.FRAMESET?function(t,e){const n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,cr.HTML),t.insertionMode="IN_FRAMESET_MODE")}(t,e):n===ar.FIELDSET?Fr(t,e):n===ar.TEXTAREA?function(t,e){t._insertElement(e,cr.HTML),t.skipNextNewLine=!0,t.tokenizer.state=bn.MODE.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode="TEXT_MODE"}(t,e):n===ar.TEMPLATE?kr(t,e):n===ar.NOSCRIPT?t.options.scriptingEnabled?$r(t,e):Qr(t,e):n===ar.OPTGROUP?Yr(t,e):n!==ar.COLGROUP&&Qr(t,e);break;case 9:n===ar.PLAINTEXT?function(t,e){t.openElements.hasInButtonScope(ar.P)&&t._closePElement(),t._insertElement(e,cr.HTML),t.tokenizer.state=bn.MODE.PLAINTEXT}(t,e):Qr(t,e);break;case 10:n===ar.BLOCKQUOTE||n===ar.FIGCAPTION?Fr(t,e):Qr(t,e);break;default:Qr(t,e)}}function Xr(t,e){const n=e.tagName;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n))}function Wr(t,e){const n=e.tagName;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker())}function Zr(t,e){const n=e.tagName;for(let e=t.openElements.stackTop;e>0;e--){const r=t.openElements.items[e];if(t.treeAdapter.getTagName(r)===n){t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilElementPopped(r);break}if(t._isSpecialElement(r))break}}function Jr(t,e){const n=e.tagName;switch(n.length){case 1:n===ar.A||n===ar.B||n===ar.I||n===ar.S||n===ar.U?Or(t,e):n===ar.P?function(t){t.openElements.hasInButtonScope(ar.P)||t._insertFakeElement(ar.P),t._closePElement()}(t):Zr(t,e);break;case 2:n===ar.DL||n===ar.UL||n===ar.OL?Xr(t,e):n===ar.LI?function(t){t.openElements.hasInListItemScope(ar.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(ar.LI),t.openElements.popUntilTagNamePopped(ar.LI))}(t):n===ar.DD||n===ar.DT?function(t,e){const n=e.tagName;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilTagNamePopped(n))}(t,e):n===ar.H1||n===ar.H2||n===ar.H3||n===ar.H4||n===ar.H5||n===ar.H6?function(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}(t):n===ar.BR?function(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(ar.BR),t.openElements.pop(),t.framesetOk=!1}(t):n===ar.EM||n===ar.TT?Or(t,e):Zr(t,e);break;case 3:n===ar.BIG?Or(t,e):n===ar.DIR||n===ar.DIV||n===ar.NAV||n===ar.PRE?Xr(t,e):Zr(t,e);break;case 4:n===ar.BODY?function(t){t.openElements.hasInScope(ar.BODY)&&(t.insertionMode="AFTER_BODY_MODE")}(t):n===ar.HTML?function(t,e){t.openElements.hasInScope(ar.BODY)&&(t.insertionMode="AFTER_BODY_MODE",t._processToken(e))}(t,e):n===ar.FORM?function(t){const e=t.openElements.tmplCount>0,n=t.formElement;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(ar.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(ar.FORM):t.openElements.remove(n))}(t):n===ar.CODE||n===ar.FONT||n===ar.NOBR?Or(t,e):n===ar.MAIN||n===ar.MENU?Xr(t,e):Zr(t,e);break;case 5:n===ar.ASIDE?Xr(t,e):n===ar.SMALL?Or(t,e):Zr(t,e);break;case 6:n===ar.CENTER||n===ar.FIGURE||n===ar.FOOTER||n===ar.HEADER||n===ar.HGROUP||n===ar.DIALOG?Xr(t,e):n===ar.APPLET||n===ar.OBJECT?Wr(t,e):n===ar.STRIKE||n===ar.STRONG?Or(t,e):Zr(t,e);break;case 7:n===ar.ADDRESS||n===ar.ARTICLE||n===ar.DETAILS||n===ar.SECTION||n===ar.SUMMARY||n===ar.LISTING?Xr(t,e):n===ar.MARQUEE?Wr(t,e):Zr(t,e);break;case 8:n===ar.FIELDSET?Xr(t,e):n===ar.TEMPLATE?Dr(t,e):Zr(t,e);break;case 10:n===ar.BLOCKQUOTE||n===ar.FIGCAPTION?Xr(t,e):Zr(t,e);break;default:Zr(t,e)}}function ti(t,e){t.tmplInsertionModeStackTop>-1?li(t,e):t.stopped=!0}function ei(t,e){const n=t.openElements.currentTagName;n===ar.TABLE||n===ar.TBODY||n===ar.TFOOT||n===ar.THEAD||n===ar.TR?(t.pendingCharacterTokens=[],t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode="IN_TABLE_TEXT_MODE",t._processToken(e)):ii(t,e)}function ni(t,e){const n=e.tagName;switch(n.length){case 2:n===ar.TD||n===ar.TH||n===ar.TR?function(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(ar.TBODY),t.insertionMode="IN_TABLE_BODY_MODE",t._processToken(e)}(t,e):ii(t,e);break;case 3:n===ar.COL?function(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(ar.COLGROUP),t.insertionMode="IN_COLUMN_GROUP_MODE",t._processToken(e)}(t,e):ii(t,e);break;case 4:n===ar.FORM?function(t,e){t.formElement||0!==t.openElements.tmplCount||(t._insertElement(e,cr.HTML),t.formElement=t.openElements.current,t.openElements.pop())}(t,e):ii(t,e);break;case 5:n===ar.TABLE?function(t,e){t.openElements.hasInTableScope(ar.TABLE)&&(t.openElements.popUntilTagNamePopped(ar.TABLE),t._resetInsertionMode(),t._processToken(e))}(t,e):n===ar.STYLE?kr(t,e):n===ar.TBODY||n===ar.TFOOT||n===ar.THEAD?function(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,cr.HTML),t.insertionMode="IN_TABLE_BODY_MODE"}(t,e):n===ar.INPUT?function(t,e){const n=bn.getTokenAttr(e,lr.TYPE);n&&"hidden"===n.toLowerCase()?t._appendElement(e,cr.HTML):ii(t,e),e.ackSelfClosing=!0}(t,e):ii(t,e);break;case 6:n===ar.SCRIPT?kr(t,e):ii(t,e);break;case 7:n===ar.CAPTION?function(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,cr.HTML),t.insertionMode="IN_CAPTION_MODE"}(t,e):ii(t,e);break;case 8:n===ar.COLGROUP?function(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,cr.HTML),t.insertionMode="IN_COLUMN_GROUP_MODE"}(t,e):n===ar.TEMPLATE?kr(t,e):ii(t,e);break;default:ii(t,e)}}function ri(t,e){const n=e.tagName;n===ar.TABLE?t.openElements.hasInTableScope(ar.TABLE)&&(t.openElements.popUntilTagNamePopped(ar.TABLE),t._resetInsertionMode()):n===ar.TEMPLATE?Dr(t,e):n!==ar.BODY&&n!==ar.CAPTION&&n!==ar.COL&&n!==ar.COLGROUP&&n!==ar.HTML&&n!==ar.TBODY&&n!==ar.TD&&n!==ar.TFOOT&&n!==ar.TH&&n!==ar.THEAD&&n!==ar.TR&&ii(t,e)}function ii(t,e){const n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,t._processTokenInBodyMode(e),t.fosterParentingEnabled=n}function si(t,e){let n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n<t.pendingCharacterTokens.length;n++)ii(t,t.pendingCharacterTokens[n]);else for(;n<t.pendingCharacterTokens.length;n++)t._insertCharacters(t.pendingCharacterTokens[n]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}function oi(t,e){t.openElements.currentTagName===ar.COLGROUP&&(t.openElements.pop(),t.insertionMode=hr,t._processToken(e))}function ai(t,e){const n=e.tagName;n===ar.HTML?zr(t,e):n===ar.OPTION?(t.openElements.currentTagName===ar.OPTION&&t.openElements.pop(),t._insertElement(e,cr.HTML)):n===ar.OPTGROUP?(t.openElements.currentTagName===ar.OPTION&&t.openElements.pop(),t.openElements.currentTagName===ar.OPTGROUP&&t.openElements.pop(),t._insertElement(e,cr.HTML)):n===ar.INPUT||n===ar.KEYGEN||n===ar.TEXTAREA||n===ar.SELECT?t.openElements.hasInSelectScope(ar.SELECT)&&(t.openElements.popUntilTagNamePopped(ar.SELECT),t._resetInsertionMode(),n!==ar.SELECT&&t._processToken(e)):n!==ar.SCRIPT&&n!==ar.TEMPLATE||kr(t,e)}function ci(t,e){const n=e.tagName;if(n===ar.OPTGROUP){const e=t.openElements.items[t.openElements.stackTop-1],n=e&&t.treeAdapter.getTagName(e);t.openElements.currentTagName===ar.OPTION&&n===ar.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagName===ar.OPTGROUP&&t.openElements.pop()}else n===ar.OPTION?t.openElements.currentTagName===ar.OPTION&&t.openElements.pop():n===ar.SELECT&&t.openElements.hasInSelectScope(ar.SELECT)?(t.openElements.popUntilTagNamePopped(ar.SELECT),t._resetInsertionMode()):n===ar.TEMPLATE&&Dr(t,e)}function li(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(ar.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t._popTmplInsertionMode(),t._resetInsertionMode(),t._processToken(e)):t.stopped=!0}function ui(t,e){t.insertionMode="IN_BODY_MODE",t._processToken(e)}function hi(t,e){t.insertionMode="IN_BODY_MODE",t._processToken(e)}const pi=yn.TAG_NAMES,fi=yn.NAMESPACES,di={treeAdapter:Vn},Ti=/&/g,mi=/\u00a0/g,Ei=/"/g,_i=/</g,gi=/>/g;class Ai{constructor(t,e){this.options=Qn(di,e),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=t}serialize(){return this._serializeChildNodes(this.startNode),this.html}_serializeChildNodes(t){const e=this.treeAdapter.getChildNodes(t);if(e)for(let t=0,n=e.length;t<n;t++){const n=e[t];this.treeAdapter.isElementNode(n)?this._serializeElement(n):this.treeAdapter.isTextNode(n)?this._serializeTextNode(n):this.treeAdapter.isCommentNode(n)?this._serializeCommentNode(n):this.treeAdapter.isDocumentTypeNode(n)&&this._serializeDocumentTypeNode(n)}}_serializeElement(t){const e=this.treeAdapter.getTagName(t),n=this.treeAdapter.getNamespaceURI(t);if(this.html+="<"+e,this._serializeAttributes(t),this.html+=">",e!==pi.AREA&&e!==pi.BASE&&e!==pi.BASEFONT&&e!==pi.BGSOUND&&e!==pi.BR&&e!==pi.COL&&e!==pi.EMBED&&e!==pi.FRAME&&e!==pi.HR&&e!==pi.IMG&&e!==pi.INPUT&&e!==pi.KEYGEN&&e!==pi.LINK&&e!==pi.META&&e!==pi.PARAM&&e!==pi.SOURCE&&e!==pi.TRACK&&e!==pi.WBR){const r=e===pi.TEMPLATE&&n===fi.HTML?this.treeAdapter.getTemplateContent(t):t;this._serializeChildNodes(r),this.html+="</"+e+">"}}_serializeAttributes(t){const e=this.treeAdapter.getAttrList(t);for(let t=0,n=e.length;t<n;t++){const n=e[t],r=Ai.escapeString(n.value,!0);this.html+=" ",n.namespace?n.namespace===fi.XML?this.html+="xml:"+n.name:n.namespace===fi.XMLNS?("xmlns"!==n.name&&(this.html+="xmlns:"),this.html+=n.name):n.namespace===fi.XLINK?this.html+="xlink:"+n.name:this.html+=n.prefix+":"+n.name:this.html+=n.name,this.html+='="'+r+'"'}}_serializeTextNode(t){const e=this.treeAdapter.getTextNodeContent(t),n=this.treeAdapter.getParentNode(t);let r;n&&this.treeAdapter.isElementNode(n)&&(r=this.treeAdapter.getTagName(n)),r===pi.STYLE||r===pi.SCRIPT||r===pi.XMP||r===pi.IFRAME||r===pi.NOEMBED||r===pi.NOFRAMES||r===pi.PLAINTEXT||r===pi.NOSCRIPT?this.html+=e:this.html+=Ai.escapeString(e,!1)}_serializeCommentNode(t){this.html+="\x3c!--"+this.treeAdapter.getCommentNodeContent(t)+"--\x3e"}_serializeDocumentTypeNode(t){const e=this.treeAdapter.getDocumentTypeNodeName(t);this.html+="<"+sr(e,null,null)+">"}}Ai.escapeString=function(t,e){return t=t.replace(Ti,"&").replace(mi," "),t=e?t.replace(Ei,"""):t.replace(_i,"<").replace(gi,">")};var Ni=Ai,Oi=function(t,e){return new Tr(e).parse(t)},Si=function(t,e,n){"string"==typeof t&&(n=e,e=t,t=null);return new Tr(n).parseFragment(e,t)},Ci=function(t,e){return new Ni(t,e).serialize()},vi=g((function(t,e){const{DOCUMENT_MODE:n}=yn,r={element:1,text:3,cdata:4,comment:8},i={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"};class s{constructor(t){for(const e of Object.keys(t))this[e]=t[e]}get firstChild(){const t=this.children;return t&&t[0]||null}get lastChild(){const t=this.children;return t&&t[t.length-1]||null}get nodeType(){return r[this.type]||r.element}}Object.keys(i).forEach((t=>{const e=i[t];Object.defineProperty(s.prototype,t,{get:function(){return this[e]||null},set:function(t){return this[e]=t,t}})})),e.createDocument=function(){return new s({type:"root",name:"root",parent:null,prev:null,next:null,children:[],"x-mode":n.NO_QUIRKS})},e.createDocumentFragment=function(){return new s({type:"root",name:"root",parent:null,prev:null,next:null,children:[]})},e.createElement=function(t,e,n){const r=Object.create(null),i=Object.create(null),o=Object.create(null);for(let t=0;t<n.length;t++){const e=n[t].name;r[e]=n[t].value,i[e]=n[t].namespace,o[e]=n[t].prefix}return new s({type:"script"===t||"style"===t?t:"tag",name:t,namespace:e,attribs:r,"x-attribsNamespace":i,"x-attribsPrefix":o,children:[],parent:null,prev:null,next:null})},e.createCommentNode=function(t){return new s({type:"comment",data:t,parent:null,prev:null,next:null})};const o=function(t){return new s({type:"text",data:t,parent:null,prev:null,next:null})},a=e.appendChild=function(t,e){const n=t.children[t.children.length-1];n&&(n.next=e,e.prev=n),t.children.push(e),e.parent=t},c=e.insertBefore=function(t,e,n){const r=t.children.indexOf(n),i=n.prev;i&&(i.next=e,e.prev=i),n.prev=e,e.next=n,t.children.splice(r,0,e),e.parent=t};e.setTemplateContent=function(t,e){a(t,e)},e.getTemplateContent=function(t){return t.children[0]},e.setDocumentType=function(t,e,n,r){const i=sr(e,n,r);let o=null;for(let e=0;e<t.children.length;e++)if("directive"===t.children[e].type&&"!doctype"===t.children[e].name){o=t.children[e];break}o?(o.data=i,o["x-name"]=e,o["x-publicId"]=n,o["x-systemId"]=r):a(t,new s({type:"directive",name:"!doctype",data:i,"x-name":e,"x-publicId":n,"x-systemId":r}))},e.setDocumentMode=function(t,e){t["x-mode"]=e},e.getDocumentMode=function(t){return t["x-mode"]},e.detachNode=function(t){if(t.parent){const e=t.parent.children.indexOf(t),n=t.prev,r=t.next;t.prev=null,t.next=null,n&&(n.next=r),r&&(r.prev=n),t.parent.children.splice(e,1),t.parent=null}},e.insertText=function(t,e){const n=t.children[t.children.length-1];n&&"text"===n.type?n.data+=e:a(t,o(e))},e.insertTextBefore=function(t,e,n){const r=t.children[t.children.indexOf(n)-1];r&&"text"===r.type?r.data+=e:c(t,o(e),n)},e.adoptAttributes=function(t,e){for(let n=0;n<e.length;n++){const r=e[n].name;void 0===t.attribs[r]&&(t.attribs[r]=e[n].value,t["x-attribsNamespace"][r]=e[n].namespace,t["x-attribsPrefix"][r]=e[n].prefix)}},e.getFirstChild=function(t){return t.children[0]},e.getChildNodes=function(t){return t.children},e.getParentNode=function(t){return t.parent},e.getAttrList=function(t){const e=[];for(const n in t.attribs)e.push({name:n,value:t.attribs[n],namespace:t["x-attribsNamespace"][n],prefix:t["x-attribsPrefix"][n]});return e},e.getTagName=function(t){return t.name},e.getNamespaceURI=function(t){return t.namespace},e.getTextNodeContent=function(t){return t.data},e.getCommentNodeContent=function(t){return t.data},e.getDocumentTypeNodeName=function(t){return t["x-name"]},e.getDocumentTypeNodePublicId=function(t){return t["x-publicId"]},e.getDocumentTypeNodeSystemId=function(t){return t["x-systemId"]},e.isTextNode=function(t){return"text"===t.type},e.isCommentNode=function(t){return"comment"===t.type},e.isDocumentTypeNode=function(t){return"directive"===t.type&&"!doctype"===t.name},e.isElementNode=function(t){return!!t.attribs},e.setNodeSourceCodeLocation=function(t,e){t.sourceCodeLocation=e},e.getNodeSourceCodeLocation=function(t){return t.sourceCodeLocation},e.updateNodeSourceCodeLocation=function(t,e){t.sourceCodeLocation=Object.assign(t.sourceCodeLocation,e)}})),bi=function(t,e,n){var r={scriptingEnabled:"boolean"!=typeof e.scriptingEnabled||e.scriptingEnabled,treeAdapter:vi,sourceCodeLocationInfo:e.sourceCodeLocationInfo},i=e.context;return n?Oi(t,r):Si(i,t,r)},yi=function(t){for(var e=("length"in t?t:[t]),n=0;n<e.length;n+=1)"root"===e[n].type&&e.splice.apply(e,[n,1].concat(e[n].children));return Ci({children:e},{treeAdapter:vi})},Ii=g((function(t,e){var n=jt.DomUtils,r=qt.parse,i=bi,s=Tt.Document;(e=t.exports=function(t,n,o){if("undefined"!=typeof Buffer&&Buffer.isBuffer(t)&&(t=t.toString()),"string"==typeof t)return n.xmlMode||n._useHtmlParser2?r(t,n):i(t,n,o);if("object"==typeof t&&null!=t&&"root"===t.type)return t;var a=new s(t);return e.update(t,a),a}).update=function(t,e){Array.isArray(t)||(t=[t]),e?e.children=t:e=null;for(var r=0;r<t.length;r++){var i=t[r];i.parent&&i.parent.children!==t&&n.removeElement(i),e?(i.prev=t[r-1]||null,i.next=t[r+1]||null):i.prev=i.next=null,i.parent=e}return e}})),Ri={_useHtmlParser2:!0,xmlMode:!0},Mi={xml:!1,decodeEntities:!0},Li=function(t){return t&&t.xml?"boolean"==typeof t.xml?Ri:Object.assign({},Ri,t.xml):t},ki=jt.DomUtils.isTag,Di=/<[a-zA-Z][^]*>/,Pi={isTag:ki,camelCase:function(t){return t.replace(/[_.-](\w|$)/g,(function(t,e){return e.toUpperCase()}))},cssCase:function(t){return t.replace(/[A-Z]/g,"-$&").toLowerCase()},domEach:function(t,e){for(var n=0,r=t.length;n<r&&!1!==e.call(t,n,t[n]);)++n;return t},cloneDom:function(t){var e="length"in t?Array.prototype.map.call(t,(function(t){return Tt.cloneNode(t,!0)})):[Tt.cloneNode(t,!0)],n=new Tt.Document(e);return e.forEach((function(t){t.parent=n})),e},isHtml:function(t){return Di.test(t)}},xi=g((function(t,e){var n=_&&_.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.isTraversal=void 0;var r=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,i=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,s=/^\s*(?:(\*|[-\w]*)\|)?((?:\\.|[\w\u00b0-\uFFFF-])+)\s*(?:(\S?)=\s*(?:(['"])((?:[^\\]|\\[^])*?)\4|(#?(?:\\.|[\w\u00b0-\uFFFF-])*)|)|)\s*([iI])?\]/,o={undefined:"exists","":"equals","~":"element","^":"start",$:"end","*":"any","!":"not","|":"hyphen"},a={">":"child","<":"parent","~":"sibling","+":"adjacent"},c={"#":["id","equals"],".":["class","element"]},l=new Set(["has","not","matches","is","host","host-context"]),u=new Set(n(["descendant"],Object.keys(a).map((function(t){return a[t]}))));function h(t){return u.has(t.type)}e.isTraversal=h;var p=new Set(["contains","icontains"]),f=new Set(['"',"'"]);function d(t,e,n){var r=parseInt(e,16)-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}function T(t){return t.replace(i,d)}function m(t){return" "===t||"\n"===t||"\t"===t||"\f"===t||"\r"===t}function E(t,e,n,i){var u,d;void 0===n&&(n={});var _=[],A=!1;function N(t){var n=e.slice(i+t).match(r);if(!n)throw new Error("Expected name, found "+e.slice(i));var s=n[0];return i+=t+s.length,T(s)}function O(t){for(;m(e.charAt(i+t));)t++;i+=t}function S(t){for(var n=0;"\\"===e.charAt(--t);)n++;return 1==(1&n)}function C(){if(_.length>0&&h(_[_.length-1]))throw new Error("Did not expect successive traversals.")}for(O(0);""!==e;){var v=e.charAt(i);if(m(v))A=!0,O(1);else if(v in a)C(),_.push({type:a[v]}),A=!1,O(1);else if(","===v){if(0===_.length)throw new Error("Empty sub-selector");t.push(_),_=[],A=!1,O(1)}else if(A&&(C(),_.push({type:"descendant"}),A=!1),v in c){var b=c[v],y=b[0],I=b[1];_.push({type:"attribute",name:y,action:I,value:N(1),ignoreCase:!1,namespace:null})}else if("["===v){var R=e.slice(i+1).match(s);if(!R)throw new Error("Malformed attribute selector: "+e.slice(i));var M=R[0],L=R[1],k=void 0===L?null:L,D=R[2],P=R[3],x=R[5],w=void 0===x?"":x,H=R[6],U=void 0===H?w:H,F=R[7];i+=M.length+1;var B=T(D);(null!==(u=n.lowerCaseAttributeNames)&&void 0!==u?u:!n.xmlMode)&&(B=B.toLowerCase()),_.push({type:"attribute",name:B,action:o[P],value:T(U),namespace:k,ignoreCase:!!F})}else if(":"===v){if(":"===e.charAt(i+1)){_.push({type:"pseudo-element",name:N(2).toLowerCase()});continue}var G=N(1).toLowerCase(),j=null;if("("===e.charAt(i))if(l.has(G)){if(f.has(e.charAt(i+1)))throw new Error("Pseudo-selector "+G+" cannot be quoted");if(i=E(j=[],e,n,i+1),")"!==e.charAt(i))throw new Error("Missing closing parenthesis in :"+G+" ("+e+")");i+=1}else{for(var q=i+=1,K=1;K>0&&i<e.length;i++)"("!==e.charAt(i)||S(i)?")"!==e.charAt(i)||S(i)||K--:K++;if(K)throw new Error("Parenthesis not matched");if(j=e.slice(q,i-1),p.has(G)){var $=j.charAt(0);$===j.slice(-1)&&f.has($)&&(j=j.slice(1,-1)),j=T(j)}}_.push({type:"pseudo",name:G,data:j})}else{k=null;var Y=void 0;if("*"===v)i+=1,Y="*";else{if(!r.test(e.slice(i)))return _.length&&"descendant"===_[_.length-1].type&&_.pop(),g(t,_),i;Y=N(0)}"|"===e.charAt(i)&&(k=Y,"*"===e.charAt(i+1)?(Y="*",i+=2):Y=N(1)),"*"===Y?_.push({type:"universal",namespace:k}):((null!==(d=n.lowerCaseTags)&&void 0!==d?d:!n.xmlMode)&&(Y=Y.toLowerCase()),_.push({type:"tag",name:Y,namespace:k}))}}return g(t,_),i}function g(t,e){if(t.length>0&&0===e.length)throw new Error("Empty sub-selector");t.push(e)}e.default=function(t,e){var n=[],r=E(n,""+t,e,0);if(r<t.length)throw new Error("Unmatched selector: "+t.slice(r));return n}})),wi=_&&_.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r},Hi={equals:"",element:"~",start:"^",end:"$",any:"*",not:"!",hyphen:"|"},Ui=new Set(wi(Object.keys(Hi).map((function(t){return Hi[t]})).filter(Boolean),[":","[","]"," ","\\","(",")"]));function Fi(t){return t.map(Gi).join(", ")}var Bi=Fi;function Gi(t){return t.map(ji).join("")}function ji(t){switch(t.type){case"child":return" > ";case"parent":return" < ";case"sibling":return" ~ ";case"adjacent":return" + ";case"descendant":return" ";case"universal":return Ki(t.namespace)+"*";case"tag":return qi(t);case"pseudo-element":return"::"+$i(t.name);case"pseudo":return null===t.data?":"+$i(t.name):"string"==typeof t.data?":"+$i(t.name)+"("+$i(t.data)+")":":"+$i(t.name)+"("+Fi(t.data)+")";case"attribute":if("id"===t.name&&"equals"===t.action&&!t.ignoreCase&&!t.namespace)return"#"+$i(t.value);if("class"===t.name&&"element"===t.action&&!t.ignoreCase&&!t.namespace)return"."+$i(t.value);var e=qi(t);return"exists"===t.action?"["+e+"]":"["+e+Hi[t.action]+"='"+$i(t.value)+"'"+(t.ignoreCase?"i":"")+"]"}}function qi(t){return""+Ki(t.namespace)+$i(t.name)}function Ki(t){return t?("*"===t?"*":$i(t))+"|":""}function $i(t){return t.split("").map((function(t){return Ui.has(t)?"\\"+t:t})).join("")}var Yi=Object.defineProperty({default:Bi},"__esModule",{value:!0}),Vi=g((function(t,e){var n=_&&_.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=_&&_.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)},i=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0,r(xi,e),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i(xi).default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return i(Yi).default}})})),Qi={trueFunc:function(){return!0},falseFunc:function(){return!1}},zi=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isTraversal=e.procedure=void 0,e.procedure={universal:50,tag:30,attribute:1,pseudo:0,"pseudo-element":0,descendant:-1,child:-1,parent:-1,sibling:-1,adjacent:-1,_flexibleDescendant:-1},e.isTraversal=function(t){return e.procedure[t.type]<0}})),Xi={exists:10,equals:8,not:7,start:6,end:6,any:5,hyphen:4,element:4};var Wi=function(t){for(var e=t.map(Zi),n=1;n<t.length;n++){var r=e[n];if(!(r<0))for(var i=n-1;i>=0&&r<e[i];i--){var s=t[i+1];t[i+1]=t[i],t[i]=s,e[i+1]=e[i],e[i]=r}}};function Zi(t){var e=zi.procedure[t.type];if("attribute"===t.type)(e=Xi[t.action])===Xi.equals&&"id"===t.name&&(e=9),t.ignoreCase&&(e>>=1);else if("pseudo"===t.type)if(t.data)if("has"===t.name||"contains"===t.name)e=0;else if(Array.isArray(t.data)){e=0;for(var n=0;n<t.data.length;n++)if(1===t.data[n].length){var r=Zi(t.data[n][0]);if(0===r){e=0;break}r>e&&(e=r)}t.data.length>1&&e>0&&(e-=1)}else e=1;else e=3;return e}var Ji=Object.defineProperty({default:Wi},"__esModule",{value:!0}),ts=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.attributeRules=void 0;var n=/[-[\]{}()*+?.,\\^$|#\s]/g;function r(t){return t.replace(n,"\\$&")}e.attributeRules={equals:function(t,e,n){var r=n.adapter,i=e.name,s=e.value;return e.ignoreCase?(s=s.toLowerCase(),function(e){var n;return(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.toLowerCase())===s&&t(e)}):function(e){return r.getAttributeValue(e,i)===s&&t(e)}},hyphen:function(t,e,n){var r=n.adapter,i=e.name,s=e.value,o=s.length;return e.ignoreCase?(s=s.toLowerCase(),function(e){var n=r.getAttributeValue(e,i);return null!=n&&(n.length===o||"-"===n.charAt(o))&&n.substr(0,o).toLowerCase()===s&&t(e)}):function(e){var n=r.getAttributeValue(e,i);return null!=n&&n.substr(0,o)===s&&(n.length===o||"-"===n.charAt(o))&&t(e)}},element:function(t,e,n){var i=e.name,s=e.value,o=e.ignoreCase,a=n.adapter;if(/\s/.test(s))return Qi.falseFunc;var c=new RegExp("(?:^|\\s)"+r(s)+"(?:$|\\s)",o?"i":"");return function(e){var n=a.getAttributeValue(e,i);return null!=n&&c.test(n)&&t(e)}},exists:function(t,e,n){var r=e.name,i=n.adapter;return function(e){return i.hasAttrib(e,r)&&t(e)}},start:function(t,e,n){var r=n.adapter,i=e.name,s=e.value,o=s.length;return 0===o?Qi.falseFunc:e.ignoreCase?(s=s.toLowerCase(),function(e){var n;return(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.substr(0,o).toLowerCase())===s&&t(e)}):function(e){var n;return!!(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.startsWith(s))&&t(e)}},end:function(t,e,n){var r=n.adapter,i=e.name,s=e.value,o=-s.length;return 0===o?Qi.falseFunc:e.ignoreCase?(s=s.toLowerCase(),function(e){var n;return(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.substr(o).toLowerCase())===s&&t(e)}):function(e){var n;return!!(null===(n=r.getAttributeValue(e,i))||void 0===n?void 0:n.endsWith(s))&&t(e)}},any:function(t,e,n){var i=n.adapter,s=e.name,o=e.value;if(""===o)return Qi.falseFunc;if(e.ignoreCase){var a=new RegExp(r(o),"i");return function(e){var n=i.getAttributeValue(e,s);return null!=n&&a.test(n)&&t(e)}}return function(e){var n;return!!(null===(n=i.getAttributeValue(e,s))||void 0===n?void 0:n.includes(o))&&t(e)}},not:function(t,e,n){var r=n.adapter,i=e.name,s=e.value;return""===s?function(e){return!!r.getAttributeValue(e,i)&&t(e)}:e.ignoreCase?(s=s.toLowerCase(),function(e){var n=r.getAttributeValue(e,i);return null!=n&&n.toLocaleLowerCase()!==s&&t(e)}):function(e){return r.getAttributeValue(e,i)!==s&&t(e)}}}})),es=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.parse=void 0;var n=/^([+-]?\d*n)?\s*(?:([+-]?)\s*(\d+))?$/;e.parse=function(t){if("even"===(t=t.trim().toLowerCase()))return[2,0];if("odd"===t)return[2,1];var e,r=t.match(n);if(!r)throw new Error("n-th rule couldn't be parsed ('"+t+"')");return r[1]?(e=parseInt(r[1],10),isNaN(e)&&(e=r[1].startsWith("-")?-1:1)):e=0,[e,("-"===r[2]?-1:1)*(r[3]?parseInt(r[3],10):0)]}})),ns=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.compile=void 0,e.compile=function(t){var e=t[0],n=t[1]-1;if(n<0&&e<=0)return Qi.falseFunc;if(-1===e)return function(t){return t<=n};if(0===e)return function(t){return t===n};if(1===e)return n<0?Qi.trueFunc:function(t){return t>=n};var r=Math.abs(e),i=(n%r+r)%r;return e>1?function(t){return t>=n&&t%r===i}:function(t){return t<=n&&t%r===i}}})),rs=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.compile=e.parse=void 0,Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return es.parse}}),Object.defineProperty(e,"compile",{enumerable:!0,get:function(){return ns.compile}}),e.default=function(t){return ns.compile(es.parse(t))}})),is=g((function(t,e){var n=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.filters=void 0;var r=n(rs),i=ts.attributeRules.equals;function s(t,e){var n={type:"attribute",action:"equals",ignoreCase:!1,namespace:null,name:t,value:e};return function(t,e,r){return i(t,n,r)}}function o(t,e){return function(n){var r=e.getParent(n);return!!r&&e.isTag(r)&&t(n)}}e.filters={contains:function(t,e,n){var r=n.adapter;return function(n){return t(n)&&r.getText(n).includes(e)}},icontains:function(t,e,n){var r=n.adapter,i=e.toLowerCase();return function(e){return t(e)&&r.getText(e).toLowerCase().includes(i)}},"nth-child":function(t,e,n){var i=n.adapter,s=n.equals,a=r.default(e);return a===Qi.falseFunc?Qi.falseFunc:a===Qi.trueFunc?o(t,i):function(e){for(var n=i.getSiblings(e),r=0,o=0;o<n.length&&!s(e,n[o]);o++)i.isTag(n[o])&&r++;return a(r)&&t(e)}},"nth-last-child":function(t,e,n){var i=n.adapter,s=n.equals,a=r.default(e);return a===Qi.falseFunc?Qi.falseFunc:a===Qi.trueFunc?o(t,i):function(e){for(var n=i.getSiblings(e),r=0,o=n.length-1;o>=0&&!s(e,n[o]);o--)i.isTag(n[o])&&r++;return a(r)&&t(e)}},"nth-of-type":function(t,e,n){var i=n.adapter,s=n.equals,a=r.default(e);return a===Qi.falseFunc?Qi.falseFunc:a===Qi.trueFunc?o(t,i):function(e){for(var n=i.getSiblings(e),r=0,o=0;o<n.length;o++){var c=n[o];if(s(e,c))break;i.isTag(c)&&i.getName(c)===i.getName(e)&&r++}return a(r)&&t(e)}},"nth-last-of-type":function(t,e,n){var i=n.adapter,s=n.equals,a=r.default(e);return a===Qi.falseFunc?Qi.falseFunc:a===Qi.trueFunc?o(t,i):function(e){for(var n=i.getSiblings(e),r=0,o=n.length-1;o>=0;o--){var c=n[o];if(s(e,c))break;i.isTag(c)&&i.getName(c)===i.getName(e)&&r++}return a(r)&&t(e)}},root:function(t,e,n){var r=n.adapter;return function(e){var n=r.getParent(e);return(null==n||!r.isTag(n))&&t(e)}},scope:function(t,n,r,i){var s=r.equals;return i&&0!==i.length?1===i.length?function(e){return s(i[0],e)&&t(e)}:function(e){return i.includes(e)&&t(e)}:e.filters.root(t,n,r)},checkbox:s("type","checkbox"),file:s("type","file"),password:s("type","password"),radio:s("type","radio"),reset:s("type","reset"),image:s("type","image"),submit:s("type","submit"),hover:function(t,e,n){var r=n.adapter.isHovered;return"function"!=typeof r?Qi.falseFunc:function(e){return r(e)&&t(e)}},visited:function(t,e,n){var r=n.adapter.isVisited;return"function"!=typeof r?Qi.falseFunc:function(e){return r(e)&&t(e)}},active:function(t,e,n){var r=n.adapter.isActive;return"function"!=typeof r?Qi.falseFunc:function(e){return r(e)&&t(e)}}}})),ss=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.verifyPseudoArgs=e.pseudos=void 0;var n=r(["a","area","link"]);function r(t){if("undefined"!=typeof Set){var e=new Set(t);return function(t,n){var r=n.adapter;return e.has(r.getName(t))}}return function(e,n){var r=n.adapter;return t.includes(r.getName(e))}}e.pseudos={empty:function(t,e){var n=e.adapter;return!n.getChildren(t).some((function(t){return n.isTag(t)||""!==n.getText(t)}))},"first-child":function(t,e){var n=e.adapter,r=e.equals,i=n.getSiblings(t).find((function(t){return n.isTag(t)}));return null!=i&&r(t,i)},"last-child":function(t,e){for(var n=e.adapter,r=e.equals,i=n.getSiblings(t),s=i.length-1;s>=0;s--){if(r(t,i[s]))return!0;if(n.isTag(i[s]))break}return!1},"first-of-type":function(t,e){for(var n=e.adapter,r=e.equals,i=n.getSiblings(t),s=n.getName(t),o=0;o<i.length;o++){var a=i[o];if(r(t,a))return!0;if(n.isTag(a)&&n.getName(a)===s)break}return!1},"last-of-type":function(t,e){for(var n=e.adapter,r=e.equals,i=n.getSiblings(t),s=n.getName(t),o=i.length-1;o>=0;o--){var a=i[o];if(r(t,a))return!0;if(n.isTag(a)&&n.getName(a)===s)break}return!1},"only-of-type":function(t,e){var n=e.adapter,r=e.equals,i=n.getName(t);return n.getSiblings(t).every((function(e){return r(t,e)||!n.isTag(e)||n.getName(e)!==i}))},"only-child":function(t,e){var n=e.adapter,r=e.equals;return n.getSiblings(t).every((function(e){return r(t,e)||!n.isTag(e)}))},"any-link":function(t,e){return n(t,e)&&e.adapter.hasAttrib(t,"href")},link:function(t,n){var r,i;return!0!==(null===(i=(r=n.adapter).isVisited)||void 0===i?void 0:i.call(r,t))&&e.pseudos["any-link"](t,n)},selected:function(t,e){var n=e.adapter,r=e.equals;if(n.hasAttrib(t,"selected"))return!0;if("option"!==n.getName(t))return!1;var i=n.getParent(t);if(!i||!n.isTag(i)||"select"!==n.getName(i)||n.hasAttrib(i,"multiple"))return!1;for(var s=n.getChildren(i),o=!1,a=0;a<s.length;a++){var c=s[a];if(n.isTag(c))if(r(t,c))o=!0;else{if(!o)return!1;if(n.hasAttrib(c,"selected"))return!1}}return o},disabled:function(t,e){return e.adapter.hasAttrib(t,"disabled")},enabled:function(t,e){return!e.adapter.hasAttrib(t,"disabled")},checked:function(t,n){return n.adapter.hasAttrib(t,"checked")||e.pseudos.selected(t,n)},required:function(t,e){return e.adapter.hasAttrib(t,"required")},optional:function(t,e){return!e.adapter.hasAttrib(t,"required")},parent:function(t,n){return!e.pseudos.empty(t,n)},header:r(["h1","h2","h3","h4","h5","h6"]),button:function(t,e){var n=e.adapter,r=n.getName(t);return"button"===r||"input"===r&&"button"===n.getAttributeValue(t,"type")},input:r(["input","textarea","select","button"]),text:function(t,e){var n=e.adapter,r=n.getAttributeValue(t,"type");return"input"===n.getName(t)&&(!r||"text"===r.toLowerCase())}},e.verifyPseudoArgs=function(t,e,n){if(null===n){if(t.length>2&&"scope"!==e)throw new Error("pseudo-selector :"+e+" requires an argument")}else if(2===t.length)throw new Error("pseudo-selector :"+e+" doesn't have any arguments")}})),os=g((function(t,e){var n=_&&_.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r};function r(t){return t.some(zi.isTraversal)}function i(t,e){return t===Qi.falseFunc?t:function(n){return e.isTag(n)&&t(n)}}function s(t,e){var n=e.getSiblings(t);if(n.length<=1)return[];var r=n.indexOf(t);return r<0||r===n.length-1?[]:n.slice(r+1).filter(e.isTag)}Object.defineProperty(e,"__esModule",{value:!0}),e.subselects=e.getNextSiblings=e.ensureIsTag=e.PLACEHOLDER_ELEMENT=void 0,e.PLACEHOLDER_ELEMENT={},e.ensureIsTag=i,e.getNextSiblings=s,e.subselects={is:function(t,n,r,i,s){return e.subselects.matches(t,n,r,i,s)},matches:function(t,e,n,r,i){return i(e,{xmlMode:!!n.xmlMode,strict:!!n.strict,adapter:n.adapter,equals:n.equals,rootFunc:t},r)},not:function(t,e,n,i,s){var o={xmlMode:!!n.xmlMode,strict:!!n.strict,adapter:n.adapter,equals:n.equals};if(o.strict&&(e.length>1||e.some(r)))throw new Error("complex selectors in :not aren't allowed in strict mode");var a=s(e,o,i);return a===Qi.falseFunc?t:a===Qi.trueFunc?Qi.falseFunc:function(e){return!a(e)&&t(e)}},has:function(t,o,a,c,l){var u=a.adapter,h={xmlMode:!!a.xmlMode,strict:!!a.strict,adapter:u,equals:a.equals},p=o.some(r)?[e.PLACEHOLDER_ELEMENT]:void 0,f=l(o,h,p);if(f===Qi.falseFunc)return Qi.falseFunc;if(f===Qi.trueFunc)return function(e){return u.getChildren(e).some(u.isTag)&&t(e)};var d=i(f,u),T=f.shouldTestNextSiblings,m=void 0!==T&&T;return p?function(e){p[0]=e;var r=u.getChildren(e),i=m?n(r,s(e,u)):r;return t(e)&&u.existsOne(d,i)}:function(e){return t(e)&&u.existsOne(d,u.getChildren(e))}}}})),as=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.compilePseudoSelector=e.pseudos=e.filters=void 0,Object.defineProperty(e,"filters",{enumerable:!0,get:function(){return is.filters}}),Object.defineProperty(e,"pseudos",{enumerable:!0,get:function(){return ss.pseudos}});var n=/^(?:(?:nth|last|first|only)-(?:child|of-type)|root|empty|(?:en|dis)abled|checked|not)$/;e.compilePseudoSelector=function(t,e,r,i,s){var o=e.name,a=e.data;if(r.strict&&!n.test(o))throw new Error(":"+o+" isn't part of CSS3");if(Array.isArray(a))return os.subselects[o](t,a,r,i,s);if(o in is.filters)return is.filters[o](t,a,r,i);if(o in ss.pseudos){var c=ss.pseudos[o];return ss.verifyPseudoArgs(c,o,a),c===Qi.falseFunc?Qi.falseFunc:t===Qi.trueFunc?function(t){return c(t,r,a)}:function(e){return c(e,r,a)&&t(e)}}throw new Error("unmatched pseudo-class :"+o)}})),cs=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.compileGeneralSelector=void 0,e.compileGeneralSelector=function(t,e,n,r,i){var s=n.adapter,o=n.equals;switch(e.type){case"pseudo-element":throw new Error("Pseudo-elements are not supported by css-select");case"attribute":if(n.strict&&(e.ignoreCase||"not"===e.action))throw new Error("Unsupported attribute selector");return ts.attributeRules[e.action](t,e,n);case"pseudo":return as.compilePseudoSelector(t,e,n,r,i);case"tag":return function(n){return s.getName(n)===e.name&&t(n)};case"descendant":if(!1===n.cacheResults||"undefined"==typeof WeakSet)return function(e){for(var n=e;n=s.getParent(n);)if(s.isTag(n)&&t(n))return!0;return!1};var a=new WeakSet;return function(e){for(var n=e;n=s.getParent(n);)if(!a.has(n)){if(s.isTag(n)&&t(n))return!0;a.add(n)}return!1};case"_flexibleDescendant":return function(e){var n=e;do{if(s.isTag(n)&&t(n))return!0}while(n=s.getParent(n));return!1};case"parent":if(n.strict)throw new Error("Parent selector isn't part of CSS3");return function(e){return s.getChildren(e).some((function(e){return s.isTag(e)&&t(e)}))};case"child":return function(e){var n=s.getParent(e);return!!n&&s.isTag(n)&&t(n)};case"sibling":return function(e){for(var n=s.getSiblings(e),r=0;r<n.length;r++){var i=n[r];if(o(e,i))break;if(s.isTag(i)&&t(i))return!0}return!1};case"adjacent":return function(e){for(var n,r=s.getSiblings(e),i=0;i<r.length;i++){var a=r[i];if(o(e,a))break;s.isTag(a)&&(n=a)}return!!n&&t(n)};case"universal":return t}}})),ls=g((function(t,e){var n=_&&_.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.compileToken=e.compileUnsafe=e.compile=void 0;var r=n(Ji);function i(t,e,n){return l(Vi.parse(t,e),e,n)}function s(t){return"pseudo"===t.type&&("scope"===t.name||Array.isArray(t.data)&&t.data.some((function(t){return t.some(s)})))}e.compile=function(t,e,n){var r=i(t,e,n);return os.ensureIsTag(r,e.adapter)},e.compileUnsafe=i;var o={type:"descendant"},a={type:"_flexibleDescendant"},c={type:"pseudo",name:"scope",data:null};function l(t,e,n){var i;(t=t.filter((function(t){return t.length>0}))).forEach(r.default),n=null!==(i=e.context)&&void 0!==i?i:n;var h=Array.isArray(n),p=n&&(Array.isArray(n)?n:[n]);!function(t,e,n){for(var r=e.adapter,i=!!(null==n?void 0:n.every((function(t){var e=r.getParent(t);return t===os.PLACEHOLDER_ELEMENT||!(!e||!r.isTag(e))}))),a=0,l=t;a<l.length;a++){var u=l[a];if(u.length>0&&zi.isTraversal(u[0])&&"descendant"!==u[0].type);else{if(!i||u.some(s))continue;u.unshift(o)}u.unshift(c)}}(t,e,p);var f=!1,d=t.map((function(t){if(t.length>=2){var n=t[0],r=t[1];"pseudo"!==n.type||"scope"!==n.name||(h&&"descendant"===r.type?t[1]=a:"adjacent"!==r.type&&"sibling"!==r.type||(f=!0))}return function(t,e,n){var r;return t.reduce((function(t,r){return t===Qi.falseFunc?Qi.falseFunc:cs.compileGeneralSelector(t,r,e,n,l)}),null!==(r=e.rootFunc)&&void 0!==r?r:Qi.trueFunc)}(t,e,p)})).reduce(u,Qi.falseFunc);return d.shouldTestNextSiblings=f,d}function u(t,e){return e===Qi.falseFunc||t===Qi.trueFunc?t:t===Qi.falseFunc||e===Qi.trueFunc?e:function(n){return t(n)||e(n)}}e.compileToken=l})),us=g((function(t,e){var n=_&&_.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=_&&_.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=_&&_.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&n(e,t,i);return r(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.pseudos=e.filters=e.is=e.selectOne=e.selectAll=e.prepareContext=e._compileToken=e._compileUnsafe=e.compile=void 0;var s=i(Bt),o=function(t,e){return t===e},a={adapter:s,equals:o};function c(t){var e,n,r,i,c=null!=t?t:a;return null!==(e=c.adapter)&&void 0!==e||(c.adapter=s),null!==(n=c.equals)&&void 0!==n||(c.equals=null!==(i=null===(r=c.adapter)||void 0===r?void 0:r.equals)&&void 0!==i?i:o),c}function l(t){return function(e,n,r){var i=c(n);return t(e,i,r)}}function u(t){return function(e,n,r){var i=c(r);"function"!=typeof e&&(e=ls.compileUnsafe(e,i,n));var s=h(n,i.adapter,e.shouldTestNextSiblings);return t(e,s,i)}}function h(t,e,n){return void 0===n&&(n=!1),n&&(t=function(t,e){for(var n=Array.isArray(t)?t.slice(0):[t],r=0;r<n.length;r++){var i=os.getNextSiblings(n[r],e);n.push.apply(n,i)}return n}(t,e)),Array.isArray(t)?e.removeSubsets(t):e.getChildren(t)}e.compile=l(ls.compile),e._compileUnsafe=l(ls.compileUnsafe),e._compileToken=l(ls.compileToken),e.prepareContext=h,e.selectAll=u((function(t,e,n){return t!==Qi.falseFunc&&e&&0!==e.length?n.adapter.findAll(t,e):[]})),e.selectOne=u((function(t,e,n){return t!==Qi.falseFunc&&e&&0!==e.length?n.adapter.findOne(t,e):null})),e.is=function(t,e,n){var r=c(n);return("function"==typeof e?e:ls.compile(e,r))(t)},e.default=e.selectAll,Object.defineProperty(e,"filters",{enumerable:!0,get:function(){return as.filters}}),Object.defineProperty(e,"pseudos",{enumerable:!0,get:function(){return as.pseudos}})})),hs=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getLimit=e.isFilter=e.filterNames=void 0,e.filterNames=new Set(["first","last","eq","gt","nth","lt","even","odd"]),e.isFilter=function t(n){return"pseudo"===n.type&&(!!e.filterNames.has(n.name)||!("not"!==n.name||!Array.isArray(n.data))&&n.data.some((function(e){return e.some(t)})))},e.getLimit=function(t,e){var n=null!=e?parseInt(e,10):NaN;switch(t){case"first":return 1;case"nth":case"eq":return isFinite(n)?n>=0?n+1:1/0:0;case"lt":return isFinite(n)?n>=0?n:1/0:0;case"gt":return isFinite(n)?1/0:0;default:return 1/0}}})),ps=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.groupSelectors=e.getDocumentRoot=void 0,e.getDocumentRoot=function(t){for(;t.parent;)t=t.parent;return t},e.groupSelectors=function(t){for(var e=[],n=[],r=0,i=t;r<i.length;r++){var s=i[r];s.some(hs.isFilter)?e.push(s):n.push(s)}return[n,e]}})),fs=g((function(t,e){var n=_&&_.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},r=_&&_.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=_&&_.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=_&&_.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},o=_&&_.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,i++)r[i]=s[o];return r};Object.defineProperty(e,"__esModule",{value:!0}),e.select=e.filter=void 0;var a=s(Bt),c={type:"pseudo",name:"scope",data:null},l=n({},c),u={type:"universal",namespace:null};function h(t,e,n){if(0===e.length)return[];var r,i=ps.groupSelectors(t),s=i[0],a=i[1];if(s.length){var c=g(e,s,n);if(0===a.length)return c;c.length&&(r=new Set(c))}for(var u=0;u<a.length;u++){var h=a[u];if(0===(r?e.filter((function(t){return!r.has(t)})):e).length)break;c=void 0;if(h.some(Vi.isTraversal))c=T(ps.getDocumentRoot(e[0]),o(h,[l]),n,!0,e);else c=T(e,h,n,!1);if(r)c.length&&c.forEach((function(t){return r.add(t)}));else{if(u===a.length-1)return c;c.length&&(r=new Set(c))}}return void 0!==r?e.filter((function(t){return r.has(t)})):[]}e.filter=function(t,e,n){return void 0===n&&(n={}),h(Vi.parse(t,n),e,n)},e.select=function(t,e,n){if(void 0===n&&(n={}),"function"==typeof t)return E(e,t);var r=ps.groupSelectors(Vi.parse(t,n)),i=r[0],s=r[1].map((function(t){return T(e,t,n,!0)}));return i.length&&s.push(m(e,i,n,1/0)),1===s.length?s[0]:a.uniqueSort(s.reduce((function(t,e){return o(t,e)})))};var p=new Set(["descendant","adjacent"]);function f(t){return t!==c&&"pseudo"===t.type&&("scope"===t.name||Array.isArray(t.data)&&t.data.some((function(t){return t.some(f)})))}function d(t,e,r){return r&&t.some(f)?n(n({},e),{context:r}):e}function T(t,e,n,r,i){var s=e.findIndex(hs.isFilter),o=e.slice(0,s),l=e[s],f=hs.getLimit(l.name,l.data);if(0===f)return[];var E=d(o,n,i),_=(0!==o.length||Array.isArray(t)?0===o.length||1===o.length&&o[0]===c?Array.isArray(t)?t:[t]:r||o.some(Vi.isTraversal)?m(t,[o],E,f):g(t,[o],E):a.getChildren(t).filter(a.isTag)).slice(0,f),A=function(t,e,n,r){var i="string"==typeof n?parseInt(n,10):NaN;switch(t){case"first":case"lt":return e;case"last":return e.length>0?[e[e.length-1]]:e;case"nth":case"eq":return isFinite(i)&&Math.abs(i)<e.length?[i<0?e[e.length+i]:e[i]]:[];case"gt":return isFinite(i)?e.slice(i+1):[];case"even":return e.filter((function(t,e){return e%2==0}));case"odd":return e.filter((function(t,e){return e%2==1}));case"not":var s=new Set(h(n,e,r));return e.filter((function(t){return!s.has(t)}))}}(l.name,_,l.data,n);if(0===A.length||e.length===s+1)return A;var N=e.slice(s+1),O=N.some(Vi.isTraversal),S=d(N,n,i);return O&&(p.has(N[0].type)&&N.unshift(u),N.unshift(c)),N.some(hs.isFilter)?T(A,N,n,!1,i):O?m(A,[N],S,1/0):g(A,[N],S)}function m(t,e,n,r){return 0===r?[]:E(t,us._compileToken(e,n,t),r)}function E(t,e,n){void 0===n&&(n=1/0);var r=us.prepareContext(t,a,e.shouldTestNextSiblings);return a.find((function(t){return a.isTag(t)&&e(t)}),r,!0,n)}function g(t,e,n){var r=us._compileToken(e,n);return t.filter(r)}})),ds=g((function(t,e){var n=Mi,r=Li,i=fs.select,s=yi,o=qt.render;function a(t,e,n){if(e)"string"==typeof e&&(e=i(e,t._root,n));else{if(!t._root||!t._root.children)return"";e=t._root.children}return n.xmlMode||n._useHtmlParser2?o(e,n):s(e)}function c(t){if(Array.isArray(t))return!0;if("object"!=typeof t||!Object.prototype.hasOwnProperty.call(t,"length")||"number"!=typeof t.length||t.length<0)return!1;for(var e=0;e<t.length;e++)if(!(e in t))return!1;return!0}e.html=function(t,e){return"[object Object]"!==Object.prototype.toString.call(t)||e||"length"in t||"type"in t||(e=t,t=void 0),a(this,t,e=Object.assign({},n,this?this._options:{},r(e||{})))},e.xml=function(t){return a(this,t,Object.assign({},this._options,{xmlMode:!0}))},e.text=function(t){t||(t=this.root());for(var n="",r=t.length,i=0;i<r;i++){var s=t[i];"text"===s.type?n+=s.data:s.children&&"comment"!==s.type&&"script"!==s.tagName&&"style"!==s.tagName&&(n+=e.text(s.children))}return n},e.parseHTML=function(t,e,r){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(r=e);var i=this.load(t,n,!1);return r||i("script").remove(),i.root()[0].children.slice()},e.root=function(){return this(this._root)},e.contains=function(t,e){if(e===t)return!1;for(;e&&e!==e.parent;)if((e=e.parent)===t)return!0;return!1},e.merge=function(t,e){if(c(t)&&c(e)){for(var n=t.length,r=+e.length,i=0;i<r;i++)t[n++]=e[i];return t.length=n,t}}})),Ts=g((function(t,e){var n=ds.text,r=Pi.isTag,i=Pi.domEach,s=Object.prototype.hasOwnProperty,o=Pi.camelCase,a=Pi.cssCase,c=/\s+/,l="data-",u={null:null,true:!0,false:!1},h=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,p=/^(?:{[\w\W]*}|\[[\w\W]*])$/;function f(t,e){if(t&&r(t))return t.attribs||(t.attribs={}),e?s.call(t.attribs,e)?h.test(e)?e:t.attribs[e]:"option"===t.name&&"value"===e?n(t.children):"input"!==t.name||"radio"!==t.attribs.type&&"checkbox"!==t.attribs.type||"value"!==e?void 0:"on":t.attribs}function d(t,e,n){null===n?_(t,e):t.attribs[e]=n+""}function T(t,e){if(t&&r(t))return e in t?t[e]:h.test(e)?void 0!==f(t,e):f(t,e)}function m(t,e,n){e in t?t[e]=n:d(t,e,h.test(e)?n?"":null:n)}function E(t,e){var n,r,i,c=1===arguments.length;c?r=(n=Object.keys(t.attribs).filter((function(t){return t.slice(0,l.length)===l}))).map((function(t){return o(t.slice(l.length))})):(n=[l+a(e)],r=[e]);for(var h=0;h<n.length;++h){var f=n[h],d=r[h];if(s.call(t.attribs,f)&&!s.call(t.data,d)){if(i=t.attribs[f],s.call(u,i))i=u[i];else if(i===String(Number(i)))i=Number(i);else if(p.test(i))try{i=JSON.parse(i)}catch(t){}t.data[d]=i}}return c?t.data:i}function _(t,e){t.attribs&&s.call(t.attribs,e)&&delete t.attribs[e]}function g(t){return t?t.trim().split(c):[]}e.attr=function(t,e){return"object"==typeof t||arguments.length>1?i(this,"function"==typeof e?function(n,r){d(r,t,e.call(r,n,r.attribs[t]))}:function(n,i){r(i)&&("object"==typeof t?Object.keys(t).forEach((function(e){var n=t[e];d(i,e,n)})):d(i,t,e))}):f(this[0],t)},e.prop=function(t,e){if("string"==typeof t&&void 0===e)switch(t){case"style":var n=this.css(),s=Object.keys(n);return s.forEach((function(t,e){n[e]=t})),n.length=s.length,n;case"tagName":case"nodeName":return this[0].name.toUpperCase();case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return T(this[0],t)}if("object"==typeof t||void 0!==e)return i(this,"function"==typeof e?function(n,r){m(r,t,e.call(r,n,T(r,t)))}:function(n,i){r(i)&&("object"==typeof t?Object.keys(t).forEach((function(e){var n=t[e];m(i,e,n)})):m(i,t,e))})},e.data=function(t,e){var n=this[0];if(n&&r(n))return n.data||(n.data={}),t?"object"==typeof t||void 0!==e?(i(this,(function(n,r){!function(t,e,n){t.data||(t.data={}),"object"==typeof e?Object.assign(t.data,e):"string"==typeof e&&void 0!==n&&(t.data[e]=n)}(r,t,e)})),this):s.call(n.data,t)?n.data[t]:E(n,t):E(n)},e.val=function(t){var e=0===arguments.length,n=this[0];if(n)switch(n.name){case"textarea":return this.text(t);case"select":var r=this.find("option:selected");if(!r)return;if(!e){if(null==this.attr("multiple")&&"object"==typeof t)return this;"object"!=typeof t&&(t=[t]),this.find("option").removeAttr("selected");for(var i=0;i<t.length;i++)this.find('option[value="'+t[i]+'"]').attr("selected","");return this}return this.attr("multiple")?r.toArray().map((function(t){return f(t,"value")})):r.attr("value");case"input":case"option":return e?this.attr("value"):this.attr("value",t)}},e.removeAttr=function(t){for(var e=g(t),n=0;n<e.length;n++)i(this,(function(t,r){_(r,e[n])}));return this},e.hasClass=function(t){return this.toArray().some((function(e){var n=e.attribs&&e.attribs.class,r=-1;if(n&&t.length)for(;(r=n.indexOf(t,r+1))>-1;){var i=r+t.length;if((0===r||c.test(n[r-1]))&&(i===n.length||c.test(n[i])))return!0}return!1}))},e.addClass=function(t){if("function"==typeof t)return i(this,(function(n,r){var i=r.attribs.class||"";e.addClass.call([r],t.call(r,n,i))}));if(!t||"string"!=typeof t)return this;for(var n=t.split(c),s=this.length,o=0;o<s;o++)if(r(this[o])){var a=f(this[o],"class");if(a){for(var l=" "+a+" ",u=0;u<n.length;u++){var h=n[u]+" ";l.indexOf(" "+h)<0&&(l+=h)}d(this[o],"class",l.trim())}else d(this[o],"class",n.join(" ").trim())}return this},e.removeClass=function(t){if("function"==typeof t)return i(this,(function(n,r){e.removeClass.call([r],t.call(r,n,r.attribs.class||""))}));var n=g(t),s=n.length,o=0===arguments.length;return i(this,(function(t,e){if(r(e))if(o)e.attribs.class="";else{for(var i=g(e.attribs.class),a=!1,c=0;c<s;c++){var l=i.indexOf(n[c]);l>=0&&(i.splice(l,1),a=!0,c--)}a&&(e.attribs.class=i.join(" "))}}))},e.toggleClass=function(t,n){if("function"==typeof t)return i(this,(function(r,i){e.toggleClass.call([i],t.call(i,r,i.attribs.class||"",n),n)}));if(!t||"string"!=typeof t)return this;for(var s=t.split(c),o=s.length,a="boolean"==typeof n?n?1:-1:0,l=this.length,u=0;u<l;u++)if(r(this[u])){for(var h=g(this[u].attribs.class),p=0;p<o;p++){var f=h.indexOf(s[p]);a>=0&&f<0?h.push(s[p]):a<=0&&f>=0&&h.splice(f,1)}this[u].attribs.class=h.join(" ")}return this},e.is=function(t){return!!t&&this.filter(t).length>0}})),ms=g((function(t,e){var n=Pi.domEach,r=jt.DomUtils.uniqueSort,i=Pi.isTag,s=/^\s*[~+]/;function o(t){return"function"==typeof t?function(e,n){return t.call(e,n,e)}:t.cheerio?t.is.bind(t):function(e){return t===e}}function a(t,n,r,i){for(var s=[];n&&s.length<i&&"root"!==n.type;)r&&!e.filter.call([n],r,t).length||s.push(n),n=n.parent;return s}e.find=function(t){if(!t)return this._make([]);var e=this.toArray();if("string"!=typeof t){var n=this.constructor.contains,r=t.cheerio?t.get():[t];return this._make(r.filter((function(t){return e.some((function(e){return n(e,t)}))})))}var o=s.test(t)?e:e.reduce((function(t,e){return Array.isArray(e.children)?t.concat(e.children.filter(i)):t}),[]),a=Object.assign({context:e},this.options);return this._make(fs.select(t,o,a))},e.parent=function(t){var r=[];return n(this,(function(t,e){var n=e.parent;n&&"root"!==n.type&&r.indexOf(n)<0&&r.push(n)})),t&&(r=e.filter.call(r,t,this)),this._make(r)},e.parents=function(t){var e=[];return this.get().reverse().forEach((function(n){a(this,n.parent,t,1/0).forEach((function(t){-1===e.indexOf(t)&&e.push(t)}))}),this),this._make(e)},e.parentsUntil=function(t,n){var r,s,o=[];return"string"==typeof t?s=this.parents(t).toArray():t&&t.cheerio?s=t.toArray():t&&(r=t),this.toArray().reverse().forEach((function(t){for(;(t=t.parent)&&(r&&t!==r||s&&-1===s.indexOf(t)||!r&&!s);)i(t)&&-1===o.indexOf(t)&&o.push(t)}),this),n?e.filter.call(o,n,this):this._make(o)},e.closest=function(t){var e=[];return t?(n(this,(function(n,r){var i=a(this,r,t,1)[0];i&&e.indexOf(i)<0&&e.push(i)})),this._make(e)):this._make(e)},e.next=function(t){if(!this[0])return this;var r=[];return n(this,(function(t,e){for(;e=e.next;)if(i(e))return void r.push(e)})),t?e.filter.call(r,t,this):this._make(r)},e.nextAll=function(t){if(!this[0])return this;var r=[];return n(this,(function(t,e){for(;e=e.next;)i(e)&&-1===r.indexOf(e)&&r.push(e)})),t?e.filter.call(r,t,this):this._make(r)},e.nextUntil=function(t,r){if(!this[0])return this;var s,o,a=[];return"string"==typeof t?o=this.nextAll(t).toArray():t&&t.cheerio?o=t.get():t&&(s=t),n(this,(function(t,e){for(;(e=e.next)&&(s&&e!==s||o&&-1===o.indexOf(e)||!s&&!o);)i(e)&&-1===a.indexOf(e)&&a.push(e)})),r?e.filter.call(a,r,this):this._make(a)},e.prev=function(t){if(!this[0])return this;var r=[];return n(this,(function(t,e){for(;e=e.prev;)if(i(e))return void r.push(e)})),t?e.filter.call(r,t,this):this._make(r)},e.prevAll=function(t){if(!this[0])return this;var r=[];return n(this,(function(t,e){for(;e=e.prev;)i(e)&&-1===r.indexOf(e)&&r.push(e)})),t?e.filter.call(r,t,this):this._make(r)},e.prevUntil=function(t,r){if(!this[0])return this;var s,o,a=[];return"string"==typeof t?o=this.prevAll(t).toArray():t&&t.cheerio?o=t.get():t&&(s=t),n(this,(function(t,e){for(;(e=e.prev)&&(s&&e!==s||o&&-1===o.indexOf(e)||!s&&!o);)i(e)&&-1===a.indexOf(e)&&a.push(e)})),r?e.filter.call(a,r,this):this._make(a)},e.siblings=function(t){var n=this.parent(),r=(n?n.children():this.siblingsAndMe()).toArray().filter((function(t){return i(t)&&!this.is(t)}),this);return void 0!==t?e.filter.call(r,t,this):this._make(r)},e.children=function(t){var n=this.toArray().reduce((function(t,e){return t.concat(e.children.filter(i))}),[]);return void 0===t?this._make(n):e.filter.call(n,t,this)},e.contents=function(){var t=this.toArray().reduce((function(t,e){return t.concat(e.children)}),[]);return this._make(t)},e.each=function(t){for(var e=0,n=this.length;e<n&&!1!==t.call(this[e],e,this[e]);)++e;return this},e.map=function(t){for(var e=[],n=0;n<this.length;n++){var r=this[n],i=t.call(r,n,r);null!=i&&(e=e.concat(i))}return this._make(e)},e.filter=function(t,e){e=e||this;var n=this.toArray?this.toArray():this;return n="string"==typeof t?fs.filter(t,n,e.options):n.filter(o(t)),e._make(n)},e.not=function(t,e){var n=(e=e||this).toArray?e.toArray():e;if("string"==typeof t){var r=new Set(fs.filter(t,n,this.options));n=n.filter((function(t){return!r.has(t)}))}else{var i=o(t);n=n.filter((function(t,e){return!i(t,e)}))}return e._make(n)},e.has=function(t){var n=this;return e.filter.call(this,(function(e,r){return n._make(r).find(t).length>0}))},e.first=function(){return this.length>1?this._make(this[0]):this},e.last=function(){return this.length>1?this._make(this[this.length-1]):this},e.eq=function(t){return 0===(t=+t)&&this.length<=1?this:(t<0&&(t=this.length+t),this[t]?this._make(this[t]):this._make([]))},e.get=function(t){return null==t?Array.prototype.slice.call(this):this[t<0?this.length+t:t]},e.index=function(t){var e,n;return 0===arguments.length?(e=this.parent().children(),n=this[0]):"string"==typeof t?(e=this._make(t),n=this[0]):(e=this,n=t.cheerio?t[0]:t),e.get().indexOf(n)},e.slice=function(){return this._make([].slice.apply(this,arguments))},e.end=function(){return this.prevObject||this._make([])},e.add=function(t,e){var n=this._make(t,e),i=r(this.get().concat(n.get()));return this._make(i)},e.addBack=function(t){return this.add(arguments.length?this.prevObject.filter(t):this.prevObject)}})),Es=g((function(t,e){var n=ds.html,r=ds.text,i=Ii.update,s=Pi.domEach,o=Pi.cloneDom,a=Pi.isHtml,c=Array.prototype.slice,l=jt.DomUtils;function u(t){return function(){var e=c.call(arguments),r=this.length-1;return s(this,(function(i,s){var o="function"==typeof e[0]?e[0].call(s,i,n(s.children)):e,a=this._makeDomArray(o,i<r);t(a,s.children,s)}))}}function h(t,e,n,r,i){for(var s=[e,n].concat(r),o=t[e-1]||null,a=t[e+n]||null,c=0;c<r.length;++c){var l=r[c],u=l.parent,h=u&&u.children.indexOf(r[c]);u&&h>-1&&(u.children.splice(h,1),i===u&&e>h&&s[0]--),l.parent=i,l.prev&&(l.prev.next=l.next||null),l.next&&(l.next.prev=l.prev||null),l.prev=r[c-1]||o,l.next=r[c+1]||a}return o&&(o.next=r[0]),a&&(a.prev=r[r.length-1]),t.splice.apply(t,s)}function p(t){return function(e){for(var n="function"==typeof e&&e,r=this.length-1,i=this.parents().last(),s=0;s<this.length;s++){var o=this[s];n&&(e=n.call(o,s)),"string"!=typeof e||a(e)||(e=i.find(e).clone());for(var c=this._makeDomArray(e,s<r).slice(0,1),l=c[0],u=0;l&&l.children&&u<l.children.length;)"tag"===l.children[u].type?(l=l.children[u],u=0):u++;t(o,l,c)}return this}}e._makeDomArray=function(t,e){return null==t?[]:t.cheerio?e?o(t.get()):t.get():Array.isArray(t)?t.reduce(function(t,n){return t.concat(this._makeDomArray(n,e))}.bind(this),[]):"string"==typeof t?Ii(t,this.options,!1).children:e?o([t]):[t]},e.appendTo=function(t){return t.cheerio||(t=this.constructor.call(this.constructor,t,null,this._originalRoot)),t.append(this),this},e.prependTo=function(t){return t.cheerio||(t=this.constructor.call(this.constructor,t,null,this._originalRoot)),t.prepend(this),this},e.append=u((function(t,e,n){h(e,e.length,0,t,n)})),e.prepend=u((function(t,e,n){h(e,0,0,t,n)})),e.wrap=p((function(t,e,n){var r=t.parent,s=r.children,o=s.indexOf(t);i([t],e),h(s,o,0,n,r)})),e.wrapInner=p((function(t,e,n){i(t.children,e),i(n,t)})),e.unwrap=function(t){var e=this;return this.parent(t).not("body").each((function(t,n){e._make(n).replaceWith(n.children)})),this},e.wrapAll=function(t){if(this[0]){"function"==typeof t&&(t=t.call(this[0]));for(var e={children:this._make(t).insertBefore(this[0])},n=0;e&&e.children&&n<e.children.length;)"tag"===e.children[n].type?(e=e.children[n],n=0):n++;this._make(e).append(this)}return this},e.after=function(){var t=c.call(arguments),e=this.length-1;return s(this,(function(r,i){var s=i.parent;if(s){var o=s.children,a=o.indexOf(i);if(!(a<0)){var c="function"==typeof t[0]?t[0].call(i,r,n(i.children)):t;h(o,a+1,0,this._makeDomArray(c,r<e),s)}}}))},e.insertAfter=function(t){var e=[],n=this;return"string"==typeof t&&(t=this.constructor.call(this.constructor,t,null,this._originalRoot)),t=this._makeDomArray(t),n.remove(),s(t,(function(t,r){var i=n._makeDomArray(n.clone()),s=r.parent;if(s){var o=s.children,a=o.indexOf(r);a<0||(h(o,a+1,0,i,s),e.push(i))}})),this.constructor.call(this.constructor,this._makeDomArray(e))},e.before=function(){var t=c.call(arguments),e=this.length-1;return s(this,(function(r,i){var s=i.parent;if(s){var o=s.children,a=o.indexOf(i);if(!(a<0)){var c="function"==typeof t[0]?t[0].call(i,r,n(i.children)):t;h(o,a,0,this._makeDomArray(c,r<e),s)}}}))},e.insertBefore=function(t){var e=[],n=this;return"string"==typeof t&&(t=this.constructor.call(this.constructor,t,null,this._originalRoot)),t=this._makeDomArray(t),n.remove(),s(t,(function(t,r){var i=n._makeDomArray(n.clone()),s=r.parent;if(s){var o=s.children,a=o.indexOf(r);a<0||(h(o,a,0,i,s),e.push(i))}})),this.constructor.call(this.constructor,this._makeDomArray(e))},e.remove=function(t){var e=t?this.filter(t):this;return s(e,(function(t,e){l.removeElement(e),e.prev=e.next=e.parent=null})),this},e.replaceWith=function(t){return s(this,(function(e,n){var r=n.parent;if(r){var s=r.children,o=this._makeDomArray("function"==typeof t?t.call(n,e,n):t);i(o,null);var a=s.indexOf(n);h(s,a,1,o,r),o.indexOf(n)<0&&(n.parent=n.prev=n.next=null)}}))},e.empty=function(){return s(this,(function(t,e){e.children.forEach((function(t){t.next=t.prev=t.parent=null})),e.children.length=0}))},e.html=function(t){if(void 0===t)return this[0]&&this[0].children?n(this[0].children,this.options):null;var e=Object.apply({},this.options);return s(this,(function(n,r){r.children.forEach((function(t){t.next=t.prev=t.parent=null})),e.context=r;var s=t.cheerio?t.clone().get():Ii(""+t,e,!1).children;i(s,r)}))},e.toString=function(){return n(this,this.options)},e.text=function(t){return void 0===t?r(this):s(this,"function"==typeof t?function(n,i){return e.text.call(this._make(i),t.call(i,n,r([i])))}:function(e,n){n.children.forEach((function(t){t.next=t.prev=t.parent=null}));var r=new Tt.Text(t);i(r,n)})},e.clone=function(){return this._make(o(this.get()))}})),_s=Pi.domEach,gs=Object.prototype.toString;function As(t,e,n,r){if("string"==typeof e){var i=Ns(t);"function"==typeof n&&(n=n.call(t,r,i[e])),""===n?delete i[e]:null!=n&&(i[e]=n),t.attribs.style=(s=i,Object.keys(s||{}).reduce((function(t,e){return t+(t?" ":"")+e+": "+s[e]+";"}),""))}else"object"==typeof e&&Object.keys(e).forEach((function(n){As(t,n,e[n])}));var s}function Ns(t,e){if(t&&t.attribs){var n=function(t){return(t=(t||"").trim())?t.split(";").reduce((function(t,e){var n=e.indexOf(":");return n<1||n===e.length-1||(t[e.slice(0,n).trim()]=e.slice(n+1).trim()),t}),{}):{}}(t.attribs.style);if("string"==typeof e)return n[e];if(Array.isArray(e)){var r={};return e.forEach((function(t){null!=n[t]&&(r[t]=n[t])})),r}return n}}var Os,Ss={css:function(t,e){return 2===arguments.length||"[object Object]"===gs.call(t)?_s(this,(function(n,r){As(r,t,e,n)})):Ns(this[0],t)}},Cs=/%20/g,vs=/\r?\n/g,bs={serialize:function(){return this.serializeArray().map((function(t){return encodeURIComponent(t.name)+"="+encodeURIComponent(t.value)})).join("&").replace(Cs,"+")},serializeArray:function(){var t=this.constructor;return this.map((function(e,n){var r=t(n);return"form"===n.name?r.find("input,select,textarea,keygen").toArray():r.filter("input,select,textarea,keygen").toArray()})).filter('[name!=""]:not(:disabled):not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((function(e,n){var r=t(n),i=r.attr("name"),s=r.val();return null==s&&(s=""),Array.isArray(s)?s.map((function(t){return{name:i,value:t.replace(vs,"\r\n")}})):{name:i,value:s.replace(vs,"\r\n")}})).get()}},ys=g((function(t){var e=Mi,n=Li,r=Pi.isHtml,i=[Ts,ms,Es,Ss,bs],s=t.exports=function(t,i,o,a){return this instanceof s?(this.length=0,this.options=Object.assign({},e,this.options,n(a)),t?(o&&("string"==typeof o&&(o=Ii(o,this.options,!1)),this._root=s.call(this,o)),"string"==typeof t&&r(t)&&(t=Ii(t,this.options,!1).children),t.cheerio?t:(((c=t).name||"root"===c.type||"text"===c.type||"comment"===c.type)&&(t=[t]),Array.isArray(t)?(t.forEach((function(t,e){this[e]=t}),this),this.length=t.length,this):(i?"string"==typeof i?r(i)?(i=Ii(i,this.options,!1),i=s.call(this,i)):(t=i+" "+t,i=this._root):i.cheerio||(i=s.call(this,i)):i=this._root,i?i.find(t):this))):this):new s(t,i,o,a);var c};s.prototype.cheerio="[cheerio object]",s.prototype.splice=Array.prototype.splice,s.prototype._make=function(t,e){var n=new this.constructor(t,e,this._root,this.options);return n.prevObject=this,n},s.prototype.toArray=function(){return this.get()},s.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],i.forEach((function(t){Object.assign(s.prototype,t)}))})),Is=g((function(t,e){var n=Mi,r=Li;e.load=function(t,i,s){if(null==t)throw new Error("cheerio.load() expects a string");i=Object.assign({},n,r(i)),void 0===s&&(s=!0);var o=Ii(t,i,s);function a(t,e,n,r){return this instanceof a?(r=Object.assign({},i,r),ys.call(this,t,e,n||o,r)):new a(t,e,n,r)}return a.prototype=Object.create(ys.prototype),a.prototype.constructor=a,a.fn=a.prototype,a.prototype._originalRoot=o,Object.assign(a,ds,e),a._root=o,a._options=i,a}})),Rs="1.0.0-rc.5",Ms=g((function(t,e){(e=t.exports=ys).version=Rs,e.load=Is.load,e.html=ds.html,e.text=ds.text,e.xml=ds.xml,e.contains=ds.contains,e.merge=ds.merge,e.parseHTML=ds.parseHTML,e.root=ds.root}));class Ls{constructor(t){this.component=t,T(this,this.component,["componentProvider"]),this.prepareImports()}prepareImports(){const t=Ms.load(this.component.source);this.localImports=[],this.imports=[];[...t("link[presto]")].map((t=>{const e=this.componentProvider.getComponentByHref(this,t.attribs.href);this.localImports.push(e),this.imports.push(e)})),this.imports=this.imports.concat(this.componentProvider.included)}prepareAliases(){}getComponentByExpressionName(t){return"presto-root"==t?this.componentProvider.components.slice(-1)[0]:this.imports.filter((e=>e.expressionName===t))[0]}getComponentByGivenName(t){return this.imports.find((e=>e.name===t))}}class ks extends Error{constructor(t){super();const e=Object.assign({name:"PrestoError",message:"A generic PrestoError occurred. That's all we know.",code:Os.UNKNOWN,showStack:!1},t);this.name=e.name,this.message=e.message,this.code=e.code,this.showStack=e.showStack}}class Ds extends ks{constructor(t){"string"!=typeof t.message&&(t.messageBuilder=t.message),super(t);const e=Object.assign({name:"PrestoComponentError",message:"A generic PrestoComponentError occurred. That's all we know.",showStack:!0},t);this.component=t.component,this.message=e.message,this.name=e.name,this.showStack=e.showStack,this.buildStack(),this.buildMessage(t)}buildMessage(t){this.message=void 0===t.messageBuilder?this.message:t.messageBuilder(this)}buildStack(){this.stackArr=["Import Stack:"];let t=this.component;for(;t.context instanceof Ls;){const e=void 0===t.file?t.path:t.file;this.stackArr.push(`${E(4)}- ${e}`),t=t.context.component}this.stackArr.push(`${E(4)}- ${t.path}`),this.stack=this.stackArr.join("\n")}}function Ps(t){throw t}function xs(t,e){return new ks({code:Os.CONFIG_BAD_PROP_TYPE,name:"PrestoConfigError",message:`Property \`${t}\` of given config has incorrect type \`${typeof e}\`.`})}function ws(t,e){return new ks({code:Os.CONFIG_BAD_PROP_VALUE,name:"PrestoConfigError",message:`Property \`${t}\` of given config has incorrect value \`${e}\`.`})}function Hs(t){return new ks({code:Os.CONFIG_MISSING_PROP,name:"PrestoConfigError",message:`Required property \`${t}\` is missing for given config.`})}!function(t){t.UNKNOWN="UNKNOWN_PRESTO_ERROR",t.NO_SUCH_FILE="NO_SUCH_FILE",t.CONFIG_BAD_PROP_TYPE="CONFIG_BAD_PROP_TYPE",t.CONFIG_BAD_PROP_VALUE="CONFIG_BAD_PROP_VALUE",t.CONFIG_MISSING_PROP="CONFIG_MISSING_PROP",t.COMPONENT_NO_META="COMPONENT_NO_META",t.COMPONENT_NO_FILE="COMPONENT_NO_FILE",t.EXPRESSION_REQUIRED_PROP="EXPRESSION_REQUIRED_PROP",t.EXPRESSION_ACTION_EXISTS="EXPRESSION_ACTION_EXISTS",t.EXPRESSION_PROP_EXISTS="EXPRESSION_PROP_EXISTS",t.COMPONENT_DEFAULT_SLOT_MIX="COMPONENT_DEFAULT_SLOT_MIX",t.COMPONENT_UNRESOLVED_UTILIZE="COMPONENT_UNRESOLVED_UTILIZE",t.COMPONENT_COALESCE_WILDCARD_DUALITY="COMPONENT_COALESCE_WILDCARD_DUALITY",t.COMPONENT_COALESCE_CONFLICT="COMPONENT_COALESCE_CONFLICT"}(Os||(Os={}));var Us=g((function(t,e){var n,r;Object.defineProperty(e,"__esModule",{value:!0}),e.TagTypes=e.MustacheTypes=void 0,(n=e.MustacheTypes||(e.MustacheTypes={})).SMUSTACHE="s__mustache",n.ESMUSTACHE="es__mustache",n.MUSTACHE="mustache",n.EMUSTACHE="e__mustache",(r=e.TagTypes||(e.TagTypes={})).TAG="tag",r.ETAG="e__tag"})),Fs=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getLineAndColumn=e.isEscapedMustache=e.isSafeMustache=e.isMustache=e.isEscapedTag=e.isTag=void 0,e.isTag=function(t,e){return(t.type===Us.TagTypes.TAG||t.type===Us.TagTypes.ETAG)&&(!e||t.properties.name===e)},e.isEscapedTag=function(t,e){return t.type===Us.TagTypes.ETAG&&(!e||t.properties.name===e)},e.isMustache=function(t){return t.type===Us.MustacheTypes.EMUSTACHE||t.type===Us.MustacheTypes.ESMUSTACHE||t.type===Us.MustacheTypes.MUSTACHE||t.type===Us.MustacheTypes.SMUSTACHE},e.isSafeMustache=function(t){return t.type===Us.MustacheTypes.ESMUSTACHE||t.type===Us.MustacheTypes.SMUSTACHE},e.isEscapedMustache=function(t){return t.type===Us.MustacheTypes.EMUSTACHE||t.type===Us.MustacheTypes.ESMUSTACHE},e.getLineAndColumn=function(t){return"newline"===t.type||"raw"===t.type?[t.line,0]:[t.loc.start.line,t.loc.start.col]}})),Bs=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMustache=e.getTag=void 0;const n=/^(\s*)(@{1,2})(!)?([a-zA-Z._]+)(\s{0,2})/;e.getTag=function(t,e,r,i,s,o){const a=n.exec(t);if(!a)return null;const c=a[4];let l=s[c];if(!l&&o&&(l=o(c)),!l)return null;const u="@@"===a[2],h=!!a[3],p=a[1].length,f=a[5].length,d=l.seekable,T=l.block,m=!!l.noNewLine;return i+=p+a[2].length+c.length+f,h&&i++,{name:c,filename:e,seekable:d,selfclosed:h,block:T,line:r,col:i,escaped:u,hasBrace:d&&"("===t[i],noNewLine:m}},e.getMustache=function(t,e,n,r){const i=t.indexOf("{{");if(-1===i)return null;const s=i,o="-"===t[i+2]&&"-"===t[i+3];return o?{isComment:o,filename:e,line:n,col:r+s,realCol:s}:{isComment:o,safe:"{"===t[i+2],filename:e,escaped:"@"===t[i-1],line:n,col:r+s,realCol:s}}})),Gs=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scanner=void 0;e.Scanner=class{constructor(t,e,n,r){this.pattern=t,this.line=n,this.col=r,this.tolaretionCounts=0,this.tolerateLhs="",this.tolerateRhs="",this.patternLength=this.pattern.length,this.closed=!1,this.match="",this.leftOver="",this.loc={line:this.line,col:this.col},this.tolerateLhs=e[0],this.tolerateRhs=e[1]}matchesPattern(t,e){for(let n=0;n<this.patternLength;n++)if(this.pattern[n]!==t[e+n])return!1;return!0}scan(t){if("\n"===t)return this.loc.line++,this.loc.col=0,void(this.match+="\n");if(!t.trim())return;const e=t.length;let n=0;for(;n<e;){const e=t[n];if(0===this.tolaretionCounts&&this.matchesPattern(t,n)){n+=this.patternLength,this.closed=!0;break}e===this.tolerateLhs&&this.tolaretionCounts++,e===this.tolerateRhs&&this.tolaretionCounts--,this.match+=e,n++}this.closed&&(this.loc.col+=n,this.leftOver=t.slice(n))}}})),js=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.EdgeError=void 0;class n extends Error{constructor(t,e,n){super(t),this.message=t,this.code=e,this.line=n.line,this.col=n.col,this.filename=n.filename;const r=this.stack.split("\n");r.splice(1,0,` at anonymous (${this.filename}:${this.line}:${this.col})`),this.stack=r.join("\n")}}e.EdgeError=n})),qs=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.unclosedTag=e.unclosedCurlyBrace=e.unopenedParen=e.unclosedParen=e.cannotSeekStatement=void 0,e.cannotSeekStatement=function(t,e,n){return new js.EdgeError(`Unexpected token "${t}"`,"E_CANNOT_SEEK_STATEMENT",{line:e.line,col:e.col,filename:n})},e.unclosedParen=function(t,e){return new js.EdgeError('Missing token ")"',"E_UNCLOSED_PAREN",{line:t.line,col:t.col,filename:e})},e.unopenedParen=function(t,e){return new js.EdgeError('Missing token "("',"E_UNOPENED_PAREN",{line:t.line,col:t.col,filename:e})},e.unclosedCurlyBrace=function(t,e){return new js.EdgeError('Missing token "}"',"E_UNCLOSED_CURLY_BRACE",{line:t.line,col:t.col,filename:e})},e.unclosedTag=function(t,e,n){return new js.EdgeError(`Unclosed tag ${t}`,"E_UNCLOSED_TAG",{line:e.line,col:e.col,filename:n})}})),Ks=g((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Tokenizer=void 0;e.Tokenizer=class{constructor(t,e,n){this.template=t,this.tagsDef=e,this.options=n,this.tokens=[],this.tagStatement=null,this.mustacheStatement=null,this.line=0,this.isLastLineATag=!1,this.dropNewLine=!1,this.openedTags=[]}getRawNode(t){return{type:"raw",value:t,filename:this.options.filename,line:this.line}}getNewLineNode(t){return{type:"newline",filename:this.options.filename,line:(t||this.line)-1}}getTagNode(t,e,n){return{type:t.escaped?Us.TagTypes.ETAG:Us.TagTypes.TAG,filename:t.filename,properties:{name:t.name,jsArg:e,selfclosed:t.selfclosed},loc:{start:{line:t.line,col:t.col},end:n},children:[]}}consumeTag(t,e,n){t.block&&!t.selfclosed?this.openedTags.push(this.getTagNode(t,e,n)):this.consumeNode(this.getTagNode(t,e,n))}handleTagOpening(t,e){if(e.seekable&&!e.hasBrace)throw qs.unopenedParen({line:e.line,col:e.col},e.filename);if(!e.seekable)return this.consumeTag(e,"",{line:e.line,col:e.col}),void((e.noNewLine||t.endsWith("~"))&&(this.dropNewLine=!0));e.col+=1,this.tagStatement={tag:e,scanner:new Gs.Scanner(")",["(",")"],this.line,e.col)},this.feedCharsToCurrentTag(t.slice(e.col))}feedCharsToCurrentTag(t){const{tag:e,scanner:n}=this.tagStatement;if(n.scan(t),n.closed){if(this.consumeTag(e,n.match,n.loc),"~"===n.leftOver.trim())return this.tagStatement=null,void(this.dropNewLine=!0);if(n.leftOver.trim())throw qs.cannotSeekStatement(n.leftOver,n.loc,e.filename);e.noNewLine&&(this.dropNewLine=!0),this.tagStatement=null}}getMustacheType(t){return t.safe?t.escaped?Us.MustacheTypes.ESMUSTACHE:Us.MustacheTypes.SMUSTACHE:t.escaped?Us.MustacheTypes.EMUSTACHE:Us.MustacheTypes.MUSTACHE}getMustacheNode(t,e,n){return{type:this.getMustacheType(t),filename:t.filename,properties:{jsArg:e},loc:{start:{line:t.line,col:t.col},end:n}}}getCommentNode(t,e,n){return{type:"comment",filename:t.filename,value:e,loc:{start:{line:t.line,col:t.col},end:n}}}handleMustacheOpening(t,e){const n=e.isComment?"--}}":e.safe?"}}}":"}}",r=e.isComment||!e.escaped?e.realCol:e.realCol-1;r>0&&this.consumeNode(this.getRawNode(t.slice(0,r))),e.col+=n.length,e.realCol+=n.length,this.mustacheStatement={mustache:e,scanner:new Gs.Scanner(n,["{","}"],e.line,e.col)},this.feedCharsToCurrentMustache(t.slice(e.realCol))}feedCharsToCurrentMustache(t){const{mustache:e,scanner:n}=this.mustacheStatement;if(n.scan(t),n.closed){if(e.isComment?this.consumeNode(this.getCommentNode(e,n.match,n.loc)):this.consumeNode(this.getMustacheNode(e,n.match,n.loc)),n.leftOver.trim()){const t=Bs.getMustache(n.leftOver,this.options.filename,n.loc.line,n.loc.col);if(t)return void this.handleMustacheOpening(n.leftOver,t);this.consumeNode(this.getRawNode(n.leftOver))}this.mustacheStatement=null}}isClosingTag(t){if(!this.openedTags.length)return!1;t=t.trim();const e=`@end${this.openedTags[this.openedTags.length-1].properties.name}`;return t===e||t===`${e}~`||"@end"===t||"@end~"===t}consumeNode(t){this.openedTags.length?this.openedTags[this.openedTags.length-1].children.push(t):this.tokens.push(t)}pushNewLine(t){1!==(t||this.line)&&(this.dropNewLine?this.dropNewLine=!1:this.consumeNode(this.getNewLineNode(t)))}processText(t){if("function"==typeof this.options.onLine&&(t=this.options.onLine(t)),this.tagStatement)return this.feedCharsToCurrentTag("\n"),void this.feedCharsToCurrentTag(t);if(this.mustacheStatement)return this.feedCharsToCurrentMustache("\n"),void this.feedCharsToCurrentMustache(t);if(this.isClosingTag(t))return this.consumeNode(this.openedTags.pop()),void(t.endsWith("~")&&(this.dropNewLine=!0));const e=Bs.getTag(t,this.options.filename,this.line,0,this.tagsDef,this.options.claimTag);if(e)return this.isLastLineATag&&this.pushNewLine(),this.isLastLineATag=!0,void this.handleTagOpening(t,e);this.isLastLineATag=!1;const n=Bs.getMustache(t,this.options.filename,this.line,0);if(n)return this.pushNewLine(),void this.handleMustacheOpening(t,n);this.pushNewLine(),this.consumeNode(this.getRawNode(t))}checkForErrors(){if(this.tagStatement){const{tag:t}=this.tagStatement;throw qs.unclosedParen({line:t.line,col:t.col},t.filename)}if(this.mustacheStatement){const{mustache:t}=this.mustacheStatement;throw qs.unclosedCurlyBrace({line:t.line,col:t.col},t.filename)}if(this.openedTags.length){const t=this.openedTags[this.openedTags.length-1];throw qs.unclosedTag(t.properties.name,t.loc.start,t.filename)}}parse(){const t=this.template.split(/\r\n|\r|\n/g),e=t.length;for(;this.line<e;){const e=t[this.line];this.line++,this.processText(e)}this.checkForErrors()}}})),$s=g((function(t,e){var n=_&&_.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=_&&_.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=_&&_.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&n(e,t,i);return r(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.utils=e.TagTypes=e.MustacheTypes=e.Tokenizer=void 0;const s=i(Fs);e.utils=s,Object.defineProperty(e,"Tokenizer",{enumerable:!0,get:function(){return Ks.Tokenizer}}),Object.defineProperty(e,"MustacheTypes",{enumerable:!0,get:function(){return Us.MustacheTypes}}),Object.defineProperty(e,"TagTypes",{enumerable:!0,get:function(){return Us.TagTypes}})}));const Ys=[{char:"=",sub:"presto-equals",safe:"="},{char:'"',sub:"presto-quote",safe:"""},{char:"<",sub:"presto-lessthan",safe:"<"},{char:">",sub:"presto-greaterthan",safe:">"},{char:"`",sub:"presto-backtick",safe:"\\`"}],Vs=[{attr:"x-html",sub:""},{attr:"x-bind",sub:""},{attr:"value",sub:"x-model"},{attr:"x-model",sub:""},{attr:"x-text",sub:""}];function Qs(t,e){const{line:n,col:r}=e.loc.start;return function(t,e,n){const r=t.split("\n");let i=0;return r.slice(0,e-1).map((t=>{i=i+t.length+1})),i+=n,i}(t,n,r)}function zs(t,e){return function(t,e){let n,r=[],i=[];for(n=1;n<=e;n++){const s=t.charAt(e-n);if(0!==i.length||" "!==s&&"\n"!==s)if(r.includes('"')){if(r.push(s),!r.includes("="))break;if(" "===s)break;i.push(s)}else r.push(s)}return{rel:0!==i.length?i.reverse().slice(0,-1).join(""):"html",offset:n}}(t,Qs(t,e))}function Xs(t){const e=new $s.Tokenizer(t,{},{filename:""});e.parse();const n=e.tokens.filter((t=>"mustache"===t.type));let r=!1;return n.map((e=>{const n=zs(t,e);r||(r="html"===n.rel)})),r}class Ws{constructor(t,e){this.givenKey=t,this.key=t,this.value=e,this.prepareAttribute()}prepareAttribute(){this.exposes=this.givenKey.indexOf("|")<0?"":this.givenKey.split("|")[0],this.key=""!==this.exposes?this.givenKey.split("|")[1]:this.givenKey,this.isProperty="::"===this.key.substr(0,2),this.isProperty&&(this.key=this.key.substr(2));const t=this.actions().filter((t=>t===this.key));this.action=t.length>0?t[0].substr(2):""}actions(){return["$$render","$$wrap"]}}class Zs{constructor(t){this.expression=t,this.prepareAttributes(),this.prepareAttributeProvides()}prepareAttributes(){const t=this.expression.element.attribs,e=Object.keys(t);this.attributes=[],this.wrapAttributes=[],e.forEach((e=>{var n;const r=new Ws(e,t[e]);if(""!==r.action&&void 0!==this.getActionAttribute(r.action))return Ps((i=(null===(n=this.expression.component)||void 0===n?void 0:n.name)||"INDEX",s=this.expression.context.component.path,o=e,new ks({code:Os.EXPRESSION_ACTION_EXISTS,name:"PrestoExpresssionError",message:`Expression "${i}" in component at "${s}" declares existing action ${o}.`})));var i,s,o;void 0!==this.getActionAttribute("wrap")?this.wrapAttributes.push(r):this.attributes.push(r)}))}getAssignedAttributes(){var t,e;return(0!==((null===(t=this.reservedAttributes)||void 0===t?void 0:t.length)||0)||0!==((null===(e=this.providedAttributes)||void 0===e?void 0:e.length)||0)?this.reservedAttributes:this.attributes).filter((t=>!t.isProperty&&""===t.action&&""===t.exposes))}getActionAttribute(t){const e=this.attributes.filter((e=>e.action===t));return e.length>0?e[0].value:void 0}getPropertyAttributes(){return this.attributes.filter((t=>t.isProperty))}getActionAttributes(){return this.attributes.filter((t=>""!==t.action))}prepareAttributeProvides(){if(this.expression.component.isInputComponent)return;const{utilizesComponents:t,providesAttributes:e,reservesAttributes:n}=this.expression.component;let r=[],i=!1;t.forEach((t=>{100!==t.acceptsAttributes.length?i||(r=r.concat(t.acceptsAttributes)):i=!0}));const s=100===n.length,o=100===e.length||i&&!s;this.providedAttributes=[],this.reservedAttributes=[];const a=r.concat(e),c=n;o?this.attributes.forEach((t=>{c.includes(t.givenKey.toLowerCase())?this.reservedAttributes.push(t):this.providedAttributes.push(t)})):this.attributes.forEach((t=>{a.includes(t.givenKey.toLowerCase())?this.providedAttributes.push(t):this.reservedAttributes.push(t)}))}}class Js{constructor(t,e=!1){this.key=t.key.toLowerCase(),this.value=t.value,this.empty=e,this.prepareProp()}prepareProp(){this.isMagic="$"===this.key.substr(0,1),this.isMagic&&(this.key=this.key.substr(1))}}class to{constructor(t){this.expression=t,this.componentProps=t.component.propManager,this.prepareProps()}prepareProps(){const t=this.expression.attributeManager.getPropertyAttributes();this.props=[],t.map((t=>{this.props.push(new Js(t))})),this.componentProps.props.map((t=>{var e;if(this.props.filter((e=>e.key===t.key)).length>0)return;const n=""===t.defaultValue?(null===(e=this.expression.output.props)||void 0===e?void 0:e[t.key])||"":t.defaultValue;if(""===n)return;const r={key:t.key,value:n};this.props.push(new Js(r))}))}getProp(t){var e;t=t.toLowerCase();const n=this.props.filter((e=>e.key===t)),r=null===(e=this.expression.output.props)||void 0===e?void 0:e[t];return 0===n.length?void 0===r?new Js({key:t,value:""},!0):new Js({key:t,value:r}):n[0]}getPropValue(t,e=""){const n=this.componentProps.getProp(t),r=this.getProp(t),i=void 0===n?void 0:n.getValue(r);return""===e?i:this.pipeValue(i,e)}pipeValue(t,e){const n=void 0===t?"":t,r=this.expression.component.pipes,i=this.expression.output.pipes;return e in r?r[e](n):e in i?i[e](n):t}getMagicProps(){return this.props.filter((t=>t.isMagic))}getNormalProps(){return this.props.filter((t=>!t.isMagic))}processStandardTokens(){if(0===this.getNormalProps().length)return;const t=new $s.Tokenizer(this.expression.source,{},{filename:""});t.parse();const e=t.tokens.filter((t=>"mustache"===t.type));let n=[];e.map((t=>{const e=t.properties.jsArg;let r=e,i="";if(r.indexOf("|")>=0){const t=r.split("|");t.length>2&&Ps(new Error(`Property exposed as "{{${r}}}" implements more than one pipe.`)),i=t[1].trim(),r=t[0]}const s=`${r.trim().toLowerCase()}`,o=this.getProp(s);let a=n.filter((t=>t.key===s&&t.pipe===i));if(o.isMagic)return;let c=this.getPropValue(s,i);a.length>0&&(c=a[0].value),n.push({key:s,pipe:i,value:c}),void 0!==c&&(this.expression.source=this.expression.source.replace(`{{${e}}}`,c))}))}processMagicTokens(){if(0===this.getMagicProps().length)return;let t=this.expression.source,e=[],n=!0;for(;n;){const r=new $s.Tokenizer(t,{},{filename:""});r.parse();let i,s=r.tokens.filter((t=>"mustache"===t.type));if(e.forEach((t=>{const{jsArg:e}=t.properties;s=s.filter((t=>t.properties.jsArg!==e))})),0===s.length)break;n=1!==s.length,s.map((e=>{"html"!==zs(t,e).rel&&Xs(t)||void 0!==i||(i=e)}));const o=i.properties.jsArg,a=this.getPropValue(o.trim()),c=Qs(t,i),l=zs(t,i);if(void 0!==a)if("html"===l.rel){t=m(t,c-2,`{{${o}}}`,`<presto-magic>${a}</presto-magic>`);const e=Ms.load(t);let n=e("presto-magic").parent();if("name"in n[0]){const t=n[0];if("slot"===t.name&&"presto"in t.attribs){const t=n.parent();e(t).html(n.html()),n=t}}let r=n.html();r=r.replace("<presto-magic>","presto-ph-open"),r=r.replace("</presto-magic>","presto-ph-close"),Ys.map((t=>{const e=new RegExp(t.char,"g");r=r.replace(e,t.sub)}));let i={};i["x-html"]=`\`${r}\``,n.attr(i),n.empty(),t=e("body").html()}else{t=m(t,c-2,`{{${o}}}`,"presto-ph-open"+a+"presto-ph-close presto-magic"),t=m(t,c-(l.offset-1),"","presto-magic ")}else e.push(i)}t=t.replace(/presto-ph-open/g,"${"),t=t.replace(/presto-ph-close/g,"}"),this.expression.source=t}}class eo{constructor(t,e){this.context=t,this.element=e,this.context instanceof To?this.output=this.context:T(this,this.context,["output"]),this.initializeModules(),this.processWrap(),this.escapeUnsafeTags(),this.processCoalescence(),this.processProps(),this.commitDom(),this.processSlots(),this.next()}initializeModules(){const t=this.context.component.importManager;if(this.component=t.getComponentByExpressionName(this.element.name),this.source=this.component.source,this.component.isInputComponent){const t=new RegExp("((?<=<)head)|((?<=</)head)","gi");this.source=this.source.replace(t,"presto-head")}this.attributeManager=new Zs(this),this.propManager=new to(this)}processProps(){this.propManager.processStandardTokens(),this.propManager.processMagicTokens()}processCoalescence(){const t=Ms.load(this.source),{providedAttributes:e}=this.attributeManager;t("[\\$\\$accepts]").each(((n,r)=>{const i=t(r).attr("$$accepts"),s=0===i.trim().length;let o=[];const a=t(r).attr("$$rejects");let c=[];void 0!==a&&(c=a.split(" "));const l=t(r).attr("$$revises");let u=[];void 0!==l&&(u=l.split(" ")),e.forEach((t=>{""===t.exposes&&(c.includes(t.givenKey)||(s||i.indexOf(t.givenKey.toLowerCase())>=0)&&o.push(t))})),o.forEach((e=>{if(u.includes(e.givenKey))t(r).attr(e.givenKey,e.value);else{let n=t(r).attr(e.givenKey);n=void 0===n?"":`${n} `,t(r).attr(e.givenKey,`${n}${e.value}`)}})),t(r).removeAttr("$$accepts"),t(r).removeAttr("$$rejects"),t(r).removeAttr("$$revises")})),t("[\\$\\$exposes]").each(((e,n)=>{const r=t(n).attr("$$exposes");this.attributeManager.attributes.filter((t=>t.exposes===r)).forEach((e=>{const r=e.givenKey.split("|")[1];let i=t(n).attr(r);i=void 0===i?"":`${i} `,t(n).attr(r,`${i}${e.value}`)})),t(n).removeAttr("$$exposes")})),this.source=t.html()}processWrap(){let t=this.attributeManager.getActionAttribute("wrap");if(void 0===t)return;const e=this.attributeManager.wrapAttributes.map((t=>`${t.givenKey}="${t.value}"`)).join(" ");t=t.toLowerCase(),this.source=`<${t} ${e}>${this.source}</${t}>`}commitDom(){this.$=Ms.load(this.source)}processSlots(){const t=this.context.$(this.element).html();this.$("slot[presto]").each(((e,n)=>{const r=this.$(n).html();""===t.trim()?this.$(n).replaceWith(r):this.$(n).replaceWith(t)}))}escapeUnsafeTags(){mo.map((t=>{const e=new RegExp(`((?<=<)${t.unescaped})|((?<=</)${t.unescaped})`,"gi");this.source=this.source.replace(e,t.escaped)}))}next(){const t=this.attributeManager.getAssignedAttributes(),e=void 0===this.attributeManager.getActionAttribute("wrap")?"body":"body > *";t.map((t=>{[...this.$(e).children()].map((e=>{let n={};n[t.key]=t.key in e.attribs?`${e.attribs[t.key]} ${t.value}`:t.value,Ms(e).attr(n)}))})),this.component.importManager.imports.map((t=>{[...this.$(t.expressionName)].map((t=>{const e=new eo(this,t);Ms(t).replaceWith(Ms(e.$("body")[0]).html())}))})),this.html=this.$.html()}}let no=!("NO_COLOR"in process.env)&&("FORCE_COLOR"in process.env||"win32"===process.platform||null!=process.stdout&&process.stdout.isTTY&&process.env.TERM&&"dumb"!==process.env.TERM);const ro=(t,e,n,r)=>i=>no?t+(~(i+="").indexOf(e,4)?i.replace(n,r):i)+e:i,io=(t,e)=>ro(`[${t}m`,`[${e}m`,new RegExp(`\\x1b\\[${e}m`,"g"),`[${t}m`),so=Object.defineProperty({},"enabled",{get:()=>no,set:t=>no=t}),oo=ro("[1m","[22m",/\x1b\[22m/g,"[22m[1m"),ao=ro("[2m","[22m",/\x1b\[22m/g,"[22m[2m"),co=io(31,39),lo=io(32,39),uo=io(33,39),ho=io(35,39);("0"===process.env.FORCE_COLOR||process.env.NO_COLOR)&&(so.enabled=!1);const po=console.error.bind(console);function fo(t,e=!1){let n=t.message||t;t.name&&(n=`${t.name}: ${n}`);const r=n||t.message;po(oo(co(`[!] ${oo(r.toString())}`))),!t.stack||t instanceof ks&&!t.showStack||po(ao(t.stack)),po(""),e||process.exit(0)}class To{constructor(t,e){this.instance=t,this.output=e,T(this,this.instance,["componentProvider","component"]),this.prepareOutput()}prepareOutput(){const t={type:"html",formatting:"tidy",comments:!1,mustache:!0,props:{},pipes:{}},{type:e,file:n,formatting:r,comments:i,mustache:s,props:o,pipes:a}=this.output;this.file=d(void 0===n?Ps(Ps(Hs("output.file"))):"string"!=typeof n?Ps(xs("output.file",n)):n),this.type=void 0===e?t.type:"string"!=typeof e?Ps(xs("output.type",e)):["html"].includes(e.toLowerCase())?e:Ps(ws("output.type",e)),this.formatting=void 0===r?t.formatting:"string"!=typeof r?Ps(xs("output.formatting",r)):["none","pretty","minify"].includes(r.toLowerCase())?r:Ps(ws("output.formatting",r)),this.comments=void 0===i?t.comments:"boolean"!=typeof i?Ps(xs("output.comments",i)):i,this.mustache=void 0===s?t.mustache:"boolean"!=typeof s?Ps(xs("mustache",s)):s;const c=void 0===o?t.props:"object"!=typeof o?Ps(xs("output.props",o)):Array.isArray(o)?Ps(ws("output.props",o)):o;this.props={},Object.keys(c).forEach((t=>this.props[t.toLowerCase()]=c[t])),this.pipes=void 0===a?t.pipes:"object"!=typeof a?Ps(xs("output.pipes",a)):Array.isArray(a)?Ps(ws("output.pipes",a)):a}buildBaseExpression(){this.$=Ms.load("<presto-root/>");const n=this.$("presto-root")[0];this.expression=new eo(this,n);let r=this.expression.html;r=this.collapseHeadElements(r),r=function(t){const e=Ms.load(t);e("*[presto-magic]").each(((t,n)=>{Object.keys(n.attribs).map((t=>{let r=n.attribs[t];if(r.indexOf("presto-magic")<0)return;r=r.replace(/\spresto-magic/g,""),"`"!==r.substr(0,1)&&"`"!==r.substr(-1)&&(r="`"+r+"`");let i=Vs.filter((e=>t.indexOf(e.attr)>=0));const s=i.length>0?i[0].sub.length>0?i[0].sub:t:`x-bind:${t}`;e(n).removeAttr(t);let o={};o[s]=r,e(n).attr(o)}))}));let n=e.html();return Ys.map((t=>{const e=new RegExp(t.sub,"g");n=n.replace(e,t.safe)})),n=n.replace(/presto-magic\s/g,""),n=n.replace(/presto-magic\=""\s/g,""),n}(r),mo.map((t=>{const e=new RegExp(`((?<=<)${t.escaped})|((?<=</)${t.escaped})`,"g");r=r.replace(e,t.unescaped)}));const i=e.dirname(this.file);var s;t.mkdirSync(i,{recursive:!0}),t.writeFileSync(this.file,r),s=`Presto successfully compiled to \`${this.file}\``,po(oo(lo(`[*] ${oo(s)}`)))}collapseHeadElements(t){const e=Ms.load(t);let n=[];return e("presto-head").each(((t,r)=>{n.push(e(r).html()),e(r).remove()})),e("head").first().html(n.join("\n").trim()),e.html()}}const mo=[{escaped:"presto-template",unescaped:"template"},{escaped:"presto-select",unescaped:"select"}];var Eo=g((function(t){!function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=n.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],n=0,r=0;n<t.length;n++,r+=8)e[r>>>5]|=t[n]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},bytesToHex:function(t){for(var e=[],n=0;n<t.length;n++)e.push((t[n]>>>4).toString(16)),e.push((15&t[n]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(parseInt(t.substr(n,2),16));return e},bytesToBase64:function(t){for(var n=[],r=0;r<t.length;r+=3)for(var i=t[r]<<16|t[r+1]<<8|t[r+2],s=0;s<4;s++)8*r+6*s<=8*t.length?n.push(e.charAt(i>>>6*(3-s)&63)):n.push("=");return n.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,i=0;r<t.length;i=++r%4)0!=i&&n.push((e.indexOf(t.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|e.indexOf(t.charAt(r))>>>6-2*i);return n}};t.exports=n}()})),_o={utf8:{stringToBytes:function(t){return _o.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(_o.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e},bytesToString:function(t){for(var e=[],n=0;n<t.length;n++)e.push(String.fromCharCode(t[n]));return e.join("")}}},go=_o,Ao=function(t){return null!=t&&(No(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&No(t.slice(0,0))}(t)||!!t._isBuffer)};function No(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var Oo,So,Co=g((function(t){!function(){var e=Eo,n=go.utf8,r=Ao,i=go.bin,s=function(t,o){t.constructor==String?t=o&&"binary"===o.encoding?i.stringToBytes(t):n.stringToBytes(t):r(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var a=e.bytesToWords(t),c=8*t.length,l=1732584193,u=-271733879,h=-1732584194,p=271733878,f=0;f<a.length;f++)a[f]=16711935&(a[f]<<8|a[f]>>>24)|4278255360&(a[f]<<24|a[f]>>>8);a[c>>>5]|=128<<c%32,a[14+(c+64>>>9<<4)]=c;var d=s._ff,T=s._gg,m=s._hh,E=s._ii;for(f=0;f<a.length;f+=16){var _=l,g=u,A=h,N=p;l=d(l,u,h,p,a[f+0],7,-680876936),p=d(p,l,u,h,a[f+1],12,-389564586),h=d(h,p,l,u,a[f+2],17,606105819),u=d(u,h,p,l,a[f+3],22,-1044525330),l=d(l,u,h,p,a[f+4],7,-176418897),p=d(p,l,u,h,a[f+5],12,1200080426),h=d(h,p,l,u,a[f+6],17,-1473231341),u=d(u,h,p,l,a[f+7],22,-45705983),l=d(l,u,h,p,a[f+8],7,1770035416),p=d(p,l,u,h,a[f+9],12,-1958414417),h=d(h,p,l,u,a[f+10],17,-42063),u=d(u,h,p,l,a[f+11],22,-1990404162),l=d(l,u,h,p,a[f+12],7,1804603682),p=d(p,l,u,h,a[f+13],12,-40341101),h=d(h,p,l,u,a[f+14],17,-1502002290),l=T(l,u=d(u,h,p,l,a[f+15],22,1236535329),h,p,a[f+1],5,-165796510),p=T(p,l,u,h,a[f+6],9,-1069501632),h=T(h,p,l,u,a[f+11],14,643717713),u=T(u,h,p,l,a[f+0],20,-373897302),l=T(l,u,h,p,a[f+5],5,-701558691),p=T(p,l,u,h,a[f+10],9,38016083),h=T(h,p,l,u,a[f+15],14,-660478335),u=T(u,h,p,l,a[f+4],20,-405537848),l=T(l,u,h,p,a[f+9],5,568446438),p=T(p,l,u,h,a[f+14],9,-1019803690),h=T(h,p,l,u,a[f+3],14,-187363961),u=T(u,h,p,l,a[f+8],20,1163531501),l=T(l,u,h,p,a[f+13],5,-1444681467),p=T(p,l,u,h,a[f+2],9,-51403784),h=T(h,p,l,u,a[f+7],14,1735328473),l=m(l,u=T(u,h,p,l,a[f+12],20,-1926607734),h,p,a[f+5],4,-378558),p=m(p,l,u,h,a[f+8],11,-2022574463),h=m(h,p,l,u,a[f+11],16,1839030562),u=m(u,h,p,l,a[f+14],23,-35309556),l=m(l,u,h,p,a[f+1],4,-1530992060),p=m(p,l,u,h,a[f+4],11,1272893353),h=m(h,p,l,u,a[f+7],16,-155497632),u=m(u,h,p,l,a[f+10],23,-1094730640),l=m(l,u,h,p,a[f+13],4,681279174),p=m(p,l,u,h,a[f+0],11,-358537222),h=m(h,p,l,u,a[f+3],16,-722521979),u=m(u,h,p,l,a[f+6],23,76029189),l=m(l,u,h,p,a[f+9],4,-640364487),p=m(p,l,u,h,a[f+12],11,-421815835),h=m(h,p,l,u,a[f+15],16,530742520),l=E(l,u=m(u,h,p,l,a[f+2],23,-995338651),h,p,a[f+0],6,-198630844),p=E(p,l,u,h,a[f+7],10,1126891415),h=E(h,p,l,u,a[f+14],15,-1416354905),u=E(u,h,p,l,a[f+5],21,-57434055),l=E(l,u,h,p,a[f+12],6,1700485571),p=E(p,l,u,h,a[f+3],10,-1894986606),h=E(h,p,l,u,a[f+10],15,-1051523),u=E(u,h,p,l,a[f+1],21,-2054922799),l=E(l,u,h,p,a[f+8],6,1873313359),p=E(p,l,u,h,a[f+15],10,-30611744),h=E(h,p,l,u,a[f+6],15,-1560198380),u=E(u,h,p,l,a[f+13],21,1309151649),l=E(l,u,h,p,a[f+4],6,-145523070),p=E(p,l,u,h,a[f+11],10,-1120210379),h=E(h,p,l,u,a[f+2],15,718787259),u=E(u,h,p,l,a[f+9],21,-343485551),l=l+_>>>0,u=u+g>>>0,h=h+A>>>0,p=p+N>>>0}return e.endian([l,u,h,p])};s._ff=function(t,e,n,r,i,s,o){var a=t+(e&n|~e&r)+(i>>>0)+o;return(a<<s|a>>>32-s)+e},s._gg=function(t,e,n,r,i,s,o){var a=t+(e&r|n&~r)+(i>>>0)+o;return(a<<s|a>>>32-s)+e},s._hh=function(t,e,n,r,i,s,o){var a=t+(e^n^r)+(i>>>0)+o;return(a<<s|a>>>32-s)+e},s._ii=function(t,e,n,r,i,s,o){var a=t+(n^(e|~r))+(i>>>0)+o;return(a<<s|a>>>32-s)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,n){if(null==t)throw new Error("Illegal argument "+t);var r=e.wordsToBytes(s(t,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):e.bytesToHex(r)}}()}));class vo{constructor(t,e){this.attrib=t,this.defaultValue=e,this.optional="::?"===this.attrib.substr(0,3),this.key=this.attrib.substr(this.optional?3:2).toLowerCase()}getValue(t){return t.empty?this.defaultValue:t.value}}class bo{constructor(t){this.component=t,T(this,this.component,["meta"]),this.extractProps()}extractProps(){if(this.props=[],void 0===this.meta)return;const{attribs:t}=this.meta;Object.keys(t).filter((t=>"::"===t.substr(0,2))).map((e=>{this.props.push(new vo(e,t[e]))}))}getProp(t){t=t.toLowerCase();const e=this.props.filter((e=>e.key===t));return 0===e.length?void 0:e[0]}}class yo{constructor(t){this.prepareSlot(t)}prepareSlot(t){const e=Object.assign(t.attribs,{name:""});this.optional="presto-opt"===e.type,this.name=e.name,this.isDefault=0===this.name.length;const n=Ms(t).html();this.defaultContent=0===n.trim().length?"":n}}class Io{constructor(t){this.component=t,this.prepareSlots()}prepareSlots(){const t=Ms.load(this.component.source),e=[...t("slot[presto]")],n=[...t("slot[presto-opt]")];this.slots=[],e.concat(n).map((t=>{const e=new yo(t);(void 0!==this.getDefaultSlot()||e.isDefault&&this.slots.length>0)&&Ps(function(t){return new ks({code:Os.COMPONENT_DEFAULT_SLOT_MIX,name:"PrestoComponentError",message:`Component at "${t}" cannot declare more than one slot when a default/unnamed slot is declared.`})}(this.component.file)),this.slots.push(e)}))}getDefaultSlot(){const t=this.slots.filter((t=>t.isDefault));return 0===t.length?void 0:t[0]}}class Ro{constructor(t,e){this.context=t,this.source=t.pureSource,this.component=e,this.buildOccurrences()}buildOccurrences(){const t=this.component.name,e=RegExp(`<${t}[^/]*/>`,"g"),n=RegExp(`(<${t}[^>/<]*>)`,"g"),r=RegExp(`</${t}>`,"g");let i;for(this.selfClose=[];null!==(i=e.exec(this.source));)this.selfClose.push(new Mo({literal:i[0],start:i.index,end:e.lastIndex,type:So.SELF}));for(this.startTags=[];null!==(i=n.exec(this.source));)this.startTags.push({literal:i[0],start:i.index,end:n.lastIndex,type:So.START});for(this.closeTags=[];null!==(i=r.exec(this.source));)this.closeTags.push({literal:i[0],start:i.index,end:r.lastIndex,type:So.END});this.occurrences=[],this.startTags.forEach(this.resolveTagPairs),this.occurrences=this.occurrences.concat(this.selfClose)}resolveTagPairs(t,e){e<this.startTags.length-1&&this.startTags[e+1].start<this.closeTags[0].start?this.resolveTagPairs(t,e+1):this.occurrences.push(new Mo(t,this.closeTags.shift()))}tokenizeOccurrences(){let t=this.source;return this.occurrences.forEach((e=>{const n=(null==e?void 0:e.endTag)?"¿":"Ɛ",{startTag:r}=e,i=`<${n}${E(r.literal.length-3,"~")}>`;if(t=m(t,r.start,r.literal,i),!(null==e?void 0:e.endTag))return;const{endTag:s}=e,o=`<¡${E(s.literal.length-3,"~")}>`;t=m(t,s.start,s.literal,o)})),t}processRename(e){let n=this.tokenizeOccurrences();const r=new RegExp({NAME:`(((<)|(</))${e.oldValue})`,PROPERTY:`::${e.oldValue}`}[e.type]);this.occurrences.forEach((t=>{const i=new RegExp((null==t?void 0:t.endTag)?"<¿~*>":"<Ɛ~*>"),s=t.startTag.literal,o="NAME"===e.type?"<":"::";if(n=n.replace(i,s.replace(r,`${o}${e.newValue}`)),!(null==t?void 0:t.endTag))return;const a="NAME"===e.type?e.newValue:this.component.name;n=n.replace(/<¡~*>/,`</${a}>`)})),t.writeFileSync(this.context.file,n),this.context.init()}}!function(t){t.NAME="NAME",t.PROPERTY="PROPERTY"}(Oo||(Oo={}));class Mo{constructor(t,e){this.startTag=t,this.endTag=e}}!function(t){t.START="START",t.END="END",t.SELF="SELF"}(So||(So={}));class Lo{constructor(t,e){this.context=t,this.path=e,T(this,this.context,["componentProvider"]),this.init()}init(){this.readSource(),this.parseComponentMeta(),this.prepareManagers(),this.parseAttributeCoalescence(),this.escapeSource(),this.prepareDom()}parseComponentImplementations(){this.componentImplementations=[],this.importManager.imports.forEach((t=>{const e=null==t?void 0:t.expressionName;if(void 0===e)return;const n=new RegExp(`((?<=<)${e})|((?<=</)${e})`,"gi");null!==this.source.match(n)&&this.componentImplementations.push(new Ro(this,t))}))}async preparePipes(){if(void 0===this.pipesElement)return void(this.pipes={});let r=Ms(this.pipesElement).html().trim();const i=Co(this.path.concat(r)),s=e.resolve(`${e.resolve(__dirname)}${e.sep}..${e.sep}.pipes`);t.mkdirSync(s,{recursive:!0});const o=e.resolve(`${s}${e.sep}${i}.cjs`);try{t.realpathSync(o)}catch{r=r.replace(/function(?=\s*.*\(.*\)\s*{)/g,"export function");const i=`${__dirname}${e.sep}tmp.js`;t.writeFileSync(i,r);const s=await n.rollup({input:i,treeshake:!1}),{output:[{code:a}]}=await s.generate({exports:"named",format:"cjs"});t.unlinkSync(i),t.writeFileSync(o,a)}this.pipes=require(o)}readSource(){try{this.file=t.realpathSync(this.path),this.source=t.readFileSync(this.file,{encoding:"utf-8"}),this.pureSource=`${this.source}`}catch(t){Ps("ENOENT"===t.code?new Ds({component:this,code:Os.COMPONENT_NO_FILE,name:"PrestoComponentError",message:function(t){return 2===t.stackArr.length?`No such file found for input component at path:\n${E(30)}-> ${t.component.path}.`:`No such file found for imported component at:\n${E(30)}-> ${t.component.path},\n${E(29)}linked in:\n${E(30)}-> ${t.component.context.component.file}.`}}):t)}}escapeSource(){this.escapeSelfClosing(),this.escapeUnsafeTags(),this.escapeShorthand(),this.escapeExpressions()}prepareDom(){const t=Ms.load(this.source);this.pipesElement=t("script[presto]")[0];["script[presto]","meta[presto]","link[presto]"].forEach((e=>{t(e).each(((e,n)=>{t(n).remove()}))})),this.isInputComponent||(this.writeIncrementedExposures(t),this.writeAccepts(t));const e=t("head"),n=`<presto-head>${e.html()}</presto-head>`,r=t("body");r.html(`${n}${r.html()}`),e.empty(),this.source=r.html()}escapeExpressions(){this.importManager.componentProvider.includedList.forEach((t=>{const e=`presto-${t.replace(/[A-Z]/g,(t=>`_${t.toLowerCase()}`))}`,n=new RegExp(`((?<=<)${t})|((?<=</)${t})`,"g");this.source=this.source.replace(n,e)})),this.importManager.imports.forEach((t=>{if(this.source.indexOf(t.expressionName)>=0)return;const e=new RegExp(`((?<=<)${t.name})|((?<=</)${t.name})`,"g");this.source=this.source.replace(e,t.expressionName)}))}escapeUnsafeTags(){mo.forEach((t=>{const e=new RegExp(`((?<=<)${t.unescaped})|((?<=</)${t.unescaped})`,"gi");this.source=this.source.replace(e,t.escaped)}))}parseComponentMeta(){if(this.isInputComponent)return;const t=Ms.load(this.source);if(this.meta=t("meta[presto]")[0],void 0===this.meta)return Ps(function(t){return new ks({code:Os.COMPONENT_NO_META,name:"PrestoComponentError",message:`Imported component at ${t} contains no <meta> tag for named export.`})}(this.file));this.name=this.meta.attribs.name;const e=this.name.replace(/[A-Z]/g,(t=>`_${t.toLowerCase()}`));this.expressionName=`presto-${e}`}parseAttributeCoalescence(){var t;if(this.isInputComponent)return;this.exposes=((null===(t=this.meta.attribs)||void 0===t?void 0:t.$$exposes)||"").toLowerCase();const e="$$provides"in this.meta.attribs?this.meta.attribs.$$provides:"presto-no";this.providesAttributes="presto-no"===e?[]:""===e.trim()?Array(100):e.trim().split(" ").map((t=>t.toLowerCase()));const n="$$reserves"in this.meta.attribs?this.meta.attribs.$$reserves:"presto-no";if(this.reservesAttributes="presto-no"===n?[]:""===n.trim()?Array(100):n.trim().split(" ").map((t=>t.toLowerCase())),this.reservesAttributes.includes("$$declared")){const t=this.propManager.props.map((t=>`::${t.key}`)),e=this.propManager.props.map((t=>`::$${t.key}`));this.reservesAttributes=this.reservesAttributes.concat(t).concat(e)}if(!this.providesAttributes.every((t=>0===((null==t?void 0:t.length)||0)||!this.reservesAttributes.includes(t))))return Ps(function(t){return new ks({code:Os.COMPONENT_COALESCE_CONFLICT,name:"PrestoComponentError",message:`Imported component at ${t} establishes \`$$provides\` and \`$$reserves\` with conflicting specificity.`})}(this.path));const r="$$utilizes"in this.meta.attribs?this.meta.attribs.$$utilizes:"presto-no",i="presto-no"===r?[]:""===r.trim()?Array(100):r.trim().split(" ");this.utilizesComponents=i.map((t=>{const e=this.importManager.getComponentByGivenName(t);return void 0===e?Ps(function(t,e){return new ks({code:Os.COMPONENT_UNRESOLVED_UTILIZE,name:"PrestoComponentError",message:`Imported component at ${t} incorrectly $$utilizes unresolved component name \`${e}\`.`})}(this.path,t)):e}));const s="$$accepts"in this.meta.attribs?this.meta.attribs.$$accepts:"presto-no";if(this.acceptsAttributes="presto-no"===s?[]:""===s.trim()?Array(100):s.trim().split(" ").map((t=>t.toLowerCase())),this.acceptsAttributes.includes("$$declared")){const t=this.propManager.props.map((t=>`::${t.key}`)),e=this.propManager.props.map((t=>`::$${t.key}`));this.acceptsAttributes=this.acceptsAttributes.concat(t).concat(e)}return 100===this.providesAttributes.length&&100===this.reservesAttributes.length?Ps(function(t){return new ks({code:Os.COMPONENT_COALESCE_WILDCARD_DUALITY,name:"PrestoComponentError",message:`Imported component at ${t} implements wildcard on \`$$provides\` and \`$$reserves\`.`})}(this.path)):void 0}writeAccepts(t){this.utilizesComponents.forEach((e=>{const n=e.acceptsAttributes;if(0===n.length)return;const r=100===n.length;t(e.expressionName).each(((e,i)=>{const s=t(i).attr("$$accepts");if(void 0!==s){if(r)return;t(i).attr("$$accepts",`${s} ${n.join(" ")}`)}else{if(r)return void t(i).attr("$$accepts","");t(i).attr("$$accepts",n.join(" "))}}))}))}writeIncrementedExposures(t){this.utilizesComponents.forEach((e=>{const n=e.exposes;if(""===n)return;let r=1;t(e.expressionName).each(((e,i)=>{void 0===t(i).attr("$$exposes")&&(r=this.findExposureIndex(t,n,r),t(i).attr("$$exposes",`${n}${r}`),r++)}))}))}findExposureIndex(t,e,n){var r;let i=n;for(;0!==((null===(r=t(`[\\$\\$exposes='${e}${i}']`))||void 0===r?void 0:r.length)||0);)i++;return i}prepareManagers(){this.propManager=new bo(this),this.importManager=new Ls(this),this.isInputComponent||(this.slotManager=new Io(this))}escapeShorthand(){[{seq:/\?presto/,sub:"presto-opt:"},{seq:"::!",sub:"presto-false:"}].forEach((t=>{let e=new RegExp(t.seq,"g");this.source=this.source.replace(e,t.sub)}))}escapeSelfClosing(){this.importManager.imports.forEach((t=>{const e=new RegExp(`<${t.name}(.*)/>`,"gi");this.source=this.source.replace(e,`<${t.name}$1></${t.name}>`)}))}get isInputComponent(){var t;return this.context instanceof _c&&(null===(t=this.context)||void 0===t?void 0:t.input)===this.path}}var ko="win32"===process.platform,Do=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function Po(t){return"function"==typeof t?t:function(){var t;if(Do){var e=new Error;t=function(t){t&&(e.message=t.message,n(t=e))}}else t=n;return t;function n(t){if(t){if(process.throwDeprecation)throw t;if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);process.traceDeprecation?console.trace(e):console.error(e)}}}}()}if(l.default.normalize,ko)var xo=/(.*?)(?:[\/\\]+|$)/g;else xo=/(.*?)(?:[\/]+|$)/g;if(ko)var wo=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else wo=/^[\/]*/;var Ho=function(t,e){if(t=l.default.resolve(t),e&&Object.prototype.hasOwnProperty.call(e,t))return e[t];var n,r,i,s,o=t,a={},u={};function h(){var e=wo.exec(t);n=e[0].length,r=e[0],i=e[0],s="",ko&&!u[i]&&(c.default.lstatSync(i),u[i]=!0)}for(h();n<t.length;){xo.lastIndex=n;var p=xo.exec(t);if(s=r,r+=p[0],i=s+p[1],n=xo.lastIndex,!(u[i]||e&&e[i]===i)){var f;if(e&&Object.prototype.hasOwnProperty.call(e,i))f=e[i];else{var d=c.default.lstatSync(i);if(!d.isSymbolicLink()){u[i]=!0,e&&(e[i]=i);continue}var T=null;if(!ko){var m=d.dev.toString(32)+":"+d.ino.toString(32);a.hasOwnProperty(m)&&(T=a[m])}null===T&&(c.default.statSync(i),T=c.default.readlinkSync(i)),f=l.default.resolve(s,T),e&&(e[i]=f),ko||(a[m]=T)}t=l.default.resolve(f,t.slice(n)),h()}}return e&&(e[o]=t),t},Uo=function(t,e,n){if("function"!=typeof n&&(n=Po(e),e=null),t=l.default.resolve(t),e&&Object.prototype.hasOwnProperty.call(e,t))return process.nextTick(n.bind(null,null,e[t]));var r,i,s,o,a=t,u={},h={};function p(){var e=wo.exec(t);r=e[0].length,i=e[0],s=e[0],o="",ko&&!h[s]?c.default.lstat(s,(function(t){if(t)return n(t);h[s]=!0,f()})):process.nextTick(f)}function f(){if(r>=t.length)return e&&(e[a]=t),n(null,t);xo.lastIndex=r;var l=xo.exec(t);return o=i,i+=l[0],s=o+l[1],r=xo.lastIndex,h[s]||e&&e[s]===s?process.nextTick(f):e&&Object.prototype.hasOwnProperty.call(e,s)?m(e[s]):c.default.lstat(s,d)}function d(t,r){if(t)return n(t);if(!r.isSymbolicLink())return h[s]=!0,e&&(e[s]=s),process.nextTick(f);if(!ko){var i=r.dev.toString(32)+":"+r.ino.toString(32);if(u.hasOwnProperty(i))return T(null,u[i],s)}c.default.stat(s,(function(t){if(t)return n(t);c.default.readlink(s,(function(t,e){ko||(u[i]=e),T(t,e)}))}))}function T(t,r,i){if(t)return n(t);var s=l.default.resolve(o,r);e&&(e[i]=s),m(s)}function m(e){t=l.default.resolve(e,t.slice(r)),p()}p()},Fo=$o;$o.realpath=$o,$o.sync=Yo,$o.realpathSync=Yo,$o.monkeypatch=function(){c.default.realpath=$o,c.default.realpathSync=Yo},$o.unmonkeypatch=function(){c.default.realpath=Bo,c.default.realpathSync=Go};var Bo=c.default.realpath,Go=c.default.realpathSync,jo=process.version,qo=/^v[0-5]\./.test(jo);function Ko(t){return t&&"realpath"===t.syscall&&("ELOOP"===t.code||"ENOMEM"===t.code||"ENAMETOOLONG"===t.code)}function $o(t,e,n){if(qo)return Bo(t,e,n);"function"==typeof e&&(n=e,e=null),Bo(t,e,(function(r,i){Ko(r)?Uo(t,e,n):n(r,i)}))}function Yo(t,e){if(qo)return Go(t,e);try{return Go(t,e)}catch(n){if(Ko(n))return Ho(t,e);throw n}}var Vo=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},Qo=zo;function zo(t,e,n){t instanceof RegExp&&(t=Xo(t,n)),e instanceof RegExp&&(e=Xo(e,n));var r=Wo(t,e,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+t.length,r[1]),post:n.slice(r[1]+e.length)}}function Xo(t,e){var n=e.match(t);return n?n[0]:null}function Wo(t,e,n){var r,i,s,o,a,c=n.indexOf(t),l=n.indexOf(e,c+1),u=c;if(c>=0&&l>0){for(r=[],s=n.length;u>=0&&!a;)u==c?(r.push(u),c=n.indexOf(t,u+1)):1==r.length?a=[r.pop(),l]:((i=r.pop())<s&&(s=i,o=l),l=n.indexOf(e,u+1)),u=c<l&&c>=0?c:l;r.length&&(a=[s,o])}return a}zo.range=Wo;var Zo=function(t){if(!t)return[];"{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2));return ha(function(t){return t.split("\\\\").join(Jo).split("\\{").join(ta).split("\\}").join(ea).split("\\,").join(na).split("\\.").join(ra)}(t),!0).map(sa)},Jo="\0SLASH"+Math.random()+"\0",ta="\0OPEN"+Math.random()+"\0",ea="\0CLOSE"+Math.random()+"\0",na="\0COMMA"+Math.random()+"\0",ra="\0PERIOD"+Math.random()+"\0";function ia(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function sa(t){return t.split(Jo).join("\\").split(ta).join("{").split(ea).join("}").split(na).join(",").split(ra).join(".")}function oa(t){if(!t)return[""];var e=[],n=Qo("{","}",t);if(!n)return t.split(",");var r=n.pre,i=n.body,s=n.post,o=r.split(",");o[o.length-1]+="{"+i+"}";var a=oa(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function aa(t){return"{"+t+"}"}function ca(t){return/^-?0\d/.test(t)}function la(t,e){return t<=e}function ua(t,e){return t>=e}function ha(t,e){var n=[],r=Qo("{","}",t);if(!r||/\$$/.test(r.pre))return[t];var i,s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),a=s||o,c=r.body.indexOf(",")>=0;if(!a&&!c)return r.post.match(/,.*\}/)?ha(t=r.pre+"{"+r.body+ea+r.post):[t];if(a)i=r.body.split(/\.\./);else if(1===(i=oa(r.body)).length&&1===(i=ha(i[0],!1).map(aa)).length)return(h=r.post.length?ha(r.post,!1):[""]).map((function(t){return r.pre+i[0]+t}));var l,u=r.pre,h=r.post.length?ha(r.post,!1):[""];if(a){var p=ia(i[0]),f=ia(i[1]),d=Math.max(i[0].length,i[1].length),T=3==i.length?Math.abs(ia(i[2])):1,m=la;f<p&&(T*=-1,m=ua);var E=i.some(ca);l=[];for(var _=p;m(_,f);_+=T){var g;if(o)"\\"===(g=String.fromCharCode(_))&&(g="");else if(g=String(_),E){var A=d-g.length;if(A>0){var N=new Array(A+1).join("0");g=_<0?"-"+N+g.slice(1):N+g}}l.push(g)}}else l=function(t,e){for(var n=[],r=0;r<t.length;r++){var i=e(t[r],r);Vo(i)?n.push.apply(n,i):n.push(i)}return n}(i,(function(t){return ha(t,!1)}));for(var O=0;O<l.length;O++)for(var S=0;S<h.length;S++){var C=u+l[O]+h[S];(!e||a||C)&&n.push(C)}return n}var pa=ga;ga.Minimatch=Aa;var fa={sep:"/"};try{fa=l.default}catch(t){}var da=ga.GLOBSTAR=Aa.GLOBSTAR={},Ta={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},ma="().*{}+?[]^$\\!".split("").reduce((function(t,e){return t[e]=!0,t}),{});var Ea=/\/+/;function _a(t,e){t=t||{},e=e||{};var n={};return Object.keys(e).forEach((function(t){n[t]=e[t]})),Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function ga(t,e,n){if("string"!=typeof e)throw new TypeError("glob pattern string required");return n||(n={}),!(!n.nocomment&&"#"===e.charAt(0))&&(""===e.trim()?""===t:new Aa(e,n).match(t))}function Aa(t,e){if(!(this instanceof Aa))return new Aa(t,e);if("string"!=typeof t)throw new TypeError("glob pattern string required");e||(e={}),t=t.trim(),"/"!==fa.sep&&(t=t.split(fa.sep).join("/")),this.options=e,this.set=[],this.pattern=t,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function Na(t,e){if(e||(e=this instanceof Aa?this.options:{}),void 0===(t=void 0===t?this.pattern:t))throw new TypeError("undefined pattern");return e.nobrace||!t.match(/\{.*\}/)?[t]:Zo(t)}ga.filter=function(t,e){return e=e||{},function(n,r,i){return ga(n,t,e)}},ga.defaults=function(t){if(!t||!Object.keys(t).length)return ga;var e=ga,n=function(n,r,i){return e.minimatch(n,r,_a(t,i))};return n.Minimatch=function(n,r){return new e.Minimatch(n,_a(t,r))},n},Aa.defaults=function(t){return t&&Object.keys(t).length?ga.defaults(t).Minimatch:Aa},Aa.prototype.debug=function(){},Aa.prototype.make=function(){if(this._made)return;var t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error);this.debug(this.pattern,n),n=this.globParts=n.map((function(t){return t.split(Ea)})),this.debug(this.pattern,n),n=n.map((function(t,e,n){return t.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(t){return-1===t.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},Aa.prototype.parseNegate=function(){var t=this.pattern,e=!1,n=this.options,r=0;if(n.nonegate)return;for(var i=0,s=t.length;i<s&&"!"===t.charAt(i);i++)e=!e,r++;r&&(this.pattern=t.substr(r));this.negate=e},ga.braceExpand=function(t,e){return Na(t,e)},Aa.prototype.braceExpand=Na,Aa.prototype.parse=function(t,e){if(t.length>65536)throw new TypeError("pattern is too long");var n=this.options;if(!n.noglobstar&&"**"===t)return da;if(""===t)return"";var r,i="",s=!!n.nocase,o=!1,a=[],c=[],l=!1,u=-1,h=-1,p="."===t.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",f=this;function d(){if(r){switch(r){case"*":i+="[^/]*?",s=!0;break;case"?":i+="[^/]",s=!0;break;default:i+="\\"+r}f.debug("clearStateChar %j %j",r,i),r=!1}}for(var T,m=0,E=t.length;m<E&&(T=t.charAt(m));m++)if(this.debug("%s\t%s %s %j",t,m,i,T),o&&ma[T])i+="\\"+T,o=!1;else switch(T){case"/":return!1;case"\\":d(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",t,m,i,T),l){this.debug(" in class"),"!"===T&&m===h+1&&(T="^"),i+=T;continue}f.debug("call clearStateChar %j",r),d(),r=T,n.noext&&d();continue;case"(":if(l){i+="(";continue}if(!r){i+="\\(";continue}a.push({type:r,start:m-1,reStart:i.length,open:Ta[r].open,close:Ta[r].close}),i+="!"===r?"(?:(?!(?:":"(?:",this.debug("plType %j %j",r,i),r=!1;continue;case")":if(l||!a.length){i+="\\)";continue}d(),s=!0;var _=a.pop();i+=_.close,"!"===_.type&&c.push(_),_.reEnd=i.length;continue;case"|":if(l||!a.length||o){i+="\\|",o=!1;continue}d(),i+="|";continue;case"[":if(d(),l){i+="\\"+T;continue}l=!0,h=m,u=i.length,i+=T;continue;case"]":if(m===h+1||!l){i+="\\"+T,o=!1;continue}if(l){var g=t.substring(h+1,m);try{RegExp("["+g+"]")}catch(t){var A=this.parse(g,Oa);i=i.substr(0,u)+"\\["+A[0]+"\\]",s=s||A[1],l=!1;continue}}s=!0,l=!1,i+=T;continue;default:d(),o?o=!1:!ma[T]||"^"===T&&l||(i+="\\"),i+=T}l&&(g=t.substr(h+1),A=this.parse(g,Oa),i=i.substr(0,u)+"\\["+A[0],s=s||A[1]);for(_=a.pop();_;_=a.pop()){var N=i.slice(_.reStart+_.open.length);this.debug("setting tail",i,_),N=N.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(t,e,n){return n||(n="\\"),e+e+n+"|"})),this.debug("tail=%j\n %s",N,N,_,i);var O="*"===_.type?"[^/]*?":"?"===_.type?"[^/]":"\\"+_.type;s=!0,i=i.slice(0,_.reStart)+O+"\\("+N}d(),o&&(i+="\\\\");var S=!1;switch(i.charAt(0)){case".":case"[":case"(":S=!0}for(var C=c.length-1;C>-1;C--){var v=c[C],b=i.slice(0,v.reStart),y=i.slice(v.reStart,v.reEnd-8),I=i.slice(v.reEnd-8,v.reEnd),R=i.slice(v.reEnd);I+=R;var M=b.split("(").length-1,L=R;for(m=0;m<M;m++)L=L.replace(/\)[+*?]?/,"");var k="";""===(R=L)&&e!==Oa&&(k="$"),i=b+y+R+k+I}""!==i&&s&&(i="(?=.)"+i);S&&(i=p+i);if(e===Oa)return[i,s];if(!s)return function(t){return t.replace(/\\(.)/g,"$1")}(t);var D=n.nocase?"i":"";try{var P=new RegExp("^"+i+"$",D)}catch(t){return new RegExp("$.")}return P._glob=t,P._src=i,P};var Oa={};ga.makeRe=function(t,e){return new Aa(t,e||{}).makeRe()},Aa.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,n=e.noglobstar?"[^/]*?":e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=e.nocase?"i":"",i=t.map((function(t){return t.map((function(t){return t===da?n:"string"==typeof t?function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(t):t._src})).join("\\/")})).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,r)}catch(t){this.regexp=!1}return this.regexp},ga.match=function(t,e,n){var r=new Aa(e,n=n||{});return t=t.filter((function(t){return r.match(t)})),r.options.nonull&&!t.length&&t.push(e),t},Aa.prototype.match=function(t,e){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;var n=this.options;"/"!==fa.sep&&(t=t.split(fa.sep).join("/"));t=t.split(Ea),this.debug(this.pattern,"split",t);var r,i,s=this.set;for(this.debug(this.pattern,"set",s),i=t.length-1;i>=0&&!(r=t[i]);i--);for(i=0;i<s.length;i++){var o=s[i],a=t;if(n.matchBase&&1===o.length&&(a=[r]),this.matchOne(a,o,e))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},Aa.prototype.matchOne=function(t,e,n){var r=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var i=0,s=0,o=t.length,a=e.length;i<o&&s<a;i++,s++){this.debug("matchOne loop");var c,l=e[s],u=t[i];if(this.debug(e,l,u),!1===l)return!1;if(l===da){this.debug("GLOBSTAR",[e,l,u]);var h=i,p=s+1;if(p===a){for(this.debug("** at the end");i<o;i++)if("."===t[i]||".."===t[i]||!r.dot&&"."===t[i].charAt(0))return!1;return!0}for(;h<o;){var f=t[h];if(this.debug("\nglobstar while",t,h,e,p,f),this.matchOne(t.slice(h),e.slice(p),n))return this.debug("globstar found match!",h,o,f),!0;if("."===f||".."===f||!r.dot&&"."===f.charAt(0)){this.debug("dot detected!",t,h,e,p);break}this.debug("globstar swallow a segment, and continue"),h++}return!(!n||(this.debug("\n>>> no match, partial?",t,h,e,p),h!==o))}if("string"==typeof l?(c=r.nocase?u.toLowerCase()===l.toLowerCase():u===l,this.debug("string match",l,u,c)):(c=u.match(l),this.debug("pattern match",l,u,c)),!c)return!1}if(i===o&&s===a)return!0;if(i===o)return n;if(s===a)return i===o-1&&""===t[i];throw new Error("wtf?")};var Sa=g((function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}})),Ca=g((function(t){try{var e=u.default;if("function"!=typeof e.inherits)throw"";t.exports=e.inherits}catch(e){t.exports=Sa}}));function va(t){return"/"===t.charAt(0)}function ba(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(t),n=e[1]||"",r=Boolean(n&&":"!==n.charAt(1));return Boolean(e[2]||r)}var ya="win32"===process.platform?ba:va,Ia=va,Ra=ba;ya.posix=Ia,ya.win32=Ra;var Ma=ja,La=Ga,ka=function(t,e,n){n||(n={});if(n.matchBase&&-1===e.indexOf("/")){if(n.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}t.silent=!!n.silent,t.pattern=e,t.strict=!1!==n.strict,t.realpath=!!n.realpath,t.realpathCache=n.realpathCache||Object.create(null),t.follow=!!n.follow,t.dot=!!n.dot,t.mark=!!n.mark,t.nodir=!!n.nodir,t.nodir&&(t.mark=!0);t.sync=!!n.sync,t.nounique=!!n.nounique,t.nonull=!!n.nonull,t.nosort=!!n.nosort,t.nocase=!!n.nocase,t.stat=!!n.stat,t.noprocess=!!n.noprocess,t.absolute=!!n.absolute,t.maxLength=n.maxLength||1/0,t.cache=n.cache||Object.create(null),t.statCache=n.statCache||Object.create(null),t.symlinks=n.symlinks||Object.create(null),function(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]);t.ignore.length&&(t.ignore=t.ignore.map(qa))}(t,n),t.changedCwd=!1;var r=process.cwd();Fa(n,"cwd")?(t.cwd=l.default.resolve(n.cwd),t.changedCwd=t.cwd!==r):t.cwd=r;t.root=n.root||l.default.resolve(t.cwd,"/"),t.root=l.default.resolve(t.root),"win32"===process.platform&&(t.root=t.root.replace(/\\/g,"/"));t.cwdAbs=ya(t.cwd)?t.cwd:Ka(t,t.cwd),"win32"===process.platform&&(t.cwdAbs=t.cwdAbs.replace(/\\/g,"/"));t.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,t.minimatch=new Ba(e,n),t.options=t.minimatch.options},Da=Fa,Pa=Ka,xa=function(t){for(var e=t.nounique,n=e?[]:Object.create(null),r=0,i=t.matches.length;r<i;r++){var s=t.matches[r];if(s&&0!==Object.keys(s).length){var o=Object.keys(s);e?n.push.apply(n,o):o.forEach((function(t){n[t]=!0}))}else if(t.nonull){var a=t.minimatch.globSet[r];e?n.push(a):n[a]=!0}}e||(n=Object.keys(n));t.nosort||(n=n.sort(t.nocase?Ga:ja));if(t.mark){for(r=0;r<n.length;r++)n[r]=t._mark(n[r]);t.nodir&&(n=n.filter((function(e){var n=!/\/$/.test(e),r=t.cache[e]||t.cache[Ka(t,e)];return n&&r&&(n="DIR"!==r&&!Array.isArray(r)),n})))}t.ignore.length&&(n=n.filter((function(e){return!$a(t,e)})));t.found=n},wa=function(t,e){var n=Ka(t,e),r=t.cache[n],i=e;if(r){var s="DIR"===r||Array.isArray(r),o="/"===e.slice(-1);if(s&&!o?i+="/":!s&&o&&(i=i.slice(0,-1)),i!==e){var a=Ka(t,i);t.statCache[a]=t.statCache[n],t.cache[a]=t.cache[n]}}return i},Ha=$a,Ua=function(t,e){return!!t.ignore.length&&t.ignore.some((function(t){return!(!t.gmatcher||!t.gmatcher.match(e))}))};function Fa(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Ba=pa.Minimatch;function Ga(t,e){return t.toLowerCase().localeCompare(e.toLowerCase())}function ja(t,e){return t.localeCompare(e)}function qa(t){var e=null;if("/**"===t.slice(-3)){var n=t.replace(/(\/\*\*)+$/,"");e=new Ba(n,{dot:!0})}return{matcher:new Ba(t,{dot:!0}),gmatcher:e}}function Ka(t,e){var n=e;return n="/"===e.charAt(0)?l.default.join(t.root,e):ya(e)||""===e?e:t.changedCwd?l.default.resolve(t.cwd,e):l.default.resolve(e),"win32"===process.platform&&(n=n.replace(/\\/g,"/")),n}function $a(t,e){return!!t.ignore.length&&t.ignore.some((function(t){return t.matcher.match(e)||!(!t.gmatcher||!t.gmatcher.match(e))}))}var Ya={alphasort:Ma,alphasorti:La,setopts:ka,ownProp:Da,makeAbs:Pa,finish:xa,mark:wa,isIgnored:Ha,childrenIgnored:Ua},Va=Za;Za.GlobSync=Ja;var Qa=Ya.setopts,za=Ya.ownProp,Xa=Ya.childrenIgnored,Wa=Ya.isIgnored;function Za(t,e){if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new Ja(t,e).found}function Ja(t,e){if(!t)throw new Error("must provide pattern");if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof Ja))return new Ja(t,e);if(Qa(this,t,e),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var r=0;r<n;r++)this._process(this.minimatch.set[r],r,!1);this._finish()}Ja.prototype._finish=function(){if(p.default(this instanceof Ja),this.realpath){var t=this;this.matches.forEach((function(e,n){var r=t.matches[n]=Object.create(null);for(var i in e)try{i=t._makeAbs(i),r[Fo.realpathSync(i,t.realpathCache)]=!0}catch(e){if("stat"!==e.syscall)throw e;r[t._makeAbs(i)]=!0}}))}Ya.finish(this)},Ja.prototype._process=function(t,e,n){p.default(this instanceof Ja);for(var r,i=0;"string"==typeof t[i];)i++;switch(i){case t.length:return void this._processSimple(t.join("/"),e);case 0:r=null;break;default:r=t.slice(0,i).join("/")}var s,o=t.slice(i);null===r?s=".":ya(r)||ya(t.join("/"))?(r&&ya(r)||(r="/"+r),s=r):s=r;var a=this._makeAbs(s);Xa(this,s)||(o[0]===pa.GLOBSTAR?this._processGlobStar(r,s,a,o,e,n):this._processReaddir(r,s,a,o,e,n))},Ja.prototype._processReaddir=function(t,e,n,r,i,s){var o=this._readdir(n,s);if(o){for(var a=r[0],c=!!this.minimatch.negate,u=a._glob,h=this.dot||"."===u.charAt(0),p=[],f=0;f<o.length;f++){if("."!==(m=o[f]).charAt(0)||h)(c&&!t?!m.match(a):m.match(a))&&p.push(m)}var d=p.length;if(0!==d)if(1!==r.length||this.mark||this.stat){r.shift();for(f=0;f<d;f++){var T;m=p[f];T=t?[t,m]:[m],this._process(T.concat(r),i,s)}}else{this.matches[i]||(this.matches[i]=Object.create(null));for(var f=0;f<d;f++){var m=p[f];t&&(m="/"!==t.slice(-1)?t+"/"+m:t+m),"/"!==m.charAt(0)||this.nomount||(m=l.default.join(this.root,m)),this._emitMatch(i,m)}}}},Ja.prototype._emitMatch=function(t,e){if(!Wa(this,e)){var n=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=n),!this.matches[t][e]){if(this.nodir){var r=this.cache[n];if("DIR"===r||Array.isArray(r))return}this.matches[t][e]=!0,this.stat&&this._stat(e)}}},Ja.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,n;try{n=c.default.lstatSync(t)}catch(t){if("ENOENT"===t.code)return null}var r=n&&n.isSymbolicLink();return this.symlinks[t]=r,r||!n||n.isDirectory()?e=this._readdir(t,!1):this.cache[t]="FILE",e},Ja.prototype._readdir=function(t,e){if(e&&!za(this.symlinks,t))return this._readdirInGlobStar(t);if(za(this.cache,t)){var n=this.cache[t];if(!n||"FILE"===n)return null;if(Array.isArray(n))return n}try{return this._readdirEntries(t,c.default.readdirSync(t))}catch(e){return this._readdirError(t,e),null}},Ja.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var n=0;n<e.length;n++){var r=e[n];r="/"===t?t+r:t+"/"+r,this.cache[r]=!0}return this.cache[t]=e,e},Ja.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(t);if(this.cache[n]="FILE",n===this.cwdAbs){var r=new Error(e.code+" invalid cwd "+this.cwd);throw r.path=this.cwd,r.code=e.code,r}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw e;this.silent||console.error("glob error",e)}},Ja.prototype._processGlobStar=function(t,e,n,r,i,s){var o=this._readdir(n,s);if(o){var a=r.slice(1),c=t?[t]:[],l=c.concat(a);this._process(l,i,!1);var u=o.length;if(!this.symlinks[n]||!s)for(var h=0;h<u;h++){if("."!==o[h].charAt(0)||this.dot){var p=c.concat(o[h],a);this._process(p,i,!0);var f=c.concat(o[h],r);this._process(f,i,!0)}}}},Ja.prototype._processSimple=function(t,e){var n=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),n){if(t&&ya(t)&&!this.nomount){var r=/[\/\\]$/.test(t);"/"===t.charAt(0)?t=l.default.join(this.root,t):(t=l.default.resolve(this.root,t),r&&(t+="/"))}"win32"===process.platform&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t)}},Ja.prototype._stat=function(t){var e=this._makeAbs(t),n="/"===t.slice(-1);if(t.length>this.maxLength)return!1;if(!this.stat&&za(this.cache,e)){var r=this.cache[e];if(Array.isArray(r)&&(r="DIR"),!n||"DIR"===r)return r;if(n&&"FILE"===r)return!1}var i=this.statCache[e];if(!i){var s;try{s=c.default.lstatSync(e)}catch(t){if(t&&("ENOENT"===t.code||"ENOTDIR"===t.code))return this.statCache[e]=!1,!1}if(s&&s.isSymbolicLink())try{i=c.default.statSync(e)}catch(t){i=s}else i=s}this.statCache[e]=i;r=!0;return i&&(r=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||r,(!n||"FILE"!==r)&&r},Ja.prototype._mark=function(t){return Ya.mark(this,t)},Ja.prototype._makeAbs=function(t){return Ya.makeAbs(this,t)};var tc=function t(e,n){if(e&&n)return t(e)(n);if("function"!=typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach((function(t){r[t]=e[t]})),r;function r(){for(var t=new Array(arguments.length),n=0;n<t.length;n++)t[n]=arguments[n];var r=e.apply(this,t),i=t[t.length-1];return"function"==typeof r&&r!==i&&Object.keys(i).forEach((function(t){r[t]=i[t]})),r}};var ec=tc(rc),nc=tc(ic);function rc(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function ic(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},n=t.name||"Function wrapped with `once`";return e.onceError=n+" shouldn't be called more than once",e.called=!1,e}rc.proto=rc((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return rc(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return ic(this)},configurable:!0})})),ec.strict=nc;var sc=Object.create(null),oc=tc((function(t,e){return sc[t]?(sc[t].push(e),null):(sc[t]=[e],function(t){return ec((function e(){var n=sc[t],r=n.length,i=ac(arguments);try{for(var s=0;s<r;s++)n[s].apply(null,i)}finally{n.length>r?(n.splice(0,r),process.nextTick((function(){e.apply(null,i)}))):delete sc[t]}}))}(t))}));function ac(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r]=t[r];return n}var cc=dc,lc=h.default.EventEmitter,uc=Ya.setopts,hc=Ya.ownProp,pc=Ya.childrenIgnored,fc=Ya.isIgnored;function dc(t,e,n){if("function"==typeof e&&(n=e,e={}),e||(e={}),e.sync){if(n)throw new TypeError("callback provided to sync glob");return Va(t,e)}return new mc(t,e,n)}dc.sync=Va;var Tc=dc.GlobSync=Va.GlobSync;function mc(t,e,n){if("function"==typeof e&&(n=e,e=null),e&&e.sync){if(n)throw new TypeError("callback provided to sync glob");return new Tc(t,e)}if(!(this instanceof mc))return new mc(t,e,n);uc(this,t,e),this._didRealPath=!1;var r=this.minimatch.set.length;this.matches=new Array(r),"function"==typeof n&&(n=ec(n),this.on("error",n),this.on("end",(function(t){n(null,t)})));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===r)return o();for(var s=0;s<r;s++)this._process(this.minimatch.set[s],s,!1,o);function o(){--i._processing,i._processing<=0&&i._finish()}}dc.glob=dc,dc.hasMagic=function(t,e){var n=function(t,e){if(null===e||"object"!=typeof e)return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}({},e);n.noprocess=!0;var r=new mc(t,n).minimatch.set;if(!t)return!1;if(r.length>1)return!0;for(var i=0;i<r[0].length;i++)if("string"!=typeof r[0][i])return!0;return!1},dc.Glob=mc,Ca(mc,lc),mc.prototype._finish=function(){if(p.default(this instanceof mc),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();Ya.finish(this),this.emit("end",this.found)}},mc.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var t=this.matches.length;if(0===t)return this._finish();for(var e=this,n=0;n<this.matches.length;n++)this._realpathSet(n,r)}function r(){0==--t&&e._finish()}},mc.prototype._realpathSet=function(t,e){var n=this.matches[t];if(!n)return e();var r=Object.keys(n),i=this,s=r.length;if(0===s)return e();var o=this.matches[t]=Object.create(null);r.forEach((function(n,r){n=i._makeAbs(n),Fo.realpath(n,i.realpathCache,(function(r,a){r?"stat"===r.syscall?o[n]=!0:i.emit("error",r):o[a]=!0,0==--s&&(i.matches[t]=o,e())}))}))},mc.prototype._mark=function(t){return Ya.mark(this,t)},mc.prototype._makeAbs=function(t){return Ya.makeAbs(this,t)},mc.prototype.abort=function(){this.aborted=!0,this.emit("abort")},mc.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},mc.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var n=t[e];this._emitMatch(n[0],n[1])}}if(this._processQueue.length){var r=this._processQueue.slice(0);this._processQueue.length=0;for(e=0;e<r.length;e++){var i=r[e];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}},mc.prototype._process=function(t,e,n,r){if(p.default(this instanceof mc),p.default("function"==typeof r),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([t,e,n,r]);else{for(var i,s=0;"string"==typeof t[s];)s++;switch(s){case t.length:return void this._processSimple(t.join("/"),e,r);case 0:i=null;break;default:i=t.slice(0,s).join("/")}var o,a=t.slice(s);null===i?o=".":ya(i)||ya(t.join("/"))?(i&&ya(i)||(i="/"+i),o=i):o=i;var c=this._makeAbs(o);if(pc(this,o))return r();a[0]===pa.GLOBSTAR?this._processGlobStar(i,o,c,a,e,n,r):this._processReaddir(i,o,c,a,e,n,r)}},mc.prototype._processReaddir=function(t,e,n,r,i,s,o){var a=this;this._readdir(n,s,(function(c,l){return a._processReaddir2(t,e,n,r,i,s,l,o)}))},mc.prototype._processReaddir2=function(t,e,n,r,i,s,o,a){if(!o)return a();for(var c=r[0],u=!!this.minimatch.negate,h=c._glob,p=this.dot||"."===h.charAt(0),f=[],d=0;d<o.length;d++){if("."!==(m=o[d]).charAt(0)||p)(u&&!t?!m.match(c):m.match(c))&&f.push(m)}var T=f.length;if(0===T)return a();if(1===r.length&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(d=0;d<T;d++){var m=f[d];t&&(m="/"!==t?t+"/"+m:t+m),"/"!==m.charAt(0)||this.nomount||(m=l.default.join(this.root,m)),this._emitMatch(i,m)}return a()}r.shift();for(d=0;d<T;d++){m=f[d];t&&(m="/"!==t?t+"/"+m:t+m),this._process([m].concat(r),i,s,a)}a()},mc.prototype._emitMatch=function(t,e){if(!this.aborted&&!fc(this,e))if(this.paused)this._emitQueue.push([t,e]);else{var n=ya(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=n),!this.matches[t][e]){if(this.nodir){var r=this.cache[n];if("DIR"===r||Array.isArray(r))return}this.matches[t][e]=!0;var i=this.statCache[n];i&&this.emit("stat",e,i),this.emit("match",e)}}},mc.prototype._readdirInGlobStar=function(t,e){if(!this.aborted){if(this.follow)return this._readdir(t,!1,e);var n=this,r=oc("lstat\0"+t,(function(r,i){if(r&&"ENOENT"===r.code)return e();var s=i&&i.isSymbolicLink();n.symlinks[t]=s,s||!i||i.isDirectory()?n._readdir(t,!1,e):(n.cache[t]="FILE",e())}));r&&c.default.lstat(t,r)}},mc.prototype._readdir=function(t,e,n){if(!this.aborted&&(n=oc("readdir\0"+t+"\0"+e,n))){if(e&&!hc(this.symlinks,t))return this._readdirInGlobStar(t,n);if(hc(this.cache,t)){var r=this.cache[t];if(!r||"FILE"===r)return n();if(Array.isArray(r))return n(null,r)}c.default.readdir(t,function(t,e,n){return function(r,i){r?t._readdirError(e,r,n):t._readdirEntries(e,i,n)}}(this,t,n))}},mc.prototype._readdirEntries=function(t,e,n){if(!this.aborted){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var i=e[r];i="/"===t?t+i:t+"/"+i,this.cache[i]=!0}return this.cache[t]=e,n(null,e)}},mc.prototype._readdirError=function(t,e,n){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);if(this.cache[r]="FILE",r===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=e.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e)}return n()}},mc.prototype._processGlobStar=function(t,e,n,r,i,s,o){var a=this;this._readdir(n,s,(function(c,l){a._processGlobStar2(t,e,n,r,i,s,l,o)}))},mc.prototype._processGlobStar2=function(t,e,n,r,i,s,o,a){if(!o)return a();var c=r.slice(1),l=t?[t]:[],u=l.concat(c);this._process(u,i,!1,a);var h=this.symlinks[n],p=o.length;if(h&&s)return a();for(var f=0;f<p;f++){if("."!==o[f].charAt(0)||this.dot){var d=l.concat(o[f],c);this._process(d,i,!0,a);var T=l.concat(o[f],r);this._process(T,i,!0,a)}}a()},mc.prototype._processSimple=function(t,e,n){var r=this;this._stat(t,(function(i,s){r._processSimple2(t,e,i,s,n)}))},mc.prototype._processSimple2=function(t,e,n,r,i){if(this.matches[e]||(this.matches[e]=Object.create(null)),!r)return i();if(t&&ya(t)&&!this.nomount){var s=/[\/\\]$/.test(t);"/"===t.charAt(0)?t=l.default.join(this.root,t):(t=l.default.resolve(this.root,t),s&&(t+="/"))}"win32"===process.platform&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),i()},mc.prototype._stat=function(t,e){var n=this._makeAbs(t),r="/"===t.slice(-1);if(t.length>this.maxLength)return e();if(!this.stat&&hc(this.cache,n)){var i=this.cache[n];if(Array.isArray(i)&&(i="DIR"),!r||"DIR"===i)return e(null,i);if(r&&"FILE"===i)return e()}var s=this.statCache[n];if(void 0!==s){if(!1===s)return e(null,s);var o=s.isDirectory()?"DIR":"FILE";return r&&"FILE"===o?e():e(null,o,s)}var a=this,l=oc("stat\0"+n,(function(r,i){if(i&&i.isSymbolicLink())return c.default.stat(n,(function(r,s){r?a._stat2(t,n,null,i,e):a._stat2(t,n,r,s,e)}));a._stat2(t,n,r,i,e)}));l&&c.default.lstat(n,l)},mc.prototype._stat2=function(t,e,n,r,i){if(n&&("ENOENT"===n.code||"ENOTDIR"===n.code))return this.statCache[e]=!1,i();var s="/"===t.slice(-1);if(this.statCache[e]=r,"/"===e.slice(-1)&&r&&!r.isDirectory())return i(null,!1,r);var o=!0;return r&&(o=r.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||o,s&&"FILE"===o?i():i(null,o,r)};class Ec{constructor(t){this.instance=t,this.components=[],this.included=[],this.includedList=[],this.readIncludedNames()}readIncludedNames(){this.instance.include.reduce(((t,e)=>t.concat(cc.sync(d(e),{}))),[]).forEach((e=>{try{const n=t.readFileSync(e,{encoding:"utf-8"}),r=Ms.load(n);r("meta[presto]").each(((t,e)=>{const n=r(e).attr("name");void 0!==n&&this.includedList.push(n)}))}catch(t){}})),this.includedList.sort(((t,e)=>e.length-t.length))}prepareIncluded(){this.instance.include.reduce(((t,e)=>t.concat(cc.sync(d(e),{}))),[]).forEach((t=>{try{const e=this.getComponentByHref(this.instance,t);this.included.push(e)}catch(e){po(oo(uo(`[?] PrestoWarning: ${oo(`Invalid component at glob-resolved inclusion ${t}`)}`))),e instanceof ks&&function(t){po(oo(ho(` -> ${oo(t)}`)))}(e.message)}}))}getComponentByHref(t,e){const n=this.resolveHref(t,e),r=this.components.filter((t=>t.file===n)),i=0===r.length?new Lo(t,n):r[0];return 0===r.length&&this.components.push(i),i}resolveHref(t,n){return`${e.isAbsolute(n)?"":(r=t.component.file,`${e.dirname(r)}${e.sep}`)}${n}`;var r}}class _c{constructor(t){this.config=t,this.prepareConfig(),this.initializeModules(),this.prepareInput(),this.prepareOutputs()}initializeModules(){this.componentProvider=new Ec(this),this.componentProvider.prepareIncluded()}prepareOutputs(){let{output:t}=this.config;t=void 0===t?Ps(Hs("output")):"object"==typeof t?Array.isArray(t)?t:[t]:Ps(xs("config",t)),this.outputs=[],t.map((t=>{this.outputs.push(new To(this,t))}))}prepareInput(){const{input:t}=this.config;this.input=d(void 0===t?Ps(Hs("input")):"string"!=typeof t?Ps(xs("input",t)):t),this.component=this.componentProvider.getComponentByHref(this,this.input)}prepareConfig(){const{include:t,lazy:e,mustache:n}=this.config;this.include=void 0===t?[]:"string"==typeof t?[t]:Array.isArray(t)?t:Ps(xs("include",t)),this.lazy=void 0!==e&&("boolean"!=typeof e?Ps(xs("lazy",e)):e)}}var gc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ac=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Nc="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oc="[\\ud800-\\udfff]",Sc="["+Nc+"]",Cc="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",vc="\\d+",bc="[\\u2700-\\u27bf]",yc="[a-z\\xdf-\\xf6\\xf8-\\xff]",Ic="[^\\ud800-\\udfff"+Nc+vc+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Rc="\\ud83c[\\udffb-\\udfff]",Mc="[^\\ud800-\\udfff]",Lc="(?:\\ud83c[\\udde6-\\uddff]){2}",kc="[\\ud800-\\udbff][\\udc00-\\udfff]",Dc="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Pc="(?:"+yc+"|"+Ic+")",xc="(?:"+Dc+"|"+Ic+")",wc="(?:"+Cc+"|"+Rc+")"+"?",Hc="[\\ufe0e\\ufe0f]?"+wc+("(?:\\u200d(?:"+[Mc,Lc,kc].join("|")+")[\\ufe0e\\ufe0f]?"+wc+")*"),Uc="(?:"+[bc,Lc,kc].join("|")+")"+Hc,Fc="(?:"+[Mc+Cc+"?",Cc,Lc,kc,Oc].join("|")+")",Bc=RegExp("['’]","g"),Gc=RegExp(Cc,"g"),jc=RegExp(Rc+"(?="+Rc+")|"+Fc+Hc,"g"),qc=RegExp([Dc+"?"+yc+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Sc,Dc,"$"].join("|")+")",xc+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Sc,Dc+Pc,"$"].join("|")+")",Dc+"?"+Pc+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Dc+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",vc,Uc].join("|"),"g"),Kc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),$c=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yc="object"==typeof _&&_&&_.Object===Object&&_,Vc="object"==typeof self&&self&&self.Object===Object&&self,Qc=Yc||Vc||Function("return this")();var zc,Xc=(zc={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(t){return null==zc?void 0:zc[t]});function Wc(t){return Kc.test(t)}function Zc(t){return Wc(t)?function(t){return t.match(jc)||[]}(t):function(t){return t.split("")}(t)}var Jc=Object.prototype.toString,tl=Qc.Symbol,el=tl?tl.prototype:void 0,nl=el?el.toString:void 0;function rl(t){if("string"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==Jc.call(t)}(t))return nl?nl.call(t):"";var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}function il(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(i);++r<i;)s[r]=t[r+e];return s}(t,e,n)}function sl(t){return null==t?"":rl(t)}var ol,al=(ol=function(t,e,n){return e=e.toLowerCase(),t+(n?ll(sl(e).toLowerCase()):e)},function(t){return function(t,e,n,r){var i=-1,s=t?t.length:0;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}(function(t,e,n){return t=sl(t),void 0===(e=n?void 0:e)?function(t){return $c.test(t)}(t)?function(t){return t.match(qc)||[]}(t):function(t){return t.match(gc)||[]}(t):t.match(e)||[]}(function(t){return(t=sl(t))&&t.replace(Ac,Xc).replace(Gc,"")}(t).replace(Bc,"")),ol,"")});var cl,ll=(cl="toUpperCase",function(t){var e=Wc(t=sl(t))?Zc(t):void 0,n=e?e[0]:t.charAt(0),r=e?il(e,1).join(""):t.slice(1);return n[cl]()+r});var ul,hl=(ul=al)&&"object"==typeof ul&&"default"in ul?ul.default:ul;function pl(t){return Array.isArray(t)?t:void 0===t?[]:function(t){return function(t){return"object"==typeof t&&null!==t}(t)&&"number"==typeof t.length}(t)?Array.prototype.slice.call(t):[t]}function fl(t){return Array.isArray(t)?t:void 0===t?[]:function(t){return function(t){return"object"==typeof t&&null!==t}(t)&&"number"==typeof t.length}(t)?Array.prototype.slice.call(t):[t]}function dl(t,e){const n=[],r=fl(arguments);return r.splice(0,2),fl(t).forEach(((t,i)=>{let s=[];r.forEach((e=>{"function"==typeof e?s=s.concat(e(t)):s.push(e)})),e(t)&&n.push({index:i,replaceWithValue:s})})),n.reverse().forEach((e=>{const n=[e.index,1].concat(e.replaceWithValue);t.splice.apply(t,n)})),t}const Tl={short:/^-([^\d-])$/,long:/^--(\S+)/,combinedShort:/^-[^\d-]{2,}$/,optEquals:/^(--\S+?)=(.*)/};class ml extends Array{load(t){if(this.clear(),t&&t!==process.argv)t=pl(t);else{t=process.argv.slice(0);const e=process.execArgv.some(Ol)?1:2;t.splice(0,e)}t.forEach((t=>this.push(String(t))))}clear(){this.length=0}expandOptionEqualsNotation(){if(this.some((t=>Tl.optEquals.test(t)))){const t=[];this.forEach((e=>{const n=e.match(Tl.optEquals);n?t.push(n[1],n[2]):t.push(e)})),this.clear(),this.load(t)}}expandGetoptNotation(){this.hasCombinedShortOptions()&&dl(this,Tl.combinedShort,El)}hasCombinedShortOptions(){return this.some((t=>Tl.combinedShort.test(t)))}static from(t){const e=new this;return e.load(t),e}}function El(t){return(t=t.slice(1)).split("").map((t=>"-"+t))}function _l(t){return Tl.optEquals.test(t)}function gl(t){return(Tl.short.test(t)||Tl.long.test(t))&&!Tl.optEquals.test(t)}function Al(t){return Tl.short.test(t)?t.match(Tl.short)[1]:function(t){return Tl.long.test(t)&&!_l(t)}(t)?t.match(Tl.long)[1]:_l(t)?t.match(Tl.optEquals)[1].replace(/^--/,""):null}function Nl(t){return!(gl(t)||Tl.combinedShort.test(t)||Tl.optEquals.test(t))}function Ol(t){return["--eval","-e"].indexOf(t)>-1||t.startsWith("--eval=")}function Sl(t){return"object"==typeof t&&null!==t}function Cl(t){return void 0!==t}function vl(t){return"function"==typeof t}var bl={isNumber:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},isString:function(t){return"string"==typeof t},isBoolean:function(t){return"boolean"==typeof t},isPlainObject:function(t){return null!==t&&"object"==typeof t&&t.constructor===Object},isArrayLike:function(t){return Sl(t)&&"number"==typeof t.length},isObject:Sl,isDefined:Cl,isFunction:vl,isClass:function(t){return!!vl(t)&&/^class /.test(Function.prototype.toString.call(t))},isPrimitive:function(t){if(null===t)return!0;switch(typeof t){case"string":case"number":case"symbol":case"undefined":case"boolean":return!0;default:return!1}},isPromise:function(t){if(t){const e=Cl(Promise)&&t instanceof Promise,n=t.then&&"function"==typeof t.then;return!(!e&&!n)}return!1},isIterable:function(t){return!(null===t||!Cl(t))&&("function"==typeof t[Symbol.iterator]||"function"==typeof t[Symbol.asyncIterator])}};class yl{constructor(t){this.name=t.name,this.type=t.type||String,this.alias=t.alias,this.multiple=t.multiple,this.lazyMultiple=t.lazyMultiple,this.defaultOption=t.defaultOption,this.defaultValue=t.defaultValue,this.group=t.group;for(let e in t)this[e]||(this[e]=t[e])}isBoolean(){return this.type===Boolean||bl.isFunction(this.type)&&"Boolean"===this.type.name}isMultiple(){return this.multiple||this.lazyMultiple}static create(t){return new this(t)}}class Il extends Array{validate(){this.some((t=>!t.name))&&Rl("INVALID_DEFINITIONS","Invalid option definitions: the `name` property is required on each definition");let t;this.some((t=>t.type&&"function"!=typeof t.type))&&Rl("INVALID_DEFINITIONS","Invalid option definitions: the `type` property must be a setter fuction (default: `Boolean`)");this.some((e=>(t=e,bl.isDefined(e.alias)&&bl.isNumber(e.alias))))&&Rl("INVALID_DEFINITIONS","Invalid option definition: to avoid ambiguity an alias cannot be numeric [--"+t.name+" alias is -"+t.alias+"]");this.some((e=>(t=e,bl.isDefined(e.alias)&&1!==e.alias.length)))&&Rl("INVALID_DEFINITIONS","Invalid option definition: an alias must be a single character");this.some((e=>(t=e,"-"===e.alias)))&&Rl("INVALID_DEFINITIONS",'Invalid option definition: an alias cannot be "-"');Ll(this.map((t=>t.name)))&&Rl("INVALID_DEFINITIONS","Two or more option definitions have the same name");Ll(this.map((t=>t.alias)))&&Rl("INVALID_DEFINITIONS","Two or more option definitions have the same alias");Ll(this.map((t=>t.defaultOption)))&&Rl("INVALID_DEFINITIONS","Only one option definition can be the defaultOption");this.some((e=>(t=e,e.isBoolean()&&e.defaultOption)))&&Rl("INVALID_DEFINITIONS",`A boolean option ["${t.name}"] can not also be the defaultOption.`)}get(t){return gl(t)?Tl.short.test(t)?this.find((e=>e.alias===Al(t))):this.find((e=>e.name===Al(t))):this.find((e=>e.name===t))}getDefault(){return this.find((t=>!0===t.defaultOption))}isGrouped(){return this.some((t=>t.group))}whereGrouped(){return this.filter(Ml)}whereNotGrouped(){return this.filter((t=>!Ml(t)))}whereDefaultValueSet(){return this.filter((t=>bl.isDefined(t.defaultValue)))}static from(t){if(t instanceof this)return t;const e=super.from(pl(t),(t=>yl.create(t)));return e.validate(),e}}function Rl(t,e){const n=new Error(e);throw n.name=t,n}function Ml(t){return pl(t.group).some((t=>t))}function Ll(t){const e={};for(let n=0;n<t.length;n++){const r=t[n];if(e[r])return!0;bl.isDefined(r)&&(e[r]=!0)}}class kl{constructor(t,e){this.options=Object.assign({},e),this.definitions=Il.from(t),this.argv=ml.from(this.options.argv),this.argv.hasCombinedShortOptions()&&dl(this.argv,Tl.combinedShort.test.bind(Tl.combinedShort),(t=>(t=t.slice(1)).split("").map((e=>({origArg:`-${t}`,arg:"-"+e})))))}*[Symbol.iterator](){const t=this.definitions;let e,n,r,i,s,o=!1,a=!1;for(let c of this.argv){if(bl.isPlainObject(c)&&(s=c.origArg,c=c.arg),a&&this.options.stopAtFirstUnknown){yield{event:"unknown_value",arg:c,name:"_unknown",value:void 0};continue}if(gl(c))e=t.get(c),n=void 0,e?(n=!!e.isBoolean()||null,i="set"):i="unknown_option";else if(_l(c)){const r=c.match(Tl.optEquals);e=t.get(r[1]),e?e.isBoolean()?(yield{event:"unknown_value",arg:c,name:"_unknown",value:n,def:e},i="set",n=!0):(i="set",n=r[2]):i="unknown_option"}else Nl(c)&&(e?(n=c,i="set"):(e=this.definitions.getDefault(),e&&!o?(n=c,i="set"):(i="unknown_value",e=void 0)));r=e?e.name:"_unknown";const l={event:i,arg:c,name:r,value:n,def:e};s&&(l.subArg=c,l.arg=s),yield l,"_unknown"===r&&(a=!0),e&&e.defaultOption&&!e.isMultiple()&&"set"===i&&(o=!0),e&&e.isBoolean()&&(e=void 0),e&&!e.multiple&&bl.isDefined(n)&&null!==n&&(e=void 0),n=void 0,i=void 0,r=void 0,s=void 0}}}const Dl=new WeakMap;class Pl{constructor(t){this.definition=new yl(t),this.state=null,this.resetToDefault()}get(){return Dl.get(this)}set(t){this._set(t,"set")}_set(t,e){const n=this.definition;if(n.isMultiple()){if(null!=t){const r=this.get();"default"===this.state&&(r.length=0),r.push(n.type(t)),this.state=e}}else{if(!n.isMultiple()&&"set"===this.state){const e=new Error(`Singular option already set [${this.definition.name}=${this.get()}]`);throw e.name="ALREADY_SET",e.value=t,e.optionName=n.name,e}null==t?Dl.set(this,t):(Dl.set(this,n.type(t)),this.state=e)}}resetToDefault(){bl.isDefined(this.definition.defaultValue)?this.definition.isMultiple()?Dl.set(this,pl(this.definition.defaultValue).slice()):Dl.set(this,this.definition.defaultValue):this.definition.isMultiple()?Dl.set(this,[]):Dl.set(this,null),this.state="default"}static create(t){return(t=new yl(t)).isBoolean()?xl.create(t):new this(t)}}class xl extends Pl{set(t){super.set(!0)}static create(t){return new this(t)}}class wl extends Map{constructor(t){super(),this.definitions=Il.from(t),this.set("_unknown",Pl.create({name:"_unknown",multiple:!0}));for(const t of this.definitions.whereDefaultValueSet())this.set(t.name,Pl.create(t))}toObject(t){t=t||{};const e={};for(const n of this){const r=t.camelCase&&"_unknown"!==n[0]?hl(n[0]):n[0],i=n[1];("_unknown"!==r||i.get().length)&&(e[r]=i.get())}return t.skipUnknown&&delete e._unknown,e}}class Hl extends wl{toObject(t){const e=super.toObject({skipUnknown:t.skipUnknown}),n=super.toObject(t),r=n._unknown;delete n._unknown;const i={_all:n};return r&&r.length&&(i._unknown=r),this.definitions.whereGrouped().forEach((n=>{const r=t.camelCase?hl(n.name):n.name,s=e[n.name];for(const t of pl(n.group))i[t]=i[t]||{},bl.isDefined(s)&&(i[t][r]=s)})),this.definitions.whereNotGrouped().forEach((n=>{const r=t.camelCase?hl(n.name):n.name,s=e[n.name];bl.isDefined(s)&&(i._none||(i._none={}),i._none[r]=s)})),i}}var Ul=function(t,e){(e=e||{}).stopAtFirstUnknown&&(e.partial=!0),t=Il.from(t);const n=new kl(t,{argv:e.argv,stopAtFirstUnknown:e.stopAtFirstUnknown}),r=new(t.isGrouped()?Hl:wl)(t);for(const t of n){const n=t.subArg||t.arg;if(!e.partial){if("unknown_value"===t.event){const t=new Error(`Unknown value: ${n}`);throw t.name="UNKNOWN_VALUE",t.value=n,t}if("unknown_option"===t.event){const t=new Error(`Unknown option: ${n}`);throw t.name="UNKNOWN_OPTION",t.optionName=n,t}}let i;r.has(t.name)?i=r.get(t.name):(i=Pl.create(t.def),r.set(t.name,i)),"_unknown"===t.name?i.set(n):i.set(t.value)}return r.toObject({skipUnknown:!e.partial,camelCase:e.camelCase})}([{name:"config",alias:"c",type:String,defaultValue:"presto.config.js",defaultOption:!0},{name:"init",alias:"i",type:Boolean,defaultValue:!1}]);async function Fl(r,i){const s=d(r);return".cjs"===e.extname(s)?Bl(require(s)):await async function(r,i){const s=await n.rollup({input:r,treeshake:!1}),{output:[{code:o}]}=await s.generate({exports:"named",format:"cjs"});return async function(n,r){const i=t.realpathSync(n),s=e.extname(i),o=require.extensions[s];require.extensions[s]=(t,e)=>{e===i?t._compile(r,e):o(t,e)},delete require.cache[i];try{const t=Bl(require(n));return require.extensions[s]=o,t}catch(t){throw console.log("Failed to load ES module from CommonJS. This is not supported."),t}}(r,o)}(s,i.silent)}function Bl(t){return t.__esModule?t.default:t}const Gl=["yes","y"],jl=["no","n"];function ql({question:t,defaultValue:e,yesValues:n,noValues:r}){process.stdout.write("\nInvalid Response.\n"),process.stdout.write("Answer either yes : ("+n.join(", ")+") \n"),process.stdout.write("Or no: ("+r.join(", ")+") \n\n")}var Kl=async function t({question:e,defaultValue:n,yesValues:r,noValues:i,invalid:s}){s&&"function"==typeof s||(s=ql),r=(r||Gl).map((t=>t.toLowerCase())),i=(i||jl).map((t=>t.toLowerCase()));const o=f.default.createInterface({input:process.stdin,output:process.stdout});return new Promise((function(a,c){o.question(e+" ",(async function(c){o.close();const l=c.trim().toLowerCase();if(""==l&&null!=n)return a(n);if(r.indexOf(l)>=0)return a(!0);if(i.indexOf(l)>=0)return a(!1);s({question:e,defaultValue:n,yesValues:r,noValues:i});const u=await t({question:e,defaultValue:n,yesValues:r,noValues:i,invalid:s});a(u)}))}))};const $l={index:'<!DOCTYPE html>\n <html lang="en">\n <head>\n <DocHead />\n </head>\n <body>\n <div\n x-data="app()"\n x-init="init()"\n class="h-screen w-screen grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3"\n >\n <MetricCard\n ::title="Reservoir Level"\n ::color="blue"\n ::trend="down"\n ::glyph="water"\n ::value="316 FT"\n ></MetricCard>\n \n <MetricCard\n ::title="Current Output"\n ::color="yellow"\n ::trend="up"\n ::glyph="bolt"\n ::value="3400 MW"\n ></MetricCard>\n \n <MetricCard\n $$wrap="template"\n x-for="m in metrics"\n ::$title="m.name"\n ::$color="m.alarm ? \'red\' : \'green\'"\n ::$trend="m.trend === \'rise\' ? \'up\' : \'down\'"\n ::$glyph="{turbine: \'fan\', flare_stack: \'fire\', pump: \'faucet\', steam: \'wind\', radiation: \'radiation\'}[m.type]"\n ::$value="m.value"\n ></MetricCard>\n </div>\n </body>\n <AlpineSource />\n </html>',components:{head:'<meta presto name="DocHead" />\n\n <title>Dashboard</title>\n <link\n href="https://unpkg.com/tailwindcss@latest/dist/tailwind.min.css"\n rel="stylesheet"\n />\n <link\n rel="stylesheet"\n href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css"\n />\n <script\n src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@latest/dist/alpine.min.js"\n defer\n ><\/script>',alpineSource:'<meta presto name="AlpineSource" />\n\n <script>\n const metricsData = `[{"name":"Unit #1 Pri.","trend":"fall","alarm":false,"value":"4,283 RPM","type":"turbine"},{"name":"Unit #1 Sec.","trend":"fall","alarm":false,"value":"4,055 RPM","type":"turbine"},{"name":"Well #3 Relief","trend":"fall","alarm":false,"value":"572 ºC","type":"flare_stack"},{"name":"Toluene Burn-off #2","trend":"fall","alarm":false,"value":"636 ºC","type":"flare_stack"},{"name":"Toluene Burn-off #1","trend":"rise","alarm":false,"value":"623 ºC","type":"flare_stack"},{"name":"Unit #1 LPCI","trend":"fall","alarm":false,"value":"139,357 L/min","type":"pump"},{"name":"Condenser Coolant #1","trend":"rise","alarm":false,"value":"137,889 L/min","type":"pump"},{"name":"Condenser Coolant #2","trend":"fall","alarm":true,"value":"116,146 L/min","type":"pump"},{"name":"Unit #1 Pri. Circuit","trend":"rise","alarm":false,"value":"11 MPa","type":"steam"},{"name":"Unit #1 Sec. Circuit","trend":"rise","alarm":false,"value":"12 MPa","type":"steam"},{"name":"Unit #1 Upper Deck","trend":"rise","alarm":false,"value":"287 Bq","type":"radiation"},{"name":"Unit #1 Relief","trend":"fall","alarm":false,"value":"172 Bq","type":"radiation"},{"name":"Unit #1 Heat Exch.","trend":"fall","alarm":false,"value":"225 Bq","type":"radiation"},{"name":"North Env.","trend":"fall","alarm":false,"value":"361 Bq","type":"radiation"}]`;\n \n function app() {\n return {\n metrics: [],\n init() {\n this.metrics = JSON.parse(metricsData);\n }\n };\n }\n <\/script>',metricCard:'<meta\n presto\n name="MetricCard"\n ::color="blue"\n ::title\n ::glyph\n ::trend\n ::value\n />\n \n <div class="w-full p-6">\n <div\n class="bg-gradient-to-b from-{{ color }}-200 to-{{ color }}-100 border-b-4 border-{{ color }}-600 rounded-lg shadow-xl p-5"\n >\n <div class="flex flex-row items-center">\n <div class="flex-shrink pr-4">\n <div class="rounded-full h-16 w-16 flex items-center text-center bg-{{ color }}-600">\n <i class="fa fa-{{ glyph }} fa-2x fa-inverse mx-auto"></i>\n </div>\n </div>\n <div class="flex-1 text-right md:text-center">\n <h5 class="font-bold uppercase text-gray-600">{{ title }}</h5>\n <h3 class="font-bold text-3xl">\n {{ value }}\n <span class="text-{{ color }}-500"\n ><i class="fas fa-caret-{{ trend }}"></i\n ></span>\n </h3>\n </div>\n </div>\n </div>\n </div>'}};async function Yl(e,n){try{t.realpathSync(e);return await Kl({question:`A ${n} already exists in your project directory. Do you want to overwrite it?`})}catch(t){return!0}}const Vl=d(""),Ql=[Vl,"src","presto"].join(e.sep),zl=[Ql,"components"].join(e.sep),Xl=[Vl,"dist"].join(e.sep);async function Wl(){await async function(){const e=d("presto.config.js");await Yl(e,"Presto config file")&&t.writeFileSync(e,"export default {\n input: 'src/presto/index.html',\n\n include: [\n 'src/presto/components/**/*.html'\n ],\n\n output: {\n file: 'dist/index.html',\n formatting: 'none'\n }\n}")}(),t.mkdirSync(zl,{recursive:!0}),t.mkdirSync(Xl,{recursive:!0}),await async function(){let n=await Kl({question:"Do you want to start with some sample components?"});if(!n)return;let r="file named src/presto/",i=`${Ql}${e.sep}index.html`;n=await Yl(i,`${r}index.html`),n&&t.writeFileSync(i,$l.index),r=`${r}components/`,i=`${zl}${e.sep}dochead.html`,n=await Yl(i,`${r}dochead.html`),n&&t.writeFileSync(i,$l.components.head),i=`${zl}${e.sep}alpinesource.html`,n=await Yl(i,`${r}alpinesource.html`),n&&t.writeFileSync(i,$l.components.alpineSource),i=`${zl}${e.sep}metriccard.html`,n=await Yl(i,`${r}metriccard.html`),n&&t.writeFileSync(i,$l.components.metricCard)}()}!async function(){if(Ul.init)return void Wl();const t=await async function(){try{const t=await Fl(Ul.config,!0);return Array.isArray(t)?t:[t]}catch(t){fo(t)}}();try{t.forEach((async t=>{const e=new _c(t);for(const t of e.componentProvider.components)await t.preparePipes();e.outputs.forEach((t=>t.buildBaseExpression()))}))}catch(t){fo(t,!0)}}();