!function(){varc={960:function(c,t){"use strict";varl;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void0,function(c){c.Root="root",c.Text="text",c.Directive="directive",c.Comment="comment",c.Script="script",c.Style="style",c.Tag="tag",c.CDATA="cdata",c.Doctype="doctype"}(l=t.ElementType||(t.ElementType={})),t.isTag=function(c){returnc.type===l.Tag||c.type===l.Script||c.type===l.Style},t.Root=l.Root,t.Text=l.Text,t.Directive=l.Directive,t.Comment=l.Comment,t.Script=l.Script,t.Style=l.Style,t.Tag=l.Tag,t.CDATA=l.CDATA,t.Doctype=l.Doctype},915:function(c,t,l){"use strict";varh=this&&this.__createBinding||(Object.create?function(c,t,l,h){void0===h&&(h=l);vars=Object.getOwnPropertyDescriptor(t,l);s&&!("get"ins?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){returnt[l]}}),Object.defineProperty(c,h,s)}:function(c,t,l,h){void0===h&&(h=l),c[h]=t[l]}),s=this&&this.__exportStar||function(c,t){for(varlinc)"default"===l||Object.prototype.hasOwnProperty.call(t,l)||h(t,c,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void0;varv=l(960),e=l(790);s(l(790),t);vara=/\s+/g,w={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1,xmlMode:!1},g=function(){functionc(c,t,l){this.dom=[],this.root=newe.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeoft&&(l=t,t=w),"object"==typeofc&&(t=c,c=void0),this.callback=null!=c?c:null,this.options=null!=t?t:w,this.elementCB=null!=l?l:null}returnc.prototype.onparserinit=function(c){this.parser=c},c.prototype.onreset=function(){this.dom=[],this.root=newe.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},c.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},c.prototype.onerror=function(c){this.handleCallback(c)},c.prototype.onclosetag=function(){this.lastNode=null;varc=this.tagStack.pop();this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(c)},c.prototype.onopentag=function(c,t){varl=this.options.xmlMode?v.ElementType.Tag:void0,h=newe.Element(c,t,void0,l);this.addNode(h),this.tagStack.push(h)},c.prototype.ontext=function(c){vart=this.options.normalizeWhitespace,l=this.lastNode;if(l&&l.type===v.ElementType.Text)t?l.data=(l.data+c).replace(a," "):l.data+=c,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{t&&(c=c.replace(a," "));varh=newe.Text(c);this.addNode(h),this.lastNode=h}},c.prototype.oncomment=function(c){if(this.lastNode&&this.lastNode.type===v.ElementType.Comment)this.lastNode.data+=c;else{vart=newe.Comment(c);this.addNode(t),this.lastNode=t}},c.prototype.oncommentend=function(){this.lastNode=null},c.prototype.oncdatastart=function(){varc=newe.Text(""),t=newe.NodeWithChildren(v.ElementType.CDATA,[c]);this.addNode(t),c.parent=t,this.lastNode=c},c.prototype.oncdataend=function(){this.lastNode=null},c.prototype.onprocessinginstruction=function(c,t){varl=newe.ProcessingInstruction(c,t);this.addNode(l)},c.prototype.handleCallback=function(c){if("function"==typeofthis.callback)this.callback(c,this.dom);elseif(c)throwc},c.prototype.addNode=function(c){vart=this.tagStack[this.tagStack.length-1],l=t.children[t.children.length-1];this.options.withStartIndices&&(c.startIndex=this.parser.startIndex),this.options.withEndIndices&&(c.endIndex=this.parser.endIndex),t.children.push(c),l&&(c.prev=l,l.next=c),c.parent=t,this.lastNode=null},c}();t.DomHandler=g,t.default=g},790:function(c,t,l){"use strict";varh,s=this&&this.__extends||(h=function(c,t){returnh=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(c,t){c.__proto__=t}||function(c,t){for(varlint)Object.prototype.hasOwnProperty.call(t,l)&&(c[l]=t[l])},h(c,t)},function(c,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Class extends value "+String(t)+" is not a constructor or null");function__(){this.constructor=c}h(c,t),c.prototype=