manolis-ui 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -3
- package/.github/workflows/deploy_and_publish.yml +0 -113
- package/.storybook/main.ts +0 -34
- package/.storybook/preview.ts +0 -17
- package/.vscode/extensions.json +0 -3
- package/index.html +0 -13
- package/postcss.config.js +0 -2
- package/public/vite.svg +0 -1
- package/src/App.vue +0 -19
- package/src/assets/vue.svg +0 -1
- package/src/components/actions/ButtonComponent.vue +0 -80
- package/src/components/actions/dropdown.vue +0 -46
- package/src/components/actions/modal.vue +0 -52
- package/src/components/actions/swap.vue +0 -15
- package/src/components/actions/theme-controller.vue +0 -52
- package/src/components/data-display/accordion.vue +0 -29
- package/src/components/data-display/avatar.vue +0 -36
- package/src/components/data-display/badge.vue +0 -35
- package/src/components/data-display/card.vue +0 -60
- package/src/components/data-display/carousel.vue +0 -34
- package/src/components/data-input/advancedSearch.vue +0 -227
- package/src/components/data-input/datetimePicker.vue +0 -402
- package/src/components/data-input/input.vue +0 -98
- package/src/components/data-input/rating.vue +0 -60
- package/src/components/feedback/loader.vue +0 -25
- package/src/components/layout/footer.vue +0 -38
- package/src/components/layout/hero.vue +0 -15
- package/src/components/navigation/categoryNavigation.vue +0 -40
- package/src/components/navigation/navigationBar.vue +0 -107
- package/src/components/navigation/tab.vue +0 -62
- package/src/composables/useLocalStorage.ts +0 -24
- package/src/index.ts +0 -30
- package/src/main.ts +0 -5
- package/src/stories/actions/Button.stories.ts +0 -47
- package/src/stories/actions/Dropdown.stories.ts +0 -70
- package/src/stories/actions/Modal.stories.ts +0 -56
- package/src/stories/actions/Swap.stories.ts +0 -56
- package/src/stories/actions/ThemeSwitcher.stories.ts +0 -41
- package/src/stories/data-display/accordion.stories.ts +0 -49
- package/src/stories/data-display/avatar.stories.ts +0 -75
- package/src/stories/data-display/badge.stories.ts +0 -76
- package/src/stories/data-display/card.stories.ts +0 -79
- package/src/stories/data-input/rating.stories.ts +0 -73
- package/src/stories/feedback/Loader.stories.ts +0 -34
- package/src/stories/layout/footer.stories.ts +0 -63
- package/src/style.css +0 -57
- package/src/vite-env.d.ts +0 -1
- package/storybook-static/assets/Button.stories-B5Gg7Ski.js +0 -6
- package/storybook-static/assets/Color-YHDXOIA2-Cy_mA6cn.js +0 -1
- package/storybook-static/assets/DocsRenderer-CFRXHY34-wSGN0bIp.js +0 -610
- package/storybook-static/assets/Dropdown.stories-Bth3_21L.js +0 -32
- package/storybook-static/assets/Loader.stories-BnqtyQP_.js +0 -5
- package/storybook-static/assets/Modal.stories-CxOA4msz.js +0 -46
- package/storybook-static/assets/Swap.stories-Cpc9q_kE.js +0 -54
- package/storybook-static/assets/ThemeSwitcher.stories-BwHcHihM.js +0 -45
- package/storybook-static/assets/accordion.stories-B6yDsDXk.js +0 -7
- package/storybook-static/assets/avatar.stories-BDN93iYh.js +0 -39
- package/storybook-static/assets/badge.stories-CXQpnu0e.js +0 -39
- package/storybook-static/assets/card.stories-1gVWO2fs.js +0 -48
- package/storybook-static/assets/entry-preview-Cfvj9hgI.js +0 -1
- package/storybook-static/assets/entry-preview-docs-BJQT5BWv.js +0 -16
- package/storybook-static/assets/footer.stories-DPXqApht.js +0 -23
- package/storybook-static/assets/iframe-BNdG_Qtn.js +0 -211
- package/storybook-static/assets/index-Bx-go_-4.js +0 -8
- package/storybook-static/assets/index-CiNYFPF0.js +0 -1
- package/storybook-static/assets/index-DrFu-skq.js +0 -6
- package/storybook-static/assets/preview-4lzcCKUM.css +0 -1
- package/storybook-static/assets/preview-B8lJiyuQ.js +0 -34
- package/storybook-static/assets/preview-BBWR9nbA.js +0 -1
- package/storybook-static/assets/preview-BWzBA1C2.js +0 -396
- package/storybook-static/assets/preview-CvbIS5ZJ.js +0 -1
- package/storybook-static/assets/preview-DD_OYowb.js +0 -1
- package/storybook-static/assets/preview-DGUiP6tS.js +0 -7
- package/storybook-static/assets/preview-DHQbi4pV.js +0 -1
- package/storybook-static/assets/preview-DMNI4LCC.js +0 -15
- package/storybook-static/assets/preview-DnqJFqn_.js +0 -2
- package/storybook-static/assets/preview-Dsq_8SDT.js +0 -240
- package/storybook-static/assets/preview-hHK5u5_Q.js +0 -1
- package/storybook-static/assets/rating.stories-BX0Pzp5i.js +0 -27
- package/storybook-static/assets/vue.esm-bundler-C-YazFc_.js +0 -36
- package/storybook-static/favicon.svg +0 -1
- package/storybook-static/iframe.html +0 -666
- package/storybook-static/index.html +0 -181
- package/storybook-static/index.json +0 -1
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +0 -1
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js +0 -331
- package/storybook-static/sb-addons/chromatic-com-storybook-9/manager-bundle.js.LEGAL.txt +0 -51
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +0 -12
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +0 -402
- package/storybook-static/sb-addons/essentials-docs-3/manager-bundle.js +0 -242
- package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/interactions-10/manager-bundle.js +0 -222
- package/storybook-static/sb-addons/links-11/manager-bundle.js +0 -3
- package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/storybook-static/sb-common-assets/favicon.svg +0 -1
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +0 -1046
- package/storybook-static/sb-manager/globals-runtime.js +0 -41239
- package/storybook-static/sb-manager/globals.js +0 -48
- package/storybook-static/sb-manager/runtime.js +0 -12048
- package/storybook-static/vite.svg +0 -1
- package/tsconfig.app.json +0 -27
- package/tsconfig.build.json +0 -3
- package/tsconfig.json +0 -7
- package/tsconfig.node.json +0 -25
- package/vite.config.ts +0 -43
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{c as Iu}from"./vue.esm-bundler-C-YazFc_.js";var ws=Object.create,Zt=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,qs=Object.getOwnPropertyNames,Ys=Object.getPrototypeOf,Vs=Object.prototype.hasOwnProperty,Qs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ae=(e,t)=>{for(var u in t)Zt(e,u,{get:t[u],enumerable:!0})},Ws=(e,t,u,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of qs(t))!Vs.call(e,a)&&a!==u&&Zt(e,a,{get:()=>t[a],enumerable:!(r=Gs(t,a))||r.enumerable});return e},de=(e,t,u)=>(u=e!=null?ws(Ys(e)):{},Ws(Zt(u,"default",{value:e,enumerable:!0}),e)),Te=Qs((e,t)=>{t.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}}),or=(e,t)=>{let u=e??`{{ args.${t} }}`,r=a=>`<template #${t}>
|
|
2
|
-
${a}
|
|
3
|
-
</template>`;return(u.includes(`<template #${t}`)?u:r(u)).replace(/<template #default>(\n*)(.*)(\n*)<\/template>/gimsu,"$2")},cr="slots",Xs=()=>{let e=(t,u,r)=>`
|
|
4
|
-
<${t} ${Object.keys(r).map(a=>`:${a}="args['${a}']"`).join(" ")}>
|
|
5
|
-
${u}
|
|
6
|
-
</${t}>
|
|
7
|
-
`;return(t,{viewMode:u,componentId:r,component:a,parameters:n})=>{let o=a.__name||a.name;if(!(n!=null&&n.slots))return{template:e(o,"",t),components:{[o]:a},setup:()=>({args:Iu(()=>({...t}))})};let E=Object.entries(n.slots).reduce((m,[f,D])=>`${m}
|
|
8
|
-
${or(typeof D=="object"?D.template:void 0,f)}`,""),h=Object.entries(n.slots).reduce((m,[,f])=>({...m,...typeof f=="object"?f.components:{}}),{});if(!a)throw new Error("No component provided to render");return{template:e(o,E,t),components:{[o]:a,...h||{}},setup:()=>({args:Iu(()=>({...t}))})}}},Ks=Xs,js={xml:!1,decodeEntities:!0},Jt=js,Bu={_useHtmlParser2:!0,xmlMode:!0};function Ut(e){return e!=null&&e.xml?typeof e.xml=="boolean"?Bu:{...Bu,...e.xml}:e??void 0}var lr={};ae(lr,{contains:()=>Or,html:()=>Za,merge:()=>un,parseHTML:()=>en,root:()=>tn,text:()=>Ve,xml:()=>Ja});var Xe={};ae(Xe,{DocumentPosition:()=>Q,append:()=>Ma,appendChild:()=>xa,compareDocumentPosition:()=>Fr,existsOne:()=>Ir,filter:()=>Nt,find:()=>cu,findAll:()=>Ua,findOne:()=>lu,findOneChild:()=>va,getAttributeValue:()=>Ra,getChildren:()=>_t,getElementById:()=>qa,getElements:()=>Ga,getElementsByTagName:()=>Fe,getElementsByTagType:()=>Ya,getFeed:()=>Qa,getInnerHTML:()=>ba,getName:()=>La,getOuterHTML:()=>_r,getParent:()=>Nr,getSiblings:()=>gr,getText:()=>it,hasAttrib:()=>Oa,hasChildren:()=>y,innerText:()=>lt,isCDATA:()=>ft,isComment:()=>Dt,isDocument:()=>pe,isTag:()=>B,isText:()=>z,nextElementSibling:()=>iu,prepend:()=>Pa,prependChild:()=>ya,prevElementSibling:()=>ou,removeElement:()=>me,removeSubsets:()=>Va,replaceElement:()=>ka,testElement:()=>wa,textContent:()=>Be,uniqueSort:()=>be});var b;(function(e){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"})(b||(b={}));function $s(e){return e.type===b.Tag||e.type===b.Script||e.type===b.Style}var zs=b.Root,Zs=b.Text,Js=b.Directive,ea=b.Comment,ta=b.Script,ua=b.Style,ra=b.Tag,sa=b.CDATA,aa=b.Doctype,Er=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return ct(this,e)}},eu=class extends Er{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},Ye=class extends eu{constructor(){super(...arguments),this.type=b.Text}get nodeType(){return 3}},tu=class extends eu{constructor(){super(...arguments),this.type=b.Comment}get nodeType(){return 8}},uu=class extends eu{constructor(e,t){super(t),this.name=e,this.type=b.Directive}get nodeType(){return 1}},ru=class extends Er{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},hr=class extends ru{constructor(){super(...arguments),this.type=b.CDATA}get nodeType(){return 4}},he=class extends ru{constructor(){super(...arguments),this.type=b.Root}get nodeType(){return 9}},su=class extends ru{constructor(e,t,u=[],r=e==="script"?b.Script:e==="style"?b.Style:b.Tag){super(u),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var t,u;return{name:e,value:this.attribs[e],namespace:(t=this["x-attribsNamespace"])===null||t===void 0?void 0:t[e],prefix:(u=this["x-attribsPrefix"])===null||u===void 0?void 0:u[e]}})}};function B(e){return $s(e)}function ft(e){return e.type===b.CDATA}function z(e){return e.type===b.Text}function Dt(e){return e.type===b.Comment}function Ht(e){return e.type===b.Directive}function pe(e){return e.type===b.Root}function y(e){return Object.prototype.hasOwnProperty.call(e,"children")}function ct(e,t=!1){let u;if(z(e))u=new Ye(e.data);else if(Dt(e))u=new tu(e.data);else if(B(e)){let r=t?bt(e.children):[],a=new su(e.name,{...e.attribs},r);r.forEach(n=>n.parent=a),e.namespace!=null&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]={...e["x-attribsPrefix"]}),u=a}else if(ft(e)){let r=t?bt(e.children):[],a=new hr(r);r.forEach(n=>n.parent=a),u=a}else if(pe(e)){let r=t?bt(e.children):[],a=new he(r);r.forEach(n=>n.parent=a),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),u=a}else if(Ht(e)){let r=new uu(e.name,e.data);e["x-name"]!=null&&(r["x-name"]=e["x-name"],r["x-publicId"]=e["x-publicId"],r["x-systemId"]=e["x-systemId"]),u=r}else throw new Error(`Not implemented yet: ${e.type}`);return u.startIndex=e.startIndex,u.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(u.sourceCodeLocation=e.sourceCodeLocation),u}function bt(e){let t=e.map(u=>ct(u,!0));for(let u=1;u<t.length;u++)t[u].prev=t[u-1],t[u-1].next=t[u];return t}var Su={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},na=class{constructor(e,t,u){this.dom=[],this.root=new he(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof t=="function"&&(u=t,t=Su),typeof e=="object"&&(t=e,e=void 0),this.callback=e??null,this.options=t??Su,this.elementCB=u??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new he(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){let u=this.options.xmlMode?b.Tag:void 0,r=new su(e,t,void 0,u);this.addNode(r),this.tagStack.push(r)}ontext(e){let{lastNode:t}=this;if(t&&t.type===b.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{let u=new Ye(e);this.addNode(u),this.lastNode=u}}oncomment(e){if(this.lastNode&&this.lastNode.type===b.Comment){this.lastNode.data+=e;return}let t=new tu(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){let e=new Ye(""),t=new hr([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){let u=new uu(e,t);this.addNode(u)}handleCallback(e){if(typeof this.callback=="function")this.callback(e,this.dom);else if(e)throw e}addNode(e){let t=this.tagStack[this.tagStack.length-1],u=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),u&&(e.prev=u,u.next=e),e.parent=t,this.lastNode=null}},ee=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Ar=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),Rt,ia=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),wt=(Rt=String.fromCodePoint)!==null&&Rt!==void 0?Rt:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function dr(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=ia.get(e))!==null&&t!==void 0?t:e}var M;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(M||(M={}));var oa=32,V;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(V||(V={}));function Gt(e){return e>=M.ZERO&&e<=M.NINE}function ca(e){return e>=M.UPPER_A&&e<=M.UPPER_F||e>=M.LOWER_A&&e<=M.LOWER_F}function la(e){return e>=M.UPPER_A&&e<=M.UPPER_Z||e>=M.LOWER_A&&e<=M.LOWER_Z||Gt(e)}function Ea(e){return e===M.EQUALS||la(e)}var x;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(x||(x={}));var ce;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ce||(ce={}));var ha=class{constructor(e,t,u){this.decodeTree=e,this.emitCodePoint=t,this.errors=u,this.state=x.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ce.Strict}startEntity(e){this.decodeMode=e,this.state=x.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case x.EntityStart:return e.charCodeAt(t)===M.NUM?(this.state=x.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=x.NamedEntity,this.stateNamedEntity(e,t));case x.NumericStart:return this.stateNumericStart(e,t);case x.NumericDecimal:return this.stateNumericDecimal(e,t);case x.NumericHex:return this.stateNumericHex(e,t);case x.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|oa)===M.LOWER_X?(this.state=x.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=x.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,u,r){if(t!==u){let a=u-t;this.result=this.result*Math.pow(r,a)+parseInt(e.substr(t,a),r),this.consumed+=a}}stateNumericHex(e,t){let u=t;for(;t<e.length;){let r=e.charCodeAt(t);if(Gt(r)||ca(r))t+=1;else return this.addToNumericResult(e,u,t,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,u,t,16),-1}stateNumericDecimal(e,t){let u=t;for(;t<e.length;){let r=e.charCodeAt(t);if(Gt(r))t+=1;else return this.addToNumericResult(e,u,t,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,u,t,10),-1}emitNumericEntity(e,t){var u;if(this.consumed<=t)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===M.SEMI)this.consumed+=1;else if(this.decodeMode===ce.Strict)return 0;return this.emitCodePoint(dr(this.result),this.consumed),this.errors&&(e!==M.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:u}=this,r=u[this.treeIndex],a=(r&V.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let n=e.charCodeAt(t);if(this.treeIndex=au(u,r,this.treeIndex+Math.max(1,a),n),this.treeIndex<0)return this.result===0||this.decodeMode===ce.Attribute&&(a===0||Ea(n))?0:this.emitNotTerminatedNamedEntity();if(r=u[this.treeIndex],a=(r&V.VALUE_LENGTH)>>14,a!==0){if(n===M.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==ce.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:u}=this,r=(u[t]&V.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,u){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~V.VALUE_LENGTH:r[e+1],u),t===3&&this.emitCodePoint(r[e+2],u),u}end(){var e;switch(this.state){case x.NamedEntity:return this.result!==0&&(this.decodeMode!==ce.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case x.NumericDecimal:return this.emitNumericEntity(0,2);case x.NumericHex:return this.emitNumericEntity(0,3);case x.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case x.EntityStart:return 0}}};function Tr(e){let t="",u=new ha(e,r=>t+=wt(r));return function(r,a){let n=0,o=0;for(;(o=r.indexOf("&",o))>=0;){t+=r.slice(n,o),u.startEntity(a);let h=u.write(r,o+1);if(h<0){n=o+u.end();break}n=o+h,o=h===0?n+1:n}let E=t+r.slice(n);return t="",E}}function au(e,t,u,r){let a=(t&V.BRANCH_LENGTH)>>7,n=t&V.JUMP_TABLE;if(a===0)return n!==0&&r===n?u:-1;if(n){let h=r-n;return h<0||h>=a?-1:e[u+h]-1}let o=u,E=o+a-1;for(;o<=E;){let h=o+E>>>1,m=e[h];if(m<r)o=h+1;else if(m>r)E=h-1;else return e[h+a]}return-1}Tr(ee);Tr(Ar);function et(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}new Map(et([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(et([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(et([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(et([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var Fu=/["&'<>$\x80-\uFFFF]/g,Aa=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),da=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function pr(e){let t="",u=0,r;for(;(r=Fu.exec(e))!==null;){let a=r.index,n=e.charCodeAt(a),o=Aa.get(n);o!==void 0?(t+=e.substring(u,a)+o,u=a+1):(t+=`${e.substring(u,a)}&#x${da(e,a).toString(16)};`,u=Fu.lastIndex+=+((n&64512)===55296))}return t+e.substr(u)}function mr(e,t){return function(u){let r,a=0,n="";for(;r=e.exec(u);)a!==r.index&&(n+=u.substring(a,r.index)),n+=t.get(r[0].charCodeAt(0)),a=r.index+1;return n+u.substring(a)}}var Cr=mr(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),fr=mr(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),bu;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(bu||(bu={}));var Ru;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(Ru||(Ru={}));var Ta=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),pa=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),ma=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Ca(e){return e.replace(/"/g,""")}function fa(e,t){var u;if(!e)return;let r=((u=t.encodeEntities)!==null&&u!==void 0?u:t.decodeEntities)===!1?Ca:t.xmlMode||t.encodeEntities!=="utf8"?pr:Cr;return Object.keys(e).map(a=>{var n,o;let E=(n=e[a])!==null&&n!==void 0?n:"";return t.xmlMode==="foreign"&&(a=(o=pa.get(a))!==null&&o!==void 0?o:a),!t.emptyAttrs&&!t.xmlMode&&E===""?a:`${a}="${r(E)}"`}).join(" ")}var Ou=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function nu(e,t={}){let u="length"in e?e:[e],r="";for(let a=0;a<u.length;a++)r+=Da(u[a],t);return r}var Dr=nu;function Da(e,t){switch(e.type){case zs:return nu(e.children,t);case aa:case Js:return Ia(e);case ea:return Fa(e);case sa:return Sa(e);case ta:case ua:case ra:return ga(e,t);case Zs:return Ba(e,t)}}var _a=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Na=new Set(["svg","math"]);function ga(e,t){var u;t.xmlMode==="foreign"&&(e.name=(u=Ta.get(e.name))!==null&&u!==void 0?u:e.name,e.parent&&_a.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&Na.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`,a=fa(e.attribs,t);return a&&(r+=` ${a}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Ou.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=nu(e.children,t)),(t.xmlMode||!Ou.has(e.name))&&(r+=`</${e.name}>`)),r}function Ia(e){return`<${e.data}>`}function Ba(e,t){var u;let r=e.data||"";return((u=t.encodeEntities)!==null&&u!==void 0?u:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&ma.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?pr(r):fr(r)),r}function Sa(e){return`<![CDATA[${e.children[0].data}]]>`}function Fa(e){return`<!--${e.data}-->`}function _r(e,t){return Dr(e,t)}function ba(e,t){return y(e)?e.children.map(u=>_r(u,t)).join(""):""}function it(e){return Array.isArray(e)?e.map(it).join(""):B(e)?e.name==="br"?`
|
|
9
|
-
`:it(e.children):ft(e)?it(e.children):z(e)?e.data:""}function Be(e){return Array.isArray(e)?e.map(Be).join(""):y(e)&&!Dt(e)?Be(e.children):z(e)?e.data:""}function lt(e){return Array.isArray(e)?e.map(lt).join(""):y(e)&&(e.type===b.Tag||ft(e))?lt(e.children):z(e)?e.data:""}function _t(e){return y(e)?e.children:[]}function Nr(e){return e.parent||null}function gr(e){let t=Nr(e);if(t!=null)return _t(t);let u=[e],{prev:r,next:a}=e;for(;r!=null;)u.unshift(r),{prev:r}=r;for(;a!=null;)u.push(a),{next:a}=a;return u}function Ra(e,t){var u;return(u=e.attribs)===null||u===void 0?void 0:u[t]}function Oa(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function La(e){return e.name}function iu(e){let{next:t}=e;for(;t!==null&&!B(t);)({next:t}=t);return t}function ou(e){let{prev:t}=e;for(;t!==null&&!B(t);)({prev:t}=t);return t}function me(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){let t=e.parent.children,u=t.lastIndexOf(e);u>=0&&t.splice(u,1)}e.next=null,e.prev=null,e.parent=null}function ka(e,t){let u=t.prev=e.prev;u&&(u.next=t);let r=t.next=e.next;r&&(r.prev=t);let a=t.parent=e.parent;if(a){let n=a.children;n[n.lastIndexOf(e)]=t,e.parent=null}}function xa(e,t){if(me(t),t.next=null,t.parent=e,e.children.push(t)>1){let u=e.children[e.children.length-2];u.next=t,t.prev=u}else t.prev=null}function Ma(e,t){me(t);let{parent:u}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=u,r){if(r.prev=t,u){let a=u.children;a.splice(a.lastIndexOf(r),0,t)}}else u&&u.children.push(t)}function ya(e,t){if(me(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){let u=e.children[1];u.prev=t,t.next=u}else t.next=null}function Pa(e,t){me(t);let{parent:u}=e;if(u){let r=u.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=u,t.prev=e.prev,t.next=e,e.prev=t}function Nt(e,t,u=!0,r=1/0){return cu(e,Array.isArray(t)?t:[t],u,r)}function cu(e,t,u,r){let a=[],n=[t],o=[0];for(;;){if(o[0]>=n[0].length){if(o.length===1)return a;n.shift(),o.shift();continue}let E=n[0][o[0]++];if(e(E)&&(a.push(E),--r<=0))return a;u&&y(E)&&E.children.length>0&&(o.unshift(0),n.unshift(E.children))}}function va(e,t){return t.find(e)}function lu(e,t,u=!0){let r=null;for(let a=0;a<t.length&&!r;a++){let n=t[a];if(B(n))e(n)?r=n:u&&n.children.length>0&&(r=lu(e,n.children,!0));else continue}return r}function Ir(e,t){return t.some(u=>B(u)&&(e(u)||Ir(e,u.children)))}function Ua(e,t){let u=[],r=[t],a=[0];for(;;){if(a[0]>=r[0].length){if(r.length===1)return u;r.shift(),a.shift();continue}let n=r[0][a[0]++];B(n)&&(e(n)&&u.push(n),n.children.length>0&&(a.unshift(0),r.unshift(n.children)))}}var Et={tag_name(e){return typeof e=="function"?t=>B(t)&&e(t.name):e==="*"?B:t=>B(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>z(t)&&e(t.data):t=>z(t)&&t.data===e}};function Br(e,t){return typeof t=="function"?u=>B(u)&&t(u.attribs[e]):u=>B(u)&&u.attribs[e]===t}function Ha(e,t){return u=>e(u)||t(u)}function Sr(e){let t=Object.keys(e).map(u=>{let r=e[u];return Object.prototype.hasOwnProperty.call(Et,u)?Et[u](r):Br(u,r)});return t.length===0?null:t.reduce(Ha)}function wa(e,t){let u=Sr(e);return u?u(t):!0}function Ga(e,t,u,r=1/0){let a=Sr(e);return a?Nt(a,t,u,r):[]}function qa(e,t,u=!0){return Array.isArray(t)||(t=[t]),lu(Br("id",e),t,u)}function Fe(e,t,u=!0,r=1/0){return Nt(Et.tag_name(e),t,u,r)}function Ya(e,t,u=!0,r=1/0){return Nt(Et.tag_type(e),t,u,r)}function Va(e){let t=e.length;for(;--t>=0;){let u=e[t];if(t>0&&e.lastIndexOf(u,t-1)>=0){e.splice(t,1);continue}for(let r=u.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var Q;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(Q||(Q={}));function Fr(e,t){let u=[],r=[];if(e===t)return 0;let a=y(e)?e:e.parent;for(;a;)u.unshift(a),a=a.parent;for(a=y(t)?t:t.parent;a;)r.unshift(a),a=a.parent;let n=Math.min(u.length,r.length),o=0;for(;o<n&&u[o]===r[o];)o++;if(o===0)return Q.DISCONNECTED;let E=u[o-1],h=E.children,m=u[o],f=r[o];return h.indexOf(m)>h.indexOf(f)?E===t?Q.FOLLOWING|Q.CONTAINED_BY:Q.FOLLOWING:E===e?Q.PRECEDING|Q.CONTAINS:Q.PRECEDING}function be(e){return e=e.filter((t,u,r)=>!r.includes(t,u+1)),e.sort((t,u)=>{let r=Fr(t,u);return r&Q.PRECEDING?-1:r&Q.FOLLOWING?1:0}),e}function Qa(e){let t=ht($a,e);return t?t.name==="feed"?Wa(t):Xa(t):null}function Wa(e){var t;let u=e.children,r={type:"atom",items:Fe("entry",u).map(o=>{var E;let{children:h}=o,m={media:br(h)};w(m,"id","id",h),w(m,"title","title",h);let f=(E=ht("link",h))===null||E===void 0?void 0:E.attribs.href;f&&(m.link=f);let D=re("summary",h)||re("content",h);D&&(m.description=D);let N=re("updated",h);return N&&(m.pubDate=new Date(N)),m})};w(r,"id","id",u),w(r,"title","title",u);let a=(t=ht("link",u))===null||t===void 0?void 0:t.attribs.href;a&&(r.link=a),w(r,"description","subtitle",u);let n=re("updated",u);return n&&(r.updated=new Date(n)),w(r,"author","email",u,!0),r}function Xa(e){var t,u;let r=(u=(t=ht("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&u!==void 0?u:[],a={type:e.name.substr(0,3),id:"",items:Fe("item",e.children).map(o=>{let{children:E}=o,h={media:br(E)};w(h,"id","guid",E),w(h,"title","title",E),w(h,"link","link",E),w(h,"description","description",E);let m=re("pubDate",E)||re("dc:date",E);return m&&(h.pubDate=new Date(m)),h})};w(a,"title","title",r),w(a,"link","link",r),w(a,"description","description",r);let n=re("lastBuildDate",r);return n&&(a.updated=new Date(n)),w(a,"author","managingEditor",r,!0),a}var Ka=["url","type","lang"],ja=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function br(e){return Fe("media:content",e).map(t=>{let{attribs:u}=t,r={medium:u.medium,isDefault:!!u.isDefault};for(let a of Ka)u[a]&&(r[a]=u[a]);for(let a of ja)u[a]&&(r[a]=parseInt(u[a],10));return u.expression&&(r.expression=u.expression),r})}function ht(e,t){return Fe(e,t,!0,1)[0]}function re(e,t,u=!1){return Be(Fe(e,t,u,1)).trim()}function w(e,t,u,r,a=!1){let n=re(u,r,a);n&&(e[t]=n)}function $a(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}function Rr(e,t,u){return e?e(t??e._root.children,null,void 0,u).toString():""}function za(e,t){return typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function Za(e,t){let u=za(e)?(t=e,void 0):e,r={...Jt,...this===null||this===void 0?void 0:this._options,...Ut(t??{})};return Rr(this,u,r)}function Ja(e){let t={...this._options,xmlMode:!0};return Rr(this,e,t)}function Ve(e){let t=e||(this?this.root():[]),u="";for(let r=0;r<t.length;r++)u+=Be(t[r]);return u}function en(e,t,u=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(u=t);let r=this.load(e,Jt,!1);return u||r("script").remove(),r.root()[0].children.slice()}function tn(){return this(this._root)}function Or(e,t){if(t===e)return!1;let u=t;for(;u&&u!==u.parent;)if(u=u.parent,u===e)return!0;return!1}function un(e,t){if(!Lu(e)||!Lu(t))return;let u=e.length,r=+t.length;for(let a=0;a<r;a++)e[u++]=t[a];return e.length=u,e}function Lu(e){if(Array.isArray(e))return!0;if(typeof e!="object"||!Object.prototype.hasOwnProperty.call(e,"length")||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}var Lr={};ae(Lr,{addClass:()=>xr,attr:()=>nn,data:()=>cn,hasClass:()=>hn,prop:()=>on,removeAttr:()=>En,removeClass:()=>Mr,toggleClass:()=>yr,val:()=>ln});function Z(e){return e.cheerio!=null}function rn(e){return e.replace(/[_.-](\w|$)/g,(t,u)=>u.toUpperCase())}function sn(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function L(e,t){let u=e.length;for(let r=0;r<u;r++)t(e[r],r);return e}function qt(e){let t="length"in e?Array.prototype.map.call(e,r=>ct(r,!0)):[ct(e,!0)],u=new he(t);return t.forEach(r=>{r.parent=u}),t}var le;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(le||(le={}));function Yt(e){let t=e.indexOf("<");if(t<0||t>e.length-3)return!1;let u=e.charCodeAt(t+1);return(u>=le.LowerA&&u<=le.LowerZ||u>=le.UpperA&&u<=le.UpperZ||u===le.Exclamation)&&e.includes(">",t+2)}var ge=Object.prototype.hasOwnProperty,Qe=/\s+/,Ot="data-",ku={null:null,true:!0,false:!1},Eu=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,an=/^{[^]*}$|^\[[^]*]$/;function At(e,t,u){var r;if(!(!e||!B(e))){if((r=e.attribs)!==null&&r!==void 0||(e.attribs={}),!t)return e.attribs;if(ge.call(e.attribs,t))return!u&&Eu.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return Ve(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function Ie(e,t,u){u===null?kr(e,t):e.attribs[t]=`${u}`}function nn(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return L(this,(u,r)=>{B(u)&&Ie(u,e,t.call(u,r,u.attribs[e]))})}return L(this,u=>{B(u)&&(typeof e=="object"?Object.keys(e).forEach(r=>{let a=e[r];Ie(u,r,a)}):Ie(u,e,t))})}return arguments.length>1?this:At(this[0],e,this.options.xmlMode)}function xu(e,t,u){return t in e?e[t]:!u&&Eu.test(t)?At(e,t,!1)!==void 0:At(e,t,u)}function Lt(e,t,u,r){t in e?e[t]=u:Ie(e,t,!r&&Eu.test(t)?u?"":null:`${u}`)}function on(e,t){var u;if(typeof e=="string"&&t===void 0){let r=this[0];if(!r||!B(r))return;switch(e){case"style":{let a=this.css(),n=Object.keys(a);return n.forEach((o,E)=>{a[E]=o}),a.length=n.length,a}case"tagName":case"nodeName":return r.name.toUpperCase();case"href":case"src":{let a=(u=r.attribs)===null||u===void 0?void 0:u[e];return typeof URL<"u"&&(e==="href"&&(r.tagName==="a"||r.name==="link")||e==="src"&&(r.tagName==="img"||r.tagName==="iframe"||r.tagName==="audio"||r.tagName==="video"||r.tagName==="source"))&&a!==void 0&&this.options.baseURI?new URL(a,this.options.baseURI).href:a}case"innerText":return lt(r);case"textContent":return Be(r);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return xu(r,e,this.options.xmlMode)}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new Error("Bad combination of arguments.");return L(this,(r,a)=>{B(r)&&Lt(r,e,t.call(r,a,xu(r,e,this.options.xmlMode)),this.options.xmlMode)})}return L(this,r=>{B(r)&&(typeof e=="object"?Object.keys(e).forEach(a=>{let n=e[a];Lt(r,a,n,this.options.xmlMode)}):Lt(r,e,t,this.options.xmlMode))})}}function Mu(e,t,u){var r;let a=e;(r=a.data)!==null&&r!==void 0||(a.data={}),typeof t=="object"?Object.assign(a.data,t):typeof t=="string"&&u!==void 0&&(a.data[t]=u)}function yu(e,t){let u,r,a;t==null?(u=Object.keys(e.attribs).filter(n=>n.startsWith(Ot)),r=u.map(n=>rn(n.slice(Ot.length)))):(u=[Ot+sn(t)],r=[t]);for(let n=0;n<u.length;++n){let o=u[n],E=r[n];if(ge.call(e.attribs,o)&&!ge.call(e.data,E)){if(a=e.attribs[o],ge.call(ku,a))a=ku[a];else if(a===String(Number(a)))a=Number(a);else if(an.test(a))try{a=JSON.parse(a)}catch{}e.data[E]=a}}return t==null?e.data:a}function cn(e,t){var u;let r=this[0];if(!r||!B(r))return;let a=r;return(u=a.data)!==null&&u!==void 0||(a.data={}),e?typeof e=="object"||t!==void 0?(L(this,n=>{B(n)&&(typeof e=="object"?Mu(n,e):Mu(n,e,t))}),this):ge.call(a.data,e)?a.data[e]:yu(a,e):yu(a)}function ln(e){let t=arguments.length===0,u=this[0];if(!u||!B(u))return t?void 0:this;switch(u.name){case"textarea":return this.text(e);case"select":{let r=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");let a=typeof e!="object"?[e]:e;for(let n=0;n<a.length;n++)this.find(`option[value="${a[n]}"]`).attr("selected","");return this}return this.attr("multiple")?r.toArray().map(a=>Ve(a.children)):r.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function kr(e,t){!e.attribs||!ge.call(e.attribs,t)||delete e.attribs[t]}function dt(e){return e?e.trim().split(Qe):[]}function En(e){let t=dt(e);for(let u=0;u<t.length;u++)L(this,r=>{B(r)&&kr(r,t[u])});return this}function hn(e){return this.toArray().some(t=>{let u=B(t)&&t.attribs.class,r=-1;if(u&&e.length)for(;(r=u.indexOf(e,r+1))>-1;){let a=r+e.length;if((r===0||Qe.test(u[r-1]))&&(a===u.length||Qe.test(u[a])))return!0}return!1})}function xr(e){if(typeof e=="function")return L(this,(r,a)=>{if(B(r)){let n=r.attribs.class||"";xr.call([r],e.call(r,a,n))}});if(!e||typeof e!="string")return this;let t=e.split(Qe),u=this.length;for(let r=0;r<u;r++){let a=this[r];if(!B(a))continue;let n=At(a,"class",!1);if(!n)Ie(a,"class",t.join(" ").trim());else{let o=` ${n} `;for(let E=0;E<t.length;E++){let h=`${t[E]} `;o.includes(` ${h}`)||(o+=h)}Ie(a,"class",o.trim())}}return this}function Mr(e){if(typeof e=="function")return L(this,(a,n)=>{B(a)&&Mr.call([a],e.call(a,n,a.attribs.class||""))});let t=dt(e),u=t.length,r=arguments.length===0;return L(this,a=>{if(B(a))if(r)a.attribs.class="";else{let n=dt(a.attribs.class),o=!1;for(let E=0;E<u;E++){let h=n.indexOf(t[E]);h>=0&&(n.splice(h,1),o=!0,E--)}o&&(a.attribs.class=n.join(" "))}})}function yr(e,t){if(typeof e=="function")return L(this,(o,E)=>{B(o)&&yr.call([o],e.call(o,E,o.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;let u=e.split(Qe),r=u.length,a=typeof t=="boolean"?t?1:-1:0,n=this.length;for(let o=0;o<n;o++){let E=this[o];if(!B(E))continue;let h=dt(E.attribs.class);for(let m=0;m<r;m++){let f=h.indexOf(u[m]);a>=0&&f<0?h.push(u[m]):a<=0&&f>=0&&h.splice(f,1)}E.attribs.class=h.join(" ")}return this}var Pr={};ae(Pr,{add:()=>gi,addBack:()=>Ii,children:()=>ii,closest:()=>Jn,contents:()=>oi,each:()=>ci,end:()=>Ni,eq:()=>mi,filter:()=>Ei,filterArray:()=>Cu,find:()=>jn,first:()=>Ti,get:()=>Ci,has:()=>di,index:()=>Di,is:()=>hi,last:()=>pi,map:()=>li,next:()=>ei,nextAll:()=>ti,nextUntil:()=>ui,not:()=>Ai,parent:()=>$n,parents:()=>zn,parentsUntil:()=>Zn,prev:()=>ri,prevAll:()=>si,prevUntil:()=>ai,siblings:()=>ni,slice:()=>_i,toArray:()=>fi});var I;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(I||(I={}));var k;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(k||(k={}));var Pu=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,An=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,dn=new Map([[126,k.Element],[94,k.Start],[36,k.End],[42,k.Any],[33,k.Not],[124,k.Hyphen]]),Tn=new Set(["has","not","matches","is","where","host","host-context"]);function Pe(e){switch(e.type){case I.Adjacent:case I.Child:case I.Descendant:case I.Parent:case I.Sibling:case I.ColumnCombinator:return!0;default:return!1}}var pn=new Set(["contains","icontains"]);function mn(e,t,u){let r=parseInt(t,16)-65536;return r!==r||u?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function ke(e){return e.replace(An,mn)}function kt(e){return e===39||e===34}function vu(e){return e===32||e===9||e===10||e===12||e===13}function gt(e){let t=[],u=vr(t,`${e}`,0);if(u<e.length)throw new Error(`Unmatched selector: ${e.slice(u)}`);return t}function vr(e,t,u){let r=[];function a(N){let g=t.slice(u+N).match(Pu);if(!g)throw new Error(`Expected name, found ${t.slice(u)}`);let[S]=g;return u+=N+S.length,ke(S)}function n(N){for(u+=N;u<t.length&&vu(t.charCodeAt(u));)u++}function o(){u+=1;let N=u,g=1;for(;g>0&&u<t.length;u++)t.charCodeAt(u)===40&&!E(u)?g++:t.charCodeAt(u)===41&&!E(u)&&g--;if(g)throw new Error("Parenthesis not matched");return ke(t.slice(N,u-1))}function E(N){let g=0;for(;t.charCodeAt(--N)===92;)g++;return(g&1)===1}function h(){if(r.length>0&&Pe(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function m(N){if(r.length>0&&r[r.length-1].type===I.Descendant){r[r.length-1].type=N;return}h(),r.push({type:N})}function f(N,g){r.push({type:I.Attribute,name:N,action:g,value:a(1),namespace:null,ignoreCase:"quirks"})}function D(){if(r.length&&r[r.length-1].type===I.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(n(0),t.length===u)return u;e:for(;u<t.length;){let N=t.charCodeAt(u);switch(N){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==I.Descendant)&&(h(),r.push({type:I.Descendant})),n(1);break}case 62:{m(I.Child),n(1);break}case 60:{m(I.Parent),n(1);break}case 126:{m(I.Sibling),n(1);break}case 43:{m(I.Adjacent),n(1);break}case 46:{f("class",k.Element);break}case 35:{f("id",k.Equals);break}case 91:{n(1);let g,S=null;t.charCodeAt(u)===124?g=a(1):t.startsWith("*|",u)?(S="*",g=a(2)):(g=a(0),t.charCodeAt(u)===124&&t.charCodeAt(u+1)!==61&&(S=g,g=a(1))),n(0);let v=k.Exists,W=dn.get(t.charCodeAt(u));if(W){if(v=W,t.charCodeAt(u+1)!==61)throw new Error("Expected `=`");n(2)}else t.charCodeAt(u)===61&&(v=k.Equals,n(1));let fe="",De=null;if(v!=="exists"){if(kt(t.charCodeAt(u))){let Je=t.charCodeAt(u),ie=u+1;for(;ie<t.length&&(t.charCodeAt(ie)!==Je||E(ie));)ie+=1;if(t.charCodeAt(ie)!==Je)throw new Error("Attribute value didn't end");fe=ke(t.slice(u+1,ie)),u=ie+1}else{let Je=u;for(;u<t.length&&(!vu(t.charCodeAt(u))&&t.charCodeAt(u)!==93||E(u));)u+=1;fe=ke(t.slice(Je,u))}n(0);let Le=t.charCodeAt(u)|32;Le===115?(De=!1,n(1)):Le===105&&(De=!0,n(1))}if(t.charCodeAt(u)!==93)throw new Error("Attribute selector didn't terminate");u+=1;let Oe={type:I.Attribute,name:g,action:v,value:fe,namespace:S,ignoreCase:De};r.push(Oe);break}case 58:{if(t.charCodeAt(u+1)===58){r.push({type:I.PseudoElement,name:a(2).toLowerCase(),data:t.charCodeAt(u)===40?o():null});continue}let g=a(1).toLowerCase(),S=null;if(t.charCodeAt(u)===40)if(Tn.has(g)){if(kt(t.charCodeAt(u+1)))throw new Error(`Pseudo-selector ${g} cannot be quoted`);if(S=[],u=vr(S,t,u+1),t.charCodeAt(u)!==41)throw new Error(`Missing closing parenthesis in :${g} (${t})`);u+=1}else{if(S=o(),pn.has(g)){let v=S.charCodeAt(0);v===S.charCodeAt(S.length-1)&&kt(v)&&(S=S.slice(1,-1))}S=ke(S)}r.push({type:I.Pseudo,name:g,data:S});break}case 44:{D(),r=[],n(1);break}default:{if(t.startsWith("/*",u)){let v=t.indexOf("*/",u+2);if(v<0)throw new Error("Comment was not terminated");u=v+2,r.length===0&&n(0);break}let g=null,S;if(N===42)u+=1,S="*";else if(N===124){if(S="",t.charCodeAt(u+1)===124){m(I.ColumnCombinator),n(2);break}}else if(Pu.test(t.slice(u)))S=a(0);else break e;t.charCodeAt(u)===124&&t.charCodeAt(u+1)!==124&&(g=S,t.charCodeAt(u+1)===42?(S="*",u+=2):S=a(1)),r.push(S==="*"?{type:I.Universal,namespace:g}:{type:I.Tag,name:S,namespace:g})}}}return D(),u}de(Te());var se=de(Te()),Ur=new Map([[I.Universal,50],[I.Tag,30],[I.Attribute,1],[I.Pseudo,0]]);function hu(e){return!Ur.has(e.type)}var Cn=new Map([[k.Exists,10],[k.Equals,8],[k.Not,7],[k.Start,6],[k.End,6],[k.Any,5]]);function fn(e){let t=e.map(Hr);for(let u=1;u<e.length;u++){let r=t[u];if(!(r<0))for(let a=u-1;a>=0&&r<t[a];a--){let n=e[a+1];e[a+1]=e[a],e[a]=n,t[a+1]=t[a],t[a]=r}}}function Hr(e){var t,u;let r=(t=Ur.get(e.type))!==null&&t!==void 0?t:-1;return e.type===I.Attribute?(r=(u=Cn.get(e.action))!==null&&u!==void 0?u:4,e.action===k.Equals&&e.name==="id"&&(r=9),e.ignoreCase&&(r>>=1)):e.type===I.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?r=0:Array.isArray(e.data)?(r=Math.min(...e.data.map(a=>Math.min(...a.map(Hr)))),r<0&&(r=0)):r=2:r=3),r}var tt=de(Te()),Dn=/[-[\]{}()*+?.,\\^$|#\s]/g;function Uu(e){return e.replace(Dn,"\\$&")}var _n=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function oe(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&_n.has(e.name)}var Nn={equals(e,t,u){let{adapter:r}=u,{name:a}=t,{value:n}=t;return oe(t,u)?(n=n.toLowerCase(),o=>{let E=r.getAttributeValue(o,a);return E!=null&&E.length===n.length&&E.toLowerCase()===n&&e(o)}):o=>r.getAttributeValue(o,a)===n&&e(o)},hyphen(e,t,u){let{adapter:r}=u,{name:a}=t,{value:n}=t,o=n.length;return oe(t,u)?(n=n.toLowerCase(),function(E){let h=r.getAttributeValue(E,a);return h!=null&&(h.length===o||h.charAt(o)==="-")&&h.substr(0,o).toLowerCase()===n&&e(E)}):function(E){let h=r.getAttributeValue(E,a);return h!=null&&(h.length===o||h.charAt(o)==="-")&&h.substr(0,o)===n&&e(E)}},element(e,t,u){let{adapter:r}=u,{name:a,value:n}=t;if(/\s/.test(n))return tt.default.falseFunc;let o=new RegExp(`(?:^|\\s)${Uu(n)}(?:$|\\s)`,oe(t,u)?"i":"");return function(E){let h=r.getAttributeValue(E,a);return h!=null&&h.length>=n.length&&o.test(h)&&e(E)}},exists(e,{name:t},{adapter:u}){return r=>u.hasAttrib(r,t)&&e(r)},start(e,t,u){let{adapter:r}=u,{name:a}=t,{value:n}=t,o=n.length;return o===0?tt.default.falseFunc:oe(t,u)?(n=n.toLowerCase(),E=>{let h=r.getAttributeValue(E,a);return h!=null&&h.length>=o&&h.substr(0,o).toLowerCase()===n&&e(E)}):E=>{var h;return!!(!((h=r.getAttributeValue(E,a))===null||h===void 0)&&h.startsWith(n))&&e(E)}},end(e,t,u){let{adapter:r}=u,{name:a}=t,{value:n}=t,o=-n.length;return o===0?tt.default.falseFunc:oe(t,u)?(n=n.toLowerCase(),E=>{var h;return((h=r.getAttributeValue(E,a))===null||h===void 0?void 0:h.substr(o).toLowerCase())===n&&e(E)}):E=>{var h;return!!(!((h=r.getAttributeValue(E,a))===null||h===void 0)&&h.endsWith(n))&&e(E)}},any(e,t,u){let{adapter:r}=u,{name:a,value:n}=t;if(n==="")return tt.default.falseFunc;if(oe(t,u)){let o=new RegExp(Uu(n),"i");return function(E){let h=r.getAttributeValue(E,a);return h!=null&&h.length>=n.length&&o.test(h)&&e(E)}}return o=>{var E;return!!(!((E=r.getAttributeValue(o,a))===null||E===void 0)&&E.includes(n))&&e(o)}},not(e,t,u){let{adapter:r}=u,{name:a}=t,{value:n}=t;return n===""?o=>!!r.getAttributeValue(o,a)&&e(o):oe(t,u)?(n=n.toLowerCase(),o=>{let E=r.getAttributeValue(o,a);return(E==null||E.length!==n.length||E.toLowerCase()!==n)&&e(o)}):o=>r.getAttributeValue(o,a)!==n&&e(o)}},gn=new Set([9,10,12,13,32]),Hu=48,In=57;function Bn(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,u=0,r=n(),a=o();if(t<e.length&&e.charAt(t)==="n"&&(t++,u=r*(a??1),E(),t<e.length?(r=n(),E(),a=o()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[u,r*a];function n(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function o(){let h=t,m=0;for(;t<e.length&&e.charCodeAt(t)>=Hu&&e.charCodeAt(t)<=In;)m=m*10+(e.charCodeAt(t)-Hu),t++;return t===h?null:m}function E(){for(;t<e.length&&gn.has(e.charCodeAt(t));)t++}}var wu=de(Te());function Sn(e){let t=e[0],u=e[1]-1;if(u<0&&t<=0)return wu.default.falseFunc;if(t===-1)return n=>n<=u;if(t===0)return n=>n===u;if(t===1)return u<0?wu.default.trueFunc:n=>n>=u;let r=Math.abs(t),a=(u%r+r)%r;return t>1?n=>n>=u&&n%r===a:n=>n<=u&&n%r===a}function ut(e){return Sn(Bn(e))}var Y=de(Te());function rt(e,t){return u=>{let r=t.getParent(u);return r!=null&&t.isTag(r)&&e(u)}}var Vt={contains(e,t,{adapter:u}){return function(r){return e(r)&&u.getText(r).includes(t)}},icontains(e,t,{adapter:u}){let r=t.toLowerCase();return function(a){return e(a)&&u.getText(a).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:u,equals:r}){let a=ut(t);return a===Y.default.falseFunc?Y.default.falseFunc:a===Y.default.trueFunc?rt(e,u):function(n){let o=u.getSiblings(n),E=0;for(let h=0;h<o.length&&!r(n,o[h]);h++)u.isTag(o[h])&&E++;return a(E)&&e(n)}},"nth-last-child"(e,t,{adapter:u,equals:r}){let a=ut(t);return a===Y.default.falseFunc?Y.default.falseFunc:a===Y.default.trueFunc?rt(e,u):function(n){let o=u.getSiblings(n),E=0;for(let h=o.length-1;h>=0&&!r(n,o[h]);h--)u.isTag(o[h])&&E++;return a(E)&&e(n)}},"nth-of-type"(e,t,{adapter:u,equals:r}){let a=ut(t);return a===Y.default.falseFunc?Y.default.falseFunc:a===Y.default.trueFunc?rt(e,u):function(n){let o=u.getSiblings(n),E=0;for(let h=0;h<o.length;h++){let m=o[h];if(r(n,m))break;u.isTag(m)&&u.getName(m)===u.getName(n)&&E++}return a(E)&&e(n)}},"nth-last-of-type"(e,t,{adapter:u,equals:r}){let a=ut(t);return a===Y.default.falseFunc?Y.default.falseFunc:a===Y.default.trueFunc?rt(e,u):function(n){let o=u.getSiblings(n),E=0;for(let h=o.length-1;h>=0;h--){let m=o[h];if(r(n,m))break;u.isTag(m)&&u.getName(m)===u.getName(n)&&E++}return a(E)&&e(n)}},root(e,t,{adapter:u}){return r=>{let a=u.getParent(r);return(a==null||!u.isTag(a))&&e(r)}},scope(e,t,u,r){let{equals:a}=u;return!r||r.length===0?Vt.root(e,t,u):r.length===1?n=>a(r[0],n)&&e(n):n=>r.includes(n)&&e(n)},hover:xt("isHovered"),visited:xt("isVisited"),active:xt("isActive")};function xt(e){return function(t,u,{adapter:r}){let a=r[e];return typeof a!="function"?Y.default.falseFunc:function(n){return a(n)&&t(n)}}}var Gu={empty(e,{adapter:t}){return!t.getChildren(e).some(u=>t.isTag(u)||t.getText(u)!=="")},"first-child"(e,{adapter:t,equals:u}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;let r=t.getSiblings(e).find(a=>t.isTag(a));return r!=null&&u(e,r)},"last-child"(e,{adapter:t,equals:u}){let r=t.getSiblings(e);for(let a=r.length-1;a>=0;a--){if(u(e,r[a]))return!0;if(t.isTag(r[a]))break}return!1},"first-of-type"(e,{adapter:t,equals:u}){let r=t.getSiblings(e),a=t.getName(e);for(let n=0;n<r.length;n++){let o=r[n];if(u(e,o))return!0;if(t.isTag(o)&&t.getName(o)===a)break}return!1},"last-of-type"(e,{adapter:t,equals:u}){let r=t.getSiblings(e),a=t.getName(e);for(let n=r.length-1;n>=0;n--){let o=r[n];if(u(e,o))return!0;if(t.isTag(o)&&t.getName(o)===a)break}return!1},"only-of-type"(e,{adapter:t,equals:u}){let r=t.getName(e);return t.getSiblings(e).every(a=>u(e,a)||!t.isTag(a)||t.getName(a)!==r)},"only-child"(e,{adapter:t,equals:u}){return t.getSiblings(e).every(r=>u(e,r)||!t.isTag(r))}};function qu(e,t,u,r){if(u===null){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}var Fn={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
|
|
10
|
-
:is(button, input, select, textarea, optgroup, option)[disabled],
|
|
11
|
-
optgroup[disabled] > option,
|
|
12
|
-
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
|
|
13
|
-
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},X=de(Te()),wr={};function bn(e,t){return e===X.default.falseFunc?X.default.falseFunc:u=>t.isTag(u)&&e(u)}function Gr(e,t){let u=t.getSiblings(e);if(u.length<=1)return[];let r=u.indexOf(e);return r<0||r===u.length-1?[]:u.slice(r+1).filter(t.isTag)}function Qt(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}var Mt=(e,t,u,r,a)=>{let n=a(t,Qt(u),r);return n===X.default.trueFunc?e:n===X.default.falseFunc?X.default.falseFunc:o=>n(o)&&e(o)},yt={is:Mt,matches:Mt,where:Mt,not(e,t,u,r,a){let n=a(t,Qt(u),r);return n===X.default.falseFunc?e:n===X.default.trueFunc?X.default.falseFunc:o=>!n(o)&&e(o)},has(e,t,u,r,a){let{adapter:n}=u,o=Qt(u);o.relativeSelector=!0;let E=t.some(f=>f.some(hu))?[wr]:void 0,h=a(t,o,E);if(h===X.default.falseFunc)return X.default.falseFunc;let m=bn(h,n);if(E&&h!==X.default.trueFunc){let{shouldTestNextSiblings:f=!1}=h;return D=>{if(!e(D))return!1;E[0]=D;let N=n.getChildren(D),g=f?[...N,...Gr(D,n)]:N;return n.existsOne(m,g)}}return f=>e(f)&&n.existsOne(m,n.getChildren(f))}};function Rn(e,t,u,r,a){var n;let{name:o,data:E}=t;if(Array.isArray(E)){if(!(o in yt))throw new Error(`Unknown pseudo-class :${o}(${E})`);return yt[o](e,E,u,r,a)}let h=(n=u.pseudos)===null||n===void 0?void 0:n[o],m=typeof h=="string"?h:Fn[o];if(typeof m=="string"){if(E!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let f=gt(m);return yt.is(e,f,u,r,a)}if(typeof h=="function")return qu(h,o,E,1),f=>h(f,E)&&e(f);if(o in Vt)return Vt[o](e,E,u,r);if(o in Gu){let f=Gu[o];return qu(f,o,E,2),D=>f(D,u,E)&&e(D)}throw new Error(`Unknown pseudo-class :${o}`)}function Pt(e,t){let u=t.getParent(e);return u&&t.isTag(u)?u:null}function On(e,t,u,r,a){let{adapter:n,equals:o}=u;switch(t.type){case I.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case I.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case I.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!u.xmlMode||u.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Nn[t.action](e,t,u)}case I.Pseudo:return Rn(e,t,u,r,a);case I.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:E}=t;return(!u.xmlMode||u.lowerCaseTags)&&(E=E.toLowerCase()),function(h){return n.getName(h)===E&&e(h)}}case I.Descendant:{if(u.cacheResults===!1||typeof WeakSet>"u")return function(h){let m=h;for(;m=Pt(m,n);)if(e(m))return!0;return!1};let E=new WeakSet;return function(h){let m=h;for(;m=Pt(m,n);)if(!E.has(m)){if(n.isTag(m)&&e(m))return!0;E.add(m)}return!1}}case"_flexibleDescendant":return function(E){let h=E;do if(e(h))return!0;while(h=Pt(h,n));return!1};case I.Parent:return function(E){return n.getChildren(E).some(h=>n.isTag(h)&&e(h))};case I.Child:return function(E){let h=n.getParent(E);return h!=null&&n.isTag(h)&&e(h)};case I.Sibling:return function(E){let h=n.getSiblings(E);for(let m=0;m<h.length;m++){let f=h[m];if(o(E,f))break;if(n.isTag(f)&&e(f))return!0}return!1};case I.Adjacent:return n.prevElementSibling?function(E){let h=n.prevElementSibling(E);return h!=null&&e(h)}:function(E){let h=n.getSiblings(E),m;for(let f=0;f<h.length;f++){let D=h[f];if(o(E,D))break;n.isTag(D)&&(m=D)}return!!m&&e(m)};case I.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function qr(e){return e.type===I.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(qr)))}var Ln={type:I.Descendant},kn={type:"_flexibleDescendant"},xn={type:I.Pseudo,name:"scope",data:null};function Mn(e,{adapter:t},u){let r=!!(u!=null&&u.every(a=>{let n=t.isTag(a)&&t.getParent(a);return a===wr||n&&t.isTag(n)}));for(let a of e){if(!(a.length>0&&hu(a[0])&&a[0].type!==I.Descendant))if(r&&!a.some(qr))a.unshift(Ln);else continue;a.unshift(xn)}}function Yr(e,t,u){var r;e.forEach(fn),u=(r=t.context)!==null&&r!==void 0?r:u;let a=Array.isArray(u),n=u&&(Array.isArray(u)?u:[u]);if(t.relativeSelector!==!1)Mn(e,t,n);else if(e.some(h=>h.length>0&&hu(h[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let o=!1,E=e.map(h=>{if(h.length>=2){let[m,f]=h;m.type!==I.Pseudo||m.name!=="scope"||(a&&f.type===I.Descendant?h[1]=kn:(f.type===I.Adjacent||f.type===I.Sibling)&&(o=!0))}return yn(h,t,n)}).reduce(Pn,se.default.falseFunc);return E.shouldTestNextSiblings=o,E}function yn(e,t,u){var r;return e.reduce((a,n)=>a===se.default.falseFunc?se.default.falseFunc:On(a,n,t,u,Yr),(r=t.rootFunc)!==null&&r!==void 0?r:se.default.trueFunc)}function Pn(e,t){return t===se.default.falseFunc||e===se.default.trueFunc?e:e===se.default.falseFunc||t===se.default.trueFunc?t:function(u){return e(u)||t(u)}}var Vr=(e,t)=>e===t,vn={adapter:Xe,equals:Vr};function Un(e){var t,u,r,a;let n=e??vn;return(t=n.adapter)!==null&&t!==void 0||(n.adapter=Xe),(u=n.equals)!==null&&u!==void 0||(n.equals=(a=(r=n.adapter)===null||r===void 0?void 0:r.equals)!==null&&a!==void 0?a:Vr),n}function Hn(e){return function(t,u,r){let a=Un(u);return e(t,a,r)}}var Au=Hn(Yr);function Qr(e,t,u=!1){return u&&(e=wn(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function wn(e,t){let u=Array.isArray(e)?e.slice(0):[e],r=u.length;for(let a=0;a<r;a++){let n=Gr(u[a],t);u.push(...n)}return u}var Wt=de(Te()),Gn=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function Tt(e){return e.type!=="pseudo"?!1:Gn.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(Tt)):!1}function qn(e,t,u){let r=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?Math.min(r,u):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*u;case"even":return 2*u-1;case"last":case"not":return 1/0}}function Yn(e){for(;e.parent;)e=e.parent;return e}function du(e){let t=[],u=[];for(let r of e)r.some(Tt)?t.push(r):u.push(r);return[u,t]}var Vn={type:I.Universal,namespace:null},Qn={type:I.Pseudo,name:"scope",data:null};function Wr(e,t,u={}){return Xr([e],t,u)}function Xr(e,t,u={}){if(typeof t=="function")return e.some(t);let[r,a]=du(gt(t));return r.length>0&&e.some(Au(r,u))||a.some(n=>$r(n,e,u).length>0)}function Wn(e,t,u,r){let a=typeof u=="string"?parseInt(u,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(a)&&Math.abs(a)<t.length?[a<0?t[t.length+a]:t[a]]:[];case"gt":return isFinite(a)?t.slice(a+1):[];case"even":return t.filter((n,o)=>o%2===0);case"odd":return t.filter((n,o)=>o%2===1);case"not":{let n=new Set(jr(u,t,r));return t.filter(o=>!n.has(o))}}}function Kr(e,t,u={}){return jr(gt(e),t,u)}function jr(e,t,u){if(t.length===0)return[];let[r,a]=du(e),n;if(r.length){let o=Kt(t,r,u);if(a.length===0)return o;o.length&&(n=new Set(o))}for(let o=0;o<a.length&&(n==null?void 0:n.size)!==t.length;o++){let E=a[o];if((n?t.filter(m=>B(m)&&!n.has(m)):t).length===0)break;let h=$r(E,t,u);if(h.length)if(n)h.forEach(m=>n.add(m));else{if(o===a.length-1)return h;n=new Set(h)}}return typeof n<"u"?n.size===t.length?t:t.filter(o=>n.has(o)):[]}function $r(e,t,u){var r;if(e.some(Pe)){let a=(r=u.root)!==null&&r!==void 0?r:Yn(t[0]),n={...u,context:t,relativeSelector:!1};return e.push(Qn),pt(a,e,n,!0,t.length)}return pt(t,e,u,!1,t.length)}function Xn(e,t,u={},r=1/0){if(typeof e=="function")return zr(t,e);let[a,n]=du(gt(e)),o=n.map(E=>pt(t,E,u,!0,r));return a.length&&o.push(Xt(t,a,u,r)),o.length===0?[]:o.length===1?o[0]:be(o.reduce((E,h)=>[...E,...h]))}function pt(e,t,u,r,a){let n=t.findIndex(Tt),o=t.slice(0,n),E=t[n],h=t.length-1===n?a:1/0,m=qn(E.name,E.data,h);if(m===0)return[];let f=(o.length===0&&!Array.isArray(e)?_t(e).filter(B):o.length===0?(Array.isArray(e)?e:[e]).filter(B):r||o.some(Pe)?Xt(e,[o],u,m):Kt(e,[o],u)).slice(0,m),D=Wn(E.name,f,E.data,u);if(D.length===0||t.length===n+1)return D;let N=t.slice(n+1),g=N.some(Pe);if(g){if(Pe(N[0])){let{type:S}=N[0];(S===I.Sibling||S===I.Adjacent)&&(D=Qr(D,Xe,!0)),N.unshift(Vn)}u={...u,relativeSelector:!1,rootFunc:S=>D.includes(S)}}else u.rootFunc&&u.rootFunc!==Wt.trueFunc&&(u={...u,rootFunc:Wt.trueFunc});return N.some(Tt)?pt(D,N,u,!1,a):g?Xt(D,[N],u,a):Kt(D,[N],u)}function Xt(e,t,u,r){let a=Au(t,u,e);return zr(e,a,r)}function zr(e,t,u=1/0){let r=Qr(e,Xe,t.shouldTestNextSiblings);return cu(a=>B(a)&&t(a),r,!0,u)}function Kt(e,t,u){let r=(Array.isArray(e)?e:[e]).filter(B);if(r.length===0)return r;let a=Au(t,u);return a===Wt.trueFunc?r:r.filter(a)}var Kn=/^\s*[~+]/;function jn(e){var t;if(!e)return this._make([]);let u=this.toArray();if(typeof e!="string"){let n=Z(e)?e.toArray():[e];return this._make(n.filter(o=>u.some(E=>Or(E,o))))}let r=Kn.test(e)?u:this.children().toArray(),a={context:u,root:(t=this._root)===null||t===void 0?void 0:t[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(Xn(e,r,a))}function Tu(e){return function(t,...u){return function(r){var a;let n=e(t,this);return r&&(n=Cu(n,r,this.options.xmlMode,(a=this._root)===null||a===void 0?void 0:a[0])),this._make(this.length>1&&n.length>1?u.reduce((o,E)=>E(o),n):n)}}}var Ke=Tu((e,t)=>{let u=[];for(let r=0;r<t.length;r++){let a=e(t[r]);u.push(a)}return new Array().concat(...u)}),pu=Tu((e,t)=>{let u=[];for(let r=0;r<t.length;r++){let a=e(t[r]);a!==null&&u.push(a)}return u});function mu(e,...t){let u=null,r=Tu((a,n)=>{let o=[];return L(n,E=>{for(let h;(h=a(E))&&!(u!=null&&u(h,o.length));E=h)o.push(h)}),o})(e,...t);return function(a,n){u=typeof a=="string"?E=>Wr(E,a,this.options):a?je(a):null;let o=r.call(this,n);return u=null,o}}function Re(e){return Array.from(new Set(e))}var $n=pu(({parent:e})=>e&&!pe(e)?e:null,Re),zn=Ke(e=>{let t=[];for(;e.parent&&!pe(e.parent);)t.push(e.parent),e=e.parent;return t},be,e=>e.reverse()),Zn=mu(({parent:e})=>e&&!pe(e)?e:null,be,e=>e.reverse());function Jn(e){var t;let u=[];if(!e)return this._make(u);let r={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},a=typeof e=="string"?n=>Wr(n,e,r):je(e);return L(this,n=>{for(;n&&B(n);){if(a(n,0)){u.includes(n)||u.push(n);break}n=n.parent}}),this._make(u)}var ei=pu(e=>iu(e)),ti=Ke(e=>{let t=[];for(;e.next;)e=e.next,B(e)&&t.push(e);return t},Re),ui=mu(e=>iu(e),Re),ri=pu(e=>ou(e)),si=Ke(e=>{let t=[];for(;e.prev;)e=e.prev,B(e)&&t.push(e);return t},Re),ai=mu(e=>ou(e),Re),ni=Ke(e=>gr(e).filter(t=>B(t)&&t!==e),be),ii=Ke(e=>_t(e).filter(B),Re);function oi(){let e=this.toArray().reduce((t,u)=>y(u)?t.concat(u.children):t,[]);return this._make(e)}function ci(e){let t=0,u=this.length;for(;t<u&&e.call(this[t],t,this[t])!==!1;)++t;return this}function li(e){let t=[];for(let u=0;u<this.length;u++){let r=this[u],a=e.call(r,u,r);a!=null&&(t=t.concat(a))}return this._make(t)}function je(e){return typeof e=="function"?(t,u)=>e.call(t,u,t):Z(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function Ei(e){var t;return this._make(Cu(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function Cu(e,t,u,r){return typeof t=="string"?Kr(t,e,{xmlMode:u,root:r}):e.filter(je(t))}function hi(e){let t=this.toArray();return typeof e=="string"?Xr(t.filter(B),e,this.options):e?t.some(je(e)):!1}function Ai(e){let t=this.toArray();if(typeof e=="string"){let u=new Set(Kr(e,t,this.options));t=t.filter(r=>!u.has(r))}else{let u=je(e);t=t.filter((r,a)=>!u(r,a))}return this._make(t)}function di(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,u)=>this._make(u).find(e).length>0)}function Ti(){return this.length>1?this._make(this[0]):this}function pi(){return this.length>0?this._make(this[this.length-1]):this}function mi(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function Ci(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function fi(){return Array.prototype.slice.call(this)}function Di(e){let t,u;return e==null?(t=this.parent().children(),u=this[0]):typeof e=="string"?(t=this._make(e),u=this[0]):(t=this,u=Z(e)?e[0]:e),Array.prototype.indexOf.call(t,u)}function _i(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function Ni(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function gi(e,t){let u=this._make(e,t),r=be([...this.get(),...u.get()]);return this._make(r)}function Ii(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}var Zr={};ae(Zr,{_makeDomArray:()=>Si,after:()=>yi,append:()=>Ri,appendTo:()=>Fi,before:()=>vi,clone:()=>Qi,empty:()=>Gi,html:()=>qi,insertAfter:()=>Pi,insertBefore:()=>Ui,prepend:()=>Oi,prependTo:()=>bi,remove:()=>Hi,replaceWith:()=>wi,text:()=>Vi,toString:()=>Yi,unwrap:()=>xi,wrap:()=>Li,wrapAll:()=>Mi,wrapInner:()=>ki});function Bi(e){return function(t,u,r,a){if(typeof Buffer<"u"&&Buffer.isBuffer(t)&&(t=t.toString()),typeof t=="string")return e(t,u,r,a);let n=t;if(!Array.isArray(n)&&pe(n))return n;let o=new he([]);return Ae(n,o),o}}function Ae(e,t){let u=Array.isArray(e)?e:[e];t?t.children=u:t=null;for(let r=0;r<u.length;r++){let a=u[r];a.parent&&a.parent.children!==u&&me(a),t?(a.prev=u[r-1]||null,a.next=u[r+1]||null):a.prev=a.next=null,a.parent=t}return t}function Si(e,t){return e==null?[]:Z(e)?t?qt(e.get()):e.get():Array.isArray(e)?e.reduce((u,r)=>u.concat(this._makeDomArray(r,t)),[]):typeof e=="string"?this._parse(e,this.options,!1,null).children:t?qt([e]):[e]}function Jr(e){return function(...t){let u=this.length-1;return L(this,(r,a)=>{if(!y(r))return;let n=typeof t[0]=="function"?t[0].call(r,a,this._render(r.children)):t,o=this._makeDomArray(n,a<u);e(o,r.children,r)})}}function ne(e,t,u,r,a){var n,o;let E=[t,u,...r],h=t===0?null:e[t-1],m=t+u>=e.length?null:e[t+u];for(let f=0;f<r.length;++f){let D=r[f],N=D.parent;if(N){let g=N.children.indexOf(D);g>-1&&(N.children.splice(g,1),a===N&&t>g&&E[0]--)}D.parent=a,D.prev&&(D.prev.next=(n=D.next)!==null&&n!==void 0?n:null),D.next&&(D.next.prev=(o=D.prev)!==null&&o!==void 0?o:null),D.prev=f===0?h:r[f-1],D.next=f===r.length-1?m:r[f+1]}return h&&(h.next=r[0]),m&&(m.prev=r[r.length-1]),e.splice(...E)}function Fi(e){return(Z(e)?e:this._make(e)).append(this),this}function bi(e){return(Z(e)?e:this._make(e)).prepend(this),this}var Ri=Jr((e,t,u)=>{ne(t,t.length,0,e,u)}),Oi=Jr((e,t,u)=>{ne(t,0,0,e,u)});function es(e){return function(t){let u=this.length-1,r=this.parents().last();for(let a=0;a<this.length;a++){let n=this[a],o=typeof t=="function"?t.call(n,a,n):typeof t=="string"&&!Yt(t)?r.find(t).clone():t,[E]=this._makeDomArray(o,a<u);if(!E||!y(E))continue;let h=E,m=0;for(;m<h.children.length;){let f=h.children[m];B(f)?(h=f,m=0):m++}e(n,h,[E])}return this}}var Li=es((e,t,u)=>{let{parent:r}=e;if(!r)return;let a=r.children,n=a.indexOf(e);Ae([e],t),ne(a,n,0,u,r)}),ki=es((e,t,u)=>{y(e)&&(Ae(e.children,t),Ae(u,e))});function xi(e){return this.parent(e).not("body").each((t,u)=>{this._make(u).replaceWith(u.children)}),this}function Mi(e){let t=this[0];if(t){let u=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t),r;for(let n=0;n<u.length;n++)u[n].type==="tag"&&(r=u[n]);let a=0;for(;r&&a<r.children.length;){let n=r.children[a];n.type==="tag"?(r=n,a=0):a++}r&&this._make(r).append(this)}return this}function yi(...e){let t=this.length-1;return L(this,(u,r)=>{let{parent:a}=u;if(!y(u)||!a)return;let n=a.children,o=n.indexOf(u);if(o<0)return;let E=typeof e[0]=="function"?e[0].call(u,r,this._render(u.children)):e,h=this._makeDomArray(E,r<t);ne(n,o+1,0,h,a)})}function Pi(e){typeof e=="string"&&(e=this._make(e)),this.remove();let t=[];return this._makeDomArray(e).forEach(u=>{let r=this.clone().toArray(),{parent:a}=u;if(!a)return;let n=a.children,o=n.indexOf(u);o<0||(ne(n,o+1,0,r,a),t.push(...r))}),this._make(t)}function vi(...e){let t=this.length-1;return L(this,(u,r)=>{let{parent:a}=u;if(!y(u)||!a)return;let n=a.children,o=n.indexOf(u);if(o<0)return;let E=typeof e[0]=="function"?e[0].call(u,r,this._render(u.children)):e,h=this._makeDomArray(E,r<t);ne(n,o,0,h,a)})}function Ui(e){let t=this._make(e);this.remove();let u=[];return L(t,r=>{let a=this.clone().toArray(),{parent:n}=r;if(!n)return;let o=n.children,E=o.indexOf(r);E<0||(ne(o,E,0,a,n),u.push(...a))}),this._make(u)}function Hi(e){let t=e?this.filter(e):this;return L(t,u=>{me(u),u.prev=u.next=u.parent=null}),this}function wi(e){return L(this,(t,u)=>{let{parent:r}=t;if(!r)return;let a=r.children,n=typeof e=="function"?e.call(t,u,t):e,o=this._makeDomArray(n);Ae(o,null);let E=a.indexOf(t);ne(a,E,1,o,r),o.includes(t)||(t.parent=t.prev=t.next=null)})}function Gi(){return L(this,e=>{y(e)&&(e.children.forEach(t=>{t.next=t.prev=t.parent=null}),e.children.length=0)})}function qi(e){if(e===void 0){let t=this[0];return!t||!y(t)?null:this._render(t.children)}return L(this,t=>{if(!y(t))return;t.children.forEach(r=>{r.next=r.prev=r.parent=null});let u=Z(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;Ae(u,t)})}function Yi(){return this._render(this)}function Vi(e){return e===void 0?Ve(this):typeof e=="function"?L(this,(t,u)=>this._make(t).text(e.call(t,u,Ve([t])))):L(this,t=>{if(!y(t))return;t.children.forEach(r=>{r.next=r.prev=r.parent=null});let u=new Ye(`${e}`);Ae(u,t)})}function Qi(){return this._make(qt(this.get()))}var ts={};ae(ts,{css:()=>Wi});function Wi(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return L(this,(u,r)=>{B(u)&&us(u,e,t,r)});if(this.length!==0)return rs(this[0],e)}function us(e,t,u,r){if(typeof t=="string"){let a=rs(e),n=typeof u=="function"?u.call(e,r,a[t]):u;n===""?delete a[t]:n!=null&&(a[t]=n),e.attribs.style=Xi(a)}else typeof t=="object"&&Object.keys(t).forEach((a,n)=>{us(e,a,t[a],n)})}function rs(e,t){if(!e||!B(e))return;let u=Ki(e.attribs.style);if(typeof t=="string")return u[t];if(Array.isArray(t)){let r={};return t.forEach(a=>{u[a]!=null&&(r[a]=u[a])}),r}return u}function Xi(e){return Object.keys(e).reduce((t,u)=>`${t}${t?" ":""}${u}: ${e[u]};`,"")}function Ki(e){if(e=(e||"").trim(),!e)return{};let t={},u;for(let r of e.split(";")){let a=r.indexOf(":");if(a<1||a===r.length-1){let n=r.trimEnd();n.length>0&&u!==void 0&&(t[u]+=`;${n}`)}else u=r.slice(0,a).trim(),t[u]=r.slice(a+1).trim()}return t}var ss={};ae(ss,{serialize:()=>$i,serializeArray:()=>zi});var Yu="input,select,textarea,keygen",ji=/%20/g,Vu=/\r?\n/g;function $i(){return this.serializeArray().map(e=>`${encodeURIComponent(e.name)}=${encodeURIComponent(e.value)}`).join("&").replace(ji,"+")}function zi(){return this.map((e,t)=>{let u=this._make(t);return B(t)&&t.name==="form"?u.find(Yu).toArray():u.filter(Yu).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var u;let r=this._make(t),a=r.attr("name"),n=(u=r.val())!==null&&u!==void 0?u:"";return Array.isArray(n)?n.map(o=>({name:a,value:o.replace(Vu,`\r
|
|
14
|
-
`)})):{name:a,value:n.replace(Vu,`\r
|
|
15
|
-
`)}}).toArray()}var $e=class{constructor(e,t,u){if(this.length=0,this.options=u,this._root=t,e){for(let r=0;r<e.length;r++)this[r]=e[r];this.length=e.length}}};$e.prototype.cheerio="[cheerio object]";$e.prototype.splice=Array.prototype.splice;$e.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign($e.prototype,Lr,Pr,Zr,ts,ss);function Zi(e,t){return function u(r,a,n=!0){if(r==null)throw new Error("cheerio.load() expects a string");let o={...Jt,...Ut(a)},E=e(r,o,n,null);class h extends $e{_make(D,N){let g=m(D,N);return g.prevObject=this,g}_parse(D,N,g,S){return e(D,N,g,S)}_render(D){return t(D,this.options)}}function m(f,D,N=E,g){if(f&&Z(f))return f;let S={...o,...Ut(g)},v=typeof N=="string"?[e(N,S,!1,null)]:"length"in N?N:[N],W=Z(v)?v:new h(v,null,S);if(W._root=W,!f)return new h(void 0,W,S);let fe=typeof f=="string"&&Yt(f)?e(f,S,!1,null).children:Ji(f)?[f]:Array.isArray(f)?f:void 0,De=new h(fe,W,S);if(fe)return De;if(typeof f!="string")throw new Error("Unexpected type of selector");let Oe=f,Le=D?typeof D=="string"?Yt(D)?new h([e(D,S,!1,null)],W,S):(Oe=`${D} ${Oe}`,W):Z(D)?D:new h(Array.isArray(D)?D:[D],W,S):W;return Le?Le.find(Oe):De}return Object.assign(m,lr,{load:u,_root:E,_options:o,fn:h.prototype,prototype:h.prototype}),m}}function Ji(e){return!!e.name||e.type==="root"||e.type==="text"||e.type==="comment"}var e0=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),O="�",i;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",e[e.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_F=102]="LATIN_SMALL_F",e[e.LATIN_SMALL_X=120]="LATIN_SMALL_X",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",e[e.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER"})(i=i||(i={}));var U={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function as(e){return e>=55296&&e<=57343}function t0(e){return e>=56320&&e<=57343}function u0(e,t){return(e-55296)*1024+9216+t}function ns(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function is(e){return e>=64976&&e<=65007||e0.has(e)}var d;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(d=d||(d={}));var r0=65536,s0=class{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=r0,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){let{line:t,col:u,offset:r}=this;return{code:e,startLine:t,endLine:t,startCol:u,endCol:u,startOffset:r,endOffset:r}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t0(t))return this.pos++,this._addGap(),u0(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,i.EOF;return this._err(d.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let u=0;u<e.length;u++)if((this.html.charCodeAt(this.pos+u)|32)!==e.charCodeAt(u))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let u=this.html.charCodeAt(t);return u===i.CARRIAGE_RETURN?i.LINE_FEED:u}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let e=this.html.charCodeAt(this.pos);return e===i.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,i.LINE_FEED):e===i.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,as(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===i.LINE_FEED||e===i.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){ns(e)?this._err(d.controlCharacterInInputStream):is(e)&&this._err(d.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}},F;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(F=F||(F={}));function os(e,t){for(let u=e.attrs.length-1;u>=0;u--)if(e.attrs[u].name===t)return e.attrs[u].value;return null}var cs={};ae(cs,{ATTRS:()=>te,DOCUMENT_MODE:()=>G,NS:()=>T,SPECIAL_ELEMENTS:()=>ls,TAG_ID:()=>s,TAG_NAMES:()=>A,getTagID:()=>ze,hasUnescapedText:()=>Es,isNumberedHeader:()=>fu});var T;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(T=T||(T={}));var te;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(te=te||(te={}));var G;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(G=G||(G={}));var A;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(A=A||(A={}));var s;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(s=s||(s={}));var a0=new Map([[A.A,s.A],[A.ADDRESS,s.ADDRESS],[A.ANNOTATION_XML,s.ANNOTATION_XML],[A.APPLET,s.APPLET],[A.AREA,s.AREA],[A.ARTICLE,s.ARTICLE],[A.ASIDE,s.ASIDE],[A.B,s.B],[A.BASE,s.BASE],[A.BASEFONT,s.BASEFONT],[A.BGSOUND,s.BGSOUND],[A.BIG,s.BIG],[A.BLOCKQUOTE,s.BLOCKQUOTE],[A.BODY,s.BODY],[A.BR,s.BR],[A.BUTTON,s.BUTTON],[A.CAPTION,s.CAPTION],[A.CENTER,s.CENTER],[A.CODE,s.CODE],[A.COL,s.COL],[A.COLGROUP,s.COLGROUP],[A.DD,s.DD],[A.DESC,s.DESC],[A.DETAILS,s.DETAILS],[A.DIALOG,s.DIALOG],[A.DIR,s.DIR],[A.DIV,s.DIV],[A.DL,s.DL],[A.DT,s.DT],[A.EM,s.EM],[A.EMBED,s.EMBED],[A.FIELDSET,s.FIELDSET],[A.FIGCAPTION,s.FIGCAPTION],[A.FIGURE,s.FIGURE],[A.FONT,s.FONT],[A.FOOTER,s.FOOTER],[A.FOREIGN_OBJECT,s.FOREIGN_OBJECT],[A.FORM,s.FORM],[A.FRAME,s.FRAME],[A.FRAMESET,s.FRAMESET],[A.H1,s.H1],[A.H2,s.H2],[A.H3,s.H3],[A.H4,s.H4],[A.H5,s.H5],[A.H6,s.H6],[A.HEAD,s.HEAD],[A.HEADER,s.HEADER],[A.HGROUP,s.HGROUP],[A.HR,s.HR],[A.HTML,s.HTML],[A.I,s.I],[A.IMG,s.IMG],[A.IMAGE,s.IMAGE],[A.INPUT,s.INPUT],[A.IFRAME,s.IFRAME],[A.KEYGEN,s.KEYGEN],[A.LABEL,s.LABEL],[A.LI,s.LI],[A.LINK,s.LINK],[A.LISTING,s.LISTING],[A.MAIN,s.MAIN],[A.MALIGNMARK,s.MALIGNMARK],[A.MARQUEE,s.MARQUEE],[A.MATH,s.MATH],[A.MENU,s.MENU],[A.META,s.META],[A.MGLYPH,s.MGLYPH],[A.MI,s.MI],[A.MO,s.MO],[A.MN,s.MN],[A.MS,s.MS],[A.MTEXT,s.MTEXT],[A.NAV,s.NAV],[A.NOBR,s.NOBR],[A.NOFRAMES,s.NOFRAMES],[A.NOEMBED,s.NOEMBED],[A.NOSCRIPT,s.NOSCRIPT],[A.OBJECT,s.OBJECT],[A.OL,s.OL],[A.OPTGROUP,s.OPTGROUP],[A.OPTION,s.OPTION],[A.P,s.P],[A.PARAM,s.PARAM],[A.PLAINTEXT,s.PLAINTEXT],[A.PRE,s.PRE],[A.RB,s.RB],[A.RP,s.RP],[A.RT,s.RT],[A.RTC,s.RTC],[A.RUBY,s.RUBY],[A.S,s.S],[A.SCRIPT,s.SCRIPT],[A.SECTION,s.SECTION],[A.SELECT,s.SELECT],[A.SOURCE,s.SOURCE],[A.SMALL,s.SMALL],[A.SPAN,s.SPAN],[A.STRIKE,s.STRIKE],[A.STRONG,s.STRONG],[A.STYLE,s.STYLE],[A.SUB,s.SUB],[A.SUMMARY,s.SUMMARY],[A.SUP,s.SUP],[A.TABLE,s.TABLE],[A.TBODY,s.TBODY],[A.TEMPLATE,s.TEMPLATE],[A.TEXTAREA,s.TEXTAREA],[A.TFOOT,s.TFOOT],[A.TD,s.TD],[A.TH,s.TH],[A.THEAD,s.THEAD],[A.TITLE,s.TITLE],[A.TR,s.TR],[A.TRACK,s.TRACK],[A.TT,s.TT],[A.U,s.U],[A.UL,s.UL],[A.SVG,s.SVG],[A.VAR,s.VAR],[A.WBR,s.WBR],[A.XMP,s.XMP]]);function ze(e){var t;return(t=a0.get(e))!==null&&t!==void 0?t:s.UNKNOWN}var C=s,ls={[T.HTML]:new Set([C.ADDRESS,C.APPLET,C.AREA,C.ARTICLE,C.ASIDE,C.BASE,C.BASEFONT,C.BGSOUND,C.BLOCKQUOTE,C.BODY,C.BR,C.BUTTON,C.CAPTION,C.CENTER,C.COL,C.COLGROUP,C.DD,C.DETAILS,C.DIR,C.DIV,C.DL,C.DT,C.EMBED,C.FIELDSET,C.FIGCAPTION,C.FIGURE,C.FOOTER,C.FORM,C.FRAME,C.FRAMESET,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HEADER,C.HGROUP,C.HR,C.HTML,C.IFRAME,C.IMG,C.INPUT,C.LI,C.LINK,C.LISTING,C.MAIN,C.MARQUEE,C.MENU,C.META,C.NAV,C.NOEMBED,C.NOFRAMES,C.NOSCRIPT,C.OBJECT,C.OL,C.P,C.PARAM,C.PLAINTEXT,C.PRE,C.SCRIPT,C.SECTION,C.SELECT,C.SOURCE,C.STYLE,C.SUMMARY,C.TABLE,C.TBODY,C.TD,C.TEMPLATE,C.TEXTAREA,C.TFOOT,C.TH,C.THEAD,C.TITLE,C.TR,C.TRACK,C.UL,C.WBR,C.XMP]),[T.MATHML]:new Set([C.MI,C.MO,C.MN,C.MS,C.MTEXT,C.ANNOTATION_XML]),[T.SVG]:new Set([C.TITLE,C.FOREIGN_OBJECT,C.DESC]),[T.XLINK]:new Set,[T.XML]:new Set,[T.XMLNS]:new Set};function fu(e){return e===C.H1||e===C.H2||e===C.H3||e===C.H4||e===C.H5||e===C.H6}var n0=new Set([A.STYLE,A.SCRIPT,A.XMP,A.IFRAME,A.NOEMBED,A.NOFRAMES,A.PLAINTEXT]);function Es(e,t){return n0.has(e)||t&&e===A.NOSCRIPT}var i0=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),c;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(c||(c={}));var q={DATA:c.DATA,RCDATA:c.RCDATA,RAWTEXT:c.RAWTEXT,SCRIPT_DATA:c.SCRIPT_DATA,PLAINTEXT:c.PLAINTEXT,CDATA_SECTION:c.CDATA_SECTION};function ve(e){return e>=i.DIGIT_0&&e<=i.DIGIT_9}function ye(e){return e>=i.LATIN_CAPITAL_A&&e<=i.LATIN_CAPITAL_Z}function o0(e){return e>=i.LATIN_SMALL_A&&e<=i.LATIN_SMALL_Z}function ue(e){return o0(e)||ye(e)}function jt(e){return ue(e)||ve(e)}function hs(e){return e>=i.LATIN_CAPITAL_A&&e<=i.LATIN_CAPITAL_F}function As(e){return e>=i.LATIN_SMALL_A&&e<=i.LATIN_SMALL_F}function c0(e){return ve(e)||hs(e)||As(e)}function st(e){return e+32}function ds(e){return e===i.SPACE||e===i.LINE_FEED||e===i.TABULATION||e===i.FORM_FEED}function l0(e){return e===i.EQUALS_SIGN||jt(e)}function Qu(e){return ds(e)||e===i.SOLIDUS||e===i.GREATER_THAN_SIGN}var E0=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=c.DATA,this.returnState=c.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new s0(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,u;(u=(t=this.handler).onParseError)===null||u===void 0||u.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||(e==null||e()))}write(e,t,u){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||(u==null||u())}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return this.preprocessor.startsWith(e,t)?(this._advanceBy(e.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:F.START_TAG,tagName:"",tagID:s.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:F.END_TAG,tagName:"",tagID:s.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:F.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:F.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let u=this.currentToken;if(os(u,this.currentAttr.name)===null){if(u.attrs.push(this.currentAttr),u.location&&this.currentLocation){let r=(e=(t=u.location).attrs)!==null&&e!==void 0?e:t.attrs=Object.create(null);r[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(d.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=ze(e.tagName),e.type===F.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(d.endTagWithAttributes),e.selfClosing&&this._err(d.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case F.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case F.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case F.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:F.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==e)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=t;return}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=ds(e)?F.WHITESPACE_CHARACTER:e===i.NULL?F.NULL_CHARACTER:F.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(F.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,u=0,r=!1;for(let a=0,n=ee[0];a>=0&&(a=au(ee,n,a+1,e),!(a<0));e=this._consume()){u+=1,n=ee[a];let o=n&V.VALUE_LENGTH;if(o){let E=(o>>14)-1;if(e!==i.SEMICOLON&&this._isCharacterReferenceInAttribute()&&l0(this.preprocessor.peek(1))?(t=[i.AMPERSAND],a+=E):(t=E===0?[ee[a]&~V.VALUE_LENGTH]:E===1?[ee[++a]]:[ee[++a],ee[++a]],u=0,r=e!==i.SEMICOLON),E===0){this._consume();break}}}return this._unconsume(u),r&&!this.preprocessor.endOfChunkHit&&this._err(d.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===c.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===c.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===c.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case c.DATA:{this._stateData(e);break}case c.RCDATA:{this._stateRcdata(e);break}case c.RAWTEXT:{this._stateRawtext(e);break}case c.SCRIPT_DATA:{this._stateScriptData(e);break}case c.PLAINTEXT:{this._statePlaintext(e);break}case c.TAG_OPEN:{this._stateTagOpen(e);break}case c.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case c.TAG_NAME:{this._stateTagName(e);break}case c.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case c.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case c.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case c.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case c.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case c.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case c.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case c.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case c.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case c.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case c.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case c.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case c.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case c.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case c.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case c.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case c.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case c.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case c.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case c.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case c.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case c.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case c.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case c.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case c.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case c.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case c.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case c.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case c.BOGUS_COMMENT:{this._stateBogusComment(e);break}case c.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case c.COMMENT_START:{this._stateCommentStart(e);break}case c.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case c.COMMENT:{this._stateComment(e);break}case c.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case c.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case c.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case c.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case c.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case c.COMMENT_END:{this._stateCommentEnd(e);break}case c.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case c.DOCTYPE:{this._stateDoctype(e);break}case c.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case c.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case c.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case c.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case c.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case c.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case c.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case c.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case c.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case c.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case c.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case c.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case c.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case c.CDATA_SECTION:{this._stateCdataSection(e);break}case c.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case c.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case c.CHARACTER_REFERENCE:{this._stateCharacterReference(e);break}case c.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(e);break}case c.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}case c.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(e);break}case c.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(e);break}case c.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(e);break}case c.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(e);break}case c.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case i.LESS_THAN_SIGN:{this.state=c.TAG_OPEN;break}case i.AMPERSAND:{this.returnState=c.DATA,this.state=c.CHARACTER_REFERENCE;break}case i.NULL:{this._err(d.unexpectedNullCharacter),this._emitCodePoint(e);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case i.AMPERSAND:{this.returnState=c.RCDATA,this.state=c.CHARACTER_REFERENCE;break}case i.LESS_THAN_SIGN:{this.state=c.RCDATA_LESS_THAN_SIGN;break}case i.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(O);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case i.LESS_THAN_SIGN:{this.state=c.RAWTEXT_LESS_THAN_SIGN;break}case i.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(O);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case i.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_LESS_THAN_SIGN;break}case i.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(O);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case i.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(O);break}case i.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(ue(e))this._createStartTagToken(),this.state=c.TAG_NAME,this._stateTagName(e);else switch(e){case i.EXCLAMATION_MARK:{this.state=c.MARKUP_DECLARATION_OPEN;break}case i.SOLIDUS:{this.state=c.END_TAG_OPEN;break}case i.QUESTION_MARK:{this._err(d.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=c.BOGUS_COMMENT,this._stateBogusComment(e);break}case i.EOF:{this._err(d.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(d.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=c.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(ue(e))this._createEndTagToken(),this.state=c.TAG_NAME,this._stateTagName(e);else switch(e){case i.GREATER_THAN_SIGN:{this._err(d.missingEndTagName),this.state=c.DATA;break}case i.EOF:{this._err(d.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(d.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=c.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=c.BEFORE_ATTRIBUTE_NAME;break}case i.SOLIDUS:{this.state=c.SELF_CLOSING_START_TAG;break}case i.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentTagToken();break}case i.NULL:{this._err(d.unexpectedNullCharacter),t.tagName+=O;break}case i.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:t.tagName+=String.fromCodePoint(ye(e)?st(e):e)}}_stateRcdataLessThanSign(e){e===i.SOLIDUS?this.state=c.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=c.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){ue(e)?(this.state=c.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=c.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();let t=this.currentToken;switch(t.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=c.BEFORE_ATTRIBUTE_NAME,!1;case i.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=c.SELF_CLOSING_START_TAG,!1;case i.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=c.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=c.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===i.SOLIDUS?this.state=c.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=c.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){ue(e)?(this.state=c.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=c.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=c.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case i.SOLIDUS:{this.state=c.SCRIPT_DATA_END_TAG_OPEN;break}case i.EXCLAMATION_MARK:{this.state=c.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=c.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){ue(e)?(this.state=c.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=c.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=c.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===i.HYPHEN_MINUS?(this.state=c.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=c.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===i.HYPHEN_MINUS?(this.state=c.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=c.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case i.HYPHEN_MINUS:{this.state=c.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case i.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(O);break}case i.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case i.HYPHEN_MINUS:{this.state=c.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case i.NULL:{this._err(d.unexpectedNullCharacter),this.state=c.SCRIPT_DATA_ESCAPED,this._emitChars(O);break}case i.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=c.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case i.HYPHEN_MINUS:{this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case i.GREATER_THAN_SIGN:{this.state=c.SCRIPT_DATA,this._emitChars(">");break}case i.NULL:{this._err(d.unexpectedNullCharacter),this.state=c.SCRIPT_DATA_ESCAPED,this._emitChars(O);break}case i.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=c.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===i.SOLIDUS?this.state=c.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ue(e)?(this._emitChars("<"),this.state=c.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=c.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){ue(e)?(this.state=c.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=c.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=c.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(U.SCRIPT,!1)&&Qu(this.preprocessor.peek(U.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<U.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=c.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case i.HYPHEN_MINUS:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case i.NULL:{this._err(d.unexpectedNullCharacter),this._emitChars(O);break}case i.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case i.HYPHEN_MINUS:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case i.NULL:{this._err(d.unexpectedNullCharacter),this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(O);break}case i.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case i.HYPHEN_MINUS:{this._emitChars("-");break}case i.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case i.GREATER_THAN_SIGN:{this.state=c.SCRIPT_DATA,this._emitChars(">");break}case i.NULL:{this._err(d.unexpectedNullCharacter),this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(O);break}case i.EOF:{this._err(d.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===i.SOLIDUS?(this.state=c.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(U.SCRIPT,!1)&&Qu(this.preprocessor.peek(U.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t<U.SCRIPT.length;t++)this._emitCodePoint(this._consume());this.state=c.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.SOLIDUS:case i.GREATER_THAN_SIGN:case i.EOF:{this.state=c.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case i.EQUALS_SIGN:{this._err(d.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=c.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=c.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:case i.SOLIDUS:case i.GREATER_THAN_SIGN:case i.EOF:{this._leaveAttrName(),this.state=c.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break}case i.EQUALS_SIGN:{this._leaveAttrName(),this.state=c.BEFORE_ATTRIBUTE_VALUE;break}case i.QUOTATION_MARK:case i.APOSTROPHE:case i.LESS_THAN_SIGN:{this._err(d.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break}case i.NULL:{this._err(d.unexpectedNullCharacter),this.currentAttr.name+=O;break}default:this.currentAttr.name+=String.fromCodePoint(ye(e)?st(e):e)}}_stateAfterAttributeName(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.SOLIDUS:{this.state=c.SELF_CLOSING_START_TAG;break}case i.EQUALS_SIGN:{this.state=c.BEFORE_ATTRIBUTE_VALUE;break}case i.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentTagToken();break}case i.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=c.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.QUOTATION_MARK:{this.state=c.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this.state=c.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(d.missingAttributeValue),this.state=c.DATA,this.emitCurrentTagToken();break}default:this.state=c.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case i.QUOTATION_MARK:{this.state=c.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case i.AMPERSAND:{this.returnState=c.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=c.CHARACTER_REFERENCE;break}case i.NULL:{this._err(d.unexpectedNullCharacter),this.currentAttr.value+=O;break}case i.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case i.APOSTROPHE:{this.state=c.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case i.AMPERSAND:{this.returnState=c.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=c.CHARACTER_REFERENCE;break}case i.NULL:{this._err(d.unexpectedNullCharacter),this.currentAttr.value+=O;break}case i.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this._leaveAttrValue(),this.state=c.BEFORE_ATTRIBUTE_NAME;break}case i.AMPERSAND:{this.returnState=c.ATTRIBUTE_VALUE_UNQUOTED,this.state=c.CHARACTER_REFERENCE;break}case i.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=c.DATA,this.emitCurrentTagToken();break}case i.NULL:{this._err(d.unexpectedNullCharacter),this.currentAttr.value+=O;break}case i.QUOTATION_MARK:case i.APOSTROPHE:case i.LESS_THAN_SIGN:case i.EQUALS_SIGN:case i.GRAVE_ACCENT:{this._err(d.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break}case i.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this._leaveAttrValue(),this.state=c.BEFORE_ATTRIBUTE_NAME;break}case i.SOLIDUS:{this._leaveAttrValue(),this.state=c.SELF_CLOSING_START_TAG;break}case i.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=c.DATA,this.emitCurrentTagToken();break}case i.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this._err(d.missingWhitespaceBetweenAttributes),this.state=c.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case i.GREATER_THAN_SIGN:{let t=this.currentToken;t.selfClosing=!0,this.state=c.DATA,this.emitCurrentTagToken();break}case i.EOF:{this._err(d.eofInTag),this._emitEOFToken();break}default:this._err(d.unexpectedSolidusInTag),this.state=c.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case i.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentComment(t);break}case i.EOF:{this.emitCurrentComment(t),this._emitEOFToken();break}case i.NULL:{this._err(d.unexpectedNullCharacter),t.data+=O;break}default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(U.DASH_DASH,!0)?(this._createCommentToken(U.DASH_DASH.length+1),this.state=c.COMMENT_START):this._consumeSequenceIfMatch(U.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(U.DOCTYPE.length+1),this.state=c.DOCTYPE):this._consumeSequenceIfMatch(U.CDATA_START,!0)?this.inForeignNode?this.state=c.CDATA_SECTION:(this._err(d.cdataInHtmlContent),this._createCommentToken(U.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=c.BOGUS_COMMENT):this._ensureHibernation()||(this._err(d.incorrectlyOpenedComment),this._createCommentToken(2),this.state=c.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case i.HYPHEN_MINUS:{this.state=c.COMMENT_START_DASH;break}case i.GREATER_THAN_SIGN:{this._err(d.abruptClosingOfEmptyComment),this.state=c.DATA;let t=this.currentToken;this.emitCurrentComment(t);break}default:this.state=c.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case i.HYPHEN_MINUS:{this.state=c.COMMENT_END;break}case i.GREATER_THAN_SIGN:{this._err(d.abruptClosingOfEmptyComment),this.state=c.DATA,this.emitCurrentComment(t);break}case i.EOF:{this._err(d.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=c.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case i.HYPHEN_MINUS:{this.state=c.COMMENT_END_DASH;break}case i.LESS_THAN_SIGN:{t.data+="<",this.state=c.COMMENT_LESS_THAN_SIGN;break}case i.NULL:{this._err(d.unexpectedNullCharacter),t.data+=O;break}case i.EOF:{this._err(d.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case i.EXCLAMATION_MARK:{t.data+="!",this.state=c.COMMENT_LESS_THAN_SIGN_BANG;break}case i.LESS_THAN_SIGN:{t.data+="<";break}default:this.state=c.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===i.HYPHEN_MINUS?this.state=c.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=c.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===i.HYPHEN_MINUS?this.state=c.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=c.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==i.GREATER_THAN_SIGN&&e!==i.EOF&&this._err(d.nestedComment),this.state=c.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case i.HYPHEN_MINUS:{this.state=c.COMMENT_END;break}case i.EOF:{this._err(d.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="-",this.state=c.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case i.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentComment(t);break}case i.EXCLAMATION_MARK:{this.state=c.COMMENT_END_BANG;break}case i.HYPHEN_MINUS:{t.data+="-";break}case i.EOF:{this._err(d.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--",this.state=c.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case i.HYPHEN_MINUS:{t.data+="--!",this.state=c.COMMENT_END_DASH;break}case i.GREATER_THAN_SIGN:{this._err(d.incorrectlyClosedComment),this.state=c.DATA,this.emitCurrentComment(t);break}case i.EOF:{this._err(d.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break}default:t.data+="--!",this.state=c.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=c.BEFORE_DOCTYPE_NAME;break}case i.GREATER_THAN_SIGN:{this.state=c.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break}case i.EOF:{this._err(d.eofInDoctype),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(d.missingWhitespaceBeforeDoctypeName),this.state=c.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(ye(e))this._createDoctypeToken(String.fromCharCode(st(e))),this.state=c.DOCTYPE_NAME;else switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.NULL:{this._err(d.unexpectedNullCharacter),this._createDoctypeToken(O),this.state=c.DOCTYPE_NAME;break}case i.GREATER_THAN_SIGN:{this._err(d.missingDoctypeName),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=c.DATA;break}case i.EOF:{this._err(d.eofInDoctype),this._createDoctypeToken(null);let t=this.currentToken;t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=c.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=c.AFTER_DOCTYPE_NAME;break}case i.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentDoctype(t);break}case i.NULL:{this._err(d.unexpectedNullCharacter),t.name+=O;break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.name+=String.fromCodePoint(ye(e)?st(e):e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(U.PUBLIC,!1)?this.state=c.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(U.SYSTEM,!1)?this.state=c.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(d.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=c.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case i.QUOTATION_MARK:{this._err(d.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=c.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this._err(d.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=c.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(d.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=c.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.QUOTATION_MARK:{t.publicId="",this.state=c.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{t.publicId="",this.state=c.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(d.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=c.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case i.QUOTATION_MARK:{this.state=c.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case i.NULL:{this._err(d.unexpectedNullCharacter),t.publicId+=O;break}case i.GREATER_THAN_SIGN:{this._err(d.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=c.DATA;break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case i.APOSTROPHE:{this.state=c.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case i.NULL:{this._err(d.unexpectedNullCharacter),t.publicId+=O;break}case i.GREATER_THAN_SIGN:{this._err(d.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=c.DATA;break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=c.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case i.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentDoctype(t);break}case i.QUOTATION_MARK:{this._err(d.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this._err(d.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=c.DATA;break}case i.QUOTATION_MARK:{t.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{t.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:{this.state=c.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case i.QUOTATION_MARK:{this._err(d.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{this._err(d.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(d.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=c.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.QUOTATION_MARK:{t.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case i.APOSTROPHE:{t.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case i.GREATER_THAN_SIGN:{this._err(d.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=c.DATA,this.emitCurrentDoctype(t);break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(d.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case i.QUOTATION_MARK:{this.state=c.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case i.NULL:{this._err(d.unexpectedNullCharacter),t.systemId+=O;break}case i.GREATER_THAN_SIGN:{this._err(d.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=c.DATA;break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case i.APOSTROPHE:{this.state=c.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case i.NULL:{this._err(d.unexpectedNullCharacter),t.systemId+=O;break}case i.GREATER_THAN_SIGN:{this._err(d.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=c.DATA;break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case i.SPACE:case i.LINE_FEED:case i.TABULATION:case i.FORM_FEED:break;case i.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=c.DATA;break}case i.EOF:{this._err(d.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break}default:this._err(d.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case i.GREATER_THAN_SIGN:{this.emitCurrentDoctype(t),this.state=c.DATA;break}case i.NULL:{this._err(d.unexpectedNullCharacter);break}case i.EOF:{this.emitCurrentDoctype(t),this._emitEOFToken();break}}}_stateCdataSection(e){switch(e){case i.RIGHT_SQUARE_BRACKET:{this.state=c.CDATA_SECTION_BRACKET;break}case i.EOF:{this._err(d.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===i.RIGHT_SQUARE_BRACKET?this.state=c.CDATA_SECTION_END:(this._emitChars("]"),this.state=c.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case i.GREATER_THAN_SIGN:{this.state=c.DATA;break}case i.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=c.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(e){e===i.NUMBER_SIGN?this.state=c.NUMERIC_CHARACTER_REFERENCE:jt(e)?(this.state=c.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(e)):(this._flushCodePointConsumedAsCharacterReference(i.AMPERSAND),this._reconsumeInState(this.returnState,e))}_stateNamedCharacterReference(e){let t=this._matchNamedCharacterReference(e);if(!this._ensureHibernation())if(t){for(let u=0;u<t.length;u++)this._flushCodePointConsumedAsCharacterReference(t[u]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(i.AMPERSAND),this.state=c.AMBIGUOUS_AMPERSAND}_stateAmbiguousAmpersand(e){jt(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===i.SEMICOLON&&this._err(d.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,e))}_stateNumericCharacterReference(e){this.charRefCode=0,e===i.LATIN_SMALL_X||e===i.LATIN_CAPITAL_X?this.state=c.HEXADEMICAL_CHARACTER_REFERENCE_START:ve(e)?(this.state=c.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(e)):(this._err(d.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(i.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(i.NUMBER_SIGN),this._reconsumeInState(this.returnState,e))}_stateHexademicalCharacterReferenceStart(e){c0(e)?(this.state=c.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(e)):(this._err(d.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(i.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(i.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState)}_stateHexademicalCharacterReference(e){hs(e)?this.charRefCode=this.charRefCode*16+e-55:As(e)?this.charRefCode=this.charRefCode*16+e-87:ve(e)?this.charRefCode=this.charRefCode*16+e-48:e===i.SEMICOLON?this.state=c.NUMERIC_CHARACTER_REFERENCE_END:(this._err(d.missingSemicolonAfterCharacterReference),this.state=c.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateDecimalCharacterReference(e){ve(e)?this.charRefCode=this.charRefCode*10+e-48:e===i.SEMICOLON?this.state=c.NUMERIC_CHARACTER_REFERENCE_END:(this._err(d.missingSemicolonAfterCharacterReference),this.state=c.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(e))}_stateNumericCharacterReferenceEnd(e){if(this.charRefCode===i.NULL)this._err(d.nullCharacterReference),this.charRefCode=i.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(d.characterReferenceOutsideUnicodeRange),this.charRefCode=i.REPLACEMENT_CHARACTER;else if(as(this.charRefCode))this._err(d.surrogateCharacterReference),this.charRefCode=i.REPLACEMENT_CHARACTER;else if(is(this.charRefCode))this._err(d.noncharacterCharacterReference);else if(ns(this.charRefCode)||this.charRefCode===i.CARRIAGE_RETURN){this._err(d.controlCharacterReference);let t=i0.get(this.charRefCode);t!==void 0&&(this.charRefCode=t)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}},Ts=new Set([s.DD,s.DT,s.LI,s.OPTGROUP,s.OPTION,s.P,s.RB,s.RP,s.RT,s.RTC]),Wu=new Set([...Ts,s.CAPTION,s.COLGROUP,s.TBODY,s.TD,s.TFOOT,s.TH,s.THEAD,s.TR]),at=new Map([[s.APPLET,T.HTML],[s.CAPTION,T.HTML],[s.HTML,T.HTML],[s.MARQUEE,T.HTML],[s.OBJECT,T.HTML],[s.TABLE,T.HTML],[s.TD,T.HTML],[s.TEMPLATE,T.HTML],[s.TH,T.HTML],[s.ANNOTATION_XML,T.MATHML],[s.MI,T.MATHML],[s.MN,T.MATHML],[s.MO,T.MATHML],[s.MS,T.MATHML],[s.MTEXT,T.MATHML],[s.DESC,T.SVG],[s.FOREIGN_OBJECT,T.SVG],[s.TITLE,T.SVG]]),h0=[s.H1,s.H2,s.H3,s.H4,s.H5,s.H6],A0=[s.TR,s.TEMPLATE,s.HTML],d0=[s.TBODY,s.TFOOT,s.THEAD,s.TEMPLATE,s.HTML],T0=[s.TABLE,s.TEMPLATE,s.HTML],p0=[s.TD,s.TH],m0=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,u){this.treeAdapter=t,this.handler=u,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=s.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===s.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===T.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let u=this._indexOf(e);this.items[u]=t,u===this.stackTop&&(this.current=t)}insertAfter(e,t,u){let r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,u),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==T.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(t<0?0:t)}popUntilPopped(e,t){let u=this._indexOfTagNames(e,t);this.shortenToLength(u<0?0:u)}popUntilNumberedHeaderPopped(){this.popUntilPopped(h0,T.HTML)}popUntilTableCellPopped(){this.popUntilPopped(p0,T.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let u=this.stackTop;u>=0;u--)if(e.includes(this.tagIDs[u])&&this.treeAdapter.getNamespaceURI(this.items[u])===t)return u;return-1}clearBackTo(e,t){let u=this._indexOfTagNames(e,t);this.shortenToLength(u+1)}clearBackToTableContext(){this.clearBackTo(T0,T.HTML)}clearBackToTableBodyContext(){this.clearBackTo(d0,T.HTML)}clearBackToTableRowContext(){this.clearBackTo(A0,T.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===s.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===s.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let u=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(u===e&&r===T.HTML)return!0;if(at.get(u)===r)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e],u=this.treeAdapter.getNamespaceURI(this.items[e]);if(fu(t)&&u===T.HTML)return!0;if(at.get(t)===u)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let u=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(u===e&&r===T.HTML)return!0;if((u===s.UL||u===s.OL)&&r===T.HTML||at.get(u)===r)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let u=this.tagIDs[t],r=this.treeAdapter.getNamespaceURI(this.items[t]);if(u===e&&r===T.HTML)return!0;if(u===s.BUTTON&&r===T.HTML||at.get(u)===r)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let u=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===T.HTML){if(u===e)return!0;if(u===s.TABLE||u===s.TEMPLATE||u===s.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===T.HTML){if(t===s.TBODY||t===s.THEAD||t===s.TFOOT)return!0;if(t===s.TABLE||t===s.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let u=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===T.HTML){if(u===e)return!0;if(u!==s.OPTION&&u!==s.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;Ts.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Wu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&Wu.has(this.currentTagId);)this.pop()}},K;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(K=K||(K={}));var Xu={type:K.Marker},C0=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let u=[],r=t.length,a=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);for(let o=0;o<this.entries.length;o++){let E=this.entries[o];if(E.type===K.Marker)break;let{element:h}=E;if(this.treeAdapter.getTagName(h)===a&&this.treeAdapter.getNamespaceURI(h)===n){let m=this.treeAdapter.getAttrList(h);m.length===r&&u.push({idx:o,attrs:m})}}return u}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),u=this._getNoahArkConditionCandidates(e,t);if(u.length<3)return;let r=new Map(t.map(n=>[n.name,n.value])),a=0;for(let n=0;n<u.length;n++){let o=u[n];o.attrs.every(E=>r.get(E.name)===E.value)&&(a+=1,a>=3&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Xu)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:K.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let u=this.entries.indexOf(this.bookmark);this.entries.splice(u,0,{type:K.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(Xu);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let t=this.entries.find(u=>u.type===K.Marker||this.treeAdapter.getTagName(u.element)===e);return t&&t.type===K.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===K.Element&&t.element===e)}};function Ku(e){return{nodeName:"#text",value:e,parentNode:null}}var Ee={createDocument(){return{nodeName:"#document",mode:G.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,u){return{nodeName:e,tagName:e,attrs:u,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,u){let r=e.childNodes.indexOf(u);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,u,r){let a=e.childNodes.find(n=>n.nodeName==="#documentType");if(a)a.name=t,a.publicId=u,a.systemId=r;else{let n={nodeName:"#documentType",name:t,publicId:u,systemId:r,parentNode:null};Ee.appendChild(e,n)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let u=e.childNodes[e.childNodes.length-1];if(Ee.isTextNode(u)){u.value+=t;return}}Ee.appendChild(e,Ku(t))},insertTextBefore(e,t,u){let r=e.childNodes[e.childNodes.indexOf(u)-1];r&&Ee.isTextNode(r)?r.value+=t:Ee.insertBefore(e,Ku(t),u)},adoptAttributes(e,t){let u=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)u.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},ps="html",f0="about:legacy-compat",D0="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",ms=["+//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//"],_0=[...ms,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],N0=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Cs=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],g0=[...Cs,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function ju(e,t){return t.some(u=>e.startsWith(u))}function I0(e){return e.name===ps&&e.publicId===null&&(e.systemId===null||e.systemId===f0)}function B0(e){if(e.name!==ps)return G.QUIRKS;let{systemId:t}=e;if(t&&t.toLowerCase()===D0)return G.QUIRKS;let{publicId:u}=e;if(u!==null){if(u=u.toLowerCase(),N0.has(u))return G.QUIRKS;let r=t===null?_0:ms;if(ju(u,r))return G.QUIRKS;if(r=t===null?Cs:g0,ju(u,r))return G.LIMITED_QUIRKS}return G.NO_QUIRKS}var $u={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},S0="definitionurl",F0="definitionURL",b0=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),R0=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:T.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:T.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:T.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:T.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:T.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:T.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:T.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:T.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:T.XML}],["xml:space",{prefix:"xml",name:"space",namespace:T.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:T.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:T.XMLNS}]]),O0=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),L0=new Set([s.B,s.BIG,s.BLOCKQUOTE,s.BODY,s.BR,s.CENTER,s.CODE,s.DD,s.DIV,s.DL,s.DT,s.EM,s.EMBED,s.H1,s.H2,s.H3,s.H4,s.H5,s.H6,s.HEAD,s.HR,s.I,s.IMG,s.LI,s.LISTING,s.MENU,s.META,s.NOBR,s.OL,s.P,s.PRE,s.RUBY,s.S,s.SMALL,s.SPAN,s.STRONG,s.STRIKE,s.SUB,s.SUP,s.TABLE,s.TT,s.U,s.UL,s.VAR]);function k0(e){let t=e.tagID;return t===s.FONT&&e.attrs.some(({name:u})=>u===te.COLOR||u===te.SIZE||u===te.FACE)||L0.has(t)}function fs(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===S0){e.attrs[t].name=F0;break}}function Ds(e){for(let t=0;t<e.attrs.length;t++){let u=b0.get(e.attrs[t].name);u!=null&&(e.attrs[t].name=u)}}function Du(e){for(let t=0;t<e.attrs.length;t++){let u=R0.get(e.attrs[t].name);u&&(e.attrs[t].prefix=u.prefix,e.attrs[t].name=u.name,e.attrs[t].namespace=u.namespace)}}function x0(e){let t=O0.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=ze(e.tagName))}function M0(e,t){return t===T.MATHML&&(e===s.MI||e===s.MO||e===s.MN||e===s.MS||e===s.MTEXT)}function y0(e,t,u){if(t===T.MATHML&&e===s.ANNOTATION_XML){for(let r=0;r<u.length;r++)if(u[r].name===te.ENCODING){let a=u[r].value.toLowerCase();return a===$u.TEXT_HTML||a===$u.APPLICATION_XML}}return t===T.SVG&&(e===s.FOREIGN_OBJECT||e===s.DESC||e===s.TITLE)}function P0(e,t,u,r){return(!r||r===T.HTML)&&y0(e,t,u)||(!r||r===T.MATHML)&&M0(e,t)}var v0="hidden",U0=8,H0=3,l;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(l||(l={}));var w0={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},_s=new Set([s.TABLE,s.TBODY,s.TFOOT,s.THEAD,s.TR]),zu={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ee,onParseError:null},Ns=class{constructor(e,t,u=null,r=null){this.fragmentContext=u,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=l.INITIAL,this.originalInsertionMode=l.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...zu,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new E0(this.options,this),this.activeFormattingElements=new C0(this.treeAdapter),this.fragmentContextID=u?ze(this.treeAdapter.getTagName(u)):s.UNKNOWN,this._setContextModes(u??this.document,this.fragmentContextID),this.openElements=new m0(this.document,this.treeAdapter,this)}static parse(e,t){let u=new this(t);return u.tokenizer.write(e,!0),u.document}static getFragmentParser(e,t){let u={...zu,...t};e??(e=u.treeAdapter.createElement(A.TEMPLATE,T.HTML,[]));let r=u.treeAdapter.createElement("documentmock",T.HTML,[]),a=new this(u,r,e);return a.fragmentContextID===s.TEMPLATE&&a.tmplInsertionModeStack.unshift(l.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,u){var r;if(!this.onParseError)return;let a=(r=e.location)!==null&&r!==void 0?r:w0,n={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:u?a.startLine:a.endLine,endCol:u?a.startCol:a.endCol,endOffset:u?a.startOffset:a.endOffset};this.onParseError(n)}onItemPush(e,t,u){var r,a;(a=(r=this.treeAdapter).onItemPush)===null||a===void 0||a.call(r,e),u&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var u,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(r=(u=this.treeAdapter).onItemPop)===null||r===void 0||r.call(u,e,this.openElements.current),t){let a,n;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,n=this.fragmentContextID):{current:a,currentTagId:n}=this.openElements,this._setContextModes(a,n)}}_setContextModes(e,t){let u=e===this.document||this.treeAdapter.getNamespaceURI(e)===T.HTML;this.currentNotInHTML=!u,this.tokenizer.inForeignNode=!u&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,T.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=l.TEXT}switchToPlaintextParsing(){this.insertionMode=l.TEXT,this.originalInsertionMode=l.IN_BODY,this.tokenizer.state=q.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===A.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==T.HTML))switch(this.fragmentContextID){case s.TITLE:case s.TEXTAREA:{this.tokenizer.state=q.RCDATA;break}case s.STYLE:case s.XMP:case s.IFRAME:case s.NOEMBED:case s.NOFRAMES:case s.NOSCRIPT:{this.tokenizer.state=q.RAWTEXT;break}case s.SCRIPT:{this.tokenizer.state=q.SCRIPT_DATA;break}case s.PLAINTEXT:{this.tokenizer.state=q.PLAINTEXT;break}}}_setDocumentType(e){let t=e.name||"",u=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,u,r),e.location){let a=this.treeAdapter.getChildNodes(this.document).find(n=>this.treeAdapter.isDocumentTypeNode(n));a&&this.treeAdapter.setNodeSourceCodeLocation(a,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let u=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,u)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let u=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(u,e)}}_appendElement(e,t){let u=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(u,e.location)}_insertElement(e,t){let u=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(u,e.location),this.openElements.push(u,e.tagID)}_insertFakeElement(e,t){let u=this.treeAdapter.createElement(e,T.HTML,[]);this._attachElementToTree(u,null),this.openElements.push(u,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,T.HTML,e.attrs),u=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,u),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(A.HTML,T.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,s.HTML)}_appendCommentNode(e,t){let u=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,u),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,e.location)}_insertCharacters(e){let t,u;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:u}=this._findFosterParentingLocation(),u?this.treeAdapter.insertTextBefore(t,e.chars,u):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let r=this.treeAdapter.getChildNodes(t),a=u?r.lastIndexOf(u):r.length,n=r[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(n)){let{endLine:o,endCol:E,endOffset:h}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(n,{endLine:o,endCol:E,endOffset:h})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_adoptNodes(e,t){for(let u=this.treeAdapter.getFirstChild(e);u;u=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(u),this.treeAdapter.appendChild(t,u)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let u=t.location,r=this.treeAdapter.getTagName(e),a=t.type===F.END_TAG&&r===t.tagName?{endTag:{...u},endLine:u.endLine,endCol:u.endCol,endOffset:u.endOffset}:{endLine:u.startLine,endCol:u.startCol,endOffset:u.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,u;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,u=this.fragmentContextID):{current:t,currentTagId:u}=this.openElements,e.tagID===s.SVG&&this.treeAdapter.getTagName(t)===A.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===T.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===s.MGLYPH||e.tagID===s.MALIGNMARK)&&!this._isIntegrationPoint(u,t,T.HTML)}_processToken(e){switch(e.type){case F.CHARACTER:{this.onCharacter(e);break}case F.NULL_CHARACTER:{this.onNullCharacter(e);break}case F.COMMENT:{this.onComment(e);break}case F.DOCTYPE:{this.onDoctype(e);break}case F.START_TAG:{this._processStartTag(e);break}case F.END_TAG:{this.onEndTag(e);break}case F.EOF:{this.onEof(e);break}case F.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,u){let r=this.treeAdapter.getNamespaceURI(t),a=this.treeAdapter.getAttrList(t);return P0(e,r,a,u)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(r=>r.type===K.Marker||this.openElements.contains(r.element)),u=t<0?e-1:t-1;for(let r=u;r>=0;r--){let a=this.activeFormattingElements.entries[r];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=l.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(s.P),this.openElements.popUntilTagNamePopped(s.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case s.TR:{this.insertionMode=l.IN_ROW;return}case s.TBODY:case s.THEAD:case s.TFOOT:{this.insertionMode=l.IN_TABLE_BODY;return}case s.CAPTION:{this.insertionMode=l.IN_CAPTION;return}case s.COLGROUP:{this.insertionMode=l.IN_COLUMN_GROUP;return}case s.TABLE:{this.insertionMode=l.IN_TABLE;return}case s.BODY:{this.insertionMode=l.IN_BODY;return}case s.FRAMESET:{this.insertionMode=l.IN_FRAMESET;return}case s.SELECT:{this._resetInsertionModeForSelect(e);return}case s.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case s.HTML:{this.insertionMode=this.headElement?l.AFTER_HEAD:l.BEFORE_HEAD;return}case s.TD:case s.TH:{if(e>0){this.insertionMode=l.IN_CELL;return}break}case s.HEAD:{if(e>0){this.insertionMode=l.IN_HEAD;return}break}}this.insertionMode=l.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let u=this.openElements.tagIDs[t];if(u===s.TEMPLATE)break;if(u===s.TABLE){this.insertionMode=l.IN_SELECT_IN_TABLE;return}}this.insertionMode=l.IN_SELECT}_isElementCausesFosterParenting(e){return _s.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case s.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===T.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break}case s.TABLE:{let u=this.treeAdapter.getParentNode(t);return u?{parent:u,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){let u=this.treeAdapter.getNamespaceURI(e);return ls[u].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){mc(this,e);return}switch(this.insertionMode){case l.INITIAL:{xe(this,e);break}case l.BEFORE_HTML:{Ue(this,e);break}case l.BEFORE_HEAD:{He(this,e);break}case l.IN_HEAD:{we(this,e);break}case l.IN_HEAD_NO_SCRIPT:{Ge(this,e);break}case l.AFTER_HEAD:{qe(this,e);break}case l.IN_BODY:case l.IN_CAPTION:case l.IN_CELL:case l.IN_TEMPLATE:{Is(this,e);break}case l.TEXT:case l.IN_SELECT:case l.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case l.IN_TABLE:case l.IN_TABLE_BODY:case l.IN_ROW:{vt(this,e);break}case l.IN_TABLE_TEXT:{Os(this,e);break}case l.IN_COLUMN_GROUP:{mt(this,e);break}case l.AFTER_BODY:{Ct(this,e);break}case l.AFTER_AFTER_BODY:{ot(this,e);break}}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){pc(this,e);return}switch(this.insertionMode){case l.INITIAL:{xe(this,e);break}case l.BEFORE_HTML:{Ue(this,e);break}case l.BEFORE_HEAD:{He(this,e);break}case l.IN_HEAD:{we(this,e);break}case l.IN_HEAD_NO_SCRIPT:{Ge(this,e);break}case l.AFTER_HEAD:{qe(this,e);break}case l.TEXT:{this._insertCharacters(e);break}case l.IN_TABLE:case l.IN_TABLE_BODY:case l.IN_ROW:{vt(this,e);break}case l.IN_COLUMN_GROUP:{mt(this,e);break}case l.AFTER_BODY:{Ct(this,e);break}case l.AFTER_AFTER_BODY:{ot(this,e);break}}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){$t(this,e);return}switch(this.insertionMode){case l.INITIAL:case l.BEFORE_HTML:case l.BEFORE_HEAD:case l.IN_HEAD:case l.IN_HEAD_NO_SCRIPT:case l.AFTER_HEAD:case l.IN_BODY:case l.IN_TABLE:case l.IN_CAPTION:case l.IN_COLUMN_GROUP:case l.IN_TABLE_BODY:case l.IN_ROW:case l.IN_CELL:case l.IN_SELECT:case l.IN_SELECT_IN_TABLE:case l.IN_TEMPLATE:case l.IN_FRAMESET:case l.AFTER_FRAMESET:{$t(this,e);break}case l.IN_TABLE_TEXT:{Me(this,e);break}case l.AFTER_BODY:{X0(this,e);break}case l.AFTER_AFTER_BODY:case l.AFTER_AFTER_FRAMESET:{K0(this,e);break}}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case l.INITIAL:{j0(this,e);break}case l.BEFORE_HEAD:case l.IN_HEAD:case l.IN_HEAD_NO_SCRIPT:case l.AFTER_HEAD:{this._err(e,d.misplacedDoctype);break}case l.IN_TABLE_TEXT:{Me(this,e);break}}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,d.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?Cc(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case l.INITIAL:{xe(this,e);break}case l.BEFORE_HTML:{$0(this,e);break}case l.BEFORE_HEAD:{Z0(this,e);break}case l.IN_HEAD:{j(this,e);break}case l.IN_HEAD_NO_SCRIPT:{to(this,e);break}case l.AFTER_HEAD:{ro(this,e);break}case l.IN_BODY:{P(this,e);break}case l.IN_TABLE:{Se(this,e);break}case l.IN_TABLE_TEXT:{Me(this,e);break}case l.IN_CAPTION:{ec(this,e);break}case l.IN_COLUMN_GROUP:{gu(this,e);break}case l.IN_TABLE_BODY:{St(this,e);break}case l.IN_ROW:{Ft(this,e);break}case l.IN_CELL:{rc(this,e);break}case l.IN_SELECT:{xs(this,e);break}case l.IN_SELECT_IN_TABLE:{ac(this,e);break}case l.IN_TEMPLATE:{ic(this,e);break}case l.AFTER_BODY:{cc(this,e);break}case l.IN_FRAMESET:{lc(this,e);break}case l.AFTER_FRAMESET:{hc(this,e);break}case l.AFTER_AFTER_BODY:{dc(this,e);break}case l.AFTER_AFTER_FRAMESET:{Tc(this,e);break}}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?fc(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case l.INITIAL:{xe(this,e);break}case l.BEFORE_HTML:{z0(this,e);break}case l.BEFORE_HEAD:{J0(this,e);break}case l.IN_HEAD:{eo(this,e);break}case l.IN_HEAD_NO_SCRIPT:{uo(this,e);break}case l.AFTER_HEAD:{so(this,e);break}case l.IN_BODY:{Bt(this,e);break}case l.TEXT:{Vo(this,e);break}case l.IN_TABLE:{We(this,e);break}case l.IN_TABLE_TEXT:{Me(this,e);break}case l.IN_CAPTION:{tc(this,e);break}case l.IN_COLUMN_GROUP:{uc(this,e);break}case l.IN_TABLE_BODY:{zt(this,e);break}case l.IN_ROW:{ks(this,e);break}case l.IN_CELL:{sc(this,e);break}case l.IN_SELECT:{Ms(this,e);break}case l.IN_SELECT_IN_TABLE:{nc(this,e);break}case l.IN_TEMPLATE:{oc(this,e);break}case l.AFTER_BODY:{Ps(this,e);break}case l.IN_FRAMESET:{Ec(this,e);break}case l.AFTER_FRAMESET:{Ac(this,e);break}case l.AFTER_AFTER_BODY:{ot(this,e);break}}}onEof(e){switch(this.insertionMode){case l.INITIAL:{xe(this,e);break}case l.BEFORE_HTML:{Ue(this,e);break}case l.BEFORE_HEAD:{He(this,e);break}case l.IN_HEAD:{we(this,e);break}case l.IN_HEAD_NO_SCRIPT:{Ge(this,e);break}case l.AFTER_HEAD:{qe(this,e);break}case l.IN_BODY:case l.IN_TABLE:case l.IN_CAPTION:case l.IN_COLUMN_GROUP:case l.IN_TABLE_BODY:case l.IN_ROW:case l.IN_CELL:case l.IN_SELECT:case l.IN_SELECT_IN_TABLE:{bs(this,e);break}case l.TEXT:{Qo(this,e);break}case l.IN_TABLE_TEXT:{Me(this,e);break}case l.IN_TEMPLATE:{ys(this,e);break}case l.AFTER_BODY:case l.IN_FRAMESET:case l.AFTER_FRAMESET:case l.AFTER_AFTER_BODY:case l.AFTER_AFTER_FRAMESET:{Nu(this,e);break}}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===i.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case l.IN_HEAD:case l.IN_HEAD_NO_SCRIPT:case l.AFTER_HEAD:case l.TEXT:case l.IN_COLUMN_GROUP:case l.IN_SELECT:case l.IN_SELECT_IN_TABLE:case l.IN_FRAMESET:case l.AFTER_FRAMESET:{this._insertCharacters(e);break}case l.IN_BODY:case l.IN_CAPTION:case l.IN_CELL:case l.IN_TEMPLATE:case l.AFTER_BODY:case l.AFTER_AFTER_BODY:case l.AFTER_AFTER_FRAMESET:{gs(this,e);break}case l.IN_TABLE:case l.IN_TABLE_BODY:case l.IN_ROW:{vt(this,e);break}case l.IN_TABLE_TEXT:{Rs(this,e);break}}}};function G0(e,t){let u=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return u?e.openElements.contains(u.element)?e.openElements.hasInScope(t.tagID)||(u=null):(e.activeFormattingElements.removeEntry(u),u=null):Fs(e,t),u}function q0(e,t){let u=null,r=e.openElements.stackTop;for(;r>=0;r--){let a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(u=a)}return u||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),u}function Y0(e,t,u){let r=t,a=e.openElements.getCommonAncestor(t);for(let n=0,o=a;o!==u;n++,o=a){a=e.openElements.getCommonAncestor(o);let E=e.activeFormattingElements.getElementEntry(o),h=E&&n>=H0;!E||h?(h&&e.activeFormattingElements.removeEntry(E),e.openElements.remove(o)):(o=V0(e,E),r===t&&(e.activeFormattingElements.bookmark=E),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function V0(e,t){let u=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,u,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Q0(e,t,u){let r=e.treeAdapter.getTagName(t),a=ze(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(u);else{let n=e.treeAdapter.getNamespaceURI(t);a===s.TEMPLATE&&n===T.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,u)}}function W0(e,t,u){let r=e.treeAdapter.getNamespaceURI(u.element),{token:a}=u,n=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,n),e.treeAdapter.appendChild(t,n),e.activeFormattingElements.insertElementAfterBookmark(n,a),e.activeFormattingElements.removeEntry(u),e.openElements.remove(u.element),e.openElements.insertAfter(t,n,a.tagID)}function _u(e,t){for(let u=0;u<U0;u++){let r=G0(e,t);if(!r)break;let a=q0(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;let n=Y0(e,a,r.element),o=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(n),o&&Q0(e,o,n),W0(e,a,r)}}function $t(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function X0(e,t){e._appendCommentNode(t,e.openElements.items[0])}function K0(e,t){e._appendCommentNode(t,e.document)}function Nu(e,t){if(e.stopped=!0,t.location){let u=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=u;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],o=e.treeAdapter.getNodeSourceCodeLocation(n);o&&!o.endTag&&e._setEndLocation(n,t)}}}}function j0(e,t){e._setDocumentType(t);let u=t.forceQuirks?G.QUIRKS:B0(t);I0(t)||e._err(t,d.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,u),e.insertionMode=l.BEFORE_HTML}function xe(e,t){e._err(t,d.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,G.QUIRKS),e.insertionMode=l.BEFORE_HTML,e._processToken(t)}function $0(e,t){t.tagID===s.HTML?(e._insertElement(t,T.HTML),e.insertionMode=l.BEFORE_HEAD):Ue(e,t)}function z0(e,t){let u=t.tagID;(u===s.HTML||u===s.HEAD||u===s.BODY||u===s.BR)&&Ue(e,t)}function Ue(e,t){e._insertFakeRootElement(),e.insertionMode=l.BEFORE_HEAD,e._processToken(t)}function Z0(e,t){switch(t.tagID){case s.HTML:{P(e,t);break}case s.HEAD:{e._insertElement(t,T.HTML),e.headElement=e.openElements.current,e.insertionMode=l.IN_HEAD;break}default:He(e,t)}}function J0(e,t){let u=t.tagID;u===s.HEAD||u===s.BODY||u===s.HTML||u===s.BR?He(e,t):e._err(t,d.endTagWithoutMatchingOpenElement)}function He(e,t){e._insertFakeElement(A.HEAD,s.HEAD),e.headElement=e.openElements.current,e.insertionMode=l.IN_HEAD,e._processToken(t)}function j(e,t){switch(t.tagID){case s.HTML:{P(e,t);break}case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case s.TITLE:{e._switchToTextParsing(t,q.RCDATA);break}case s.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,q.RAWTEXT):(e._insertElement(t,T.HTML),e.insertionMode=l.IN_HEAD_NO_SCRIPT);break}case s.NOFRAMES:case s.STYLE:{e._switchToTextParsing(t,q.RAWTEXT);break}case s.SCRIPT:{e._switchToTextParsing(t,q.SCRIPT_DATA);break}case s.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=l.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(l.IN_TEMPLATE);break}case s.HEAD:{e._err(t,d.misplacedStartTagForHeadElement);break}default:we(e,t)}}function eo(e,t){switch(t.tagID){case s.HEAD:{e.openElements.pop(),e.insertionMode=l.AFTER_HEAD;break}case s.BODY:case s.BR:case s.HTML:{we(e,t);break}case s.TEMPLATE:{Ce(e,t);break}default:e._err(t,d.endTagWithoutMatchingOpenElement)}}function Ce(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==s.TEMPLATE&&e._err(t,d.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(s.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,d.endTagWithoutMatchingOpenElement)}function we(e,t){e.openElements.pop(),e.insertionMode=l.AFTER_HEAD,e._processToken(t)}function to(e,t){switch(t.tagID){case s.HTML:{P(e,t);break}case s.BASEFONT:case s.BGSOUND:case s.HEAD:case s.LINK:case s.META:case s.NOFRAMES:case s.STYLE:{j(e,t);break}case s.NOSCRIPT:{e._err(t,d.nestedNoscriptInHead);break}default:Ge(e,t)}}function uo(e,t){switch(t.tagID){case s.NOSCRIPT:{e.openElements.pop(),e.insertionMode=l.IN_HEAD;break}case s.BR:{Ge(e,t);break}default:e._err(t,d.endTagWithoutMatchingOpenElement)}}function Ge(e,t){let u=t.type===F.EOF?d.openElementsLeftAfterEof:d.disallowedContentInNoscriptInHead;e._err(t,u),e.openElements.pop(),e.insertionMode=l.IN_HEAD,e._processToken(t)}function ro(e,t){switch(t.tagID){case s.HTML:{P(e,t);break}case s.BODY:{e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=l.IN_BODY;break}case s.FRAMESET:{e._insertElement(t,T.HTML),e.insertionMode=l.IN_FRAMESET;break}case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:case s.NOFRAMES:case s.SCRIPT:case s.STYLE:case s.TEMPLATE:case s.TITLE:{e._err(t,d.abandonedHeadElementChild),e.openElements.push(e.headElement,s.HEAD),j(e,t),e.openElements.remove(e.headElement);break}case s.HEAD:{e._err(t,d.misplacedStartTagForHeadElement);break}default:qe(e,t)}}function so(e,t){switch(t.tagID){case s.BODY:case s.HTML:case s.BR:{qe(e,t);break}case s.TEMPLATE:{Ce(e,t);break}default:e._err(t,d.endTagWithoutMatchingOpenElement)}}function qe(e,t){e._insertFakeElement(A.BODY,s.BODY),e.insertionMode=l.IN_BODY,It(e,t)}function It(e,t){switch(t.type){case F.CHARACTER:{Is(e,t);break}case F.WHITESPACE_CHARACTER:{gs(e,t);break}case F.COMMENT:{$t(e,t);break}case F.START_TAG:{P(e,t);break}case F.END_TAG:{Bt(e,t);break}case F.EOF:{bs(e,t);break}}}function gs(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Is(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ao(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function no(e,t){let u=e.openElements.tryPeekProperlyNestedBodyElement();u&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(u,t.attrs))}function io(e,t){let u=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&u&&(e.treeAdapter.detachNode(u),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,T.HTML),e.insertionMode=l.IN_FRAMESET)}function oo(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,T.HTML)}function co(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),fu(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,T.HTML)}function lo(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function Eo(e,t){let u=e.openElements.tmplCount>0;(!e.formElement||u)&&(e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,T.HTML),u||(e.formElement=e.openElements.current))}function ho(e,t){e.framesetOk=!1;let u=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){let a=e.openElements.tagIDs[r];if(u===s.LI&&a===s.LI||(u===s.DD||u===s.DT)&&(a===s.DD||a===s.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==s.ADDRESS&&a!==s.DIV&&a!==s.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,T.HTML)}function Ao(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.tokenizer.state=q.PLAINTEXT}function To(e,t){e.openElements.hasInScope(s.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.framesetOk=!1}function po(e,t){let u=e.activeFormattingElements.getElementEntryInScopeWithTagName(A.A);u&&(_u(e,t),e.openElements.remove(u.element),e.activeFormattingElements.removeEntry(u)),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function mo(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Co(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(s.NOBR)&&(_u(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,T.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function fo(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Do(e,t){e.treeAdapter.getDocumentMode(e.document)!==G.QUIRKS&&e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=l.IN_TABLE}function Bs(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,T.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Ss(e){let t=os(e,te.TYPE);return t!=null&&t.toLowerCase()===v0}function _o(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,T.HTML),Ss(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function No(e,t){e._appendElement(t,T.HTML),t.ackSelfClosing=!0}function go(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._appendElement(t,T.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Io(e,t){t.tagName=A.IMG,t.tagID=s.IMG,Bs(e,t)}function Bo(e,t){e._insertElement(t,T.HTML),e.skipNextNewLine=!0,e.tokenizer.state=q.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=l.TEXT}function So(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,q.RAWTEXT)}function Fo(e,t){e.framesetOk=!1,e._switchToTextParsing(t,q.RAWTEXT)}function Zu(e,t){e._switchToTextParsing(t,q.RAWTEXT)}function bo(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===l.IN_TABLE||e.insertionMode===l.IN_CAPTION||e.insertionMode===l.IN_TABLE_BODY||e.insertionMode===l.IN_ROW||e.insertionMode===l.IN_CELL?l.IN_SELECT_IN_TABLE:l.IN_SELECT}function Ro(e,t){e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML)}function Oo(e,t){e.openElements.hasInScope(s.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,T.HTML)}function Lo(e,t){e.openElements.hasInScope(s.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(s.RTC),e._insertElement(t,T.HTML)}function ko(e,t){e._reconstructActiveFormattingElements(),fs(t),Du(t),t.selfClosing?e._appendElement(t,T.MATHML):e._insertElement(t,T.MATHML),t.ackSelfClosing=!0}function xo(e,t){e._reconstructActiveFormattingElements(),Ds(t),Du(t),t.selfClosing?e._appendElement(t,T.SVG):e._insertElement(t,T.SVG),t.ackSelfClosing=!0}function Ju(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,T.HTML)}function P(e,t){switch(t.tagID){case s.I:case s.S:case s.B:case s.U:case s.EM:case s.TT:case s.BIG:case s.CODE:case s.FONT:case s.SMALL:case s.STRIKE:case s.STRONG:{mo(e,t);break}case s.A:{po(e,t);break}case s.H1:case s.H2:case s.H3:case s.H4:case s.H5:case s.H6:{co(e,t);break}case s.P:case s.DL:case s.OL:case s.UL:case s.DIV:case s.DIR:case s.NAV:case s.MAIN:case s.MENU:case s.ASIDE:case s.CENTER:case s.FIGURE:case s.FOOTER:case s.HEADER:case s.HGROUP:case s.DIALOG:case s.DETAILS:case s.ADDRESS:case s.ARTICLE:case s.SECTION:case s.SUMMARY:case s.FIELDSET:case s.BLOCKQUOTE:case s.FIGCAPTION:{oo(e,t);break}case s.LI:case s.DD:case s.DT:{ho(e,t);break}case s.BR:case s.IMG:case s.WBR:case s.AREA:case s.EMBED:case s.KEYGEN:{Bs(e,t);break}case s.HR:{go(e,t);break}case s.RB:case s.RTC:{Oo(e,t);break}case s.RT:case s.RP:{Lo(e,t);break}case s.PRE:case s.LISTING:{lo(e,t);break}case s.XMP:{So(e,t);break}case s.SVG:{xo(e,t);break}case s.HTML:{ao(e,t);break}case s.BASE:case s.LINK:case s.META:case s.STYLE:case s.TITLE:case s.SCRIPT:case s.BGSOUND:case s.BASEFONT:case s.TEMPLATE:{j(e,t);break}case s.BODY:{no(e,t);break}case s.FORM:{Eo(e,t);break}case s.NOBR:{Co(e,t);break}case s.MATH:{ko(e,t);break}case s.TABLE:{Do(e,t);break}case s.INPUT:{_o(e,t);break}case s.PARAM:case s.TRACK:case s.SOURCE:{No(e,t);break}case s.IMAGE:{Io(e,t);break}case s.BUTTON:{To(e,t);break}case s.APPLET:case s.OBJECT:case s.MARQUEE:{fo(e,t);break}case s.IFRAME:{Fo(e,t);break}case s.SELECT:{bo(e,t);break}case s.OPTION:case s.OPTGROUP:{Ro(e,t);break}case s.NOEMBED:{Zu(e,t);break}case s.FRAMESET:{io(e,t);break}case s.TEXTAREA:{Bo(e,t);break}case s.NOSCRIPT:{e.options.scriptingEnabled?Zu(e,t):Ju(e,t);break}case s.PLAINTEXT:{Ao(e,t);break}case s.COL:case s.TH:case s.TD:case s.TR:case s.HEAD:case s.FRAME:case s.TBODY:case s.TFOOT:case s.THEAD:case s.CAPTION:case s.COLGROUP:break;default:Ju(e,t)}}function Mo(e,t){if(e.openElements.hasInScope(s.BODY)&&(e.insertionMode=l.AFTER_BODY,e.options.sourceCodeLocationInfo)){let u=e.openElements.tryPeekProperlyNestedBodyElement();u&&e._setEndLocation(u,t)}}function yo(e,t){e.openElements.hasInScope(s.BODY)&&(e.insertionMode=l.AFTER_BODY,Ps(e,t))}function Po(e,t){let u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u))}function vo(e){let t=e.openElements.tmplCount>0,{formElement:u}=e;t||(e.formElement=null),(u||t)&&e.openElements.hasInScope(s.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(s.FORM):u&&e.openElements.remove(u))}function Uo(e){e.openElements.hasInButtonScope(s.P)||e._insertFakeElement(A.P,s.P),e._closePElement()}function Ho(e){e.openElements.hasInListItemScope(s.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(s.LI),e.openElements.popUntilTagNamePopped(s.LI))}function wo(e,t){let u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTagsWithExclusion(u),e.openElements.popUntilTagNamePopped(u))}function Go(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function qo(e,t){let u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u),e.activeFormattingElements.clearToLastMarker())}function Yo(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(A.BR,s.BR),e.openElements.pop(),e.framesetOk=!1}function Fs(e,t){let u=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){let n=e.openElements.items[a],o=e.openElements.tagIDs[a];if(r===o&&(r!==s.UNKNOWN||e.treeAdapter.getTagName(n)===u)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(n,o))break}}function Bt(e,t){switch(t.tagID){case s.A:case s.B:case s.I:case s.S:case s.U:case s.EM:case s.TT:case s.BIG:case s.CODE:case s.FONT:case s.NOBR:case s.SMALL:case s.STRIKE:case s.STRONG:{_u(e,t);break}case s.P:{Uo(e);break}case s.DL:case s.UL:case s.OL:case s.DIR:case s.DIV:case s.NAV:case s.PRE:case s.MAIN:case s.MENU:case s.ASIDE:case s.BUTTON:case s.CENTER:case s.FIGURE:case s.FOOTER:case s.HEADER:case s.HGROUP:case s.DIALOG:case s.ADDRESS:case s.ARTICLE:case s.DETAILS:case s.SECTION:case s.SUMMARY:case s.LISTING:case s.FIELDSET:case s.BLOCKQUOTE:case s.FIGCAPTION:{Po(e,t);break}case s.LI:{Ho(e);break}case s.DD:case s.DT:{wo(e,t);break}case s.H1:case s.H2:case s.H3:case s.H4:case s.H5:case s.H6:{Go(e);break}case s.BR:{Yo(e);break}case s.BODY:{Mo(e,t);break}case s.HTML:{yo(e,t);break}case s.FORM:{vo(e);break}case s.APPLET:case s.OBJECT:case s.MARQUEE:{qo(e,t);break}case s.TEMPLATE:{Ce(e,t);break}default:Fs(e,t)}}function bs(e,t){e.tmplInsertionModeStack.length>0?ys(e,t):Nu(e,t)}function Vo(e,t){var u;t.tagID===s.SCRIPT&&((u=e.scriptHandler)===null||u===void 0||u.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Qo(e,t){e._err(t,d.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function vt(e,t){if(_s.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=l.IN_TABLE_TEXT,t.type){case F.CHARACTER:{Os(e,t);break}case F.WHITESPACE_CHARACTER:{Rs(e,t);break}}else Ze(e,t)}function Wo(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,T.HTML),e.insertionMode=l.IN_CAPTION}function Xo(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,T.HTML),e.insertionMode=l.IN_COLUMN_GROUP}function Ko(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(A.COLGROUP,s.COLGROUP),e.insertionMode=l.IN_COLUMN_GROUP,gu(e,t)}function jo(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,T.HTML),e.insertionMode=l.IN_TABLE_BODY}function $o(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(A.TBODY,s.TBODY),e.insertionMode=l.IN_TABLE_BODY,St(e,t)}function zo(e,t){e.openElements.hasInTableScope(s.TABLE)&&(e.openElements.popUntilTagNamePopped(s.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Zo(e,t){Ss(t)?e._appendElement(t,T.HTML):Ze(e,t),t.ackSelfClosing=!0}function Jo(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,T.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Se(e,t){switch(t.tagID){case s.TD:case s.TH:case s.TR:{$o(e,t);break}case s.STYLE:case s.SCRIPT:case s.TEMPLATE:{j(e,t);break}case s.COL:{Ko(e,t);break}case s.FORM:{Jo(e,t);break}case s.TABLE:{zo(e,t);break}case s.TBODY:case s.TFOOT:case s.THEAD:{jo(e,t);break}case s.INPUT:{Zo(e,t);break}case s.CAPTION:{Wo(e,t);break}case s.COLGROUP:{Xo(e,t);break}default:Ze(e,t)}}function We(e,t){switch(t.tagID){case s.TABLE:{e.openElements.hasInTableScope(s.TABLE)&&(e.openElements.popUntilTagNamePopped(s.TABLE),e._resetInsertionMode());break}case s.TEMPLATE:{Ce(e,t);break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TBODY:case s.TD:case s.TFOOT:case s.TH:case s.THEAD:case s.TR:break;default:Ze(e,t)}}function Ze(e,t){let u=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,It(e,t),e.fosterParentingEnabled=u}function Rs(e,t){e.pendingCharacterTokens.push(t)}function Os(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Me(e,t){let u=0;if(e.hasNonWhitespacePendingCharacterToken)for(;u<e.pendingCharacterTokens.length;u++)Ze(e,e.pendingCharacterTokens[u]);else for(;u<e.pendingCharacterTokens.length;u++)e._insertCharacters(e.pendingCharacterTokens[u]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}var Ls=new Set([s.CAPTION,s.COL,s.COLGROUP,s.TBODY,s.TD,s.TFOOT,s.TH,s.THEAD,s.TR]);function ec(e,t){let u=t.tagID;Ls.has(u)?e.openElements.hasInTableScope(s.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=l.IN_TABLE,Se(e,t)):P(e,t)}function tc(e,t){let u=t.tagID;switch(u){case s.CAPTION:case s.TABLE:{e.openElements.hasInTableScope(s.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=l.IN_TABLE,u===s.TABLE&&We(e,t));break}case s.BODY:case s.COL:case s.COLGROUP:case s.HTML:case s.TBODY:case s.TD:case s.TFOOT:case s.TH:case s.THEAD:case s.TR:break;default:Bt(e,t)}}function gu(e,t){switch(t.tagID){case s.HTML:{P(e,t);break}case s.COL:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case s.TEMPLATE:{j(e,t);break}default:mt(e,t)}}function uc(e,t){switch(t.tagID){case s.COLGROUP:{e.openElements.currentTagId===s.COLGROUP&&(e.openElements.pop(),e.insertionMode=l.IN_TABLE);break}case s.TEMPLATE:{Ce(e,t);break}case s.COL:break;default:mt(e,t)}}function mt(e,t){e.openElements.currentTagId===s.COLGROUP&&(e.openElements.pop(),e.insertionMode=l.IN_TABLE,e._processToken(t))}function St(e,t){switch(t.tagID){case s.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,T.HTML),e.insertionMode=l.IN_ROW;break}case s.TH:case s.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(A.TR,s.TR),e.insertionMode=l.IN_ROW,Ft(e,t);break}case s.CAPTION:case s.COL:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE,Se(e,t));break}default:Se(e,t)}}function zt(e,t){let u=t.tagID;switch(t.tagID){case s.TBODY:case s.TFOOT:case s.THEAD:{e.openElements.hasInTableScope(u)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE);break}case s.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE,We(e,t));break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TD:case s.TH:case s.TR:break;default:We(e,t)}}function Ft(e,t){switch(t.tagID){case s.TH:case s.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,T.HTML),e.insertionMode=l.IN_CELL,e.activeFormattingElements.insertMarker();break}case s.CAPTION:case s.COL:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:case s.TR:{e.openElements.hasInTableScope(s.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE_BODY,St(e,t));break}default:Se(e,t)}}function ks(e,t){switch(t.tagID){case s.TR:{e.openElements.hasInTableScope(s.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE_BODY);break}case s.TABLE:{e.openElements.hasInTableScope(s.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE_BODY,zt(e,t));break}case s.TBODY:case s.TFOOT:case s.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(s.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=l.IN_TABLE_BODY,zt(e,t));break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TD:case s.TH:break;default:We(e,t)}}function rc(e,t){let u=t.tagID;Ls.has(u)?(e.openElements.hasInTableScope(s.TD)||e.openElements.hasInTableScope(s.TH))&&(e._closeTableCell(),Ft(e,t)):P(e,t)}function sc(e,t){let u=t.tagID;switch(u){case s.TD:case s.TH:{e.openElements.hasInTableScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=l.IN_ROW);break}case s.TABLE:case s.TBODY:case s.TFOOT:case s.THEAD:case s.TR:{e.openElements.hasInTableScope(u)&&(e._closeTableCell(),ks(e,t));break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:break;default:Bt(e,t)}}function xs(e,t){switch(t.tagID){case s.HTML:{P(e,t);break}case s.OPTION:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e._insertElement(t,T.HTML);break}case s.OPTGROUP:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e.openElements.currentTagId===s.OPTGROUP&&e.openElements.pop(),e._insertElement(t,T.HTML);break}case s.INPUT:case s.KEYGEN:case s.TEXTAREA:case s.SELECT:{e.openElements.hasInSelectScope(s.SELECT)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),t.tagID!==s.SELECT&&e._processStartTag(t));break}case s.SCRIPT:case s.TEMPLATE:{j(e,t);break}}}function Ms(e,t){switch(t.tagID){case s.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===s.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===s.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===s.OPTGROUP&&e.openElements.pop();break}case s.OPTION:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop();break}case s.SELECT:{e.openElements.hasInSelectScope(s.SELECT)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode());break}case s.TEMPLATE:{Ce(e,t);break}}}function ac(e,t){let u=t.tagID;u===s.CAPTION||u===s.TABLE||u===s.TBODY||u===s.TFOOT||u===s.THEAD||u===s.TR||u===s.TD||u===s.TH?(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),e._processStartTag(t)):xs(e,t)}function nc(e,t){let u=t.tagID;u===s.CAPTION||u===s.TABLE||u===s.TBODY||u===s.TFOOT||u===s.THEAD||u===s.TR||u===s.TD||u===s.TH?e.openElements.hasInTableScope(u)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Ms(e,t)}function ic(e,t){switch(t.tagID){case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:case s.NOFRAMES:case s.SCRIPT:case s.STYLE:case s.TEMPLATE:case s.TITLE:{j(e,t);break}case s.CAPTION:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:{e.tmplInsertionModeStack[0]=l.IN_TABLE,e.insertionMode=l.IN_TABLE,Se(e,t);break}case s.COL:{e.tmplInsertionModeStack[0]=l.IN_COLUMN_GROUP,e.insertionMode=l.IN_COLUMN_GROUP,gu(e,t);break}case s.TR:{e.tmplInsertionModeStack[0]=l.IN_TABLE_BODY,e.insertionMode=l.IN_TABLE_BODY,St(e,t);break}case s.TD:case s.TH:{e.tmplInsertionModeStack[0]=l.IN_ROW,e.insertionMode=l.IN_ROW,Ft(e,t);break}default:e.tmplInsertionModeStack[0]=l.IN_BODY,e.insertionMode=l.IN_BODY,P(e,t)}}function oc(e,t){t.tagID===s.TEMPLATE&&Ce(e,t)}function ys(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(s.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Nu(e,t)}function cc(e,t){t.tagID===s.HTML?P(e,t):Ct(e,t)}function Ps(e,t){var u;if(t.tagID===s.HTML){if(e.fragmentContext||(e.insertionMode=l.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===s.HTML){e._setEndLocation(e.openElements.items[0],t);let r=e.openElements.items[1];r&&!(!((u=e.treeAdapter.getNodeSourceCodeLocation(r))===null||u===void 0)&&u.endTag)&&e._setEndLocation(r,t)}}else Ct(e,t)}function Ct(e,t){e.insertionMode=l.IN_BODY,It(e,t)}function lc(e,t){switch(t.tagID){case s.HTML:{P(e,t);break}case s.FRAMESET:{e._insertElement(t,T.HTML);break}case s.FRAME:{e._appendElement(t,T.HTML),t.ackSelfClosing=!0;break}case s.NOFRAMES:{j(e,t);break}}}function Ec(e,t){t.tagID===s.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==s.FRAMESET&&(e.insertionMode=l.AFTER_FRAMESET))}function hc(e,t){switch(t.tagID){case s.HTML:{P(e,t);break}case s.NOFRAMES:{j(e,t);break}}}function Ac(e,t){t.tagID===s.HTML&&(e.insertionMode=l.AFTER_AFTER_FRAMESET)}function dc(e,t){t.tagID===s.HTML?P(e,t):ot(e,t)}function ot(e,t){e.insertionMode=l.IN_BODY,It(e,t)}function Tc(e,t){switch(t.tagID){case s.HTML:{P(e,t);break}case s.NOFRAMES:{j(e,t);break}}}function pc(e,t){t.chars=O,e._insertCharacters(t)}function mc(e,t){e._insertCharacters(t),e.framesetOk=!1}function vs(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==T.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Cc(e,t){if(k0(t))vs(e),e._startTagOutsideForeignContent(t);else{let u=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(u);r===T.MATHML?fs(t):r===T.SVG&&(x0(t),Ds(t)),Du(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function fc(e,t){if(t.tagID===s.P||t.tagID===s.BR){vs(e),e._endTagOutsideForeignContent(t);return}for(let u=e.openElements.stackTop;u>0;u--){let r=e.openElements.items[u];if(e.treeAdapter.getNamespaceURI(r)===T.HTML){e._endTagOutsideForeignContent(t);break}let a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(u);break}}}var Dc=new Set([A.AREA,A.BASE,A.BASEFONT,A.BGSOUND,A.BR,A.COL,A.EMBED,A.FRAME,A.HR,A.IMG,A.INPUT,A.KEYGEN,A.LINK,A.META,A.PARAM,A.SOURCE,A.TRACK,A.WBR]);function _c(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===T.HTML&&Dc.has(t.treeAdapter.getTagName(e))}var Nc={treeAdapter:Ee,scriptingEnabled:!0};function gc(e,t){let u={...Nc,...t};return Us(e,u)}function Ic(e,t){let u="",r=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===A.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===T.HTML?t.treeAdapter.getTemplateContent(e):e,a=t.treeAdapter.getChildNodes(r);if(a)for(let n of a)u+=Us(n,t);return u}function Us(e,t){return t.treeAdapter.isElementNode(e)?Bc(e,t):t.treeAdapter.isTextNode(e)?Fc(e,t):t.treeAdapter.isCommentNode(e)?bc(e,t):t.treeAdapter.isDocumentTypeNode(e)?Rc(e,t):""}function Bc(e,t){let u=t.treeAdapter.getTagName(e);return`<${u}${Sc(e,t)}>${_c(e,t)?"":`${Ic(e,t)}</${u}>`}`}function Sc(e,{treeAdapter:t}){let u="";for(let r of t.getAttrList(e)){if(u+=" ",!r.namespace)u+=r.name;else switch(r.namespace){case T.XML:{u+=`xml:${r.name}`;break}case T.XMLNS:{r.name!=="xmlns"&&(u+="xmlns:"),u+=r.name;break}case T.XLINK:{u+=`xlink:${r.name}`;break}default:u+=`${r.prefix}:${r.name}`}u+=`="${Cr(r.value)}"`}return u}function Fc(e,t){let{treeAdapter:u}=t,r=u.getTextNodeContent(e),a=u.getParentNode(e),n=a&&u.isElementNode(a)&&u.getTagName(a);return n&&u.getNamespaceURI(a)===T.HTML&&Es(n,t.scriptingEnabled)?r:fr(r)}function bc(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function Rc(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function Oc(e,t){return Ns.parse(e,t)}function Lc(e,t,u){typeof e=="string"&&(u=t,t=e,e=null);let r=Ns.getFragmentParser(e,u);return r.tokenizer.write(t,!0),r.getFragment()}function er(e){return new Ye(e)}function tr(e){let t=e.includes('"')?"'":'"';return t+e+t}function kc(e,t,u){let r="!DOCTYPE ";return e&&(r+=e),t?r+=` PUBLIC ${tr(t)}`:u&&(r+=" SYSTEM"),u&&(r+=` ${tr(u)}`),r}var Ne={isCommentNode:Dt,isElementNode:B,isTextNode:z,createDocument(){let e=new he([]);return e["x-mode"]=cs.DOCUMENT_MODE.NO_QUIRKS,e},createDocumentFragment(){return new he([])},createElement(e,t,u){let r=Object.create(null),a=Object.create(null),n=Object.create(null);for(let E=0;E<u.length;E++){let h=u[E].name;r[h]=u[E].value,a[h]=u[E].namespace,n[h]=u[E].prefix}let o=new su(e,r,[]);return o.namespace=t,o["x-attribsNamespace"]=a,o["x-attribsPrefix"]=n,o},createCommentNode(e){return new tu(e)},appendChild(e,t){let u=e.children[e.children.length-1];u&&(u.next=t,t.prev=u),e.children.push(t),t.parent=e},insertBefore(e,t,u){let r=e.children.indexOf(u),{prev:a}=u;a&&(a.next=t,t.prev=a),u.prev=t,t.next=u,e.children.splice(r,0,t),t.parent=e},setTemplateContent(e,t){Ne.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,u,r){let a=kc(t,u,r),n=e.children.find(o=>Ht(o)&&o.name==="!doctype");n?n.data=a??null:(n=new uu("!doctype",a),Ne.appendChild(e,n)),n["x-name"]=t??void 0,n["x-publicId"]=u??void 0,n["x-systemId"]=r??void 0},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){let t=e.parent.children.indexOf(e),{prev:u,next:r}=e;e.prev=null,e.next=null,u&&(u.next=r),r&&(r.prev=u),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){let u=e.children[e.children.length-1];u&&z(u)?u.data+=t:Ne.appendChild(e,er(t))},insertTextBefore(e,t,u){let r=e.children[e.children.indexOf(u)-1];r&&z(r)?r.data+=t:Ne.insertBefore(e,er(t),u)},adoptAttributes(e,t){for(let u=0;u<t.length;u++){let r=t[u].name;typeof e.attribs[r]>"u"&&(e.attribs[r]=t[u].value,e["x-attribsNamespace"][r]=t[u].namespace,e["x-attribsPrefix"][r]=t[u].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return Ht(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};function xc(e,t,u,r){let a={scriptingEnabled:typeof t.scriptingEnabled=="boolean"?t.scriptingEnabled:!0,treeAdapter:Ne,sourceCodeLocationInfo:t.sourceCodeLocationInfo};return u?Oc(e,a):Lc(r,e,a)}var Mc={treeAdapter:Ne};function yc(e){let t="length"in e?e:[e];for(let r=0;r<t.length;r+=1){let a=t[r];pe(a)&&Array.prototype.splice.call(t,r,1,...a.children)}let u="";for(let r=0;r<t.length;r+=1){let a=t[r];u+=gc(a,Mc)}return u}var _;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(_||(_={}));var p;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"})(p||(p={}));function J(e){return e===_.Space||e===_.NewLine||e===_.Tab||e===_.FormFeed||e===_.CarriageReturn}function nt(e){return e===_.Slash||e===_.Gt||J(e)}function ur(e){return e>=_.Zero&&e<=_.Nine}function Pc(e){return e>=_.LowerA&&e<=_.LowerZ||e>=_.UpperA&&e<=_.UpperZ}function vc(e){return e>=_.UpperA&&e<=_.UpperF||e>=_.LowerA&&e<=_.LowerF}var $;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})($||($={}));var H={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},Uc=class{constructor({xmlMode:e=!1,decodeEntities:t=!0},u){this.cbs=u,this.state=p.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=p.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=t,this.entityTrie=e?Ar:ee}reset(){this.state=p.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=p.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(e){e===_.Lt||!this.decodeEntities&&this.fastForwardTo(_.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=p.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===_.Amp&&(this.state=p.BeforeEntity)}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?nt(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=p.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===_.Gt||J(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let u=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=u}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===H.TitleEnd?this.decodeEntities&&e===_.Amp&&(this.state=p.BeforeEntity):this.fastForwardTo(_.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===_.Lt)}stateCDATASequence(e){e===H.Cdata[this.sequenceIndex]?++this.sequenceIndex===H.Cdata.length&&(this.state=p.InCommentLike,this.currentSequence=H.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=p.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===H.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=p.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!nt(e):Pc(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=p.SpecialStartSequence}stateBeforeTagName(e){if(e===_.ExclamationMark)this.state=p.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===_.Questionmark)this.state=p.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){let t=e|32;this.sectionStart=this.index,!this.xmlMode&&t===H.TitleEnd[2]?this.startSpecial(H.TitleEnd,3):this.state=!this.xmlMode&&t===H.ScriptEnd[2]?p.BeforeSpecialS:p.InTagName}else e===_.Slash?this.state=p.BeforeClosingTagName:(this.state=p.Text,this.stateText(e))}stateInTagName(e){nt(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=p.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){J(e)||(e===_.Gt?this.state=p.Text:(this.state=this.isTagStartChar(e)?p.InClosingTagName:p.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===_.Gt||J(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=p.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===_.Gt||this.fastForwardTo(_.Gt))&&(this.state=p.Text,this.baseState=p.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===_.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=p.InSpecialTag,this.sequenceIndex=0):this.state=p.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===_.Slash?this.state=p.InSelfClosingTag:J(e)||(this.state=p.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===_.Gt?(this.cbs.onselfclosingtag(this.index),this.state=p.Text,this.baseState=p.Text,this.sectionStart=this.index+1,this.isSpecial=!1):J(e)||(this.state=p.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===_.Eq||nt(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=p.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===_.Eq?this.state=p.BeforeAttributeValue:e===_.Slash||e===_.Gt?(this.cbs.onattribend($.NoValue,this.index),this.state=p.BeforeAttributeName,this.stateBeforeAttributeName(e)):J(e)||(this.cbs.onattribend($.NoValue,this.index),this.state=p.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===_.DoubleQuote?(this.state=p.InAttributeValueDq,this.sectionStart=this.index+1):e===_.SingleQuote?(this.state=p.InAttributeValueSq,this.sectionStart=this.index+1):J(e)||(this.sectionStart=this.index,this.state=p.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===_.DoubleQuote?$.Double:$.Single,this.index),this.state=p.BeforeAttributeName):this.decodeEntities&&e===_.Amp&&(this.baseState=this.state,this.state=p.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,_.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,_.SingleQuote)}stateInAttributeValueNoQuotes(e){J(e)||e===_.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend($.Unquoted,this.index),this.state=p.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===_.Amp&&(this.baseState=this.state,this.state=p.BeforeEntity)}stateBeforeDeclaration(e){e===_.OpeningSquareBracket?(this.state=p.CDATASequence,this.sequenceIndex=0):this.state=e===_.Dash?p.BeforeComment:p.InDeclaration}stateInDeclaration(e){(e===_.Gt||this.fastForwardTo(_.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=p.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===_.Gt||this.fastForwardTo(_.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=p.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===_.Dash?(this.state=p.InCommentLike,this.currentSequence=H.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=p.InDeclaration}stateInSpecialComment(e){(e===_.Gt||this.fastForwardTo(_.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=p.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){let t=e|32;t===H.ScriptEnd[3]?this.startSpecial(H.ScriptEnd,4):t===H.StyleEnd[3]?this.startSpecial(H.StyleEnd,4):(this.state=p.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===_.Number?this.state=p.BeforeNumericEntity:e===_.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=p.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=au(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];let t=this.trieCurrent&V.VALUE_LENGTH;if(t){let u=(t>>14)-1;if(!this.allowLegacyEntity()&&e!==_.Semi)this.trieIndex+=u;else{let r=this.index-this.entityExcess+1;r>this.sectionStart&&this.emitPartial(this.sectionStart,r),this.entityResult=this.trieIndex,this.trieIndex+=u,this.entityExcess=0,this.sectionStart=this.index+1,u===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult!==0)switch((this.entityTrie[this.entityResult]&V.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~V.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(e|32)===_.LowerX?(this.entityExcess++,this.state=p.InHexEntity):(this.state=p.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){let t=this.index-this.entityExcess-1;t+2+ +(this.state===p.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint(dr(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===_.Semi?this.emitNumericEntity(!0):ur(e)?(this.entityResult=this.entityResult*10+(e-_.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){e===_.Semi?this.emitNumericEntity(!0):ur(e)?(this.entityResult=this.entityResult*16+(e-_.Zero),this.entityExcess++):vc(e)?(this.entityResult=this.entityResult*16+((e|32)-_.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===p.Text||this.baseState===p.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===p.Text||this.state===p.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===p.InAttributeValueDq||this.state===p.InAttributeValueSq||this.state===p.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case p.Text:{this.stateText(e);break}case p.SpecialStartSequence:{this.stateSpecialStartSequence(e);break}case p.InSpecialTag:{this.stateInSpecialTag(e);break}case p.CDATASequence:{this.stateCDATASequence(e);break}case p.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(e);break}case p.InAttributeName:{this.stateInAttributeName(e);break}case p.InCommentLike:{this.stateInCommentLike(e);break}case p.InSpecialComment:{this.stateInSpecialComment(e);break}case p.BeforeAttributeName:{this.stateBeforeAttributeName(e);break}case p.InTagName:{this.stateInTagName(e);break}case p.InClosingTagName:{this.stateInClosingTagName(e);break}case p.BeforeTagName:{this.stateBeforeTagName(e);break}case p.AfterAttributeName:{this.stateAfterAttributeName(e);break}case p.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(e);break}case p.BeforeAttributeValue:{this.stateBeforeAttributeValue(e);break}case p.BeforeClosingTagName:{this.stateBeforeClosingTagName(e);break}case p.AfterClosingTagName:{this.stateAfterClosingTagName(e);break}case p.BeforeSpecialS:{this.stateBeforeSpecialS(e);break}case p.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(e);break}case p.InSelfClosingTag:{this.stateInSelfClosingTag(e);break}case p.InDeclaration:{this.stateInDeclaration(e);break}case p.BeforeDeclaration:{this.stateBeforeDeclaration(e);break}case p.BeforeComment:{this.stateBeforeComment(e);break}case p.InProcessingInstruction:{this.stateInProcessingInstruction(e);break}case p.InNamedEntity:{this.stateInNamedEntity(e);break}case p.BeforeEntity:{this.stateBeforeEntity(e);break}case p.InHexEntity:{this.stateInHexEntity(e);break}case p.InNumericEntity:{this.stateInNumericEntity(e);break}default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()}finish(){this.state===p.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length+this.offset;this.state===p.InCommentLike?this.currentSequence===H.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===p.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===p.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===p.InTagName||this.state===p.BeforeAttributeName||this.state===p.BeforeAttributeValue||this.state===p.AfterAttributeName||this.state===p.InAttributeName||this.state===p.InAttributeValueSq||this.state===p.InAttributeValueDq||this.state===p.InAttributeValueNq||this.state===p.InClosingTagName||this.cbs.ontext(this.sectionStart,e)}emitPartial(e,t){this.baseState!==p.Text&&this.baseState!==p.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)}emitCodePoint(e){this.baseState!==p.Text&&this.baseState!==p.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)}},_e=new Set(["input","option","optgroup","select","button","datalist","textarea"]),R=new Set(["p"]),rr=new Set(["thead","tbody"]),sr=new Set(["dd","dt"]),ar=new Set(["rt","rp"]),Hc=new Map([["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",R],["h1",R],["h2",R],["h3",R],["h4",R],["h5",R],["h6",R],["select",_e],["input",_e],["output",_e],["button",_e],["datalist",_e],["textarea",_e],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",sr],["dt",sr],["address",R],["article",R],["aside",R],["blockquote",R],["details",R],["div",R],["dl",R],["fieldset",R],["figcaption",R],["figure",R],["footer",R],["form",R],["header",R],["hr",R],["main",R],["nav",R],["ol",R],["pre",R],["section",R],["table",R],["ul",R],["rt",ar],["rp",ar],["tbody",rr],["tfoot",rr]]),wc=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),nr=new Set(["math","svg"]),ir=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Gc=/\s|\//,qc=class{constructor(e,t={}){var u,r,a,n,o;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(u=t.lowerCaseTags)!==null&&u!==void 0?u:!t.xmlMode,this.lowerCaseAttributeNames=(r=t.lowerCaseAttributeNames)!==null&&r!==void 0?r:!t.xmlMode,this.tokenizer=new((a=t.Tokenizer)!==null&&a!==void 0?a:Uc)(this.options,this),(o=(n=this.cbs).onparserinit)===null||o===void 0||o.call(n,this)}ontext(e,t){var u,r;let a=this.getSlice(e,t);this.endIndex=t-1,(r=(u=this.cbs).ontext)===null||r===void 0||r.call(u,a),this.startIndex=t}ontextentity(e){var t,u;let r=this.tokenizer.getSectionStart();this.endIndex=r-1,(u=(t=this.cbs).ontext)===null||u===void 0||u.call(t,wt(e)),this.startIndex=r}isVoidElement(e){return!this.options.xmlMode&&wc.has(e)}onopentagname(e,t){this.endIndex=t;let u=this.getSlice(e,t);this.lowerCaseTagNames&&(u=u.toLowerCase()),this.emitOpenTag(u)}emitOpenTag(e){var t,u,r,a;this.openTagStart=this.startIndex,this.tagname=e;let n=!this.options.xmlMode&&Hc.get(e);if(n)for(;this.stack.length>0&&n.has(this.stack[this.stack.length-1]);){let o=this.stack.pop();(u=(t=this.cbs).onclosetag)===null||u===void 0||u.call(t,o,!0)}this.isVoidElement(e)||(this.stack.push(e),nr.has(e)?this.foreignContext.push(!0):ir.has(e)&&this.foreignContext.push(!1)),(a=(r=this.cbs).onopentagname)===null||a===void 0||a.call(r,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,u;this.startIndex=this.openTagStart,this.attribs&&((u=(t=this.cbs).onopentag)===null||u===void 0||u.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var u,r,a,n,o,E;this.endIndex=t;let h=this.getSlice(e,t);if(this.lowerCaseTagNames&&(h=h.toLowerCase()),(nr.has(h)||ir.has(h))&&this.foreignContext.pop(),this.isVoidElement(h))!this.options.xmlMode&&h==="br"&&((r=(u=this.cbs).onopentagname)===null||r===void 0||r.call(u,"br"),(n=(a=this.cbs).onopentag)===null||n===void 0||n.call(a,"br",{},!0),(E=(o=this.cbs).onclosetag)===null||E===void 0||E.call(o,"br",!1));else{let m=this.stack.lastIndexOf(h);if(m!==-1)if(this.cbs.onclosetag){let f=this.stack.length-m;for(;f--;)this.cbs.onclosetag(this.stack.pop(),f!==0)}else this.stack.length=m;else!this.options.xmlMode&&h==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,u;let r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&((u=(t=this.cbs).onclosetag)===null||u===void 0||u.call(t,r,!e),this.stack.pop())}onattribname(e,t){this.startIndex=e;let u=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?u.toLowerCase():u}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=wt(e)}onattribend(e,t){var u,r;this.endIndex=t,(r=(u=this.cbs).onattribute)===null||r===void 0||r.call(u,this.attribname,this.attribvalue,e===$.Double?'"':e===$.Single?"'":e===$.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){let t=e.search(Gc),u=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(u=u.toLowerCase()),u}ondeclaration(e,t){this.endIndex=t;let u=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let r=this.getInstructionName(u);this.cbs.onprocessinginstruction(`!${r}`,`!${u}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;let u=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){let r=this.getInstructionName(u);this.cbs.onprocessinginstruction(`?${r}`,`?${u}`)}this.startIndex=t+1}oncomment(e,t,u){var r,a,n,o;this.endIndex=t,(a=(r=this.cbs).oncomment)===null||a===void 0||a.call(r,this.getSlice(e,t-u)),(o=(n=this.cbs).oncommentend)===null||o===void 0||o.call(n),this.startIndex=t+1}oncdata(e,t,u){var r,a,n,o,E,h,m,f,D,N;this.endIndex=t;let g=this.getSlice(e,t-u);this.options.xmlMode||this.options.recognizeCDATA?((a=(r=this.cbs).oncdatastart)===null||a===void 0||a.call(r),(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,g),(h=(E=this.cbs).oncdataend)===null||h===void 0||h.call(E)):((f=(m=this.cbs).oncomment)===null||f===void 0||f.call(m,`[CDATA[${g}]]`),(N=(D=this.cbs).oncommentend)===null||N===void 0||N.call(D)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let u=this.stack.length;u>0;this.cbs.onclosetag(this.stack[--u],!0));}(t=(e=this.cbs).onend)===null||t===void 0||t.call(e)}reset(){var e,t,u,r;(t=(e=this.cbs).onreset)===null||t===void 0||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(r=(u=this.cbs).onparserinit)===null||r===void 0||r.call(u,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let u=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),u+=this.buffers[0].slice(0,t-this.bufferOffset);return u}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,u;if(this.ended){(u=(t=this.cbs).onerror)===null||u===void 0||u.call(t,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var t,u;if(this.ended){(u=(t=this.cbs).onerror)===null||u===void 0||u.call(t,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}};function Yc(e,t){let u=new na(void 0,t);return new qc(u,t).end(e),u.root}var Vc=Bi((e,t,u,r)=>t.xmlMode||t._useHtmlParser2?Yc(e,t):xc(e,t,u,r)),Hs=Zi(Vc,(e,t)=>t.xmlMode||t._useHtmlParser2?Dr(e,t):yc(e));Hs([]);var Qc=e=>e.reduce((t,u)=>({...t,[u]:`{{ args.${u} }}`}),{}),Wc=(e,{component:t,argTypes:u,parameters:r})=>{let a=Hs(e,{xml:{xmlMode:!0,lowerCaseAttributeNames:!1,lowerCaseTags:!1,decodeEntities:!1}},!1),n=(t==null?void 0:t.__name)||t.name,o=a(n),E=Object.keys(u).filter(D=>{var N;return((N=u[D].table)==null?void 0:N.category)===cr}),h=Object.entries(r.slots||{}).reduce((D,[N,g])=>({...D,[N]:typeof g=="object"&&g.template!==void 0?g.template:`{{ args.${N} }}`}),{}),m=Kc(e),f={...Qc(E),...h};return o.contents().filter((D,N)=>N.type==="tag"&&N.name==="template"||N.type==="text").remove(),Object.entries(f).forEach(([D,N])=>{let g=Xc(N,m);o.append(or(g,D))}),a.html({lowerCaseAttributeNames:!1,lowerCaseTags:!1,xmlMode:!1,recognizeSelfClosing:!0})},Xc=(e,t)=>{let u=/\{\{\s*'(.*)'\s*\}\}/gmiu,r=/:(.*)="'(.*)'"/gmiu;return Object.entries(t).reduce((a,[n,o])=>a.replaceAll(`args.${n}`,`'${o}'`),e).replace(/\{\{(\s*)args.(.*)\}\}/gmiu,"").replaceAll(r,'$1="$2"').replaceAll(u,"$1")},Kc=e=>{var r,a;let t=/<template #(.*)>"(.*)"<\/template>/gmiu,u=[...e.matchAll(t)].reduce((n,[o,E,h])=>({...n,[E]:h}),{});if(u.default===void 0){let n=e.replaceAll(t,""),o=/<template>(\n*)(\s*)<(.*)>(\n*)(\s*)(.*)"(.*)"/gmiu,E=[...n.matchAll(o)],h=(a=E[0])==null?void 0:a[((r=E[0])==null?void 0:r.length)-1];if(h!==void 0)return{...u,default:h}}return u},jc=(e,{component:t,parameters:u})=>{let r=Object.keys(u.slots||{}).reduce((n,o)=>({...n,[o]:String}),{}),a=t;return a&&(a.props={...a.props,...r}),{components:{story:e},setup(n){return{story:e,props:n}},template:'<story v-bind="props" />'}},$c=e=>{if(!e.parameters.slots)return e.argTypes;let t=e.parameters.slots,u=Object.keys(t).reduce((r,a)=>{var E,h,m,f;let n=t[a],o={...e.argTypes[a],name:a,description:typeof n=="string"?n:n.description,table:{...(E=e.argTypes[a])==null?void 0:E.table,category:cr,defaultValue:null,jsDocTags:void 0,type:{...(m=(h=e.argTypes[a])==null?void 0:h.table)==null?void 0:m.type,detail:void 0,summary:"html"}},type:{...(f=e.argTypes[a])==null?void 0:f.type,required:void 0,name:"string"}};return{...r,[a]:o}},{});return{...e.argTypes,...u}},zc=e=>e.initialArgs,Zc={decorators:[jc],render:Ks(),argTypesEnhancers:[$c],argsEnhancers:[zc],parameters:{docs:{source:{language:"html",transform:Wc}}}},el=Zc;export{el as default};
|