tinker-wallpaper 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/preload/index.js +5 -10
- package/dist/renderer/assets/app-AueiGhHn.css +1 -0
- package/dist/renderer/assets/app-DKKCyIpN.js +168 -0
- package/dist/renderer/index.html +2 -2
- package/package.json +2 -3
- package/dist/renderer/assets/app-D64CWda5.js +0 -168
- package/dist/renderer/assets/app-h-xIjsGZ.css +0 -1
package/dist/preload/index.js
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
"use strict";const Gu=require("electron"),hs=require("node:fs"),br=require("node:path"),Ku=require("node:os"),qu=require("node:child_process"),Rs=require("url"),Os=require("events"),Bs=require("util"),ct=require("stream"),ji=require("fs"),pr=require("http"),Zi=require("https"),Ju=require("dns"),ju=require("os"),Zu=require("buffer"),Vu=require("zlib"),Qr=require("http2"),Vi=require("tls"),Xi=require("net");var z;(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"})(z||(z={}));function Xu(e){return e.type===z.Tag||e.type===z.Script||e.type===z.Style}const Yr=z.Root,zi=z.Text,zu=z.Directive,$i=z.Comment,$u=z.Script,eo=z.Style,Tr=z.Tag,to=z.CDATA,so=z.Doctype;class ea{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return vt(this,t)}}class Wr extends ea{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class Ht extends Wr{constructor(){super(...arguments),this.type=z.Text}get nodeType(){return 3}}class Gr extends Wr{constructor(){super(...arguments),this.type=z.Comment}get nodeType(){return 8}}class Kr extends Wr{constructor(t,s){super(s),this.name=t,this.type=z.Directive}get nodeType(){return 1}}class qr extends ea{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class ta extends qr{constructor(){super(...arguments),this.type=z.CDATA}get nodeType(){return 4}}class ut extends qr{constructor(){super(...arguments),this.type=z.Root}get nodeType(){return 9}}class Jr extends qr{constructor(t,s,r=[],n=t==="script"?z.Script:t==="style"?z.Style:z.Tag){super(r),this.name=t,this.attribs=s,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var s,r;return{name:t,value:this.attribs[t],namespace:(s=this["x-attribsNamespace"])===null||s===void 0?void 0:s[t],prefix:(r=this["x-attribsPrefix"])===null||r===void 0?void 0:r[t]}})}}function W(e){return Xu(e)}function ws(e){return e.type===z.CDATA}function ve(e){return e.type===z.Text}function Ls(e){return e.type===z.Comment}function _r(e){return e.type===z.Directive}function et(e){return e.type===z.Root}function he(e){return Object.prototype.hasOwnProperty.call(e,"children")}function vt(e,t=!1){let s;if(ve(e))s=new Ht(e.data);else if(Ls(e))s=new Gr(e.data);else if(W(e)){const r=t?Vs(e.children):[],n=new Jr(e.name,{...e.attribs},r);r.forEach(a=>a.parent=n),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...e["x-attribsPrefix"]}),s=n}else if(ws(e)){const r=t?Vs(e.children):[],n=new ta(r);r.forEach(a=>a.parent=n),s=n}else if(et(e)){const r=t?Vs(e.children):[],n=new ut(r);r.forEach(a=>a.parent=n),e["x-mode"]&&(n["x-mode"]=e["x-mode"]),s=n}else if(_r(e)){const r=new Kr(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"]),s=r}else throw new Error(`Not implemented yet: ${e.type}`);return s.startIndex=e.startIndex,s.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(s.sourceCodeLocation=e.sourceCodeLocation),s}function Vs(e){const t=e.map(s=>vt(s,!0));for(let s=1;s<t.length;s++)t[s].prev=t[s-1],t[s-1].next=t[s];return t}const Hn={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class ro{constructor(t,s,r){this.dom=[],this.root=new ut(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof s=="function"&&(r=s,s=Hn),typeof t=="object"&&(s=t,t=void 0),this.callback=t??null,this.options=s??Hn,this.elementCB=r??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new ut(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(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,s){const r=this.options.xmlMode?z.Tag:void 0,n=new Jr(t,s,void 0,r);this.addNode(n),this.tagStack.push(n)}ontext(t){const{lastNode:s}=this;if(s&&s.type===z.Text)s.data+=t,this.options.withEndIndices&&(s.endIndex=this.parser.endIndex);else{const r=new Ht(t);this.addNode(r),this.lastNode=r}}oncomment(t){if(this.lastNode&&this.lastNode.type===z.Comment){this.lastNode.data+=t;return}const s=new Gr(t);this.addNode(s),this.lastNode=s}oncommentend(){this.lastNode=null}oncdatastart(){const t=new Ht(""),s=new ta([t]);this.addNode(s),t.parent=s,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,s){const r=new Kr(t,s);this.addNode(r)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){const s=this.tagStack[this.tagStack.length-1],r=s.children[s.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),s.children.push(t),r&&(t.prev=r,r.next=t),t.parent=s,this.lastNode=null}}const vn=/["&'<>$\x80-\uFFFF]/g,no=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),io=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 sa(e){let t="",s=0,r;for(;(r=vn.exec(e))!==null;){const n=r.index,a=e.charCodeAt(n),u=no.get(a);u!==void 0?(t+=e.substring(s,n)+u,s=n+1):(t+=`${e.substring(s,n)}&#x${io(e,n).toString(16)};`,s=vn.lastIndex+=+((a&64512)===55296))}return t+e.substr(s)}function ra(e,t){return function(r){let n,a=0,u="";for(;n=e.exec(r);)a!==n.index&&(u+=r.substring(a,n.index)),u+=t.get(n[0].charCodeAt(0)),a=n.index+1;return u+r.substring(a)}}const ao=ra(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),uo=ra(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),oo=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])),co=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])),Ao=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function ho(e){return e.replace(/"/g,""")}function lo(e,t){var s;if(!e)return;const r=((s=t.encodeEntities)!==null&&s!==void 0?s:t.decodeEntities)===!1?ho:t.xmlMode||t.encodeEntities!=="utf8"?sa:ao;return Object.keys(e).map(n=>{var a,u;const c=(a=e[n])!==null&&a!==void 0?a:"";return t.xmlMode==="foreign"&&(n=(u=co.get(n))!==null&&u!==void 0?u:n),!t.emptyAttrs&&!t.xmlMode&&c===""?n:`${n}="${r(c)}"`}).join(" ")}const Un=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function xs(e,t={}){const s="length"in e?e:[e];let r="";for(let n=0;n<s.length;n++)r+=fo(s[n],t);return r}function fo(e,t){switch(e.type){case Yr:return xs(e.children,t);case so:case zu:return bo(e);case $i:return _o(e);case to:return To(e);case $u:case eo:case Tr:return go(e,t);case zi:return po(e,t)}}const mo=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Eo=new Set(["svg","math"]);function go(e,t){var s;t.xmlMode==="foreign"&&(e.name=(s=oo.get(e.name))!==null&&s!==void 0?s:e.name,e.parent&&mo.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&Eo.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`;const n=lo(e.attribs,t);return n&&(r+=` ${n}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&Un.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=xs(e.children,t)),(t.xmlMode||!Un.has(e.name))&&(r+=`</${e.name}>`)),r}function bo(e){return`<${e.data}>`}function po(e,t){var s;let r=e.data||"";return((s=t.encodeEntities)!==null&&s!==void 0?s:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&Ao.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?sa(r):uo(r)),r}function To(e){return`<![CDATA[${e.children[0].data}]]>`}function _o(e){return`<!--${e.data}-->`}function na(e,t){return xs(e,t)}function Io(e,t){return he(e)?e.children.map(s=>na(s,t)).join(""):""}function ls(e){return Array.isArray(e)?e.map(ls).join(""):W(e)?e.name==="br"?`
|
|
2
|
-
`:ls(e.children):ws(e)?ls(e.children):ve(e)?e.data:""}function pt(e){return Array.isArray(e)?e.map(pt).join(""):he(e)&&!Ls(e)?pt(e.children):ve(e)?e.data:""}function gs(e){return Array.isArray(e)?e.map(gs).join(""):he(e)&&(e.type===z.Tag||ws(e))?gs(e.children):ve(e)?e.data:""}function Ps(e){return he(e)?e.children:[]}function ia(e){return e.parent||null}function aa(e){const t=ia(e);if(t!=null)return Ps(t);const s=[e];let{prev:r,next:n}=e;for(;r!=null;)s.unshift(r),{prev:r}=r;for(;n!=null;)s.push(n),{next:n}=n;return s}function Co(e,t){var s;return(s=e.attribs)===null||s===void 0?void 0:s[t]}function yo(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function So(e){return e.name}function jr(e){let{next:t}=e;for(;t!==null&&!W(t);)({next:t}=t);return t}function Zr(e){let{prev:t}=e;for(;t!==null&&!W(t);)({prev:t}=t);return t}function At(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,s=t.lastIndexOf(e);s>=0&&t.splice(s,1)}e.next=null,e.prev=null,e.parent=null}function No(e,t){const s=t.prev=e.prev;s&&(s.next=t);const r=t.next=e.next;r&&(r.prev=t);const n=t.parent=e.parent;if(n){const a=n.children;a[a.lastIndexOf(e)]=t,e.parent=null}}function Do(e,t){if(At(t),t.next=null,t.parent=e,e.children.push(t)>1){const s=e.children[e.children.length-2];s.next=t,t.prev=s}else t.prev=null}function Ro(e,t){At(t);const{parent:s}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=s,r){if(r.prev=t,s){const n=s.children;n.splice(n.lastIndexOf(r),0,t)}}else s&&s.children.push(t)}function Oo(e,t){if(At(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const s=e.children[1];s.prev=t,t.next=s}else t.next=null}function Bo(e,t){At(t);const{parent:s}=e;if(s){const r=s.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=s,t.prev=e.prev,t.next=e,e.prev=t}function jt(e,t,s=!0,r=1/0){return Vr(e,Array.isArray(t)?t:[t],s,r)}function Vr(e,t,s,r){const n=[],a=[Array.isArray(t)?t:[t]],u=[0];for(;;){if(u[0]>=a[0].length){if(u.length===1)return n;a.shift(),u.shift();continue}const c=a[0][u[0]++];if(e(c)&&(n.push(c),--r<=0))return n;s&&he(c)&&c.children.length>0&&(u.unshift(0),a.unshift(c.children))}}function wo(e,t){return t.find(e)}function Xr(e,t,s=!0){const r=Array.isArray(t)?t:[t];for(let n=0;n<r.length;n++){const a=r[n];if(W(a)&&e(a))return a;if(s&&he(a)&&a.children.length>0){const u=Xr(e,a.children,!0);if(u)return u}}return null}function ua(e,t){return(Array.isArray(t)?t:[t]).some(s=>W(s)&&e(s)||he(s)&&ua(e,s.children))}function Lo(e,t){const s=[],r=[Array.isArray(t)?t:[t]],n=[0];for(;;){if(n[0]>=r[0].length){if(r.length===1)return s;r.shift(),n.shift();continue}const a=r[0][n[0]++];W(a)&&e(a)&&s.push(a),he(a)&&a.children.length>0&&(n.unshift(0),r.unshift(a.children))}}const bs={tag_name(e){return typeof e=="function"?t=>W(t)&&e(t.name):e==="*"?W:t=>W(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=>ve(t)&&e(t.data):t=>ve(t)&&t.data===e}};function zr(e,t){return typeof t=="function"?s=>W(s)&&t(s.attribs[e]):s=>W(s)&&s.attribs[e]===t}function xo(e,t){return s=>e(s)||t(s)}function oa(e){const t=Object.keys(e).map(s=>{const r=e[s];return Object.prototype.hasOwnProperty.call(bs,s)?bs[s](r):zr(s,r)});return t.length===0?null:t.reduce(xo)}function Po(e,t){const s=oa(e);return s?s(t):!0}function ko(e,t,s,r=1/0){const n=oa(e);return n?jt(n,t,s,r):[]}function Fo(e,t,s=!0){return Array.isArray(t)||(t=[t]),Xr(zr("id",e),t,s)}function _t(e,t,s=!0,r=1/0){return jt(bs.tag_name(e),t,s,r)}function Mo(e,t,s=!0,r=1/0){return jt(zr("class",e),t,s,r)}function Ho(e,t,s=!0,r=1/0){return jt(bs.tag_type(e),t,s,r)}function vo(e){let t=e.length;for(;--t>=0;){const s=e[t];if(t>0&&e.lastIndexOf(s,t-1)>=0){e.splice(t,1);continue}for(let r=s.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var xe;(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"})(xe||(xe={}));function ca(e,t){const s=[],r=[];if(e===t)return 0;let n=he(e)?e:e.parent;for(;n;)s.unshift(n),n=n.parent;for(n=he(t)?t:t.parent;n;)r.unshift(n),n=n.parent;const a=Math.min(s.length,r.length);let u=0;for(;u<a&&s[u]===r[u];)u++;if(u===0)return xe.DISCONNECTED;const c=s[u-1],h=c.children,f=s[u],p=r[u];return h.indexOf(f)>h.indexOf(p)?c===t?xe.FOLLOWING|xe.CONTAINED_BY:xe.FOLLOWING:c===e?xe.PRECEDING|xe.CONTAINS:xe.PRECEDING}function It(e){return e=e.filter((t,s,r)=>!r.includes(t,s+1)),e.sort((t,s)=>{const r=ca(t,s);return r&xe.PRECEDING?-1:r&xe.FOLLOWING?1:0}),e}function Uo(e){const t=ps(Ko,e);return t?t.name==="feed"?Qo(t):Yo(t):null}function Qo(e){var t;const s=e.children,r={type:"atom",items:_t("entry",s).map(u=>{var c;const{children:h}=u,f={media:Aa(h)};Oe(f,"id","id",h),Oe(f,"title","title",h);const p=(c=ps("link",h))===null||c===void 0?void 0:c.attribs.href;p&&(f.link=p);const b=ze("summary",h)||ze("content",h);b&&(f.description=b);const A=ze("updated",h);return A&&(f.pubDate=new Date(A)),f})};Oe(r,"id","id",s),Oe(r,"title","title",s);const n=(t=ps("link",s))===null||t===void 0?void 0:t.attribs.href;n&&(r.link=n),Oe(r,"description","subtitle",s);const a=ze("updated",s);return a&&(r.updated=new Date(a)),Oe(r,"author","email",s,!0),r}function Yo(e){var t,s;const r=(s=(t=ps("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&s!==void 0?s:[],n={type:e.name.substr(0,3),id:"",items:_t("item",e.children).map(u=>{const{children:c}=u,h={media:Aa(c)};Oe(h,"id","guid",c),Oe(h,"title","title",c),Oe(h,"link","link",c),Oe(h,"description","description",c);const f=ze("pubDate",c)||ze("dc:date",c);return f&&(h.pubDate=new Date(f)),h})};Oe(n,"title","title",r),Oe(n,"link","link",r),Oe(n,"description","description",r);const a=ze("lastBuildDate",r);return a&&(n.updated=new Date(a)),Oe(n,"author","managingEditor",r,!0),n}const Wo=["url","type","lang"],Go=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Aa(e){return _t("media:content",e).map(t=>{const{attribs:s}=t,r={medium:s.medium,isDefault:!!s.isDefault};for(const n of Wo)s[n]&&(r[n]=s[n]);for(const n of Go)s[n]&&(r[n]=parseInt(s[n],10));return s.expression&&(r.expression=s.expression),r})}function ps(e,t){return _t(e,t,!0,1)[0]}function ze(e,t,s=!1){return pt(_t(e,t,s,1)).trim()}function Oe(e,t,s,r,n=!1){const a=ze(s,r,n);a&&(e[t]=a)}function Ko(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}const ks=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return xe},append:Ro,appendChild:Do,compareDocumentPosition:ca,existsOne:ua,filter:jt,find:Vr,findAll:Lo,findOne:Xr,findOneChild:wo,getAttributeValue:Co,getChildren:Ps,getElementById:Fo,getElements:ko,getElementsByClassName:Mo,getElementsByTagName:_t,getElementsByTagType:Ho,getFeed:Uo,getInnerHTML:Io,getName:So,getOuterHTML:na,getParent:ia,getSiblings:aa,getText:ls,hasAttrib:yo,hasChildren:he,innerText:gs,isCDATA:ws,isComment:Ls,isDocument:et,isTag:W,isText:ve,nextElementSibling:jr,prepend:Bo,prependChild:Oo,prevElementSibling:Zr,removeElement:At,removeSubsets:vo,replaceElement:No,testElement:Po,textContent:pt,uniqueSort:It},Symbol.toStringTag,{value:"Module"})),qo={_useHtmlParser2:!1};function Ir(e,t){if(!e)return t??qo;const s={_useHtmlParser2:!!e.xmlMode,...t,...e};return e.xml?(s._useHtmlParser2=!0,s.xmlMode=!0,e.xml!==!0&&Object.assign(s,e.xml)):e.xmlMode&&(s._useHtmlParser2=!0),s}function ha(e,t,s){return e?e(t??e._root.children,null,void 0,s).toString():""}function Jo(e,t){return typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function jo(e,t){const s=Jo(e)?(t=e,void 0):e,r={...this===null||this===void 0?void 0:this._options,...Ir(t)};return ha(this,s,r)}function Zo(e){const t={...this._options,xmlMode:!0};return ha(this,e,t)}function Ut(e){const t=e??(this?this.root():[]);let s="";for(let r=0;r<t.length;r++)s+=pt(t[r]);return s}function Vo(e,t,s=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(s=t);const r=this.load(e,this._options,!1);return s||r("script").remove(),[...r.root()[0].children]}function Xo(){return this(this._root)}function la(e,t){if(t===e)return!1;let s=t;for(;s&&s!==s.parent;)if(s=s.parent,s===e)return!0;return!1}function zo(e){return this.root().extract(e)}function $o(e,t){if(!Qn(e)||!Qn(t))return;let s=e.length;const r=+t.length;for(let n=0;n<r;n++)e[s++]=t[n];return e.length=s,e}function Qn(e){if(Array.isArray(e))return!0;if(typeof e!="object"||e===null||!("length"in e)||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}const ec=Object.freeze(Object.defineProperty({__proto__:null,contains:la,extract:zo,html:jo,merge:$o,parseHTML:Vo,root:Xo,text:Ut,xml:Zo},Symbol.toStringTag,{value:"Module"}));function qe(e){return e.cheerio!=null}function tc(e){return e.replace(/[._-](\w|$)/g,(t,s)=>s.toUpperCase())}function sc(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function ue(e,t){const s=e.length;for(let r=0;r<s;r++)t(e[r],r);return e}var it;(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"})(it||(it={}));function Cr(e){if(typeof e!="string")return!1;const t=e.indexOf("<");if(t===-1||t>e.length-3)return!1;const s=e.charCodeAt(t+1);return(s>=it.LowerA&&s<=it.LowerZ||s>=it.UpperA&&s<=it.UpperZ||s===it.Exclamation)&&e.includes(">",t+2)}var Xs;const rc=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]]),Yn=(Xs=String.fromCodePoint)!==null&&Xs!==void 0?Xs: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 nc(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=rc.get(e))!==null&&t!==void 0?t:e}function da(e){const t=typeof atob=="function"?atob(e):typeof Buffer.from=="function"?Buffer.from(e,"base64").toString("binary"):new Buffer(e,"base64").toString("binary"),s=t.length&-2,r=new Uint16Array(s/2);for(let n=0,a=0;n<s;n+=2){const u=t.charCodeAt(n),c=t.charCodeAt(n+1);r[a++]=u|c<<8}return r}const ic=da("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJle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AAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var Se;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.FLAG13=8192]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Se||(Se={}));var ae;(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"})(ae||(ae={}));const Wn=32;function yr(e){return e>=ae.ZERO&&e<=ae.NINE}function uc(e){return e>=ae.UPPER_A&&e<=ae.UPPER_F||e>=ae.LOWER_A&&e<=ae.LOWER_F}function oc(e){return e>=ae.UPPER_A&&e<=ae.UPPER_Z||e>=ae.LOWER_A&&e<=ae.LOWER_Z||yr(e)}function cc(e){return e===ae.EQUALS||oc(e)}var ge;(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"})(ge||(ge={}));var Me;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Me||(Me={}));let Ac=class{constructor(t,s,r){this.decodeTree=t,this.emitCodePoint=s,this.errors=r,this.state=ge.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Me.Strict,this.runConsumed=0}startEntity(t){this.decodeMode=t,this.state=ge.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,s){switch(this.state){case ge.EntityStart:return t.charCodeAt(s)===ae.NUM?(this.state=ge.NumericStart,this.consumed+=1,this.stateNumericStart(t,s+1)):(this.state=ge.NamedEntity,this.stateNamedEntity(t,s));case ge.NumericStart:return this.stateNumericStart(t,s);case ge.NumericDecimal:return this.stateNumericDecimal(t,s);case ge.NumericHex:return this.stateNumericHex(t,s);case ge.NamedEntity:return this.stateNamedEntity(t,s)}}stateNumericStart(t,s){return s>=t.length?-1:(t.charCodeAt(s)|Wn)===ae.LOWER_X?(this.state=ge.NumericHex,this.consumed+=1,this.stateNumericHex(t,s+1)):(this.state=ge.NumericDecimal,this.stateNumericDecimal(t,s))}stateNumericHex(t,s){for(;s<t.length;){const r=t.charCodeAt(s);if(yr(r)||uc(r)){const n=r<=ae.NINE?r-ae.ZERO:(r|Wn)-ae.LOWER_A+10;this.result=this.result*16+n,this.consumed++,s++}else return this.emitNumericEntity(r,3)}return-1}stateNumericDecimal(t,s){for(;s<t.length;){const r=t.charCodeAt(s);if(yr(r))this.result=this.result*10+(r-ae.ZERO),this.consumed++,s++;else return this.emitNumericEntity(r,2)}return-1}emitNumericEntity(t,s){var r;if(this.consumed<=s)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ae.SEMI)this.consumed+=1;else if(this.decodeMode===Me.Strict)return 0;return this.emitCodePoint(nc(this.result),this.consumed),this.errors&&(t!==ae.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,s){const{decodeTree:r}=this;let n=r[this.treeIndex],a=(n&Se.VALUE_LENGTH)>>14;for(;s<t.length;){if(a===0&&n&Se.FLAG13){const c=(n&Se.BRANCH_LENGTH)>>7;if(this.runConsumed===0){const h=n&Se.JUMP_TABLE;if(t.charCodeAt(s)!==h)return this.result===0?0:this.emitNotTerminatedNamedEntity();s++,this.excess++,this.runConsumed++}for(;this.runConsumed<c;){if(s>=t.length)return-1;const h=this.runConsumed-1,f=r[this.treeIndex+1+(h>>1)],p=h%2===0?f&255:f>>8&255;if(t.charCodeAt(s)!==p)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();s++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(c>>1),n=r[this.treeIndex],a=(n&Se.VALUE_LENGTH)>>14}if(s>=t.length)break;const u=t.charCodeAt(s);if(u===ae.SEMI&&a!==0&&n&Se.FLAG13)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);if(this.treeIndex=hc(r,n,this.treeIndex+Math.max(1,a),u),this.treeIndex<0)return this.result===0||this.decodeMode===Me.Attribute&&(a===0||cc(u))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],a=(n&Se.VALUE_LENGTH)>>14,a!==0){if(u===ae.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Me.Strict&&!(n&Se.FLAG13)&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}s++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var t;const{result:s,decodeTree:r}=this,n=(r[s]&Se.VALUE_LENGTH)>>14;return this.emitNamedEntityData(s,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,s,r){const{decodeTree:n}=this;return this.emitCodePoint(s===1?n[t]&~(Se.VALUE_LENGTH|Se.FLAG13):n[t+1],r),s===3&&this.emitCodePoint(n[t+2],r),r}end(){var t;switch(this.state){case ge.NamedEntity:return this.result!==0&&(this.decodeMode!==Me.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ge.NumericDecimal:return this.emitNumericEntity(0,2);case ge.NumericHex:return this.emitNumericEntity(0,3);case ge.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ge.EntityStart:return 0}}};function hc(e,t,s,r){const n=(t&Se.BRANCH_LENGTH)>>7,a=t&Se.JUMP_TABLE;if(n===0)return a!==0&&r===a?s:-1;if(a){const f=r-a;return f<0||f>=n?-1:e[s+f]-1}const u=n+1>>1;let c=0,h=n-1;for(;c<=h;){const f=c+h>>>1,p=f>>1,A=e[s+p]>>(f&1)*8&255;if(A<r)c=f+1;else if(A>r)h=f-1;else return e[s+u+f]}return-1}var U;(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"})(U||(U={}));var R;(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.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(R||(R={}));function Ye(e){return e===U.Space||e===U.NewLine||e===U.Tab||e===U.FormFeed||e===U.CarriageReturn}function is(e){return e===U.Slash||e===U.Gt||Ye(e)}function lc(e){return e>=U.LowerA&&e<=U.LowerZ||e>=U.UpperA&&e<=U.UpperZ}var He;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(He||(He={}));const de={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]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])};let dc=class{constructor({xmlMode:t=!1,decodeEntities:s=!0},r){this.cbs=r,this.state=R.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=R.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=s,this.entityDecoder=new Ac(t?ac:ic,(n,a)=>this.emitCodePoint(n,a))}reset(){this.state=R.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=R.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(t){t===U.Lt||!this.decodeEntities&&this.fastForwardTo(U.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=R.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===U.Amp&&this.startEntity()}stateSpecialStartSequence(t){const s=this.sequenceIndex===this.currentSequence.length;if(!(s?is(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!s){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=R.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===U.Gt||Ye(t)){const s=this.index-this.currentSequence.length;if(this.sectionStart<s){const r=this.index;this.index=s,this.cbs.ontext(this.sectionStart,s),this.index=r}this.isSpecial=!1,this.sectionStart=s+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===de.TitleEnd?this.decodeEntities&&t===U.Amp&&this.startEntity():this.fastForwardTo(U.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===U.Lt)}stateCDATASequence(t){t===de.Cdata[this.sequenceIndex]?++this.sequenceIndex===de.Cdata.length&&(this.state=R.InCommentLike,this.currentSequence=de.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=R.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===de.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=R.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!is(t):lc(t)}startSpecial(t,s){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=s,this.state=R.SpecialStartSequence}stateBeforeTagName(t){if(t===U.ExclamationMark)this.state=R.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===U.Questionmark)this.state=R.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const s=t|32;this.sectionStart=this.index,this.xmlMode?this.state=R.InTagName:s===de.ScriptEnd[2]?this.state=R.BeforeSpecialS:s===de.TitleEnd[2]||s===de.XmpEnd[2]?this.state=R.BeforeSpecialT:this.state=R.InTagName}else t===U.Slash?this.state=R.BeforeClosingTagName:(this.state=R.Text,this.stateText(t))}stateInTagName(t){is(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=R.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){Ye(t)||(t===U.Gt?this.state=R.Text:(this.state=this.isTagStartChar(t)?R.InClosingTagName:R.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===U.Gt||Ye(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=R.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===U.Gt||this.fastForwardTo(U.Gt))&&(this.state=R.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===U.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=R.InSpecialTag,this.sequenceIndex=0):this.state=R.Text,this.sectionStart=this.index+1):t===U.Slash?this.state=R.InSelfClosingTag:Ye(t)||(this.state=R.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===U.Gt?(this.cbs.onselfclosingtag(this.index),this.state=R.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Ye(t)||(this.state=R.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===U.Eq||is(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=R.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===U.Eq?this.state=R.BeforeAttributeValue:t===U.Slash||t===U.Gt?(this.cbs.onattribend(He.NoValue,this.sectionStart),this.sectionStart=-1,this.state=R.BeforeAttributeName,this.stateBeforeAttributeName(t)):Ye(t)||(this.cbs.onattribend(He.NoValue,this.sectionStart),this.state=R.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===U.DoubleQuote?(this.state=R.InAttributeValueDq,this.sectionStart=this.index+1):t===U.SingleQuote?(this.state=R.InAttributeValueSq,this.sectionStart=this.index+1):Ye(t)||(this.sectionStart=this.index,this.state=R.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,s){t===s||!this.decodeEntities&&this.fastForwardTo(s)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(s===U.DoubleQuote?He.Double:He.Single,this.index+1),this.state=R.BeforeAttributeName):this.decodeEntities&&t===U.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,U.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,U.SingleQuote)}stateInAttributeValueNoQuotes(t){Ye(t)||t===U.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(He.Unquoted,this.index),this.state=R.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===U.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===U.OpeningSquareBracket?(this.state=R.CDATASequence,this.sequenceIndex=0):this.state=t===U.Dash?R.BeforeComment:R.InDeclaration}stateInDeclaration(t){(t===U.Gt||this.fastForwardTo(U.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=R.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===U.Gt||this.fastForwardTo(U.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=R.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===U.Dash?(this.state=R.InCommentLike,this.currentSequence=de.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=R.InDeclaration}stateInSpecialComment(t){(t===U.Gt||this.fastForwardTo(U.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=R.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const s=t|32;s===de.ScriptEnd[3]?this.startSpecial(de.ScriptEnd,4):s===de.StyleEnd[3]?this.startSpecial(de.StyleEnd,4):(this.state=R.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){switch(t|32){case de.TitleEnd[3]:{this.startSpecial(de.TitleEnd,4);break}case de.TextareaEnd[3]:{this.startSpecial(de.TextareaEnd,4);break}case de.XmpEnd[3]:{this.startSpecial(de.XmpEnd,4);break}default:this.state=R.InTagName,this.stateInTagName(t)}}startEntity(){this.baseState=this.state,this.state=R.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?Me.Strict:this.baseState===R.Text||this.baseState===R.InSpecialTag?Me.Legacy:Me.Attribute)}stateInEntity(){const t=this.index-this.offset,s=this.entityDecoder.write(this.buffer,t);if(s>=0)this.state=this.baseState,s===0&&(this.index-=1);else{if(t<this.buffer.length&&this.buffer.charCodeAt(t)===U.Amp){this.state=this.baseState,this.index-=1;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===R.Text||this.state===R.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===R.InAttributeValueDq||this.state===R.InAttributeValueSq||this.state===R.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();){const t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case R.Text:{this.stateText(t);break}case R.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case R.InSpecialTag:{this.stateInSpecialTag(t);break}case R.CDATASequence:{this.stateCDATASequence(t);break}case R.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case R.InAttributeName:{this.stateInAttributeName(t);break}case R.InCommentLike:{this.stateInCommentLike(t);break}case R.InSpecialComment:{this.stateInSpecialComment(t);break}case R.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case R.InTagName:{this.stateInTagName(t);break}case R.InClosingTagName:{this.stateInClosingTagName(t);break}case R.BeforeTagName:{this.stateBeforeTagName(t);break}case R.AfterAttributeName:{this.stateAfterAttributeName(t);break}case R.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case R.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case R.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case R.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case R.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case R.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case R.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case R.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case R.InDeclaration:{this.stateInDeclaration(t);break}case R.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case R.BeforeComment:{this.stateBeforeComment(t);break}case R.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case R.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===R.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===R.InCommentLike?this.currentSequence===de.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===R.InTagName||this.state===R.BeforeAttributeName||this.state===R.BeforeAttributeValue||this.state===R.AfterAttributeName||this.state===R.InAttributeName||this.state===R.InAttributeValueSq||this.state===R.InAttributeValueDq||this.state===R.InAttributeValueNq||this.state===R.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,s){this.baseState!==R.Text&&this.baseState!==R.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+s,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+s,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}};const mt=new Set(["input","option","optgroup","select","button","datalist","textarea"]),te=new Set(["p"]),Gn=new Set(["thead","tbody"]),Kn=new Set(["dd","dt"]),qn=new Set(["rt","rp"]),fc=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",te],["h1",te],["h2",te],["h3",te],["h4",te],["h5",te],["h6",te],["select",mt],["input",mt],["output",mt],["button",mt],["datalist",mt],["textarea",mt],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Kn],["dt",Kn],["address",te],["article",te],["aside",te],["blockquote",te],["details",te],["div",te],["dl",te],["fieldset",te],["figcaption",te],["figure",te],["footer",te],["form",te],["header",te],["hr",te],["main",te],["nav",te],["ol",te],["pre",te],["section",te],["table",te],["ul",te],["rt",qn],["rp",qn],["tbody",Gn],["tfoot",Gn]]),mc=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Jn=new Set(["math","svg"]),jn=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Ec=/\s|\//;let gc=class{constructor(t,s={}){var r,n,a,u,c,h;this.options=s,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(r=s.lowerCaseTags)!==null&&r!==void 0?r:this.htmlMode,this.lowerCaseAttributeNames=(n=s.lowerCaseAttributeNames)!==null&&n!==void 0?n:this.htmlMode,this.recognizeSelfClosing=(a=s.recognizeSelfClosing)!==null&&a!==void 0?a:!this.htmlMode,this.tokenizer=new((u=s.Tokenizer)!==null&&u!==void 0?u:dc)(this.options,this),this.foreignContext=[!this.htmlMode],(h=(c=this.cbs).onparserinit)===null||h===void 0||h.call(c,this)}ontext(t,s){var r,n;const a=this.getSlice(t,s);this.endIndex=s-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,a),this.startIndex=s}ontextentity(t,s){var r,n;this.endIndex=s-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,Yn(t)),this.startIndex=s}isVoidElement(t){return this.htmlMode&&mc.has(t)}onopentagname(t,s){this.endIndex=s;let r=this.getSlice(t,s);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(t){var s,r,n,a;this.openTagStart=this.startIndex,this.tagname=t;const u=this.htmlMode&&fc.get(t);if(u)for(;this.stack.length>0&&u.has(this.stack[0]);){const c=this.stack.shift();(r=(s=this.cbs).onclosetag)===null||r===void 0||r.call(s,c,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(Jn.has(t)?this.foreignContext.unshift(!0):jn.has(t)&&this.foreignContext.unshift(!1))),(a=(n=this.cbs).onopentagname)===null||a===void 0||a.call(n,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var s,r;this.startIndex=this.openTagStart,this.attribs&&((r=(s=this.cbs).onopentag)===null||r===void 0||r.call(s,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,s){var r,n,a,u,c,h,f,p;this.endIndex=s;let b=this.getSlice(t,s);if(this.lowerCaseTagNames&&(b=b.toLowerCase()),this.htmlMode&&(Jn.has(b)||jn.has(b))&&this.foreignContext.shift(),this.isVoidElement(b))this.htmlMode&&b==="br"&&((u=(a=this.cbs).onopentagname)===null||u===void 0||u.call(a,"br"),(h=(c=this.cbs).onopentag)===null||h===void 0||h.call(c,"br",{},!0),(p=(f=this.cbs).onclosetag)===null||p===void 0||p.call(f,"br",!1));else{const A=this.stack.indexOf(b);if(A!==-1)for(let I=0;I<=A;I++){const E=this.stack.shift();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,E,I!==A)}else this.htmlMode&&b==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=s+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var s,r;const n=this.tagname;this.endOpenTag(t),this.stack[0]===n&&((r=(s=this.cbs).onclosetag)===null||r===void 0||r.call(s,n,!t),this.stack.shift())}onattribname(t,s){this.startIndex=t;const r=this.getSlice(t,s);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(t,s){this.attribvalue+=this.getSlice(t,s)}onattribentity(t){this.attribvalue+=Yn(t)}onattribend(t,s){var r,n;this.endIndex=s,(n=(r=this.cbs).onattribute)===null||n===void 0||n.call(r,this.attribname,this.attribvalue,t===He.Double?'"':t===He.Single?"'":t===He.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const s=t.search(Ec);let r=s<0?t:t.substr(0,s);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(t,s){this.endIndex=s;const r=this.getSlice(t,s);if(this.cbs.onprocessinginstruction){const n=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${n}`,`!${r}`)}this.startIndex=s+1}onprocessinginstruction(t,s){this.endIndex=s;const r=this.getSlice(t,s);if(this.cbs.onprocessinginstruction){const n=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${n}`,`?${r}`)}this.startIndex=s+1}oncomment(t,s,r){var n,a,u,c;this.endIndex=s,(a=(n=this.cbs).oncomment)===null||a===void 0||a.call(n,this.getSlice(t,s-r)),(c=(u=this.cbs).oncommentend)===null||c===void 0||c.call(u),this.startIndex=s+1}oncdata(t,s,r){var n,a,u,c,h,f,p,b,A,I;this.endIndex=s;const E=this.getSlice(t,s-r);!this.htmlMode||this.options.recognizeCDATA?((a=(n=this.cbs).oncdatastart)===null||a===void 0||a.call(n),(c=(u=this.cbs).ontext)===null||c===void 0||c.call(u,E),(f=(h=this.cbs).oncdataend)===null||f===void 0||f.call(h)):((b=(p=this.cbs).oncomment)===null||b===void 0||b.call(p,`[CDATA[${E}]]`),(I=(A=this.cbs).oncommentend)===null||I===void 0||I.call(A)),this.startIndex=s+1}onend(){var t,s;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=0;r<this.stack.length;r++)this.cbs.onclosetag(this.stack[r],!0)}(s=(t=this.cbs).onend)===null||s===void 0||s.call(t)}reset(){var t,s,r,n;(s=(t=this.cbs).onreset)===null||s===void 0||s.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(n=(r=this.cbs).onparserinit)===null||n===void 0||n.call(r,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,s){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(t-this.bufferOffset,s-this.bufferOffset);for(;s-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,s-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var s,r;if(this.ended){(r=(s=this.cbs).onerror)===null||r===void 0||r.call(s,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var s,r;if(this.ended){(r=(s=this.cbs).onerror)===null||r===void 0||r.call(s,new Error(".end() after done!"));return}t&&this.write(t),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(t){this.write(t)}done(t){this.end(t)}};function bc(e,t){const s=new ro(void 0,t);return new gc(s,t).end(e),s.root}var zs;const Qt=(zs=Object.hasOwn)!==null&&zs!==void 0?zs:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Yt=/\s+/,Sr="data-",$r=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,pc=/^{[^]*}$|^\[[^]*]$/;function Ts(e,t,s){var r;if(!(!e||!W(e))){if((r=e.attribs)!==null&&r!==void 0||(e.attribs={}),!t)return e.attribs;if(Qt(e.attribs,t))return!s&&$r.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return Ut(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function bt(e,t,s){s===null?ma(e,t):e.attribs[t]=`${s}`}function Tc(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 ue(this,(s,r)=>{W(s)&&bt(s,e,t.call(s,r,s.attribs[e]))})}return ue(this,s=>{if(W(s))if(typeof e=="object")for(const r of Object.keys(e)){const n=e[r];bt(s,r,n)}else bt(s,e,t)})}return arguments.length>1?this:Ts(this[0],e,this.options.xmlMode)}function Zn(e,t,s){return t in e?e[t]:!s&&$r.test(t)?Ts(e,t,!1)!==void 0:Ts(e,t,s)}function $s(e,t,s,r){t in e?e[t]=s:bt(e,t,!r&&$r.test(t)?s?"":null:`${s}`)}function _c(e,t){var s;if(typeof e=="string"&&t===void 0){const r=this[0];if(!r)return;switch(e){case"style":{const n=this.css(),a=Object.keys(n);for(let u=0;u<a.length;u++)n[u]=a[u];return n.length=a.length,n}case"tagName":case"nodeName":return W(r)?r.name.toUpperCase():void 0;case"href":case"src":{if(!W(r))return;const n=(s=r.attribs)===null||s===void 0?void 0:s[e];return typeof URL<"u"&&(e==="href"&&(r.tagName==="a"||r.tagName==="link")||e==="src"&&(r.tagName==="img"||r.tagName==="iframe"||r.tagName==="audio"||r.tagName==="video"||r.tagName==="source"))&&n!==void 0&&this.options.baseURI?new URL(n,this.options.baseURI).href:n}case"innerText":return gs(r);case"textContent":return pt(r);case"outerHTML":return r.type===Yr?this.html():this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return W(r)?Zn(r,e,this.options.xmlMode):void 0}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new TypeError("Bad combination of arguments.");return ue(this,(r,n)=>{W(r)&&$s(r,e,t.call(r,n,Zn(r,e,this.options.xmlMode)),this.options.xmlMode)})}return ue(this,r=>{if(W(r))if(typeof e=="object")for(const n of Object.keys(e)){const a=e[n];$s(r,n,a,this.options.xmlMode)}else $s(r,e,t,this.options.xmlMode)})}}function Vn(e,t,s){var r;(r=e.data)!==null&&r!==void 0||(e.data={}),typeof t=="object"?Object.assign(e.data,t):typeof t=="string"&&s!==void 0&&(e.data[t]=s)}function Ic(e){for(const t of Object.keys(e.attribs)){if(!t.startsWith(Sr))continue;const s=tc(t.slice(Sr.length));Qt(e.data,s)||(e.data[s]=fa(e.attribs[t]))}return e.data}function Cc(e,t){const s=Sr+sc(t),r=e.data;if(Qt(r,t))return r[t];if(Qt(e.attribs,s))return r[t]=fa(e.attribs[s])}function fa(e){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;const t=Number(e);if(e===String(t))return t;if(pc.test(e))try{return JSON.parse(e)}catch{}return e}function yc(e,t){var s;const r=this[0];if(!r||!W(r))return;const n=r;return(s=n.data)!==null&&s!==void 0||(n.data={}),e==null?Ic(n):typeof e=="object"||t!==void 0?(ue(this,a=>{W(a)&&(typeof e=="object"?Vn(a,e):Vn(a,e,t))}),this):Cc(n,e)}function Sc(e){const t=arguments.length===0,s=this[0];if(!s||!W(s))return t?void 0:this;switch(s.name){case"textarea":return this.text(e);case"select":{const r=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");const n=typeof e=="object"?e:[e];for(const a of n)this.find(`option[value="${a}"]`).attr("selected","");return this}return this.attr("multiple")?r.toArray().map(n=>Ut(n.children)):r.attr("value")}case"button":case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function ma(e,t){!e.attribs||!Qt(e.attribs,t)||delete e.attribs[t]}function _s(e){return e?e.trim().split(Yt):[]}function Nc(e){const t=_s(e);for(const s of t)ue(this,r=>{W(r)&&ma(r,s)});return this}function Dc(e){return this.toArray().some(t=>{const s=W(t)&&t.attribs.class;let r=-1;if(s&&e.length>0)for(;(r=s.indexOf(e,r+1))>-1;){const n=r+e.length;if((r===0||Yt.test(s[r-1]))&&(n===s.length||Yt.test(s[n])))return!0}return!1})}function Ea(e){if(typeof e=="function")return ue(this,(r,n)=>{if(W(r)){const a=r.attribs.class||"";Ea.call([r],e.call(r,n,a))}});if(!e||typeof e!="string")return this;const t=e.split(Yt),s=this.length;for(let r=0;r<s;r++){const n=this[r];if(!W(n))continue;const a=Ts(n,"class",!1);if(a){let u=` ${a} `;for(const c of t){const h=`${c} `;u.includes(` ${h}`)||(u+=h)}bt(n,"class",u.trim())}else bt(n,"class",t.join(" ").trim())}return this}function ga(e){if(typeof e=="function")return ue(this,(n,a)=>{W(n)&&ga.call([n],e.call(n,a,n.attribs.class||""))});const t=_s(e),s=t.length,r=arguments.length===0;return ue(this,n=>{if(W(n))if(r)n.attribs.class="";else{const a=_s(n.attribs.class);let u=!1;for(let c=0;c<s;c++){const h=a.indexOf(t[c]);h!==-1&&(a.splice(h,1),u=!0,c--)}u&&(n.attribs.class=a.join(" "))}})}function ba(e,t){if(typeof e=="function")return ue(this,(u,c)=>{W(u)&&ba.call([u],e.call(u,c,u.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;const s=e.split(Yt),r=s.length,n=typeof t=="boolean"?t?1:-1:0,a=this.length;for(let u=0;u<a;u++){const c=this[u];if(!W(c))continue;const h=_s(c.attribs.class);for(let f=0;f<r;f++){const p=h.indexOf(s[f]);n>=0&&p===-1?h.push(s[f]):n<=0&&p!==-1&&h.splice(p,1)}c.attribs.class=h.join(" ")}return this}const Rc=Object.freeze(Object.defineProperty({__proto__:null,addClass:Ea,attr:Tc,data:yc,hasClass:Dc,prop:_c,removeAttr:Nc,removeClass:ga,toggleClass:ba,val:Sc},Symbol.toStringTag,{value:"Module"}));var Q;(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"})(Q||(Q={}));var me;(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"})(me||(me={}));const Xn=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,Oc=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,Bc=new Map([[126,me.Element],[94,me.Start],[36,me.End],[42,me.Any],[33,me.Not],[124,me.Hyphen]]),wc=new Set(["has","not","matches","is","where","host","host-context"]);function Lt(e){switch(e.type){case Q.Adjacent:case Q.Child:case Q.Descendant:case Q.Parent:case Q.Sibling:case Q.ColumnCombinator:return!0;default:return!1}}const Lc=new Set(["contains","icontains"]);function xc(e,t,s){const r=parseInt(t,16)-65536;return r!==r||s?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Nt(e){return e.replace(Oc,xc)}function er(e){return e===39||e===34}function zn(e){return e===32||e===9||e===10||e===12||e===13}function Fs(e){const t=[],s=pa(t,`${e}`,0);if(s<e.length)throw new Error(`Unmatched selector: ${e.slice(s)}`);return t}function pa(e,t,s){let r=[];function n(A){const I=t.slice(s+A).match(Xn);if(!I)throw new Error(`Expected name, found ${t.slice(s)}`);const[E]=I;return s+=A+E.length,Nt(E)}function a(A){for(s+=A;s<t.length&&zn(t.charCodeAt(s));)s++}function u(){s+=1;const A=s;let I=1;for(;I>0&&s<t.length;s++)t.charCodeAt(s)===40&&!c(s)?I++:t.charCodeAt(s)===41&&!c(s)&&I--;if(I)throw new Error("Parenthesis not matched");return Nt(t.slice(A,s-1))}function c(A){let I=0;for(;t.charCodeAt(--A)===92;)I++;return(I&1)===1}function h(){if(r.length>0&&Lt(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function f(A){if(r.length>0&&r[r.length-1].type===Q.Descendant){r[r.length-1].type=A;return}h(),r.push({type:A})}function p(A,I){r.push({type:Q.Attribute,name:A,action:I,value:n(1),namespace:null,ignoreCase:"quirks"})}function b(){if(r.length&&r[r.length-1].type===Q.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(a(0),t.length===s)return s;e:for(;s<t.length;){const A=t.charCodeAt(s);switch(A){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==Q.Descendant)&&(h(),r.push({type:Q.Descendant})),a(1);break}case 62:{f(Q.Child),a(1);break}case 60:{f(Q.Parent),a(1);break}case 126:{f(Q.Sibling),a(1);break}case 43:{f(Q.Adjacent),a(1);break}case 46:{p("class",me.Element);break}case 35:{p("id",me.Equals);break}case 91:{a(1);let I,E=null;t.charCodeAt(s)===124?I=n(1):t.startsWith("*|",s)?(E="*",I=n(2)):(I=n(0),t.charCodeAt(s)===124&&t.charCodeAt(s+1)!==61&&(E=I,I=n(1))),a(0);let x=me.Exists;const D=Bc.get(t.charCodeAt(s));if(D){if(x=D,t.charCodeAt(s+1)!==61)throw new Error("Expected `=`");a(2)}else t.charCodeAt(s)===61&&(x=me.Equals,a(1));let L="",P=null;if(x!=="exists"){if(er(t.charCodeAt(s))){const y=t.charCodeAt(s);let o=s+1;for(;o<t.length&&(t.charCodeAt(o)!==y||c(o));)o+=1;if(t.charCodeAt(o)!==y)throw new Error("Attribute value didn't end");L=Nt(t.slice(s+1,o)),s=o+1}else{const y=s;for(;s<t.length&&(!zn(t.charCodeAt(s))&&t.charCodeAt(s)!==93||c(s));)s+=1;L=Nt(t.slice(y,s))}a(0);const v=t.charCodeAt(s)|32;v===115?(P=!1,a(1)):v===105&&(P=!0,a(1))}if(t.charCodeAt(s)!==93)throw new Error("Attribute selector didn't terminate");s+=1;const J={type:Q.Attribute,name:I,action:x,value:L,namespace:E,ignoreCase:P};r.push(J);break}case 58:{if(t.charCodeAt(s+1)===58){r.push({type:Q.PseudoElement,name:n(2).toLowerCase(),data:t.charCodeAt(s)===40?u():null});continue}const I=n(1).toLowerCase();let E=null;if(t.charCodeAt(s)===40)if(wc.has(I)){if(er(t.charCodeAt(s+1)))throw new Error(`Pseudo-selector ${I} cannot be quoted`);if(E=[],s=pa(E,t,s+1),t.charCodeAt(s)!==41)throw new Error(`Missing closing parenthesis in :${I} (${t})`);s+=1}else{if(E=u(),Lc.has(I)){const x=E.charCodeAt(0);x===E.charCodeAt(E.length-1)&&er(x)&&(E=E.slice(1,-1))}E=Nt(E)}r.push({type:Q.Pseudo,name:I,data:E});break}case 44:{b(),r=[],a(1);break}default:{if(t.startsWith("/*",s)){const x=t.indexOf("*/",s+2);if(x<0)throw new Error("Comment was not terminated");s=x+2,r.length===0&&a(0);break}let I=null,E;if(A===42)s+=1,E="*";else if(A===124){if(E="",t.charCodeAt(s+1)===124){f(Q.ColumnCombinator),a(2);break}}else if(Xn.test(t.slice(s)))E=n(0);else break e;t.charCodeAt(s)===124&&t.charCodeAt(s+1)!==124&&(I=E,t.charCodeAt(s+1)===42?(E="*",s+=2):E=n(1)),r.push(E==="*"?{type:Q.Universal,namespace:I}:{type:Q.Tag,name:E,namespace:I})}}}return b(),s}var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Is={trueFunc:function(){return!0},falseFunc:function(){return!1}};const j=Ta(Is),_a=new Map([[Q.Universal,50],[Q.Tag,30],[Q.Attribute,1],[Q.Pseudo,0]]);function en(e){return!_a.has(e.type)}const Pc=new Map([[me.Exists,10],[me.Equals,8],[me.Not,7],[me.Start,6],[me.End,6],[me.Any,5]]);function kc(e){const t=e.map(Ia);for(let s=1;s<e.length;s++){const r=t[s];if(!(r<0))for(let n=s-1;n>=0&&r<t[n];n--){const a=e[n+1];e[n+1]=e[n],e[n]=a,t[n+1]=t[n],t[n]=r}}}function Ia(e){var t,s;let r=(t=_a.get(e.type))!==null&&t!==void 0?t:-1;return e.type===Q.Attribute?(r=(s=Pc.get(e.action))!==null&&s!==void 0?s:4,e.action===me.Equals&&e.name==="id"&&(r=9),e.ignoreCase&&(r>>=1)):e.type===Q.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?r=0:Array.isArray(e.data)?(r=Math.min(...e.data.map(n=>Math.min(...n.map(Ia)))),r<0&&(r=0)):r=2:r=3),r}const Fc=/[-[\]{}()*+?.,\\^$|#\s]/g;function $n(e){return e.replace(Fc,"\\$&")}const Mc=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 nt(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&Mc.has(e.name)}const Hc={equals(e,t,s){const{adapter:r}=s,{name:n}=t;let{value:a}=t;return nt(t,s)?(a=a.toLowerCase(),u=>{const c=r.getAttributeValue(u,n);return c!=null&&c.length===a.length&&c.toLowerCase()===a&&e(u)}):u=>r.getAttributeValue(u,n)===a&&e(u)},hyphen(e,t,s){const{adapter:r}=s,{name:n}=t;let{value:a}=t;const u=a.length;return nt(t,s)?(a=a.toLowerCase(),function(h){const f=r.getAttributeValue(h,n);return f!=null&&(f.length===u||f.charAt(u)==="-")&&f.substr(0,u).toLowerCase()===a&&e(h)}):function(h){const f=r.getAttributeValue(h,n);return f!=null&&(f.length===u||f.charAt(u)==="-")&&f.substr(0,u)===a&&e(h)}},element(e,t,s){const{adapter:r}=s,{name:n,value:a}=t;if(/\s/.test(a))return j.falseFunc;const u=new RegExp(`(?:^|\\s)${$n(a)}(?:$|\\s)`,nt(t,s)?"i":"");return function(h){const f=r.getAttributeValue(h,n);return f!=null&&f.length>=a.length&&u.test(f)&&e(h)}},exists(e,{name:t},{adapter:s}){return r=>s.hasAttrib(r,t)&&e(r)},start(e,t,s){const{adapter:r}=s,{name:n}=t;let{value:a}=t;const u=a.length;return u===0?j.falseFunc:nt(t,s)?(a=a.toLowerCase(),c=>{const h=r.getAttributeValue(c,n);return h!=null&&h.length>=u&&h.substr(0,u).toLowerCase()===a&&e(c)}):c=>{var h;return!!(!((h=r.getAttributeValue(c,n))===null||h===void 0)&&h.startsWith(a))&&e(c)}},end(e,t,s){const{adapter:r}=s,{name:n}=t;let{value:a}=t;const u=-a.length;return u===0?j.falseFunc:nt(t,s)?(a=a.toLowerCase(),c=>{var h;return((h=r.getAttributeValue(c,n))===null||h===void 0?void 0:h.substr(u).toLowerCase())===a&&e(c)}):c=>{var h;return!!(!((h=r.getAttributeValue(c,n))===null||h===void 0)&&h.endsWith(a))&&e(c)}},any(e,t,s){const{adapter:r}=s,{name:n,value:a}=t;if(a==="")return j.falseFunc;if(nt(t,s)){const u=new RegExp($n(a),"i");return function(h){const f=r.getAttributeValue(h,n);return f!=null&&f.length>=a.length&&u.test(f)&&e(h)}}return u=>{var c;return!!(!((c=r.getAttributeValue(u,n))===null||c===void 0)&&c.includes(a))&&e(u)}},not(e,t,s){const{adapter:r}=s,{name:n}=t;let{value:a}=t;return a===""?u=>!!r.getAttributeValue(u,n)&&e(u):nt(t,s)?(a=a.toLowerCase(),u=>{const c=r.getAttributeValue(u,n);return(c==null||c.length!==a.length||c.toLowerCase()!==a)&&e(u)}):u=>r.getAttributeValue(u,n)!==a&&e(u)}},vc=new Set([9,10,12,13,32]),ei=48,Uc=57;function Qc(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,s=0,r=a(),n=u();if(t<e.length&&e.charAt(t)==="n"&&(t++,s=r*(n??1),c(),t<e.length?(r=a(),c(),n=u()):r=n=0),n===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[s,r*n];function a(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function u(){const h=t;let f=0;for(;t<e.length&&e.charCodeAt(t)>=ei&&e.charCodeAt(t)<=Uc;)f=f*10+(e.charCodeAt(t)-ei),t++;return t===h?null:f}function c(){for(;t<e.length&&vc.has(e.charCodeAt(t));)t++}}function Yc(e){const t=e[0],s=e[1]-1;if(s<0&&t<=0)return j.falseFunc;if(t===-1)return a=>a<=s;if(t===0)return a=>a===s;if(t===1)return s<0?j.trueFunc:a=>a>=s;const r=Math.abs(t),n=(s%r+r)%r;return t>1?a=>a>=s&&a%r===n:a=>a<=s&&a%r===n}function as(e){return Yc(Qc(e))}function us(e,t){return s=>{const r=t.getParent(s);return r!=null&&t.isTag(r)&&e(s)}}const Nr={contains(e,t,{adapter:s}){return function(n){return e(n)&&s.getText(n).includes(t)}},icontains(e,t,{adapter:s}){const r=t.toLowerCase();return function(a){return e(a)&&s.getText(a).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:s,equals:r}){const n=as(t);return n===j.falseFunc?j.falseFunc:n===j.trueFunc?us(e,s):function(u){const c=s.getSiblings(u);let h=0;for(let f=0;f<c.length&&!r(u,c[f]);f++)s.isTag(c[f])&&h++;return n(h)&&e(u)}},"nth-last-child"(e,t,{adapter:s,equals:r}){const n=as(t);return n===j.falseFunc?j.falseFunc:n===j.trueFunc?us(e,s):function(u){const c=s.getSiblings(u);let h=0;for(let f=c.length-1;f>=0&&!r(u,c[f]);f--)s.isTag(c[f])&&h++;return n(h)&&e(u)}},"nth-of-type"(e,t,{adapter:s,equals:r}){const n=as(t);return n===j.falseFunc?j.falseFunc:n===j.trueFunc?us(e,s):function(u){const c=s.getSiblings(u);let h=0;for(let f=0;f<c.length;f++){const p=c[f];if(r(u,p))break;s.isTag(p)&&s.getName(p)===s.getName(u)&&h++}return n(h)&&e(u)}},"nth-last-of-type"(e,t,{adapter:s,equals:r}){const n=as(t);return n===j.falseFunc?j.falseFunc:n===j.trueFunc?us(e,s):function(u){const c=s.getSiblings(u);let h=0;for(let f=c.length-1;f>=0;f--){const p=c[f];if(r(u,p))break;s.isTag(p)&&s.getName(p)===s.getName(u)&&h++}return n(h)&&e(u)}},root(e,t,{adapter:s}){return r=>{const n=s.getParent(r);return(n==null||!s.isTag(n))&&e(r)}},scope(e,t,s,r){const{equals:n}=s;return!r||r.length===0?Nr.root(e,t,s):r.length===1?a=>n(r[0],a)&&e(a):a=>r.includes(a)&&e(a)},hover:tr("isHovered"),visited:tr("isVisited"),active:tr("isActive")};function tr(e){return function(s,r,{adapter:n}){const a=n[e];return typeof a!="function"?j.falseFunc:function(c){return a(c)&&s(c)}}}const ti={empty(e,{adapter:t}){return!t.getChildren(e).some(s=>t.isTag(s)||t.getText(s)!=="")},"first-child"(e,{adapter:t,equals:s}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;const r=t.getSiblings(e).find(n=>t.isTag(n));return r!=null&&s(e,r)},"last-child"(e,{adapter:t,equals:s}){const r=t.getSiblings(e);for(let n=r.length-1;n>=0;n--){if(s(e,r[n]))return!0;if(t.isTag(r[n]))break}return!1},"first-of-type"(e,{adapter:t,equals:s}){const r=t.getSiblings(e),n=t.getName(e);for(let a=0;a<r.length;a++){const u=r[a];if(s(e,u))return!0;if(t.isTag(u)&&t.getName(u)===n)break}return!1},"last-of-type"(e,{adapter:t,equals:s}){const r=t.getSiblings(e),n=t.getName(e);for(let a=r.length-1;a>=0;a--){const u=r[a];if(s(e,u))return!0;if(t.isTag(u)&&t.getName(u)===n)break}return!1},"only-of-type"(e,{adapter:t,equals:s}){const r=t.getName(e);return t.getSiblings(e).every(n=>s(e,n)||!t.isTag(n)||t.getName(n)!==r)},"only-child"(e,{adapter:t,equals:s}){return t.getSiblings(e).every(r=>s(e,r)||!t.isTag(r))}};function si(e,t,s,r){if(s===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`)}const Wc={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
|
|
1
|
+
"use strict";const Ia=require("electron"),tt=require("node:fs"),kt=require("node:path"),Ca=require("node:os"),pa=require("node:child_process");var R;(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"})(R||(R={}));function _a(e){return e.type===R.Tag||e.type===R.Script||e.type===R.Style}const zt=R.Root,ss=R.Text,Na=R.Directive,as=R.Comment,Sa=R.Script,Da=R.Style,Ht=R.Tag,Ba=R.CDATA,Oa=R.Doctype;class ns{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return Qe(this,t)}}class $t extends ns{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class Ue extends $t{constructor(){super(...arguments),this.type=R.Text}get nodeType(){return 3}}class eu extends $t{constructor(){super(...arguments),this.type=R.Comment}get nodeType(){return 8}}class tu extends $t{constructor(t,u){super(u),this.name=t,this.type=R.Directive}get nodeType(){return 1}}class uu extends ns{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class is extends uu{constructor(){super(...arguments),this.type=R.CDATA}get nodeType(){return 4}}class fe extends uu{constructor(){super(...arguments),this.type=R.Root}get nodeType(){return 9}}class su extends uu{constructor(t,u,s=[],n=t==="script"?R.Script:t==="style"?R.Style:R.Tag){super(s),this.name=t,this.attribs=u,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var u,s;return{name:t,value:this.attribs[t],namespace:(u=this["x-attribsNamespace"])===null||u===void 0?void 0:u[t],prefix:(s=this["x-attribsPrefix"])===null||s===void 0?void 0:s[t]}})}}function D(e){return _a(e)}function Et(e){return e.type===R.CDATA}function $(e){return e.type===R.Text}function Tt(e){return e.type===R.Comment}function Ut(e){return e.type===R.Directive}function Ae(e){return e.type===R.Root}function w(e){return Object.prototype.hasOwnProperty.call(e,"children")}function Qe(e,t=!1){let u;if($(e))u=new Ue(e.data);else if(Tt(e))u=new eu(e.data);else if(D(e)){const s=t?Dt(e.children):[],n=new su(e.name,{...e.attribs},s);s.forEach(i=>i.parent=n),e.namespace!=null&&(n.namespace=e.namespace),e["x-attribsNamespace"]&&(n["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(n["x-attribsPrefix"]={...e["x-attribsPrefix"]}),u=n}else if(Et(e)){const s=t?Dt(e.children):[],n=new is(s);s.forEach(i=>i.parent=n),u=n}else if(Ae(e)){const s=t?Dt(e.children):[],n=new fe(s);s.forEach(i=>i.parent=n),e["x-mode"]&&(n["x-mode"]=e["x-mode"]),u=n}else if(Ut(e)){const s=new tu(e.name,e.data);e["x-name"]!=null&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),u=s}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 Dt(e){const t=e.map(u=>Qe(u,!0));for(let u=1;u<t.length;u++)t[u].prev=t[u-1],t[u-1].next=t[u];return t}const Cu={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class Ra{constructor(t,u,s){this.dom=[],this.root=new fe(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(s=u,u=Cu),typeof t=="object"&&(u=t,t=void 0),this.callback=t??null,this.options=u??Cu,this.elementCB=s??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new fe(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(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,u){const s=this.options.xmlMode?R.Tag:void 0,n=new su(t,u,void 0,s);this.addNode(n),this.tagStack.push(n)}ontext(t){const{lastNode:u}=this;if(u&&u.type===R.Text)u.data+=t,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{const s=new Ue(t);this.addNode(s),this.lastNode=s}}oncomment(t){if(this.lastNode&&this.lastNode.type===R.Comment){this.lastNode.data+=t;return}const u=new eu(t);this.addNode(u),this.lastNode=u}oncommentend(){this.lastNode=null}oncdatastart(){const t=new Ue(""),u=new is([t]);this.addNode(u),t.parent=u,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,u){const s=new tu(t,u);this.addNode(s)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){const u=this.tagStack[this.tagStack.length-1],s=u.children[u.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),u.children.push(t),s&&(t.prev=s,s.next=t),t.parent=u,this.lastNode=null}}const pu=/["&'<>$\x80-\uFFFF]/g,La=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),ya=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 rs(e){let t="",u=0,s;for(;(s=pu.exec(e))!==null;){const n=s.index,i=e.charCodeAt(n),r=La.get(i);r!==void 0?(t+=e.substring(u,n)+r,u=n+1):(t+=`${e.substring(u,n)}&#x${ya(e,n).toString(16)};`,u=pu.lastIndex+=+((i&64512)===55296))}return t+e.substr(u)}function As(e,t){return function(s){let n,i=0,r="";for(;n=e.exec(s);)i!==n.index&&(r+=s.substring(i,n.index)),r+=t.get(n[0].charCodeAt(0)),i=n.index+1;return r+s.substring(i)}}const xa=As(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Fa=As(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),wa=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])),Ma=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])),Pa=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function ka(e){return e.replace(/"/g,""")}function Ha(e,t){var u;if(!e)return;const s=((u=t.encodeEntities)!==null&&u!==void 0?u:t.decodeEntities)===!1?ka:t.xmlMode||t.encodeEntities!=="utf8"?rs:xa;return Object.keys(e).map(n=>{var i,r;const h=(i=e[n])!==null&&i!==void 0?i:"";return t.xmlMode==="foreign"&&(n=(r=Ma.get(n))!==null&&r!==void 0?r:n),!t.emptyAttrs&&!t.xmlMode&&h===""?n:`${n}="${s(h)}"`}).join(" ")}const _u=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function gt(e,t={}){const u="length"in e?e:[e];let s="";for(let n=0;n<u.length;n++)s+=Ua(u[n],t);return s}function Ua(e,t){switch(e.type){case zt:return gt(e.children,t);case Oa:case Na:return Ka(e);case as:return Ja(e);case Ba:return Wa(e);case Sa:case Da:case Ht:return va(e,t);case ss:return Ga(e,t)}}const Qa=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Ya=new Set(["svg","math"]);function va(e,t){var u;t.xmlMode==="foreign"&&(e.name=(u=wa.get(e.name))!==null&&u!==void 0?u:e.name,e.parent&&Qa.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&Ya.has(e.name)&&(t={...t,xmlMode:"foreign"});let s=`<${e.name}`;const n=Ha(e.attribs,t);return n&&(s+=` ${n}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&_u.has(e.name))?(t.xmlMode||(s+=" "),s+="/>"):(s+=">",e.children.length>0&&(s+=gt(e.children,t)),(t.xmlMode||!_u.has(e.name))&&(s+=`</${e.name}>`)),s}function Ka(e){return`<${e.data}>`}function Ga(e,t){var u;let s=e.data||"";return((u=t.encodeEntities)!==null&&u!==void 0?u:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&Pa.has(e.parent.name))&&(s=t.xmlMode||t.encodeEntities!=="utf8"?rs(s):Fa(s)),s}function Wa(e){return`<![CDATA[${e.children[0].data}]]>`}function Ja(e){return`<!--${e.data}-->`}function cs(e,t){return gt(e,t)}function Za(e,t){return w(e)?e.children.map(u=>cs(u,t)).join(""):""}function ut(e){return Array.isArray(e)?e.map(ut).join(""):D(e)?e.name==="br"?`
|
|
2
|
+
`:ut(e.children):Et(e)?ut(e.children):$(e)?e.data:""}function pe(e){return Array.isArray(e)?e.map(pe).join(""):w(e)&&!Tt(e)?pe(e.children):$(e)?e.data:""}function at(e){return Array.isArray(e)?e.map(at).join(""):w(e)&&(e.type===R.Tag||Et(e))?at(e.children):$(e)?e.data:""}function mt(e){return w(e)?e.children:[]}function os(e){return e.parent||null}function hs(e){const t=os(e);if(t!=null)return mt(t);const u=[e];let{prev:s,next:n}=e;for(;s!=null;)u.unshift(s),{prev:s}=s;for(;n!=null;)u.push(n),{next:n}=n;return u}function Xa(e,t){var u;return(u=e.attribs)===null||u===void 0?void 0:u[t]}function Va(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function qa(e){return e.name}function au(e){let{next:t}=e;for(;t!==null&&!D(t);)({next:t}=t);return t}function nu(e){let{prev:t}=e;for(;t!==null&&!D(t);)({prev:t}=t);return t}function Te(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,u=t.lastIndexOf(e);u>=0&&t.splice(u,1)}e.next=null,e.prev=null,e.parent=null}function ja(e,t){const u=t.prev=e.prev;u&&(u.next=t);const s=t.next=e.next;s&&(s.prev=t);const n=t.parent=e.parent;if(n){const i=n.children;i[i.lastIndexOf(e)]=t,e.parent=null}}function za(e,t){if(Te(t),t.next=null,t.parent=e,e.children.push(t)>1){const u=e.children[e.children.length-2];u.next=t,t.prev=u}else t.prev=null}function $a(e,t){Te(t);const{parent:u}=e,s=e.next;if(t.next=s,t.prev=e,e.next=t,t.parent=u,s){if(s.prev=t,u){const n=u.children;n.splice(n.lastIndexOf(s),0,t)}}else u&&u.children.push(t)}function en(e,t){if(Te(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const u=e.children[1];u.prev=t,t.next=u}else t.next=null}function tn(e,t){Te(t);const{parent:u}=e;if(u){const s=u.children;s.splice(s.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=u,t.prev=e.prev,t.next=e,e.prev=t}function We(e,t,u=!0,s=1/0){return iu(e,Array.isArray(t)?t:[t],u,s)}function iu(e,t,u,s){const n=[],i=[Array.isArray(t)?t:[t]],r=[0];for(;;){if(r[0]>=i[0].length){if(r.length===1)return n;i.shift(),r.shift();continue}const h=i[0][r[0]++];if(e(h)&&(n.push(h),--s<=0))return n;u&&w(h)&&h.children.length>0&&(r.unshift(0),i.unshift(h.children))}}function un(e,t){return t.find(e)}function ru(e,t,u=!0){const s=Array.isArray(t)?t:[t];for(let n=0;n<s.length;n++){const i=s[n];if(D(i)&&e(i))return i;if(u&&w(i)&&i.children.length>0){const r=ru(e,i.children,!0);if(r)return r}}return null}function ds(e,t){return(Array.isArray(t)?t:[t]).some(u=>D(u)&&e(u)||w(u)&&ds(e,u.children))}function sn(e,t){const u=[],s=[Array.isArray(t)?t:[t]],n=[0];for(;;){if(n[0]>=s[0].length){if(s.length===1)return u;s.shift(),n.shift();continue}const i=s[0][n[0]++];D(i)&&e(i)&&u.push(i),w(i)&&i.children.length>0&&(n.unshift(0),s.unshift(i.children))}}const nt={tag_name(e){return typeof e=="function"?t=>D(t)&&e(t.name):e==="*"?D:t=>D(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=>$(t)&&e(t.data):t=>$(t)&&t.data===e}};function Au(e,t){return typeof t=="function"?u=>D(u)&&t(u.attribs[e]):u=>D(u)&&u.attribs[e]===t}function an(e,t){return u=>e(u)||t(u)}function ls(e){const t=Object.keys(e).map(u=>{const s=e[u];return Object.prototype.hasOwnProperty.call(nt,u)?nt[u](s):Au(u,s)});return t.length===0?null:t.reduce(an)}function nn(e,t){const u=ls(e);return u?u(t):!0}function rn(e,t,u,s=1/0){const n=ls(e);return n?We(n,t,u,s):[]}function An(e,t,u=!0){return Array.isArray(t)||(t=[t]),ru(Au("id",e),t,u)}function Ne(e,t,u=!0,s=1/0){return We(nt.tag_name(e),t,u,s)}function cn(e,t,u=!0,s=1/0){return We(Au("class",e),t,u,s)}function on(e,t,u=!0,s=1/0){return We(nt.tag_type(e),t,u,s)}function hn(e){let t=e.length;for(;--t>=0;){const u=e[t];if(t>0&&e.lastIndexOf(u,t-1)>=0){e.splice(t,1);continue}for(let s=u.parent;s;s=s.parent)if(e.includes(s)){e.splice(t,1);break}}return e}var Z;(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"})(Z||(Z={}));function fs(e,t){const u=[],s=[];if(e===t)return 0;let n=w(e)?e:e.parent;for(;n;)u.unshift(n),n=n.parent;for(n=w(t)?t:t.parent;n;)s.unshift(n),n=n.parent;const i=Math.min(u.length,s.length);let r=0;for(;r<i&&u[r]===s[r];)r++;if(r===0)return Z.DISCONNECTED;const h=u[r-1],d=h.children,l=u[r],T=s[r];return d.indexOf(l)>d.indexOf(T)?h===t?Z.FOLLOWING|Z.CONTAINED_BY:Z.FOLLOWING:h===e?Z.PRECEDING|Z.CONTAINS:Z.PRECEDING}function Se(e){return e=e.filter((t,u,s)=>!s.includes(t,u+1)),e.sort((t,u)=>{const s=fs(t,u);return s&Z.PRECEDING?-1:s&Z.FOLLOWING?1:0}),e}function dn(e){const t=it(gn,e);return t?t.name==="feed"?ln(t):fn(t):null}function ln(e){var t;const u=e.children,s={type:"atom",items:Ne("entry",u).map(r=>{var h;const{children:d}=r,l={media:Es(d)};G(l,"id","id",d),G(l,"title","title",d);const T=(h=it("link",d))===null||h===void 0?void 0:h.attribs.href;T&&(l.link=T);const I=ie("summary",d)||ie("content",d);I&&(l.description=I);const C=ie("updated",d);return C&&(l.pubDate=new Date(C)),l})};G(s,"id","id",u),G(s,"title","title",u);const n=(t=it("link",u))===null||t===void 0?void 0:t.attribs.href;n&&(s.link=n),G(s,"description","subtitle",u);const i=ie("updated",u);return i&&(s.updated=new Date(i)),G(s,"author","email",u,!0),s}function fn(e){var t,u;const s=(u=(t=it("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&u!==void 0?u:[],n={type:e.name.substr(0,3),id:"",items:Ne("item",e.children).map(r=>{const{children:h}=r,d={media:Es(h)};G(d,"id","guid",h),G(d,"title","title",h),G(d,"link","link",h),G(d,"description","description",h);const l=ie("pubDate",h)||ie("dc:date",h);return l&&(d.pubDate=new Date(l)),d})};G(n,"title","title",s),G(n,"link","link",s),G(n,"description","description",s);const i=ie("lastBuildDate",s);return i&&(n.updated=new Date(i)),G(n,"author","managingEditor",s,!0),n}const En=["url","type","lang"],Tn=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Es(e){return Ne("media:content",e).map(t=>{const{attribs:u}=t,s={medium:u.medium,isDefault:!!u.isDefault};for(const n of En)u[n]&&(s[n]=u[n]);for(const n of Tn)u[n]&&(s[n]=parseInt(u[n],10));return u.expression&&(s.expression=u.expression),s})}function it(e,t){return Ne(e,t,!0,1)[0]}function ie(e,t,u=!1){return pe(Ne(e,t,u,1)).trim()}function G(e,t,u,s,n=!1){const i=ie(u,s,n);i&&(e[t]=i)}function gn(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}const bt=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return Z},append:$a,appendChild:za,compareDocumentPosition:fs,existsOne:ds,filter:We,find:iu,findAll:sn,findOne:ru,findOneChild:un,getAttributeValue:Xa,getChildren:mt,getElementById:An,getElements:rn,getElementsByClassName:cn,getElementsByTagName:Ne,getElementsByTagType:on,getFeed:dn,getInnerHTML:Za,getName:qa,getOuterHTML:cs,getParent:os,getSiblings:hs,getText:ut,hasAttrib:Va,hasChildren:w,innerText:at,isCDATA:Et,isComment:Tt,isDocument:Ae,isTag:D,isText:$,nextElementSibling:au,prepend:tn,prependChild:en,prevElementSibling:nu,removeElement:Te,removeSubsets:hn,replaceElement:ja,testElement:nn,textContent:pe,uniqueSort:Se},Symbol.toStringTag,{value:"Module"})),mn={_useHtmlParser2:!1};function Qt(e,t){if(!e)return t??mn;const u={_useHtmlParser2:!!e.xmlMode,...t,...e};return e.xml?(u._useHtmlParser2=!0,u.xmlMode=!0,e.xml!==!0&&Object.assign(u,e.xml)):e.xmlMode&&(u._useHtmlParser2=!0),u}function Ts(e,t,u){return e?e(t??e._root.children,null,void 0,u).toString():""}function bn(e,t){return typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function In(e,t){const u=bn(e)?(t=e,void 0):e,s={...this===null||this===void 0?void 0:this._options,...Qt(t)};return Ts(this,u,s)}function Cn(e){const t={...this._options,xmlMode:!0};return Ts(this,e,t)}function Ye(e){const t=e??(this?this.root():[]);let u="";for(let s=0;s<t.length;s++)u+=pe(t[s]);return u}function pn(e,t,u=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(u=t);const s=this.load(e,this._options,!1);return u||s("script").remove(),[...s.root()[0].children]}function _n(){return this(this._root)}function gs(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 Nn(e){return this.root().extract(e)}function Sn(e,t){if(!Nu(e)||!Nu(t))return;let u=e.length;const s=+t.length;for(let n=0;n<s;n++)e[u++]=t[n];return e.length=u,e}function Nu(e){if(Array.isArray(e))return!0;if(typeof e!="object"||e===null||!("length"in e)||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}const Dn=Object.freeze(Object.defineProperty({__proto__:null,contains:gs,extract:Nn,html:In,merge:Sn,parseHTML:pn,root:_n,text:Ye,xml:Cn},Symbol.toStringTag,{value:"Module"}));function se(e){return e.cheerio!=null}function Bn(e){return e.replace(/[._-](\w|$)/g,(t,u)=>u.toUpperCase())}function On(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function F(e,t){const u=e.length;for(let s=0;s<u;s++)t(e[s],s);return e}var de;(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"})(de||(de={}));function Yt(e){if(typeof e!="string")return!1;const t=e.indexOf("<");if(t===-1||t>e.length-3)return!1;const u=e.charCodeAt(t+1);return(u>=de.LowerA&&u<=de.LowerZ||u>=de.UpperA&&u<=de.UpperZ||u===de.Exclamation)&&e.includes(">",t+2)}var Bt;const Rn=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]]),Su=(Bt=String.fromCodePoint)!==null&&Bt!==void 0?Bt: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 Ln(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Rn.get(e))!==null&&t!==void 0?t:e}function ms(e){const t=typeof atob=="function"?atob(e):typeof Buffer.from=="function"?Buffer.from(e,"base64").toString("binary"):new Buffer(e,"base64").toString("binary"),u=t.length&-2,s=new Uint16Array(u/2);for(let n=0,i=0;n<u;n+=2){const r=t.charCodeAt(n),h=t.charCodeAt(n+1);s[i++]=r|h<<8}return s}const yn=ms("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2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n7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg"),xn=ms("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var v;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.FLAG13=8192]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(v||(v={}));var x;(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"})(x||(x={}));const Du=32;function vt(e){return e>=x.ZERO&&e<=x.NINE}function Fn(e){return e>=x.UPPER_A&&e<=x.UPPER_F||e>=x.LOWER_A&&e<=x.LOWER_F}function wn(e){return e>=x.UPPER_A&&e<=x.UPPER_Z||e>=x.LOWER_A&&e<=x.LOWER_Z||vt(e)}function Mn(e){return e===x.EQUALS||wn(e)}var H;(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"})(H||(H={}));var j;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(j||(j={}));let Pn=class{constructor(t,u,s){this.decodeTree=t,this.emitCodePoint=u,this.errors=s,this.state=H.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=j.Strict,this.runConsumed=0}startEntity(t){this.decodeMode=t,this.state=H.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,u){switch(this.state){case H.EntityStart:return t.charCodeAt(u)===x.NUM?(this.state=H.NumericStart,this.consumed+=1,this.stateNumericStart(t,u+1)):(this.state=H.NamedEntity,this.stateNamedEntity(t,u));case H.NumericStart:return this.stateNumericStart(t,u);case H.NumericDecimal:return this.stateNumericDecimal(t,u);case H.NumericHex:return this.stateNumericHex(t,u);case H.NamedEntity:return this.stateNamedEntity(t,u)}}stateNumericStart(t,u){return u>=t.length?-1:(t.charCodeAt(u)|Du)===x.LOWER_X?(this.state=H.NumericHex,this.consumed+=1,this.stateNumericHex(t,u+1)):(this.state=H.NumericDecimal,this.stateNumericDecimal(t,u))}stateNumericHex(t,u){for(;u<t.length;){const s=t.charCodeAt(u);if(vt(s)||Fn(s)){const n=s<=x.NINE?s-x.ZERO:(s|Du)-x.LOWER_A+10;this.result=this.result*16+n,this.consumed++,u++}else return this.emitNumericEntity(s,3)}return-1}stateNumericDecimal(t,u){for(;u<t.length;){const s=t.charCodeAt(u);if(vt(s))this.result=this.result*10+(s-x.ZERO),this.consumed++,u++;else return this.emitNumericEntity(s,2)}return-1}emitNumericEntity(t,u){var s;if(this.consumed<=u)return(s=this.errors)===null||s===void 0||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===x.SEMI)this.consumed+=1;else if(this.decodeMode===j.Strict)return 0;return this.emitCodePoint(Ln(this.result),this.consumed),this.errors&&(t!==x.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,u){const{decodeTree:s}=this;let n=s[this.treeIndex],i=(n&v.VALUE_LENGTH)>>14;for(;u<t.length;){if(i===0&&n&v.FLAG13){const h=(n&v.BRANCH_LENGTH)>>7;if(this.runConsumed===0){const d=n&v.JUMP_TABLE;if(t.charCodeAt(u)!==d)return this.result===0?0:this.emitNotTerminatedNamedEntity();u++,this.excess++,this.runConsumed++}for(;this.runConsumed<h;){if(u>=t.length)return-1;const d=this.runConsumed-1,l=s[this.treeIndex+1+(d>>1)],T=d%2===0?l&255:l>>8&255;if(t.charCodeAt(u)!==T)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();u++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(h>>1),n=s[this.treeIndex],i=(n&v.VALUE_LENGTH)>>14}if(u>=t.length)break;const r=t.charCodeAt(u);if(r===x.SEMI&&i!==0&&n&v.FLAG13)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=kn(s,n,this.treeIndex+Math.max(1,i),r),this.treeIndex<0)return this.result===0||this.decodeMode===j.Attribute&&(i===0||Mn(r))?0:this.emitNotTerminatedNamedEntity();if(n=s[this.treeIndex],i=(n&v.VALUE_LENGTH)>>14,i!==0){if(r===x.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==j.Strict&&!(n&v.FLAG13)&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}u++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var t;const{result:u,decodeTree:s}=this,n=(s[u]&v.VALUE_LENGTH)>>14;return this.emitNamedEntityData(u,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,u,s){const{decodeTree:n}=this;return this.emitCodePoint(u===1?n[t]&~(v.VALUE_LENGTH|v.FLAG13):n[t+1],s),u===3&&this.emitCodePoint(n[t+2],s),s}end(){var t;switch(this.state){case H.NamedEntity:return this.result!==0&&(this.decodeMode!==j.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case H.NumericDecimal:return this.emitNumericEntity(0,2);case H.NumericHex:return this.emitNumericEntity(0,3);case H.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case H.EntityStart:return 0}}};function kn(e,t,u,s){const n=(t&v.BRANCH_LENGTH)>>7,i=t&v.JUMP_TABLE;if(n===0)return i!==0&&s===i?u:-1;if(i){const l=s-i;return l<0||l>=n?-1:e[u+l]-1}const r=n+1>>1;let h=0,d=n-1;for(;h<=d;){const l=h+d>>>1,T=l>>1,C=e[u+T]>>(l&1)*8&255;if(C<s)h=l+1;else if(C>s)d=l-1;else return e[u+r+l]}return-1}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 m;(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.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(m||(m={}));function ee(e){return e===_.Space||e===_.NewLine||e===_.Tab||e===_.FormFeed||e===_.CarriageReturn}function je(e){return e===_.Slash||e===_.Gt||ee(e)}function Hn(e){return e>=_.LowerA&&e<=_.LowerZ||e>=_.UpperA&&e<=_.UpperZ}var z;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(z||(z={}));const M={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]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])};let Un=class{constructor({xmlMode:t=!1,decodeEntities:u=!0},s){this.cbs=s,this.state=m.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=m.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=u,this.entityDecoder=new Pn(t?xn:yn,(n,i)=>this.emitCodePoint(n,i))}reset(){this.state=m.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=m.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(t){t===_.Lt||!this.decodeEntities&&this.fastForwardTo(_.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=m.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===_.Amp&&this.startEntity()}stateSpecialStartSequence(t){const u=this.sequenceIndex===this.currentSequence.length;if(!(u?je(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!u){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=m.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===_.Gt||ee(t)){const u=this.index-this.currentSequence.length;if(this.sectionStart<u){const s=this.index;this.index=u,this.cbs.ontext(this.sectionStart,u),this.index=s}this.isSpecial=!1,this.sectionStart=u+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===M.TitleEnd?this.decodeEntities&&t===_.Amp&&this.startEntity():this.fastForwardTo(_.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===_.Lt)}stateCDATASequence(t){t===M.Cdata[this.sequenceIndex]?++this.sequenceIndex===M.Cdata.length&&(this.state=m.InCommentLike,this.currentSequence=M.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=m.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===M.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=m.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!je(t):Hn(t)}startSpecial(t,u){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=u,this.state=m.SpecialStartSequence}stateBeforeTagName(t){if(t===_.ExclamationMark)this.state=m.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===_.Questionmark)this.state=m.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const u=t|32;this.sectionStart=this.index,this.xmlMode?this.state=m.InTagName:u===M.ScriptEnd[2]?this.state=m.BeforeSpecialS:u===M.TitleEnd[2]||u===M.XmpEnd[2]?this.state=m.BeforeSpecialT:this.state=m.InTagName}else t===_.Slash?this.state=m.BeforeClosingTagName:(this.state=m.Text,this.stateText(t))}stateInTagName(t){je(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=m.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){ee(t)||(t===_.Gt?this.state=m.Text:(this.state=this.isTagStartChar(t)?m.InClosingTagName:m.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===_.Gt||ee(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=m.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===_.Gt||this.fastForwardTo(_.Gt))&&(this.state=m.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===_.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=m.InSpecialTag,this.sequenceIndex=0):this.state=m.Text,this.sectionStart=this.index+1):t===_.Slash?this.state=m.InSelfClosingTag:ee(t)||(this.state=m.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===_.Gt?(this.cbs.onselfclosingtag(this.index),this.state=m.Text,this.sectionStart=this.index+1,this.isSpecial=!1):ee(t)||(this.state=m.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===_.Eq||je(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=m.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===_.Eq?this.state=m.BeforeAttributeValue:t===_.Slash||t===_.Gt?(this.cbs.onattribend(z.NoValue,this.sectionStart),this.sectionStart=-1,this.state=m.BeforeAttributeName,this.stateBeforeAttributeName(t)):ee(t)||(this.cbs.onattribend(z.NoValue,this.sectionStart),this.state=m.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===_.DoubleQuote?(this.state=m.InAttributeValueDq,this.sectionStart=this.index+1):t===_.SingleQuote?(this.state=m.InAttributeValueSq,this.sectionStart=this.index+1):ee(t)||(this.sectionStart=this.index,this.state=m.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,u){t===u||!this.decodeEntities&&this.fastForwardTo(u)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(u===_.DoubleQuote?z.Double:z.Single,this.index+1),this.state=m.BeforeAttributeName):this.decodeEntities&&t===_.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,_.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,_.SingleQuote)}stateInAttributeValueNoQuotes(t){ee(t)||t===_.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(z.Unquoted,this.index),this.state=m.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===_.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===_.OpeningSquareBracket?(this.state=m.CDATASequence,this.sequenceIndex=0):this.state=t===_.Dash?m.BeforeComment:m.InDeclaration}stateInDeclaration(t){(t===_.Gt||this.fastForwardTo(_.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=m.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===_.Gt||this.fastForwardTo(_.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=m.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===_.Dash?(this.state=m.InCommentLike,this.currentSequence=M.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=m.InDeclaration}stateInSpecialComment(t){(t===_.Gt||this.fastForwardTo(_.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=m.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const u=t|32;u===M.ScriptEnd[3]?this.startSpecial(M.ScriptEnd,4):u===M.StyleEnd[3]?this.startSpecial(M.StyleEnd,4):(this.state=m.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){switch(t|32){case M.TitleEnd[3]:{this.startSpecial(M.TitleEnd,4);break}case M.TextareaEnd[3]:{this.startSpecial(M.TextareaEnd,4);break}case M.XmpEnd[3]:{this.startSpecial(M.XmpEnd,4);break}default:this.state=m.InTagName,this.stateInTagName(t)}}startEntity(){this.baseState=this.state,this.state=m.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?j.Strict:this.baseState===m.Text||this.baseState===m.InSpecialTag?j.Legacy:j.Attribute)}stateInEntity(){const t=this.index-this.offset,u=this.entityDecoder.write(this.buffer,t);if(u>=0)this.state=this.baseState,u===0&&(this.index-=1);else{if(t<this.buffer.length&&this.buffer.charCodeAt(t)===_.Amp){this.state=this.baseState,this.index-=1;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===m.Text||this.state===m.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===m.InAttributeValueDq||this.state===m.InAttributeValueSq||this.state===m.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();){const t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case m.Text:{this.stateText(t);break}case m.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case m.InSpecialTag:{this.stateInSpecialTag(t);break}case m.CDATASequence:{this.stateCDATASequence(t);break}case m.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case m.InAttributeName:{this.stateInAttributeName(t);break}case m.InCommentLike:{this.stateInCommentLike(t);break}case m.InSpecialComment:{this.stateInSpecialComment(t);break}case m.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case m.InTagName:{this.stateInTagName(t);break}case m.InClosingTagName:{this.stateInClosingTagName(t);break}case m.BeforeTagName:{this.stateBeforeTagName(t);break}case m.AfterAttributeName:{this.stateAfterAttributeName(t);break}case m.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case m.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case m.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case m.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case m.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case m.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case m.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case m.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case m.InDeclaration:{this.stateInDeclaration(t);break}case m.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case m.BeforeComment:{this.stateBeforeComment(t);break}case m.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case m.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===m.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===m.InCommentLike?this.currentSequence===M.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===m.InTagName||this.state===m.BeforeAttributeName||this.state===m.BeforeAttributeValue||this.state===m.AfterAttributeName||this.state===m.InAttributeName||this.state===m.InAttributeValueSq||this.state===m.InAttributeValueDq||this.state===m.InAttributeValueNq||this.state===m.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,u){this.baseState!==m.Text&&this.baseState!==m.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+u,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+u,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}};const Ie=new Set(["input","option","optgroup","select","button","datalist","textarea"]),L=new Set(["p"]),Bu=new Set(["thead","tbody"]),Ou=new Set(["dd","dt"]),Ru=new Set(["rt","rp"]),Qn=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",L],["h1",L],["h2",L],["h3",L],["h4",L],["h5",L],["h6",L],["select",Ie],["input",Ie],["output",Ie],["button",Ie],["datalist",Ie],["textarea",Ie],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Ou],["dt",Ou],["address",L],["article",L],["aside",L],["blockquote",L],["details",L],["div",L],["dl",L],["fieldset",L],["figcaption",L],["figure",L],["footer",L],["form",L],["header",L],["hr",L],["main",L],["nav",L],["ol",L],["pre",L],["section",L],["table",L],["ul",L],["rt",Ru],["rp",Ru],["tbody",Bu],["tfoot",Bu]]),Yn=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Lu=new Set(["math","svg"]),yu=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),vn=/\s|\//;let Kn=class{constructor(t,u={}){var s,n,i,r,h,d;this.options=u,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(s=u.lowerCaseTags)!==null&&s!==void 0?s:this.htmlMode,this.lowerCaseAttributeNames=(n=u.lowerCaseAttributeNames)!==null&&n!==void 0?n:this.htmlMode,this.recognizeSelfClosing=(i=u.recognizeSelfClosing)!==null&&i!==void 0?i:!this.htmlMode,this.tokenizer=new((r=u.Tokenizer)!==null&&r!==void 0?r:Un)(this.options,this),this.foreignContext=[!this.htmlMode],(d=(h=this.cbs).onparserinit)===null||d===void 0||d.call(h,this)}ontext(t,u){var s,n;const i=this.getSlice(t,u);this.endIndex=u-1,(n=(s=this.cbs).ontext)===null||n===void 0||n.call(s,i),this.startIndex=u}ontextentity(t,u){var s,n;this.endIndex=u-1,(n=(s=this.cbs).ontext)===null||n===void 0||n.call(s,Su(t)),this.startIndex=u}isVoidElement(t){return this.htmlMode&&Yn.has(t)}onopentagname(t,u){this.endIndex=u;let s=this.getSlice(t,u);this.lowerCaseTagNames&&(s=s.toLowerCase()),this.emitOpenTag(s)}emitOpenTag(t){var u,s,n,i;this.openTagStart=this.startIndex,this.tagname=t;const r=this.htmlMode&&Qn.get(t);if(r)for(;this.stack.length>0&&r.has(this.stack[0]);){const h=this.stack.shift();(s=(u=this.cbs).onclosetag)===null||s===void 0||s.call(u,h,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(Lu.has(t)?this.foreignContext.unshift(!0):yu.has(t)&&this.foreignContext.unshift(!1))),(i=(n=this.cbs).onopentagname)===null||i===void 0||i.call(n,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var u,s;this.startIndex=this.openTagStart,this.attribs&&((s=(u=this.cbs).onopentag)===null||s===void 0||s.call(u,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,u){var s,n,i,r,h,d,l,T;this.endIndex=u;let I=this.getSlice(t,u);if(this.lowerCaseTagNames&&(I=I.toLowerCase()),this.htmlMode&&(Lu.has(I)||yu.has(I))&&this.foreignContext.shift(),this.isVoidElement(I))this.htmlMode&&I==="br"&&((r=(i=this.cbs).onopentagname)===null||r===void 0||r.call(i,"br"),(d=(h=this.cbs).onopentag)===null||d===void 0||d.call(h,"br",{},!0),(T=(l=this.cbs).onclosetag)===null||T===void 0||T.call(l,"br",!1));else{const C=this.stack.indexOf(I);if(C!==-1)for(let p=0;p<=C;p++){const S=this.stack.shift();(n=(s=this.cbs).onclosetag)===null||n===void 0||n.call(s,S,p!==C)}else this.htmlMode&&I==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=u+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var u,s;const n=this.tagname;this.endOpenTag(t),this.stack[0]===n&&((s=(u=this.cbs).onclosetag)===null||s===void 0||s.call(u,n,!t),this.stack.shift())}onattribname(t,u){this.startIndex=t;const s=this.getSlice(t,u);this.attribname=this.lowerCaseAttributeNames?s.toLowerCase():s}onattribdata(t,u){this.attribvalue+=this.getSlice(t,u)}onattribentity(t){this.attribvalue+=Su(t)}onattribend(t,u){var s,n;this.endIndex=u,(n=(s=this.cbs).onattribute)===null||n===void 0||n.call(s,this.attribname,this.attribvalue,t===z.Double?'"':t===z.Single?"'":t===z.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const u=t.search(vn);let s=u<0?t:t.substr(0,u);return this.lowerCaseTagNames&&(s=s.toLowerCase()),s}ondeclaration(t,u){this.endIndex=u;const s=this.getSlice(t,u);if(this.cbs.onprocessinginstruction){const n=this.getInstructionName(s);this.cbs.onprocessinginstruction(`!${n}`,`!${s}`)}this.startIndex=u+1}onprocessinginstruction(t,u){this.endIndex=u;const s=this.getSlice(t,u);if(this.cbs.onprocessinginstruction){const n=this.getInstructionName(s);this.cbs.onprocessinginstruction(`?${n}`,`?${s}`)}this.startIndex=u+1}oncomment(t,u,s){var n,i,r,h;this.endIndex=u,(i=(n=this.cbs).oncomment)===null||i===void 0||i.call(n,this.getSlice(t,u-s)),(h=(r=this.cbs).oncommentend)===null||h===void 0||h.call(r),this.startIndex=u+1}oncdata(t,u,s){var n,i,r,h,d,l,T,I,C,p;this.endIndex=u;const S=this.getSlice(t,u-s);!this.htmlMode||this.options.recognizeCDATA?((i=(n=this.cbs).oncdatastart)===null||i===void 0||i.call(n),(h=(r=this.cbs).ontext)===null||h===void 0||h.call(r,S),(l=(d=this.cbs).oncdataend)===null||l===void 0||l.call(d)):((I=(T=this.cbs).oncomment)===null||I===void 0||I.call(T,`[CDATA[${S}]]`),(p=(C=this.cbs).oncommentend)===null||p===void 0||p.call(C)),this.startIndex=u+1}onend(){var t,u;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let s=0;s<this.stack.length;s++)this.cbs.onclosetag(this.stack[s],!0)}(u=(t=this.cbs).onend)===null||u===void 0||u.call(t)}reset(){var t,u,s,n;(u=(t=this.cbs).onreset)===null||u===void 0||u.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(n=(s=this.cbs).onparserinit)===null||n===void 0||n.call(s,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,u){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let s=this.buffers[0].slice(t-this.bufferOffset,u-this.bufferOffset);for(;u-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),s+=this.buffers[0].slice(0,u-this.bufferOffset);return s}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var u,s;if(this.ended){(s=(u=this.cbs).onerror)===null||s===void 0||s.call(u,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var u,s;if(this.ended){(s=(u=this.cbs).onerror)===null||s===void 0||s.call(u,new Error(".end() after done!"));return}t&&this.write(t),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(t){this.write(t)}done(t){this.end(t)}};function Gn(e,t){const u=new Ra(void 0,t);return new Kn(u,t).end(e),u.root}var Ot;const ve=(Ot=Object.hasOwn)!==null&&Ot!==void 0?Ot:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Ke=/\s+/,Kt="data-",cu=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,Wn=/^{[^]*}$|^\[[^]*]$/;function rt(e,t,u){var s;if(!(!e||!D(e))){if((s=e.attribs)!==null&&s!==void 0||(e.attribs={}),!t)return e.attribs;if(ve(e.attribs,t))return!u&&cu.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return Ye(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function Ce(e,t,u){u===null?Is(e,t):e.attribs[t]=`${u}`}function Jn(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 F(this,(u,s)=>{D(u)&&Ce(u,e,t.call(u,s,u.attribs[e]))})}return F(this,u=>{if(D(u))if(typeof e=="object")for(const s of Object.keys(e)){const n=e[s];Ce(u,s,n)}else Ce(u,e,t)})}return arguments.length>1?this:rt(this[0],e,this.options.xmlMode)}function xu(e,t,u){return t in e?e[t]:!u&&cu.test(t)?rt(e,t,!1)!==void 0:rt(e,t,u)}function Rt(e,t,u,s){t in e?e[t]=u:Ce(e,t,!s&&cu.test(t)?u?"":null:`${u}`)}function Zn(e,t){var u;if(typeof e=="string"&&t===void 0){const s=this[0];if(!s)return;switch(e){case"style":{const n=this.css(),i=Object.keys(n);for(let r=0;r<i.length;r++)n[r]=i[r];return n.length=i.length,n}case"tagName":case"nodeName":return D(s)?s.name.toUpperCase():void 0;case"href":case"src":{if(!D(s))return;const n=(u=s.attribs)===null||u===void 0?void 0:u[e];return typeof URL<"u"&&(e==="href"&&(s.tagName==="a"||s.tagName==="link")||e==="src"&&(s.tagName==="img"||s.tagName==="iframe"||s.tagName==="audio"||s.tagName==="video"||s.tagName==="source"))&&n!==void 0&&this.options.baseURI?new URL(n,this.options.baseURI).href:n}case"innerText":return at(s);case"textContent":return pe(s);case"outerHTML":return s.type===zt?this.html():this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return D(s)?xu(s,e,this.options.xmlMode):void 0}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new TypeError("Bad combination of arguments.");return F(this,(s,n)=>{D(s)&&Rt(s,e,t.call(s,n,xu(s,e,this.options.xmlMode)),this.options.xmlMode)})}return F(this,s=>{if(D(s))if(typeof e=="object")for(const n of Object.keys(e)){const i=e[n];Rt(s,n,i,this.options.xmlMode)}else Rt(s,e,t,this.options.xmlMode)})}}function Fu(e,t,u){var s;(s=e.data)!==null&&s!==void 0||(e.data={}),typeof t=="object"?Object.assign(e.data,t):typeof t=="string"&&u!==void 0&&(e.data[t]=u)}function Xn(e){for(const t of Object.keys(e.attribs)){if(!t.startsWith(Kt))continue;const u=Bn(t.slice(Kt.length));ve(e.data,u)||(e.data[u]=bs(e.attribs[t]))}return e.data}function Vn(e,t){const u=Kt+On(t),s=e.data;if(ve(s,t))return s[t];if(ve(e.attribs,u))return s[t]=bs(e.attribs[u])}function bs(e){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;const t=Number(e);if(e===String(t))return t;if(Wn.test(e))try{return JSON.parse(e)}catch{}return e}function qn(e,t){var u;const s=this[0];if(!s||!D(s))return;const n=s;return(u=n.data)!==null&&u!==void 0||(n.data={}),e==null?Xn(n):typeof e=="object"||t!==void 0?(F(this,i=>{D(i)&&(typeof e=="object"?Fu(i,e):Fu(i,e,t))}),this):Vn(n,e)}function jn(e){const t=arguments.length===0,u=this[0];if(!u||!D(u))return t?void 0:this;switch(u.name){case"textarea":return this.text(e);case"select":{const s=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");const n=typeof e=="object"?e:[e];for(const i of n)this.find(`option[value="${i}"]`).attr("selected","");return this}return this.attr("multiple")?s.toArray().map(n=>Ye(n.children)):s.attr("value")}case"button":case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function Is(e,t){!e.attribs||!ve(e.attribs,t)||delete e.attribs[t]}function At(e){return e?e.trim().split(Ke):[]}function zn(e){const t=At(e);for(const u of t)F(this,s=>{D(s)&&Is(s,u)});return this}function $n(e){return this.toArray().some(t=>{const u=D(t)&&t.attribs.class;let s=-1;if(u&&e.length>0)for(;(s=u.indexOf(e,s+1))>-1;){const n=s+e.length;if((s===0||Ke.test(u[s-1]))&&(n===u.length||Ke.test(u[n])))return!0}return!1})}function Cs(e){if(typeof e=="function")return F(this,(s,n)=>{if(D(s)){const i=s.attribs.class||"";Cs.call([s],e.call(s,n,i))}});if(!e||typeof e!="string")return this;const t=e.split(Ke),u=this.length;for(let s=0;s<u;s++){const n=this[s];if(!D(n))continue;const i=rt(n,"class",!1);if(i){let r=` ${i} `;for(const h of t){const d=`${h} `;r.includes(` ${d}`)||(r+=d)}Ce(n,"class",r.trim())}else Ce(n,"class",t.join(" ").trim())}return this}function ps(e){if(typeof e=="function")return F(this,(n,i)=>{D(n)&&ps.call([n],e.call(n,i,n.attribs.class||""))});const t=At(e),u=t.length,s=arguments.length===0;return F(this,n=>{if(D(n))if(s)n.attribs.class="";else{const i=At(n.attribs.class);let r=!1;for(let h=0;h<u;h++){const d=i.indexOf(t[h]);d!==-1&&(i.splice(d,1),r=!0,h--)}r&&(n.attribs.class=i.join(" "))}})}function _s(e,t){if(typeof e=="function")return F(this,(r,h)=>{D(r)&&_s.call([r],e.call(r,h,r.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;const u=e.split(Ke),s=u.length,n=typeof t=="boolean"?t?1:-1:0,i=this.length;for(let r=0;r<i;r++){const h=this[r];if(!D(h))continue;const d=At(h.attribs.class);for(let l=0;l<s;l++){const T=d.indexOf(u[l]);n>=0&&T===-1?d.push(u[l]):n<=0&&T!==-1&&d.splice(T,1)}h.attribs.class=d.join(" ")}return this}const ei=Object.freeze(Object.defineProperty({__proto__:null,addClass:Cs,attr:Jn,data:qn,hasClass:$n,prop:Zn,removeAttr:zn,removeClass:ps,toggleClass:_s,val:jn},Symbol.toStringTag,{value:"Module"}));var N;(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"})(N||(N={}));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={}));const wu=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,ti=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,ui=new Map([[126,k.Element],[94,k.Start],[36,k.End],[42,k.Any],[33,k.Not],[124,k.Hyphen]]),si=new Set(["has","not","matches","is","where","host","host-context"]);function Fe(e){switch(e.type){case N.Adjacent:case N.Child:case N.Descendant:case N.Parent:case N.Sibling:case N.ColumnCombinator:return!0;default:return!1}}const ai=new Set(["contains","icontains"]);function ni(e,t,u){const s=parseInt(t,16)-65536;return s!==s||u?t:s<0?String.fromCharCode(s+65536):String.fromCharCode(s>>10|55296,s&1023|56320)}function Re(e){return e.replace(ti,ni)}function Lt(e){return e===39||e===34}function Mu(e){return e===32||e===9||e===10||e===12||e===13}function It(e){const t=[],u=Ns(t,`${e}`,0);if(u<e.length)throw new Error(`Unmatched selector: ${e.slice(u)}`);return t}function Ns(e,t,u){let s=[];function n(C){const p=t.slice(u+C).match(wu);if(!p)throw new Error(`Expected name, found ${t.slice(u)}`);const[S]=p;return u+=C+S.length,Re(S)}function i(C){for(u+=C;u<t.length&&Mu(t.charCodeAt(u));)u++}function r(){u+=1;const C=u;let p=1;for(;p>0&&u<t.length;u++)t.charCodeAt(u)===40&&!h(u)?p++:t.charCodeAt(u)===41&&!h(u)&&p--;if(p)throw new Error("Parenthesis not matched");return Re(t.slice(C,u-1))}function h(C){let p=0;for(;t.charCodeAt(--C)===92;)p++;return(p&1)===1}function d(){if(s.length>0&&Fe(s[s.length-1]))throw new Error("Did not expect successive traversals.")}function l(C){if(s.length>0&&s[s.length-1].type===N.Descendant){s[s.length-1].type=C;return}d(),s.push({type:C})}function T(C,p){s.push({type:N.Attribute,name:C,action:p,value:n(1),namespace:null,ignoreCase:"quirks"})}function I(){if(s.length&&s[s.length-1].type===N.Descendant&&s.pop(),s.length===0)throw new Error("Empty sub-selector");e.push(s)}if(i(0),t.length===u)return u;e:for(;u<t.length;){const C=t.charCodeAt(u);switch(C){case 32:case 9:case 10:case 12:case 13:{(s.length===0||s[0].type!==N.Descendant)&&(d(),s.push({type:N.Descendant})),i(1);break}case 62:{l(N.Child),i(1);break}case 60:{l(N.Parent),i(1);break}case 126:{l(N.Sibling),i(1);break}case 43:{l(N.Adjacent),i(1);break}case 46:{T("class",k.Element);break}case 35:{T("id",k.Equals);break}case 91:{i(1);let p,S=null;t.charCodeAt(u)===124?p=n(1):t.startsWith("*|",u)?(S="*",p=n(2)):(p=n(0),t.charCodeAt(u)===124&&t.charCodeAt(u+1)!==61&&(S=p,p=n(1))),i(0);let P=k.Exists;const X=ui.get(t.charCodeAt(u));if(X){if(P=X,t.charCodeAt(u+1)!==61)throw new Error("Expected `=`");i(2)}else t.charCodeAt(u)===61&&(P=k.Equals,i(1));let me="",be=null;if(P!=="exists"){if(Lt(t.charCodeAt(u))){const qe=t.charCodeAt(u);let oe=u+1;for(;oe<t.length&&(t.charCodeAt(oe)!==qe||h(oe));)oe+=1;if(t.charCodeAt(oe)!==qe)throw new Error("Attribute value didn't end");me=Re(t.slice(u+1,oe)),u=oe+1}else{const qe=u;for(;u<t.length&&(!Mu(t.charCodeAt(u))&&t.charCodeAt(u)!==93||h(u));)u+=1;me=Re(t.slice(qe,u))}i(0);const Oe=t.charCodeAt(u)|32;Oe===115?(be=!1,i(1)):Oe===105&&(be=!0,i(1))}if(t.charCodeAt(u)!==93)throw new Error("Attribute selector didn't terminate");u+=1;const Be={type:N.Attribute,name:p,action:P,value:me,namespace:S,ignoreCase:be};s.push(Be);break}case 58:{if(t.charCodeAt(u+1)===58){s.push({type:N.PseudoElement,name:n(2).toLowerCase(),data:t.charCodeAt(u)===40?r():null});continue}const p=n(1).toLowerCase();let S=null;if(t.charCodeAt(u)===40)if(si.has(p)){if(Lt(t.charCodeAt(u+1)))throw new Error(`Pseudo-selector ${p} cannot be quoted`);if(S=[],u=Ns(S,t,u+1),t.charCodeAt(u)!==41)throw new Error(`Missing closing parenthesis in :${p} (${t})`);u+=1}else{if(S=r(),ai.has(p)){const P=S.charCodeAt(0);P===S.charCodeAt(S.length-1)&&Lt(P)&&(S=S.slice(1,-1))}S=Re(S)}s.push({type:N.Pseudo,name:p,data:S});break}case 44:{I(),s=[],i(1);break}default:{if(t.startsWith("/*",u)){const P=t.indexOf("*/",u+2);if(P<0)throw new Error("Comment was not terminated");u=P+2,s.length===0&&i(0);break}let p=null,S;if(C===42)u+=1,S="*";else if(C===124){if(S="",t.charCodeAt(u+1)===124){l(N.ColumnCombinator),i(2);break}}else if(wu.test(t.slice(u)))S=n(0);else break e;t.charCodeAt(u)===124&&t.charCodeAt(u+1)!==124&&(p=S,t.charCodeAt(u+1)===42?(S="*",u+=2):S=n(1)),s.push(S==="*"?{type:N.Universal,namespace:p}:{type:N.Tag,name:S,namespace:p})}}}return I(),u}function ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ct={trueFunc:function(){return!0},falseFunc:function(){return!1}};const B=ii(ct),Ss=new Map([[N.Universal,50],[N.Tag,30],[N.Attribute,1],[N.Pseudo,0]]);function ou(e){return!Ss.has(e.type)}const ri=new Map([[k.Exists,10],[k.Equals,8],[k.Not,7],[k.Start,6],[k.End,6],[k.Any,5]]);function Ai(e){const t=e.map(Ds);for(let u=1;u<e.length;u++){const s=t[u];if(!(s<0))for(let n=u-1;n>=0&&s<t[n];n--){const i=e[n+1];e[n+1]=e[n],e[n]=i,t[n+1]=t[n],t[n]=s}}}function Ds(e){var t,u;let s=(t=Ss.get(e.type))!==null&&t!==void 0?t:-1;return e.type===N.Attribute?(s=(u=ri.get(e.action))!==null&&u!==void 0?u:4,e.action===k.Equals&&e.name==="id"&&(s=9),e.ignoreCase&&(s>>=1)):e.type===N.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?s=0:Array.isArray(e.data)?(s=Math.min(...e.data.map(n=>Math.min(...n.map(Ds)))),s<0&&(s=0)):s=2:s=3),s}const ci=/[-[\]{}()*+?.,\\^$|#\s]/g;function Pu(e){return e.replace(ci,"\\$&")}const oi=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 he(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&oi.has(e.name)}const hi={equals(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;return he(t,u)?(i=i.toLowerCase(),r=>{const h=s.getAttributeValue(r,n);return h!=null&&h.length===i.length&&h.toLowerCase()===i&&e(r)}):r=>s.getAttributeValue(r,n)===i&&e(r)},hyphen(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;const r=i.length;return he(t,u)?(i=i.toLowerCase(),function(d){const l=s.getAttributeValue(d,n);return l!=null&&(l.length===r||l.charAt(r)==="-")&&l.substr(0,r).toLowerCase()===i&&e(d)}):function(d){const l=s.getAttributeValue(d,n);return l!=null&&(l.length===r||l.charAt(r)==="-")&&l.substr(0,r)===i&&e(d)}},element(e,t,u){const{adapter:s}=u,{name:n,value:i}=t;if(/\s/.test(i))return B.falseFunc;const r=new RegExp(`(?:^|\\s)${Pu(i)}(?:$|\\s)`,he(t,u)?"i":"");return function(d){const l=s.getAttributeValue(d,n);return l!=null&&l.length>=i.length&&r.test(l)&&e(d)}},exists(e,{name:t},{adapter:u}){return s=>u.hasAttrib(s,t)&&e(s)},start(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;const r=i.length;return r===0?B.falseFunc:he(t,u)?(i=i.toLowerCase(),h=>{const d=s.getAttributeValue(h,n);return d!=null&&d.length>=r&&d.substr(0,r).toLowerCase()===i&&e(h)}):h=>{var d;return!!(!((d=s.getAttributeValue(h,n))===null||d===void 0)&&d.startsWith(i))&&e(h)}},end(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;const r=-i.length;return r===0?B.falseFunc:he(t,u)?(i=i.toLowerCase(),h=>{var d;return((d=s.getAttributeValue(h,n))===null||d===void 0?void 0:d.substr(r).toLowerCase())===i&&e(h)}):h=>{var d;return!!(!((d=s.getAttributeValue(h,n))===null||d===void 0)&&d.endsWith(i))&&e(h)}},any(e,t,u){const{adapter:s}=u,{name:n,value:i}=t;if(i==="")return B.falseFunc;if(he(t,u)){const r=new RegExp(Pu(i),"i");return function(d){const l=s.getAttributeValue(d,n);return l!=null&&l.length>=i.length&&r.test(l)&&e(d)}}return r=>{var h;return!!(!((h=s.getAttributeValue(r,n))===null||h===void 0)&&h.includes(i))&&e(r)}},not(e,t,u){const{adapter:s}=u,{name:n}=t;let{value:i}=t;return i===""?r=>!!s.getAttributeValue(r,n)&&e(r):he(t,u)?(i=i.toLowerCase(),r=>{const h=s.getAttributeValue(r,n);return(h==null||h.length!==i.length||h.toLowerCase()!==i)&&e(r)}):r=>s.getAttributeValue(r,n)!==i&&e(r)}},di=new Set([9,10,12,13,32]),ku=48,li=57;function fi(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,u=0,s=i(),n=r();if(t<e.length&&e.charAt(t)==="n"&&(t++,u=s*(n??1),h(),t<e.length?(s=i(),h(),n=r()):s=n=0),n===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[u,s*n];function i(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function r(){const d=t;let l=0;for(;t<e.length&&e.charCodeAt(t)>=ku&&e.charCodeAt(t)<=li;)l=l*10+(e.charCodeAt(t)-ku),t++;return t===d?null:l}function h(){for(;t<e.length&&di.has(e.charCodeAt(t));)t++}}function Ei(e){const t=e[0],u=e[1]-1;if(u<0&&t<=0)return B.falseFunc;if(t===-1)return i=>i<=u;if(t===0)return i=>i===u;if(t===1)return u<0?B.trueFunc:i=>i>=u;const s=Math.abs(t),n=(u%s+s)%s;return t>1?i=>i>=u&&i%s===n:i=>i<=u&&i%s===n}function ze(e){return Ei(fi(e))}function $e(e,t){return u=>{const s=t.getParent(u);return s!=null&&t.isTag(s)&&e(u)}}const Gt={contains(e,t,{adapter:u}){return function(n){return e(n)&&u.getText(n).includes(t)}},icontains(e,t,{adapter:u}){const s=t.toLowerCase();return function(i){return e(i)&&u.getText(i).toLowerCase().includes(s)}},"nth-child"(e,t,{adapter:u,equals:s}){const n=ze(t);return n===B.falseFunc?B.falseFunc:n===B.trueFunc?$e(e,u):function(r){const h=u.getSiblings(r);let d=0;for(let l=0;l<h.length&&!s(r,h[l]);l++)u.isTag(h[l])&&d++;return n(d)&&e(r)}},"nth-last-child"(e,t,{adapter:u,equals:s}){const n=ze(t);return n===B.falseFunc?B.falseFunc:n===B.trueFunc?$e(e,u):function(r){const h=u.getSiblings(r);let d=0;for(let l=h.length-1;l>=0&&!s(r,h[l]);l--)u.isTag(h[l])&&d++;return n(d)&&e(r)}},"nth-of-type"(e,t,{adapter:u,equals:s}){const n=ze(t);return n===B.falseFunc?B.falseFunc:n===B.trueFunc?$e(e,u):function(r){const h=u.getSiblings(r);let d=0;for(let l=0;l<h.length;l++){const T=h[l];if(s(r,T))break;u.isTag(T)&&u.getName(T)===u.getName(r)&&d++}return n(d)&&e(r)}},"nth-last-of-type"(e,t,{adapter:u,equals:s}){const n=ze(t);return n===B.falseFunc?B.falseFunc:n===B.trueFunc?$e(e,u):function(r){const h=u.getSiblings(r);let d=0;for(let l=h.length-1;l>=0;l--){const T=h[l];if(s(r,T))break;u.isTag(T)&&u.getName(T)===u.getName(r)&&d++}return n(d)&&e(r)}},root(e,t,{adapter:u}){return s=>{const n=u.getParent(s);return(n==null||!u.isTag(n))&&e(s)}},scope(e,t,u,s){const{equals:n}=u;return!s||s.length===0?Gt.root(e,t,u):s.length===1?i=>n(s[0],i)&&e(i):i=>s.includes(i)&&e(i)},hover:yt("isHovered"),visited:yt("isVisited"),active:yt("isActive")};function yt(e){return function(u,s,{adapter:n}){const i=n[e];return typeof i!="function"?B.falseFunc:function(h){return i(h)&&u(h)}}}const Hu={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;const s=t.getSiblings(e).find(n=>t.isTag(n));return s!=null&&u(e,s)},"last-child"(e,{adapter:t,equals:u}){const s=t.getSiblings(e);for(let n=s.length-1;n>=0;n--){if(u(e,s[n]))return!0;if(t.isTag(s[n]))break}return!1},"first-of-type"(e,{adapter:t,equals:u}){const s=t.getSiblings(e),n=t.getName(e);for(let i=0;i<s.length;i++){const r=s[i];if(u(e,r))return!0;if(t.isTag(r)&&t.getName(r)===n)break}return!1},"last-of-type"(e,{adapter:t,equals:u}){const s=t.getSiblings(e),n=t.getName(e);for(let i=s.length-1;i>=0;i--){const r=s[i];if(u(e,r))return!0;if(t.isTag(r)&&t.getName(r)===n)break}return!1},"only-of-type"(e,{adapter:t,equals:u}){const s=t.getName(e);return t.getSiblings(e).every(n=>u(e,n)||!t.isTag(n)||t.getName(n)!==s)},"only-child"(e,{adapter:t,equals:u}){return t.getSiblings(e).every(s=>u(e,s)||!t.isTag(s))}};function Uu(e,t,u,s){if(u===null){if(e.length>s)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===s)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const Ti={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
|
|
3
3
|
:is(button, input, select, textarea, optgroup, option)[disabled],
|
|
4
4
|
optgroup[disabled] > option,
|
|
5
5
|
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
|
|
6
|
-
)`,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])"},Ca={};function Gc(e,t){return e===j.falseFunc?j.falseFunc:s=>t.isTag(s)&&e(s)}function ya(e,t){const s=t.getSiblings(e);if(s.length<=1)return[];const r=s.indexOf(e);return r<0||r===s.length-1?[]:s.slice(r+1).filter(t.isTag)}function Dr(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}}const sr=(e,t,s,r,n)=>{const a=n(t,Dr(s),r);return a===j.trueFunc?e:a===j.falseFunc?j.falseFunc:u=>a(u)&&e(u)},rr={is:sr,matches:sr,where:sr,not(e,t,s,r,n){const a=n(t,Dr(s),r);return a===j.falseFunc?e:a===j.trueFunc?j.falseFunc:u=>!a(u)&&e(u)},has(e,t,s,r,n){const{adapter:a}=s,u=Dr(s);u.relativeSelector=!0;const c=t.some(p=>p.some(en))?[Ca]:void 0,h=n(t,u,c);if(h===j.falseFunc)return j.falseFunc;const f=Gc(h,a);if(c&&h!==j.trueFunc){const{shouldTestNextSiblings:p=!1}=h;return b=>{if(!e(b))return!1;c[0]=b;const A=a.getChildren(b),I=p?[...A,...ya(b,a)]:A;return a.existsOne(f,I)}}return p=>e(p)&&a.existsOne(f,a.getChildren(p))}};function Kc(e,t,s,r,n){var a;const{name:u,data:c}=t;if(Array.isArray(c)){if(!(u in rr))throw new Error(`Unknown pseudo-class :${u}(${c})`);return rr[u](e,c,s,r,n)}const h=(a=s.pseudos)===null||a===void 0?void 0:a[u],f=typeof h=="string"?h:Wc[u];if(typeof f=="string"){if(c!=null)throw new Error(`Pseudo ${u} doesn't have any arguments`);const p=Fs(f);return rr.is(e,p,s,r,n)}if(typeof h=="function")return si(h,u,c,1),p=>h(p,c)&&e(p);if(u in Nr)return Nr[u](e,c,s,r);if(u in ti){const p=ti[u];return si(p,u,c,2),b=>p(b,s,c)&&e(b)}throw new Error(`Unknown pseudo-class :${u}`)}function nr(e,t){const s=t.getParent(e);return s&&t.isTag(s)?s:null}function qc(e,t,s,r,n){const{adapter:a,equals:u}=s;switch(t.type){case Q.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Q.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Q.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!s.xmlMode||s.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),Hc[t.action](e,t,s)}case Q.Pseudo:return Kc(e,t,s,r,n);case Q.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:c}=t;return(!s.xmlMode||s.lowerCaseTags)&&(c=c.toLowerCase()),function(f){return a.getName(f)===c&&e(f)}}case Q.Descendant:{if(s.cacheResults===!1||typeof WeakSet>"u")return function(f){let p=f;for(;p=nr(p,a);)if(e(p))return!0;return!1};const c=new WeakSet;return function(f){let p=f;for(;p=nr(p,a);)if(!c.has(p)){if(a.isTag(p)&&e(p))return!0;c.add(p)}return!1}}case"_flexibleDescendant":return function(h){let f=h;do if(e(f))return!0;while(f=nr(f,a));return!1};case Q.Parent:return function(h){return a.getChildren(h).some(f=>a.isTag(f)&&e(f))};case Q.Child:return function(h){const f=a.getParent(h);return f!=null&&a.isTag(f)&&e(f)};case Q.Sibling:return function(h){const f=a.getSiblings(h);for(let p=0;p<f.length;p++){const b=f[p];if(u(h,b))break;if(a.isTag(b)&&e(b))return!0}return!1};case Q.Adjacent:return a.prevElementSibling?function(h){const f=a.prevElementSibling(h);return f!=null&&e(f)}:function(h){const f=a.getSiblings(h);let p;for(let b=0;b<f.length;b++){const A=f[b];if(u(h,A))break;a.isTag(A)&&(p=A)}return!!p&&e(p)};case Q.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function Sa(e){return e.type===Q.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(Sa)))}const Jc={type:Q.Descendant},jc={type:"_flexibleDescendant"},Zc={type:Q.Pseudo,name:"scope",data:null};function Vc(e,{adapter:t},s){const r=!!(s!=null&&s.every(n=>{const a=t.isTag(n)&&t.getParent(n);return n===Ca||a&&t.isTag(a)}));for(const n of e){if(!(n.length>0&&en(n[0])&&n[0].type!==Q.Descendant))if(r&&!n.some(Sa))n.unshift(Jc);else continue;n.unshift(Zc)}}function Na(e,t,s){var r;e.forEach(kc),s=(r=t.context)!==null&&r!==void 0?r:s;const n=Array.isArray(s),a=s&&(Array.isArray(s)?s:[s]);if(t.relativeSelector!==!1)Vc(e,t,a);else if(e.some(h=>h.length>0&&en(h[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let u=!1;const c=e.map(h=>{if(h.length>=2){const[f,p]=h;f.type!==Q.Pseudo||f.name!=="scope"||(n&&p.type===Q.Descendant?h[1]=jc:(p.type===Q.Adjacent||p.type===Q.Sibling)&&(u=!0))}return Xc(h,t,a)}).reduce(zc,j.falseFunc);return c.shouldTestNextSiblings=u,c}function Xc(e,t,s){var r;return e.reduce((n,a)=>n===j.falseFunc?j.falseFunc:qc(n,a,t,s,Na),(r=t.rootFunc)!==null&&r!==void 0?r:j.trueFunc)}function zc(e,t){return t===j.falseFunc||e===j.trueFunc?e:e===j.falseFunc||t===j.trueFunc?t:function(r){return e(r)||t(r)}}const Da=(e,t)=>e===t,$c={adapter:ks,equals:Da};function eA(e){var t,s,r,n;const a=e??$c;return(t=a.adapter)!==null&&t!==void 0||(a.adapter=ks),(s=a.equals)!==null&&s!==void 0||(a.equals=(n=(r=a.adapter)===null||r===void 0?void 0:r.equals)!==null&&n!==void 0?n:Da),a}function tA(e){return function(s,r,n){const a=eA(r);return e(s,a,n)}}const tn=tA(Na);function Ra(e,t,s=!1){return s&&(e=sA(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function sA(e,t){const s=Array.isArray(e)?e.slice(0):[e],r=s.length;for(let n=0;n<r;n++){const a=ya(s[n],t);s.push(...a)}return s}const rA=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function Cs(e){return e.type!=="pseudo"?!1:rA.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(Cs)):!1}function nA(e,t,s){const 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,s):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*s;case"even":return 2*s-1;case"last":case"not":return 1/0}}function iA(e){for(;e.parent;)e=e.parent;return e}function sn(e){const t=[],s=[];for(const r of e)r.some(Cs)?t.push(r):s.push(r);return[s,t]}const aA={type:Q.Universal,namespace:null},uA={type:Q.Pseudo,name:"scope",data:null};function Oa(e,t,s={}){return Ba([e],t,s)}function Ba(e,t,s={}){if(typeof t=="function")return e.some(t);const[r,n]=sn(Fs(t));return r.length>0&&e.some(tn(r,s))||n.some(a=>xa(a,e,s).length>0)}function oA(e,t,s,r){const n=typeof s=="string"?parseInt(s,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(n)&&Math.abs(n)<t.length?[n<0?t[t.length+n]:t[n]]:[];case"gt":return isFinite(n)?t.slice(n+1):[];case"even":return t.filter((a,u)=>u%2===0);case"odd":return t.filter((a,u)=>u%2===1);case"not":{const a=new Set(La(s,t,r));return t.filter(u=>!a.has(u))}}}function wa(e,t,s={}){return La(Fs(e),t,s)}function La(e,t,s){if(t.length===0)return[];const[r,n]=sn(e);let a;if(r.length){const u=Or(t,r,s);if(n.length===0)return u;u.length&&(a=new Set(u))}for(let u=0;u<n.length&&(a==null?void 0:a.size)!==t.length;u++){const c=n[u];if((a?t.filter(p=>W(p)&&!a.has(p)):t).length===0)break;const f=xa(c,t,s);if(f.length)if(a)f.forEach(p=>a.add(p));else{if(u===n.length-1)return f;a=new Set(f)}}return typeof a<"u"?a.size===t.length?t:t.filter(u=>a.has(u)):[]}function xa(e,t,s){var r;if(e.some(Lt)){const n=(r=s.root)!==null&&r!==void 0?r:iA(t[0]),a={...s,context:t,relativeSelector:!1};return e.push(uA),ys(n,e,a,!0,t.length)}return ys(t,e,s,!1,t.length)}function cA(e,t,s={},r=1/0){if(typeof e=="function")return Pa(t,e);const[n,a]=sn(Fs(e)),u=a.map(c=>ys(t,c,s,!0,r));return n.length&&u.push(Rr(t,n,s,r)),u.length===0?[]:u.length===1?u[0]:It(u.reduce((c,h)=>[...c,...h]))}function ys(e,t,s,r,n){const a=t.findIndex(Cs),u=t.slice(0,a),c=t[a],h=t.length-1===a?n:1/0,f=nA(c.name,c.data,h);if(f===0)return[];const b=(u.length===0&&!Array.isArray(e)?Ps(e).filter(W):u.length===0?(Array.isArray(e)?e:[e]).filter(W):r||u.some(Lt)?Rr(e,[u],s,f):Or(e,[u],s)).slice(0,f);let A=oA(c.name,b,c.data,s);if(A.length===0||t.length===a+1)return A;const I=t.slice(a+1),E=I.some(Lt);if(E){if(Lt(I[0])){const{type:x}=I[0];(x===Q.Sibling||x===Q.Adjacent)&&(A=Ra(A,ks,!0)),I.unshift(aA)}s={...s,relativeSelector:!1,rootFunc:x=>A.includes(x)}}else s.rootFunc&&s.rootFunc!==Is.trueFunc&&(s={...s,rootFunc:Is.trueFunc});return I.some(Cs)?ys(A,I,s,!1,n):E?Rr(A,[I],s,n):Or(A,[I],s)}function Rr(e,t,s,r){const n=tn(t,s,e);return Pa(e,n,r)}function Pa(e,t,s=1/0){const r=Ra(e,ks,t.shouldTestNextSiblings);return Vr(n=>W(n)&&t(n),r,!0,s)}function Or(e,t,s){const r=(Array.isArray(e)?e:[e]).filter(W);if(r.length===0)return r;const n=tn(t,s);return n===Is.trueFunc?r:r.filter(n)}const AA=/^\s*(?:[+~]|:scope\b)/;function hA(e){if(!e)return this._make([]);if(typeof e!="string"){const t=qe(e)?e.toArray():[e],s=this.toArray();return this._make(t.filter(r=>s.some(n=>la(n,r))))}return this._findBySelector(e,Number.POSITIVE_INFINITY)}function lA(e,t){var s;const r=this.toArray(),n=AA.test(e)?r:this.children().toArray(),a={context:r,root:(s=this._root)===null||s===void 0?void 0:s[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(cA(e,n,a,t))}function rn(e){return function(t,...s){return function(r){var n;let a=e(t,this);return r&&(a=un(a,r,this.options.xmlMode,(n=this._root)===null||n===void 0?void 0:n[0])),this._make(this.length>1&&a.length>1?s.reduce((u,c)=>c(u),a):a)}}}const Zt=rn((e,t)=>{let s=[];for(let r=0;r<t.length;r++){const n=e(t[r]);n.length>0&&(s=s.concat(n))}return s}),nn=rn((e,t)=>{const s=[];for(let r=0;r<t.length;r++){const n=e(t[r]);n!==null&&s.push(n)}return s});function an(e,...t){let s=null;const r=rn((n,a)=>{const u=[];return ue(a,c=>{for(let h;(h=n(c))&&!(s!=null&&s(h,u.length));c=h)u.push(h)}),u})(e,...t);return function(n,a){s=typeof n=="string"?c=>Oa(c,n,this.options):n?Vt(n):null;const u=r.call(this,a);return s=null,u}}function Ct(e){return e.length>1?Array.from(new Set(e)):e}const dA=nn(({parent:e})=>e&&!et(e)?e:null,Ct),fA=Zt(e=>{const t=[];for(;e.parent&&!et(e.parent);)t.push(e.parent),e=e.parent;return t},It,e=>e.reverse()),mA=an(({parent:e})=>e&&!et(e)?e:null,It,e=>e.reverse());function EA(e){var t;const s=[];if(!e)return this._make(s);const r={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},n=typeof e=="string"?a=>Oa(a,e,r):Vt(e);return ue(this,a=>{for(a&&!et(a)&&!W(a)&&(a=a.parent);a&&W(a);){if(n(a,0)){s.includes(a)||s.push(a);break}a=a.parent}}),this._make(s)}const gA=nn(e=>jr(e)),bA=Zt(e=>{const t=[];for(;e.next;)e=e.next,W(e)&&t.push(e);return t},Ct),pA=an(e=>jr(e),Ct),TA=nn(e=>Zr(e)),_A=Zt(e=>{const t=[];for(;e.prev;)e=e.prev,W(e)&&t.push(e);return t},Ct),IA=an(e=>Zr(e),Ct),CA=Zt(e=>aa(e).filter(t=>W(t)&&t!==e),It),yA=Zt(e=>Ps(e).filter(W),Ct);function SA(){const e=this.toArray().reduce((t,s)=>he(s)?t.concat(s.children):t,[]);return this._make(e)}function NA(e){let t=0;const s=this.length;for(;t<s&&e.call(this[t],t,this[t])!==!1;)++t;return this}function DA(e){let t=[];for(let s=0;s<this.length;s++){const r=this[s],n=e.call(r,s,r);n!=null&&(t=t.concat(n))}return this._make(t)}function Vt(e){return typeof e=="function"?(t,s)=>e.call(t,s,t):qe(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function RA(e){var t;return this._make(un(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function un(e,t,s,r){return typeof t=="string"?wa(t,e,{xmlMode:s,root:r}):e.filter(Vt(t))}function OA(e){const t=this.toArray();return typeof e=="string"?Ba(t.filter(W),e,this.options):e?t.some(Vt(e)):!1}function BA(e){let t=this.toArray();if(typeof e=="string"){const s=new Set(wa(e,t,this.options));t=t.filter(r=>!s.has(r))}else{const s=Vt(e);t=t.filter((r,n)=>!s(r,n))}return this._make(t)}function wA(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,s)=>this._make(s).find(e).length>0)}function LA(){return this.length>1?this._make(this[0]):this}function xA(){return this.length>0?this._make(this[this.length-1]):this}function PA(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 kA(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function FA(){return Array.prototype.slice.call(this)}function MA(e){let t,s;return e==null?(t=this.parent().children(),s=this[0]):typeof e=="string"?(t=this._make(e),s=this[0]):(t=this,s=qe(e)?e[0]:e),Array.prototype.indexOf.call(t,s)}function HA(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function vA(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function UA(e,t){const s=this._make(e,t),r=It([...this.get(),...s.get()]);return this._make(r)}function QA(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}const YA=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector:lA,add:UA,addBack:QA,children:yA,closest:EA,contents:SA,each:NA,end:vA,eq:PA,filter:RA,filterArray:un,find:hA,first:LA,get:kA,has:wA,index:MA,is:OA,last:xA,map:DA,next:gA,nextAll:bA,nextUntil:pA,not:BA,parent:dA,parents:fA,parentsUntil:mA,prev:TA,prevAll:_A,prevUntil:IA,siblings:CA,slice:HA,toArray:FA},Symbol.toStringTag,{value:"Module"}));function WA(e){return function(s,r,n,a){if(typeof Buffer<"u"&&Buffer.isBuffer(s)&&(s=s.toString()),typeof s=="string")return e(s,r,n,a);const u=s;if(!Array.isArray(u)&&et(u))return u;const c=new ut([]);return ot(u,c),c}}function ot(e,t){const s=Array.isArray(e)?e:[e];t?t.children=s:t=null;for(let r=0;r<s.length;r++){const n=s[r];n.parent&&n.parent.children!==s&&At(n),t?(n.prev=s[r-1]||null,n.next=s[r+1]||null):n.prev=n.next=null,n.parent=t}return t}function GA(e,t){if(e==null)return[];if(typeof e=="string")return this._parse(e,this.options,!1,null).children.slice(0);if("length"in e){if(e.length===1)return this._makeDomArray(e[0],t);const s=[];for(let r=0;r<e.length;r++){const n=e[r];if(typeof n=="object"){if(n==null)continue;if(!("length"in n)){s.push(t?vt(n,!0):n);continue}}s.push(...this._makeDomArray(n,t))}return s}return[t?vt(e,!0):e]}function ka(e){return function(...t){const s=this.length-1;return ue(this,(r,n)=>{if(!he(r))return;const a=typeof t[0]=="function"?t[0].call(r,n,this._render(r.children)):t,u=this._makeDomArray(a,n<s);e(u,r.children,r)})}}function tt(e,t,s,r,n){var a,u;const c=[t,s,...r],h=t===0?null:e[t-1],f=t+s>=e.length?null:e[t+s];for(let p=0;p<r.length;++p){const b=r[p],A=b.parent;if(A){const E=A.children.indexOf(b);E!==-1&&(A.children.splice(E,1),n===A&&t>E&&c[0]--)}b.parent=n,b.prev&&(b.prev.next=(a=b.next)!==null&&a!==void 0?a:null),b.next&&(b.next.prev=(u=b.prev)!==null&&u!==void 0?u:null),b.prev=p===0?h:r[p-1],b.next=p===r.length-1?f:r[p+1]}return h&&(h.next=r[0]),f&&(f.prev=r[r.length-1]),e.splice(...c)}function KA(e){return(qe(e)?e:this._make(e)).append(this),this}function qA(e){return(qe(e)?e:this._make(e)).prepend(this),this}const JA=ka((e,t,s)=>{tt(t,t.length,0,e,s)}),jA=ka((e,t,s)=>{tt(t,0,0,e,s)});function Fa(e){return function(t){const s=this.length-1,r=this.parents().last();for(let n=0;n<this.length;n++){const a=this[n],u=typeof t=="function"?t.call(a,n,a):typeof t=="string"&&!Cr(t)?r.find(t).clone():t,[c]=this._makeDomArray(u,n<s);if(!c||!he(c))continue;let h=c,f=0;for(;f<h.children.length;){const p=h.children[f];W(p)?(h=p,f=0):f++}e(a,h,[c])}return this}}const ZA=Fa((e,t,s)=>{const{parent:r}=e;if(!r)return;const n=r.children,a=n.indexOf(e);ot([e],t),tt(n,a,0,s,r)}),VA=Fa((e,t,s)=>{he(e)&&(ot(e.children,t),ot(s,e))});function XA(e){return this.parent(e).not("body").each((t,s)=>{this._make(s).replaceWith(s.children)}),this}function zA(e){const t=this[0];if(t){const s=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t);let r;for(let a=0;a<s.length;a++)s[a].type===Tr&&(r=s[a]);let n=0;for(;r&&n<r.children.length;){const a=r.children[n];a.type===Tr?(r=a,n=0):n++}r&&this._make(r).append(this)}return this}function $A(...e){const t=this.length-1;return ue(this,(s,r)=>{if(!he(s)||!s.parent)return;const n=s.parent.children,a=n.indexOf(s);if(a===-1)return;const u=typeof e[0]=="function"?e[0].call(s,r,this._render(s.children)):e,c=this._makeDomArray(u,r<t);tt(n,a+1,0,c,s.parent)})}function eh(e){typeof e=="string"&&(e=this._make(e)),this.remove();const t=[];for(const s of this._makeDomArray(e)){const r=this.clone().toArray(),{parent:n}=s;if(!n)continue;const a=n.children,u=a.indexOf(s);u!==-1&&(tt(a,u+1,0,r,n),t.push(...r))}return this._make(t)}function th(...e){const t=this.length-1;return ue(this,(s,r)=>{if(!he(s)||!s.parent)return;const n=s.parent.children,a=n.indexOf(s);if(a===-1)return;const u=typeof e[0]=="function"?e[0].call(s,r,this._render(s.children)):e,c=this._makeDomArray(u,r<t);tt(n,a,0,c,s.parent)})}function sh(e){const t=this._make(e);this.remove();const s=[];return ue(t,r=>{const n=this.clone().toArray(),{parent:a}=r;if(!a)return;const u=a.children,c=u.indexOf(r);c!==-1&&(tt(u,c,0,n,a),s.push(...n))}),this._make(s)}function rh(e){const t=e?this.filter(e):this;return ue(t,s=>{At(s),s.prev=s.next=s.parent=null}),this}function nh(e){return ue(this,(t,s)=>{const{parent:r}=t;if(!r)return;const n=r.children,a=typeof e=="function"?e.call(t,s,t):e,u=this._makeDomArray(a);ot(u,null);const c=n.indexOf(t);tt(n,c,1,u,r),u.includes(t)||(t.parent=t.prev=t.next=null)})}function ih(){return ue(this,e=>{if(he(e)){for(const t of e.children)t.next=t.prev=t.parent=null;e.children.length=0}})}function ah(e){if(e===void 0){const t=this[0];return!t||!he(t)?null:this._render(t.children)}return ue(this,t=>{if(!he(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const s=qe(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;ot(s,t)})}function uh(){return this._render(this)}function oh(e){return e===void 0?Ut(this):typeof e=="function"?ue(this,(t,s)=>this._make(t).text(e.call(t,s,Ut([t])))):ue(this,t=>{if(!he(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const s=new Ht(`${e}`);ot(s,t)})}function ch(){const e=Array.prototype.map.call(this.get(),s=>vt(s,!0)),t=new ut(e);for(const s of e)s.parent=t;return this._make(e)}const Ah=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray:GA,after:$A,append:JA,appendTo:KA,before:th,clone:ch,empty:ih,html:ah,insertAfter:eh,insertBefore:sh,prepend:jA,prependTo:qA,remove:rh,replaceWith:nh,text:oh,toString:uh,unwrap:XA,wrap:ZA,wrapAll:zA,wrapInner:VA},Symbol.toStringTag,{value:"Module"}));function hh(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return ue(this,(s,r)=>{W(s)&&Ma(s,e,t,r)});if(this.length!==0)return Ha(this[0],e)}function Ma(e,t,s,r){if(typeof t=="string"){const n=Ha(e),a=typeof s=="function"?s.call(e,r,n[t]):s;a===""?delete n[t]:a!=null&&(n[t]=a),e.attribs.style=lh(n)}else if(typeof t=="object"){const n=Object.keys(t);for(let a=0;a<n.length;a++){const u=n[a];Ma(e,u,t[u],a)}}}function Ha(e,t){if(!e||!W(e))return;const s=dh(e.attribs.style);if(typeof t=="string")return s[t];if(Array.isArray(t)){const r={};for(const n of t)s[n]!=null&&(r[n]=s[n]);return r}return s}function lh(e){return Object.keys(e).reduce((t,s)=>`${t}${t?" ":""}${s}: ${e[s]};`,"")}function dh(e){if(e=(e||"").trim(),!e)return{};const t={};let s;for(const r of e.split(";")){const n=r.indexOf(":");if(n<1||n===r.length-1){const a=r.trimEnd();a.length>0&&s!==void 0&&(t[s]+=`;${a}`)}else s=r.slice(0,n).trim(),t[s]=r.slice(n+1).trim()}return t}const fh=Object.freeze(Object.defineProperty({__proto__:null,css:hh},Symbol.toStringTag,{value:"Module"})),ri="input,select,textarea,keygen",mh=/%20/g,ni=/\r?\n/g;function Eh(){return this.serializeArray().map(s=>`${encodeURIComponent(s.name)}=${encodeURIComponent(s.value)}`).join("&").replace(mh,"+")}function gh(){return this.map((e,t)=>{const s=this._make(t);return W(t)&&t.name==="form"?s.find(ri).toArray():s.filter(ri).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var s;const r=this._make(t),n=r.attr("name"),a=(s=r.val())!==null&&s!==void 0?s:"";return Array.isArray(a)?a.map(u=>({name:n,value:u.replace(ni,`\r
|
|
7
|
-
`)})):{name:n,value:
|
|
8
|
-
`)}}).toArray()}const bh=Object.freeze(Object.defineProperty({__proto__:null,serialize:Eh,serializeArray:gh},Symbol.toStringTag,{value:"Module"}));function ph(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function Th(e){const t={};for(const s in e){const r=e[s],n=Array.isArray(r),{selector:a,value:u}=ph(n?r[0]:r),c=typeof u=="function"?u:typeof u=="string"?h=>this._make(h).prop(u):h=>this._make(h).extract(u);if(n)t[s]=this._findBySelector(a,Number.POSITIVE_INFINITY).map((h,f)=>c(f,s,t)).get();else{const h=this._findBySelector(a,1);t[s]=h.length>0?c(h[0],s,t):void 0}}return t}const _h=Object.freeze(Object.defineProperty({__proto__:null,extract:Th},Symbol.toStringTag,{value:"Module"}));class Xt{constructor(t,s,r){if(this.length=0,this.options=r,this._root=s,t){for(let n=0;n<t.length;n++)this[n]=t[n];this.length=t.length}}}Xt.prototype.cheerio="[cheerio object]";Xt.prototype.splice=Array.prototype.splice;Xt.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Xt.prototype,Rc,YA,Ah,fh,bh,_h);function Ih(e,t){return function s(r,n,a=!0){if(r==null)throw new Error("cheerio.load() expects a string");const u=Ir(n),c=e(r,u,a,null);class h extends Xt{_make(b,A){const I=f(b,A);return I.prevObject=this,I}_parse(b,A,I,E){return e(b,A,I,E)}_render(b){return t(b,this.options)}}function f(p,b,A=c,I){if(p&&qe(p))return p;const E=Ir(I,u),x=typeof A=="string"?[e(A,E,!1,null)]:"length"in A?A:[A],D=qe(x)?x:new h(x,null,E);if(D._root=D,!p)return new h(void 0,D,E);const L=typeof p=="string"&&Cr(p)?e(p,E,!1,null).children:Ch(p)?[p]:Array.isArray(p)?p:void 0,P=new h(L,D,E);if(L)return P;if(typeof p!="string")throw new TypeError("Unexpected type of selector");let J=p;const v=b?typeof b=="string"?Cr(b)?new h([e(b,E,!1,null)],D,E):(J=`${b} ${J}`,D):qe(b)?b:new h(Array.isArray(b)?b:[b],D,E):D;return v?v.find(J):P}return Object.assign(f,ec,{load:s,_root:c,_options:u,fn:h.prototype,prototype:h.prototype}),f}}function Ch(e){return!!e.name||e.type===Yr||e.type===zi||e.type===$i}const yh=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]),ne="�";var l;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(l||(l={}));const Re={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function va(e){return e>=55296&&e<=57343}function Sh(e){return e>=56320&&e<=57343}function Nh(e,t){return(e-55296)*1024+9216+t}function Ua(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Qa(e){return e>=64976&&e<=65007||yh.has(e)}var C;(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"})(C||(C={}));const Dh=65536;class Rh{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Dh,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(t,s){const{line:r,col:n,offset:a}=this,u=n+s,c=a+s;return{code:t,startLine:r,endLine:r,startCol:u,endCol:u,startOffset:c,endOffset:c}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const s=this.html.charCodeAt(this.pos+1);if(Sh(s))return this.pos++,this._addGap(),Nh(t,s)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,l.EOF;return this._err(C.surrogateInInputStream),t}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(t,s){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=s}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,s){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(s)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const s=this.pos+t;if(s>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,l.EOF;const r=this.html.charCodeAt(s);return r===l.CARRIAGE_RETURN?l.LINE_FEED:r}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,l.EOF;let t=this.html.charCodeAt(this.pos);return t===l.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,l.LINE_FEED):t===l.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,va(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===l.LINE_FEED||t===l.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Ua(t)?this._err(C.controlCharacterInInputStream):Qa(t)&&this._err(C.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var X;(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"})(X||(X={}));function Ya(e,t){for(let s=e.attrs.length-1;s>=0;s--)if(e.attrs[s].name===t)return e.attrs[s].value;return null}const Oh=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))),Bh=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]]);function wh(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Bh.get(e))!==null&&t!==void 0?t:e}var pe;(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"})(pe||(pe={}));const Lh=32;var $e;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})($e||($e={}));function Br(e){return e>=pe.ZERO&&e<=pe.NINE}function xh(e){return e>=pe.UPPER_A&&e<=pe.UPPER_F||e>=pe.LOWER_A&&e<=pe.LOWER_F}function Ph(e){return e>=pe.UPPER_A&&e<=pe.UPPER_Z||e>=pe.LOWER_A&&e<=pe.LOWER_Z||Br(e)}function kh(e){return e===pe.EQUALS||Ph(e)}var be;(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"})(be||(be={}));var Ge;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ge||(Ge={}));class Fh{constructor(t,s,r){this.decodeTree=t,this.emitCodePoint=s,this.errors=r,this.state=be.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ge.Strict}startEntity(t){this.decodeMode=t,this.state=be.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,s){switch(this.state){case be.EntityStart:return t.charCodeAt(s)===pe.NUM?(this.state=be.NumericStart,this.consumed+=1,this.stateNumericStart(t,s+1)):(this.state=be.NamedEntity,this.stateNamedEntity(t,s));case be.NumericStart:return this.stateNumericStart(t,s);case be.NumericDecimal:return this.stateNumericDecimal(t,s);case be.NumericHex:return this.stateNumericHex(t,s);case be.NamedEntity:return this.stateNamedEntity(t,s)}}stateNumericStart(t,s){return s>=t.length?-1:(t.charCodeAt(s)|Lh)===pe.LOWER_X?(this.state=be.NumericHex,this.consumed+=1,this.stateNumericHex(t,s+1)):(this.state=be.NumericDecimal,this.stateNumericDecimal(t,s))}addToNumericResult(t,s,r,n){if(s!==r){const a=r-s;this.result=this.result*Math.pow(n,a)+Number.parseInt(t.substr(s,a),n),this.consumed+=a}}stateNumericHex(t,s){const r=s;for(;s<t.length;){const n=t.charCodeAt(s);if(Br(n)||xh(n))s+=1;else return this.addToNumericResult(t,r,s,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(t,r,s,16),-1}stateNumericDecimal(t,s){const r=s;for(;s<t.length;){const n=t.charCodeAt(s);if(Br(n))s+=1;else return this.addToNumericResult(t,r,s,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(t,r,s,10),-1}emitNumericEntity(t,s){var r;if(this.consumed<=s)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===pe.SEMI)this.consumed+=1;else if(this.decodeMode===Ge.Strict)return 0;return this.emitCodePoint(wh(this.result),this.consumed),this.errors&&(t!==pe.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,s){const{decodeTree:r}=this;let n=r[this.treeIndex],a=(n&$e.VALUE_LENGTH)>>14;for(;s<t.length;s++,this.excess++){const u=t.charCodeAt(s);if(this.treeIndex=Mh(r,n,this.treeIndex+Math.max(1,a),u),this.treeIndex<0)return this.result===0||this.decodeMode===Ge.Attribute&&(a===0||kh(u))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],a=(n&$e.VALUE_LENGTH)>>14,a!==0){if(u===pe.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Ge.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:s,decodeTree:r}=this,n=(r[s]&$e.VALUE_LENGTH)>>14;return this.emitNamedEntityData(s,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,s,r){const{decodeTree:n}=this;return this.emitCodePoint(s===1?n[t]&~$e.VALUE_LENGTH:n[t+1],r),s===3&&this.emitCodePoint(n[t+2],r),r}end(){var t;switch(this.state){case be.NamedEntity:return this.result!==0&&(this.decodeMode!==Ge.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case be.NumericDecimal:return this.emitNumericEntity(0,2);case be.NumericHex:return this.emitNumericEntity(0,3);case be.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case be.EntityStart:return 0}}}function Mh(e,t,s,r){const n=(t&$e.BRANCH_LENGTH)>>7,a=t&$e.JUMP_TABLE;if(n===0)return a!==0&&r===a?s:-1;if(a){const h=r-a;return h<0||h>=n?-1:e[s+h]-1}let u=s,c=u+n-1;for(;u<=c;){const h=u+c>>>1,f=e[h];if(f<r)u=h+1;else if(f>r)c=h-1;else return e[h+n]}return-1}var N;(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/"})(N||(N={}));var at;(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"})(at||(at={}));var Le;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Le||(Le={}));var _;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(_||(_={}));var i;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(i||(i={}));const Hh=new Map([[_.A,i.A],[_.ADDRESS,i.ADDRESS],[_.ANNOTATION_XML,i.ANNOTATION_XML],[_.APPLET,i.APPLET],[_.AREA,i.AREA],[_.ARTICLE,i.ARTICLE],[_.ASIDE,i.ASIDE],[_.B,i.B],[_.BASE,i.BASE],[_.BASEFONT,i.BASEFONT],[_.BGSOUND,i.BGSOUND],[_.BIG,i.BIG],[_.BLOCKQUOTE,i.BLOCKQUOTE],[_.BODY,i.BODY],[_.BR,i.BR],[_.BUTTON,i.BUTTON],[_.CAPTION,i.CAPTION],[_.CENTER,i.CENTER],[_.CODE,i.CODE],[_.COL,i.COL],[_.COLGROUP,i.COLGROUP],[_.DD,i.DD],[_.DESC,i.DESC],[_.DETAILS,i.DETAILS],[_.DIALOG,i.DIALOG],[_.DIR,i.DIR],[_.DIV,i.DIV],[_.DL,i.DL],[_.DT,i.DT],[_.EM,i.EM],[_.EMBED,i.EMBED],[_.FIELDSET,i.FIELDSET],[_.FIGCAPTION,i.FIGCAPTION],[_.FIGURE,i.FIGURE],[_.FONT,i.FONT],[_.FOOTER,i.FOOTER],[_.FOREIGN_OBJECT,i.FOREIGN_OBJECT],[_.FORM,i.FORM],[_.FRAME,i.FRAME],[_.FRAMESET,i.FRAMESET],[_.H1,i.H1],[_.H2,i.H2],[_.H3,i.H3],[_.H4,i.H4],[_.H5,i.H5],[_.H6,i.H6],[_.HEAD,i.HEAD],[_.HEADER,i.HEADER],[_.HGROUP,i.HGROUP],[_.HR,i.HR],[_.HTML,i.HTML],[_.I,i.I],[_.IMG,i.IMG],[_.IMAGE,i.IMAGE],[_.INPUT,i.INPUT],[_.IFRAME,i.IFRAME],[_.KEYGEN,i.KEYGEN],[_.LABEL,i.LABEL],[_.LI,i.LI],[_.LINK,i.LINK],[_.LISTING,i.LISTING],[_.MAIN,i.MAIN],[_.MALIGNMARK,i.MALIGNMARK],[_.MARQUEE,i.MARQUEE],[_.MATH,i.MATH],[_.MENU,i.MENU],[_.META,i.META],[_.MGLYPH,i.MGLYPH],[_.MI,i.MI],[_.MO,i.MO],[_.MN,i.MN],[_.MS,i.MS],[_.MTEXT,i.MTEXT],[_.NAV,i.NAV],[_.NOBR,i.NOBR],[_.NOFRAMES,i.NOFRAMES],[_.NOEMBED,i.NOEMBED],[_.NOSCRIPT,i.NOSCRIPT],[_.OBJECT,i.OBJECT],[_.OL,i.OL],[_.OPTGROUP,i.OPTGROUP],[_.OPTION,i.OPTION],[_.P,i.P],[_.PARAM,i.PARAM],[_.PLAINTEXT,i.PLAINTEXT],[_.PRE,i.PRE],[_.RB,i.RB],[_.RP,i.RP],[_.RT,i.RT],[_.RTC,i.RTC],[_.RUBY,i.RUBY],[_.S,i.S],[_.SCRIPT,i.SCRIPT],[_.SEARCH,i.SEARCH],[_.SECTION,i.SECTION],[_.SELECT,i.SELECT],[_.SOURCE,i.SOURCE],[_.SMALL,i.SMALL],[_.SPAN,i.SPAN],[_.STRIKE,i.STRIKE],[_.STRONG,i.STRONG],[_.STYLE,i.STYLE],[_.SUB,i.SUB],[_.SUMMARY,i.SUMMARY],[_.SUP,i.SUP],[_.TABLE,i.TABLE],[_.TBODY,i.TBODY],[_.TEMPLATE,i.TEMPLATE],[_.TEXTAREA,i.TEXTAREA],[_.TFOOT,i.TFOOT],[_.TD,i.TD],[_.TH,i.TH],[_.THEAD,i.THEAD],[_.TITLE,i.TITLE],[_.TR,i.TR],[_.TRACK,i.TRACK],[_.TT,i.TT],[_.U,i.U],[_.UL,i.UL],[_.SVG,i.SVG],[_.VAR,i.VAR],[_.WBR,i.WBR],[_.XMP,i.XMP]]);function Ms(e){var t;return(t=Hh.get(e))!==null&&t!==void 0?t:i.UNKNOWN}const O=i,vh={[N.HTML]:new Set([O.ADDRESS,O.APPLET,O.AREA,O.ARTICLE,O.ASIDE,O.BASE,O.BASEFONT,O.BGSOUND,O.BLOCKQUOTE,O.BODY,O.BR,O.BUTTON,O.CAPTION,O.CENTER,O.COL,O.COLGROUP,O.DD,O.DETAILS,O.DIR,O.DIV,O.DL,O.DT,O.EMBED,O.FIELDSET,O.FIGCAPTION,O.FIGURE,O.FOOTER,O.FORM,O.FRAME,O.FRAMESET,O.H1,O.H2,O.H3,O.H4,O.H5,O.H6,O.HEAD,O.HEADER,O.HGROUP,O.HR,O.HTML,O.IFRAME,O.IMG,O.INPUT,O.LI,O.LINK,O.LISTING,O.MAIN,O.MARQUEE,O.MENU,O.META,O.NAV,O.NOEMBED,O.NOFRAMES,O.NOSCRIPT,O.OBJECT,O.OL,O.P,O.PARAM,O.PLAINTEXT,O.PRE,O.SCRIPT,O.SECTION,O.SELECT,O.SOURCE,O.STYLE,O.SUMMARY,O.TABLE,O.TBODY,O.TD,O.TEMPLATE,O.TEXTAREA,O.TFOOT,O.TH,O.THEAD,O.TITLE,O.TR,O.TRACK,O.UL,O.WBR,O.XMP]),[N.MATHML]:new Set([O.MI,O.MO,O.MN,O.MS,O.MTEXT,O.ANNOTATION_XML]),[N.SVG]:new Set([O.TITLE,O.FOREIGN_OBJECT,O.DESC]),[N.XLINK]:new Set,[N.XML]:new Set,[N.XMLNS]:new Set},wr=new Set([O.H1,O.H2,O.H3,O.H4,O.H5,O.H6]),Uh=new Set([_.STYLE,_.SCRIPT,_.XMP,_.IFRAME,_.NOEMBED,_.NOFRAMES,_.PLAINTEXT]);function Qh(e,t){return Uh.has(e)||t&&e===_.NOSCRIPT}var m;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(m||(m={}));const Be={DATA:m.DATA,RCDATA:m.RCDATA,RAWTEXT:m.RAWTEXT,SCRIPT_DATA:m.SCRIPT_DATA,PLAINTEXT:m.PLAINTEXT,CDATA_SECTION:m.CDATA_SECTION};function Yh(e){return e>=l.DIGIT_0&&e<=l.DIGIT_9}function wt(e){return e>=l.LATIN_CAPITAL_A&&e<=l.LATIN_CAPITAL_Z}function Wh(e){return e>=l.LATIN_SMALL_A&&e<=l.LATIN_SMALL_Z}function Ve(e){return Wh(e)||wt(e)}function ii(e){return Ve(e)||Yh(e)}function os(e){return e+32}function Wa(e){return e===l.SPACE||e===l.LINE_FEED||e===l.TABULATION||e===l.FORM_FEED}function ai(e){return Wa(e)||e===l.SOLIDUS||e===l.GREATER_THAN_SIGN}function Gh(e){return e===l.NULL?C.nullCharacterReference:e>1114111?C.characterReferenceOutsideUnicodeRange:va(e)?C.surrogateCharacterReference:Qa(e)?C.noncharacterCharacterReference:Ua(e)||e===l.CARRIAGE_RETURN?C.controlCharacterReference:null}class Kh{constructor(t,s){this.options=t,this.handler=s,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=m.DATA,this.returnState=m.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Rh(s),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Fh(Oh,(r,n)=>{this.preprocessor.pos=this.entityStartPos+n-1,this._flushCodePointConsumedAsCharacterReference(r)},s.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(C.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(C.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const n=Gh(r);n&&this._err(n,1)}}:void 0)}_err(t,s=0){var r,n;(n=(r=this.handler).onParseError)===null||n===void 0||n.call(r,this.preprocessor.getError(t,s))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,s,r){this.active=!0,this.preprocessor.write(t,s),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let s=0;s<t;s++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,s){return this.preprocessor.startsWith(t,s)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:X.START_TAG,tagName:"",tagID:i.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:X.END_TAG,tagName:"",tagID:i.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:X.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:X.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,s){this.currentCharacterToken={type:t,chars:s,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,s;const r=this.currentToken;if(Ya(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const n=(t=(s=r.location).attrs)!==null&&t!==void 0?t:s.attrs=Object.create(null);n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(C.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ms(t.tagName),t.type===X.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(C.endTagWithAttributes),t.selfClosing&&this._err(C.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case X.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case X.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case X.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:X.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,s){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=s;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,s)}_emitCodePoint(t){const s=Wa(t)?X.WHITESPACE_CHARACTER:t===l.NULL?X.NULL_CHARACTER:X.CHARACTER;this._appendCharToCurrentCharacterToken(s,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(X.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=m.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ge.Attribute:Ge.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===m.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===m.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===m.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case m.DATA:{this._stateData(t);break}case m.RCDATA:{this._stateRcdata(t);break}case m.RAWTEXT:{this._stateRawtext(t);break}case m.SCRIPT_DATA:{this._stateScriptData(t);break}case m.PLAINTEXT:{this._statePlaintext(t);break}case m.TAG_OPEN:{this._stateTagOpen(t);break}case m.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case m.TAG_NAME:{this._stateTagName(t);break}case m.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case m.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case m.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case m.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case m.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case m.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case m.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case m.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case m.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case m.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case m.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case m.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case m.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case m.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case m.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case m.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case m.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case m.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case m.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case m.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case m.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case m.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case m.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case m.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case m.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case m.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case m.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case m.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case m.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case m.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case m.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case m.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case m.BOGUS_COMMENT:{this._stateBogusComment(t);break}case m.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case m.COMMENT_START:{this._stateCommentStart(t);break}case m.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case m.COMMENT:{this._stateComment(t);break}case m.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case m.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case m.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case m.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case m.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case m.COMMENT_END:{this._stateCommentEnd(t);break}case m.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case m.DOCTYPE:{this._stateDoctype(t);break}case m.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case m.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case m.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case m.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case m.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case m.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case m.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case m.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case m.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case m.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case m.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case m.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case m.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case m.CDATA_SECTION:{this._stateCdataSection(t);break}case m.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case m.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case m.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case m.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case l.LESS_THAN_SIGN:{this.state=m.TAG_OPEN;break}case l.AMPERSAND:{this._startCharacterReference();break}case l.NULL:{this._err(C.unexpectedNullCharacter),this._emitCodePoint(t);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case l.AMPERSAND:{this._startCharacterReference();break}case l.LESS_THAN_SIGN:{this.state=m.RCDATA_LESS_THAN_SIGN;break}case l.NULL:{this._err(C.unexpectedNullCharacter),this._emitChars(ne);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case l.LESS_THAN_SIGN:{this.state=m.RAWTEXT_LESS_THAN_SIGN;break}case l.NULL:{this._err(C.unexpectedNullCharacter),this._emitChars(ne);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case l.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_LESS_THAN_SIGN;break}case l.NULL:{this._err(C.unexpectedNullCharacter),this._emitChars(ne);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case l.NULL:{this._err(C.unexpectedNullCharacter),this._emitChars(ne);break}case l.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Ve(t))this._createStartTagToken(),this.state=m.TAG_NAME,this._stateTagName(t);else switch(t){case l.EXCLAMATION_MARK:{this.state=m.MARKUP_DECLARATION_OPEN;break}case l.SOLIDUS:{this.state=m.END_TAG_OPEN;break}case l.QUESTION_MARK:{this._err(C.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=m.BOGUS_COMMENT,this._stateBogusComment(t);break}case l.EOF:{this._err(C.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(C.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=m.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Ve(t))this._createEndTagToken(),this.state=m.TAG_NAME,this._stateTagName(t);else switch(t){case l.GREATER_THAN_SIGN:{this._err(C.missingEndTagName),this.state=m.DATA;break}case l.EOF:{this._err(C.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(C.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=m.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const s=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=m.BEFORE_ATTRIBUTE_NAME;break}case l.SOLIDUS:{this.state=m.SELF_CLOSING_START_TAG;break}case l.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentTagToken();break}case l.NULL:{this._err(C.unexpectedNullCharacter),s.tagName+=ne;break}case l.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:s.tagName+=String.fromCodePoint(wt(t)?os(t):t)}}_stateRcdataLessThanSign(t){t===l.SOLIDUS?this.state=m.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=m.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Ve(t)?(this.state=m.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=m.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const s=this.currentToken;switch(s.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=m.BEFORE_ATTRIBUTE_NAME,!1;case l.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=m.SELF_CLOSING_START_TAG,!1;case l.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=m.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=m.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===l.SOLIDUS?this.state=m.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=m.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Ve(t)?(this.state=m.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=m.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=m.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case l.SOLIDUS:{this.state=m.SCRIPT_DATA_END_TAG_OPEN;break}case l.EXCLAMATION_MARK:{this.state=m.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=m.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Ve(t)?(this.state=m.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=m.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=m.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===l.HYPHEN_MINUS?(this.state=m.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=m.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===l.HYPHEN_MINUS?(this.state=m.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=m.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case l.HYPHEN_MINUS:{this.state=m.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.NULL:{this._err(C.unexpectedNullCharacter),this._emitChars(ne);break}case l.EOF:{this._err(C.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case l.HYPHEN_MINUS:{this.state=m.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.NULL:{this._err(C.unexpectedNullCharacter),this.state=m.SCRIPT_DATA_ESCAPED,this._emitChars(ne);break}case l.EOF:{this._err(C.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=m.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case l.HYPHEN_MINUS:{this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case l.GREATER_THAN_SIGN:{this.state=m.SCRIPT_DATA,this._emitChars(">");break}case l.NULL:{this._err(C.unexpectedNullCharacter),this.state=m.SCRIPT_DATA_ESCAPED,this._emitChars(ne);break}case l.EOF:{this._err(C.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=m.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===l.SOLIDUS?this.state=m.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Ve(t)?(this._emitChars("<"),this.state=m.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=m.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Ve(t)?(this.state=m.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=m.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=m.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Re.SCRIPT,!1)&&ai(this.preprocessor.peek(Re.SCRIPT.length))){this._emitCodePoint(t);for(let s=0;s<Re.SCRIPT.length;s++)this._emitCodePoint(this._consume());this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=m.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case l.HYPHEN_MINUS:{this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.NULL:{this._err(C.unexpectedNullCharacter),this._emitChars(ne);break}case l.EOF:{this._err(C.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case l.HYPHEN_MINUS:{this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.NULL:{this._err(C.unexpectedNullCharacter),this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ne);break}case l.EOF:{this._err(C.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case l.HYPHEN_MINUS:{this._emitChars("-");break}case l.LESS_THAN_SIGN:{this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case l.GREATER_THAN_SIGN:{this.state=m.SCRIPT_DATA,this._emitChars(">");break}case l.NULL:{this._err(C.unexpectedNullCharacter),this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ne);break}case l.EOF:{this._err(C.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===l.SOLIDUS?(this.state=m.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Re.SCRIPT,!1)&&ai(this.preprocessor.peek(Re.SCRIPT.length))){this._emitCodePoint(t);for(let s=0;s<Re.SCRIPT.length;s++)this._emitCodePoint(this._consume());this.state=m.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=m.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.SOLIDUS:case l.GREATER_THAN_SIGN:case l.EOF:{this.state=m.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case l.EQUALS_SIGN:{this._err(C.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=m.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=m.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:case l.SOLIDUS:case l.GREATER_THAN_SIGN:case l.EOF:{this._leaveAttrName(),this.state=m.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case l.EQUALS_SIGN:{this._leaveAttrName(),this.state=m.BEFORE_ATTRIBUTE_VALUE;break}case l.QUOTATION_MARK:case l.APOSTROPHE:case l.LESS_THAN_SIGN:{this._err(C.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case l.NULL:{this._err(C.unexpectedNullCharacter),this.currentAttr.name+=ne;break}default:this.currentAttr.name+=String.fromCodePoint(wt(t)?os(t):t)}}_stateAfterAttributeName(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.SOLIDUS:{this.state=m.SELF_CLOSING_START_TAG;break}case l.EQUALS_SIGN:{this.state=m.BEFORE_ATTRIBUTE_VALUE;break}case l.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=m.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{this.state=m.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this.state=m.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(C.missingAttributeValue),this.state=m.DATA,this.emitCurrentTagToken();break}default:this.state=m.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case l.QUOTATION_MARK:{this.state=m.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case l.AMPERSAND:{this._startCharacterReference();break}case l.NULL:{this._err(C.unexpectedNullCharacter),this.currentAttr.value+=ne;break}case l.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case l.APOSTROPHE:{this.state=m.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case l.AMPERSAND:{this._startCharacterReference();break}case l.NULL:{this._err(C.unexpectedNullCharacter),this.currentAttr.value+=ne;break}case l.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this._leaveAttrValue(),this.state=m.BEFORE_ATTRIBUTE_NAME;break}case l.AMPERSAND:{this._startCharacterReference();break}case l.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=m.DATA,this.emitCurrentTagToken();break}case l.NULL:{this._err(C.unexpectedNullCharacter),this.currentAttr.value+=ne;break}case l.QUOTATION_MARK:case l.APOSTROPHE:case l.LESS_THAN_SIGN:case l.EQUALS_SIGN:case l.GRAVE_ACCENT:{this._err(C.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case l.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this._leaveAttrValue(),this.state=m.BEFORE_ATTRIBUTE_NAME;break}case l.SOLIDUS:{this._leaveAttrValue(),this.state=m.SELF_CLOSING_START_TAG;break}case l.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=m.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:this._err(C.missingWhitespaceBetweenAttributes),this.state=m.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case l.GREATER_THAN_SIGN:{const s=this.currentToken;s.selfClosing=!0,this.state=m.DATA,this.emitCurrentTagToken();break}case l.EOF:{this._err(C.eofInTag),this._emitEOFToken();break}default:this._err(C.unexpectedSolidusInTag),this.state=m.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const s=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentComment(s);break}case l.EOF:{this.emitCurrentComment(s),this._emitEOFToken();break}case l.NULL:{this._err(C.unexpectedNullCharacter),s.data+=ne;break}default:s.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Re.DASH_DASH,!0)?(this._createCommentToken(Re.DASH_DASH.length+1),this.state=m.COMMENT_START):this._consumeSequenceIfMatch(Re.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Re.DOCTYPE.length+1),this.state=m.DOCTYPE):this._consumeSequenceIfMatch(Re.CDATA_START,!0)?this.inForeignNode?this.state=m.CDATA_SECTION:(this._err(C.cdataInHtmlContent),this._createCommentToken(Re.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=m.BOGUS_COMMENT):this._ensureHibernation()||(this._err(C.incorrectlyOpenedComment),this._createCommentToken(2),this.state=m.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case l.HYPHEN_MINUS:{this.state=m.COMMENT_START_DASH;break}case l.GREATER_THAN_SIGN:{this._err(C.abruptClosingOfEmptyComment),this.state=m.DATA;const s=this.currentToken;this.emitCurrentComment(s);break}default:this.state=m.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const s=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=m.COMMENT_END;break}case l.GREATER_THAN_SIGN:{this._err(C.abruptClosingOfEmptyComment),this.state=m.DATA,this.emitCurrentComment(s);break}case l.EOF:{this._err(C.eofInComment),this.emitCurrentComment(s),this._emitEOFToken();break}default:s.data+="-",this.state=m.COMMENT,this._stateComment(t)}}_stateComment(t){const s=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=m.COMMENT_END_DASH;break}case l.LESS_THAN_SIGN:{s.data+="<",this.state=m.COMMENT_LESS_THAN_SIGN;break}case l.NULL:{this._err(C.unexpectedNullCharacter),s.data+=ne;break}case l.EOF:{this._err(C.eofInComment),this.emitCurrentComment(s),this._emitEOFToken();break}default:s.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const s=this.currentToken;switch(t){case l.EXCLAMATION_MARK:{s.data+="!",this.state=m.COMMENT_LESS_THAN_SIGN_BANG;break}case l.LESS_THAN_SIGN:{s.data+="<";break}default:this.state=m.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===l.HYPHEN_MINUS?this.state=m.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=m.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===l.HYPHEN_MINUS?this.state=m.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=m.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==l.GREATER_THAN_SIGN&&t!==l.EOF&&this._err(C.nestedComment),this.state=m.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const s=this.currentToken;switch(t){case l.HYPHEN_MINUS:{this.state=m.COMMENT_END;break}case l.EOF:{this._err(C.eofInComment),this.emitCurrentComment(s),this._emitEOFToken();break}default:s.data+="-",this.state=m.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const s=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentComment(s);break}case l.EXCLAMATION_MARK:{this.state=m.COMMENT_END_BANG;break}case l.HYPHEN_MINUS:{s.data+="-";break}case l.EOF:{this._err(C.eofInComment),this.emitCurrentComment(s),this._emitEOFToken();break}default:s.data+="--",this.state=m.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const s=this.currentToken;switch(t){case l.HYPHEN_MINUS:{s.data+="--!",this.state=m.COMMENT_END_DASH;break}case l.GREATER_THAN_SIGN:{this._err(C.incorrectlyClosedComment),this.state=m.DATA,this.emitCurrentComment(s);break}case l.EOF:{this._err(C.eofInComment),this.emitCurrentComment(s),this._emitEOFToken();break}default:s.data+="--!",this.state=m.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=m.BEFORE_DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this.state=m.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case l.EOF:{this._err(C.eofInDoctype),this._createDoctypeToken(null);const s=this.currentToken;s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:this._err(C.missingWhitespaceBeforeDoctypeName),this.state=m.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(wt(t))this._createDoctypeToken(String.fromCharCode(os(t))),this.state=m.DOCTYPE_NAME;else switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.NULL:{this._err(C.unexpectedNullCharacter),this._createDoctypeToken(ne),this.state=m.DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this._err(C.missingDoctypeName),this._createDoctypeToken(null);const s=this.currentToken;s.forceQuirks=!0,this.emitCurrentDoctype(s),this.state=m.DATA;break}case l.EOF:{this._err(C.eofInDoctype),this._createDoctypeToken(null);const s=this.currentToken;s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=m.DOCTYPE_NAME}}_stateDoctypeName(t){const s=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=m.AFTER_DOCTYPE_NAME;break}case l.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentDoctype(s);break}case l.NULL:{this._err(C.unexpectedNullCharacter),s.name+=ne;break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:s.name+=String.fromCodePoint(wt(t)?os(t):t)}}_stateAfterDoctypeName(t){const s=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentDoctype(s);break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Re.PUBLIC,!1)?this.state=m.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Re.SYSTEM,!1)?this.state=m.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(C.invalidCharacterSequenceAfterDoctypeName),s.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const s=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=m.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.QUOTATION_MARK:{this._err(C.missingWhitespaceAfterDoctypePublicKeyword),s.publicId="",this.state=m.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(C.missingWhitespaceAfterDoctypePublicKeyword),s.publicId="",this.state=m.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(C.missingDoctypePublicIdentifier),s.forceQuirks=!0,this.state=m.DATA,this.emitCurrentDoctype(s);break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:this._err(C.missingQuoteBeforeDoctypePublicIdentifier),s.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const s=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{s.publicId="",this.state=m.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{s.publicId="",this.state=m.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(C.missingDoctypePublicIdentifier),s.forceQuirks=!0,this.state=m.DATA,this.emitCurrentDoctype(s);break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:this._err(C.missingQuoteBeforeDoctypePublicIdentifier),s.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const s=this.currentToken;switch(t){case l.QUOTATION_MARK:{this.state=m.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.NULL:{this._err(C.unexpectedNullCharacter),s.publicId+=ne;break}case l.GREATER_THAN_SIGN:{this._err(C.abruptDoctypePublicIdentifier),s.forceQuirks=!0,this.emitCurrentDoctype(s),this.state=m.DATA;break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:s.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const s=this.currentToken;switch(t){case l.APOSTROPHE:{this.state=m.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case l.NULL:{this._err(C.unexpectedNullCharacter),s.publicId+=ne;break}case l.GREATER_THAN_SIGN:{this._err(C.abruptDoctypePublicIdentifier),s.forceQuirks=!0,this.emitCurrentDoctype(s),this.state=m.DATA;break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:s.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const s=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=m.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case l.GREATER_THAN_SIGN:{this.state=m.DATA,this.emitCurrentDoctype(s);break}case l.QUOTATION_MARK:{this._err(C.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),s.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(C.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),s.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:this._err(C.missingQuoteBeforeDoctypeSystemIdentifier),s.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const s=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(s),this.state=m.DATA;break}case l.QUOTATION_MARK:{s.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{s.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:this._err(C.missingQuoteBeforeDoctypeSystemIdentifier),s.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const s=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:{this.state=m.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.QUOTATION_MARK:{this._err(C.missingWhitespaceAfterDoctypeSystemKeyword),s.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{this._err(C.missingWhitespaceAfterDoctypeSystemKeyword),s.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(C.missingDoctypeSystemIdentifier),s.forceQuirks=!0,this.state=m.DATA,this.emitCurrentDoctype(s);break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:this._err(C.missingQuoteBeforeDoctypeSystemIdentifier),s.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const s=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.QUOTATION_MARK:{s.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case l.APOSTROPHE:{s.systemId="",this.state=m.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case l.GREATER_THAN_SIGN:{this._err(C.missingDoctypeSystemIdentifier),s.forceQuirks=!0,this.state=m.DATA,this.emitCurrentDoctype(s);break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:this._err(C.missingQuoteBeforeDoctypeSystemIdentifier),s.forceQuirks=!0,this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const s=this.currentToken;switch(t){case l.QUOTATION_MARK:{this.state=m.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.NULL:{this._err(C.unexpectedNullCharacter),s.systemId+=ne;break}case l.GREATER_THAN_SIGN:{this._err(C.abruptDoctypeSystemIdentifier),s.forceQuirks=!0,this.emitCurrentDoctype(s),this.state=m.DATA;break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:s.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const s=this.currentToken;switch(t){case l.APOSTROPHE:{this.state=m.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case l.NULL:{this._err(C.unexpectedNullCharacter),s.systemId+=ne;break}case l.GREATER_THAN_SIGN:{this._err(C.abruptDoctypeSystemIdentifier),s.forceQuirks=!0,this.emitCurrentDoctype(s),this.state=m.DATA;break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:s.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const s=this.currentToken;switch(t){case l.SPACE:case l.LINE_FEED:case l.TABULATION:case l.FORM_FEED:break;case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(s),this.state=m.DATA;break}case l.EOF:{this._err(C.eofInDoctype),s.forceQuirks=!0,this.emitCurrentDoctype(s),this._emitEOFToken();break}default:this._err(C.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=m.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const s=this.currentToken;switch(t){case l.GREATER_THAN_SIGN:{this.emitCurrentDoctype(s),this.state=m.DATA;break}case l.NULL:{this._err(C.unexpectedNullCharacter);break}case l.EOF:{this.emitCurrentDoctype(s),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case l.RIGHT_SQUARE_BRACKET:{this.state=m.CDATA_SECTION_BRACKET;break}case l.EOF:{this._err(C.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===l.RIGHT_SQUARE_BRACKET?this.state=m.CDATA_SECTION_END:(this._emitChars("]"),this.state=m.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case l.GREATER_THAN_SIGN:{this.state=m.DATA;break}case l.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=m.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(l.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&ii(this.preprocessor.peek(1))?m.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){ii(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===l.SEMICOLON&&this._err(C.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Ga=new Set([i.DD,i.DT,i.LI,i.OPTGROUP,i.OPTION,i.P,i.RB,i.RP,i.RT,i.RTC]),ui=new Set([...Ga,i.CAPTION,i.COLGROUP,i.TBODY,i.TD,i.TFOOT,i.TH,i.THEAD,i.TR]),Ss=new Set([i.APPLET,i.CAPTION,i.HTML,i.MARQUEE,i.OBJECT,i.TABLE,i.TD,i.TEMPLATE,i.TH]),qh=new Set([...Ss,i.OL,i.UL]),Jh=new Set([...Ss,i.BUTTON]),oi=new Set([i.ANNOTATION_XML,i.MI,i.MN,i.MO,i.MS,i.MTEXT]),ci=new Set([i.DESC,i.FOREIGN_OBJECT,i.TITLE]),jh=new Set([i.TR,i.TEMPLATE,i.HTML]),Zh=new Set([i.TBODY,i.TFOOT,i.THEAD,i.TEMPLATE,i.HTML]),Vh=new Set([i.TABLE,i.TEMPLATE,i.HTML]),Xh=new Set([i.TD,i.TH]);class zh{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,s,r){this.treeAdapter=s,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=i.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===N.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,s){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=s,this.currentTagId=s,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,s,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,s){const r=this._indexOf(t);this.items[r]=s,r===this.stackTop&&(this.current=s)}insertAfter(t,s,r){const n=this._indexOf(t)+1;this.items.splice(n,0,s),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(t){let s=this.stackTop+1;do s=this.tagIDs.lastIndexOf(t,s-1);while(s>0&&this.treeAdapter.getNamespaceURI(this.items[s])!==N.HTML);this.shortenToLength(Math.max(s,0))}shortenToLength(t){for(;this.stackTop>=t;){const s=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(s,this.stackTop<t)}}popUntilElementPopped(t){const s=this._indexOf(t);this.shortenToLength(Math.max(s,0))}popUntilPopped(t,s){const r=this._indexOfTagNames(t,s);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(wr,N.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Xh,N.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,s){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===s)return r;return-1}clearBackTo(t,s){const r=this._indexOfTagNames(t,s);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Vh,N.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Zh,N.HTML)}clearBackToTableRowContext(){this.clearBackTo(jh,N.HTML)}remove(t){const s=this._indexOf(t);s>=0&&(s===this.stackTop?this.pop():(this.items.splice(s,1),this.tagIDs.splice(s,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===i.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const s=this._indexOf(t)-1;return s>=0?this.items[s]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===i.HTML}hasInDynamicScope(t,s){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case N.HTML:{if(n===t)return!0;if(s.has(n))return!1;break}case N.SVG:{if(ci.has(n))return!1;break}case N.MATHML:{if(oi.has(n))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Ss)}hasInListItemScope(t){return this.hasInDynamicScope(t,qh)}hasInButtonScope(t){return this.hasInDynamicScope(t,Jh)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const s=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case N.HTML:{if(wr.has(s))return!0;if(Ss.has(s))return!1;break}case N.SVG:{if(ci.has(s))return!1;break}case N.MATHML:{if(oi.has(s))return!1;break}}}return!0}hasInTableScope(t){for(let s=this.stackTop;s>=0;s--)if(this.treeAdapter.getNamespaceURI(this.items[s])===N.HTML)switch(this.tagIDs[s]){case t:return!0;case i.TABLE:case i.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===N.HTML)switch(this.tagIDs[t]){case i.TBODY:case i.THEAD:case i.TFOOT:return!0;case i.TABLE:case i.HTML:return!1}return!0}hasInSelectScope(t){for(let s=this.stackTop;s>=0;s--)if(this.treeAdapter.getNamespaceURI(this.items[s])===N.HTML)switch(this.tagIDs[s]){case t:return!0;case i.OPTION:case i.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Ga.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&ui.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&ui.has(this.currentTagId);)this.pop()}}const ir=3;var Fe;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Fe||(Fe={}));const Ai={type:Fe.Marker};class $h{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,s){const r=[],n=s.length,a=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let c=0;c<this.entries.length;c++){const h=this.entries[c];if(h.type===Fe.Marker)break;const{element:f}=h;if(this.treeAdapter.getTagName(f)===a&&this.treeAdapter.getNamespaceURI(f)===u){const p=this.treeAdapter.getAttrList(f);p.length===n&&r.push({idx:c,attrs:p})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<ir)return;const s=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,s);if(r.length<ir)return;const n=new Map(s.map(u=>[u.name,u.value]));let a=0;for(let u=0;u<r.length;u++){const c=r[u];c.attrs.every(h=>n.get(h.name)===h.value)&&(a+=1,a>=ir&&this.entries.splice(c.idx,1))}}insertMarker(){this.entries.unshift(Ai)}pushElement(t,s){this._ensureNoahArkCondition(t),this.entries.unshift({type:Fe.Element,element:t,token:s})}insertElementAfterBookmark(t,s){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Fe.Element,element:t,token:s})}removeEntry(t){const s=this.entries.indexOf(t);s!==-1&&this.entries.splice(s,1)}clearToLastMarker(){const t=this.entries.indexOf(Ai);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const s=this.entries.find(r=>r.type===Fe.Marker||this.treeAdapter.getTagName(r.element)===t);return s&&s.type===Fe.Element?s:null}getElementEntry(t){return this.entries.find(s=>s.type===Fe.Element&&s.element===t)}}const We={createDocument(){return{nodeName:"#document",mode:Le.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,s){return{nodeName:e,tagName:e,attrs:s,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,s){const r=e.childNodes.indexOf(s);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,s,r){const n=e.childNodes.find(a=>a.nodeName==="#documentType");if(n)n.name=t,n.publicId=s,n.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:s,systemId:r,parentNode:null};We.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const s=e.childNodes[e.childNodes.length-1];if(We.isTextNode(s)){s.value+=t;return}}We.appendChild(e,We.createTextNode(t))},insertTextBefore(e,t,s){const r=e.childNodes[e.childNodes.indexOf(s)-1];r&&We.isTextNode(r)?r.value+=t:We.insertBefore(e,We.createTextNode(t),s)},adoptAttributes(e,t){const s=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)s.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}}},Ka="html",el="about:legacy-compat",tl="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",qa=["+//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//"],sl=[...qa,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],rl=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Ja=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],nl=[...Ja,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function hi(e,t){return t.some(s=>e.startsWith(s))}function il(e){return e.name===Ka&&e.publicId===null&&(e.systemId===null||e.systemId===el)}function al(e){if(e.name!==Ka)return Le.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===tl)return Le.QUIRKS;let{publicId:s}=e;if(s!==null){if(s=s.toLowerCase(),rl.has(s))return Le.QUIRKS;let r=t===null?sl:qa;if(hi(s,r))return Le.QUIRKS;if(r=t===null?Ja:nl,hi(s,r))return Le.LIMITED_QUIRKS}return Le.NO_QUIRKS}const li={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ul="definitionurl",ol="definitionURL",cl=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])),Al=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:N.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:N.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:N.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:N.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:N.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:N.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:N.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:N.XML}],["xml:space",{prefix:"xml",name:"space",namespace:N.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:N.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:N.XMLNS}]]),hl=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])),ll=new Set([i.B,i.BIG,i.BLOCKQUOTE,i.BODY,i.BR,i.CENTER,i.CODE,i.DD,i.DIV,i.DL,i.DT,i.EM,i.EMBED,i.H1,i.H2,i.H3,i.H4,i.H5,i.H6,i.HEAD,i.HR,i.I,i.IMG,i.LI,i.LISTING,i.MENU,i.META,i.NOBR,i.OL,i.P,i.PRE,i.RUBY,i.S,i.SMALL,i.SPAN,i.STRONG,i.STRIKE,i.SUB,i.SUP,i.TABLE,i.TT,i.U,i.UL,i.VAR]);function dl(e){const t=e.tagID;return t===i.FONT&&e.attrs.some(({name:r})=>r===at.COLOR||r===at.SIZE||r===at.FACE)||ll.has(t)}function ja(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===ul){e.attrs[t].name=ol;break}}function Za(e){for(let t=0;t<e.attrs.length;t++){const s=cl.get(e.attrs[t].name);s!=null&&(e.attrs[t].name=s)}}function on(e){for(let t=0;t<e.attrs.length;t++){const s=Al.get(e.attrs[t].name);s&&(e.attrs[t].prefix=s.prefix,e.attrs[t].name=s.name,e.attrs[t].namespace=s.namespace)}}function fl(e){const t=hl.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ms(e.tagName))}function ml(e,t){return t===N.MATHML&&(e===i.MI||e===i.MO||e===i.MN||e===i.MS||e===i.MTEXT)}function El(e,t,s){if(t===N.MATHML&&e===i.ANNOTATION_XML){for(let r=0;r<s.length;r++)if(s[r].name===at.ENCODING){const n=s[r].value.toLowerCase();return n===li.TEXT_HTML||n===li.APPLICATION_XML}}return t===N.SVG&&(e===i.FOREIGN_OBJECT||e===i.DESC||e===i.TITLE)}function gl(e,t,s,r){return(!r||r===N.HTML)&&El(e,t,s)||(!r||r===N.MATHML)&&ml(e,t)}const bl="hidden",pl=8,Tl=3;var g;(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"})(g||(g={}));const _l={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Va=new Set([i.TABLE,i.TBODY,i.TFOOT,i.THEAD,i.TR]),di={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:We,onParseError:null};class Xa{constructor(t,s,r=null,n=null){this.fragmentContext=r,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=g.INITIAL,this.originalInsertionMode=g.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={...di,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=s??this.treeAdapter.createDocument(),this.tokenizer=new Kh(this.options,this),this.activeFormattingElements=new $h(this.treeAdapter),this.fragmentContextID=r?Ms(this.treeAdapter.getTagName(r)):i.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new zh(this.document,this.treeAdapter,this)}static parse(t,s){const r=new this(s);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,s){const r={...di,...s};t??(t=r.treeAdapter.createElement(_.TEMPLATE,N.HTML,[]));const n=r.treeAdapter.createElement("documentmock",N.HTML,[]),a=new this(r,n,t);return a.fragmentContextID===i.TEMPLATE&&a.tmplInsertionModeStack.unshift(g.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),s=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,s),s}_err(t,s,r){var n;if(!this.onParseError)return;const a=(n=t.location)!==null&&n!==void 0?n:_l,u={code:s,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(u)}onItemPush(t,s,r){var n,a;(a=(n=this.treeAdapter).onItemPush)===null||a===void 0||a.call(n,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,s)}onItemPop(t,s){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(n=(r=this.treeAdapter).onItemPop)===null||n===void 0||n.call(r,t,this.openElements.current),s){let a,u;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,u=this.fragmentContextID):{current:a,currentTagId:u}=this.openElements,this._setContextModes(a,u)}}_setContextModes(t,s){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===N.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&s!==void 0&&!this._isIntegrationPoint(s,t)}_switchToTextParsing(t,s){this._insertElement(t,N.HTML),this.tokenizer.state=s,this.originalInsertionMode=this.insertionMode,this.insertionMode=g.TEXT}switchToPlaintextParsing(){this.insertionMode=g.TEXT,this.originalInsertionMode=g.IN_BODY,this.tokenizer.state=Be.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===_.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==N.HTML))switch(this.fragmentContextID){case i.TITLE:case i.TEXTAREA:{this.tokenizer.state=Be.RCDATA;break}case i.STYLE:case i.XMP:case i.IFRAME:case i.NOEMBED:case i.NOFRAMES:case i.NOSCRIPT:{this.tokenizer.state=Be.RAWTEXT;break}case i.SCRIPT:{this.tokenizer.state=Be.SCRIPT_DATA;break}case i.PLAINTEXT:{this.tokenizer.state=Be.PLAINTEXT;break}}}_setDocumentType(t){const s=t.name||"",r=t.publicId||"",n=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,s,r,n),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(c=>this.treeAdapter.isDocumentTypeNode(c));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,s){if(this.options.sourceCodeLocationInfo){const r=s&&{...s,startTag:s};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,s){const r=this.treeAdapter.createElement(t.tagName,s,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,s){const r=this.treeAdapter.createElement(t.tagName,s,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,s){const r=this.treeAdapter.createElement(t,N.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,s)}_insertTemplate(t){const s=this.treeAdapter.createElement(t.tagName,N.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(s,r),this._attachElementToTree(s,t.location),this.openElements.push(s,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(_.HTML,N.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,i.HTML)}_appendCommentNode(t,s){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(s,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let s,r;if(this._shouldFosterParentOnInsertion()?({parent:s,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(s,t.chars,r):this.treeAdapter.insertText(s,t.chars)):(s=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(s,t.chars)),!t.location)return;const n=this.treeAdapter.getChildNodes(s),a=r?n.lastIndexOf(r):n.length,u=n[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:h,endCol:f,endOffset:p}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:h,endCol:f,endOffset:p})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,s){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(s,r)}_setEndLocation(t,s){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&s.location){const r=s.location,n=this.treeAdapter.getTagName(t),a=s.type===X.END_TAG&&n===s.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let s,r;return this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,r=this.fragmentContextID):{current:s,currentTagId:r}=this.openElements,t.tagID===i.SVG&&this.treeAdapter.getTagName(s)===_.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(s)===N.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===i.MGLYPH||t.tagID===i.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,s,N.HTML)}_processToken(t){switch(t.type){case X.CHARACTER:{this.onCharacter(t);break}case X.NULL_CHARACTER:{this.onNullCharacter(t);break}case X.COMMENT:{this.onComment(t);break}case X.DOCTYPE:{this.onDoctype(t);break}case X.START_TAG:{this._processStartTag(t);break}case X.END_TAG:{this.onEndTag(t);break}case X.EOF:{this.onEof(t);break}case X.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,s,r){const n=this.treeAdapter.getNamespaceURI(s),a=this.treeAdapter.getAttrList(s);return gl(t,n,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const s=this.activeFormattingElements.entries.findIndex(n=>n.type===Fe.Marker||this.openElements.contains(n.element)),r=s===-1?t-1:s-1;for(let n=r;n>=0;n--){const a=this.activeFormattingElements.entries[n];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=g.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(i.P),this.openElements.popUntilTagNamePopped(i.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case i.TR:{this.insertionMode=g.IN_ROW;return}case i.TBODY:case i.THEAD:case i.TFOOT:{this.insertionMode=g.IN_TABLE_BODY;return}case i.CAPTION:{this.insertionMode=g.IN_CAPTION;return}case i.COLGROUP:{this.insertionMode=g.IN_COLUMN_GROUP;return}case i.TABLE:{this.insertionMode=g.IN_TABLE;return}case i.BODY:{this.insertionMode=g.IN_BODY;return}case i.FRAMESET:{this.insertionMode=g.IN_FRAMESET;return}case i.SELECT:{this._resetInsertionModeForSelect(t);return}case i.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case i.HTML:{this.insertionMode=this.headElement?g.AFTER_HEAD:g.BEFORE_HEAD;return}case i.TD:case i.TH:{if(t>0){this.insertionMode=g.IN_CELL;return}break}case i.HEAD:{if(t>0){this.insertionMode=g.IN_HEAD;return}break}}this.insertionMode=g.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let s=t-1;s>0;s--){const r=this.openElements.tagIDs[s];if(r===i.TEMPLATE)break;if(r===i.TABLE){this.insertionMode=g.IN_SELECT_IN_TABLE;return}}this.insertionMode=g.IN_SELECT}_isElementCausesFosterParenting(t){return Va.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const s=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case i.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(s)===N.HTML)return{parent:this.treeAdapter.getTemplateContent(s),beforeElement:null};break}case i.TABLE:{const r=this.treeAdapter.getParentNode(s);return r?{parent:r,beforeElement:s}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const s=this._findFosterParentingLocation();s.beforeElement?this.treeAdapter.insertBefore(s.parent,t,s.beforeElement):this.treeAdapter.appendChild(s.parent,t)}_isSpecialElement(t,s){const r=this.treeAdapter.getNamespaceURI(t);return vh[r].has(s)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Xd(this,t);return}switch(this.insertionMode){case g.INITIAL:{Dt(this,t);break}case g.BEFORE_HTML:{xt(this,t);break}case g.BEFORE_HEAD:{Pt(this,t);break}case g.IN_HEAD:{kt(this,t);break}case g.IN_HEAD_NO_SCRIPT:{Ft(this,t);break}case g.AFTER_HEAD:{Mt(this,t);break}case g.IN_BODY:case g.IN_CAPTION:case g.IN_CELL:case g.IN_TEMPLATE:{$a(this,t);break}case g.TEXT:case g.IN_SELECT:case g.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case g.IN_TABLE:case g.IN_TABLE_BODY:case g.IN_ROW:{ar(this,t);break}case g.IN_TABLE_TEXT:{iu(this,t);break}case g.IN_COLUMN_GROUP:{Ns(this,t);break}case g.AFTER_BODY:{Ds(this,t);break}case g.AFTER_AFTER_BODY:{ds(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Vd(this,t);return}switch(this.insertionMode){case g.INITIAL:{Dt(this,t);break}case g.BEFORE_HTML:{xt(this,t);break}case g.BEFORE_HEAD:{Pt(this,t);break}case g.IN_HEAD:{kt(this,t);break}case g.IN_HEAD_NO_SCRIPT:{Ft(this,t);break}case g.AFTER_HEAD:{Mt(this,t);break}case g.TEXT:{this._insertCharacters(t);break}case g.IN_TABLE:case g.IN_TABLE_BODY:case g.IN_ROW:{ar(this,t);break}case g.IN_COLUMN_GROUP:{Ns(this,t);break}case g.AFTER_BODY:{Ds(this,t);break}case g.AFTER_AFTER_BODY:{ds(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Lr(this,t);return}switch(this.insertionMode){case g.INITIAL:case g.BEFORE_HTML:case g.BEFORE_HEAD:case g.IN_HEAD:case g.IN_HEAD_NO_SCRIPT:case g.AFTER_HEAD:case g.IN_BODY:case g.IN_TABLE:case g.IN_CAPTION:case g.IN_COLUMN_GROUP:case g.IN_TABLE_BODY:case g.IN_ROW:case g.IN_CELL:case g.IN_SELECT:case g.IN_SELECT_IN_TABLE:case g.IN_TEMPLATE:case g.IN_FRAMESET:case g.AFTER_FRAMESET:{Lr(this,t);break}case g.IN_TABLE_TEXT:{Rt(this,t);break}case g.AFTER_BODY:{Rl(this,t);break}case g.AFTER_AFTER_BODY:case g.AFTER_AFTER_FRAMESET:{Ol(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case g.INITIAL:{Bl(this,t);break}case g.BEFORE_HEAD:case g.IN_HEAD:case g.IN_HEAD_NO_SCRIPT:case g.AFTER_HEAD:{this._err(t,C.misplacedDoctype);break}case g.IN_TABLE_TEXT:{Rt(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,C.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?zd(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case g.INITIAL:{Dt(this,t);break}case g.BEFORE_HTML:{wl(this,t);break}case g.BEFORE_HEAD:{xl(this,t);break}case g.IN_HEAD:{ke(this,t);break}case g.IN_HEAD_NO_SCRIPT:{Fl(this,t);break}case g.AFTER_HEAD:{Hl(this,t);break}case g.IN_BODY:{ye(this,t);break}case g.IN_TABLE:{Tt(this,t);break}case g.IN_TABLE_TEXT:{Rt(this,t);break}case g.IN_CAPTION:{Pd(this,t);break}case g.IN_COLUMN_GROUP:{hn(this,t);break}case g.IN_TABLE_BODY:{Us(this,t);break}case g.IN_ROW:{Qs(this,t);break}case g.IN_CELL:{Md(this,t);break}case g.IN_SELECT:{ou(this,t);break}case g.IN_SELECT_IN_TABLE:{vd(this,t);break}case g.IN_TEMPLATE:{Qd(this,t);break}case g.AFTER_BODY:{Wd(this,t);break}case g.IN_FRAMESET:{Gd(this,t);break}case g.AFTER_FRAMESET:{qd(this,t);break}case g.AFTER_AFTER_BODY:{jd(this,t);break}case g.AFTER_AFTER_FRAMESET:{Zd(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?$d(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case g.INITIAL:{Dt(this,t);break}case g.BEFORE_HTML:{Ll(this,t);break}case g.BEFORE_HEAD:{Pl(this,t);break}case g.IN_HEAD:{kl(this,t);break}case g.IN_HEAD_NO_SCRIPT:{Ml(this,t);break}case g.AFTER_HEAD:{vl(this,t);break}case g.IN_BODY:{vs(this,t);break}case g.TEXT:{yd(this,t);break}case g.IN_TABLE:{Wt(this,t);break}case g.IN_TABLE_TEXT:{Rt(this,t);break}case g.IN_CAPTION:{kd(this,t);break}case g.IN_COLUMN_GROUP:{Fd(this,t);break}case g.IN_TABLE_BODY:{xr(this,t);break}case g.IN_ROW:{uu(this,t);break}case g.IN_CELL:{Hd(this,t);break}case g.IN_SELECT:{cu(this,t);break}case g.IN_SELECT_IN_TABLE:{Ud(this,t);break}case g.IN_TEMPLATE:{Yd(this,t);break}case g.AFTER_BODY:{hu(this,t);break}case g.IN_FRAMESET:{Kd(this,t);break}case g.AFTER_FRAMESET:{Jd(this,t);break}case g.AFTER_AFTER_BODY:{ds(this,t);break}}}onEof(t){switch(this.insertionMode){case g.INITIAL:{Dt(this,t);break}case g.BEFORE_HTML:{xt(this,t);break}case g.BEFORE_HEAD:{Pt(this,t);break}case g.IN_HEAD:{kt(this,t);break}case g.IN_HEAD_NO_SCRIPT:{Ft(this,t);break}case g.AFTER_HEAD:{Mt(this,t);break}case g.IN_BODY:case g.IN_TABLE:case g.IN_CAPTION:case g.IN_COLUMN_GROUP:case g.IN_TABLE_BODY:case g.IN_ROW:case g.IN_CELL:case g.IN_SELECT:case g.IN_SELECT_IN_TABLE:{ru(this,t);break}case g.TEXT:{Sd(this,t);break}case g.IN_TABLE_TEXT:{Rt(this,t);break}case g.IN_TEMPLATE:{Au(this,t);break}case g.AFTER_BODY:case g.IN_FRAMESET:case g.AFTER_FRAMESET:case g.AFTER_AFTER_BODY:case g.AFTER_AFTER_FRAMESET:{An(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===l.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case g.IN_HEAD:case g.IN_HEAD_NO_SCRIPT:case g.AFTER_HEAD:case g.TEXT:case g.IN_COLUMN_GROUP:case g.IN_SELECT:case g.IN_SELECT_IN_TABLE:case g.IN_FRAMESET:case g.AFTER_FRAMESET:{this._insertCharacters(t);break}case g.IN_BODY:case g.IN_CAPTION:case g.IN_CELL:case g.IN_TEMPLATE:case g.AFTER_BODY:case g.AFTER_AFTER_BODY:case g.AFTER_AFTER_FRAMESET:{za(this,t);break}case g.IN_TABLE:case g.IN_TABLE_BODY:case g.IN_ROW:{ar(this,t);break}case g.IN_TABLE_TEXT:{nu(this,t);break}}}}function Il(e,t){let s=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return s?e.openElements.contains(s.element)?e.openElements.hasInScope(t.tagID)||(s=null):(e.activeFormattingElements.removeEntry(s),s=null):su(e,t),s}function Cl(e,t){let s=null,r=e.openElements.stackTop;for(;r>=0;r--){const n=e.openElements.items[r];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[r])&&(s=n)}return s||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),s}function yl(e,t,s){let r=t,n=e.openElements.getCommonAncestor(t);for(let a=0,u=n;u!==s;a++,u=n){n=e.openElements.getCommonAncestor(u);const c=e.activeFormattingElements.getElementEntry(u),h=c&&a>=Tl;!c||h?(h&&e.activeFormattingElements.removeEntry(c),e.openElements.remove(u)):(u=Sl(e,c),r===t&&(e.activeFormattingElements.bookmark=c),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(u,r),r=u)}return r}function Sl(e,t){const s=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,s,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Nl(e,t,s){const r=e.treeAdapter.getTagName(t),n=Ms(r);if(e._isElementCausesFosterParenting(n))e._fosterParentElement(s);else{const a=e.treeAdapter.getNamespaceURI(t);n===i.TEMPLATE&&a===N.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,s)}}function Dl(e,t,s){const r=e.treeAdapter.getNamespaceURI(s.element),{token:n}=s,a=e.treeAdapter.createElement(n.tagName,r,n.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n),e.activeFormattingElements.removeEntry(s),e.openElements.remove(s.element),e.openElements.insertAfter(t,a,n.tagID)}function cn(e,t){for(let s=0;s<pl;s++){const r=Il(e,t);if(!r)break;const n=Cl(e,r);if(!n)break;e.activeFormattingElements.bookmark=r;const a=yl(e,n,r.element),u=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),u&&Nl(e,u,a),Dl(e,n,r)}}function Lr(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Rl(e,t){e._appendCommentNode(t,e.openElements.items[0])}function Ol(e,t){e._appendCommentNode(t,e.document)}function An(e,t){if(e.stopped=!0,t.location){const s=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=s;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(a);u&&!u.endTag&&e._setEndLocation(a,t)}}}}function Bl(e,t){e._setDocumentType(t);const s=t.forceQuirks?Le.QUIRKS:al(t);il(t)||e._err(t,C.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,s),e.insertionMode=g.BEFORE_HTML}function Dt(e,t){e._err(t,C.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Le.QUIRKS),e.insertionMode=g.BEFORE_HTML,e._processToken(t)}function wl(e,t){t.tagID===i.HTML?(e._insertElement(t,N.HTML),e.insertionMode=g.BEFORE_HEAD):xt(e,t)}function Ll(e,t){const s=t.tagID;(s===i.HTML||s===i.HEAD||s===i.BODY||s===i.BR)&&xt(e,t)}function xt(e,t){e._insertFakeRootElement(),e.insertionMode=g.BEFORE_HEAD,e._processToken(t)}function xl(e,t){switch(t.tagID){case i.HTML:{ye(e,t);break}case i.HEAD:{e._insertElement(t,N.HTML),e.headElement=e.openElements.current,e.insertionMode=g.IN_HEAD;break}default:Pt(e,t)}}function Pl(e,t){const s=t.tagID;s===i.HEAD||s===i.BODY||s===i.HTML||s===i.BR?Pt(e,t):e._err(t,C.endTagWithoutMatchingOpenElement)}function Pt(e,t){e._insertFakeElement(_.HEAD,i.HEAD),e.headElement=e.openElements.current,e.insertionMode=g.IN_HEAD,e._processToken(t)}function ke(e,t){switch(t.tagID){case i.HTML:{ye(e,t);break}case i.BASE:case i.BASEFONT:case i.BGSOUND:case i.LINK:case i.META:{e._appendElement(t,N.HTML),t.ackSelfClosing=!0;break}case i.TITLE:{e._switchToTextParsing(t,Be.RCDATA);break}case i.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Be.RAWTEXT):(e._insertElement(t,N.HTML),e.insertionMode=g.IN_HEAD_NO_SCRIPT);break}case i.NOFRAMES:case i.STYLE:{e._switchToTextParsing(t,Be.RAWTEXT);break}case i.SCRIPT:{e._switchToTextParsing(t,Be.SCRIPT_DATA);break}case i.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=g.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(g.IN_TEMPLATE);break}case i.HEAD:{e._err(t,C.misplacedStartTagForHeadElement);break}default:kt(e,t)}}function kl(e,t){switch(t.tagID){case i.HEAD:{e.openElements.pop(),e.insertionMode=g.AFTER_HEAD;break}case i.BODY:case i.BR:case i.HTML:{kt(e,t);break}case i.TEMPLATE:{ht(e,t);break}default:e._err(t,C.endTagWithoutMatchingOpenElement)}}function ht(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==i.TEMPLATE&&e._err(t,C.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(i.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,C.endTagWithoutMatchingOpenElement)}function kt(e,t){e.openElements.pop(),e.insertionMode=g.AFTER_HEAD,e._processToken(t)}function Fl(e,t){switch(t.tagID){case i.HTML:{ye(e,t);break}case i.BASEFONT:case i.BGSOUND:case i.HEAD:case i.LINK:case i.META:case i.NOFRAMES:case i.STYLE:{ke(e,t);break}case i.NOSCRIPT:{e._err(t,C.nestedNoscriptInHead);break}default:Ft(e,t)}}function Ml(e,t){switch(t.tagID){case i.NOSCRIPT:{e.openElements.pop(),e.insertionMode=g.IN_HEAD;break}case i.BR:{Ft(e,t);break}default:e._err(t,C.endTagWithoutMatchingOpenElement)}}function Ft(e,t){const s=t.type===X.EOF?C.openElementsLeftAfterEof:C.disallowedContentInNoscriptInHead;e._err(t,s),e.openElements.pop(),e.insertionMode=g.IN_HEAD,e._processToken(t)}function Hl(e,t){switch(t.tagID){case i.HTML:{ye(e,t);break}case i.BODY:{e._insertElement(t,N.HTML),e.framesetOk=!1,e.insertionMode=g.IN_BODY;break}case i.FRAMESET:{e._insertElement(t,N.HTML),e.insertionMode=g.IN_FRAMESET;break}case i.BASE:case i.BASEFONT:case i.BGSOUND:case i.LINK:case i.META:case i.NOFRAMES:case i.SCRIPT:case i.STYLE:case i.TEMPLATE:case i.TITLE:{e._err(t,C.abandonedHeadElementChild),e.openElements.push(e.headElement,i.HEAD),ke(e,t),e.openElements.remove(e.headElement);break}case i.HEAD:{e._err(t,C.misplacedStartTagForHeadElement);break}default:Mt(e,t)}}function vl(e,t){switch(t.tagID){case i.BODY:case i.HTML:case i.BR:{Mt(e,t);break}case i.TEMPLATE:{ht(e,t);break}default:e._err(t,C.endTagWithoutMatchingOpenElement)}}function Mt(e,t){e._insertFakeElement(_.BODY,i.BODY),e.insertionMode=g.IN_BODY,Hs(e,t)}function Hs(e,t){switch(t.type){case X.CHARACTER:{$a(e,t);break}case X.WHITESPACE_CHARACTER:{za(e,t);break}case X.COMMENT:{Lr(e,t);break}case X.START_TAG:{ye(e,t);break}case X.END_TAG:{vs(e,t);break}case X.EOF:{ru(e,t);break}}}function za(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function $a(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Ul(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Ql(e,t){const s=e.openElements.tryPeekProperlyNestedBodyElement();s&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(s,t.attrs))}function Yl(e,t){const s=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&s&&(e.treeAdapter.detachNode(s),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,N.HTML),e.insertionMode=g.IN_FRAMESET)}function Wl(e,t){e.openElements.hasInButtonScope(i.P)&&e._closePElement(),e._insertElement(t,N.HTML)}function Gl(e,t){e.openElements.hasInButtonScope(i.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&wr.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,N.HTML)}function Kl(e,t){e.openElements.hasInButtonScope(i.P)&&e._closePElement(),e._insertElement(t,N.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ql(e,t){const s=e.openElements.tmplCount>0;(!e.formElement||s)&&(e.openElements.hasInButtonScope(i.P)&&e._closePElement(),e._insertElement(t,N.HTML),s||(e.formElement=e.openElements.current))}function Jl(e,t){e.framesetOk=!1;const s=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const n=e.openElements.tagIDs[r];if(s===i.LI&&n===i.LI||(s===i.DD||s===i.DT)&&(n===i.DD||n===i.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==i.ADDRESS&&n!==i.DIV&&n!==i.P&&e._isSpecialElement(e.openElements.items[r],n))break}e.openElements.hasInButtonScope(i.P)&&e._closePElement(),e._insertElement(t,N.HTML)}function jl(e,t){e.openElements.hasInButtonScope(i.P)&&e._closePElement(),e._insertElement(t,N.HTML),e.tokenizer.state=Be.PLAINTEXT}function Zl(e,t){e.openElements.hasInScope(i.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.framesetOk=!1}function Vl(e,t){const s=e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);s&&(cn(e,t),e.openElements.remove(s.element),e.activeFormattingElements.removeEntry(s)),e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Xl(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function zl(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(i.NOBR)&&(cn(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,N.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $l(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function ed(e,t){e.treeAdapter.getDocumentMode(e.document)!==Le.QUIRKS&&e.openElements.hasInButtonScope(i.P)&&e._closePElement(),e._insertElement(t,N.HTML),e.framesetOk=!1,e.insertionMode=g.IN_TABLE}function eu(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,N.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function tu(e){const t=Ya(e,at.TYPE);return t!=null&&t.toLowerCase()===bl}function td(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,N.HTML),tu(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function sd(e,t){e._appendElement(t,N.HTML),t.ackSelfClosing=!0}function rd(e,t){e.openElements.hasInButtonScope(i.P)&&e._closePElement(),e._appendElement(t,N.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function nd(e,t){t.tagName=_.IMG,t.tagID=i.IMG,eu(e,t)}function id(e,t){e._insertElement(t,N.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Be.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=g.TEXT}function ad(e,t){e.openElements.hasInButtonScope(i.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Be.RAWTEXT)}function ud(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Be.RAWTEXT)}function fi(e,t){e._switchToTextParsing(t,Be.RAWTEXT)}function od(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===g.IN_TABLE||e.insertionMode===g.IN_CAPTION||e.insertionMode===g.IN_TABLE_BODY||e.insertionMode===g.IN_ROW||e.insertionMode===g.IN_CELL?g.IN_SELECT_IN_TABLE:g.IN_SELECT}function cd(e,t){e.openElements.currentTagId===i.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML)}function Ad(e,t){e.openElements.hasInScope(i.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,N.HTML)}function hd(e,t){e.openElements.hasInScope(i.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(i.RTC),e._insertElement(t,N.HTML)}function ld(e,t){e._reconstructActiveFormattingElements(),ja(t),on(t),t.selfClosing?e._appendElement(t,N.MATHML):e._insertElement(t,N.MATHML),t.ackSelfClosing=!0}function dd(e,t){e._reconstructActiveFormattingElements(),Za(t),on(t),t.selfClosing?e._appendElement(t,N.SVG):e._insertElement(t,N.SVG),t.ackSelfClosing=!0}function mi(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,N.HTML)}function ye(e,t){switch(t.tagID){case i.I:case i.S:case i.B:case i.U:case i.EM:case i.TT:case i.BIG:case i.CODE:case i.FONT:case i.SMALL:case i.STRIKE:case i.STRONG:{Xl(e,t);break}case i.A:{Vl(e,t);break}case i.H1:case i.H2:case i.H3:case i.H4:case i.H5:case i.H6:{Gl(e,t);break}case i.P:case i.DL:case i.OL:case i.UL:case i.DIV:case i.DIR:case i.NAV:case i.MAIN:case i.MENU:case i.ASIDE:case i.CENTER:case i.FIGURE:case i.FOOTER:case i.HEADER:case i.HGROUP:case i.DIALOG:case i.DETAILS:case i.ADDRESS:case i.ARTICLE:case i.SEARCH:case i.SECTION:case i.SUMMARY:case i.FIELDSET:case i.BLOCKQUOTE:case i.FIGCAPTION:{Wl(e,t);break}case i.LI:case i.DD:case i.DT:{Jl(e,t);break}case i.BR:case i.IMG:case i.WBR:case i.AREA:case i.EMBED:case i.KEYGEN:{eu(e,t);break}case i.HR:{rd(e,t);break}case i.RB:case i.RTC:{Ad(e,t);break}case i.RT:case i.RP:{hd(e,t);break}case i.PRE:case i.LISTING:{Kl(e,t);break}case i.XMP:{ad(e,t);break}case i.SVG:{dd(e,t);break}case i.HTML:{Ul(e,t);break}case i.BASE:case i.LINK:case i.META:case i.STYLE:case i.TITLE:case i.SCRIPT:case i.BGSOUND:case i.BASEFONT:case i.TEMPLATE:{ke(e,t);break}case i.BODY:{Ql(e,t);break}case i.FORM:{ql(e,t);break}case i.NOBR:{zl(e,t);break}case i.MATH:{ld(e,t);break}case i.TABLE:{ed(e,t);break}case i.INPUT:{td(e,t);break}case i.PARAM:case i.TRACK:case i.SOURCE:{sd(e,t);break}case i.IMAGE:{nd(e,t);break}case i.BUTTON:{Zl(e,t);break}case i.APPLET:case i.OBJECT:case i.MARQUEE:{$l(e,t);break}case i.IFRAME:{ud(e,t);break}case i.SELECT:{od(e,t);break}case i.OPTION:case i.OPTGROUP:{cd(e,t);break}case i.NOEMBED:case i.NOFRAMES:{fi(e,t);break}case i.FRAMESET:{Yl(e,t);break}case i.TEXTAREA:{id(e,t);break}case i.NOSCRIPT:{e.options.scriptingEnabled?fi(e,t):mi(e,t);break}case i.PLAINTEXT:{jl(e,t);break}case i.COL:case i.TH:case i.TD:case i.TR:case i.HEAD:case i.FRAME:case i.TBODY:case i.TFOOT:case i.THEAD:case i.CAPTION:case i.COLGROUP:break;default:mi(e,t)}}function fd(e,t){if(e.openElements.hasInScope(i.BODY)&&(e.insertionMode=g.AFTER_BODY,e.options.sourceCodeLocationInfo)){const s=e.openElements.tryPeekProperlyNestedBodyElement();s&&e._setEndLocation(s,t)}}function md(e,t){e.openElements.hasInScope(i.BODY)&&(e.insertionMode=g.AFTER_BODY,hu(e,t))}function Ed(e,t){const s=t.tagID;e.openElements.hasInScope(s)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s))}function gd(e){const t=e.openElements.tmplCount>0,{formElement:s}=e;t||(e.formElement=null),(s||t)&&e.openElements.hasInScope(i.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(i.FORM):s&&e.openElements.remove(s))}function bd(e){e.openElements.hasInButtonScope(i.P)||e._insertFakeElement(_.P,i.P),e._closePElement()}function pd(e){e.openElements.hasInListItemScope(i.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(i.LI),e.openElements.popUntilTagNamePopped(i.LI))}function Td(e,t){const s=t.tagID;e.openElements.hasInScope(s)&&(e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s))}function _d(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Id(e,t){const s=t.tagID;e.openElements.hasInScope(s)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s),e.activeFormattingElements.clearToLastMarker())}function Cd(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(_.BR,i.BR),e.openElements.pop(),e.framesetOk=!1}function su(e,t){const s=t.tagName,r=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){const a=e.openElements.items[n],u=e.openElements.tagIDs[n];if(r===u&&(r!==i.UNKNOWN||e.treeAdapter.getTagName(a)===s)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(a,u))break}}function vs(e,t){switch(t.tagID){case i.A:case i.B:case i.I:case i.S:case i.U:case i.EM:case i.TT:case i.BIG:case i.CODE:case i.FONT:case i.NOBR:case i.SMALL:case i.STRIKE:case i.STRONG:{cn(e,t);break}case i.P:{bd(e);break}case i.DL:case i.UL:case i.OL:case i.DIR:case i.DIV:case i.NAV:case i.PRE:case i.MAIN:case i.MENU:case i.ASIDE:case i.BUTTON:case i.CENTER:case i.FIGURE:case i.FOOTER:case i.HEADER:case i.HGROUP:case i.DIALOG:case i.ADDRESS:case i.ARTICLE:case i.DETAILS:case i.SEARCH:case i.SECTION:case i.SUMMARY:case i.LISTING:case i.FIELDSET:case i.BLOCKQUOTE:case i.FIGCAPTION:{Ed(e,t);break}case i.LI:{pd(e);break}case i.DD:case i.DT:{Td(e,t);break}case i.H1:case i.H2:case i.H3:case i.H4:case i.H5:case i.H6:{_d(e);break}case i.BR:{Cd(e);break}case i.BODY:{fd(e,t);break}case i.HTML:{md(e,t);break}case i.FORM:{gd(e);break}case i.APPLET:case i.OBJECT:case i.MARQUEE:{Id(e,t);break}case i.TEMPLATE:{ht(e,t);break}default:su(e,t)}}function ru(e,t){e.tmplInsertionModeStack.length>0?Au(e,t):An(e,t)}function yd(e,t){var s;t.tagID===i.SCRIPT&&((s=e.scriptHandler)===null||s===void 0||s.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Sd(e,t){e._err(t,C.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ar(e,t){if(e.openElements.currentTagId!==void 0&&Va.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=g.IN_TABLE_TEXT,t.type){case X.CHARACTER:{iu(e,t);break}case X.WHITESPACE_CHARACTER:{nu(e,t);break}}else zt(e,t)}function Nd(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,N.HTML),e.insertionMode=g.IN_CAPTION}function Dd(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,N.HTML),e.insertionMode=g.IN_COLUMN_GROUP}function Rd(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.COLGROUP,i.COLGROUP),e.insertionMode=g.IN_COLUMN_GROUP,hn(e,t)}function Od(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,N.HTML),e.insertionMode=g.IN_TABLE_BODY}function Bd(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.TBODY,i.TBODY),e.insertionMode=g.IN_TABLE_BODY,Us(e,t)}function wd(e,t){e.openElements.hasInTableScope(i.TABLE)&&(e.openElements.popUntilTagNamePopped(i.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Ld(e,t){tu(t)?e._appendElement(t,N.HTML):zt(e,t),t.ackSelfClosing=!0}function xd(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,N.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Tt(e,t){switch(t.tagID){case i.TD:case i.TH:case i.TR:{Bd(e,t);break}case i.STYLE:case i.SCRIPT:case i.TEMPLATE:{ke(e,t);break}case i.COL:{Rd(e,t);break}case i.FORM:{xd(e,t);break}case i.TABLE:{wd(e,t);break}case i.TBODY:case i.TFOOT:case i.THEAD:{Od(e,t);break}case i.INPUT:{Ld(e,t);break}case i.CAPTION:{Nd(e,t);break}case i.COLGROUP:{Dd(e,t);break}default:zt(e,t)}}function Wt(e,t){switch(t.tagID){case i.TABLE:{e.openElements.hasInTableScope(i.TABLE)&&(e.openElements.popUntilTagNamePopped(i.TABLE),e._resetInsertionMode());break}case i.TEMPLATE:{ht(e,t);break}case i.BODY:case i.CAPTION:case i.COL:case i.COLGROUP:case i.HTML:case i.TBODY:case i.TD:case i.TFOOT:case i.TH:case i.THEAD:case i.TR:break;default:zt(e,t)}}function zt(e,t){const s=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Hs(e,t),e.fosterParentingEnabled=s}function nu(e,t){e.pendingCharacterTokens.push(t)}function iu(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Rt(e,t){let s=0;if(e.hasNonWhitespacePendingCharacterToken)for(;s<e.pendingCharacterTokens.length;s++)zt(e,e.pendingCharacterTokens[s]);else for(;s<e.pendingCharacterTokens.length;s++)e._insertCharacters(e.pendingCharacterTokens[s]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const au=new Set([i.CAPTION,i.COL,i.COLGROUP,i.TBODY,i.TD,i.TFOOT,i.TH,i.THEAD,i.TR]);function Pd(e,t){const s=t.tagID;au.has(s)?e.openElements.hasInTableScope(i.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=g.IN_TABLE,Tt(e,t)):ye(e,t)}function kd(e,t){const s=t.tagID;switch(s){case i.CAPTION:case i.TABLE:{e.openElements.hasInTableScope(i.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(i.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=g.IN_TABLE,s===i.TABLE&&Wt(e,t));break}case i.BODY:case i.COL:case i.COLGROUP:case i.HTML:case i.TBODY:case i.TD:case i.TFOOT:case i.TH:case i.THEAD:case i.TR:break;default:vs(e,t)}}function hn(e,t){switch(t.tagID){case i.HTML:{ye(e,t);break}case i.COL:{e._appendElement(t,N.HTML),t.ackSelfClosing=!0;break}case i.TEMPLATE:{ke(e,t);break}default:Ns(e,t)}}function Fd(e,t){switch(t.tagID){case i.COLGROUP:{e.openElements.currentTagId===i.COLGROUP&&(e.openElements.pop(),e.insertionMode=g.IN_TABLE);break}case i.TEMPLATE:{ht(e,t);break}case i.COL:break;default:Ns(e,t)}}function Ns(e,t){e.openElements.currentTagId===i.COLGROUP&&(e.openElements.pop(),e.insertionMode=g.IN_TABLE,e._processToken(t))}function Us(e,t){switch(t.tagID){case i.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,N.HTML),e.insertionMode=g.IN_ROW;break}case i.TH:case i.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(_.TR,i.TR),e.insertionMode=g.IN_ROW,Qs(e,t);break}case i.CAPTION:case i.COL:case i.COLGROUP:case i.TBODY:case i.TFOOT:case i.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE,Tt(e,t));break}default:Tt(e,t)}}function xr(e,t){const s=t.tagID;switch(t.tagID){case i.TBODY:case i.TFOOT:case i.THEAD:{e.openElements.hasInTableScope(s)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE);break}case i.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE,Wt(e,t));break}case i.BODY:case i.CAPTION:case i.COL:case i.COLGROUP:case i.HTML:case i.TD:case i.TH:case i.TR:break;default:Wt(e,t)}}function Qs(e,t){switch(t.tagID){case i.TH:case i.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,N.HTML),e.insertionMode=g.IN_CELL,e.activeFormattingElements.insertMarker();break}case i.CAPTION:case i.COL:case i.COLGROUP:case i.TBODY:case i.TFOOT:case i.THEAD:case i.TR:{e.openElements.hasInTableScope(i.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE_BODY,Us(e,t));break}default:Tt(e,t)}}function uu(e,t){switch(t.tagID){case i.TR:{e.openElements.hasInTableScope(i.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE_BODY);break}case i.TABLE:{e.openElements.hasInTableScope(i.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE_BODY,xr(e,t));break}case i.TBODY:case i.TFOOT:case i.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(i.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE_BODY,xr(e,t));break}case i.BODY:case i.CAPTION:case i.COL:case i.COLGROUP:case i.HTML:case i.TD:case i.TH:break;default:Wt(e,t)}}function Md(e,t){const s=t.tagID;au.has(s)?(e.openElements.hasInTableScope(i.TD)||e.openElements.hasInTableScope(i.TH))&&(e._closeTableCell(),Qs(e,t)):ye(e,t)}function Hd(e,t){const s=t.tagID;switch(s){case i.TD:case i.TH:{e.openElements.hasInTableScope(s)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=g.IN_ROW);break}case i.TABLE:case i.TBODY:case i.TFOOT:case i.THEAD:case i.TR:{e.openElements.hasInTableScope(s)&&(e._closeTableCell(),uu(e,t));break}case i.BODY:case i.CAPTION:case i.COL:case i.COLGROUP:case i.HTML:break;default:vs(e,t)}}function ou(e,t){switch(t.tagID){case i.HTML:{ye(e,t);break}case i.OPTION:{e.openElements.currentTagId===i.OPTION&&e.openElements.pop(),e._insertElement(t,N.HTML);break}case i.OPTGROUP:{e.openElements.currentTagId===i.OPTION&&e.openElements.pop(),e.openElements.currentTagId===i.OPTGROUP&&e.openElements.pop(),e._insertElement(t,N.HTML);break}case i.HR:{e.openElements.currentTagId===i.OPTION&&e.openElements.pop(),e.openElements.currentTagId===i.OPTGROUP&&e.openElements.pop(),e._appendElement(t,N.HTML),t.ackSelfClosing=!0;break}case i.INPUT:case i.KEYGEN:case i.TEXTAREA:case i.SELECT:{e.openElements.hasInSelectScope(i.SELECT)&&(e.openElements.popUntilTagNamePopped(i.SELECT),e._resetInsertionMode(),t.tagID!==i.SELECT&&e._processStartTag(t));break}case i.SCRIPT:case i.TEMPLATE:{ke(e,t);break}}}function cu(e,t){switch(t.tagID){case i.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===i.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===i.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===i.OPTGROUP&&e.openElements.pop();break}case i.OPTION:{e.openElements.currentTagId===i.OPTION&&e.openElements.pop();break}case i.SELECT:{e.openElements.hasInSelectScope(i.SELECT)&&(e.openElements.popUntilTagNamePopped(i.SELECT),e._resetInsertionMode());break}case i.TEMPLATE:{ht(e,t);break}}}function vd(e,t){const s=t.tagID;s===i.CAPTION||s===i.TABLE||s===i.TBODY||s===i.TFOOT||s===i.THEAD||s===i.TR||s===i.TD||s===i.TH?(e.openElements.popUntilTagNamePopped(i.SELECT),e._resetInsertionMode(),e._processStartTag(t)):ou(e,t)}function Ud(e,t){const s=t.tagID;s===i.CAPTION||s===i.TABLE||s===i.TBODY||s===i.TFOOT||s===i.THEAD||s===i.TR||s===i.TD||s===i.TH?e.openElements.hasInTableScope(s)&&(e.openElements.popUntilTagNamePopped(i.SELECT),e._resetInsertionMode(),e.onEndTag(t)):cu(e,t)}function Qd(e,t){switch(t.tagID){case i.BASE:case i.BASEFONT:case i.BGSOUND:case i.LINK:case i.META:case i.NOFRAMES:case i.SCRIPT:case i.STYLE:case i.TEMPLATE:case i.TITLE:{ke(e,t);break}case i.CAPTION:case i.COLGROUP:case i.TBODY:case i.TFOOT:case i.THEAD:{e.tmplInsertionModeStack[0]=g.IN_TABLE,e.insertionMode=g.IN_TABLE,Tt(e,t);break}case i.COL:{e.tmplInsertionModeStack[0]=g.IN_COLUMN_GROUP,e.insertionMode=g.IN_COLUMN_GROUP,hn(e,t);break}case i.TR:{e.tmplInsertionModeStack[0]=g.IN_TABLE_BODY,e.insertionMode=g.IN_TABLE_BODY,Us(e,t);break}case i.TD:case i.TH:{e.tmplInsertionModeStack[0]=g.IN_ROW,e.insertionMode=g.IN_ROW,Qs(e,t);break}default:e.tmplInsertionModeStack[0]=g.IN_BODY,e.insertionMode=g.IN_BODY,ye(e,t)}}function Yd(e,t){t.tagID===i.TEMPLATE&&ht(e,t)}function Au(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(i.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):An(e,t)}function Wd(e,t){t.tagID===i.HTML?ye(e,t):Ds(e,t)}function hu(e,t){var s;if(t.tagID===i.HTML){if(e.fragmentContext||(e.insertionMode=g.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===i.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((s=e.treeAdapter.getNodeSourceCodeLocation(r))===null||s===void 0)&&s.endTag)&&e._setEndLocation(r,t)}}else Ds(e,t)}function Ds(e,t){e.insertionMode=g.IN_BODY,Hs(e,t)}function Gd(e,t){switch(t.tagID){case i.HTML:{ye(e,t);break}case i.FRAMESET:{e._insertElement(t,N.HTML);break}case i.FRAME:{e._appendElement(t,N.HTML),t.ackSelfClosing=!0;break}case i.NOFRAMES:{ke(e,t);break}}}function Kd(e,t){t.tagID===i.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==i.FRAMESET&&(e.insertionMode=g.AFTER_FRAMESET))}function qd(e,t){switch(t.tagID){case i.HTML:{ye(e,t);break}case i.NOFRAMES:{ke(e,t);break}}}function Jd(e,t){t.tagID===i.HTML&&(e.insertionMode=g.AFTER_AFTER_FRAMESET)}function jd(e,t){t.tagID===i.HTML?ye(e,t):ds(e,t)}function ds(e,t){e.insertionMode=g.IN_BODY,Hs(e,t)}function Zd(e,t){switch(t.tagID){case i.HTML:{ye(e,t);break}case i.NOFRAMES:{ke(e,t);break}}}function Vd(e,t){t.chars=ne,e._insertCharacters(t)}function Xd(e,t){e._insertCharacters(t),e.framesetOk=!1}function lu(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==N.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function zd(e,t){if(dl(t))lu(e),e._startTagOutsideForeignContent(t);else{const s=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(s);r===N.MATHML?ja(t):r===N.SVG&&(fl(t),Za(t)),on(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function $d(e,t){if(t.tagID===i.P||t.tagID===i.BR){lu(e),e._endTagOutsideForeignContent(t);return}for(let s=e.openElements.stackTop;s>0;s--){const r=e.openElements.items[s];if(e.treeAdapter.getNamespaceURI(r)===N.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(r);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(s);break}}}function du(e,t){return function(r){let n,a=0,u="";for(;n=e.exec(r);)a!==n.index&&(u+=r.substring(a,n.index)),u+=t.get(n[0].charCodeAt(0)),a=n.index+1;return u+r.substring(a)}}const e0=du(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t0=du(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),s0=new Set([_.AREA,_.BASE,_.BASEFONT,_.BGSOUND,_.BR,_.COL,_.EMBED,_.FRAME,_.HR,_.IMG,_.INPUT,_.KEYGEN,_.LINK,_.META,_.PARAM,_.SOURCE,_.TRACK,_.WBR]);function r0(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===N.HTML&&s0.has(t.treeAdapter.getTagName(e))}const n0={treeAdapter:We,scriptingEnabled:!0};function i0(e,t){const s={...n0,...t};return fu(e,s)}function a0(e,t){let s="";const r=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===_.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===N.HTML?t.treeAdapter.getTemplateContent(e):e,n=t.treeAdapter.getChildNodes(r);if(n)for(const a of n)s+=fu(a,t);return s}function fu(e,t){return t.treeAdapter.isElementNode(e)?u0(e,t):t.treeAdapter.isTextNode(e)?c0(e,t):t.treeAdapter.isCommentNode(e)?A0(e,t):t.treeAdapter.isDocumentTypeNode(e)?h0(e,t):""}function u0(e,t){const s=t.treeAdapter.getTagName(e);return`<${s}${o0(e,t)}>${r0(e,t)?"":`${a0(e,t)}</${s}>`}`}function o0(e,{treeAdapter:t}){let s="";for(const r of t.getAttrList(e)){if(s+=" ",r.namespace)switch(r.namespace){case N.XML:{s+=`xml:${r.name}`;break}case N.XMLNS:{r.name!=="xmlns"&&(s+="xmlns:"),s+=r.name;break}case N.XLINK:{s+=`xlink:${r.name}`;break}default:s+=`${r.prefix}:${r.name}`}else s+=r.name;s+=`="${e0(r.value)}"`}return s}function c0(e,t){const{treeAdapter:s}=t,r=s.getTextNodeContent(e),n=s.getParentNode(e),a=n&&s.isElementNode(n)&&s.getTagName(n);return a&&s.getNamespaceURI(n)===N.HTML&&Qh(a,t.scriptingEnabled)?r:t0(r)}function A0(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function h0(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function l0(e,t){return Xa.parse(e,t)}function d0(e,t,s){typeof e=="string"&&(s=t,t=e,e=null);const r=Xa.getFragmentParser(e,s);return r.tokenizer.write(t,!0),r.getFragment()}function Ei(e){const t=e.includes('"')?"'":'"';return t+e+t}function f0(e,t,s){let r="!DOCTYPE ";return e&&(r+=e),t?r+=` PUBLIC ${Ei(t)}`:s&&(r+=" SYSTEM"),s&&(r+=` ${Ei(s)}`),r}const Xe={isCommentNode:Ls,isElementNode:W,isTextNode:ve,createDocument(){const e=new ut([]);return e["x-mode"]=Le.NO_QUIRKS,e},createDocumentFragment(){return new ut([])},createElement(e,t,s){const r=Object.create(null),n=Object.create(null),a=Object.create(null);for(let c=0;c<s.length;c++){const h=s[c].name;r[h]=s[c].value,n[h]=s[c].namespace,a[h]=s[c].prefix}const u=new Jr(e,r,[]);return u.namespace=t,u["x-attribsNamespace"]=n,u["x-attribsPrefix"]=a,u},createCommentNode(e){return new Gr(e)},createTextNode(e){return new Ht(e)},appendChild(e,t){const s=e.children[e.children.length-1];s&&(s.next=t,t.prev=s),e.children.push(t),t.parent=e},insertBefore(e,t,s){const r=e.children.indexOf(s),{prev:n}=s;n&&(n.next=t,t.prev=n),s.prev=t,t.next=s,e.children.splice(r,0,t),t.parent=e},setTemplateContent(e,t){Xe.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,s,r){const n=f0(t,s,r);let a=e.children.find(u=>_r(u)&&u.name==="!doctype");a?a.data=n??null:(a=new Kr("!doctype",n),Xe.appendChild(e,a)),a["x-name"]=t,a["x-publicId"]=s,a["x-systemId"]=r},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){const t=e.parent.children.indexOf(e),{prev:s,next:r}=e;e.prev=null,e.next=null,s&&(s.next=r),r&&(r.prev=s),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){const s=e.children[e.children.length-1];s&&ve(s)?s.data+=t:Xe.appendChild(e,Xe.createTextNode(t))},insertTextBefore(e,t,s){const r=e.children[e.children.indexOf(s)-1];r&&ve(r)?r.data+=t:Xe.insertBefore(e,Xe.createTextNode(t),s)},adoptAttributes(e,t){for(let s=0;s<t.length;s++){const r=t[s].name;e.attribs[r]===void 0&&(e.attribs[r]=t[s].value,e["x-attribsNamespace"][r]=t[s].namespace,e["x-attribsPrefix"][r]=t[s].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 _r(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 m0(e,t,s,r){var n;return(n=t.treeAdapter)!==null&&n!==void 0||(t.treeAdapter=Xe),t.scriptingEnabled!==!1&&(t.scriptingEnabled=!0),s?l0(e,t):d0(r,e,t)}const E0={treeAdapter:Xe};function g0(e){const t="length"in e?e:[e];for(let r=0;r<t.length;r+=1){const n=t[r];et(n)&&Array.prototype.splice.call(t,r,1,...n.children)}let s="";for(let r=0;r<t.length;r+=1){const n=t[r];s+=i0(n,E0)}return s}const b0=WA((e,t,s,r)=>t._useHtmlParser2?bc(e,t):m0(e,t,s,r)),mu=Ih(b0,(e,t)=>t._useHtmlParser2?xs(e,t):g0(e));var Pr={exports:{}},kr={},Fr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const s=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function r(o){return s.includes(o)}const n=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...s];function a(o){return n.includes(o)}const u=["null","undefined","string","number","bigint","boolean","symbol"];function c(o){return u.includes(o)}function h(o){return S=>typeof S===o}const{toString:f}=Object.prototype,p=o=>{const S=f.call(o).slice(8,-1);if(/HTML\w+Element/.test(S)&&A.domElement(o))return"HTMLElement";if(a(S))return S},b=o=>S=>p(S)===o;function A(o){if(o===null)return"null";switch(typeof o){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol"}if(A.observable(o))return"Observable";if(A.array(o))return"Array";if(A.buffer(o))return"Buffer";const S=p(o);if(S)return S;if(o instanceof String||o instanceof Boolean||o instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}A.undefined=h("undefined"),A.string=h("string");const I=h("number");A.number=o=>I(o)&&!A.nan(o),A.bigint=h("bigint"),A.function_=h("function"),A.null_=o=>o===null,A.class_=o=>A.function_(o)&&o.toString().startsWith("class "),A.boolean=o=>o===!0||o===!1,A.symbol=h("symbol"),A.numericString=o=>A.string(o)&&!A.emptyStringOrWhitespace(o)&&!Number.isNaN(Number(o)),A.array=(o,S)=>Array.isArray(o)?A.function_(S)?o.every(S):!0:!1,A.buffer=o=>{var S,H,M,ie;return(ie=(M=(H=(S=o)===null||S===void 0?void 0:S.constructor)===null||H===void 0?void 0:H.isBuffer)===null||M===void 0?void 0:M.call(H,o))!==null&&ie!==void 0?ie:!1},A.blob=o=>b("Blob")(o),A.nullOrUndefined=o=>A.null_(o)||A.undefined(o),A.object=o=>!A.null_(o)&&(typeof o=="object"||A.function_(o)),A.iterable=o=>{var S;return A.function_((S=o)===null||S===void 0?void 0:S[Symbol.iterator])},A.asyncIterable=o=>{var S;return A.function_((S=o)===null||S===void 0?void 0:S[Symbol.asyncIterator])},A.generator=o=>{var S,H;return A.iterable(o)&&A.function_((S=o)===null||S===void 0?void 0:S.next)&&A.function_((H=o)===null||H===void 0?void 0:H.throw)},A.asyncGenerator=o=>A.asyncIterable(o)&&A.function_(o.next)&&A.function_(o.throw),A.nativePromise=o=>b("Promise")(o);const E=o=>{var S,H;return A.function_((S=o)===null||S===void 0?void 0:S.then)&&A.function_((H=o)===null||H===void 0?void 0:H.catch)};A.promise=o=>A.nativePromise(o)||E(o),A.generatorFunction=b("GeneratorFunction"),A.asyncGeneratorFunction=o=>p(o)==="AsyncGeneratorFunction",A.asyncFunction=o=>p(o)==="AsyncFunction",A.boundFunction=o=>A.function_(o)&&!o.hasOwnProperty("prototype"),A.regExp=b("RegExp"),A.date=b("Date"),A.error=b("Error"),A.map=o=>b("Map")(o),A.set=o=>b("Set")(o),A.weakMap=o=>b("WeakMap")(o),A.weakSet=o=>b("WeakSet")(o),A.int8Array=b("Int8Array"),A.uint8Array=b("Uint8Array"),A.uint8ClampedArray=b("Uint8ClampedArray"),A.int16Array=b("Int16Array"),A.uint16Array=b("Uint16Array"),A.int32Array=b("Int32Array"),A.uint32Array=b("Uint32Array"),A.float32Array=b("Float32Array"),A.float64Array=b("Float64Array"),A.bigInt64Array=b("BigInt64Array"),A.bigUint64Array=b("BigUint64Array"),A.arrayBuffer=b("ArrayBuffer"),A.sharedArrayBuffer=b("SharedArrayBuffer"),A.dataView=b("DataView"),A.enumCase=(o,S)=>Object.values(S).includes(o),A.directInstanceOf=(o,S)=>Object.getPrototypeOf(o)===S.prototype,A.urlInstance=o=>b("URL")(o),A.urlString=o=>{if(!A.string(o))return!1;try{return new URL(o),!0}catch{return!1}},A.truthy=o=>!!o,A.falsy=o=>!o,A.nan=o=>Number.isNaN(o),A.primitive=o=>A.null_(o)||c(typeof o),A.integer=o=>Number.isInteger(o),A.safeInteger=o=>Number.isSafeInteger(o),A.plainObject=o=>{if(f.call(o)!=="[object Object]")return!1;const S=Object.getPrototypeOf(o);return S===null||S===Object.getPrototypeOf({})},A.typedArray=o=>r(p(o));const x=o=>A.safeInteger(o)&&o>=0;A.arrayLike=o=>!A.nullOrUndefined(o)&&!A.function_(o)&&x(o.length),A.inRange=(o,S)=>{if(A.number(S))return o>=Math.min(0,S)&&o<=Math.max(S,0);if(A.array(S)&&S.length===2)return o>=Math.min(...S)&&o<=Math.max(...S);throw new TypeError(`Invalid range: ${JSON.stringify(S)}`)};const D=1,L=["innerHTML","ownerDocument","style","attributes","nodeValue"];A.domElement=o=>A.object(o)&&o.nodeType===D&&A.string(o.nodeName)&&!A.plainObject(o)&&L.every(S=>S in o),A.observable=o=>{var S,H,M,ie;return o?o===((H=(S=o)[Symbol.observable])===null||H===void 0?void 0:H.call(S))||o===((ie=(M=o)["@@observable"])===null||ie===void 0?void 0:ie.call(M)):!1},A.nodeStream=o=>A.object(o)&&A.function_(o.pipe)&&!A.observable(o),A.infinite=o=>o===1/0||o===-1/0;const P=o=>S=>A.integer(S)&&Math.abs(S%2)===o;A.evenInteger=P(0),A.oddInteger=P(1),A.emptyArray=o=>A.array(o)&&o.length===0,A.nonEmptyArray=o=>A.array(o)&&o.length>0,A.emptyString=o=>A.string(o)&&o.length===0;const J=o=>A.string(o)&&!/\S/.test(o);A.emptyStringOrWhitespace=o=>A.emptyString(o)||J(o),A.nonEmptyString=o=>A.string(o)&&o.length>0,A.nonEmptyStringAndNotWhitespace=o=>A.string(o)&&!A.emptyStringOrWhitespace(o),A.emptyObject=o=>A.object(o)&&!A.map(o)&&!A.set(o)&&Object.keys(o).length===0,A.nonEmptyObject=o=>A.object(o)&&!A.map(o)&&!A.set(o)&&Object.keys(o).length>0,A.emptySet=o=>A.set(o)&&o.size===0,A.nonEmptySet=o=>A.set(o)&&o.size>0,A.emptyMap=o=>A.map(o)&&o.size===0,A.nonEmptyMap=o=>A.map(o)&&o.size>0,A.propertyKey=o=>A.any([A.string,A.number,A.symbol],o),A.formData=o=>b("FormData")(o),A.urlSearchParams=o=>b("URLSearchParams")(o);const v=(o,S,H)=>{if(!A.function_(S))throw new TypeError(`Invalid predicate: ${JSON.stringify(S)}`);if(H.length===0)throw new TypeError("Invalid number of values");return o.call(H,S)};A.any=(o,...S)=>(A.array(o)?o:[o]).some(M=>v(Array.prototype.some,M,S)),A.all=(o,...S)=>v(Array.prototype.every,o,S);const y=(o,S,H,M={})=>{if(!o){const{multipleValues:ie}=M,se=ie?`received values of types ${[...new Set(H.map(Z=>`\`${A(Z)}\``))].join(", ")}`:`received value of type \`${A(H)}\``;throw new TypeError(`Expected value which is \`${S}\`, ${se}.`)}};t.assert={undefined:o=>y(A.undefined(o),"undefined",o),string:o=>y(A.string(o),"string",o),number:o=>y(A.number(o),"number",o),bigint:o=>y(A.bigint(o),"bigint",o),function_:o=>y(A.function_(o),"Function",o),null_:o=>y(A.null_(o),"null",o),class_:o=>y(A.class_(o),"Class",o),boolean:o=>y(A.boolean(o),"boolean",o),symbol:o=>y(A.symbol(o),"symbol",o),numericString:o=>y(A.numericString(o),"string with a number",o),array:(o,S)=>{y(A.array(o),"Array",o),S&&o.forEach(S)},buffer:o=>y(A.buffer(o),"Buffer",o),blob:o=>y(A.blob(o),"Blob",o),nullOrUndefined:o=>y(A.nullOrUndefined(o),"null or undefined",o),object:o=>y(A.object(o),"Object",o),iterable:o=>y(A.iterable(o),"Iterable",o),asyncIterable:o=>y(A.asyncIterable(o),"AsyncIterable",o),generator:o=>y(A.generator(o),"Generator",o),asyncGenerator:o=>y(A.asyncGenerator(o),"AsyncGenerator",o),nativePromise:o=>y(A.nativePromise(o),"native Promise",o),promise:o=>y(A.promise(o),"Promise",o),generatorFunction:o=>y(A.generatorFunction(o),"GeneratorFunction",o),asyncGeneratorFunction:o=>y(A.asyncGeneratorFunction(o),"AsyncGeneratorFunction",o),asyncFunction:o=>y(A.asyncFunction(o),"AsyncFunction",o),boundFunction:o=>y(A.boundFunction(o),"Function",o),regExp:o=>y(A.regExp(o),"RegExp",o),date:o=>y(A.date(o),"Date",o),error:o=>y(A.error(o),"Error",o),map:o=>y(A.map(o),"Map",o),set:o=>y(A.set(o),"Set",o),weakMap:o=>y(A.weakMap(o),"WeakMap",o),weakSet:o=>y(A.weakSet(o),"WeakSet",o),int8Array:o=>y(A.int8Array(o),"Int8Array",o),uint8Array:o=>y(A.uint8Array(o),"Uint8Array",o),uint8ClampedArray:o=>y(A.uint8ClampedArray(o),"Uint8ClampedArray",o),int16Array:o=>y(A.int16Array(o),"Int16Array",o),uint16Array:o=>y(A.uint16Array(o),"Uint16Array",o),int32Array:o=>y(A.int32Array(o),"Int32Array",o),uint32Array:o=>y(A.uint32Array(o),"Uint32Array",o),float32Array:o=>y(A.float32Array(o),"Float32Array",o),float64Array:o=>y(A.float64Array(o),"Float64Array",o),bigInt64Array:o=>y(A.bigInt64Array(o),"BigInt64Array",o),bigUint64Array:o=>y(A.bigUint64Array(o),"BigUint64Array",o),arrayBuffer:o=>y(A.arrayBuffer(o),"ArrayBuffer",o),sharedArrayBuffer:o=>y(A.sharedArrayBuffer(o),"SharedArrayBuffer",o),dataView:o=>y(A.dataView(o),"DataView",o),enumCase:(o,S)=>y(A.enumCase(o,S),"EnumCase",o),urlInstance:o=>y(A.urlInstance(o),"URL",o),urlString:o=>y(A.urlString(o),"string with a URL",o),truthy:o=>y(A.truthy(o),"truthy",o),falsy:o=>y(A.falsy(o),"falsy",o),nan:o=>y(A.nan(o),"NaN",o),primitive:o=>y(A.primitive(o),"primitive",o),integer:o=>y(A.integer(o),"integer",o),safeInteger:o=>y(A.safeInteger(o),"integer",o),plainObject:o=>y(A.plainObject(o),"plain object",o),typedArray:o=>y(A.typedArray(o),"TypedArray",o),arrayLike:o=>y(A.arrayLike(o),"array-like",o),domElement:o=>y(A.domElement(o),"HTMLElement",o),observable:o=>y(A.observable(o),"Observable",o),nodeStream:o=>y(A.nodeStream(o),"Node.js Stream",o),infinite:o=>y(A.infinite(o),"infinite number",o),emptyArray:o=>y(A.emptyArray(o),"empty array",o),nonEmptyArray:o=>y(A.nonEmptyArray(o),"non-empty array",o),emptyString:o=>y(A.emptyString(o),"empty string",o),emptyStringOrWhitespace:o=>y(A.emptyStringOrWhitespace(o),"empty string or whitespace",o),nonEmptyString:o=>y(A.nonEmptyString(o),"non-empty string",o),nonEmptyStringAndNotWhitespace:o=>y(A.nonEmptyStringAndNotWhitespace(o),"non-empty string and not whitespace",o),emptyObject:o=>y(A.emptyObject(o),"empty object",o),nonEmptyObject:o=>y(A.nonEmptyObject(o),"non-empty object",o),emptySet:o=>y(A.emptySet(o),"empty set",o),nonEmptySet:o=>y(A.nonEmptySet(o),"non-empty set",o),emptyMap:o=>y(A.emptyMap(o),"empty map",o),nonEmptyMap:o=>y(A.nonEmptyMap(o),"non-empty map",o),propertyKey:o=>y(A.propertyKey(o),"PropertyKey",o),formData:o=>y(A.formData(o),"FormData",o),urlSearchParams:o=>y(A.urlSearchParams(o),"URLSearchParams",o),evenInteger:o=>y(A.evenInteger(o),"even integer",o),oddInteger:o=>y(A.oddInteger(o),"odd integer",o),directInstanceOf:(o,S)=>y(A.directInstanceOf(o,S),"T",o),inRange:(o,S)=>y(A.inRange(o,S),"in range",o),any:(o,...S)=>y(A.any(o,...S),"predicate returns truthy for any value",S,{multipleValues:!0}),all:(o,...S)=>y(A.all(o,...S),"predicate returns truthy for all values",S,{multipleValues:!0})},Object.defineProperties(A,{class:{value:A.class_},function:{value:A.function_},null:{value:A.null_}}),Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}}),t.default=A,e.exports=A,e.exports.default=A,e.exports.assert=t.assert})(Fr,Fr.exports);var st=Fr.exports,ln={},dn={exports:{}};class Eu extends Error{constructor(t){super(t||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}}class Ys{static fn(t){return(...s)=>new Ys((r,n,a)=>{s.push(a),t(...s).then(r,n)})}constructor(t){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((s,r)=>{this._reject=r;const n=c=>{(!this._isCanceled||!u.shouldReject)&&(this._isPending=!1,s(c))},a=c=>{this._isPending=!1,r(c)},u=c=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(c)};return Object.defineProperties(u,{shouldReject:{get:()=>this._rejectOnCancel,set:c=>{this._rejectOnCancel=c}}}),t(n,a,u)})}then(t,s){return this._promise.then(t,s)}catch(t){return this._promise.catch(t)}finally(t){return this._promise.finally(t)}cancel(t){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(const s of this._cancelHandlers)s()}catch(s){this._reject(s);return}this._rejectOnCancel&&this._reject(new Eu(t))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(Ys.prototype,Promise.prototype);dn.exports=Ys;dn.exports.CancelError=Eu;var p0=dn.exports,Gt={},Kt={},Mr={exports:{}},Hr={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function s(n){return n.encrypted}const r=(n,a)=>{let u;typeof a=="function"?u={connect:a}:u=a;const c=typeof u.connect=="function",h=typeof u.secureConnect=="function",f=typeof u.close=="function",p=()=>{c&&u.connect(),s(n)&&h&&(n.authorized?u.secureConnect():n.authorizationError||n.once("secureConnect",u.secureConnect)),f&&n.once("close",u.close)};n.writable&&!n.connecting?p():n.connecting?n.once("connect",p):n.destroyed&&f&&u.close(n._hadError)};t.default=r,e.exports=r,e.exports.default=r})(Hr,Hr.exports);var T0=Hr.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const s=T0,r=Bs,n=Number(process.versions.node.split(".")[0]),a=u=>{if(u.timings)return u.timings;const c={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};u.timings=c;const h=I=>{const E=I.emit.bind(I);I.emit=(x,...D)=>(x==="error"&&(c.error=Date.now(),c.phases.total=c.error-c.start,I.emit=E),E(x,...D))};h(u);const f=()=>{c.abort=Date.now(),(!c.response||n>=13)&&(c.phases.total=Date.now()-c.start)};u.prependOnceListener("abort",f);const p=I=>{if(c.socket=Date.now(),c.phases.wait=c.socket-c.start,r.types.isProxy(I))return;const E=()=>{c.lookup=Date.now(),c.phases.dns=c.lookup-c.socket};I.prependOnceListener("lookup",E),s.default(I,{connect:()=>{c.connect=Date.now(),c.lookup===void 0&&(I.removeListener("lookup",E),c.lookup=c.connect,c.phases.dns=c.lookup-c.socket),c.phases.tcp=c.connect-c.lookup},secureConnect:()=>{c.secureConnect=Date.now(),c.phases.tls=c.secureConnect-c.connect}})};u.socket?p(u.socket):u.prependOnceListener("socket",p);const b=()=>{var I;c.upload=Date.now(),c.phases.request=c.upload-((I=c.secureConnect)!==null&&I!==void 0?I:c.connect)};return(typeof u.writableFinished=="boolean"?u.writableFinished:u.finished&&u.outputSize===0&&(!u.socket||u.socket.writableLength===0))?b():u.prependOnceListener("finish",b),u.prependOnceListener("response",I=>{c.response=Date.now(),c.phases.firstByte=c.response-c.upload,I.timings=c,h(I),I.prependOnceListener("end",()=>{c.end=Date.now(),c.phases.download=c.end-c.response,c.phases.total=c.end-c.start}),I.prependOnceListener("aborted",f)}),c};t.default=a,e.exports=a,e.exports.default=a})(Mr,Mr.exports);var _0=Mr.exports,fn={exports:{}};const{V4MAPPED:I0,ADDRCONFIG:C0,ALL:gu,promises:{Resolver:gi},lookup:y0}=Ju,{promisify:ur}=Bs,S0=ju,Et=Symbol("cacheableLookupCreateConnection"),or=Symbol("cacheableLookupInstance"),bi=Symbol("expires"),N0=typeof gu=="number",pi=e=>{if(!(e&&typeof e.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},D0=e=>{for(const t of e)t.family!==6&&(t.address=`::ffff:${t.address}`,t.family=6)},Ti=()=>{let e=!1,t=!1;for(const s of Object.values(S0.networkInterfaces()))for(const r of s)if(!r.internal&&(r.family==="IPv6"?t=!0:e=!0,e&&t))return{has4:e,has6:t};return{has4:e,has6:t}},R0=e=>Symbol.iterator in e,_i={ttl:!0},O0={all:!0};class bu{constructor({cache:t=new Map,maxTtl:s=1/0,fallbackDuration:r=3600,errorTtl:n=.15,resolver:a=new gi,lookup:u=y0}={}){if(this.maxTtl=s,this.errorTtl=n,this._cache=t,this._resolver=a,this._dnsLookup=ur(u),this._resolver instanceof gi?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=ur(this._resolver.resolve4.bind(this._resolver)),this._resolve6=ur(this._resolver.resolve6.bind(this._resolver))),this._iface=Ti(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,r<1)this._fallback=!1;else{this._fallback=!0;const c=setInterval(()=>{this._hostnamesToFallback.clear()},r*1e3);c.unref&&c.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(t){this.clear(),this._resolver.setServers(t)}get servers(){return this._resolver.getServers()}lookup(t,s,r){if(typeof s=="function"?(r=s,s={}):typeof s=="number"&&(s={family:s}),!r)throw new Error("Callback must be a function.");this.lookupAsync(t,s).then(n=>{s.all?r(null,n):r(null,n.address,n.family,n.expires,n.ttl)},r)}async lookupAsync(t,s={}){typeof s=="number"&&(s={family:s});let r=await this.query(t);if(s.family===6){const n=r.filter(a=>a.family===6);s.hints&I0&&(N0&&s.hints&gu||n.length===0)?D0(r):r=n}else s.family===4&&(r=r.filter(n=>n.family===4));if(s.hints&C0){const{_iface:n}=this;r=r.filter(a=>a.family===6?n.has6:n.has4)}if(r.length===0){const n=new Error(`cacheableLookup ENOTFOUND ${t}`);throw n.code="ENOTFOUND",n.hostname=t,n}return s.all?r:r[0]}async query(t){let s=await this._cache.get(t);if(!s){const r=this._pending[t];if(r)s=await r;else{const n=this.queryAndCache(t);this._pending[t]=n;try{s=await n}finally{delete this._pending[t]}}}return s=s.map(r=>({...r})),s}async _resolve(t){const s=async f=>{try{return await f}catch(p){if(p.code==="ENODATA"||p.code==="ENOTFOUND")return[];throw p}},[r,n]=await Promise.all([this._resolve4(t,_i),this._resolve6(t,_i)].map(f=>s(f)));let a=0,u=0,c=0;const h=Date.now();for(const f of r)f.family=4,f.expires=h+f.ttl*1e3,a=Math.max(a,f.ttl);for(const f of n)f.family=6,f.expires=h+f.ttl*1e3,u=Math.max(u,f.ttl);return r.length>0?n.length>0?c=Math.min(a,u):c=a:c=u,{entries:[...r,...n],cacheTtl:c}}async _lookup(t){try{return{entries:await this._dnsLookup(t,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(t,s,r){if(this.maxTtl>0&&r>0){r=Math.min(r,this.maxTtl)*1e3,s[bi]=Date.now()+r;try{await this._cache.set(t,s,r)}catch(n){this.lookupAsync=async()=>{const a=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw a.cause=n,a}}R0(this._cache)&&this._tick(r)}}async queryAndCache(t){if(this._hostnamesToFallback.has(t))return this._dnsLookup(t,O0);let s=await this._resolve(t);s.entries.length===0&&this._fallback&&(s=await this._lookup(t),s.entries.length!==0&&this._hostnamesToFallback.add(t));const r=s.entries.length===0?this.errorTtl:s.cacheTtl;return await this._set(t,s.entries,r),s.entries}_tick(t){const s=this._nextRemovalTime;(!s||t<s)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=t,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let r=1/0;const n=Date.now();for(const[a,u]of this._cache){const c=u[bi];n>=c?this._cache.delete(a):c<r&&(r=c)}r!==1/0&&this._tick(r-n)},t),this._removalTimeout.unref&&this._removalTimeout.unref())}install(t){if(pi(t),Et in t)throw new Error("CacheableLookup has been already installed");t[Et]=t.createConnection,t[or]=this,t.createConnection=(s,r)=>("lookup"in s||(s.lookup=this.lookup),t[Et](s,r))}uninstall(t){if(pi(t),t[Et]){if(t[or]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");t.createConnection=t[Et],delete t[Et],delete t[or]}}updateInterfaceInfo(){const{_iface:t}=this;this._iface=Ti(),(t.has4&&!this._iface.has4||t.has6&&!this._iface.has6)&&this._cache.clear()}clear(t){if(t){this._cache.delete(t);return}this._cache.clear()}}fn.exports=bu;fn.exports.default=bu;var B0=fn.exports;const w0="text/plain",L0="us-ascii",Ii=(e,t)=>t.some(s=>s instanceof RegExp?s.test(e):s===e),x0=(e,{stripHash:t})=>{const s=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!s)throw new Error(`Invalid URL: ${e}`);let{type:r,data:n,hash:a}=s.groups;const u=r.split(";");a=t?"":a;let c=!1;u[u.length-1]==="base64"&&(u.pop(),c=!0);const h=(u.shift()||"").toLowerCase(),p=[...u.map(b=>{let[A,I=""]=b.split("=").map(E=>E.trim());return A==="charset"&&(I=I.toLowerCase(),I===L0)?"":`${A}${I?`=${I}`:""}`}).filter(Boolean)];return c&&p.push("base64"),(p.length!==0||h&&h!==w0)&&p.unshift(h),`data:${p.join(";")},${c?n.trim():n}${a?`#${a}`:""}`},P0=(e,t)=>{if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return x0(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");const s=e.startsWith("//");!s&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));const n=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&n.protocol==="https:"&&(n.protocol="http:"),t.forceHttps&&n.protocol==="http:"&&(n.protocol="https:"),t.stripAuthentication&&(n.username="",n.password=""),t.stripHash?n.hash="":t.stripTextFragment&&(n.hash=n.hash.replace(/#?:~:text.*?$/i,"")),n.pathname&&(n.pathname=n.pathname.replace(new RegExp("(?<!\\b(?:[a-z][a-z\\d+\\-.]{1,50}:))\\/{2,}","g"),"/")),n.pathname)try{n.pathname=decodeURI(n.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let u=n.pathname.split("/");const c=u[u.length-1];Ii(c,t.removeDirectoryIndex)&&(u=u.slice(0,u.length-1),n.pathname=u.slice(1).join("/")+"/")}if(n.hostname&&(n.hostname=n.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(n.hostname)&&(n.hostname=n.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(const u of[...n.searchParams.keys()])Ii(u,t.removeQueryParameters)&&n.searchParams.delete(u);t.removeQueryParameters===!0&&(n.search=""),t.sortQueryParameters&&n.searchParams.sort(),t.removeTrailingSlash&&(n.pathname=n.pathname.replace(/\/$/,""));const a=e;return e=n.toString(),!t.removeSingleSlash&&n.pathname==="/"&&!a.endsWith("/")&&n.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||n.pathname==="/")&&n.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),s&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e};var k0=P0,yt={exports:{}},mn={exports:{}},F0=pu;function pu(e,t){if(e&&t)return pu(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(r){s[r]=e[r]}),s;function s(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];var a=e.apply(this,r),u=r[r.length-1];return typeof a=="function"&&a!==u&&Object.keys(u).forEach(function(c){a[c]=u[c]}),a}}var Tu=F0;mn.exports=Tu(fs);mn.exports.strict=Tu(_u);fs.proto=fs(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return fs(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return _u(this)},configurable:!0})});function fs(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function _u(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},s=e.name||"Function wrapped with `once`";return t.onceError=s+" shouldn't be called more than once",t.called=!1,t}var Iu=mn.exports,M0=Iu,H0=function(){},v0=Te.Bare?queueMicrotask:process.nextTick.bind(process),U0=function(e){return e.setHeader&&typeof e.abort=="function"},Q0=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},Cu=function(e,t,s){if(typeof t=="function")return Cu(e,null,t);t||(t={}),s=M0(s||H0);var r=e._writableState,n=e._readableState,a=t.readable||t.readable!==!1&&e.readable,u=t.writable||t.writable!==!1&&e.writable,c=!1,h=function(){e.writable||f()},f=function(){u=!1,a||s.call(e)},p=function(){a=!1,u||s.call(e)},b=function(D){s.call(e,D?new Error("exited with error code: "+D):null)},A=function(D){s.call(e,D)},I=function(){v0(E)},E=function(){if(!c){if(a&&!(n&&n.ended&&!n.destroyed))return s.call(e,new Error("premature close"));if(u&&!(r&&r.ended&&!r.destroyed))return s.call(e,new Error("premature close"))}},x=function(){e.req.on("finish",f)};return U0(e)?(e.on("complete",f),e.on("abort",I),e.req?x():e.on("request",x)):u&&!r&&(e.on("end",h),e.on("close",h)),Q0(e)&&e.on("exit",b),e.on("end",p),e.on("finish",f),t.error!==!1&&e.on("error",A),e.on("close",I),function(){c=!0,e.removeListener("complete",f),e.removeListener("abort",I),e.removeListener("request",x),e.req&&e.req.removeListener("finish",f),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",f),e.removeListener("exit",b),e.removeListener("end",p),e.removeListener("error",A),e.removeListener("close",I)}},Y0=Cu,W0=Iu,G0=Y0,ms;try{ms=require("fs")}catch{}var qt=function(){},K0=typeof process>"u"?!1:/^v?\.0/.test(process.version),Ws=function(e){return typeof e=="function"},q0=function(e){return!K0||!ms?!1:(e instanceof(ms.ReadStream||qt)||e instanceof(ms.WriteStream||qt))&&Ws(e.close)},J0=function(e){return e.setHeader&&Ws(e.abort)},j0=function(e,t,s,r){r=W0(r);var n=!1;e.on("close",function(){n=!0}),G0(e,{readable:t,writable:s},function(u){if(u)return r(u);n=!0,r()});var a=!1;return function(u){if(!n&&!a){if(a=!0,q0(e))return e.close(qt);if(J0(e))return e.abort();if(Ws(e.destroy))return e.destroy();r(u||new Error("stream was destroyed"))}}},Ci=function(e){e()},Z0=function(e,t){return e.pipe(t)},V0=function(){var e=Array.prototype.slice.call(arguments),t=Ws(e[e.length-1]||qt)&&e.pop()||qt;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var s,r=e.map(function(n,a){var u=a<e.length-1,c=a>0;return j0(n,u,c,function(h){s||(s=h),h&&r.forEach(Ci),!u&&(r.forEach(Ci),t(s))})});return e.reduce(Z0)},X0=V0;const{PassThrough:z0}=ct;var $0=e=>{e={...e};const{array:t}=e;let{encoding:s}=e;const r=s==="buffer";let n=!1;t?n=!(s||r):s=s||"utf8",r&&(s=null);const a=new z0({objectMode:n});s&&a.setEncoding(s);let u=0;const c=[];return a.on("data",h=>{c.push(h),n?u=c.length:u+=h.length}),a.getBufferedValue=()=>t?c:r?Buffer.concat(c,u):c.join(""),a.getBufferedLength=()=>u,a};const{constants:ef}=Zu,tf=X0,sf=$0;class yu extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function Gs(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));t={maxBuffer:1/0,...t};const{maxBuffer:s}=t;let r;return await new Promise((n,a)=>{const u=c=>{c&&r.getBufferedLength()<=ef.MAX_LENGTH&&(c.bufferedData=r.getBufferedValue()),a(c)};r=tf(e,sf(t),c=>{if(c){u(c);return}n()}),r.on("data",()=>{r.getBufferedLength()>s&&u(new yu)})}),r.getBufferedValue()}yt.exports=Gs;yt.exports.default=Gs;yt.exports.buffer=(e,t)=>Gs(e,{...t,encoding:"buffer"});yt.exports.array=(e,t)=>Gs(e,{...t,array:!0});yt.exports.MaxBufferError=yu;var rf=yt.exports;const nf=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),af=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),uf=new Set([500,502,503,504]),of={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},cf={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function Qe(e){const t=parseInt(e,10);return isFinite(t)?t:0}function Af(e){return e?uf.has(e.status):!0}function cr(e){const t={};if(!e)return t;const s=e.trim().split(/,/);for(const r of s){const[n,a]=r.split(/=/,2);t[n.trim()]=a===void 0?!0:a.trim().replace(/^"|"$/g,"")}return t}function hf(e){let t=[];for(const s in e){const r=e[s];t.push(r===!0?s:s+"="+r)}if(t.length)return t.join(", ")}var lf=class{constructor(t,s,{shared:r,cacheHeuristic:n,immutableMinTimeToLive:a,ignoreCargoCult:u,_fromObject:c}={}){if(c){this._fromObject(c);return}if(!s||!s.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(t),this._responseTime=this.now(),this._isShared=r!==!1,this._ignoreCargoCult=!!u,this._cacheHeuristic=n!==void 0?n:.1,this._immutableMinTtl=a!==void 0?a:24*3600*1e3,this._status="status"in s?s.status:200,this._resHeaders=s.headers,this._rescc=cr(s.headers["cache-control"]),this._method="method"in t?t.method:"GET",this._url=t.url,this._host=t.headers.host,this._noAuthorization=!t.headers.authorization,this._reqHeaders=s.headers.vary?t.headers:null,this._reqcc=cr(t.headers["cache-control"]),this._ignoreCargoCult&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":hf(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),s.headers["cache-control"]==null&&/no-cache/.test(s.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&af.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||nf.has(this._status)))}_hasExplicitExpiration(){return!!(this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires)}_assertRequestHasHeaders(t){if(!t||!t.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(t){return!this.evaluateRequest(t).revalidation}_evaluateRequestHitResult(t){return{response:{headers:this.responseHeaders()},revalidation:t}}_evaluateRequestRevalidation(t,s){return{synchronous:s,headers:this.revalidationHeaders(t)}}_evaluateRequestMissResult(t){return{response:void 0,revalidation:this._evaluateRequestRevalidation(t,!0)}}evaluateRequest(t){if(this._assertRequestHasHeaders(t),this._rescc["must-revalidate"])return this._evaluateRequestMissResult(t);if(!this._requestMatches(t,!1))return this._evaluateRequestMissResult(t);const s=cr(t.headers["cache-control"]);return s["no-cache"]||/no-cache/.test(t.headers.pragma)?this._evaluateRequestMissResult(t):s["max-age"]&&this.age()>Qe(s["max-age"])?this._evaluateRequestMissResult(t):s["min-fresh"]&&this.maxAge()-this.age()<Qe(s["min-fresh"])?this._evaluateRequestMissResult(t):this.stale()?"max-stale"in s&&(s["max-stale"]===!0||s["max-stale"]>this.age()-this.maxAge())?this._evaluateRequestHitResult(void 0):this.useStaleWhileRevalidate()?this._evaluateRequestHitResult(this._evaluateRequestRevalidation(t,!1)):this._evaluateRequestMissResult(t):this._evaluateRequestHitResult(void 0)}_requestMatches(t,s){return!!((!this._url||this._url===t.url)&&this._host===t.headers.host&&(!t.method||this._method===t.method||s&&t.method==="HEAD")&&this._varyMatches(t))}_allowsStoringAuthenticated(){return!!(this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"])}_varyMatches(t){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;const s=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const r of s)if(t.headers[r]!==this._reqHeaders[r])return!1;return!0}_copyWithoutHopByHopHeaders(t){const s={};for(const r in t)of[r]||(s[r]=t[r]);if(t.connection){const r=t.connection.trim().split(/\s*,\s*/);for(const n of r)delete s[n]}if(s.warning){const r=s.warning.split(/,/).filter(n=>!/^\s*1[0-9][0-9]/.test(n));r.length?s.warning=r.join(",").trim():delete s.warning}return s}responseHeaders(){const t=this._copyWithoutHopByHopHeaders(this._resHeaders),s=this.age();return s>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(t.warning=(t.warning?`${t.warning}, `:"")+'113 - "rfc7234 5.5.4"'),t.age=`${Math.round(s)}`,t.date=new Date(this.now()).toUTCString(),t}date(){const t=Date.parse(this._resHeaders.date);return isFinite(t)?t:this._responseTime}age(){let t=this._ageValue();const s=(this.now()-this._responseTime)/1e3;return t+s}_ageValue(){return Qe(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return Qe(this._rescc["s-maxage"])}if(this._rescc["max-age"])return Qe(this._rescc["max-age"]);const t=this._rescc.immutable?this._immutableMinTtl:0,s=this.date();if(this._resHeaders.expires){const r=Date.parse(this._resHeaders.expires);return Number.isNaN(r)||r<s?0:Math.max(t,(r-s)/1e3)}if(this._resHeaders["last-modified"]){const r=Date.parse(this._resHeaders["last-modified"]);if(isFinite(r)&&s>r)return Math.max(t,(s-r)/1e3*this._cacheHeuristic)}return t}timeToLive(){const t=this.maxAge()-this.age(),s=t+Qe(this._rescc["stale-if-error"]),r=t+Qe(this._rescc["stale-while-revalidate"]);return Math.round(Math.max(0,t,s,r)*1e3)}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+Qe(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){const t=Qe(this._rescc["stale-while-revalidate"]);return t>0&&this.maxAge()+t>this.age()}static fromObject(t){return new this(void 0,void 0,{_fromObject:t})}_fromObject(t){if(this._responseTime)throw Error("Reinitialized");if(!t||t.v!==1)throw Error("Invalid serialization");this._responseTime=t.t,this._isShared=t.sh,this._cacheHeuristic=t.ch,this._immutableMinTtl=t.imm!==void 0?t.imm:24*3600*1e3,this._ignoreCargoCult=!!t.icc,this._status=t.st,this._resHeaders=t.resh,this._rescc=t.rescc,this._method=t.m,this._url=t.u,this._host=t.h,this._noAuthorization=t.a,this._reqHeaders=t.reqh,this._reqcc=t.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,icc:this._ignoreCargoCult,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(t){this._assertRequestHasHeaders(t);const s=this._copyWithoutHopByHopHeaders(t.headers);if(delete s["if-range"],!this._requestMatches(t,!0)||!this.storable())return delete s["if-none-match"],delete s["if-modified-since"],s;if(this._resHeaders.etag&&(s["if-none-match"]=s["if-none-match"]?`${s["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),s["accept-ranges"]||s["if-match"]||s["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete s["if-modified-since"],s["if-none-match"]){const n=s["if-none-match"].split(/,/).filter(a=>!/^\s*W\//.test(a));n.length?s["if-none-match"]=n.join(",").trim():delete s["if-none-match"]}}else this._resHeaders["last-modified"]&&!s["if-modified-since"]&&(s["if-modified-since"]=this._resHeaders["last-modified"]);return s}revalidatedPolicy(t,s){if(this._assertRequestHasHeaders(t),this._useStaleIfError()&&Af(s))return{policy:this,modified:!1,matches:!0};if(!s||!s.headers)throw Error("Response headers missing");let r=!1;s.status!==void 0&&s.status!=304?r=!1:s.headers.etag&&!/^\s*W\//.test(s.headers.etag)?r=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===s.headers.etag:this._resHeaders.etag&&s.headers.etag?r=this._resHeaders.etag.replace(/^\s*W\//,"")===s.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?r=this._resHeaders["last-modified"]===s.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!s.headers.etag&&!s.headers["last-modified"]&&(r=!0);const n={shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl,ignoreCargoCult:this._ignoreCargoCult};if(!r)return{policy:new this.constructor(t,s,n),modified:s.status!=304,matches:!1};const a={};for(const c in this._resHeaders)a[c]=c in s.headers&&!cf[c]?s.headers[c]:this._resHeaders[c];const u=Object.assign({},s,{status:this._status,method:this._method,headers:a});return{policy:new this.constructor(t,u,n),modified:!1,matches:!0}}},En=e=>{const t={};for(const[s,r]of Object.entries(e))t[s.toLowerCase()]=r;return t};const df=ct.Readable,ff=En;let mf=class extends df{constructor(t,s,r,n){if(typeof t!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof s!="object")throw new TypeError("Argument `headers` should be an object");if(!(r instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof n!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=t,this.headers=ff(s),this.body=r,this.url=n}_read(){this.push(this.body),this.push(null)}};var Ef=mf;const gf=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];var bf=(e,t)=>{const s=new Set(Object.keys(e).concat(gf));for(const r of s)r in t||(t[r]=typeof e[r]=="function"?e[r].bind(e):e[r])};const pf=ct.PassThrough,Tf=bf,_f=e=>{if(!(e&&e.pipe))throw new TypeError("Parameter `response` must be a response stream.");const t=new pf;return Tf(e,t),e.pipe(t)};var If=_f;function Cf(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gn={};gn.stringify=function e(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var s="",r=Array.isArray(t);s=r?"[":"{";var n=!0;for(var a in t){var u=typeof t[a]=="function"||!r&&typeof t[a]>"u";Object.hasOwnProperty.call(t,a)&&!u&&(n||(s+=","),n=!1,r?t[a]==null?s+="null":s+=e(t[a]):t[a]!==void 0&&(s+=e(a)+":"+e(t[a])))}return s+=r?"]":"}",s}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)};gn.parse=function(e){return JSON.parse(e,function(t,s){return typeof s=="string"?/^:base64:/.test(s)?Buffer.from(s.substring(8),"base64"):/^:/.test(s)?s.substring(1):s:s})};const yf=Os,yi=gn,Sf=e=>{const t={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(e.adapter||e.uri){const s=e.adapter||/^[^:+]*/.exec(e.uri)[0];return new(Cf(t[s]))(e)}return new Map},Si=["sqlite","postgres","mysql","mongo","redis","tiered"];let Nf=class extends yf{constructor(t,{emitErrors:s=!0,...r}={}){if(super(),this.opts={namespace:"keyv",serialize:yi.stringify,deserialize:yi.parse,...typeof t=="string"?{uri:t}:t,...r},!this.opts.store){const a={...this.opts};this.opts.store=Sf(a)}if(this.opts.compression){const a=this.opts.compression;this.opts.serialize=a.serialize.bind(a),this.opts.deserialize=a.deserialize.bind(a)}typeof this.opts.store.on=="function"&&s&&this.opts.store.on("error",a=>this.emit("error",a)),this.opts.store.namespace=this.opts.namespace;const n=a=>async function*(){for await(const[u,c]of typeof a=="function"?a(this.opts.store.namespace):a){const h=await this.opts.deserialize(c);if(!(this.opts.store.namespace&&!u.includes(this.opts.store.namespace))){if(typeof h.expires=="number"&&Date.now()>h.expires){this.delete(u);continue}yield[this._getKeyUnprefix(u),h.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=n(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=n(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return Si.includes(this.opts.store.opts.dialect)||Si.findIndex(t=>this.opts.store.opts.url.includes(t))>=0}_getKeyPrefix(t){return`${this.opts.namespace}:${t}`}_getKeyPrefixArray(t){return t.map(s=>`${this.opts.namespace}:${s}`)}_getKeyUnprefix(t){return t.split(":").splice(1).join(":")}get(t,s){const{store:r}=this.opts,n=Array.isArray(t),a=n?this._getKeyPrefixArray(t):this._getKeyPrefix(t);if(n&&r.getMany===void 0){const u=[];for(const c of a)u.push(Promise.resolve().then(()=>r.get(c)).then(h=>typeof h=="string"?this.opts.deserialize(h):this.opts.compression?this.opts.deserialize(h):h).then(h=>{if(h!=null)return typeof h.expires=="number"&&Date.now()>h.expires?this.delete(c).then(()=>{}):s&&s.raw?h:h.value}));return Promise.allSettled(u).then(c=>{const h=[];for(const f of c)h.push(f.value);return h})}return Promise.resolve().then(()=>n?r.getMany(a):r.get(a)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null)return n?u.map((c,h)=>{if(typeof c=="string"&&(c=this.opts.deserialize(c)),c!=null){if(typeof c.expires=="number"&&Date.now()>c.expires){this.delete(t[h]).then(()=>{});return}return s&&s.raw?c:c.value}}):typeof u.expires=="number"&&Date.now()>u.expires?this.delete(t).then(()=>{}):s&&s.raw?u:u.value})}set(t,s,r){const n=this._getKeyPrefix(t);typeof r>"u"&&(r=this.opts.ttl),r===0&&(r=void 0);const{store:a}=this.opts;return Promise.resolve().then(()=>{const u=typeof r=="number"?Date.now()+r:null;return typeof s=="symbol"&&this.emit("error","symbol cannot be serialized"),s={value:s,expires:u},this.opts.serialize(s)}).then(u=>a.set(n,u,r)).then(()=>!0)}delete(t){const{store:s}=this.opts;if(Array.isArray(t)){const n=this._getKeyPrefixArray(t);if(s.deleteMany===void 0){const a=[];for(const u of n)a.push(s.delete(u));return Promise.allSettled(a).then(u=>u.every(c=>c.value===!0))}return Promise.resolve().then(()=>s.deleteMany(n))}const r=this._getKeyPrefix(t);return Promise.resolve().then(()=>s.delete(r))}clear(){const{store:t}=this.opts;return Promise.resolve().then(()=>t.clear())}has(t){const s=this._getKeyPrefix(t),{store:r}=this.opts;return Promise.resolve().then(async()=>typeof r.has=="function"?r.has(s):await r.get(s)!==void 0)}disconnect(){const{store:t}=this.opts;if(typeof t.disconnect=="function")return t.disconnect()}};var Df=Nf;const Rf=Os,cs=Rs,Of=k0,Bf=rf,Ar=lf,Ni=Ef,wf=En,Lf=If,xf=Df;class Ke{constructor(t,s){if(typeof t!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new xf({uri:typeof s=="string"&&s,store:typeof s!="string"&&s,namespace:"cacheable-request"}),this.createCacheableRequest(t)}createCacheableRequest(t){return(s,r)=>{let n;if(typeof s=="string")n=hr(cs.parse(s)),s={};else if(s instanceof cs.URL)n=hr(cs.parse(s.toString())),s={};else{const[b,...A]=(s.path||"").split("?"),I=A.length>0?`?${A.join("?")}`:"";n=hr({...s,pathname:b,search:I})}s={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...s,...Pf(n)},s.headers=wf(s.headers);const a=new Rf,u=Of(cs.format(n),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),c=`${s.method}:${u}`;let h=!1,f=!1;const p=b=>{f=!0;let A=!1,I;const E=new Promise(D=>{I=()=>{A||(A=!0,D())}}),x=D=>{if(h&&!b.forceRefresh){D.status=D.statusCode;const P=Ar.fromObject(h.cachePolicy).revalidatedPolicy(b,D);if(!P.modified){const J=P.policy.responseHeaders();D=new Ni(h.statusCode,J,h.body,h.url),D.cachePolicy=P.policy,D.fromCache=!0}}D.fromCache||(D.cachePolicy=new Ar(b,D,b),D.fromCache=!1);let L;b.cache&&D.cachePolicy.storable()?(L=Lf(D),(async()=>{try{const P=Bf.buffer(D);if(await Promise.race([E,new Promise(o=>D.once("end",o))]),A)return;const J=await P,v={cachePolicy:D.cachePolicy.toObject(),url:D.url,statusCode:D.fromCache?h.statusCode:D.statusCode,body:J};let y=b.strictTtl?D.cachePolicy.timeToLive():void 0;b.maxTtl&&(y=y?Math.min(y,b.maxTtl):b.maxTtl),await this.cache.set(c,v,y)}catch(P){a.emit("error",new Ke.CacheError(P))}})()):b.cache&&h&&(async()=>{try{await this.cache.delete(c)}catch(P){a.emit("error",new Ke.CacheError(P))}})(),a.emit("response",L||D),typeof r=="function"&&r(L||D)};try{const D=t(b,x);D.once("error",I),D.once("abort",I),a.emit("request",D)}catch(D){a.emit("error",new Ke.RequestError(D))}};return(async()=>{const b=async I=>{await Promise.resolve();const E=I.cache?await this.cache.get(c):void 0;if(typeof E>"u")return p(I);const x=Ar.fromObject(E.cachePolicy);if(x.satisfiesWithoutRevalidation(I)&&!I.forceRefresh){const D=x.responseHeaders(),L=new Ni(E.statusCode,D,E.body,E.url);L.cachePolicy=x,L.fromCache=!0,a.emit("response",L),typeof r=="function"&&r(L)}else h=E,I.headers=x.revalidationHeaders(I),p(I)},A=I=>a.emit("error",new Ke.CacheError(I));this.cache.once("error",A),a.on("response",()=>this.cache.removeListener("error",A));try{await b(s)}catch(I){s.automaticFailover&&!f&&p(s),a.emit("error",new Ke.CacheError(I))}})(),a}}}function Pf(e){const t={...e};return t.path=`${e.pathname||"/"}${e.search||""}`,delete t.pathname,delete t.search,t}function hr(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}Ke.RequestError=class extends Error{constructor(e){super(e.message),this.name="RequestError",Object.assign(this,e)}};Ke.CacheError=class extends Error{constructor(e){super(e.message),this.name="CacheError",Object.assign(this,e)}};var kf=Ke;const Ff=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];var Mf=(e,t)=>{if(t._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");const s=new Set(Object.keys(e).concat(Ff)),r={};for(const n of s)n in t||(r[n]={get(){const a=e[n];return typeof a=="function"?a.bind(e):a},set(a){e[n]=a},enumerable:!0,configurable:!1});return Object.defineProperties(t,r),e.once("aborted",()=>{t.destroy(),t.emit("aborted")}),e.once("close",()=>{e.complete&&t.readable?t.once("end",()=>{t.emit("close")}):t.emit("close")}),t};const{Transform:Hf,PassThrough:vf}=ct,lr=Vu,Uf=Mf;var Qf=e=>{const t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t))return e;const s=t==="br";if(s&&typeof lr.createBrotliDecompress!="function")return e.destroy(new Error("Brotli is not supported on Node.js < 12")),e;let r=!0;const n=new Hf({transform(c,h,f){r=!1,f(null,c)},flush(c){c()}}),a=new vf({autoDestroy:!1,destroy(c,h){e.destroy(),h(c)}}),u=s?lr.createBrotliDecompress():lr.createUnzip();return u.once("error",c=>{if(r&&!e.readable){a.end();return}a.destroy(c)}),Uf(e,a),e.pipe(n).pipe(u).pipe(a),a};let Yf=class{constructor(t={}){if(!(t.maxSize&&t.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=t.maxSize,this.onEviction=t.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(t,s){if(this.cache.set(t,s),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(const[r,n]of this.oldCache.entries())this.onEviction(r,n);this.oldCache=this.cache,this.cache=new Map}}get(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t)){const s=this.oldCache.get(t);return this.oldCache.delete(t),this._set(t,s),s}}set(t,s){return this.cache.has(t)?this.cache.set(t,s):this._set(t,s),this}has(t){return this.cache.has(t)||this.oldCache.has(t)}peek(t){if(this.cache.has(t))return this.cache.get(t);if(this.oldCache.has(t))return this.oldCache.get(t)}delete(t){const s=this.cache.delete(t);return s&&this._size--,this.oldCache.delete(t)||s}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(const[t]of this)yield t}*values(){for(const[,t]of this)yield t}*[Symbol.iterator](){for(const t of this.cache)yield t;for(const t of this.oldCache){const[s]=t;this.cache.has(s)||(yield t)}}get size(){let t=0;for(const s of this.oldCache.keys())this.cache.has(s)||t++;return Math.min(this._size+t,this.maxSize)}};var Su=Yf;const Wf=Os,Gf=Vi,Kf=Qr,qf=Su,Ne=Symbol("currentStreamsCount"),Di=Symbol("request"),Pe=Symbol("cachedOriginSet"),gt=Symbol("gracefullyClosing"),Jf=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],jf=(e,t,s)=>{let r=0,n=e.length;for(;r<n;){const a=r+n>>>1;s(e[a],t)?r=a+1:n=a}return r},Zf=(e,t)=>e.remoteSettings.maxConcurrentStreams>t.remoteSettings.maxConcurrentStreams,dr=(e,t)=>{for(const s of e)s[Pe].length<t[Pe].length&&s[Pe].every(r=>t[Pe].includes(r))&&s[Ne]+t[Ne]<=t.remoteSettings.maxConcurrentStreams&&Nu(s)},Vf=(e,t)=>{for(const s of e)t[Pe].length<s[Pe].length&&t[Pe].every(r=>s[Pe].includes(r))&&t[Ne]+s[Ne]<=s.remoteSettings.maxConcurrentStreams&&Nu(t)},Ri=({agent:e,isFree:t})=>{const s={};for(const r in e.sessions){const a=e.sessions[r].filter(u=>{const c=u[Jt.kCurrentStreamsCount]<u.remoteSettings.maxConcurrentStreams;return t?c:!c});a.length!==0&&(s[r]=a)}return s},Nu=e=>{e[gt]=!0,e[Ne]===0&&e.close()};let Jt=class vr extends Wf{constructor({timeout:t=6e4,maxSessions:s=1/0,maxFreeSessions:r=10,maxCachedTlsSessions:n=100}={}){super(),this.sessions={},this.queue={},this.timeout=t,this.maxSessions=s,this.maxFreeSessions=r,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new qf({maxSize:n})}static normalizeOrigin(t,s){return typeof t=="string"&&(t=new URL(t)),s&&t.hostname!==s&&(t.hostname=s),t.origin}normalizeOptions(t){let s="";if(t)for(const r of Jf)t[r]&&(s+=`:${t[r]}`);return s}_tryToCreateNewSession(t,s){if(!(t in this.queue)||!(s in this.queue[t]))return;const r=this.queue[t][s];this._sessionsCount<this.maxSessions&&!r.completed&&(r.completed=!0,r())}getSession(t,s,r){return new Promise((n,a)=>{Array.isArray(r)?(r=[...r],n()):r=[{resolve:n,reject:a}];const u=this.normalizeOptions(s),c=vr.normalizeOrigin(t,s&&s.servername);if(c===void 0){for(const{reject:p}of r)p(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(u in this.sessions){const p=this.sessions[u];let b=-1,A=-1,I;for(const E of p){const x=E.remoteSettings.maxConcurrentStreams;if(x<b)break;if(E[Pe].includes(c)){const D=E[Ne];if(D>=x||E[gt]||E.destroyed)continue;I||(b=x),D>A&&(I=E,A=D)}}if(I){if(r.length!==1){for(const{reject:E}of r){const x=new Error(`Expected the length of listeners to be 1, got ${r.length}.
|
|
9
|
-
Please report this to https://github.com/szmarczak/http2-wrapper/`);E(x)}return}r[0].resolve(I);return}}if(u in this.queue){if(c in this.queue[u]){this.queue[u][c].listeners.push(...r),this._tryToCreateNewSession(u,c);return}}else this.queue[u]={};const h=()=>{u in this.queue&&this.queue[u][c]===f&&(delete this.queue[u][c],Object.keys(this.queue[u]).length===0&&delete this.queue[u])},f=()=>{const p=`${c}:${u}`;let b=!1;try{const A=Kf.connect(t,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(p),...s});A[Ne]=0,A[gt]=!1;const I=()=>A[Ne]<A.remoteSettings.maxConcurrentStreams;let E=!0;A.socket.once("session",D=>{this.tlsSessionCache.set(p,D)}),A.once("error",D=>{for(const{reject:L}of r)L(D);this.tlsSessionCache.delete(p)}),A.setTimeout(this.timeout,()=>{A.destroy()}),A.once("close",()=>{if(b){E&&this._freeSessionsCount--,this._sessionsCount--;const D=this.sessions[u];D.splice(D.indexOf(A),1),D.length===0&&delete this.sessions[u]}else{const D=new Error("Session closed without receiving a SETTINGS frame");D.code="HTTP2WRAPPER_NOSETTINGS";for(const{reject:L}of r)L(D);h()}this._tryToCreateNewSession(u,c)});const x=()=>{if(!(!(u in this.queue)||!I())){for(const D of A[Pe])if(D in this.queue[u]){const{listeners:L}=this.queue[u][D];for(;L.length!==0&&I();)L.shift().resolve(A);const P=this.queue[u];if(P[D].listeners.length===0&&(delete P[D],Object.keys(P).length===0)){delete this.queue[u];break}if(!I())break}}};A.on("origin",()=>{A[Pe]=A.originSet,I()&&(x(),dr(this.sessions[u],A))}),A.once("remoteSettings",()=>{if(A.ref(),A.unref(),this._sessionsCount++,f.destroyed){const D=new Error("Agent has been destroyed");for(const L of r)L.reject(D);A.destroy();return}A[Pe]=A.originSet;{const D=this.sessions;if(u in D){const L=D[u];L.splice(jf(L,A,Zf),0,A)}else D[u]=[A]}this._freeSessionsCount+=1,b=!0,this.emit("session",A),x(),h(),A[Ne]===0&&this._freeSessionsCount>this.maxFreeSessions&&A.close(),r.length!==0&&(this.getSession(c,s,r),r.length=0),A.on("remoteSettings",()=>{x(),dr(this.sessions[u],A)})}),A[Di]=A.request,A.request=(D,L)=>{if(A[gt])throw new Error("The session is gracefully closing. No new streams are allowed.");const P=A[Di](D,L);return A.ref(),++A[Ne],A[Ne]===A.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,P.once("close",()=>{if(E=I(),--A[Ne],!A.destroyed&&!A.closed&&(Vf(this.sessions[u],A),I()&&!A.closed)){E||(this._freeSessionsCount++,E=!0);const J=A[Ne]===0;J&&A.unref(),J&&(this._freeSessionsCount>this.maxFreeSessions||A[gt])?A.close():(dr(this.sessions[u],A),x())}}),P}}catch(A){for(const I of r)I.reject(A);h()}};f.listeners=r,f.completed=!1,f.destroyed=!1,this.queue[u][c]=f,this._tryToCreateNewSession(u,c)})}request(t,s,r,n){return new Promise((a,u)=>{this.getSession(t,s,[{reject:u,resolve:c=>{try{a(c.request(r,n))}catch(h){u(h)}}}])})}createConnection(t,s){return vr.connect(t,s)}static connect(t,s){s.ALPNProtocols=["h2"];const r=t.port||443,n=t.hostname||t.host;return typeof s.servername>"u"&&(s.servername=n),Gf.connect(r,n,s)}closeFreeSessions(){for(const t of Object.values(this.sessions))for(const s of t)s[Ne]===0&&s.close()}destroy(t){for(const s of Object.values(this.sessions))for(const r of s)r.destroy(t);for(const s of Object.values(this.queue))for(const r of Object.values(s))r.destroyed=!0;this.queue={}}get freeSessions(){return Ri({agent:this,isFree:!0})}get busySessions(){return Ri({agent:this,isFree:!1})}};Jt.kCurrentStreamsCount=Ne;Jt.kGracefullyClosing=gt;var Du={Agent:Jt,globalAgent:new Jt};const{Readable:Xf}=ct;let zf=class extends Xf{constructor(t,s){super({highWaterMark:s,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=t,this.connection=t,this._dumped=!1}_destroy(t){this.req._request.destroy(t)}setTimeout(t,s){return this.req.setTimeout(t,s),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};var $f=zf,Ru=e=>{const t={protocol:e.protocol,hostname:typeof e.hostname=="string"&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return typeof e.port=="string"&&e.port.length!==0&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t},em=(e,t,s)=>{for(const r of s)e.on(r,(...n)=>t.emit(r,...n))},tm=e=>{switch(e){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}},Ou={exports:{}};(function(e){const t=(s,r,n)=>{e.exports[r]=class extends s{constructor(...u){super(typeof n=="string"?n:n(u)),this.name=`${super.name} [${r}]`,this.code=r}}};t(TypeError,"ERR_INVALID_ARG_TYPE",s=>{const r=s[0].includes(".")?"property":"argument";let n=s[1];const a=Array.isArray(n);return a&&(n=`${n.slice(0,-1).join(", ")} or ${n.slice(-1)}`),`The "${s[0]}" ${r} must be ${a?"one of":"of"} type ${n}. Received ${typeof s[2]}`}),t(TypeError,"ERR_INVALID_PROTOCOL",s=>`Protocol "${s[0]}" not supported. Expected "${s[1]}"`),t(Error,"ERR_HTTP_HEADERS_SENT",s=>`Cannot ${s[0]} headers after they are sent to the client`),t(TypeError,"ERR_INVALID_HTTP_TOKEN",s=>`${s[0]} must be a valid HTTP token [${s[1]}]`),t(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",s=>`Invalid value "${s[0]} for header "${s[1]}"`),t(TypeError,"ERR_INVALID_CHAR",s=>`Invalid character in ${s[0]} [${s[1]}]`)})(Ou);var sm=Ou.exports;const rm=Qr,{Writable:nm}=ct,{Agent:Oi,globalAgent:im}=Du,am=$f,um=Ru,om=em,cm=tm,{ERR_INVALID_ARG_TYPE:fr,ERR_INVALID_PROTOCOL:Am,ERR_HTTP_HEADERS_SENT:Bi,ERR_INVALID_HTTP_TOKEN:hm,ERR_HTTP_INVALID_HEADER_VALUE:lm,ERR_INVALID_CHAR:dm}=sm,{HTTP2_HEADER_STATUS:wi,HTTP2_HEADER_METHOD:Li,HTTP2_HEADER_PATH:xi,HTTP2_METHOD_CONNECT:fm}=rm.constants,Ce=Symbol("headers"),mr=Symbol("origin"),Er=Symbol("session"),Pi=Symbol("options"),As=Symbol("flushedHeaders"),Ot=Symbol("jobs"),mm=/^[\^`\-\w!#$%&*+.|~]+$/,Em=/[^\t\u0020-\u007E\u0080-\u00FF]/;class gm extends nm{constructor(t,s,r){super({autoDestroy:!1});const n=typeof t=="string"||t instanceof URL;if(n&&(t=um(t instanceof URL?t:new URL(t))),typeof s=="function"||s===void 0?(r=s,s=n?t:{...t}):s={...t,...s},s.h2session)this[Er]=s.h2session;else if(s.agent===!1)this.agent=new Oi({maxFreeSessions:0});else if(typeof s.agent>"u"||s.agent===null)typeof s.createConnection=="function"?(this.agent=new Oi({maxFreeSessions:0}),this.agent.createConnection=s.createConnection):this.agent=im;else if(typeof s.agent.request=="function")this.agent=s.agent;else throw new fr("options.agent",["Agent-like Object","undefined","false"],s.agent);if(s.protocol&&s.protocol!=="https:")throw new Am(s.protocol,"https:");const a=s.port||s.defaultPort||this.agent&&this.agent.defaultPort||443,u=s.hostname||s.host||"localhost";delete s.hostname,delete s.host,delete s.port;const{timeout:c}=s;if(s.timeout=void 0,this[Ce]=Object.create(null),this[Ot]=[],this.socket=null,this.connection=null,this.method=s.method||"GET",this.path=s.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,s.headers)for(const[h,f]of Object.entries(s.headers))this.setHeader(h,f);s.auth&&!("authorization"in this[Ce])&&(this[Ce].authorization="Basic "+Buffer.from(s.auth).toString("base64")),s.session=s.tlsSession,s.path=s.socketPath,this[Pi]=s,a===443?(this[mr]=`https://${u}`,":authority"in this[Ce]||(this[Ce][":authority"]=u)):(this[mr]=`https://${u}:${a}`,":authority"in this[Ce]||(this[Ce][":authority"]=`${u}:${a}`)),c&&this.setTimeout(c),r&&this.once("response",r),this[As]=!1}get method(){return this[Ce][Li]}set method(t){t&&(this[Ce][Li]=t.toUpperCase())}get path(){return this[Ce][xi]}set path(t){t&&(this[Ce][xi]=t)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(t,s,r){if(this._mustNotHaveABody){r(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();const n=()=>this._request.write(t,s,r);this._request?n():this[Ot].push(n)}_final(t){if(this.destroyed)return;this.flushHeaders();const s=()=>{if(this._mustNotHaveABody){t();return}this._request.end(t)};this._request?s():this[Ot].push(s)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(t,s){this.res&&this.res._dump(),this._request&&this._request.destroy(),s(t)}async flushHeaders(){if(this[As]||this.destroyed)return;this[As]=!0;const t=this.method===fm,s=r=>{if(this._request=r,this.destroyed){r.destroy();return}t||om(r,this,["timeout","continue","close","error"]);const n=u=>(...c)=>{!this.writable&&!this.destroyed?u(...c):this.once("finish",()=>{u(...c)})};r.once("response",n((u,c,h)=>{const f=new am(this.socket,r.readableHighWaterMark);this.res=f,f.req=this,f.statusCode=u[wi],f.headers=u,f.rawHeaders=h,f.once("end",()=>{this.aborted?(f.aborted=!0,f.emit("aborted")):(f.complete=!0,f.socket=null,f.connection=null)}),t?(f.upgrade=!0,this.emit("connect",f,r,Buffer.alloc(0))?this.emit("close"):r.destroy()):(r.on("data",p=>{!f._dumped&&!f.push(p)&&r.pause()}),r.once("end",()=>{f.push(null)}),this.emit("response",f)||f._dump())})),r.once("headers",n(u=>this.emit("information",{statusCode:u[wi]}))),r.once("trailers",n((u,c,h)=>{const{res:f}=this;f.trailers=u,f.rawTrailers=h}));const{socket:a}=r.session;this.socket=a,this.connection=a;for(const u of this[Ot])u();this.emit("socket",this.socket)};if(this[Er])try{s(this[Er].request(this[Ce]))}catch(r){this.emit("error",r)}else{this.reusedSocket=!0;try{s(await this.agent.request(this[mr],this[Pi],this[Ce]))}catch(r){this.emit("error",r)}}}getHeader(t){if(typeof t!="string")throw new fr("name","string",t);return this[Ce][t.toLowerCase()]}get headersSent(){return this[As]}removeHeader(t){if(typeof t!="string")throw new fr("name","string",t);if(this.headersSent)throw new Bi("remove");delete this[Ce][t.toLowerCase()]}setHeader(t,s){if(this.headersSent)throw new Bi("set");if(typeof t!="string"||!mm.test(t)&&!cm(t))throw new hm("Header name",t);if(typeof s>"u")throw new lm(s,t);if(Em.test(s))throw new dm("header content",t);this[Ce][t.toLowerCase()]=s}setNoDelay(){}setSocketKeepAlive(){}setTimeout(t,s){const r=()=>this._request.setTimeout(t,s);return this._request?r():this[Ot].push(r),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(t){}}var bm=gm,bn={exports:{}};const pm=Vi;var Tm=(e={},t=pm.connect)=>new Promise((s,r)=>{let n=!1,a;const u=async()=>{await h,a.off("timeout",c),a.off("error",r),e.resolveSocket?(s({alpnProtocol:a.alpnProtocol,socket:a,timeout:n}),n&&(await Promise.resolve(),a.emit("timeout"))):(a.destroy(),s({alpnProtocol:a.alpnProtocol,timeout:n}))},c=async()=>{n=!0,u()},h=(async()=>{try{a=await t(e,u),a.on("error",r),a.once("timeout",c)}catch(f){r(f)}})()});const _m=Xi;var Im=e=>{let t=e.host;const s=e.headers&&e.headers.host;return s&&(s.startsWith("[")?s.indexOf("]")===-1?t=s:t=s.slice(1,-1):t=s.split(":",1)[0]),_m.isIP(t)?"":t};const ki=pr,Ur=Zi,Cm=Tm,ym=Su,Sm=bm,Nm=Im,Dm=Ru,Es=new ym({maxSize:100}),Bt=new Map,Fi=(e,t,s)=>{t._httpMessage={shouldKeepAlive:!0};const r=()=>{e.emit("free",t,s)};t.on("free",r);const n=()=>{e.removeSocket(t,s)};t.on("close",n);const a=()=>{e.removeSocket(t,s),t.off("close",n),t.off("free",r),t.off("agentRemove",a)};t.on("agentRemove",a),e.emit("free",t,s)},Rm=async e=>{const t=`${e.host}:${e.port}:${e.ALPNProtocols.sort()}`;if(!Es.has(t)){if(Bt.has(t))return(await Bt.get(t)).alpnProtocol;const{path:s,agent:r}=e;e.path=e.socketPath;const n=Cm(e);Bt.set(t,n);try{const{socket:a,alpnProtocol:u}=await n;if(Es.set(t,u),e.path=s,u==="h2")a.destroy();else{const{globalAgent:c}=Ur,h=Ur.Agent.prototype.createConnection;r?r.createConnection===h?Fi(r,a,e):a.destroy():c.createConnection===h?Fi(c,a,e):a.destroy()}return Bt.delete(t),u}catch(a){throw Bt.delete(t),a}}return Es.get(t)};bn.exports=async(e,t,s)=>{if((typeof e=="string"||e instanceof URL)&&(e=Dm(new URL(e))),typeof t=="function"&&(s=t,t=void 0),t={ALPNProtocols:["h2","http/1.1"],...e,...t,resolveSocket:!0},!Array.isArray(t.ALPNProtocols)||t.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");t.protocol=t.protocol||"https:";const r=t.protocol==="https:";t.host=t.hostname||t.host||"localhost",t.session=t.tlsSession,t.servername=t.servername||Nm(t),t.port=t.port||(r?443:80),t._defaultAgent=r?Ur.globalAgent:ki.globalAgent;const n=t.agent;if(n){if(n.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");t.agent=n[r?"https":"http"]}return r&&await Rm(t)==="h2"?(n&&(t.agent=n.http2),new Sm(t,s)):ki.request(t,s)};bn.exports.protocolCache=Es;var Om=bn.exports;const Bm=Qr,wm=Du,Lm=Om;var xm={...Bm,...wm,auto:Lm},pn={},Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});const Mi=st;Ks.default=e=>Mi.default.nodeStream(e)&&Mi.default.function_(e.getBoundary);Object.defineProperty(pn,"__esModule",{value:!0});const Bu=ji,wu=Bs,Hi=st,Pm=Ks,km=wu.promisify(Bu.stat);pn.default=async(e,t)=>{if(t&&"content-length"in t)return Number(t["content-length"]);if(!e)return 0;if(Hi.default.string(e))return Buffer.byteLength(e);if(Hi.default.buffer(e))return e.length;if(Pm.default(e))return wu.promisify(e.getLength.bind(e))();if(e instanceof Bu.ReadStream){const{size:s}=await km(e.path);return s===0?void 0:s}};var qs={};Object.defineProperty(qs,"__esModule",{value:!0});function Fm(e,t,s){const r={};for(const n of s)r[n]=(...a)=>{t.emit(n,...a)},e.on(n,r[n]);return()=>{for(const n of s)e.off(n,r[n])}}qs.default=Fm;var $t={},Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.default=()=>{const e=[];return{once(t,s,r){t.once(s,r),e.push({origin:t,event:s,fn:r})},unhandleAll(){for(const t of e){const{origin:s,event:r,fn:n}=t;s.removeListener(r,n)}e.length=0}}};Object.defineProperty($t,"__esModule",{value:!0});$t.TimeoutError=void 0;const Mm=Xi,Hm=Tn,vi=Symbol("reentry"),vm=()=>{};class Lu extends Error{constructor(t,s){super(`Timeout awaiting '${s}' for ${t}ms`),this.event=s,this.name="TimeoutError",this.code="ETIMEDOUT"}}$t.TimeoutError=Lu;$t.default=(e,t,s)=>{if(vi in e)return vm;e[vi]=!0;const r=[],{once:n,unhandleAll:a}=Hm.default(),u=(b,A,I)=>{var E;const x=setTimeout(A,b,b,I);(E=x.unref)===null||E===void 0||E.call(x);const D=()=>{clearTimeout(x)};return r.push(D),D},{host:c,hostname:h}=s,f=(b,A)=>{e.destroy(new Lu(b,A))},p=()=>{for(const b of r)b();a()};if(e.once("error",b=>{if(p(),e.listenerCount("error")===0)throw b}),e.once("close",p),n(e,"response",b=>{n(b,"end",p)}),typeof t.request<"u"&&u(t.request,f,"request"),typeof t.socket<"u"){const b=()=>{f(t.socket,"socket")};e.setTimeout(t.socket,b),r.push(()=>{e.removeListener("timeout",b)})}return n(e,"socket",b=>{var A;const{socketPath:I}=e;if(b.connecting){const E=!!(I??Mm.isIP((A=h??c)!==null&&A!==void 0?A:"")!==0);if(typeof t.lookup<"u"&&!E&&typeof b.address().address>"u"){const x=u(t.lookup,f,"lookup");n(b,"lookup",x)}if(typeof t.connect<"u"){const x=()=>u(t.connect,f,"connect");E?n(b,"connect",x()):n(b,"lookup",D=>{D===null&&n(b,"connect",x())})}typeof t.secureConnect<"u"&&s.protocol==="https:"&&n(b,"connect",()=>{const x=u(t.secureConnect,f,"secureConnect");n(b,"secureConnect",x)})}if(typeof t.send<"u"){const E=()=>u(t.send,f,"send");b.connecting?n(b,"connect",()=>{n(e,"upload-complete",E())}):n(e,"upload-complete",E())}}),typeof t.response<"u"&&n(e,"upload-complete",()=>{const b=u(t.response,f,"response");n(e,"response",b)}),p};var _n={};Object.defineProperty(_n,"__esModule",{value:!0});const Ui=st;_n.default=e=>{e=e;const t={protocol:e.protocol,hostname:Ui.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};return Ui.default.string(e.port)&&e.port.length>0&&(t.port=Number(e.port)),(e.username||e.password)&&(t.auth=`${e.username||""}:${e.password||""}`),t};var In={};Object.defineProperty(In,"__esModule",{value:!0});const Um=Rs,Qm=["protocol","host","hostname","port","pathname","search"];In.default=(e,t)=>{var s,r;if(t.path){if(t.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(t.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(t.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(t.search&&t.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!e){if(!t.protocol)throw new TypeError("No URL protocol specified");e=`${t.protocol}//${(r=(s=t.hostname)!==null&&s!==void 0?s:t.host)!==null&&r!==void 0?r:""}`}const n=new Um.URL(e);if(t.path){const a=t.path.indexOf("?");a===-1?t.pathname=t.path:(t.pathname=t.path.slice(0,a),t.search=t.path.slice(a+1)),delete t.path}for(const a of Qm)t[a]&&(n[a]=t[a].toString());return n};var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});class Ym{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,s){typeof t=="object"?this.weakMap.set(t,s):this.map.set(t,s)}get(t){return typeof t=="object"?this.weakMap.get(t):this.map.get(t)}has(t){return typeof t=="object"?this.weakMap.has(t):this.map.has(t)}}Cn.default=Ym;var Js={};Object.defineProperty(Js,"__esModule",{value:!0});const Wm=async e=>{const t=[];let s=0;for await(const r of e)t.push(r),s+=Buffer.byteLength(r);return Buffer.isBuffer(t[0])?Buffer.concat(t,s):Buffer.from(t.join(""))};Js.default=Wm;var xu={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;const t={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=s=>s in t,e.dnsLookupIpVersionToFamily=s=>{if(e.isDnsLookupIpVersion(s))return t[s];throw new Error("Invalid DNS lookup IP version")}})(xu);var es={};Object.defineProperty(es,"__esModule",{value:!0});es.isResponseOk=void 0;es.isResponseOk=e=>{const{statusCode:t}=e,s=e.request.options.followRedirect?299:399;return t>=200&&t<=s||t===304};var yn={};Object.defineProperty(yn,"__esModule",{value:!0});const Qi=new Set;yn.default=e=>{Qi.has(e)||(Qi.add(e),process.emitWarning(`Got: ${e}`,{type:"DeprecationWarning"}))};var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});const re=st,Gm=(e,t)=>{if(re.default.null_(e.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");re.assert.any([re.default.string,re.default.undefined],e.encoding),re.assert.any([re.default.boolean,re.default.undefined],e.resolveBodyOnly),re.assert.any([re.default.boolean,re.default.undefined],e.methodRewriting),re.assert.any([re.default.boolean,re.default.undefined],e.isStream),re.assert.any([re.default.string,re.default.undefined],e.responseType),e.responseType===void 0&&(e.responseType="text");const{retry:s}=e;if(t?e.retry={...t.retry}:e.retry={calculateDelay:r=>r.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},re.default.object(s)?(e.retry={...e.retry,...s},e.retry.methods=[...new Set(e.retry.methods.map(r=>r.toUpperCase()))],e.retry.statusCodes=[...new Set(e.retry.statusCodes)],e.retry.errorCodes=[...new Set(e.retry.errorCodes)]):re.default.number(s)&&(e.retry.limit=s),re.default.undefined(e.retry.maxRetryAfter)&&(e.retry.maxRetryAfter=Math.min(...[e.timeout.request,e.timeout.connect].filter(re.default.number))),re.default.object(e.pagination)){t&&(e.pagination={...t.pagination,...e.pagination});const{pagination:r}=e;if(!re.default.function_(r.transform))throw new Error("`options.pagination.transform` must be implemented");if(!re.default.function_(r.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!re.default.function_(r.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!re.default.function_(r.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return e.responseType==="json"&&e.headers.accept===void 0&&(e.headers.accept="application/json"),e};Sn.default=Gm;var ts={};Object.defineProperty(ts,"__esModule",{value:!0});ts.retryAfterStatusCodes=void 0;ts.retryAfterStatusCodes=new Set([413,429,503]);const Km=({attemptCount:e,retryOptions:t,error:s,retryAfter:r})=>{if(e>t.limit)return 0;const n=t.methods.includes(s.options.method),a=t.errorCodes.includes(s.code),u=s.response&&t.statusCodes.includes(s.response.statusCode);if(!n||!a&&!u)return 0;if(s.response){if(r)return t.maxRetryAfter===void 0||r>t.maxRetryAfter?0:r;if(s.response.statusCode===413)return 0}const c=Math.random()*100;return 2**(e-1)*1e3+c};ts.default=Km;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedProtocolError=e.ReadError=e.TimeoutError=e.UploadError=e.CacheError=e.HTTPError=e.MaxRedirectsError=e.RequestError=e.setNonEnumerableProperties=e.knownHookEvents=e.withoutBody=e.kIsNormalizedAlready=void 0;const t=Bs,s=ct,r=ji,n=Rs,a=pr,u=pr,c=Zi,h=_0,f=B0,p=kf,b=Qf,A=xm,I=En,E=st,x=pn,D=Ks,L=qs,P=$t,J=_n,v=In,y=Cn,o=Js,S=xu,H=es,M=yn,ie=Sn,se=ts;let Z;const V=Symbol("request"),ce=Symbol("response"),Ee=Symbol("responseSize"),Je=Symbol("downloadedSize"),we=Symbol("bodySize"),De=Symbol("uploadedSize"),lt=Symbol("serverResponsesPiped"),ss=Symbol("unproxyEvents"),je=Symbol("isFromCache"),rt=Symbol("cancelTimeouts"),rs=Symbol("startedReading"),dt=Symbol("stopReading"),ns=Symbol("triggerRead"),Ze=Symbol("body"),St=Symbol("jobs"),On=Symbol("originalResponse"),Bn=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");const Fu=E.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function Mu(Ae){for(const T in Ae){const d=Ae[T];if(!E.default.string(d)&&!E.default.number(d)&&!E.default.boolean(d)&&!E.default.null_(d)&&!E.default.undefined(d))throw new TypeError(`The \`searchParams\` value '${String(d)}' must be a string, number, boolean or null`)}}function Hu(Ae){return E.default.object(Ae)&&!("statusCode"in Ae)}const js=new y.default,vu=async Ae=>new Promise((T,d)=>{const B=Y=>{d(Y)};Ae.pending||T(),Ae.once("error",B),Ae.once("ready",()=>{Ae.off("error",B),T()})}),Uu=new Set([300,301,302,303,304,307,308]),Qu=["context","body","json","form"];e.setNonEnumerableProperties=(Ae,T)=>{const d={};for(const B of Ae)if(B)for(const Y of Qu)Y in B&&(d[Y]={writable:!0,configurable:!0,enumerable:!1,value:B[Y]});Object.defineProperties(T,d)};class fe extends Error{constructor(T,d,B){var Y,k;if(super(T),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(Y=d.code)!==null&&Y!==void 0?Y:"ERR_GOT_REQUEST_ERROR",B instanceof Mn?(Object.defineProperty(this,"request",{enumerable:!1,value:B}),Object.defineProperty(this,"response",{enumerable:!1,value:B[ce]}),Object.defineProperty(this,"options",{enumerable:!1,value:B.options})):Object.defineProperty(this,"options",{enumerable:!1,value:B}),this.timings=(k=this.request)===null||k===void 0?void 0:k.timings,E.default.string(d.stack)&&E.default.string(this.stack)){const w=this.stack.indexOf(this.message)+this.message.length,F=this.stack.slice(w).split(`
|
|
10
|
-
`).reverse(),G=d.stack.slice(d.stack.indexOf(d.message)+d.message.length).split(`
|
|
11
|
-
`).reverse();for(;G.length!==0&&G[0]===F[0];)F.shift();this.stack=`${this.stack.slice(0,w)}${F.reverse().join(`
|
|
12
|
-
`)}${G.reverse().join(`
|
|
13
|
-
`)}`}}}e.RequestError=fe;class wn extends fe{constructor(T){super(`Redirected ${T.options.maxRedirects} times. Aborting.`,{},T),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}}e.MaxRedirectsError=wn;class Ln extends fe{constructor(T){super(`Response code ${T.statusCode} (${T.statusMessage})`,{},T.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}}e.HTTPError=Ln;class xn extends fe{constructor(T,d){super(T.message,T,d),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}}e.CacheError=xn;class Pn extends fe{constructor(T,d){super(T.message,T,d),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}}e.UploadError=Pn;class kn extends fe{constructor(T,d,B){super(T.message,T,B),this.name="TimeoutError",this.event=T.event,this.timings=d}}e.TimeoutError=kn;class Zs extends fe{constructor(T,d){super(T.message,T,d),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}}e.ReadError=Zs;class Fn extends fe{constructor(T){super(`Unsupported protocol "${T.url.protocol}"`,{},T),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}}e.UnsupportedProtocolError=Fn;const Yu=["socket","connect","continue","information","upgrade","timeout"];class Mn extends s.Duplex{constructor(T,d={},B){super({autoDestroy:!1,highWaterMark:0}),this[Je]=0,this[De]=0,this.requestInitialized=!1,this[lt]=new Set,this.redirects=[],this[dt]=!1,this[ns]=!1,this[St]=[],this.retryCount=0,this._progressCallbacks=[];const Y=()=>this._unlockWrite(),k=()=>this._lockWrite();this.on("pipe",q=>{q.prependListener("data",Y),q.on("data",k),q.prependListener("end",Y),q.on("end",k)}),this.on("unpipe",q=>{q.off("data",Y),q.off("data",k),q.off("end",Y),q.off("end",k)}),this.on("pipe",q=>{q instanceof u.IncomingMessage&&(this.options.headers={...q.headers,...this.options.headers})});const{json:w,body:F,form:G}=d;if((w||F||G)&&this._lockWrite(),e.kIsNormalizedAlready in d)this.options=d;else try{this.options=this.constructor.normalizeArguments(T,d,B)}catch(q){E.default.nodeStream(d.body)&&d.body.destroy(),this.destroy(q);return}(async()=>{var q;try{this.options.body instanceof r.ReadStream&&await vu(this.options.body);const{url:_e}=this.options;if(!_e)throw new TypeError("Missing `url` property");if(this.requestUrl=_e.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(q=this[V])===null||q===void 0||q.destroy();return}for(const Ie of this[St])Ie();this[St].length=0,this.requestInitialized=!0}catch(_e){if(_e instanceof fe){this._beforeError(_e);return}this.destroyed||this.destroy(_e)}})()}static normalizeArguments(T,d,B){var Y,k,w,F,G;const q=d;if(E.default.object(T)&&!E.default.urlInstance(T))d={...B,...T,...d};else{if(T&&d&&d.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");d={...B,...d},T!==void 0&&(d.url=T),E.default.urlInstance(d.url)&&(d.url=new n.URL(d.url.toString()))}if(d.cache===!1&&(d.cache=void 0),d.dnsCache===!1&&(d.dnsCache=void 0),E.assert.any([E.default.string,E.default.undefined],d.method),E.assert.any([E.default.object,E.default.undefined],d.headers),E.assert.any([E.default.string,E.default.urlInstance,E.default.undefined],d.prefixUrl),E.assert.any([E.default.object,E.default.undefined],d.cookieJar),E.assert.any([E.default.object,E.default.string,E.default.undefined],d.searchParams),E.assert.any([E.default.object,E.default.string,E.default.undefined],d.cache),E.assert.any([E.default.object,E.default.number,E.default.undefined],d.timeout),E.assert.any([E.default.object,E.default.undefined],d.context),E.assert.any([E.default.object,E.default.undefined],d.hooks),E.assert.any([E.default.boolean,E.default.undefined],d.decompress),E.assert.any([E.default.boolean,E.default.undefined],d.ignoreInvalidCookies),E.assert.any([E.default.boolean,E.default.undefined],d.followRedirect),E.assert.any([E.default.number,E.default.undefined],d.maxRedirects),E.assert.any([E.default.boolean,E.default.undefined],d.throwHttpErrors),E.assert.any([E.default.boolean,E.default.undefined],d.http2),E.assert.any([E.default.boolean,E.default.undefined],d.allowGetBody),E.assert.any([E.default.string,E.default.undefined],d.localAddress),E.assert.any([S.isDnsLookupIpVersion,E.default.undefined],d.dnsLookupIpVersion),E.assert.any([E.default.object,E.default.undefined],d.https),E.assert.any([E.default.boolean,E.default.undefined],d.rejectUnauthorized),d.https&&(E.assert.any([E.default.boolean,E.default.undefined],d.https.rejectUnauthorized),E.assert.any([E.default.function_,E.default.undefined],d.https.checkServerIdentity),E.assert.any([E.default.string,E.default.object,E.default.array,E.default.undefined],d.https.certificateAuthority),E.assert.any([E.default.string,E.default.object,E.default.array,E.default.undefined],d.https.key),E.assert.any([E.default.string,E.default.object,E.default.array,E.default.undefined],d.https.certificate),E.assert.any([E.default.string,E.default.undefined],d.https.passphrase),E.assert.any([E.default.string,E.default.buffer,E.default.array,E.default.undefined],d.https.pfx)),E.assert.any([E.default.object,E.default.undefined],d.cacheOptions),E.default.string(d.method)?d.method=d.method.toUpperCase():d.method="GET",d.headers===(B==null?void 0:B.headers)?d.headers={...d.headers}:d.headers=I({...B==null?void 0:B.headers,...d.headers}),"slashes"in d)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in d)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in d&&d.searchParams&&d.searchParams!==(B==null?void 0:B.searchParams)){let K;if(E.default.string(d.searchParams)||d.searchParams instanceof n.URLSearchParams)K=new n.URLSearchParams(d.searchParams);else{Mu(d.searchParams),K=new n.URLSearchParams;for(const oe in d.searchParams){const le=d.searchParams[oe];le===null?K.append(oe,""):le!==void 0&&K.append(oe,le)}}(Y=B==null?void 0:B.searchParams)===null||Y===void 0||Y.forEach((oe,le)=>{K.has(le)||K.append(le,oe)}),d.searchParams=K}if(d.username=(k=d.username)!==null&&k!==void 0?k:"",d.password=(w=d.password)!==null&&w!==void 0?w:"",E.default.undefined(d.prefixUrl)?d.prefixUrl=(F=B==null?void 0:B.prefixUrl)!==null&&F!==void 0?F:"":(d.prefixUrl=d.prefixUrl.toString(),d.prefixUrl!==""&&!d.prefixUrl.endsWith("/")&&(d.prefixUrl+="/")),E.default.string(d.url)){if(d.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");d.url=v.default(d.prefixUrl+d.url,d)}else(E.default.undefined(d.url)&&d.prefixUrl!==""||d.protocol)&&(d.url=v.default(d.prefixUrl,d));if(d.url){"port"in d&&delete d.port;let{prefixUrl:K}=d;Object.defineProperty(d,"prefixUrl",{set:le=>{const ee=d.url;if(!ee.href.startsWith(le))throw new Error(`Cannot change \`prefixUrl\` from ${K} to ${le}: ${ee.href}`);d.url=new n.URL(le+ee.href.slice(K.length)),K=le},get:()=>K});let{protocol:oe}=d.url;if(oe==="unix:"&&(oe="http:",d.url=new n.URL(`http://unix${d.url.pathname}${d.url.search}`)),d.searchParams&&(d.url.search=d.searchParams.toString()),oe!=="http:"&&oe!=="https:")throw new Fn(d);d.username===""?d.username=d.url.username:d.url.username=d.username,d.password===""?d.password=d.url.password:d.url.password=d.password}const{cookieJar:_e}=d;if(_e){let{setCookie:K,getCookieString:oe}=_e;E.assert.function_(K),E.assert.function_(oe),K.length===4&&oe.length===0&&(K=t.promisify(K.bind(d.cookieJar)),oe=t.promisify(oe.bind(d.cookieJar)),d.cookieJar={setCookie:K,getCookieString:oe})}const{cache:Ie}=d;if(Ie&&(js.has(Ie)||js.set(Ie,new p((K,oe)=>{const le=K[V](K,oe);return E.default.promise(le)&&(le.once=(ee,$)=>{if(ee==="error")le.catch($);else if(ee==="abort")(async()=>{try{(await le).once("abort",$)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${ee}`);return le}),le},Ie))),d.cacheOptions={...d.cacheOptions},d.dnsCache===!0)Z||(Z=new f.default),d.dnsCache=Z;else if(!E.default.undefined(d.dnsCache)&&!d.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${E.default(d.dnsCache)}`);E.default.number(d.timeout)?d.timeout={request:d.timeout}:B&&d.timeout!==B.timeout?d.timeout={...B.timeout,...d.timeout}:d.timeout={...d.timeout},d.context||(d.context={});const Ue=d.hooks===(B==null?void 0:B.hooks);d.hooks={...d.hooks};for(const K of e.knownHookEvents)if(K in d.hooks)if(E.default.array(d.hooks[K]))d.hooks[K]=[...d.hooks[K]];else throw new TypeError(`Parameter \`${K}\` must be an Array, got ${E.default(d.hooks[K])}`);else d.hooks[K]=[];if(B&&!Ue)for(const K of e.knownHookEvents)B.hooks[K].length>0&&(d.hooks[K]=[...B.hooks[K],...d.hooks[K]]);if("family"in d&&M.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),B!=null&&B.https&&(d.https={...B.https,...d.https}),"rejectUnauthorized"in d&&M.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in d&&M.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in d&&M.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in d&&M.default('"options.key" was never documented, please use "options.https.key"'),"cert"in d&&M.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in d&&M.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in d&&M.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in d)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if(d.agent){for(const K in d.agent)if(K!=="http"&&K!=="https"&&K!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${K}\``)}return d.maxRedirects=(G=d.maxRedirects)!==null&&G!==void 0?G:0,e.setNonEnumerableProperties([B,q],d),ie.default(d,B)}_lockWrite(){const T=()=>{throw new TypeError("The payload has been already provided")};this.write=T,this.end=T}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){const{options:T}=this,{headers:d}=T,B=!E.default.undefined(T.form),Y=!E.default.undefined(T.json),k=!E.default.undefined(T.body),w=B||Y||k,F=e.withoutBody.has(T.method)&&!(T.method==="GET"&&T.allowGetBody);if(this._cannotHaveBody=F,w){if(F)throw new TypeError(`The \`${T.method}\` method cannot be used with a body`);if([k,B,Y].filter(G=>G).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(k&&!(T.body instanceof s.Readable)&&!E.default.string(T.body)&&!E.default.buffer(T.body)&&!D.default(T.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(B&&!E.default.object(T.form))throw new TypeError("The `form` option must be an Object");{const G=!E.default.string(d["content-type"]);k?(D.default(T.body)&&G&&(d["content-type"]=`multipart/form-data; boundary=${T.body.getBoundary()}`),this[Ze]=T.body):B?(G&&(d["content-type"]="application/x-www-form-urlencoded"),this[Ze]=new n.URLSearchParams(T.form).toString()):(G&&(d["content-type"]="application/json"),this[Ze]=T.stringifyJson(T.json));const q=await x.default(this[Ze],T.headers);E.default.undefined(d["content-length"])&&E.default.undefined(d["transfer-encoding"])&&!F&&!E.default.undefined(q)&&(d["content-length"]=String(q))}}else F?this._lockWrite():this._unlockWrite();this[we]=Number(d["content-length"])||void 0}async _onResponseBase(T){const{options:d}=this,{url:B}=d;this[On]=T,d.decompress&&(T=b(T));const Y=T.statusCode,k=T;k.statusMessage=k.statusMessage?k.statusMessage:a.STATUS_CODES[Y],k.url=d.url.toString(),k.requestUrl=this.requestUrl,k.redirectUrls=this.redirects,k.request=this,k.isFromCache=T.fromCache||!1,k.ip=this.ip,k.retryCount=this.retryCount,this[je]=k.isFromCache,this[Ee]=Number(T.headers["content-length"])||void 0,this[ce]=T,T.once("end",()=>{this[Ee]=this[Je],this.emit("downloadProgress",this.downloadProgress)}),T.once("error",F=>{T.destroy(),this._beforeError(new Zs(F,this))}),T.once("aborted",()=>{this._beforeError(new Zs({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);const w=T.headers["set-cookie"];if(E.default.object(d.cookieJar)&&w){let F=w.map(async G=>d.cookieJar.setCookie(G,B.toString()));d.ignoreInvalidCookies&&(F=F.map(async G=>G.catch(()=>{})));try{await Promise.all(F)}catch(G){this._beforeError(G);return}}if(d.followRedirect&&T.headers.location&&Uu.has(Y)){if(T.resume(),this[V]&&(this[rt](),delete this[V],this[ss]()),(Y===303&&d.method!=="GET"&&d.method!=="HEAD"||!d.methodRewriting)&&(d.method="GET","body"in d&&delete d.body,"json"in d&&delete d.json,"form"in d&&delete d.form,this[Ze]=void 0,delete d.headers["content-length"]),this.redirects.length>=d.maxRedirects){this._beforeError(new wn(this));return}try{let Ie=function(Ue){return Ue.protocol==="unix:"||Ue.hostname==="unix"};const G=Buffer.from(T.headers.location,"binary").toString(),q=new n.URL(G,B),_e=q.toString();if(decodeURI(_e),!Ie(B)&&Ie(q)){this._beforeError(new fe("Cannot redirect to UNIX socket",{},this));return}q.hostname!==B.hostname||q.port!==B.port?("host"in d.headers&&delete d.headers.host,"cookie"in d.headers&&delete d.headers.cookie,"authorization"in d.headers&&delete d.headers.authorization,(d.username||d.password)&&(d.username="",d.password="")):(q.username=d.username,q.password=d.password),this.redirects.push(_e),d.url=q;for(const Ue of d.hooks.beforeRedirect)await Ue(d,k);this.emit("redirect",k,d),await this._makeRequest()}catch(G){this._beforeError(G);return}return}if(d.isStream&&d.throwHttpErrors&&!H.isResponseOk(k)){this._beforeError(new Ln(k));return}T.on("readable",()=>{this[ns]&&this._read()}),this.on("resume",()=>{T.resume()}),this.on("pause",()=>{T.pause()}),T.once("end",()=>{this.push(null)}),this.emit("response",T);for(const F of this[lt])if(!F.headersSent){for(const G in T.headers){const q=d.decompress?G!=="content-encoding":!0,_e=T.headers[G];q&&F.setHeader(G,_e)}F.statusCode=Y}}async _onResponse(T){try{await this._onResponseBase(T)}catch(d){this._beforeError(d)}}_onRequest(T){const{options:d}=this,{timeout:B,url:Y}=d;h.default(T),this[rt]=P.default(T,B,Y);const k=d.cache?"cacheableResponse":"response";T.once(k,G=>{this._onResponse(G)}),T.once("error",G=>{var q;T.destroy(),(q=T.res)===null||q===void 0||q.removeAllListeners("end"),G=G instanceof P.TimeoutError?new kn(G,this.timings,this):new fe(G.message,G,this),this._beforeError(G)}),this[ss]=L.default(T,this,Yu),this[V]=T,this.emit("uploadProgress",this.uploadProgress);const w=this[Ze],F=this.redirects.length===0?this:T;E.default.nodeStream(w)?(w.pipe(F),w.once("error",G=>{this._beforeError(new Pn(G,this))})):(this._unlockWrite(),E.default.undefined(w)?(this._cannotHaveBody||this._noPipe)&&(F.end(),this._lockWrite()):(this._writeRequest(w,void 0,()=>{}),F.end(),this._lockWrite())),this.emit("request",T)}async _createCacheableRequest(T,d){return new Promise((B,Y)=>{Object.assign(d,J.default(T)),delete d.url;let k;const w=js.get(d.cache)(d,async F=>{F._readableState.autoDestroy=!1,k&&(await k).emit("cacheableResponse",F),B(F)});d.url=T,w.once("error",Y),w.once("request",async F=>{k=F,B(k)})})}async _makeRequest(){var T,d,B,Y,k;const{options:w}=this,{headers:F}=w;for(const $ in F)if(E.default.undefined(F[$]))delete F[$];else if(E.default.null_(F[$]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${$}\` header`);if(w.decompress&&E.default.undefined(F["accept-encoding"])&&(F["accept-encoding"]=Fu?"gzip, deflate, br":"gzip, deflate"),w.cookieJar){const $=await w.cookieJar.getCookieString(w.url.toString());E.default.nonEmptyString($)&&(w.headers.cookie=$)}for(const $ of w.hooks.beforeRequest){const ft=await $(w);if(!E.default.undefined(ft)){w.request=()=>ft;break}}w.body&&this[Ze]!==w.body&&(this[Ze]=w.body);const{agent:G,request:q,timeout:_e,url:Ie}=w;if(w.dnsCache&&!("lookup"in w)&&(w.lookup=w.dnsCache.lookup),Ie.hostname==="unix"){const $=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Ie.pathname}${Ie.search}`);if($!=null&&$.groups){const{socketPath:ft,path:Wu}=$.groups;Object.assign(w,{socketPath:ft,path:Wu,host:""})}}const Ue=Ie.protocol==="https:";let K;w.http2?K=A.auto:K=Ue?c.request:a.request;const oe=(T=w.request)!==null&&T!==void 0?T:K,le=w.cache?this._createCacheableRequest:oe;G&&!w.http2&&(w.agent=G[Ue?"https":"http"]),w[V]=oe,delete w.request,delete w.timeout;const ee=w;if(ee.shared=(d=w.cacheOptions)===null||d===void 0?void 0:d.shared,ee.cacheHeuristic=(B=w.cacheOptions)===null||B===void 0?void 0:B.cacheHeuristic,ee.immutableMinTimeToLive=(Y=w.cacheOptions)===null||Y===void 0?void 0:Y.immutableMinTimeToLive,ee.ignoreCargoCult=(k=w.cacheOptions)===null||k===void 0?void 0:k.ignoreCargoCult,w.dnsLookupIpVersion!==void 0)try{ee.family=S.dnsLookupIpVersionToFamily(w.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}w.https&&("rejectUnauthorized"in w.https&&(ee.rejectUnauthorized=w.https.rejectUnauthorized),w.https.checkServerIdentity&&(ee.checkServerIdentity=w.https.checkServerIdentity),w.https.certificateAuthority&&(ee.ca=w.https.certificateAuthority),w.https.certificate&&(ee.cert=w.https.certificate),w.https.key&&(ee.key=w.https.key),w.https.passphrase&&(ee.passphrase=w.https.passphrase),w.https.pfx&&(ee.pfx=w.https.pfx));try{let $=await le(Ie,ee);E.default.undefined($)&&($=K(Ie,ee)),w.request=q,w.timeout=_e,w.agent=G,w.https&&("rejectUnauthorized"in w.https&&delete ee.rejectUnauthorized,w.https.checkServerIdentity&&delete ee.checkServerIdentity,w.https.certificateAuthority&&delete ee.ca,w.https.certificate&&delete ee.cert,w.https.key&&delete ee.key,w.https.passphrase&&delete ee.passphrase,w.https.pfx&&delete ee.pfx),Hu($)?this._onRequest($):this.writable?(this.once("finish",()=>{this._onResponse($)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse($)}catch($){throw $ instanceof p.CacheError?new xn($,this):new fe($.message,$,this)}}async _error(T){try{for(const d of this.options.hooks.beforeError)T=await d(T)}catch(d){T=new fe(d.message,d,this)}this.destroy(T)}_beforeError(T){if(this[dt])return;const{options:d}=this,B=this.retryCount+1;this[dt]=!0,T instanceof fe||(T=new fe(T.message,T,this));const Y=T,{response:k}=Y;(async()=>{if(k&&!k.body){k.setEncoding(this._readableState.encoding);try{k.rawBody=await o.default(k),k.body=k.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let w;try{let F;k&&"retry-after"in k.headers&&(F=Number(k.headers["retry-after"]),Number.isNaN(F)?(F=Date.parse(k.headers["retry-after"])-Date.now(),F<=0&&(F=1)):F*=1e3),w=await d.retry.calculateDelay({attemptCount:B,retryOptions:d.retry,error:Y,retryAfter:F,computedValue:se.default({attemptCount:B,retryOptions:d.retry,error:Y,retryAfter:F,computedValue:0})})}catch(F){this._error(new fe(F.message,F,this));return}if(w){const F=async()=>{try{for(const G of this.options.hooks.beforeRetry)await G(this.options,Y,B)}catch(G){this._error(new fe(G.message,T,this));return}this.destroyed||(this.destroy(),this.emit("retry",B,T))};this[Bn]=setTimeout(F,w);return}}this._error(Y)})()}_read(){this[ns]=!0;const T=this[ce];if(T&&!this[dt]){T.readableLength&&(this[ns]=!1);let d;for(;(d=T.read())!==null;){this[Je]+=d.length,this[rs]=!0;const B=this.downloadProgress;B.percent<1&&this.emit("downloadProgress",B),this.push(d)}}}_write(T,d,B){const Y=()=>{this._writeRequest(T,d,B)};this.requestInitialized?Y():this[St].push(Y)}_writeRequest(T,d,B){this[V].destroyed||(this._progressCallbacks.push(()=>{this[De]+=Buffer.byteLength(T,d);const Y=this.uploadProgress;Y.percent<1&&this.emit("uploadProgress",Y)}),this[V].write(T,d,Y=>{!Y&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),B(Y)}))}_final(T){const d=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(V in this)){T();return}if(this[V].destroyed){T();return}this[V].end(B=>{B||(this[we]=this[De],this.emit("uploadProgress",this.uploadProgress),this[V].emit("upload-complete")),T(B)})};this.requestInitialized?d():this[St].push(d)}_destroy(T,d){var B;this[dt]=!0,clearTimeout(this[Bn]),V in this&&(this[rt](),!((B=this[ce])===null||B===void 0)&&B.complete||this[V].destroy()),T!==null&&!E.default.undefined(T)&&!(T instanceof fe)&&(T=new fe(T.message,T,this)),d(T)}get _isAboutToError(){return this[dt]}get ip(){var T;return(T=this.socket)===null||T===void 0?void 0:T.remoteAddress}get aborted(){var T,d,B;return((d=(T=this[V])===null||T===void 0?void 0:T.destroyed)!==null&&d!==void 0?d:this.destroyed)&&!(!((B=this[On])===null||B===void 0)&&B.complete)}get socket(){var T,d;return(d=(T=this[V])===null||T===void 0?void 0:T.socket)!==null&&d!==void 0?d:void 0}get downloadProgress(){let T;return this[Ee]?T=this[Je]/this[Ee]:this[Ee]===this[Je]?T=1:T=0,{percent:T,transferred:this[Je],total:this[Ee]}}get uploadProgress(){let T;return this[we]?T=this[De]/this[we]:this[we]===this[De]?T=1:T=0,{percent:T,transferred:this[De],total:this[we]}}get timings(){var T;return(T=this[V])===null||T===void 0?void 0:T.timings}get isFromCache(){return this[je]}pipe(T,d){if(this[rs])throw new Error("Failed to pipe. The response has been emitted already.");return T instanceof u.ServerResponse&&this[lt].add(T),super.pipe(T,d)}unpipe(T){return T instanceof u.ServerResponse&&this[lt].delete(T),super.unpipe(T),this}}e.default=Mn})(Kt);(function(e){var t=Te&&Te.__createBinding||(Object.create?function(u,c,h,f){f===void 0&&(f=h),Object.defineProperty(u,f,{enumerable:!0,get:function(){return c[h]}})}:function(u,c,h,f){f===void 0&&(f=h),u[f]=c[h]}),s=Te&&Te.__exportStar||function(u,c){for(var h in u)h!=="default"&&!Object.prototype.hasOwnProperty.call(c,h)&&t(c,u,h)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;const r=Kt;class n extends r.RequestError{constructor(c,h){const{options:f}=h.request;super(`${c.message} in "${f.url.toString()}"`,c,h.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}}e.ParseError=n;class a extends r.RequestError{constructor(c){super("Promise was canceled",{},c),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}}e.CancelError=a,s(Kt,e)})(Gt);var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});const Yi=Gt,qm=(e,t,s,r)=>{const{rawBody:n}=e;try{if(t==="text")return n.toString(r);if(t==="json")return n.length===0?"":s(n.toString());if(t==="buffer")return n;throw new Yi.ParseError({message:`Unknown body type '${t}'`,name:"Error"},e)}catch(a){throw new Yi.ParseError(a,e)}};Nn.default=qm;(function(e){var t=Te&&Te.__createBinding||(Object.create?function(E,x,D,L){L===void 0&&(L=D),Object.defineProperty(E,L,{enumerable:!0,get:function(){return x[D]}})}:function(E,x,D,L){L===void 0&&(L=D),E[L]=x[D]}),s=Te&&Te.__exportStar||function(E,x){for(var D in E)D!=="default"&&!Object.prototype.hasOwnProperty.call(x,D)&&t(x,E,D)};Object.defineProperty(e,"__esModule",{value:!0});const r=Os,n=st,a=p0,u=Gt,c=Nn,h=Kt,f=qs,p=Js,b=es,A=["request","response","redirect","uploadProgress","downloadProgress"];function I(E){let x,D;const L=new r.EventEmitter,P=new a((v,y,o)=>{const S=H=>{const M=new h.default(void 0,E);M.retryCount=H,M._noPipe=!0,o(()=>M.destroy()),o.shouldReject=!1,o(()=>y(new u.CancelError(M))),x=M,M.once("response",async Z=>{var V;if(Z.retryCount=H,Z.request.aborted)return;let ce;try{ce=await p.default(M),Z.rawBody=ce}catch{return}if(M._isAboutToError)return;const Ee=((V=Z.headers["content-encoding"])!==null&&V!==void 0?V:"").toLowerCase(),Je=["gzip","deflate","br"].includes(Ee),{options:we}=M;if(Je&&!we.decompress)Z.body=ce;else try{Z.body=c.default(Z,we.responseType,we.parseJson,we.encoding)}catch(De){if(Z.body=ce.toString(),b.isResponseOk(Z)){M._beforeError(De);return}}try{for(const[De,lt]of we.hooks.afterResponse.entries())Z=await lt(Z,async ss=>{const je=h.default.normalizeArguments(void 0,{...ss,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},we);je.hooks.afterResponse=je.hooks.afterResponse.slice(0,De);for(const rs of je.hooks.beforeRetry)await rs(je);const rt=I(je);return o(()=>{rt.catch(()=>{}),rt.cancel()}),rt})}catch(De){M._beforeError(new u.RequestError(De.message,De,M));return}if(D=Z,!b.isResponseOk(Z)){M._beforeError(new u.HTTPError(Z));return}M.destroy(),v(M.options.resolveBodyOnly?Z.body:Z)});const ie=Z=>{if(P.isCanceled)return;const{options:V}=M;if(Z instanceof u.HTTPError&&!V.throwHttpErrors){const{response:ce}=Z;v(M.options.resolveBodyOnly?ce.body:ce);return}y(Z)};M.once("error",ie);const se=M.options.body;M.once("retry",(Z,V)=>{var ce,Ee;if(se===((ce=V.request)===null||ce===void 0?void 0:ce.options.body)&&n.default.nodeStream((Ee=V.request)===null||Ee===void 0?void 0:Ee.options.body)){ie(V);return}S(Z)}),f.default(M,L,A)};S(0)});P.on=(v,y)=>(L.on(v,y),P);const J=v=>{const y=(async()=>{await P;const{options:o}=D.request;return c.default(D,v,o.parseJson,o.encoding)})();return Object.defineProperties(y,Object.getOwnPropertyDescriptors(P)),y};return P.json=()=>{const{headers:v}=x.options;return!x.writableFinished&&v.accept===void 0&&(v.accept="application/json"),J("json")},P.buffer=()=>J("buffer"),P.text=()=>J("text"),P}e.default=I,s(Gt,e)})(ln);var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});const Jm=Gt;function jm(e,...t){const s=(async()=>{if(e instanceof Jm.RequestError)try{for(const n of t)if(n)for(const a of n)e=await a(e)}catch(n){e=n}throw e})(),r=()=>s;return s.json=r,s.text=r,s.buffer=r,s.on=r,s}Dn.default=jm;var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0});const Wi=st;function Pu(e){for(const t of Object.values(e))(Wi.default.plainObject(t)||Wi.default.array(t))&&Pu(t);return Object.freeze(e)}Rn.default=Pu;var gr={},Gi;function Zm(){return Gi||(Gi=1,Object.defineProperty(gr,"__esModule",{value:!0})),gr}(function(e){var t=Te&&Te.__createBinding||(Object.create?function(L,P,J,v){v===void 0&&(v=J),Object.defineProperty(L,v,{enumerable:!0,get:function(){return P[J]}})}:function(L,P,J,v){v===void 0&&(v=J),L[v]=P[J]}),s=Te&&Te.__exportStar||function(L,P){for(var J in L)J!=="default"&&!Object.prototype.hasOwnProperty.call(P,J)&&t(P,L,J)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;const r=st,n=ln,a=Dn,u=Kt,c=Rn,h={RequestError:n.RequestError,CacheError:n.CacheError,ReadError:n.ReadError,HTTPError:n.HTTPError,MaxRedirectsError:n.MaxRedirectsError,TimeoutError:n.TimeoutError,ParseError:n.ParseError,CancelError:n.CancelError,UnsupportedProtocolError:n.UnsupportedProtocolError,UploadError:n.UploadError},f=async L=>new Promise(P=>{setTimeout(P,L)}),{normalizeArguments:p}=u.default,b=(...L)=>{let P;for(const J of L)P=p(void 0,J,P);return P},A=L=>L.isStream?new u.default(void 0,L):n.default(L),I=L=>"defaults"in L&&"options"in L.defaults,E=["get","post","put","patch","head","delete"];e.defaultHandler=(L,P)=>P(L);const x=(L,P)=>{if(L)for(const J of L)J(P)},D=L=>{L._rawHandlers=L.handlers,L.handlers=L.handlers.map(v=>(y,o)=>{let S;const H=v(y,M=>(S=o(M),S));if(H!==S&&!y.isStream&&S){const M=H,{then:ie,catch:se,finally:Z}=M;Object.setPrototypeOf(M,Object.getPrototypeOf(S)),Object.defineProperties(M,Object.getOwnPropertyDescriptors(S)),M.then=ie,M.catch=se,M.finally=Z}return H});const P=(v,y={},o)=>{var S,H;let M=0;const ie=se=>L.handlers[M++](se,M===L.handlers.length?A:ie);if(r.default.plainObject(v)){const se={...v,...y};u.setNonEnumerableProperties([v,y],se),y=se,v=void 0}try{let se;try{x(L.options.hooks.init,y),x((S=y.hooks)===null||S===void 0?void 0:S.init,y)}catch(V){se=V}const Z=p(v,y,o??L.options);if(Z[u.kIsNormalizedAlready]=!0,se)throw new n.RequestError(se.message,se,Z);return ie(Z)}catch(se){if(y.isStream)throw se;return a.default(se,L.options.hooks.beforeError,(H=y.hooks)===null||H===void 0?void 0:H.beforeError)}};P.extend=(...v)=>{const y=[L.options];let o=[...L._rawHandlers],S;for(const H of v)I(H)?(y.push(H.defaults.options),o.push(...H.defaults._rawHandlers),S=H.defaults.mutableDefaults):(y.push(H),"handlers"in H&&o.push(...H.handlers),S=H.mutableDefaults);return o=o.filter(H=>H!==e.defaultHandler),o.length===0&&o.push(e.defaultHandler),D({options:b(...y),handlers:o,mutableDefaults:!!S})};const J=async function*(v,y){let o=p(v,y,L.options);o.resolveBodyOnly=!1;const S=o.pagination;if(!r.default.object(S))throw new TypeError("`options.pagination` must be implemented");const H=[];let{countLimit:M}=S,ie=0;for(;ie<S.requestLimit;){ie!==0&&await f(S.backoff);const se=await P(void 0,void 0,o),Z=await S.transform(se),V=[];for(const Ee of Z)if(S.filter(Ee,H,V)&&(!S.shouldContinue(Ee,H,V)||(yield Ee,S.stackAllItems&&H.push(Ee),V.push(Ee),--M<=0)))return;const ce=S.paginate(se,H,V);if(ce===!1)return;ce===se.request.options?o=se.request.options:ce!==void 0&&(o=p(void 0,ce,o)),ie++}};P.paginate=J,P.paginate.all=async(v,y)=>{const o=[];for await(const S of J(v,y))o.push(S);return o},P.paginate.each=J,P.stream=(v,y)=>P(v,{...y,isStream:!0});for(const v of E)P[v]=(y,o)=>P(y,{...o,method:v}),P.stream[v]=(y,o)=>P(y,{...o,method:v,isStream:!0});return Object.assign(P,h),Object.defineProperty(P,"defaults",{value:L.mutableDefaults?L:c.default(L),writable:L.mutableDefaults,configurable:L.mutableDefaults,enumerable:!0}),P.mergeOptions=b,P};e.default=D,s(Zm(),e)})(kr);(function(e,t){var s=Te&&Te.__createBinding||(Object.create?function(h,f,p,b){b===void 0&&(b=p),Object.defineProperty(h,b,{enumerable:!0,get:function(){return f[p]}})}:function(h,f,p,b){b===void 0&&(b=p),h[b]=f[p]}),r=Te&&Te.__exportStar||function(h,f){for(var p in h)p!=="default"&&!Object.prototype.hasOwnProperty.call(f,p)&&s(f,h,p)};Object.defineProperty(t,"__esModule",{value:!0});const n=Rs,a=kr,u={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:h})=>h},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:h=>h.request.options.responseType==="json"?h.body:JSON.parse(h.body),paginate:h=>{if(!Reflect.has(h.headers,"link"))return!1;const f=h.headers.link.split(",");let p;for(const b of f){const A=b.split(";");if(A[1].includes("next")){p=A[0].trimStart().trim(),p=p.slice(1,-1);break}}return p?{url:new n.URL(p)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:h=>JSON.parse(h),stringifyJson:h=>JSON.stringify(h),cacheOptions:{}},handlers:[a.defaultHandler],mutableDefaults:!1},c=a.default(u);t.default=c,e.exports=c,e.exports.default=c,e.exports.__esModule=!0,r(kr,t),r(ln,t)})(Pr,Pr.exports);var Vm=Pr.exports;const ku=Ta(Vm),Xm={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64)",Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",Referer:"https://www.bizhihui.com/"};async function Ki(e,t=1e4){const s=await ku(e,{headers:Xm,timeout:{request:t},followRedirect:!1,throwHttpErrors:!1});return{status:s.statusCode,body:s.body}}function zm(e){const t=mu(e),s=[],r=new Set;return t("a[href]").each((n,a)=>{const u=t(a).attr("href")||"";if(!/\.html(\?|$)/i.test(u))return;const c=u.toLowerCase();if(c.includes("/about")||c.includes("/contact"))return;let h=u;/^https?:\/\//i.test(u)||(h=`https://www.bizhihui.com${u.startsWith("/")?"":"/"}${u}`);let f="";const p=t(a).find("img").first();if(p.length){const b=p.attr("data-original")||p.attr("data-src")||p.attr("data-lazy-src")||p.attr("src")||"";b&&!/^data:/i.test(b)&&(f=/^https?:\/\//i.test(b)?b:`https://www.bizhihui.com${b.startsWith("/")?"":"/"}${b}`)}!f||r.has(h)||(r.add(h),s.push({thumb:f,detail:h}))}),s}function $m(e,t){const s=mu(e),r=[],n=new Set;function a(c){try{return/^https?:\/\//i.test(c)?c:c.startsWith("//")?"https:"+c:new URL(c,t).toString()}catch{return c}}function u(c,h){const f=a(c);n.has(f)||/(logo|favicon|sprite|banner|header|footer|watermark|placeholder)/i.test(f)||(n.add(f),r.push({label:h,url:f}))}return s("a[href]").each((c,h)=>{const f=s(h).attr("href")||"";if(!/\.(jpe?g|png|webp|gif|bmp)(?:$|[?#])/i.test(f))return;const b=s(h).text().trim().match(/[((]\s*(\d+)\s*[x×]\s*(\d+)\s*[))]/);if(b){const I=`${b[1]}×${b[2]}`;u(f,I);return}const A=f.match(/w_(\d+),h_(\d+)/);if(A){const I=`${A[1]}×${A[2]}`;u(f,I);return}}),r.length===0&&s("img").each((c,h)=>{const f=s(h);for(const p of["data-original","data-src","data-zoom","data-full","src"]){const b=f.attr(p);if(b&&/\.(jpe?g|png|webp|gif)/i.test(b)&&!/thumb|small|preview|arthumbs|pcthumbs/i.test(b)){u(b,"Original");break}}}),r}async function qi(e){return ku(e,{headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64)",Referer:"https://www.bizhihui.com/"},timeout:{request:6e4},responseType:"buffer"}).buffer()}function Ji(e){return new Promise((t,s)=>{qu.exec(e,(r,n)=>{if(r)return s(r);t(n)})})}async function eE(e){const t=process.platform;if(t==="darwin"){await hs.promises.access(e);const n=`osascript -e "${`tell application "System Events" to tell every desktop to set picture to POSIX file "${e.replace(/\\/g,"/")}"`.replace(/"/g,'\\"')}"`;await Ji(n)}else if(t==="win32"){const s=br.join(process.env.APPDATA||"","Microsoft","Windows","Themes","TranscodedWallpaper.jpg");await hs.promises.mkdir(br.dirname(s),{recursive:!0}),await hs.promises.copyFile(e,s);const n=`[void][System.Runtime.InteropServices.Marshal]; Add-Type -MemberDefinition '[DllImport("user32.dll")] public static extern bool SystemParametersInfo(int a,int b,string c,int d);' -Name W -Namespace W; [W.W]::SystemParametersInfo(20,0,'${(a=>a.replace(/'/g,"''"))(s)}',3)`;await Ji(`powershell -NoProfile -NonInteractive -Command "${n.replace(/"/g,'\\"')}"`)}else throw new Error("setWallpaper not supported on platform: "+t)}const tE={async search(e,t=1){const s=e.trim(),r=s?`https://www.bizhihui.com/search.php?q=${encodeURIComponent(s)}&page=${t}`:`https://www.bizhihui.com/page/${t}/`,n=await Ki(r);if(n.status!==200)throw new Error("fetch failed: "+n.status);return zm(n.body)},async getOriginalUrls(e){const t=await Ki(e);if(t.status!==200)throw new Error("fetch failed: "+t.status);const s=$m(t.body,e);if(!s.length)throw new Error("no image found");return s},async getThumbLocal(e){const t=await qi(e);return`data:${e.match(/\.png($|[?#])/i)?"image/png":"image/jpeg"};base64,${t.toString("base64")}`},async fetchImageBase64(e){return(await qi(e)).toString("base64")},async setWallpaper(e){const t=Buffer.from(e,"base64"),s=br.join(Ku.tmpdir(),`tinker-wallpaper-${Date.now()}.jpg`);await hs.promises.writeFile(s,t),await eE(s)}};Gu.contextBridge.exposeInMainWorld("wallpaper",tE);
|
|
6
|
+
)`,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])"},Bs={};function gi(e,t){return e===B.falseFunc?B.falseFunc:u=>t.isTag(u)&&e(u)}function Os(e,t){const u=t.getSiblings(e);if(u.length<=1)return[];const s=u.indexOf(e);return s<0||s===u.length-1?[]:u.slice(s+1).filter(t.isTag)}function Wt(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}}const xt=(e,t,u,s,n)=>{const i=n(t,Wt(u),s);return i===B.trueFunc?e:i===B.falseFunc?B.falseFunc:r=>i(r)&&e(r)},Ft={is:xt,matches:xt,where:xt,not(e,t,u,s,n){const i=n(t,Wt(u),s);return i===B.falseFunc?e:i===B.trueFunc?B.falseFunc:r=>!i(r)&&e(r)},has(e,t,u,s,n){const{adapter:i}=u,r=Wt(u);r.relativeSelector=!0;const h=t.some(T=>T.some(ou))?[Bs]:void 0,d=n(t,r,h);if(d===B.falseFunc)return B.falseFunc;const l=gi(d,i);if(h&&d!==B.trueFunc){const{shouldTestNextSiblings:T=!1}=d;return I=>{if(!e(I))return!1;h[0]=I;const C=i.getChildren(I),p=T?[...C,...Os(I,i)]:C;return i.existsOne(l,p)}}return T=>e(T)&&i.existsOne(l,i.getChildren(T))}};function mi(e,t,u,s,n){var i;const{name:r,data:h}=t;if(Array.isArray(h)){if(!(r in Ft))throw new Error(`Unknown pseudo-class :${r}(${h})`);return Ft[r](e,h,u,s,n)}const d=(i=u.pseudos)===null||i===void 0?void 0:i[r],l=typeof d=="string"?d:Ti[r];if(typeof l=="string"){if(h!=null)throw new Error(`Pseudo ${r} doesn't have any arguments`);const T=It(l);return Ft.is(e,T,u,s,n)}if(typeof d=="function")return Uu(d,r,h,1),T=>d(T,h)&&e(T);if(r in Gt)return Gt[r](e,h,u,s);if(r in Hu){const T=Hu[r];return Uu(T,r,h,2),I=>T(I,u,h)&&e(I)}throw new Error(`Unknown pseudo-class :${r}`)}function wt(e,t){const u=t.getParent(e);return u&&t.isTag(u)?u:null}function bi(e,t,u,s,n){const{adapter:i,equals:r}=u;switch(t.type){case N.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case N.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case N.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()),hi[t.action](e,t,u)}case N.Pseudo:return mi(e,t,u,s,n);case N.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:h}=t;return(!u.xmlMode||u.lowerCaseTags)&&(h=h.toLowerCase()),function(l){return i.getName(l)===h&&e(l)}}case N.Descendant:{if(u.cacheResults===!1||typeof WeakSet>"u")return function(l){let T=l;for(;T=wt(T,i);)if(e(T))return!0;return!1};const h=new WeakSet;return function(l){let T=l;for(;T=wt(T,i);)if(!h.has(T)){if(i.isTag(T)&&e(T))return!0;h.add(T)}return!1}}case"_flexibleDescendant":return function(d){let l=d;do if(e(l))return!0;while(l=wt(l,i));return!1};case N.Parent:return function(d){return i.getChildren(d).some(l=>i.isTag(l)&&e(l))};case N.Child:return function(d){const l=i.getParent(d);return l!=null&&i.isTag(l)&&e(l)};case N.Sibling:return function(d){const l=i.getSiblings(d);for(let T=0;T<l.length;T++){const I=l[T];if(r(d,I))break;if(i.isTag(I)&&e(I))return!0}return!1};case N.Adjacent:return i.prevElementSibling?function(d){const l=i.prevElementSibling(d);return l!=null&&e(l)}:function(d){const l=i.getSiblings(d);let T;for(let I=0;I<l.length;I++){const C=l[I];if(r(d,C))break;i.isTag(C)&&(T=C)}return!!T&&e(T)};case N.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function Rs(e){return e.type===N.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(Rs)))}const Ii={type:N.Descendant},Ci={type:"_flexibleDescendant"},pi={type:N.Pseudo,name:"scope",data:null};function _i(e,{adapter:t},u){const s=!!(u!=null&&u.every(n=>{const i=t.isTag(n)&&t.getParent(n);return n===Bs||i&&t.isTag(i)}));for(const n of e){if(!(n.length>0&&ou(n[0])&&n[0].type!==N.Descendant))if(s&&!n.some(Rs))n.unshift(Ii);else continue;n.unshift(pi)}}function Ls(e,t,u){var s;e.forEach(Ai),u=(s=t.context)!==null&&s!==void 0?s:u;const n=Array.isArray(u),i=u&&(Array.isArray(u)?u:[u]);if(t.relativeSelector!==!1)_i(e,t,i);else if(e.some(d=>d.length>0&&ou(d[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let r=!1;const h=e.map(d=>{if(d.length>=2){const[l,T]=d;l.type!==N.Pseudo||l.name!=="scope"||(n&&T.type===N.Descendant?d[1]=Ci:(T.type===N.Adjacent||T.type===N.Sibling)&&(r=!0))}return Ni(d,t,i)}).reduce(Si,B.falseFunc);return h.shouldTestNextSiblings=r,h}function Ni(e,t,u){var s;return e.reduce((n,i)=>n===B.falseFunc?B.falseFunc:bi(n,i,t,u,Ls),(s=t.rootFunc)!==null&&s!==void 0?s:B.trueFunc)}function Si(e,t){return t===B.falseFunc||e===B.trueFunc?e:e===B.falseFunc||t===B.trueFunc?t:function(s){return e(s)||t(s)}}const ys=(e,t)=>e===t,Di={adapter:bt,equals:ys};function Bi(e){var t,u,s,n;const i=e??Di;return(t=i.adapter)!==null&&t!==void 0||(i.adapter=bt),(u=i.equals)!==null&&u!==void 0||(i.equals=(n=(s=i.adapter)===null||s===void 0?void 0:s.equals)!==null&&n!==void 0?n:ys),i}function Oi(e){return function(u,s,n){const i=Bi(s);return e(u,i,n)}}const hu=Oi(Ls);function xs(e,t,u=!1){return u&&(e=Ri(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function Ri(e,t){const u=Array.isArray(e)?e.slice(0):[e],s=u.length;for(let n=0;n<s;n++){const i=Os(u[n],t);u.push(...i)}return u}const Li=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function ot(e){return e.type!=="pseudo"?!1:Li.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(ot)):!1}function yi(e,t,u){const s=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(s)?s>=0?s+1:1/0:0;case"lt":return isFinite(s)?s>=0?Math.min(s,u):1/0:0;case"gt":return isFinite(s)?1/0:0;case"odd":return 2*u;case"even":return 2*u-1;case"last":case"not":return 1/0}}function xi(e){for(;e.parent;)e=e.parent;return e}function du(e){const t=[],u=[];for(const s of e)s.some(ot)?t.push(s):u.push(s);return[u,t]}const Fi={type:N.Universal,namespace:null},wi={type:N.Pseudo,name:"scope",data:null};function Fs(e,t,u={}){return ws([e],t,u)}function ws(e,t,u={}){if(typeof t=="function")return e.some(t);const[s,n]=du(It(t));return s.length>0&&e.some(hu(s,u))||n.some(i=>ks(i,e,u).length>0)}function Mi(e,t,u,s){const n=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(n)&&Math.abs(n)<t.length?[n<0?t[t.length+n]:t[n]]:[];case"gt":return isFinite(n)?t.slice(n+1):[];case"even":return t.filter((i,r)=>r%2===0);case"odd":return t.filter((i,r)=>r%2===1);case"not":{const i=new Set(Ps(u,t,s));return t.filter(r=>!i.has(r))}}}function Ms(e,t,u={}){return Ps(It(e),t,u)}function Ps(e,t,u){if(t.length===0)return[];const[s,n]=du(e);let i;if(s.length){const r=Zt(t,s,u);if(n.length===0)return r;r.length&&(i=new Set(r))}for(let r=0;r<n.length&&(i==null?void 0:i.size)!==t.length;r++){const h=n[r];if((i?t.filter(T=>D(T)&&!i.has(T)):t).length===0)break;const l=ks(h,t,u);if(l.length)if(i)l.forEach(T=>i.add(T));else{if(r===n.length-1)return l;i=new Set(l)}}return typeof i<"u"?i.size===t.length?t:t.filter(r=>i.has(r)):[]}function ks(e,t,u){var s;if(e.some(Fe)){const n=(s=u.root)!==null&&s!==void 0?s:xi(t[0]),i={...u,context:t,relativeSelector:!1};return e.push(wi),ht(n,e,i,!0,t.length)}return ht(t,e,u,!1,t.length)}function Pi(e,t,u={},s=1/0){if(typeof e=="function")return Hs(t,e);const[n,i]=du(It(e)),r=i.map(h=>ht(t,h,u,!0,s));return n.length&&r.push(Jt(t,n,u,s)),r.length===0?[]:r.length===1?r[0]:Se(r.reduce((h,d)=>[...h,...d]))}function ht(e,t,u,s,n){const i=t.findIndex(ot),r=t.slice(0,i),h=t[i],d=t.length-1===i?n:1/0,l=yi(h.name,h.data,d);if(l===0)return[];const I=(r.length===0&&!Array.isArray(e)?mt(e).filter(D):r.length===0?(Array.isArray(e)?e:[e]).filter(D):s||r.some(Fe)?Jt(e,[r],u,l):Zt(e,[r],u)).slice(0,l);let C=Mi(h.name,I,h.data,u);if(C.length===0||t.length===i+1)return C;const p=t.slice(i+1),S=p.some(Fe);if(S){if(Fe(p[0])){const{type:P}=p[0];(P===N.Sibling||P===N.Adjacent)&&(C=xs(C,bt,!0)),p.unshift(Fi)}u={...u,relativeSelector:!1,rootFunc:P=>C.includes(P)}}else u.rootFunc&&u.rootFunc!==ct.trueFunc&&(u={...u,rootFunc:ct.trueFunc});return p.some(ot)?ht(C,p,u,!1,n):S?Jt(C,[p],u,n):Zt(C,[p],u)}function Jt(e,t,u,s){const n=hu(t,u,e);return Hs(e,n,s)}function Hs(e,t,u=1/0){const s=xs(e,bt,t.shouldTestNextSiblings);return iu(n=>D(n)&&t(n),s,!0,u)}function Zt(e,t,u){const s=(Array.isArray(e)?e:[e]).filter(D);if(s.length===0)return s;const n=hu(t,u);return n===ct.trueFunc?s:s.filter(n)}const ki=/^\s*(?:[+~]|:scope\b)/;function Hi(e){if(!e)return this._make([]);if(typeof e!="string"){const t=se(e)?e.toArray():[e],u=this.toArray();return this._make(t.filter(s=>u.some(n=>gs(n,s))))}return this._findBySelector(e,Number.POSITIVE_INFINITY)}function Ui(e,t){var u;const s=this.toArray(),n=ki.test(e)?s:this.children().toArray(),i={context:s,root:(u=this._root)===null||u===void 0?void 0:u[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(Pi(e,n,i,t))}function lu(e){return function(t,...u){return function(s){var n;let i=e(t,this);return s&&(i=Tu(i,s,this.options.xmlMode,(n=this._root)===null||n===void 0?void 0:n[0])),this._make(this.length>1&&i.length>1?u.reduce((r,h)=>h(r),i):i)}}}const Je=lu((e,t)=>{let u=[];for(let s=0;s<t.length;s++){const n=e(t[s]);n.length>0&&(u=u.concat(n))}return u}),fu=lu((e,t)=>{const u=[];for(let s=0;s<t.length;s++){const n=e(t[s]);n!==null&&u.push(n)}return u});function Eu(e,...t){let u=null;const s=lu((n,i)=>{const r=[];return F(i,h=>{for(let d;(d=n(h))&&!(u!=null&&u(d,r.length));h=d)r.push(d)}),r})(e,...t);return function(n,i){u=typeof n=="string"?h=>Fs(h,n,this.options):n?Ze(n):null;const r=s.call(this,i);return u=null,r}}function De(e){return e.length>1?Array.from(new Set(e)):e}const Qi=fu(({parent:e})=>e&&!Ae(e)?e:null,De),Yi=Je(e=>{const t=[];for(;e.parent&&!Ae(e.parent);)t.push(e.parent),e=e.parent;return t},Se,e=>e.reverse()),vi=Eu(({parent:e})=>e&&!Ae(e)?e:null,Se,e=>e.reverse());function Ki(e){var t;const u=[];if(!e)return this._make(u);const s={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},n=typeof e=="string"?i=>Fs(i,e,s):Ze(e);return F(this,i=>{for(i&&!Ae(i)&&!D(i)&&(i=i.parent);i&&D(i);){if(n(i,0)){u.includes(i)||u.push(i);break}i=i.parent}}),this._make(u)}const Gi=fu(e=>au(e)),Wi=Je(e=>{const t=[];for(;e.next;)e=e.next,D(e)&&t.push(e);return t},De),Ji=Eu(e=>au(e),De),Zi=fu(e=>nu(e)),Xi=Je(e=>{const t=[];for(;e.prev;)e=e.prev,D(e)&&t.push(e);return t},De),Vi=Eu(e=>nu(e),De),qi=Je(e=>hs(e).filter(t=>D(t)&&t!==e),Se),ji=Je(e=>mt(e).filter(D),De);function zi(){const e=this.toArray().reduce((t,u)=>w(u)?t.concat(u.children):t,[]);return this._make(e)}function $i(e){let t=0;const u=this.length;for(;t<u&&e.call(this[t],t,this[t])!==!1;)++t;return this}function er(e){let t=[];for(let u=0;u<this.length;u++){const s=this[u],n=e.call(s,u,s);n!=null&&(t=t.concat(n))}return this._make(t)}function Ze(e){return typeof e=="function"?(t,u)=>e.call(t,u,t):se(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function tr(e){var t;return this._make(Tu(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function Tu(e,t,u,s){return typeof t=="string"?Ms(t,e,{xmlMode:u,root:s}):e.filter(Ze(t))}function ur(e){const t=this.toArray();return typeof e=="string"?ws(t.filter(D),e,this.options):e?t.some(Ze(e)):!1}function sr(e){let t=this.toArray();if(typeof e=="string"){const u=new Set(Ms(e,t,this.options));t=t.filter(s=>!u.has(s))}else{const u=Ze(e);t=t.filter((s,n)=>!u(s,n))}return this._make(t)}function ar(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,u)=>this._make(u).find(e).length>0)}function nr(){return this.length>1?this._make(this[0]):this}function ir(){return this.length>0?this._make(this[this.length-1]):this}function rr(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 Ar(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function cr(){return Array.prototype.slice.call(this)}function or(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=se(e)?e[0]:e),Array.prototype.indexOf.call(t,u)}function hr(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function dr(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function lr(e,t){const u=this._make(e,t),s=Se([...this.get(),...u.get()]);return this._make(s)}function fr(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}const Er=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector:Ui,add:lr,addBack:fr,children:ji,closest:Ki,contents:zi,each:$i,end:dr,eq:rr,filter:tr,filterArray:Tu,find:Hi,first:nr,get:Ar,has:ar,index:or,is:ur,last:ir,map:er,next:Gi,nextAll:Wi,nextUntil:Ji,not:sr,parent:Qi,parents:Yi,parentsUntil:vi,prev:Zi,prevAll:Xi,prevUntil:Vi,siblings:qi,slice:hr,toArray:cr},Symbol.toStringTag,{value:"Module"}));function Tr(e){return function(u,s,n,i){if(typeof Buffer<"u"&&Buffer.isBuffer(u)&&(u=u.toString()),typeof u=="string")return e(u,s,n,i);const r=u;if(!Array.isArray(r)&&Ae(r))return r;const h=new fe([]);return Ee(r,h),h}}function Ee(e,t){const u=Array.isArray(e)?e:[e];t?t.children=u:t=null;for(let s=0;s<u.length;s++){const n=u[s];n.parent&&n.parent.children!==u&&Te(n),t?(n.prev=u[s-1]||null,n.next=u[s+1]||null):n.prev=n.next=null,n.parent=t}return t}function gr(e,t){if(e==null)return[];if(typeof e=="string")return this._parse(e,this.options,!1,null).children.slice(0);if("length"in e){if(e.length===1)return this._makeDomArray(e[0],t);const u=[];for(let s=0;s<e.length;s++){const n=e[s];if(typeof n=="object"){if(n==null)continue;if(!("length"in n)){u.push(t?Qe(n,!0):n);continue}}u.push(...this._makeDomArray(n,t))}return u}return[t?Qe(e,!0):e]}function Us(e){return function(...t){const u=this.length-1;return F(this,(s,n)=>{if(!w(s))return;const i=typeof t[0]=="function"?t[0].call(s,n,this._render(s.children)):t,r=this._makeDomArray(i,n<u);e(r,s.children,s)})}}function ce(e,t,u,s,n){var i,r;const h=[t,u,...s],d=t===0?null:e[t-1],l=t+u>=e.length?null:e[t+u];for(let T=0;T<s.length;++T){const I=s[T],C=I.parent;if(C){const S=C.children.indexOf(I);S!==-1&&(C.children.splice(S,1),n===C&&t>S&&h[0]--)}I.parent=n,I.prev&&(I.prev.next=(i=I.next)!==null&&i!==void 0?i:null),I.next&&(I.next.prev=(r=I.prev)!==null&&r!==void 0?r:null),I.prev=T===0?d:s[T-1],I.next=T===s.length-1?l:s[T+1]}return d&&(d.next=s[0]),l&&(l.prev=s[s.length-1]),e.splice(...h)}function mr(e){return(se(e)?e:this._make(e)).append(this),this}function br(e){return(se(e)?e:this._make(e)).prepend(this),this}const Ir=Us((e,t,u)=>{ce(t,t.length,0,e,u)}),Cr=Us((e,t,u)=>{ce(t,0,0,e,u)});function Qs(e){return function(t){const u=this.length-1,s=this.parents().last();for(let n=0;n<this.length;n++){const i=this[n],r=typeof t=="function"?t.call(i,n,i):typeof t=="string"&&!Yt(t)?s.find(t).clone():t,[h]=this._makeDomArray(r,n<u);if(!h||!w(h))continue;let d=h,l=0;for(;l<d.children.length;){const T=d.children[l];D(T)?(d=T,l=0):l++}e(i,d,[h])}return this}}const pr=Qs((e,t,u)=>{const{parent:s}=e;if(!s)return;const n=s.children,i=n.indexOf(e);Ee([e],t),ce(n,i,0,u,s)}),_r=Qs((e,t,u)=>{w(e)&&(Ee(e.children,t),Ee(u,e))});function Nr(e){return this.parent(e).not("body").each((t,u)=>{this._make(u).replaceWith(u.children)}),this}function Sr(e){const t=this[0];if(t){const u=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t);let s;for(let i=0;i<u.length;i++)u[i].type===Ht&&(s=u[i]);let n=0;for(;s&&n<s.children.length;){const i=s.children[n];i.type===Ht?(s=i,n=0):n++}s&&this._make(s).append(this)}return this}function Dr(...e){const t=this.length-1;return F(this,(u,s)=>{if(!w(u)||!u.parent)return;const n=u.parent.children,i=n.indexOf(u);if(i===-1)return;const r=typeof e[0]=="function"?e[0].call(u,s,this._render(u.children)):e,h=this._makeDomArray(r,s<t);ce(n,i+1,0,h,u.parent)})}function Br(e){typeof e=="string"&&(e=this._make(e)),this.remove();const t=[];for(const u of this._makeDomArray(e)){const s=this.clone().toArray(),{parent:n}=u;if(!n)continue;const i=n.children,r=i.indexOf(u);r!==-1&&(ce(i,r+1,0,s,n),t.push(...s))}return this._make(t)}function Or(...e){const t=this.length-1;return F(this,(u,s)=>{if(!w(u)||!u.parent)return;const n=u.parent.children,i=n.indexOf(u);if(i===-1)return;const r=typeof e[0]=="function"?e[0].call(u,s,this._render(u.children)):e,h=this._makeDomArray(r,s<t);ce(n,i,0,h,u.parent)})}function Rr(e){const t=this._make(e);this.remove();const u=[];return F(t,s=>{const n=this.clone().toArray(),{parent:i}=s;if(!i)return;const r=i.children,h=r.indexOf(s);h!==-1&&(ce(r,h,0,n,i),u.push(...n))}),this._make(u)}function Lr(e){const t=e?this.filter(e):this;return F(t,u=>{Te(u),u.prev=u.next=u.parent=null}),this}function yr(e){return F(this,(t,u)=>{const{parent:s}=t;if(!s)return;const n=s.children,i=typeof e=="function"?e.call(t,u,t):e,r=this._makeDomArray(i);Ee(r,null);const h=n.indexOf(t);ce(n,h,1,r,s),r.includes(t)||(t.parent=t.prev=t.next=null)})}function xr(){return F(this,e=>{if(w(e)){for(const t of e.children)t.next=t.prev=t.parent=null;e.children.length=0}})}function Fr(e){if(e===void 0){const t=this[0];return!t||!w(t)?null:this._render(t.children)}return F(this,t=>{if(!w(t))return;for(const s of t.children)s.next=s.prev=s.parent=null;const u=se(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;Ee(u,t)})}function wr(){return this._render(this)}function Mr(e){return e===void 0?Ye(this):typeof e=="function"?F(this,(t,u)=>this._make(t).text(e.call(t,u,Ye([t])))):F(this,t=>{if(!w(t))return;for(const s of t.children)s.next=s.prev=s.parent=null;const u=new Ue(`${e}`);Ee(u,t)})}function Pr(){const e=Array.prototype.map.call(this.get(),u=>Qe(u,!0)),t=new fe(e);for(const u of e)u.parent=t;return this._make(e)}const kr=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray:gr,after:Dr,append:Ir,appendTo:mr,before:Or,clone:Pr,empty:xr,html:Fr,insertAfter:Br,insertBefore:Rr,prepend:Cr,prependTo:br,remove:Lr,replaceWith:yr,text:Mr,toString:wr,unwrap:Nr,wrap:pr,wrapAll:Sr,wrapInner:_r},Symbol.toStringTag,{value:"Module"}));function Hr(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return F(this,(u,s)=>{D(u)&&Ys(u,e,t,s)});if(this.length!==0)return vs(this[0],e)}function Ys(e,t,u,s){if(typeof t=="string"){const n=vs(e),i=typeof u=="function"?u.call(e,s,n[t]):u;i===""?delete n[t]:i!=null&&(n[t]=i),e.attribs.style=Ur(n)}else if(typeof t=="object"){const n=Object.keys(t);for(let i=0;i<n.length;i++){const r=n[i];Ys(e,r,t[r],i)}}}function vs(e,t){if(!e||!D(e))return;const u=Qr(e.attribs.style);if(typeof t=="string")return u[t];if(Array.isArray(t)){const s={};for(const n of t)u[n]!=null&&(s[n]=u[n]);return s}return u}function Ur(e){return Object.keys(e).reduce((t,u)=>`${t}${t?" ":""}${u}: ${e[u]};`,"")}function Qr(e){if(e=(e||"").trim(),!e)return{};const t={};let u;for(const s of e.split(";")){const n=s.indexOf(":");if(n<1||n===s.length-1){const i=s.trimEnd();i.length>0&&u!==void 0&&(t[u]+=`;${i}`)}else u=s.slice(0,n).trim(),t[u]=s.slice(n+1).trim()}return t}const Yr=Object.freeze(Object.defineProperty({__proto__:null,css:Hr},Symbol.toStringTag,{value:"Module"})),Qu="input,select,textarea,keygen",vr=/%20/g,Yu=/\r?\n/g;function Kr(){return this.serializeArray().map(u=>`${encodeURIComponent(u.name)}=${encodeURIComponent(u.value)}`).join("&").replace(vr,"+")}function Gr(){return this.map((e,t)=>{const u=this._make(t);return D(t)&&t.name==="form"?u.find(Qu).toArray():u.filter(Qu).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var u;const s=this._make(t),n=s.attr("name"),i=(u=s.val())!==null&&u!==void 0?u:"";return Array.isArray(i)?i.map(r=>({name:n,value:r.replace(Yu,`\r
|
|
7
|
+
`)})):{name:n,value:i.replace(Yu,`\r
|
|
8
|
+
`)}}).toArray()}const Wr=Object.freeze(Object.defineProperty({__proto__:null,serialize:Kr,serializeArray:Gr},Symbol.toStringTag,{value:"Module"}));function Jr(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function Zr(e){const t={};for(const u in e){const s=e[u],n=Array.isArray(s),{selector:i,value:r}=Jr(n?s[0]:s),h=typeof r=="function"?r:typeof r=="string"?d=>this._make(d).prop(r):d=>this._make(d).extract(r);if(n)t[u]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((d,l)=>h(l,u,t)).get();else{const d=this._findBySelector(i,1);t[u]=d.length>0?h(d[0],u,t):void 0}}return t}const Xr=Object.freeze(Object.defineProperty({__proto__:null,extract:Zr},Symbol.toStringTag,{value:"Module"}));class Xe{constructor(t,u,s){if(this.length=0,this.options=s,this._root=u,t){for(let n=0;n<t.length;n++)this[n]=t[n];this.length=t.length}}}Xe.prototype.cheerio="[cheerio object]";Xe.prototype.splice=Array.prototype.splice;Xe.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Xe.prototype,ei,Er,kr,Yr,Wr,Xr);function Vr(e,t){return function u(s,n,i=!0){if(s==null)throw new Error("cheerio.load() expects a string");const r=Qt(n),h=e(s,r,i,null);class d extends Xe{_make(I,C){const p=l(I,C);return p.prevObject=this,p}_parse(I,C,p,S){return e(I,C,p,S)}_render(I){return t(I,this.options)}}function l(T,I,C=h,p){if(T&&se(T))return T;const S=Qt(p,r),P=typeof C=="string"?[e(C,S,!1,null)]:"length"in C?C:[C],X=se(P)?P:new d(P,null,S);if(X._root=X,!T)return new d(void 0,X,S);const me=typeof T=="string"&&Yt(T)?e(T,S,!1,null).children:qr(T)?[T]:Array.isArray(T)?T:void 0,be=new d(me,X,S);if(me)return be;if(typeof T!="string")throw new TypeError("Unexpected type of selector");let Be=T;const Oe=I?typeof I=="string"?Yt(I)?new d([e(I,S,!1,null)],X,S):(Be=`${I} ${Be}`,X):se(I)?I:new d(Array.isArray(I)?I:[I],X,S):X;return Oe?Oe.find(Be):be}return Object.assign(l,Dn,{load:u,_root:h,_options:r,fn:d.prototype,prototype:d.prototype}),l}}function qr(e){return!!e.name||e.type===zt||e.type===ss||e.type===as}const jr=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]),y="�";var A;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(A||(A={}));const K={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Ks(e){return e>=55296&&e<=57343}function zr(e){return e>=56320&&e<=57343}function $r(e,t){return(e-55296)*1024+9216+t}function Gs(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ws(e){return e>=64976&&e<=65007||jr.has(e)}var E;(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"})(E||(E={}));const eA=65536;class tA{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=eA,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(t,u){const{line:s,col:n,offset:i}=this,r=n+u,h=i+u;return{code:t,startLine:s,endLine:s,startCol:r,endCol:r,startOffset:h,endOffset:h}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const u=this.html.charCodeAt(this.pos+1);if(zr(u))return this.pos++,this._addGap(),$r(t,u)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(E.surrogateInInputStream),t}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(t,u){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=u}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,u){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(u)return this.html.startsWith(t,this.pos);for(let s=0;s<t.length;s++)if((this.html.charCodeAt(this.pos+s)|32)!==t.charCodeAt(s))return!1;return!0}peek(t){const u=this.pos+t;if(u>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const s=this.html.charCodeAt(u);return s===A.CARRIAGE_RETURN?A.LINE_FEED:s}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,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Ks(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Gs(t)?this._err(E.controlCharacterInInputStream):Ws(t)&&this._err(E.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var O;(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"})(O||(O={}));function Js(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}const uA=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))),sA=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]]);function aA(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=sA.get(e))!==null&&t!==void 0?t:e}var Q;(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"})(Q||(Q={}));const nA=32;var re;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(re||(re={}));function Xt(e){return e>=Q.ZERO&&e<=Q.NINE}function iA(e){return e>=Q.UPPER_A&&e<=Q.UPPER_F||e>=Q.LOWER_A&&e<=Q.LOWER_F}function rA(e){return e>=Q.UPPER_A&&e<=Q.UPPER_Z||e>=Q.LOWER_A&&e<=Q.LOWER_Z||Xt(e)}function AA(e){return e===Q.EQUALS||rA(e)}var U;(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"})(U||(U={}));var ue;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ue||(ue={}));class cA{constructor(t,u,s){this.decodeTree=t,this.emitCodePoint=u,this.errors=s,this.state=U.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ue.Strict}startEntity(t){this.decodeMode=t,this.state=U.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,u){switch(this.state){case U.EntityStart:return t.charCodeAt(u)===Q.NUM?(this.state=U.NumericStart,this.consumed+=1,this.stateNumericStart(t,u+1)):(this.state=U.NamedEntity,this.stateNamedEntity(t,u));case U.NumericStart:return this.stateNumericStart(t,u);case U.NumericDecimal:return this.stateNumericDecimal(t,u);case U.NumericHex:return this.stateNumericHex(t,u);case U.NamedEntity:return this.stateNamedEntity(t,u)}}stateNumericStart(t,u){return u>=t.length?-1:(t.charCodeAt(u)|nA)===Q.LOWER_X?(this.state=U.NumericHex,this.consumed+=1,this.stateNumericHex(t,u+1)):(this.state=U.NumericDecimal,this.stateNumericDecimal(t,u))}addToNumericResult(t,u,s,n){if(u!==s){const i=s-u;this.result=this.result*Math.pow(n,i)+Number.parseInt(t.substr(u,i),n),this.consumed+=i}}stateNumericHex(t,u){const s=u;for(;u<t.length;){const n=t.charCodeAt(u);if(Xt(n)||iA(n))u+=1;else return this.addToNumericResult(t,s,u,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(t,s,u,16),-1}stateNumericDecimal(t,u){const s=u;for(;u<t.length;){const n=t.charCodeAt(u);if(Xt(n))u+=1;else return this.addToNumericResult(t,s,u,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(t,s,u,10),-1}emitNumericEntity(t,u){var s;if(this.consumed<=u)return(s=this.errors)===null||s===void 0||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Q.SEMI)this.consumed+=1;else if(this.decodeMode===ue.Strict)return 0;return this.emitCodePoint(aA(this.result),this.consumed),this.errors&&(t!==Q.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,u){const{decodeTree:s}=this;let n=s[this.treeIndex],i=(n&re.VALUE_LENGTH)>>14;for(;u<t.length;u++,this.excess++){const r=t.charCodeAt(u);if(this.treeIndex=oA(s,n,this.treeIndex+Math.max(1,i),r),this.treeIndex<0)return this.result===0||this.decodeMode===ue.Attribute&&(i===0||AA(r))?0:this.emitNotTerminatedNamedEntity();if(n=s[this.treeIndex],i=(n&re.VALUE_LENGTH)>>14,i!==0){if(r===Q.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==ue.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:u,decodeTree:s}=this,n=(s[u]&re.VALUE_LENGTH)>>14;return this.emitNamedEntityData(u,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,u,s){const{decodeTree:n}=this;return this.emitCodePoint(u===1?n[t]&~re.VALUE_LENGTH:n[t+1],s),u===3&&this.emitCodePoint(n[t+2],s),s}end(){var t;switch(this.state){case U.NamedEntity:return this.result!==0&&(this.decodeMode!==ue.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case U.NumericDecimal:return this.emitNumericEntity(0,2);case U.NumericHex:return this.emitNumericEntity(0,3);case U.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case U.EntityStart:return 0}}}function oA(e,t,u,s){const n=(t&re.BRANCH_LENGTH)>>7,i=t&re.JUMP_TABLE;if(n===0)return i!==0&&s===i?u:-1;if(i){const d=s-i;return d<0||d>=n?-1:e[u+d]-1}let r=u,h=r+n-1;for(;r<=h;){const d=r+h>>>1,l=e[d];if(l<s)r=d+1;else if(l>s)h=d-1;else return e[d+n]}return-1}var g;(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/"})(g||(g={}));var le;(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"})(le||(le={}));var J;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(J||(J={}));var f;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(f||(f={}));var a;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(a||(a={}));const hA=new Map([[f.A,a.A],[f.ADDRESS,a.ADDRESS],[f.ANNOTATION_XML,a.ANNOTATION_XML],[f.APPLET,a.APPLET],[f.AREA,a.AREA],[f.ARTICLE,a.ARTICLE],[f.ASIDE,a.ASIDE],[f.B,a.B],[f.BASE,a.BASE],[f.BASEFONT,a.BASEFONT],[f.BGSOUND,a.BGSOUND],[f.BIG,a.BIG],[f.BLOCKQUOTE,a.BLOCKQUOTE],[f.BODY,a.BODY],[f.BR,a.BR],[f.BUTTON,a.BUTTON],[f.CAPTION,a.CAPTION],[f.CENTER,a.CENTER],[f.CODE,a.CODE],[f.COL,a.COL],[f.COLGROUP,a.COLGROUP],[f.DD,a.DD],[f.DESC,a.DESC],[f.DETAILS,a.DETAILS],[f.DIALOG,a.DIALOG],[f.DIR,a.DIR],[f.DIV,a.DIV],[f.DL,a.DL],[f.DT,a.DT],[f.EM,a.EM],[f.EMBED,a.EMBED],[f.FIELDSET,a.FIELDSET],[f.FIGCAPTION,a.FIGCAPTION],[f.FIGURE,a.FIGURE],[f.FONT,a.FONT],[f.FOOTER,a.FOOTER],[f.FOREIGN_OBJECT,a.FOREIGN_OBJECT],[f.FORM,a.FORM],[f.FRAME,a.FRAME],[f.FRAMESET,a.FRAMESET],[f.H1,a.H1],[f.H2,a.H2],[f.H3,a.H3],[f.H4,a.H4],[f.H5,a.H5],[f.H6,a.H6],[f.HEAD,a.HEAD],[f.HEADER,a.HEADER],[f.HGROUP,a.HGROUP],[f.HR,a.HR],[f.HTML,a.HTML],[f.I,a.I],[f.IMG,a.IMG],[f.IMAGE,a.IMAGE],[f.INPUT,a.INPUT],[f.IFRAME,a.IFRAME],[f.KEYGEN,a.KEYGEN],[f.LABEL,a.LABEL],[f.LI,a.LI],[f.LINK,a.LINK],[f.LISTING,a.LISTING],[f.MAIN,a.MAIN],[f.MALIGNMARK,a.MALIGNMARK],[f.MARQUEE,a.MARQUEE],[f.MATH,a.MATH],[f.MENU,a.MENU],[f.META,a.META],[f.MGLYPH,a.MGLYPH],[f.MI,a.MI],[f.MO,a.MO],[f.MN,a.MN],[f.MS,a.MS],[f.MTEXT,a.MTEXT],[f.NAV,a.NAV],[f.NOBR,a.NOBR],[f.NOFRAMES,a.NOFRAMES],[f.NOEMBED,a.NOEMBED],[f.NOSCRIPT,a.NOSCRIPT],[f.OBJECT,a.OBJECT],[f.OL,a.OL],[f.OPTGROUP,a.OPTGROUP],[f.OPTION,a.OPTION],[f.P,a.P],[f.PARAM,a.PARAM],[f.PLAINTEXT,a.PLAINTEXT],[f.PRE,a.PRE],[f.RB,a.RB],[f.RP,a.RP],[f.RT,a.RT],[f.RTC,a.RTC],[f.RUBY,a.RUBY],[f.S,a.S],[f.SCRIPT,a.SCRIPT],[f.SEARCH,a.SEARCH],[f.SECTION,a.SECTION],[f.SELECT,a.SELECT],[f.SOURCE,a.SOURCE],[f.SMALL,a.SMALL],[f.SPAN,a.SPAN],[f.STRIKE,a.STRIKE],[f.STRONG,a.STRONG],[f.STYLE,a.STYLE],[f.SUB,a.SUB],[f.SUMMARY,a.SUMMARY],[f.SUP,a.SUP],[f.TABLE,a.TABLE],[f.TBODY,a.TBODY],[f.TEMPLATE,a.TEMPLATE],[f.TEXTAREA,a.TEXTAREA],[f.TFOOT,a.TFOOT],[f.TD,a.TD],[f.TH,a.TH],[f.THEAD,a.THEAD],[f.TITLE,a.TITLE],[f.TR,a.TR],[f.TRACK,a.TRACK],[f.TT,a.TT],[f.U,a.U],[f.UL,a.UL],[f.SVG,a.SVG],[f.VAR,a.VAR],[f.WBR,a.WBR],[f.XMP,a.XMP]]);function Ct(e){var t;return(t=hA.get(e))!==null&&t!==void 0?t:a.UNKNOWN}const b=a,dA={[g.HTML]:new Set([b.ADDRESS,b.APPLET,b.AREA,b.ARTICLE,b.ASIDE,b.BASE,b.BASEFONT,b.BGSOUND,b.BLOCKQUOTE,b.BODY,b.BR,b.BUTTON,b.CAPTION,b.CENTER,b.COL,b.COLGROUP,b.DD,b.DETAILS,b.DIR,b.DIV,b.DL,b.DT,b.EMBED,b.FIELDSET,b.FIGCAPTION,b.FIGURE,b.FOOTER,b.FORM,b.FRAME,b.FRAMESET,b.H1,b.H2,b.H3,b.H4,b.H5,b.H6,b.HEAD,b.HEADER,b.HGROUP,b.HR,b.HTML,b.IFRAME,b.IMG,b.INPUT,b.LI,b.LINK,b.LISTING,b.MAIN,b.MARQUEE,b.MENU,b.META,b.NAV,b.NOEMBED,b.NOFRAMES,b.NOSCRIPT,b.OBJECT,b.OL,b.P,b.PARAM,b.PLAINTEXT,b.PRE,b.SCRIPT,b.SECTION,b.SELECT,b.SOURCE,b.STYLE,b.SUMMARY,b.TABLE,b.TBODY,b.TD,b.TEMPLATE,b.TEXTAREA,b.TFOOT,b.TH,b.THEAD,b.TITLE,b.TR,b.TRACK,b.UL,b.WBR,b.XMP]),[g.MATHML]:new Set([b.MI,b.MO,b.MN,b.MS,b.MTEXT,b.ANNOTATION_XML]),[g.SVG]:new Set([b.TITLE,b.FOREIGN_OBJECT,b.DESC]),[g.XLINK]:new Set,[g.XML]:new Set,[g.XMLNS]:new Set},Vt=new Set([b.H1,b.H2,b.H3,b.H4,b.H5,b.H6]),lA=new Set([f.STYLE,f.SCRIPT,f.XMP,f.IFRAME,f.NOEMBED,f.NOFRAMES,f.PLAINTEXT]);function fA(e,t){return lA.has(e)||t&&e===f.NOSCRIPT}var 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.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(c||(c={}));const W={DATA:c.DATA,RCDATA:c.RCDATA,RAWTEXT:c.RAWTEXT,SCRIPT_DATA:c.SCRIPT_DATA,PLAINTEXT:c.PLAINTEXT,CDATA_SECTION:c.CDATA_SECTION};function EA(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function xe(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function TA(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function ae(e){return TA(e)||xe(e)}function vu(e){return ae(e)||EA(e)}function et(e){return e+32}function Zs(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function Ku(e){return Zs(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function gA(e){return e===A.NULL?E.nullCharacterReference:e>1114111?E.characterReferenceOutsideUnicodeRange:Ks(e)?E.surrogateCharacterReference:Ws(e)?E.noncharacterCharacterReference:Gs(e)||e===A.CARRIAGE_RETURN?E.controlCharacterReference:null}class mA{constructor(t,u){this.options=t,this.handler=u,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=c.DATA,this.returnState=c.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new tA(u),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new cA(uA,(s,n)=>{this.preprocessor.pos=this.entityStartPos+n-1,this._flushCodePointConsumedAsCharacterReference(s)},u.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(E.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:s=>{this._err(E.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+s)},validateNumericCharacterReference:s=>{const n=gA(s);n&&this._err(n,1)}}:void 0)}_err(t,u=0){var s,n;(n=(s=this.handler).onParseError)===null||n===void 0||n.call(s,this.preprocessor.getError(t,u))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,u,s){this.active=!0,this.preprocessor.write(t,u),this._runParsingLoop(),this.paused||s==null||s()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let u=0;u<t;u++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,u){return this.preprocessor.startsWith(t,u)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:O.START_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:O.END_TAG,tagName:"",tagID:a.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:O.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:O.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,u){this.currentCharacterToken={type:t,chars:u,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,u;const s=this.currentToken;if(Js(s,this.currentAttr.name)===null){if(s.attrs.push(this.currentAttr),s.location&&this.currentLocation){const n=(t=(u=s.location).attrs)!==null&&t!==void 0?t:u.attrs=Object.create(null);n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(E.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ct(t.tagName),t.type===O.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(E.endTagWithAttributes),t.selfClosing&&this._err(E.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case O.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case O.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case O.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:O.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,u){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=u;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,u)}_emitCodePoint(t){const u=Zs(t)?O.WHITESPACE_CHARACTER:t===A.NULL?O.NULL_CHARACTER:O.CHARACTER;this._appendCharToCurrentCharacterToken(u,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(O.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=c.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ue.Attribute:ue.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===c.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===c.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===c.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case c.DATA:{this._stateData(t);break}case c.RCDATA:{this._stateRcdata(t);break}case c.RAWTEXT:{this._stateRawtext(t);break}case c.SCRIPT_DATA:{this._stateScriptData(t);break}case c.PLAINTEXT:{this._statePlaintext(t);break}case c.TAG_OPEN:{this._stateTagOpen(t);break}case c.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case c.TAG_NAME:{this._stateTagName(t);break}case c.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case c.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case c.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case c.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case c.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case c.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case c.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case c.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case c.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case c.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case c.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case c.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case c.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case c.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case c.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case c.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case c.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case c.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case c.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case c.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case c.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case c.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case c.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case c.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case c.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case c.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case c.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case c.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case c.BOGUS_COMMENT:{this._stateBogusComment(t);break}case c.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case c.COMMENT_START:{this._stateCommentStart(t);break}case c.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case c.COMMENT:{this._stateComment(t);break}case c.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case c.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case c.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case c.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case c.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case c.COMMENT_END:{this._stateCommentEnd(t);break}case c.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case c.DOCTYPE:{this._stateDoctype(t);break}case c.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case c.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case c.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case c.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case c.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case c.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case c.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case c.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case c.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case c.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case c.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case c.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case c.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case c.CDATA_SECTION:{this._stateCdataSection(t);break}case c.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case c.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case c.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case c.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=c.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=c.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(y);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=c.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(y);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(y);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(y);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(ae(t))this._createStartTagToken(),this.state=c.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=c.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=c.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err(E.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=c.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err(E.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(E.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=c.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(ae(t))this._createEndTagToken(),this.state=c.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err(E.missingEndTagName),this.state=c.DATA;break}case A.EOF:{this._err(E.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(E.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=c.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=c.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this.state=c.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.tagName+=y;break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:u.tagName+=String.fromCodePoint(xe(t)?et(t):t)}}_stateRcdataLessThanSign(t){t===A.SOLIDUS?this.state=c.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=c.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){ae(t)?(this.state=c.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=c.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const u=this.currentToken;switch(u.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=c.BEFORE_ATTRIBUTE_NAME,!1;case A.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=c.SELF_CLOSING_START_TAG,!1;case A.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=c.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=c.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===A.SOLIDUS?this.state=c.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=c.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){ae(t)?(this.state=c.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=c.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=c.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case A.SOLIDUS:{this.state=c.SCRIPT_DATA_END_TAG_OPEN;break}case A.EXCLAMATION_MARK:{this.state=c.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=c.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){ae(t)?(this.state=c.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=c.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=c.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===A.HYPHEN_MINUS?(this.state=c.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=c.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===A.HYPHEN_MINUS?(this.state=c.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=c.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case A.HYPHEN_MINUS:{this.state=c.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(y);break}case A.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=c.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.state=c.SCRIPT_DATA_ESCAPED,this._emitChars(y);break}case A.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=c.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case A.GREATER_THAN_SIGN:{this.state=c.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.state=c.SCRIPT_DATA_ESCAPED,this._emitChars(y);break}case A.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=c.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=c.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:ae(t)?(this._emitChars("<"),this.state=c.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=c.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){ae(t)?(this.state=c.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=c.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=c.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(K.SCRIPT,!1)&&Ku(this.preprocessor.peek(K.SCRIPT.length))){this._emitCodePoint(t);for(let u=0;u<K.SCRIPT.length;u++)this._emitCodePoint(this._consume());this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=c.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case A.HYPHEN_MINUS:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(E.unexpectedNullCharacter),this._emitChars(y);break}case A.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case A.HYPHEN_MINUS:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(y);break}case A.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case A.HYPHEN_MINUS:{this._emitChars("-");break}case A.LESS_THAN_SIGN:{this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case A.GREATER_THAN_SIGN:{this.state=c.SCRIPT_DATA,this._emitChars(">");break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(y);break}case A.EOF:{this._err(E.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=c.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(K.SCRIPT,!1)&&Ku(this.preprocessor.peek(K.SCRIPT.length))){this._emitCodePoint(t);for(let u=0;u<K.SCRIPT.length;u++)this._emitCodePoint(this._consume());this.state=c.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=c.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this.state=c.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._err(E.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=c.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=c.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:case A.SOLIDUS:case A.GREATER_THAN_SIGN:case A.EOF:{this._leaveAttrName(),this.state=c.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case A.EQUALS_SIGN:{this._leaveAttrName(),this.state=c.BEFORE_ATTRIBUTE_VALUE;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:{this._err(E.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.currentAttr.name+=y;break}default:this.currentAttr.name+=String.fromCodePoint(xe(t)?et(t):t)}}_stateAfterAttributeName(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.SOLIDUS:{this.state=c.SELF_CLOSING_START_TAG;break}case A.EQUALS_SIGN:{this.state=c.BEFORE_ATTRIBUTE_VALUE;break}case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=c.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{this.state=c.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this.state=c.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(E.missingAttributeValue),this.state=c.DATA,this.emitCurrentTagToken();break}default:this.state=c.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case A.QUOTATION_MARK:{this.state=c.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.currentAttr.value+=y;break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case A.APOSTROPHE:{this.state=c.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.currentAttr.value+=y;break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=c.BEFORE_ATTRIBUTE_NAME;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=c.DATA,this.emitCurrentTagToken();break}case A.NULL:{this._err(E.unexpectedNullCharacter),this.currentAttr.value+=y;break}case A.QUOTATION_MARK:case A.APOSTROPHE:case A.LESS_THAN_SIGN:case A.EQUALS_SIGN:case A.GRAVE_ACCENT:{this._err(E.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this._leaveAttrValue(),this.state=c.BEFORE_ATTRIBUTE_NAME;break}case A.SOLIDUS:{this._leaveAttrValue(),this.state=c.SELF_CLOSING_START_TAG;break}case A.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=c.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this._err(E.missingWhitespaceBetweenAttributes),this.state=c.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case A.GREATER_THAN_SIGN:{const u=this.currentToken;u.selfClosing=!0,this.state=c.DATA,this.emitCurrentTagToken();break}case A.EOF:{this._err(E.eofInTag),this._emitEOFToken();break}default:this._err(E.unexpectedSolidusInTag),this.state=c.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const u=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentComment(u);break}case A.EOF:{this.emitCurrentComment(u),this._emitEOFToken();break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.data+=y;break}default:u.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(K.DASH_DASH,!0)?(this._createCommentToken(K.DASH_DASH.length+1),this.state=c.COMMENT_START):this._consumeSequenceIfMatch(K.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(K.DOCTYPE.length+1),this.state=c.DOCTYPE):this._consumeSequenceIfMatch(K.CDATA_START,!0)?this.inForeignNode?this.state=c.CDATA_SECTION:(this._err(E.cdataInHtmlContent),this._createCommentToken(K.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=c.BOGUS_COMMENT):this._ensureHibernation()||(this._err(E.incorrectlyOpenedComment),this._createCommentToken(2),this.state=c.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case A.HYPHEN_MINUS:{this.state=c.COMMENT_START_DASH;break}case A.GREATER_THAN_SIGN:{this._err(E.abruptClosingOfEmptyComment),this.state=c.DATA;const u=this.currentToken;this.emitCurrentComment(u);break}default:this.state=c.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const u=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=c.COMMENT_END;break}case A.GREATER_THAN_SIGN:{this._err(E.abruptClosingOfEmptyComment),this.state=c.DATA,this.emitCurrentComment(u);break}case A.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="-",this.state=c.COMMENT,this._stateComment(t)}}_stateComment(t){const u=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=c.COMMENT_END_DASH;break}case A.LESS_THAN_SIGN:{u.data+="<",this.state=c.COMMENT_LESS_THAN_SIGN;break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.data+=y;break}case A.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const u=this.currentToken;switch(t){case A.EXCLAMATION_MARK:{u.data+="!",this.state=c.COMMENT_LESS_THAN_SIGN_BANG;break}case A.LESS_THAN_SIGN:{u.data+="<";break}default:this.state=c.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===A.HYPHEN_MINUS?this.state=c.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=c.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===A.HYPHEN_MINUS?this.state=c.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=c.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==A.GREATER_THAN_SIGN&&t!==A.EOF&&this._err(E.nestedComment),this.state=c.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const u=this.currentToken;switch(t){case A.HYPHEN_MINUS:{this.state=c.COMMENT_END;break}case A.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="-",this.state=c.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const u=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentComment(u);break}case A.EXCLAMATION_MARK:{this.state=c.COMMENT_END_BANG;break}case A.HYPHEN_MINUS:{u.data+="-";break}case A.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="--",this.state=c.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const u=this.currentToken;switch(t){case A.HYPHEN_MINUS:{u.data+="--!",this.state=c.COMMENT_END_DASH;break}case A.GREATER_THAN_SIGN:{this._err(E.incorrectlyClosedComment),this.state=c.DATA,this.emitCurrentComment(u);break}case A.EOF:{this._err(E.eofInComment),this.emitCurrentComment(u),this._emitEOFToken();break}default:u.data+="--!",this.state=c.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=c.BEFORE_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=c.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case A.EOF:{this._err(E.eofInDoctype),this._createDoctypeToken(null);const u=this.currentToken;u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingWhitespaceBeforeDoctypeName),this.state=c.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(xe(t))this._createDoctypeToken(String.fromCharCode(et(t))),this.state=c.DOCTYPE_NAME;else switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.NULL:{this._err(E.unexpectedNullCharacter),this._createDoctypeToken(y),this.state=c.DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this._err(E.missingDoctypeName),this._createDoctypeToken(null);const u=this.currentToken;u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.EOF:{this._err(E.eofInDoctype),this._createDoctypeToken(null);const u=this.currentToken;u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=c.DOCTYPE_NAME}}_stateDoctypeName(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=c.AFTER_DOCTYPE_NAME;break}case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.name+=y;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.name+=String.fromCodePoint(xe(t)?et(t):t)}}_stateAfterDoctypeName(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(K.PUBLIC,!1)?this.state=c.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(K.SYSTEM,!1)?this.state=c.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(E.invalidCharacterSequenceAfterDoctypeName),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=c.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(E.missingWhitespaceAfterDoctypePublicKeyword),u.publicId="",this.state=c.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(E.missingWhitespaceAfterDoctypePublicKeyword),u.publicId="",this.state=c.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(E.missingDoctypePublicIdentifier),u.forceQuirks=!0,this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypePublicIdentifier),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{u.publicId="",this.state=c.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{u.publicId="",this.state=c.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(E.missingDoctypePublicIdentifier),u.forceQuirks=!0,this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypePublicIdentifier),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const u=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=c.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.publicId+=y;break}case A.GREATER_THAN_SIGN:{this._err(E.abruptDoctypePublicIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const u=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=c.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.publicId+=y;break}case A.GREATER_THAN_SIGN:{this._err(E.abruptDoctypePublicIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=c.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case A.GREATER_THAN_SIGN:{this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.QUOTATION_MARK:{this._err(E.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(E.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.QUOTATION_MARK:{u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:{this.state=c.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.QUOTATION_MARK:{this._err(E.missingWhitespaceAfterDoctypeSystemKeyword),u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{this._err(E.missingWhitespaceAfterDoctypeSystemKeyword),u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(E.missingDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.QUOTATION_MARK:{u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case A.APOSTROPHE:{u.systemId="",this.state=c.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case A.GREATER_THAN_SIGN:{this._err(E.missingDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=c.DATA,this.emitCurrentDoctype(u);break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.missingQuoteBeforeDoctypeSystemIdentifier),u.forceQuirks=!0,this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const u=this.currentToken;switch(t){case A.QUOTATION_MARK:{this.state=c.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.systemId+=y;break}case A.GREATER_THAN_SIGN:{this._err(E.abruptDoctypeSystemIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const u=this.currentToken;switch(t){case A.APOSTROPHE:{this.state=c.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case A.NULL:{this._err(E.unexpectedNullCharacter),u.systemId+=y;break}case A.GREATER_THAN_SIGN:{this._err(E.abruptDoctypeSystemIdentifier),u.forceQuirks=!0,this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:u.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const u=this.currentToken;switch(t){case A.SPACE:case A.LINE_FEED:case A.TABULATION:case A.FORM_FEED:break;case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.EOF:{this._err(E.eofInDoctype),u.forceQuirks=!0,this.emitCurrentDoctype(u),this._emitEOFToken();break}default:this._err(E.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=c.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const u=this.currentToken;switch(t){case A.GREATER_THAN_SIGN:{this.emitCurrentDoctype(u),this.state=c.DATA;break}case A.NULL:{this._err(E.unexpectedNullCharacter);break}case A.EOF:{this.emitCurrentDoctype(u),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case A.RIGHT_SQUARE_BRACKET:{this.state=c.CDATA_SECTION_BRACKET;break}case A.EOF:{this._err(E.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===A.RIGHT_SQUARE_BRACKET?this.state=c.CDATA_SECTION_END:(this._emitChars("]"),this.state=c.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case A.GREATER_THAN_SIGN:{this.state=c.DATA;break}case A.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=c.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(A.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&vu(this.preprocessor.peek(1))?c.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){vu(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===A.SEMICOLON&&this._err(E.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const Xs=new Set([a.DD,a.DT,a.LI,a.OPTGROUP,a.OPTION,a.P,a.RB,a.RP,a.RT,a.RTC]),Gu=new Set([...Xs,a.CAPTION,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]),dt=new Set([a.APPLET,a.CAPTION,a.HTML,a.MARQUEE,a.OBJECT,a.TABLE,a.TD,a.TEMPLATE,a.TH]),bA=new Set([...dt,a.OL,a.UL]),IA=new Set([...dt,a.BUTTON]),Wu=new Set([a.ANNOTATION_XML,a.MI,a.MN,a.MO,a.MS,a.MTEXT]),Ju=new Set([a.DESC,a.FOREIGN_OBJECT,a.TITLE]),CA=new Set([a.TR,a.TEMPLATE,a.HTML]),pA=new Set([a.TBODY,a.TFOOT,a.THEAD,a.TEMPLATE,a.HTML]),_A=new Set([a.TABLE,a.TEMPLATE,a.HTML]),NA=new Set([a.TD,a.TH]);class SA{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,u,s){this.treeAdapter=u,this.handler=s,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=a.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===a.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===g.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,u){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=u,this.currentTagId=u,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,u,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,u){const s=this._indexOf(t);this.items[s]=u,s===this.stackTop&&(this.current=u)}insertAfter(t,u,s){const n=this._indexOf(t)+1;this.items.splice(n,0,u),this.tagIDs.splice(n,0,s),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(t){let u=this.stackTop+1;do u=this.tagIDs.lastIndexOf(t,u-1);while(u>0&&this.treeAdapter.getNamespaceURI(this.items[u])!==g.HTML);this.shortenToLength(Math.max(u,0))}shortenToLength(t){for(;this.stackTop>=t;){const u=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(u,this.stackTop<t)}}popUntilElementPopped(t){const u=this._indexOf(t);this.shortenToLength(Math.max(u,0))}popUntilPopped(t,u){const s=this._indexOfTagNames(t,u);this.shortenToLength(Math.max(s,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Vt,g.HTML)}popUntilTableCellPopped(){this.popUntilPopped(NA,g.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,u){for(let s=this.stackTop;s>=0;s--)if(t.has(this.tagIDs[s])&&this.treeAdapter.getNamespaceURI(this.items[s])===u)return s;return-1}clearBackTo(t,u){const s=this._indexOfTagNames(t,u);this.shortenToLength(s+1)}clearBackToTableContext(){this.clearBackTo(_A,g.HTML)}clearBackToTableBodyContext(){this.clearBackTo(pA,g.HTML)}clearBackToTableRowContext(){this.clearBackTo(CA,g.HTML)}remove(t){const u=this._indexOf(t);u>=0&&(u===this.stackTop?this.pop():(this.items.splice(u,1),this.tagIDs.splice(u,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===a.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const u=this._indexOf(t)-1;return u>=0?this.items[u]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===a.HTML}hasInDynamicScope(t,u){for(let s=this.stackTop;s>=0;s--){const n=this.tagIDs[s];switch(this.treeAdapter.getNamespaceURI(this.items[s])){case g.HTML:{if(n===t)return!0;if(u.has(n))return!1;break}case g.SVG:{if(Ju.has(n))return!1;break}case g.MATHML:{if(Wu.has(n))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,dt)}hasInListItemScope(t){return this.hasInDynamicScope(t,bA)}hasInButtonScope(t){return this.hasInDynamicScope(t,IA)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const u=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case g.HTML:{if(Vt.has(u))return!0;if(dt.has(u))return!1;break}case g.SVG:{if(Ju.has(u))return!1;break}case g.MATHML:{if(Wu.has(u))return!1;break}}}return!0}hasInTableScope(t){for(let u=this.stackTop;u>=0;u--)if(this.treeAdapter.getNamespaceURI(this.items[u])===g.HTML)switch(this.tagIDs[u]){case t:return!0;case a.TABLE:case a.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===g.HTML)switch(this.tagIDs[t]){case a.TBODY:case a.THEAD:case a.TFOOT:return!0;case a.TABLE:case a.HTML:return!1}return!0}hasInSelectScope(t){for(let u=this.stackTop;u>=0;u--)if(this.treeAdapter.getNamespaceURI(this.items[u])===g.HTML)switch(this.tagIDs[u]){case t:return!0;case a.OPTION:case a.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&Xs.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Gu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Gu.has(this.currentTagId);)this.pop()}}const Mt=3;var q;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(q||(q={}));const Zu={type:q.Marker};class DA{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,u){const s=[],n=u.length,i=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);for(let h=0;h<this.entries.length;h++){const d=this.entries[h];if(d.type===q.Marker)break;const{element:l}=d;if(this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===r){const T=this.treeAdapter.getAttrList(l);T.length===n&&s.push({idx:h,attrs:T})}}return s}_ensureNoahArkCondition(t){if(this.entries.length<Mt)return;const u=this.treeAdapter.getAttrList(t),s=this._getNoahArkConditionCandidates(t,u);if(s.length<Mt)return;const n=new Map(u.map(r=>[r.name,r.value]));let i=0;for(let r=0;r<s.length;r++){const h=s[r];h.attrs.every(d=>n.get(d.name)===d.value)&&(i+=1,i>=Mt&&this.entries.splice(h.idx,1))}}insertMarker(){this.entries.unshift(Zu)}pushElement(t,u){this._ensureNoahArkCondition(t),this.entries.unshift({type:q.Element,element:t,token:u})}insertElementAfterBookmark(t,u){const s=this.entries.indexOf(this.bookmark);this.entries.splice(s,0,{type:q.Element,element:t,token:u})}removeEntry(t){const u=this.entries.indexOf(t);u!==-1&&this.entries.splice(u,1)}clearToLastMarker(){const t=this.entries.indexOf(Zu);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const u=this.entries.find(s=>s.type===q.Marker||this.treeAdapter.getTagName(s.element)===t);return u&&u.type===q.Element?u:null}getElementEntry(t){return this.entries.find(u=>u.type===q.Element&&u.element===t)}}const te={createDocument(){return{nodeName:"#document",mode:J.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}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,u){const s=e.childNodes.indexOf(u);e.childNodes.splice(s,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,u,s){const n=e.childNodes.find(i=>i.nodeName==="#documentType");if(n)n.name=t,n.publicId=u,n.systemId=s;else{const i={nodeName:"#documentType",name:t,publicId:u,systemId:s,parentNode:null};te.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const u=e.childNodes[e.childNodes.length-1];if(te.isTextNode(u)){u.value+=t;return}}te.appendChild(e,te.createTextNode(t))},insertTextBefore(e,t,u){const s=e.childNodes[e.childNodes.indexOf(u)-1];s&&te.isTextNode(s)?s.value+=t:te.insertBefore(e,te.createTextNode(t),u)},adoptAttributes(e,t){const u=new Set(e.attrs.map(s=>s.name));for(let s=0;s<t.length;s++)u.has(t[s].name)||e.attrs.push(t[s])},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}}},Vs="html",BA="about:legacy-compat",OA="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",qs=["+//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//"],RA=[...qs,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],LA=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),js=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],yA=[...js,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Xu(e,t){return t.some(u=>e.startsWith(u))}function xA(e){return e.name===Vs&&e.publicId===null&&(e.systemId===null||e.systemId===BA)}function FA(e){if(e.name!==Vs)return J.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===OA)return J.QUIRKS;let{publicId:u}=e;if(u!==null){if(u=u.toLowerCase(),LA.has(u))return J.QUIRKS;let s=t===null?RA:qs;if(Xu(u,s))return J.QUIRKS;if(s=t===null?js:yA,Xu(u,s))return J.LIMITED_QUIRKS}return J.NO_QUIRKS}const Vu={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},wA="definitionurl",MA="definitionURL",PA=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])),kA=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:g.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:g.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:g.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:g.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:g.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:g.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:g.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:g.XML}],["xml:space",{prefix:"xml",name:"space",namespace:g.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:g.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:g.XMLNS}]]),HA=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])),UA=new Set([a.B,a.BIG,a.BLOCKQUOTE,a.BODY,a.BR,a.CENTER,a.CODE,a.DD,a.DIV,a.DL,a.DT,a.EM,a.EMBED,a.H1,a.H2,a.H3,a.H4,a.H5,a.H6,a.HEAD,a.HR,a.I,a.IMG,a.LI,a.LISTING,a.MENU,a.META,a.NOBR,a.OL,a.P,a.PRE,a.RUBY,a.S,a.SMALL,a.SPAN,a.STRONG,a.STRIKE,a.SUB,a.SUP,a.TABLE,a.TT,a.U,a.UL,a.VAR]);function QA(e){const t=e.tagID;return t===a.FONT&&e.attrs.some(({name:s})=>s===le.COLOR||s===le.SIZE||s===le.FACE)||UA.has(t)}function zs(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===wA){e.attrs[t].name=MA;break}}function $s(e){for(let t=0;t<e.attrs.length;t++){const u=PA.get(e.attrs[t].name);u!=null&&(e.attrs[t].name=u)}}function gu(e){for(let t=0;t<e.attrs.length;t++){const u=kA.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 YA(e){const t=HA.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ct(e.tagName))}function vA(e,t){return t===g.MATHML&&(e===a.MI||e===a.MO||e===a.MN||e===a.MS||e===a.MTEXT)}function KA(e,t,u){if(t===g.MATHML&&e===a.ANNOTATION_XML){for(let s=0;s<u.length;s++)if(u[s].name===le.ENCODING){const n=u[s].value.toLowerCase();return n===Vu.TEXT_HTML||n===Vu.APPLICATION_XML}}return t===g.SVG&&(e===a.FOREIGN_OBJECT||e===a.DESC||e===a.TITLE)}function GA(e,t,u,s){return(!s||s===g.HTML)&&KA(e,t,u)||(!s||s===g.MATHML)&&vA(e,t)}const WA="hidden",JA=8,ZA=3;var o;(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"})(o||(o={}));const XA={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ea=new Set([a.TABLE,a.TBODY,a.TFOOT,a.THEAD,a.TR]),qu={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:te,onParseError:null};class ta{constructor(t,u,s=null,n=null){this.fragmentContext=s,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=o.INITIAL,this.originalInsertionMode=o.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={...qu,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=u??this.treeAdapter.createDocument(),this.tokenizer=new mA(this.options,this),this.activeFormattingElements=new DA(this.treeAdapter),this.fragmentContextID=s?Ct(this.treeAdapter.getTagName(s)):a.UNKNOWN,this._setContextModes(s??this.document,this.fragmentContextID),this.openElements=new SA(this.document,this.treeAdapter,this)}static parse(t,u){const s=new this(u);return s.tokenizer.write(t,!0),s.document}static getFragmentParser(t,u){const s={...qu,...u};t??(t=s.treeAdapter.createElement(f.TEMPLATE,g.HTML,[]));const n=s.treeAdapter.createElement("documentmock",g.HTML,[]),i=new this(s,n,t);return i.fragmentContextID===a.TEMPLATE&&i.tmplInsertionModeStack.unshift(o.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),u=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,u),u}_err(t,u,s){var n;if(!this.onParseError)return;const i=(n=t.location)!==null&&n!==void 0?n:XA,r={code:u,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:s?i.startLine:i.endLine,endCol:s?i.startCol:i.endCol,endOffset:s?i.startOffset:i.endOffset};this.onParseError(r)}onItemPush(t,u,s){var n,i;(i=(n=this.treeAdapter).onItemPush)===null||i===void 0||i.call(n,t),s&&this.openElements.stackTop>0&&this._setContextModes(t,u)}onItemPop(t,u){var s,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(n=(s=this.treeAdapter).onItemPop)===null||n===void 0||n.call(s,t,this.openElements.current),u){let i,r;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,r=this.fragmentContextID):{current:i,currentTagId:r}=this.openElements,this._setContextModes(i,r)}}_setContextModes(t,u){const s=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===g.HTML;this.currentNotInHTML=!s,this.tokenizer.inForeignNode=!s&&t!==void 0&&u!==void 0&&!this._isIntegrationPoint(u,t)}_switchToTextParsing(t,u){this._insertElement(t,g.HTML),this.tokenizer.state=u,this.originalInsertionMode=this.insertionMode,this.insertionMode=o.TEXT}switchToPlaintextParsing(){this.insertionMode=o.TEXT,this.originalInsertionMode=o.IN_BODY,this.tokenizer.state=W.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===f.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==g.HTML))switch(this.fragmentContextID){case a.TITLE:case a.TEXTAREA:{this.tokenizer.state=W.RCDATA;break}case a.STYLE:case a.XMP:case a.IFRAME:case a.NOEMBED:case a.NOFRAMES:case a.NOSCRIPT:{this.tokenizer.state=W.RAWTEXT;break}case a.SCRIPT:{this.tokenizer.state=W.SCRIPT_DATA;break}case a.PLAINTEXT:{this.tokenizer.state=W.PLAINTEXT;break}}}_setDocumentType(t){const u=t.name||"",s=t.publicId||"",n=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,u,s,n),t.location){const r=this.treeAdapter.getChildNodes(this.document).find(h=>this.treeAdapter.isDocumentTypeNode(h));r&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}}_attachElementToTree(t,u){if(this.options.sourceCodeLocationInfo){const s=u&&{...u,startTag:u};this.treeAdapter.setNodeSourceCodeLocation(t,s)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const s=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(s??this.document,t)}}_appendElement(t,u){const s=this.treeAdapter.createElement(t.tagName,u,t.attrs);this._attachElementToTree(s,t.location)}_insertElement(t,u){const s=this.treeAdapter.createElement(t.tagName,u,t.attrs);this._attachElementToTree(s,t.location),this.openElements.push(s,t.tagID)}_insertFakeElement(t,u){const s=this.treeAdapter.createElement(t,g.HTML,[]);this._attachElementToTree(s,null),this.openElements.push(s,u)}_insertTemplate(t){const u=this.treeAdapter.createElement(t.tagName,g.HTML,t.attrs),s=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(u,s),this._attachElementToTree(u,t.location),this.openElements.push(u,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(f.HTML,g.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,a.HTML)}_appendCommentNode(t,u){const s=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(u,s),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_insertCharacters(t){let u,s;if(this._shouldFosterParentOnInsertion()?({parent:u,beforeElement:s}=this._findFosterParentingLocation(),s?this.treeAdapter.insertTextBefore(u,t.chars,s):this.treeAdapter.insertText(u,t.chars)):(u=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(u,t.chars)),!t.location)return;const n=this.treeAdapter.getChildNodes(u),i=s?n.lastIndexOf(s):n.length,r=n[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(r)){const{endLine:d,endCol:l,endOffset:T}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(r,{endLine:d,endCol:l,endOffset:T})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_adoptNodes(t,u){for(let s=this.treeAdapter.getFirstChild(t);s;s=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(s),this.treeAdapter.appendChild(u,s)}_setEndLocation(t,u){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&u.location){const s=u.location,n=this.treeAdapter.getTagName(t),i=u.type===O.END_TAG&&n===u.tagName?{endTag:{...s},endLine:s.endLine,endCol:s.endCol,endOffset:s.endOffset}:{endLine:s.startLine,endCol:s.startCol,endOffset:s.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let u,s;return this.openElements.stackTop===0&&this.fragmentContext?(u=this.fragmentContext,s=this.fragmentContextID):{current:u,currentTagId:s}=this.openElements,t.tagID===a.SVG&&this.treeAdapter.getTagName(u)===f.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(u)===g.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===a.MGLYPH||t.tagID===a.MALIGNMARK)&&s!==void 0&&!this._isIntegrationPoint(s,u,g.HTML)}_processToken(t){switch(t.type){case O.CHARACTER:{this.onCharacter(t);break}case O.NULL_CHARACTER:{this.onNullCharacter(t);break}case O.COMMENT:{this.onComment(t);break}case O.DOCTYPE:{this.onDoctype(t);break}case O.START_TAG:{this._processStartTag(t);break}case O.END_TAG:{this.onEndTag(t);break}case O.EOF:{this.onEof(t);break}case O.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,u,s){const n=this.treeAdapter.getNamespaceURI(u),i=this.treeAdapter.getAttrList(u);return GA(t,n,i,s)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const u=this.activeFormattingElements.entries.findIndex(n=>n.type===q.Marker||this.openElements.contains(n.element)),s=u===-1?t-1:u-1;for(let n=s;n>=0;n--){const i=this.activeFormattingElements.entries[n];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=o.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(a.P),this.openElements.popUntilTagNamePopped(a.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case a.TR:{this.insertionMode=o.IN_ROW;return}case a.TBODY:case a.THEAD:case a.TFOOT:{this.insertionMode=o.IN_TABLE_BODY;return}case a.CAPTION:{this.insertionMode=o.IN_CAPTION;return}case a.COLGROUP:{this.insertionMode=o.IN_COLUMN_GROUP;return}case a.TABLE:{this.insertionMode=o.IN_TABLE;return}case a.BODY:{this.insertionMode=o.IN_BODY;return}case a.FRAMESET:{this.insertionMode=o.IN_FRAMESET;return}case a.SELECT:{this._resetInsertionModeForSelect(t);return}case a.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case a.HTML:{this.insertionMode=this.headElement?o.AFTER_HEAD:o.BEFORE_HEAD;return}case a.TD:case a.TH:{if(t>0){this.insertionMode=o.IN_CELL;return}break}case a.HEAD:{if(t>0){this.insertionMode=o.IN_HEAD;return}break}}this.insertionMode=o.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let u=t-1;u>0;u--){const s=this.openElements.tagIDs[u];if(s===a.TEMPLATE)break;if(s===a.TABLE){this.insertionMode=o.IN_SELECT_IN_TABLE;return}}this.insertionMode=o.IN_SELECT}_isElementCausesFosterParenting(t){return ea.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const u=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case a.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(u)===g.HTML)return{parent:this.treeAdapter.getTemplateContent(u),beforeElement:null};break}case a.TABLE:{const s=this.treeAdapter.getParentNode(u);return s?{parent:s,beforeElement:u}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const u=this._findFosterParentingLocation();u.beforeElement?this.treeAdapter.insertBefore(u.parent,t,u.beforeElement):this.treeAdapter.appendChild(u.parent,t)}_isSpecialElement(t,u){const s=this.treeAdapter.getNamespaceURI(t);return dA[s].has(u)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){So(this,t);return}switch(this.insertionMode){case o.INITIAL:{Le(this,t);break}case o.BEFORE_HTML:{we(this,t);break}case o.BEFORE_HEAD:{Me(this,t);break}case o.IN_HEAD:{Pe(this,t);break}case o.IN_HEAD_NO_SCRIPT:{ke(this,t);break}case o.AFTER_HEAD:{He(this,t);break}case o.IN_BODY:case o.IN_CAPTION:case o.IN_CELL:case o.IN_TEMPLATE:{sa(this,t);break}case o.TEXT:case o.IN_SELECT:case o.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case o.IN_TABLE:case o.IN_TABLE_BODY:case o.IN_ROW:{Pt(this,t);break}case o.IN_TABLE_TEXT:{ca(this,t);break}case o.IN_COLUMN_GROUP:{lt(this,t);break}case o.AFTER_BODY:{ft(this,t);break}case o.AFTER_AFTER_BODY:{st(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){No(this,t);return}switch(this.insertionMode){case o.INITIAL:{Le(this,t);break}case o.BEFORE_HTML:{we(this,t);break}case o.BEFORE_HEAD:{Me(this,t);break}case o.IN_HEAD:{Pe(this,t);break}case o.IN_HEAD_NO_SCRIPT:{ke(this,t);break}case o.AFTER_HEAD:{He(this,t);break}case o.TEXT:{this._insertCharacters(t);break}case o.IN_TABLE:case o.IN_TABLE_BODY:case o.IN_ROW:{Pt(this,t);break}case o.IN_COLUMN_GROUP:{lt(this,t);break}case o.AFTER_BODY:{ft(this,t);break}case o.AFTER_AFTER_BODY:{st(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){qt(this,t);return}switch(this.insertionMode){case o.INITIAL:case o.BEFORE_HTML:case o.BEFORE_HEAD:case o.IN_HEAD:case o.IN_HEAD_NO_SCRIPT:case o.AFTER_HEAD:case o.IN_BODY:case o.IN_TABLE:case o.IN_CAPTION:case o.IN_COLUMN_GROUP:case o.IN_TABLE_BODY:case o.IN_ROW:case o.IN_CELL:case o.IN_SELECT:case o.IN_SELECT_IN_TABLE:case o.IN_TEMPLATE:case o.IN_FRAMESET:case o.AFTER_FRAMESET:{qt(this,t);break}case o.IN_TABLE_TEXT:{ye(this,t);break}case o.AFTER_BODY:{tc(this,t);break}case o.AFTER_AFTER_BODY:case o.AFTER_AFTER_FRAMESET:{uc(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case o.INITIAL:{sc(this,t);break}case o.BEFORE_HEAD:case o.IN_HEAD:case o.IN_HEAD_NO_SCRIPT:case o.AFTER_HEAD:{this._err(t,E.misplacedDoctype);break}case o.IN_TABLE_TEXT:{ye(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,E.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Do(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case o.INITIAL:{Le(this,t);break}case o.BEFORE_HTML:{ac(this,t);break}case o.BEFORE_HEAD:{ic(this,t);break}case o.IN_HEAD:{V(this,t);break}case o.IN_HEAD_NO_SCRIPT:{cc(this,t);break}case o.AFTER_HEAD:{hc(this,t);break}case o.IN_BODY:{Y(this,t);break}case o.IN_TABLE:{_e(this,t);break}case o.IN_TABLE_TEXT:{ye(this,t);break}case o.IN_CAPTION:{ro(this,t);break}case o.IN_COLUMN_GROUP:{Iu(this,t);break}case o.IN_TABLE_BODY:{Nt(this,t);break}case o.IN_ROW:{St(this,t);break}case o.IN_CELL:{oo(this,t);break}case o.IN_SELECT:{da(this,t);break}case o.IN_SELECT_IN_TABLE:{lo(this,t);break}case o.IN_TEMPLATE:{Eo(this,t);break}case o.AFTER_BODY:{go(this,t);break}case o.IN_FRAMESET:{mo(this,t);break}case o.AFTER_FRAMESET:{Io(this,t);break}case o.AFTER_AFTER_BODY:{po(this,t);break}case o.AFTER_AFTER_FRAMESET:{_o(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Bo(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case o.INITIAL:{Le(this,t);break}case o.BEFORE_HTML:{nc(this,t);break}case o.BEFORE_HEAD:{rc(this,t);break}case o.IN_HEAD:{Ac(this,t);break}case o.IN_HEAD_NO_SCRIPT:{oc(this,t);break}case o.AFTER_HEAD:{dc(this,t);break}case o.IN_BODY:{_t(this,t);break}case o.TEXT:{jc(this,t);break}case o.IN_TABLE:{Ge(this,t);break}case o.IN_TABLE_TEXT:{ye(this,t);break}case o.IN_CAPTION:{Ao(this,t);break}case o.IN_COLUMN_GROUP:{co(this,t);break}case o.IN_TABLE_BODY:{jt(this,t);break}case o.IN_ROW:{ha(this,t);break}case o.IN_CELL:{ho(this,t);break}case o.IN_SELECT:{la(this,t);break}case o.IN_SELECT_IN_TABLE:{fo(this,t);break}case o.IN_TEMPLATE:{To(this,t);break}case o.AFTER_BODY:{Ea(this,t);break}case o.IN_FRAMESET:{bo(this,t);break}case o.AFTER_FRAMESET:{Co(this,t);break}case o.AFTER_AFTER_BODY:{st(this,t);break}}}onEof(t){switch(this.insertionMode){case o.INITIAL:{Le(this,t);break}case o.BEFORE_HTML:{we(this,t);break}case o.BEFORE_HEAD:{Me(this,t);break}case o.IN_HEAD:{Pe(this,t);break}case o.IN_HEAD_NO_SCRIPT:{ke(this,t);break}case o.AFTER_HEAD:{He(this,t);break}case o.IN_BODY:case o.IN_TABLE:case o.IN_CAPTION:case o.IN_COLUMN_GROUP:case o.IN_TABLE_BODY:case o.IN_ROW:case o.IN_CELL:case o.IN_SELECT:case o.IN_SELECT_IN_TABLE:{ra(this,t);break}case o.TEXT:{zc(this,t);break}case o.IN_TABLE_TEXT:{ye(this,t);break}case o.IN_TEMPLATE:{fa(this,t);break}case o.AFTER_BODY:case o.IN_FRAMESET:case o.AFTER_FRAMESET:case o.AFTER_AFTER_BODY:case o.AFTER_AFTER_FRAMESET:{bu(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case o.IN_HEAD:case o.IN_HEAD_NO_SCRIPT:case o.AFTER_HEAD:case o.TEXT:case o.IN_COLUMN_GROUP:case o.IN_SELECT:case o.IN_SELECT_IN_TABLE:case o.IN_FRAMESET:case o.AFTER_FRAMESET:{this._insertCharacters(t);break}case o.IN_BODY:case o.IN_CAPTION:case o.IN_CELL:case o.IN_TEMPLATE:case o.AFTER_BODY:case o.AFTER_AFTER_BODY:case o.AFTER_AFTER_FRAMESET:{ua(this,t);break}case o.IN_TABLE:case o.IN_TABLE_BODY:case o.IN_ROW:{Pt(this,t);break}case o.IN_TABLE_TEXT:{Aa(this,t);break}}}}function VA(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):ia(e,t),u}function qA(e,t){let u=null,s=e.openElements.stackTop;for(;s>=0;s--){const n=e.openElements.items[s];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[s])&&(u=n)}return u||(e.openElements.shortenToLength(Math.max(s,0)),e.activeFormattingElements.removeEntry(t)),u}function jA(e,t,u){let s=t,n=e.openElements.getCommonAncestor(t);for(let i=0,r=n;r!==u;i++,r=n){n=e.openElements.getCommonAncestor(r);const h=e.activeFormattingElements.getElementEntry(r),d=h&&i>=ZA;!h||d?(d&&e.activeFormattingElements.removeEntry(h),e.openElements.remove(r)):(r=zA(e,h),s===t&&(e.activeFormattingElements.bookmark=h),e.treeAdapter.detachNode(s),e.treeAdapter.appendChild(r,s),s=r)}return s}function zA(e,t){const u=e.treeAdapter.getNamespaceURI(t.element),s=e.treeAdapter.createElement(t.token.tagName,u,t.token.attrs);return e.openElements.replace(t.element,s),t.element=s,s}function $A(e,t,u){const s=e.treeAdapter.getTagName(t),n=Ct(s);if(e._isElementCausesFosterParenting(n))e._fosterParentElement(u);else{const i=e.treeAdapter.getNamespaceURI(t);n===a.TEMPLATE&&i===g.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,u)}}function ec(e,t,u){const s=e.treeAdapter.getNamespaceURI(u.element),{token:n}=u,i=e.treeAdapter.createElement(n.tagName,s,n.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n),e.activeFormattingElements.removeEntry(u),e.openElements.remove(u.element),e.openElements.insertAfter(t,i,n.tagID)}function mu(e,t){for(let u=0;u<JA;u++){const s=VA(e,t);if(!s)break;const n=qA(e,s);if(!n)break;e.activeFormattingElements.bookmark=s;const i=jA(e,n,s.element),r=e.openElements.getCommonAncestor(s.element);e.treeAdapter.detachNode(i),r&&$A(e,r,i),ec(e,n,s)}}function qt(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function tc(e,t){e._appendCommentNode(t,e.openElements.items[0])}function uc(e,t){e._appendCommentNode(t,e.document)}function bu(e,t){if(e.stopped=!0,t.location){const u=e.fragmentContext?0:2;for(let s=e.openElements.stackTop;s>=u;s--)e._setEndLocation(e.openElements.items[s],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const s=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(s);if(n&&!n.endTag&&(e._setEndLocation(s,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(i);r&&!r.endTag&&e._setEndLocation(i,t)}}}}function sc(e,t){e._setDocumentType(t);const u=t.forceQuirks?J.QUIRKS:FA(t);xA(t)||e._err(t,E.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,u),e.insertionMode=o.BEFORE_HTML}function Le(e,t){e._err(t,E.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,J.QUIRKS),e.insertionMode=o.BEFORE_HTML,e._processToken(t)}function ac(e,t){t.tagID===a.HTML?(e._insertElement(t,g.HTML),e.insertionMode=o.BEFORE_HEAD):we(e,t)}function nc(e,t){const u=t.tagID;(u===a.HTML||u===a.HEAD||u===a.BODY||u===a.BR)&&we(e,t)}function we(e,t){e._insertFakeRootElement(),e.insertionMode=o.BEFORE_HEAD,e._processToken(t)}function ic(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.HEAD:{e._insertElement(t,g.HTML),e.headElement=e.openElements.current,e.insertionMode=o.IN_HEAD;break}default:Me(e,t)}}function rc(e,t){const u=t.tagID;u===a.HEAD||u===a.BODY||u===a.HTML||u===a.BR?Me(e,t):e._err(t,E.endTagWithoutMatchingOpenElement)}function Me(e,t){e._insertFakeElement(f.HEAD,a.HEAD),e.headElement=e.openElements.current,e.insertionMode=o.IN_HEAD,e._processToken(t)}function V(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:{e._appendElement(t,g.HTML),t.ackSelfClosing=!0;break}case a.TITLE:{e._switchToTextParsing(t,W.RCDATA);break}case a.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,W.RAWTEXT):(e._insertElement(t,g.HTML),e.insertionMode=o.IN_HEAD_NO_SCRIPT);break}case a.NOFRAMES:case a.STYLE:{e._switchToTextParsing(t,W.RAWTEXT);break}case a.SCRIPT:{e._switchToTextParsing(t,W.SCRIPT_DATA);break}case a.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=o.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(o.IN_TEMPLATE);break}case a.HEAD:{e._err(t,E.misplacedStartTagForHeadElement);break}default:Pe(e,t)}}function Ac(e,t){switch(t.tagID){case a.HEAD:{e.openElements.pop(),e.insertionMode=o.AFTER_HEAD;break}case a.BODY:case a.BR:case a.HTML:{Pe(e,t);break}case a.TEMPLATE:{ge(e,t);break}default:e._err(t,E.endTagWithoutMatchingOpenElement)}}function ge(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==a.TEMPLATE&&e._err(t,E.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,E.endTagWithoutMatchingOpenElement)}function Pe(e,t){e.openElements.pop(),e.insertionMode=o.AFTER_HEAD,e._processToken(t)}function cc(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.BASEFONT:case a.BGSOUND:case a.HEAD:case a.LINK:case a.META:case a.NOFRAMES:case a.STYLE:{V(e,t);break}case a.NOSCRIPT:{e._err(t,E.nestedNoscriptInHead);break}default:ke(e,t)}}function oc(e,t){switch(t.tagID){case a.NOSCRIPT:{e.openElements.pop(),e.insertionMode=o.IN_HEAD;break}case a.BR:{ke(e,t);break}default:e._err(t,E.endTagWithoutMatchingOpenElement)}}function ke(e,t){const u=t.type===O.EOF?E.openElementsLeftAfterEof:E.disallowedContentInNoscriptInHead;e._err(t,u),e.openElements.pop(),e.insertionMode=o.IN_HEAD,e._processToken(t)}function hc(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.BODY:{e._insertElement(t,g.HTML),e.framesetOk=!1,e.insertionMode=o.IN_BODY;break}case a.FRAMESET:{e._insertElement(t,g.HTML),e.insertionMode=o.IN_FRAMESET;break}case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{e._err(t,E.abandonedHeadElementChild),e.openElements.push(e.headElement,a.HEAD),V(e,t),e.openElements.remove(e.headElement);break}case a.HEAD:{e._err(t,E.misplacedStartTagForHeadElement);break}default:He(e,t)}}function dc(e,t){switch(t.tagID){case a.BODY:case a.HTML:case a.BR:{He(e,t);break}case a.TEMPLATE:{ge(e,t);break}default:e._err(t,E.endTagWithoutMatchingOpenElement)}}function He(e,t){e._insertFakeElement(f.BODY,a.BODY),e.insertionMode=o.IN_BODY,pt(e,t)}function pt(e,t){switch(t.type){case O.CHARACTER:{sa(e,t);break}case O.WHITESPACE_CHARACTER:{ua(e,t);break}case O.COMMENT:{qt(e,t);break}case O.START_TAG:{Y(e,t);break}case O.END_TAG:{_t(e,t);break}case O.EOF:{ra(e,t);break}}}function ua(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function sa(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function lc(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function fc(e,t){const u=e.openElements.tryPeekProperlyNestedBodyElement();u&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(u,t.attrs))}function Ec(e,t){const u=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&u&&(e.treeAdapter.detachNode(u),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,g.HTML),e.insertionMode=o.IN_FRAMESET)}function Tc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,g.HTML)}function gc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Vt.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,g.HTML)}function mc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,g.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function bc(e,t){const u=e.openElements.tmplCount>0;(!e.formElement||u)&&(e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,g.HTML),u||(e.formElement=e.openElements.current))}function Ic(e,t){e.framesetOk=!1;const u=t.tagID;for(let s=e.openElements.stackTop;s>=0;s--){const n=e.openElements.tagIDs[s];if(u===a.LI&&n===a.LI||(u===a.DD||u===a.DT)&&(n===a.DD||n===a.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==a.ADDRESS&&n!==a.DIV&&n!==a.P&&e._isSpecialElement(e.openElements.items[s],n))break}e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,g.HTML)}function Cc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,g.HTML),e.tokenizer.state=W.PLAINTEXT}function pc(e,t){e.openElements.hasInScope(a.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.framesetOk=!1}function _c(e,t){const u=e.activeFormattingElements.getElementEntryInScopeWithTagName(f.A);u&&(mu(e,t),e.openElements.remove(u.element),e.activeFormattingElements.removeEntry(u)),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Nc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Sc(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(a.NOBR)&&(mu(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,g.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Dc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Bc(e,t){e.treeAdapter.getDocumentMode(e.document)!==J.QUIRKS&&e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._insertElement(t,g.HTML),e.framesetOk=!1,e.insertionMode=o.IN_TABLE}function aa(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,g.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function na(e){const t=Js(e,le.TYPE);return t!=null&&t.toLowerCase()===WA}function Oc(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,g.HTML),na(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Rc(e,t){e._appendElement(t,g.HTML),t.ackSelfClosing=!0}function Lc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._appendElement(t,g.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function yc(e,t){t.tagName=f.IMG,t.tagID=a.IMG,aa(e,t)}function xc(e,t){e._insertElement(t,g.HTML),e.skipNextNewLine=!0,e.tokenizer.state=W.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=o.TEXT}function Fc(e,t){e.openElements.hasInButtonScope(a.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,W.RAWTEXT)}function wc(e,t){e.framesetOk=!1,e._switchToTextParsing(t,W.RAWTEXT)}function ju(e,t){e._switchToTextParsing(t,W.RAWTEXT)}function Mc(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===o.IN_TABLE||e.insertionMode===o.IN_CAPTION||e.insertionMode===o.IN_TABLE_BODY||e.insertionMode===o.IN_ROW||e.insertionMode===o.IN_CELL?o.IN_SELECT_IN_TABLE:o.IN_SELECT}function Pc(e,t){e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML)}function kc(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,g.HTML)}function Hc(e,t){e.openElements.hasInScope(a.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(a.RTC),e._insertElement(t,g.HTML)}function Uc(e,t){e._reconstructActiveFormattingElements(),zs(t),gu(t),t.selfClosing?e._appendElement(t,g.MATHML):e._insertElement(t,g.MATHML),t.ackSelfClosing=!0}function Qc(e,t){e._reconstructActiveFormattingElements(),$s(t),gu(t),t.selfClosing?e._appendElement(t,g.SVG):e._insertElement(t,g.SVG),t.ackSelfClosing=!0}function zu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,g.HTML)}function Y(e,t){switch(t.tagID){case a.I:case a.S:case a.B:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.SMALL:case a.STRIKE:case a.STRONG:{Nc(e,t);break}case a.A:{_c(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{gc(e,t);break}case a.P:case a.DL:case a.OL:case a.UL:case a.DIV:case a.DIR:case a.NAV:case a.MAIN:case a.MENU:case a.ASIDE:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.DETAILS:case a.ADDRESS:case a.ARTICLE:case a.SEARCH:case a.SECTION:case a.SUMMARY:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{Tc(e,t);break}case a.LI:case a.DD:case a.DT:{Ic(e,t);break}case a.BR:case a.IMG:case a.WBR:case a.AREA:case a.EMBED:case a.KEYGEN:{aa(e,t);break}case a.HR:{Lc(e,t);break}case a.RB:case a.RTC:{kc(e,t);break}case a.RT:case a.RP:{Hc(e,t);break}case a.PRE:case a.LISTING:{mc(e,t);break}case a.XMP:{Fc(e,t);break}case a.SVG:{Qc(e,t);break}case a.HTML:{lc(e,t);break}case a.BASE:case a.LINK:case a.META:case a.STYLE:case a.TITLE:case a.SCRIPT:case a.BGSOUND:case a.BASEFONT:case a.TEMPLATE:{V(e,t);break}case a.BODY:{fc(e,t);break}case a.FORM:{bc(e,t);break}case a.NOBR:{Sc(e,t);break}case a.MATH:{Uc(e,t);break}case a.TABLE:{Bc(e,t);break}case a.INPUT:{Oc(e,t);break}case a.PARAM:case a.TRACK:case a.SOURCE:{Rc(e,t);break}case a.IMAGE:{yc(e,t);break}case a.BUTTON:{pc(e,t);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{Dc(e,t);break}case a.IFRAME:{wc(e,t);break}case a.SELECT:{Mc(e,t);break}case a.OPTION:case a.OPTGROUP:{Pc(e,t);break}case a.NOEMBED:case a.NOFRAMES:{ju(e,t);break}case a.FRAMESET:{Ec(e,t);break}case a.TEXTAREA:{xc(e,t);break}case a.NOSCRIPT:{e.options.scriptingEnabled?ju(e,t):zu(e,t);break}case a.PLAINTEXT:{Cc(e,t);break}case a.COL:case a.TH:case a.TD:case a.TR:case a.HEAD:case a.FRAME:case a.TBODY:case a.TFOOT:case a.THEAD:case a.CAPTION:case a.COLGROUP:break;default:zu(e,t)}}function Yc(e,t){if(e.openElements.hasInScope(a.BODY)&&(e.insertionMode=o.AFTER_BODY,e.options.sourceCodeLocationInfo)){const u=e.openElements.tryPeekProperlyNestedBodyElement();u&&e._setEndLocation(u,t)}}function vc(e,t){e.openElements.hasInScope(a.BODY)&&(e.insertionMode=o.AFTER_BODY,Ea(e,t))}function Kc(e,t){const u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u))}function Gc(e){const t=e.openElements.tmplCount>0,{formElement:u}=e;t||(e.formElement=null),(u||t)&&e.openElements.hasInScope(a.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(a.FORM):u&&e.openElements.remove(u))}function Wc(e){e.openElements.hasInButtonScope(a.P)||e._insertFakeElement(f.P,a.P),e._closePElement()}function Jc(e){e.openElements.hasInListItemScope(a.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(a.LI),e.openElements.popUntilTagNamePopped(a.LI))}function Zc(e,t){const u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTagsWithExclusion(u),e.openElements.popUntilTagNamePopped(u))}function Xc(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Vc(e,t){const u=t.tagID;e.openElements.hasInScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u),e.activeFormattingElements.clearToLastMarker())}function qc(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(f.BR,a.BR),e.openElements.pop(),e.framesetOk=!1}function ia(e,t){const u=t.tagName,s=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n],r=e.openElements.tagIDs[n];if(s===r&&(s!==a.UNKNOWN||e.treeAdapter.getTagName(i)===u)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(i,r))break}}function _t(e,t){switch(t.tagID){case a.A:case a.B:case a.I:case a.S:case a.U:case a.EM:case a.TT:case a.BIG:case a.CODE:case a.FONT:case a.NOBR:case a.SMALL:case a.STRIKE:case a.STRONG:{mu(e,t);break}case a.P:{Wc(e);break}case a.DL:case a.UL:case a.OL:case a.DIR:case a.DIV:case a.NAV:case a.PRE:case a.MAIN:case a.MENU:case a.ASIDE:case a.BUTTON:case a.CENTER:case a.FIGURE:case a.FOOTER:case a.HEADER:case a.HGROUP:case a.DIALOG:case a.ADDRESS:case a.ARTICLE:case a.DETAILS:case a.SEARCH:case a.SECTION:case a.SUMMARY:case a.LISTING:case a.FIELDSET:case a.BLOCKQUOTE:case a.FIGCAPTION:{Kc(e,t);break}case a.LI:{Jc(e);break}case a.DD:case a.DT:{Zc(e,t);break}case a.H1:case a.H2:case a.H3:case a.H4:case a.H5:case a.H6:{Xc(e);break}case a.BR:{qc(e);break}case a.BODY:{Yc(e,t);break}case a.HTML:{vc(e,t);break}case a.FORM:{Gc(e);break}case a.APPLET:case a.OBJECT:case a.MARQUEE:{Vc(e,t);break}case a.TEMPLATE:{ge(e,t);break}default:ia(e,t)}}function ra(e,t){e.tmplInsertionModeStack.length>0?fa(e,t):bu(e,t)}function jc(e,t){var u;t.tagID===a.SCRIPT&&((u=e.scriptHandler)===null||u===void 0||u.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function zc(e,t){e._err(t,E.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Pt(e,t){if(e.openElements.currentTagId!==void 0&&ea.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=o.IN_TABLE_TEXT,t.type){case O.CHARACTER:{ca(e,t);break}case O.WHITESPACE_CHARACTER:{Aa(e,t);break}}else Ve(e,t)}function $c(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,g.HTML),e.insertionMode=o.IN_CAPTION}function eo(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,g.HTML),e.insertionMode=o.IN_COLUMN_GROUP}function to(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(f.COLGROUP,a.COLGROUP),e.insertionMode=o.IN_COLUMN_GROUP,Iu(e,t)}function uo(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,g.HTML),e.insertionMode=o.IN_TABLE_BODY}function so(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(f.TBODY,a.TBODY),e.insertionMode=o.IN_TABLE_BODY,Nt(e,t)}function ao(e,t){e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function no(e,t){na(t)?e._appendElement(t,g.HTML):Ve(e,t),t.ackSelfClosing=!0}function io(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,g.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function _e(e,t){switch(t.tagID){case a.TD:case a.TH:case a.TR:{so(e,t);break}case a.STYLE:case a.SCRIPT:case a.TEMPLATE:{V(e,t);break}case a.COL:{to(e,t);break}case a.FORM:{io(e,t);break}case a.TABLE:{ao(e,t);break}case a.TBODY:case a.TFOOT:case a.THEAD:{uo(e,t);break}case a.INPUT:{no(e,t);break}case a.CAPTION:{$c(e,t);break}case a.COLGROUP:{eo(e,t);break}default:Ve(e,t)}}function Ge(e,t){switch(t.tagID){case a.TABLE:{e.openElements.hasInTableScope(a.TABLE)&&(e.openElements.popUntilTagNamePopped(a.TABLE),e._resetInsertionMode());break}case a.TEMPLATE:{ge(e,t);break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:Ve(e,t)}}function Ve(e,t){const u=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,pt(e,t),e.fosterParentingEnabled=u}function Aa(e,t){e.pendingCharacterTokens.push(t)}function ca(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ye(e,t){let u=0;if(e.hasNonWhitespacePendingCharacterToken)for(;u<e.pendingCharacterTokens.length;u++)Ve(e,e.pendingCharacterTokens[u]);else for(;u<e.pendingCharacterTokens.length;u++)e._insertCharacters(e.pendingCharacterTokens[u]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const oa=new Set([a.CAPTION,a.COL,a.COLGROUP,a.TBODY,a.TD,a.TFOOT,a.TH,a.THEAD,a.TR]);function ro(e,t){const u=t.tagID;oa.has(u)?e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=o.IN_TABLE,_e(e,t)):Y(e,t)}function Ao(e,t){const u=t.tagID;switch(u){case a.CAPTION:case a.TABLE:{e.openElements.hasInTableScope(a.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(a.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=o.IN_TABLE,u===a.TABLE&&Ge(e,t));break}case a.BODY:case a.COL:case a.COLGROUP:case a.HTML:case a.TBODY:case a.TD:case a.TFOOT:case a.TH:case a.THEAD:case a.TR:break;default:_t(e,t)}}function Iu(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.COL:{e._appendElement(t,g.HTML),t.ackSelfClosing=!0;break}case a.TEMPLATE:{V(e,t);break}default:lt(e,t)}}function co(e,t){switch(t.tagID){case a.COLGROUP:{e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=o.IN_TABLE);break}case a.TEMPLATE:{ge(e,t);break}case a.COL:break;default:lt(e,t)}}function lt(e,t){e.openElements.currentTagId===a.COLGROUP&&(e.openElements.pop(),e.insertionMode=o.IN_TABLE,e._processToken(t))}function Nt(e,t){switch(t.tagID){case a.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,g.HTML),e.insertionMode=o.IN_ROW;break}case a.TH:case a.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(f.TR,a.TR),e.insertionMode=o.IN_ROW,St(e,t);break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE,_e(e,t));break}default:_e(e,t)}}function jt(e,t){const u=t.tagID;switch(t.tagID){case a.TBODY:case a.TFOOT:case a.THEAD:{e.openElements.hasInTableScope(u)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE);break}case a.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE,Ge(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:case a.TR:break;default:Ge(e,t)}}function St(e,t){switch(t.tagID){case a.TH:case a.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,g.HTML),e.insertionMode=o.IN_CELL,e.activeFormattingElements.insertMarker();break}case a.CAPTION:case a.COL:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE_BODY,Nt(e,t));break}default:_e(e,t)}}function ha(e,t){switch(t.tagID){case a.TR:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE_BODY);break}case a.TABLE:{e.openElements.hasInTableScope(a.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE_BODY,jt(e,t));break}case a.TBODY:case a.TFOOT:case a.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(a.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=o.IN_TABLE_BODY,jt(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:case a.TD:case a.TH:break;default:Ge(e,t)}}function oo(e,t){const u=t.tagID;oa.has(u)?(e.openElements.hasInTableScope(a.TD)||e.openElements.hasInTableScope(a.TH))&&(e._closeTableCell(),St(e,t)):Y(e,t)}function ho(e,t){const u=t.tagID;switch(u){case a.TD:case a.TH:{e.openElements.hasInTableScope(u)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=o.IN_ROW);break}case a.TABLE:case a.TBODY:case a.TFOOT:case a.THEAD:case a.TR:{e.openElements.hasInTableScope(u)&&(e._closeTableCell(),ha(e,t));break}case a.BODY:case a.CAPTION:case a.COL:case a.COLGROUP:case a.HTML:break;default:_t(e,t)}}function da(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e._insertElement(t,g.HTML);break}case a.OPTGROUP:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop(),e._insertElement(t,g.HTML);break}case a.HR:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop(),e._appendElement(t,g.HTML),t.ackSelfClosing=!0;break}case a.INPUT:case a.KEYGEN:case a.TEXTAREA:case a.SELECT:{e.openElements.hasInSelectScope(a.SELECT)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),t.tagID!==a.SELECT&&e._processStartTag(t));break}case a.SCRIPT:case a.TEMPLATE:{V(e,t);break}}}function la(e,t){switch(t.tagID){case a.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===a.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===a.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===a.OPTGROUP&&e.openElements.pop();break}case a.OPTION:{e.openElements.currentTagId===a.OPTION&&e.openElements.pop();break}case a.SELECT:{e.openElements.hasInSelectScope(a.SELECT)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode());break}case a.TEMPLATE:{ge(e,t);break}}}function lo(e,t){const u=t.tagID;u===a.CAPTION||u===a.TABLE||u===a.TBODY||u===a.TFOOT||u===a.THEAD||u===a.TR||u===a.TD||u===a.TH?(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e._processStartTag(t)):da(e,t)}function fo(e,t){const u=t.tagID;u===a.CAPTION||u===a.TABLE||u===a.TBODY||u===a.TFOOT||u===a.THEAD||u===a.TR||u===a.TD||u===a.TH?e.openElements.hasInTableScope(u)&&(e.openElements.popUntilTagNamePopped(a.SELECT),e._resetInsertionMode(),e.onEndTag(t)):la(e,t)}function Eo(e,t){switch(t.tagID){case a.BASE:case a.BASEFONT:case a.BGSOUND:case a.LINK:case a.META:case a.NOFRAMES:case a.SCRIPT:case a.STYLE:case a.TEMPLATE:case a.TITLE:{V(e,t);break}case a.CAPTION:case a.COLGROUP:case a.TBODY:case a.TFOOT:case a.THEAD:{e.tmplInsertionModeStack[0]=o.IN_TABLE,e.insertionMode=o.IN_TABLE,_e(e,t);break}case a.COL:{e.tmplInsertionModeStack[0]=o.IN_COLUMN_GROUP,e.insertionMode=o.IN_COLUMN_GROUP,Iu(e,t);break}case a.TR:{e.tmplInsertionModeStack[0]=o.IN_TABLE_BODY,e.insertionMode=o.IN_TABLE_BODY,Nt(e,t);break}case a.TD:case a.TH:{e.tmplInsertionModeStack[0]=o.IN_ROW,e.insertionMode=o.IN_ROW,St(e,t);break}default:e.tmplInsertionModeStack[0]=o.IN_BODY,e.insertionMode=o.IN_BODY,Y(e,t)}}function To(e,t){t.tagID===a.TEMPLATE&&ge(e,t)}function fa(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(a.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):bu(e,t)}function go(e,t){t.tagID===a.HTML?Y(e,t):ft(e,t)}function Ea(e,t){var u;if(t.tagID===a.HTML){if(e.fragmentContext||(e.insertionMode=o.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===a.HTML){e._setEndLocation(e.openElements.items[0],t);const s=e.openElements.items[1];s&&!(!((u=e.treeAdapter.getNodeSourceCodeLocation(s))===null||u===void 0)&&u.endTag)&&e._setEndLocation(s,t)}}else ft(e,t)}function ft(e,t){e.insertionMode=o.IN_BODY,pt(e,t)}function mo(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.FRAMESET:{e._insertElement(t,g.HTML);break}case a.FRAME:{e._appendElement(t,g.HTML),t.ackSelfClosing=!0;break}case a.NOFRAMES:{V(e,t);break}}}function bo(e,t){t.tagID===a.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==a.FRAMESET&&(e.insertionMode=o.AFTER_FRAMESET))}function Io(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.NOFRAMES:{V(e,t);break}}}function Co(e,t){t.tagID===a.HTML&&(e.insertionMode=o.AFTER_AFTER_FRAMESET)}function po(e,t){t.tagID===a.HTML?Y(e,t):st(e,t)}function st(e,t){e.insertionMode=o.IN_BODY,pt(e,t)}function _o(e,t){switch(t.tagID){case a.HTML:{Y(e,t);break}case a.NOFRAMES:{V(e,t);break}}}function No(e,t){t.chars=y,e._insertCharacters(t)}function So(e,t){e._insertCharacters(t),e.framesetOk=!1}function Ta(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==g.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Do(e,t){if(QA(t))Ta(e),e._startTagOutsideForeignContent(t);else{const u=e._getAdjustedCurrentElement(),s=e.treeAdapter.getNamespaceURI(u);s===g.MATHML?zs(t):s===g.SVG&&(YA(t),$s(t)),gu(t),t.selfClosing?e._appendElement(t,s):e._insertElement(t,s),t.ackSelfClosing=!0}}function Bo(e,t){if(t.tagID===a.P||t.tagID===a.BR){Ta(e),e._endTagOutsideForeignContent(t);return}for(let u=e.openElements.stackTop;u>0;u--){const s=e.openElements.items[u];if(e.treeAdapter.getNamespaceURI(s)===g.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(s);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(u);break}}}function ga(e,t){return function(s){let n,i=0,r="";for(;n=e.exec(s);)i!==n.index&&(r+=s.substring(i,n.index)),r+=t.get(n[0].charCodeAt(0)),i=n.index+1;return r+s.substring(i)}}const Oo=ga(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Ro=ga(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),Lo=new Set([f.AREA,f.BASE,f.BASEFONT,f.BGSOUND,f.BR,f.COL,f.EMBED,f.FRAME,f.HR,f.IMG,f.INPUT,f.KEYGEN,f.LINK,f.META,f.PARAM,f.SOURCE,f.TRACK,f.WBR]);function yo(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===g.HTML&&Lo.has(t.treeAdapter.getTagName(e))}const xo={treeAdapter:te,scriptingEnabled:!0};function Fo(e,t){const u={...xo,...t};return ma(e,u)}function wo(e,t){let u="";const s=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===f.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===g.HTML?t.treeAdapter.getTemplateContent(e):e,n=t.treeAdapter.getChildNodes(s);if(n)for(const i of n)u+=ma(i,t);return u}function ma(e,t){return t.treeAdapter.isElementNode(e)?Mo(e,t):t.treeAdapter.isTextNode(e)?ko(e,t):t.treeAdapter.isCommentNode(e)?Ho(e,t):t.treeAdapter.isDocumentTypeNode(e)?Uo(e,t):""}function Mo(e,t){const u=t.treeAdapter.getTagName(e);return`<${u}${Po(e,t)}>${yo(e,t)?"":`${wo(e,t)}</${u}>`}`}function Po(e,{treeAdapter:t}){let u="";for(const s of t.getAttrList(e)){if(u+=" ",s.namespace)switch(s.namespace){case g.XML:{u+=`xml:${s.name}`;break}case g.XMLNS:{s.name!=="xmlns"&&(u+="xmlns:"),u+=s.name;break}case g.XLINK:{u+=`xlink:${s.name}`;break}default:u+=`${s.prefix}:${s.name}`}else u+=s.name;u+=`="${Oo(s.value)}"`}return u}function ko(e,t){const{treeAdapter:u}=t,s=u.getTextNodeContent(e),n=u.getParentNode(e),i=n&&u.isElementNode(n)&&u.getTagName(n);return i&&u.getNamespaceURI(n)===g.HTML&&fA(i,t.scriptingEnabled)?s:Ro(s)}function Ho(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function Uo(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function Qo(e,t){return ta.parse(e,t)}function Yo(e,t,u){typeof e=="string"&&(u=t,t=e,e=null);const s=ta.getFragmentParser(e,u);return s.tokenizer.write(t,!0),s.getFragment()}function $u(e){const t=e.includes('"')?"'":'"';return t+e+t}function vo(e,t,u){let s="!DOCTYPE ";return e&&(s+=e),t?s+=` PUBLIC ${$u(t)}`:u&&(s+=" SYSTEM"),u&&(s+=` ${$u(u)}`),s}const ne={isCommentNode:Tt,isElementNode:D,isTextNode:$,createDocument(){const e=new fe([]);return e["x-mode"]=J.NO_QUIRKS,e},createDocumentFragment(){return new fe([])},createElement(e,t,u){const s=Object.create(null),n=Object.create(null),i=Object.create(null);for(let h=0;h<u.length;h++){const d=u[h].name;s[d]=u[h].value,n[d]=u[h].namespace,i[d]=u[h].prefix}const r=new su(e,s,[]);return r.namespace=t,r["x-attribsNamespace"]=n,r["x-attribsPrefix"]=i,r},createCommentNode(e){return new eu(e)},createTextNode(e){return new Ue(e)},appendChild(e,t){const 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){const s=e.children.indexOf(u),{prev:n}=u;n&&(n.next=t,t.prev=n),u.prev=t,t.next=u,e.children.splice(s,0,t),t.parent=e},setTemplateContent(e,t){ne.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,u,s){const n=vo(t,u,s);let i=e.children.find(r=>Ut(r)&&r.name==="!doctype");i?i.data=n??null:(i=new tu("!doctype",n),ne.appendChild(e,i)),i["x-name"]=t,i["x-publicId"]=u,i["x-systemId"]=s},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){const t=e.parent.children.indexOf(e),{prev:u,next:s}=e;e.prev=null,e.next=null,u&&(u.next=s),s&&(s.prev=u),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){const u=e.children[e.children.length-1];u&&$(u)?u.data+=t:ne.appendChild(e,ne.createTextNode(t))},insertTextBefore(e,t,u){const s=e.children[e.children.indexOf(u)-1];s&&$(s)?s.data+=t:ne.insertBefore(e,ne.createTextNode(t),u)},adoptAttributes(e,t){for(let u=0;u<t.length;u++){const s=t[u].name;e.attribs[s]===void 0&&(e.attribs[s]=t[u].value,e["x-attribsNamespace"][s]=t[u].namespace,e["x-attribsPrefix"][s]=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 Ut(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 Ko(e,t,u,s){var n;return(n=t.treeAdapter)!==null&&n!==void 0||(t.treeAdapter=ne),t.scriptingEnabled!==!1&&(t.scriptingEnabled=!0),u?Qo(e,t):Yo(s,e,t)}const Go={treeAdapter:ne};function Wo(e){const t="length"in e?e:[e];for(let s=0;s<t.length;s+=1){const n=t[s];Ae(n)&&Array.prototype.splice.call(t,s,1,...n.children)}let u="";for(let s=0;s<t.length;s+=1){const n=t[s];u+=Fo(n,Go)}return u}const Jo=Tr((e,t,u,s)=>t._useHtmlParser2?Gn(e,t):Ko(e,t,u,s)),ba=Vr(Jo,(e,t)=>t._useHtmlParser2?gt(e,t):Wo(e)),Zo={"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64)",Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",Referer:"https://www.bizhihui.com/"};async function es(e,t=1e4){const u=new AbortController,s=setTimeout(()=>u.abort(),t);try{const n=await fetch(e,{headers:Zo,redirect:"manual",signal:u.signal}),i=await n.text();return{status:n.status,body:i}}finally{clearTimeout(s)}}function Xo(e){const t=ba(e),u=[],s=new Set;return t("a[href]").each((n,i)=>{const r=t(i).attr("href")||"";if(!/\.html(\?|$)/i.test(r))return;const h=r.toLowerCase();if(h.includes("/about")||h.includes("/contact"))return;let d=r;/^https?:\/\//i.test(r)||(d=`https://www.bizhihui.com${r.startsWith("/")?"":"/"}${r}`);let l="";const T=t(i).find("img").first();if(T.length){const I=T.attr("data-original")||T.attr("data-src")||T.attr("data-lazy-src")||T.attr("src")||"";I&&!/^data:/i.test(I)&&(l=/^https?:\/\//i.test(I)?I:`https://www.bizhihui.com${I.startsWith("/")?"":"/"}${I}`)}!l||s.has(d)||(s.add(d),u.push({thumb:l,detail:d}))}),u}function Vo(e,t){const u=ba(e),s=[],n=new Set;function i(h){try{return/^https?:\/\//i.test(h)?h:h.startsWith("//")?"https:"+h:new URL(h,t).toString()}catch{return h}}function r(h,d){const l=i(h);n.has(l)||/(logo|favicon|sprite|banner|header|footer|watermark|placeholder)/i.test(l)||(n.add(l),s.push({label:d,url:l}))}return u("a[href]").each((h,d)=>{const l=u(d).attr("href")||"";if(!/\.(jpe?g|png|webp|gif|bmp)(?:$|[?#])/i.test(l))return;const I=u(d).text().trim().match(/[((]\s*(\d+)\s*[x×]\s*(\d+)\s*[))]/);if(I){const p=`${I[1]}×${I[2]}`;r(l,p);return}const C=l.match(/w_(\d+),h_(\d+)/);if(C){const p=`${C[1]}×${C[2]}`;r(l,p);return}}),s.length===0&&u("img").each((h,d)=>{const l=u(d);for(const T of["data-original","data-src","data-zoom","data-full","src"]){const I=l.attr(T);if(I&&/\.(jpe?g|png|webp|gif)/i.test(I)&&!/thumb|small|preview|arthumbs|pcthumbs/i.test(I)){r(I,"Original");break}}}),s}async function ts(e){const t=new AbortController,u=setTimeout(()=>t.abort(),6e4);try{const n=await(await fetch(e,{headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64)",Referer:"https://www.bizhihui.com/"},signal:t.signal})).arrayBuffer();return Buffer.from(n)}finally{clearTimeout(u)}}function us(e){return new Promise((t,u)=>{pa.exec(e,(s,n)=>{if(s)return u(s);t(n)})})}async function qo(e){const t=process.platform;if(t==="darwin"){await tt.promises.access(e);const n=`osascript -e "${`tell application "System Events" to tell every desktop to set picture to POSIX file "${e.replace(/\\/g,"/")}"`.replace(/"/g,'\\"')}"`;await us(n)}else if(t==="win32"){const u=kt.join(process.env.APPDATA||"","Microsoft","Windows","Themes","TranscodedWallpaper.jpg");await tt.promises.mkdir(kt.dirname(u),{recursive:!0}),await tt.promises.copyFile(e,u);const n=`[void][System.Runtime.InteropServices.Marshal]; Add-Type -MemberDefinition '[DllImport("user32.dll")] public static extern bool SystemParametersInfo(int a,int b,string c,int d);' -Name W -Namespace W; [W.W]::SystemParametersInfo(20,0,'${(i=>i.replace(/'/g,"''"))(u)}',3)`;await us(`powershell -NoProfile -NonInteractive -Command "${n.replace(/"/g,'\\"')}"`)}else throw new Error("setWallpaper not supported on platform: "+t)}const jo={async search(e,t=1){const u=e.trim(),s=u?`https://www.bizhihui.com/search.php?q=${encodeURIComponent(u)}&page=${t}`:`https://www.bizhihui.com/page/${t}/`,n=await es(s);if(n.status!==200)throw new Error("fetch failed: "+n.status);return Xo(n.body)},async getOriginalUrls(e){const t=await es(e);if(t.status!==200)throw new Error("fetch failed: "+t.status);const u=Vo(t.body,e);if(!u.length)throw new Error("no image found");return u},async getThumbLocal(e){const t=await ts(e);return`data:${e.match(/\.png($|[?#])/i)?"image/png":"image/jpeg"};base64,${t.toString("base64")}`},async fetchImageBase64(e){return(await ts(e)).toString("base64")},async setWallpaper(e){const t=Buffer.from(e,"base64"),u=kt.join(Ca.tmpdir(),`tinker-wallpaper-${Date.now()}.jpg`);await tt.promises.writeFile(u,t),await qo(u)}};Ia.contextBridge.exposeInMainWorld("wallpaper",jo);
|