varcommonjsGlobal=typeofglobalThis!=="undefined"?globalThis:typeofwindow!=="undefined"?window:typeofglobal!=="undefined"?global:typeofself!=="undefined"?self:{};varsvgo={};varconfig$1={};varplugins$1={};varplugins={};varxast={};varlib$8={};varlib$7={};varstringify$2={};varlib$6={};varlib$5={};(function(exports){Object.defineProperty(exports,"__esModule",{value:true});exports.Doctype=exports.CDATA=exports.Tag=exports.Style=exports.Script=exports.Comment=exports.Directive=exports.Text=exports.Root=exports.isTag=exports.ElementType=void0;varElementType;(function(ElementType){ElementType["Root"]="root";ElementType["Text"]="text";ElementType["Directive"]="directive";ElementType["Comment"]="comment";ElementType["Script"]="script";ElementType["Style"]="style";ElementType["Tag"]="tag";ElementType["CDATA"]="cdata";ElementType["Doctype"]="doctype"})(ElementType=exports.ElementType||(exports.ElementType={}));functionisTag(elem){returnelem.type===ElementType.Tag||elem.type===ElementType.Script||elem.type===ElementType.Style}exports.isTag=isTag;exports.Root=ElementType.Root;exports.Text=ElementType.Text;exports.Directive=ElementType.Directive;exports.Comment=ElementType.Comment;exports.Script=ElementType.Script;exports.Style=ElementType.Style;exports.Tag=ElementType.Tag;exports.CDATA=ElementType.CDATA;exports.Doctype=ElementType.Doctype})(lib$5);varnode={};var__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){varextendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(d,b){d.__proto__=b}||function(d,b){for(varpinb)if(Object.prototype.hasOwnProperty.call(b,p))d[p]=b[p]};returnextendStatics(d,b)};returnfunction(d,b){if(typeofb!=="function"&&b!==null)thrownewTypeError("Class extends value "+String(b)+" is not a constructor or null");extendStatics(d,b);function__(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new__)}}();var__assign$1=commonjsGlobal&&commonjsGlobal.__assign||function(){__assign$1=Object.assign||function(t){for(vars,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(varpins)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p]}returnt};return__assign$1.apply(this,arguments)};Object.defineProperty(node,"__esModule",{value:true});node.cloneNode=node.hasChildren=node.isDocument=node.isDirective=node.isComment=node.isText=node.isCDATA=node.isTag=node.Element=node.Document=node.NodeWithChildren=node.ProcessingInstruction=node.Comment=node.Text=node.DataNode=node.Node=void0;vardomelementtype_1$1=lib$5;varnodeTypes=newMap([[domelementtype_1$1.ElementType.Tag,1],[domelementtype_1$1.ElementType.Script,1],[domelementtype_1$1.ElementType.Style,1],[domelementtype_1$1.ElementType.Directive,1],[domelementtype_1$1.ElementType.Text,3],[domelementtype_1$1.ElementType.CDATA,4],[domelementtype_1$1.ElementType.Comment,8],[domelementtype_1$1.ElementType.Root,9]]);varNode=function(){functionNode(type){this.type=type;this.parent=null;this.prev=null;this.next=null;this.startIndex=null;this.endIndex=null}Object.defineProperty(Node.prototype,"nodeType",{get:function(){var_a;return(_a=nodeTypes.get(this.type))!==null&&_a!==void0?_a:1},enumerable:false,configurable:true});Object.defineProperty(Node.prototype,"parentNode",{get:function(){returnthis.parent},set:function(parent){this.parent=parent},enumerable:false,configurable:true});Object.defineProperty(Node.prototype,"previousSibling",{get:function(){returnthis.prev},set:function(prev){this.prev=prev},enumerable:false,configurable:true});Object.defineProperty(Node.prototype,"nextSibling",{get:function(){returnthis.next},set:function(next){this.next=next},enumerable:false,configurable:true});Node.prototype.cloneNode=function(recursive){if(recursive===void0){recursive=false}returncloneNode(this,recursive)};returnNode}();node.Node=Node;varDataNode=function(_super){__extends(DataNode,_super);functionDataNode(type,data){var_this=_super.call(this,type)||this;_this.data=data;return_this}Object.defineProperty(DataNode.prototype,"nodeValue",{get:functio