@expo/repack-app 0.2.0 → 0.2.2

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/index.js CHANGED
@@ -1,23 +1,23 @@
1
- "use strict";var _x=Object.create;var Ee=Object.defineProperty;var xx=Object.getOwnPropertyDescriptor;var mx=Object.getOwnPropertyNames;var gx=Object.getPrototypeOf,Ox=Object.prototype.hasOwnProperty;var V=(t,o)=>()=>(o||t((o={exports:{}}).exports,o),o.exports),wx=(t,o)=>{for(var e in o)Ee(t,e,{get:o[e],enumerable:!0})},Er=(t,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of mx(o))!Ox.call(t,i)&&i!==e&&Ee(t,i,{get:()=>o[i],enumerable:!(s=xx(o,i))||s.enumerable});return t};var I=(t,o,e)=>(e=t!=null?_x(gx(t)):{},Er(o||!t||!t.__esModule?Ee(e,"default",{value:t,enumerable:!0}):e,t)),dx=t=>Er(Ee({},"__esModule",{value:!0}),t);var ui=V((wO,li)=>{var Ye=process||{},Xr=Ye.argv||[],Xe=Ye.env||{},yx=!(Xe.NO_COLOR||Xr.includes("--no-color"))&&(!!Xe.FORCE_COLOR||Xr.includes("--color")||Ye.platform==="win32"||(Ye.stdout||{}).isTTY&&Xe.TERM!=="dumb"||!!Xe.CI),hx=(t,o,e=t)=>s=>{let i=""+s,r=i.indexOf(o,t.length);return~r?t+fx(i,o,e,r)+o:t+i+o},fx=(t,o,e,s)=>{let i="",r=0;do i+=t.substring(r,s)+e,r=s+o.length,s=t.indexOf(o,r);while(~s);return i+t.substring(r)},Yr=(t=yx)=>{let o=t?hx:()=>String;return{isColorSupported:t,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}};li.exports=Yr();li.exports.createColors=Yr});var Ze=V(_i=>{(function(){_i.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
2
- `},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(_i)});var po=V((Zr,Ho)=>{(function(){var t,o,e,s,i,r,a,n=[].slice,c={}.hasOwnProperty;t=function(){var _,d,g,O,w,z;if(z=arguments[0],w=2<=arguments.length?n.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(_=0,g=w.length;_<g;_++)if(O=w[_],O!=null)for(d in O)c.call(O,d)&&(z[d]=O[d]);return z},i=function(_){return!!_&&Object.prototype.toString.call(_)==="[object Function]"},r=function(_){var d;return!!_&&((d=typeof _)=="function"||d==="object")},e=function(_){return i(Array.isArray)?Array.isArray(_):Object.prototype.toString.call(_)==="[object Array]"},s=function(_){var d;if(e(_))return!_.length;for(d in _)if(c.call(_,d))return!1;return!0},a=function(_){var d,g;return r(_)&&(g=Object.getPrototypeOf(_))&&(d=g.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},o=function(_){return i(_.valueOf)?_.valueOf():_},Ho.exports.assign=t,Ho.exports.isFunction=i,Ho.exports.isObject=r,Ho.exports.isArray=e,Ho.exports.isEmpty=s,Ho.exports.isPlainObject=a,Ho.exports.getValue=o}).call(Zr)});var xi=V((Ir,Pr)=>{(function(){var t;Pr.exports=t=function(){function o(){}return o.prototype.hasFeature=function(e,s){return!0},o.prototype.createDocumentType=function(e,s,i){throw new Error("This DOM method is not implemented.")},o.prototype.createDocument=function(e,s,i){throw new Error("This DOM method is not implemented.")},o.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},o.prototype.getFeature=function(e,s){throw new Error("This DOM method is not implemented.")},o}()}).call(Ir)});var Ur=V((Lr,Tr)=>{(function(){var t;Tr.exports=t=function(){function o(){}return o.prototype.handleError=function(e){throw new Error(e)},o}()}).call(Lr)});var jr=V((Qr,Ar)=>{(function(){var t;Ar.exports=t=function(){function o(e){this.arr=e||[]}return Object.defineProperty(o.prototype,"length",{get:function(){return this.arr.length}}),o.prototype.item=function(e){return this.arr[e]||null},o.prototype.contains=function(e){return this.arr.indexOf(e)!==-1},o}()}).call(Qr)});var Br=V((Rr,Jr)=>{(function(){var t,o,e;o=Ur(),e=jr(),Jr.exports=t=function(){function s(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new o,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=Object.create(this.defaultParams)}return Object.defineProperty(s.prototype,"parameterNames",{get:function(){return new e(Object.keys(this.defaultParams))}}),s.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},s.prototype.canSetParameter=function(i,r){return!0},s.prototype.setParameter=function(i,r){return r!=null?this.params[i]=r:delete this.params[i]},s}()}).call(Rr)});var T=V((Dr,$r)=>{(function(){$r.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(Dr)});var mi=V((Hr,oa)=>{(function(){var t,o,e;t=T(),e=xo(),oa.exports=o=function(){function s(i,r,a){if(this.parent=i,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),r==null)throw new Error("Missing attribute name. "+this.debugInfo(r));this.name=this.stringify.name(r),this.value=this.stringify.attValue(a),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(s.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(s.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(s.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(s.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(s.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"specified",{get:function(){return!0}}),s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(i){return this.options.writer.attribute(this,this.options.writer.filterOptions(i))},s.prototype.debugInfo=function(i){return i=i||this.name,i==null?"parent: <"+this.parent.name+">":"attribute: {"+i+"}, parent: <"+this.parent.name+">"},s.prototype.isEqualNode=function(i){return!(i.namespaceURI!==this.namespaceURI||i.prefix!==this.prefix||i.localName!==this.localName||i.value!==this.value)},s}()}).call(Hr)});var Ie=V((ta,ea)=>{(function(){var t;ea.exports=t=function(){function o(e){this.nodes=e}return Object.defineProperty(o.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),o.prototype.clone=function(){return this.nodes=null},o.prototype.getNamedItem=function(e){return this.nodes[e]},o.prototype.setNamedItem=function(e){var s;return s=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,s||null},o.prototype.removeNamedItem=function(e){var s;return s=this.nodes[e],delete this.nodes[e],s||null},o.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null},o.prototype.getNamedItemNS=function(e,s){throw new Error("This DOM method is not implemented.")},o.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},o.prototype.removeNamedItemNS=function(e,s){throw new Error("This DOM method is not implemented.")},o}()}).call(ta)});var Pe=V((sa,ia)=>{(function(){var t,o,e,s,i,r,a,n,c,_=function(g,O){for(var w in O)d.call(O,w)&&(g[w]=O[w]);function z(){this.constructor=g}return z.prototype=O.prototype,g.prototype=new z,g.__super__=O.prototype,g},d={}.hasOwnProperty;c=po(),n=c.isObject,a=c.isFunction,r=c.getValue,i=xo(),t=T(),o=mi(),s=Ie(),ia.exports=e=function(g){_(O,g);function O(w,z,K){var q,v,p,m;if(O.__super__.constructor.call(this,w),z==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(z),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,K!=null&&this.attribute(K),w.type===t.Document&&(this.isRoot=!0,this.documentObject=w,w.rootObject=this,w.children)){for(m=w.children,v=0,p=m.length;v<p;v++)if(q=m[v],q.type===t.DocType){q.name=this.name;break}}}return Object.defineProperty(O.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(O.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(O.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(O.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(O.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(O.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(O.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(O.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new s(this.attribs)),this.attributeMap}}),O.prototype.clone=function(){var w,z,K,q;K=Object.create(this),K.isRoot&&(K.documentObject=null),K.attribs={},q=this.attribs;for(z in q)d.call(q,z)&&(w=q[z],K.attribs[z]=w.clone());return K.children=[],this.children.forEach(function(v){var p;return p=v.clone(),p.parent=K,K.children.push(p)}),K},O.prototype.attribute=function(w,z){var K,q;if(w!=null&&(w=r(w)),n(w))for(K in w)d.call(w,K)&&(q=w[K],this.attribute(K,q));else a(z)&&(z=z.apply()),this.options.keepNullAttributes&&z==null?this.attribs[w]=new o(this,w,""):z!=null&&(this.attribs[w]=new o(this,w,z));return this},O.prototype.removeAttribute=function(w){var z,K,q;if(w==null)throw new Error("Missing attribute name. "+this.debugInfo());if(w=r(w),Array.isArray(w))for(K=0,q=w.length;K<q;K++)z=w[K],delete this.attribs[z];else delete this.attribs[w];return this},O.prototype.toString=function(w){return this.options.writer.element(this,this.options.writer.filterOptions(w))},O.prototype.att=function(w,z){return this.attribute(w,z)},O.prototype.a=function(w,z){return this.attribute(w,z)},O.prototype.getAttribute=function(w){return this.attribs.hasOwnProperty(w)?this.attribs[w].value:null},O.prototype.setAttribute=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getAttributeNode=function(w){return this.attribs.hasOwnProperty(w)?this.attribs[w]:null},O.prototype.setAttributeNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.removeAttributeNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementsByTagName=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getAttributeNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.setAttributeNS=function(w,z,K){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.removeAttributeNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getAttributeNodeNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.setAttributeNodeNS=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementsByTagNameNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.hasAttribute=function(w){return this.attribs.hasOwnProperty(w)},O.prototype.hasAttributeNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.setIdAttribute=function(w,z){return this.attribs.hasOwnProperty(w)?this.attribs[w].isId:z},O.prototype.setIdAttributeNS=function(w,z,K){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.setIdAttributeNode=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementsByTagName=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementsByTagNameNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementsByClassName=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.isEqualNode=function(w){var z,K,q;if(!O.__super__.isEqualNode.apply(this,arguments).isEqualNode(w)||w.namespaceURI!==this.namespaceURI||w.prefix!==this.prefix||w.localName!==this.localName||w.attribs.length!==this.attribs.length)return!1;for(z=K=0,q=this.attribs.length-1;0<=q?K<=q:K>=q;z=0<=q?++K:--K)if(!this.attribs[z].isEqualNode(w.attribs[z]))return!1;return!0},O}(i)}).call(sa)});var Bt=V((ra,aa)=>{(function(){var t,o,e=function(i,r){for(var a in r)s.call(r,a)&&(i[a]=r[a]);function n(){this.constructor=i}return n.prototype=r.prototype,i.prototype=new n,i.__super__=r.prototype,i},s={}.hasOwnProperty;o=xo(),aa.exports=t=function(i){e(r,i);function r(a){r.__super__.constructor.call(this,a),this.value=""}return Object.defineProperty(r.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(r.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),r.prototype.clone=function(){return Object.create(this)},r.prototype.substringData=function(a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.appendData=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.insertData=function(a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.deleteData=function(a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceData=function(a,n,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.isEqualNode=function(a){return!(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)||a.data!==this.data)},r}(o)}).call(ra)});var Le=V((na,ca)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;t=T(),e=Bt(),ca.exports=o=function(r){s(a,r);function a(n,c){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(c)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(n){return this.options.writer.cdata(this,this.options.writer.filterOptions(n))},a}(e)}).call(na)});var Te=V((la,ua)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;t=T(),o=Bt(),ua.exports=e=function(r){s(a,r);function a(n,c){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(c)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(n){return this.options.writer.comment(this,this.options.writer.filterOptions(n))},a}(o)}).call(la)});var Ue=V((_a,xa)=>{(function(){var t,o,e,s,i=function(a,n){for(var c in n)r.call(n,c)&&(a[c]=n[c]);function _(){this.constructor=a}return _.prototype=n.prototype,a.prototype=new _,a.__super__=n.prototype,a},r={}.hasOwnProperty;s=po().isObject,e=xo(),t=T(),xa.exports=o=function(a){i(n,a);function n(c,_,d,g){var O;n.__super__.constructor.call(this,c),s(_)&&(O=_,_=O.version,d=O.encoding,g=O.standalone),_||(_="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(_),d!=null&&(this.encoding=this.stringify.xmlEncoding(d)),g!=null&&(this.standalone=this.stringify.xmlStandalone(g))}return n.prototype.toString=function(c){return this.options.writer.declaration(this,this.options.writer.filterOptions(c))},n}(e)}).call(_a)});var Qe=V((ma,ga)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;e=xo(),t=T(),ga.exports=o=function(r){s(a,r);function a(n,c,_,d,g,O){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(_==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(c));if(!d)throw new Error("Missing DTD attribute type. "+this.debugInfo(c));if(!g)throw new Error("Missing DTD attribute default. "+this.debugInfo(c));if(g.indexOf("#")!==0&&(g="#"+g),!g.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(O&&!g.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.name(c),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(_),this.attributeType=this.stringify.dtdAttType(d),O&&(this.defaultValue=this.stringify.dtdAttDefault(O)),this.defaultValueType=g}return a.prototype.toString=function(n){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(n))},a}(e)}).call(ma)});var Ae=V((Oa,wa)=>{(function(){var t,o,e,s,i=function(a,n){for(var c in n)r.call(n,c)&&(a[c]=n[c]);function _(){this.constructor=a}return _.prototype=n.prototype,a.prototype=new _,a.__super__=n.prototype,a},r={}.hasOwnProperty;s=po().isObject,e=xo(),t=T(),wa.exports=o=function(a){i(n,a);function n(c,_,d,g){if(n.__super__.constructor.call(this,c),d==null)throw new Error("Missing DTD entity name. "+this.debugInfo(d));if(g==null)throw new Error("Missing DTD entity value. "+this.debugInfo(d));if(this.pe=!!_,this.name=this.stringify.name(d),this.type=t.EntityDeclaration,!s(g))this.value=this.stringify.dtdEntityValue(g),this.internal=!0;else{if(!g.pubID&&!g.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(d));if(g.pubID&&!g.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(d));if(this.internal=!1,g.pubID!=null&&(this.pubID=this.stringify.dtdPubID(g.pubID)),g.sysID!=null&&(this.sysID=this.stringify.dtdSysID(g.sysID)),g.nData!=null&&(this.nData=this.stringify.dtdNData(g.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(d))}}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(n.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(n.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return null}}),n.prototype.toString=function(c){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(c))},n}(e)}).call(Oa)});var je=V((da,ya)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;e=xo(),t=T(),ya.exports=o=function(r){s(a,r);function a(n,c,_){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());_||(_="(#PCDATA)"),Array.isArray(_)&&(_="("+_.join(",")+")"),this.name=this.stringify.name(c),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(_)}return a.prototype.toString=function(n){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(n))},a}(e)}).call(da)});var Re=V((ha,fa)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;e=xo(),t=T(),fa.exports=o=function(r){s(a,r);function a(n,c,_){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing DTD notation name. "+this.debugInfo(c));if(!_.pubID&&!_.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=t.NotationDeclaration,_.pubID!=null&&(this.pubID=this.stringify.dtdPubID(_.pubID)),_.sysID!=null&&(this.sysID=this.stringify.dtdSysID(_.sysID))}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),a.prototype.toString=function(n){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(n))},a}(e)}).call(ha)});var Je=V((za,Ka)=>{(function(){var t,o,e,s,i,r,a,n,c,_=function(g,O){for(var w in O)d.call(O,w)&&(g[w]=O[w]);function z(){this.constructor=g}return z.prototype=O.prototype,g.prototype=new z,g.__super__=O.prototype,g},d={}.hasOwnProperty;c=po().isObject,n=xo(),t=T(),o=Qe(),s=Ae(),e=je(),i=Re(),a=Ie(),Ka.exports=r=function(g){_(O,g);function O(w,z,K){var q,v,p,m,l,x;if(O.__super__.constructor.call(this,w),this.type=t.DocType,w.children){for(m=w.children,v=0,p=m.length;v<p;v++)if(q=m[v],q.type===t.Element){this.name=q.name;break}}this.documentObject=w,c(z)&&(l=z,z=l.pubID,K=l.sysID),K==null&&(x=[z,K],K=x[0],z=x[1]),z!=null&&(this.pubID=this.stringify.dtdPubID(z)),K!=null&&(this.sysID=this.stringify.dtdSysID(K))}return Object.defineProperty(O.prototype,"entities",{get:function(){var w,z,K,q,v;for(q={},v=this.children,z=0,K=v.length;z<K;z++)w=v[z],w.type===t.EntityDeclaration&&!w.pe&&(q[w.name]=w);return new a(q)}}),Object.defineProperty(O.prototype,"notations",{get:function(){var w,z,K,q,v;for(q={},v=this.children,z=0,K=v.length;z<K;z++)w=v[z],w.type===t.NotationDeclaration&&(q[w.name]=w);return new a(q)}}),Object.defineProperty(O.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(O.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(O.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),O.prototype.element=function(w,z){var K;return K=new e(this,w,z),this.children.push(K),this},O.prototype.attList=function(w,z,K,q,v){var p;return p=new o(this,w,z,K,q,v),this.children.push(p),this},O.prototype.entity=function(w,z){var K;return K=new s(this,!1,w,z),this.children.push(K),this},O.prototype.pEntity=function(w,z){var K;return K=new s(this,!0,w,z),this.children.push(K),this},O.prototype.notation=function(w,z){var K;return K=new i(this,w,z),this.children.push(K),this},O.prototype.toString=function(w){return this.options.writer.docType(this,this.options.writer.filterOptions(w))},O.prototype.ele=function(w,z){return this.element(w,z)},O.prototype.att=function(w,z,K,q,v){return this.attList(w,z,K,q,v)},O.prototype.ent=function(w,z){return this.entity(w,z)},O.prototype.pent=function(w,z){return this.pEntity(w,z)},O.prototype.not=function(w,z){return this.notation(w,z)},O.prototype.up=function(){return this.root()||this.documentObject},O.prototype.isEqualNode=function(w){return!(!O.__super__.isEqualNode.apply(this,arguments).isEqualNode(w)||w.name!==this.name||w.publicId!==this.publicId||w.systemId!==this.systemId)},O}(n)}).call(za)});var Be=V((ka,Ga)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;t=T(),o=xo(),Ga.exports=e=function(r){s(a,r);function a(n,c){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(c)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(n){return this.options.writer.raw(this,this.options.writer.filterOptions(n))},a}(o)}).call(ka)});var De=V((Wa,ba)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;t=T(),o=Bt(),ba.exports=e=function(r){s(a,r);function a(n,c){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=t.Text,this.value=this.stringify.text(c)}return Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var n,c,_;for(_="",c=this.previousSibling;c;)_=c.data+_,c=c.previousSibling;for(_+=this.data,n=this.nextSibling;n;)_=_+n.data,n=n.nextSibling;return _}}),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(n){return this.options.writer.text(this,this.options.writer.filterOptions(n))},a.prototype.splitText=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.replaceWholeText=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},a}(o)}).call(Wa)});var $e=V((va,qa)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;t=T(),o=Bt(),qa.exports=e=function(r){s(a,r);function a(n,c,_){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=t.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,_&&(this.value=this.stringify.insValue(_))}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(n){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(n))},a.prototype.isEqualNode=function(n){return!(!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(n)||n.target!==this.target)},a}(o)}).call(va)});var gi=V((pa,Ca)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;e=xo(),t=T(),Ca.exports=o=function(r){s(a,r);function a(n){a.__super__.constructor.call(this,n),this.type=t.Dummy}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(n){return""},a}(e)}).call(pa)});var Fa=V((Na,Sa)=>{(function(){var t;Sa.exports=t=function(){function o(e){this.nodes=e}return Object.defineProperty(o.prototype,"length",{get:function(){return this.nodes.length||0}}),o.prototype.clone=function(){return this.nodes=null},o.prototype.item=function(e){return this.nodes[e]||null},o}()}).call(Na)});var Ea=V((Ma,Va)=>{(function(){Va.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(Ma)});var xo=V((Xa,Ya)=>{(function(){var t,o,e,s,i,r,a,n,c,_,d,g,O,w,z,K,q,v,p,m={}.hasOwnProperty;p=po(),v=p.isObject,q=p.isFunction,K=p.isEmpty,z=p.getValue,n=null,e=null,s=null,i=null,r=null,O=null,w=null,g=null,a=null,o=null,d=null,c=null,t=null,Ya.exports=_=function(){function l(x){this.parent=x,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,n||(n=Pe(),e=Le(),s=Te(),i=Ue(),r=Je(),O=Be(),w=De(),g=$e(),a=gi(),o=T(),d=Fa(),c=Ie(),t=Ea())}return Object.defineProperty(l.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(l.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(l.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(l.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(l.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new d(this.children)),this.childNodeList}}),Object.defineProperty(l.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(l.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(l.prototype,"previousSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x-1]||null}}),Object.defineProperty(l.prototype,"nextSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x+1]||null}}),Object.defineProperty(l.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(l.prototype,"textContent",{get:function(){var x,u,G,y,h;if(this.nodeType===o.Element||this.nodeType===o.DocumentFragment){for(h="",y=this.children,u=0,G=y.length;u<G;u++)x=y[u],x.textContent&&(h+=x.textContent);return h}else return null},set:function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),l.prototype.setParent=function(x){var u,G,y,h,f;for(this.parent=x,x&&(this.options=x.options,this.stringify=x.stringify),h=this.children,f=[],G=0,y=h.length;G<y;G++)u=h[G],f.push(u.setParent(this));return f},l.prototype.element=function(x,u,G){var y,h,f,b,N,S,E,Y,M,X,Z;if(S=null,u===null&&G==null&&(M=[{},null],u=M[0],G=M[1]),u==null&&(u={}),u=z(u),v(u)||(X=[u,G],G=X[0],u=X[1]),x!=null&&(x=z(x)),Array.isArray(x))for(f=0,E=x.length;f<E;f++)h=x[f],S=this.element(h);else if(q(x))S=this.element(x.apply());else if(v(x)){for(N in x)if(m.call(x,N))if(Z=x[N],q(Z)&&(Z=Z.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&N.indexOf(this.stringify.convertAttKey)===0)S=this.attribute(N.substr(this.stringify.convertAttKey.length),Z);else if(!this.options.separateArrayItems&&Array.isArray(Z)&&K(Z))S=this.dummy();else if(v(Z)&&K(Z))S=this.element(N);else if(!this.options.keepNullNodes&&Z==null)S=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(Z))for(b=0,Y=Z.length;b<Y;b++)h=Z[b],y={},y[N]=h,S=this.element(y);else v(Z)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&N.indexOf(this.stringify.convertTextKey)===0?S=this.element(Z):(S=this.element(N),S.element(Z)):S=this.element(N,Z)}else!this.options.keepNullNodes&&G===null?S=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&x.indexOf(this.stringify.convertTextKey)===0?S=this.text(G):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&x.indexOf(this.stringify.convertCDataKey)===0?S=this.cdata(G):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&x.indexOf(this.stringify.convertCommentKey)===0?S=this.comment(G):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&x.indexOf(this.stringify.convertRawKey)===0?S=this.raw(G):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&x.indexOf(this.stringify.convertPIKey)===0?S=this.instruction(x.substr(this.stringify.convertPIKey.length),G):S=this.node(x,u,G);if(S==null)throw new Error("Could not create any elements with: "+x+". "+this.debugInfo());return S},l.prototype.insertBefore=function(x,u,G){var y,h,f,b,N;if(x?.type)return f=x,b=u,f.setParent(this),b?(h=children.indexOf(b),N=children.splice(h),children.push(f),Array.prototype.push.apply(children,N)):children.push(f),f;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(x));return h=this.parent.children.indexOf(this),N=this.parent.children.splice(h),y=this.parent.element(x,u,G),Array.prototype.push.apply(this.parent.children,N),y},l.prototype.insertAfter=function(x,u,G){var y,h,f;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(x));return h=this.parent.children.indexOf(this),f=this.parent.children.splice(h+1),y=this.parent.element(x,u,G),Array.prototype.push.apply(this.parent.children,f),y},l.prototype.remove=function(){var x,u;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return x=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[x,x-x+1].concat(u=[])),this.parent},l.prototype.node=function(x,u,G){var y,h;return x!=null&&(x=z(x)),u||(u={}),u=z(u),v(u)||(h=[u,G],G=h[0],u=h[1]),y=new n(this,x,u),G!=null&&y.text(G),this.children.push(y),y},l.prototype.text=function(x){var u;return v(x)&&this.element(x),u=new w(this,x),this.children.push(u),this},l.prototype.cdata=function(x){var u;return u=new e(this,x),this.children.push(u),this},l.prototype.comment=function(x){var u;return u=new s(this,x),this.children.push(u),this},l.prototype.commentBefore=function(x){var u,G,y;return G=this.parent.children.indexOf(this),y=this.parent.children.splice(G),u=this.parent.comment(x),Array.prototype.push.apply(this.parent.children,y),this},l.prototype.commentAfter=function(x){var u,G,y;return G=this.parent.children.indexOf(this),y=this.parent.children.splice(G+1),u=this.parent.comment(x),Array.prototype.push.apply(this.parent.children,y),this},l.prototype.raw=function(x){var u;return u=new O(this,x),this.children.push(u),this},l.prototype.dummy=function(){var x;return x=new a(this),x},l.prototype.instruction=function(x,u){var G,y,h,f,b;if(x!=null&&(x=z(x)),u!=null&&(u=z(u)),Array.isArray(x))for(f=0,b=x.length;f<b;f++)G=x[f],this.instruction(G);else if(v(x))for(G in x)m.call(x,G)&&(y=x[G],this.instruction(G,y));else q(u)&&(u=u.apply()),h=new g(this,x,u),this.children.push(h);return this},l.prototype.instructionBefore=function(x,u){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y),G=this.parent.instruction(x,u),Array.prototype.push.apply(this.parent.children,h),this},l.prototype.instructionAfter=function(x,u){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y+1),G=this.parent.instruction(x,u),Array.prototype.push.apply(this.parent.children,h),this},l.prototype.declaration=function(x,u,G){var y,h;return y=this.document(),h=new i(y,x,u,G),y.children.length===0?y.children.unshift(h):y.children[0].type===o.Declaration?y.children[0]=h:y.children.unshift(h),y.root()||y},l.prototype.dtd=function(x,u){var G,y,h,f,b,N,S,E,Y,M;for(y=this.document(),h=new r(y,x,u),Y=y.children,f=b=0,S=Y.length;b<S;f=++b)if(G=Y[f],G.type===o.DocType)return y.children[f]=h,h;for(M=y.children,f=N=0,E=M.length;N<E;f=++N)if(G=M[f],G.isRoot)return y.children.splice(f,0,h),h;return y.children.push(h),h},l.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},l.prototype.root=function(){var x;for(x=this;x;){if(x.type===o.Document)return x.rootObject;if(x.isRoot)return x;x=x.parent}},l.prototype.document=function(){var x;for(x=this;x;){if(x.type===o.Document)return x;x=x.parent}},l.prototype.end=function(x){return this.document().end(x)},l.prototype.prev=function(){var x;if(x=this.parent.children.indexOf(this),x<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[x-1]},l.prototype.next=function(){var x;if(x=this.parent.children.indexOf(this),x===-1||x===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[x+1]},l.prototype.importDocument=function(x){var u;return u=x.root().clone(),u.parent=this,u.isRoot=!1,this.children.push(u),this},l.prototype.debugInfo=function(x){var u,G;return x=x||this.name,x==null&&!((u=this.parent)!=null&&u.name)?"":x==null?"parent: <"+this.parent.name+">":(G=this.parent)!=null&&G.name?"node: <"+x+">, parent: <"+this.parent.name+">":"node: <"+x+">"},l.prototype.ele=function(x,u,G){return this.element(x,u,G)},l.prototype.nod=function(x,u,G){return this.node(x,u,G)},l.prototype.txt=function(x){return this.text(x)},l.prototype.dat=function(x){return this.cdata(x)},l.prototype.com=function(x){return this.comment(x)},l.prototype.ins=function(x,u){return this.instruction(x,u)},l.prototype.doc=function(){return this.document()},l.prototype.dec=function(x,u,G){return this.declaration(x,u,G)},l.prototype.e=function(x,u,G){return this.element(x,u,G)},l.prototype.n=function(x,u,G){return this.node(x,u,G)},l.prototype.t=function(x){return this.text(x)},l.prototype.d=function(x){return this.cdata(x)},l.prototype.c=function(x){return this.comment(x)},l.prototype.r=function(x){return this.raw(x)},l.prototype.i=function(x,u){return this.instruction(x,u)},l.prototype.u=function(){return this.up()},l.prototype.importXMLBuilder=function(x){return this.importDocument(x)},l.prototype.replaceChild=function(x,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.removeChild=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.appendChild=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.hasChildNodes=function(){return this.children.length!==0},l.prototype.cloneNode=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isSupported=function(x,u){return!0},l.prototype.hasAttributes=function(){return this.attribs.length!==0},l.prototype.compareDocumentPosition=function(x){var u,G;return u=this,u===x?0:this.document()!==x.document()?(G=t.Disconnected|t.ImplementationSpecific,Math.random()<.5?G|=t.Preceding:G|=t.Following,G):u.isAncestor(x)?t.Contains|t.Preceding:u.isDescendant(x)?t.Contains|t.Following:u.isPreceding(x)?t.Preceding:t.Following},l.prototype.isSameNode=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.lookupPrefix=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isDefaultNamespace=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.lookupNamespaceURI=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isEqualNode=function(x){var u,G,y;if(x.nodeType!==this.nodeType||x.children.length!==this.children.length)return!1;for(u=G=0,y=this.children.length-1;0<=y?G<=y:G>=y;u=0<=y?++G:--G)if(!this.children[u].isEqualNode(x.children[u]))return!1;return!0},l.prototype.getFeature=function(x,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setUserData=function(x,u,G){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getUserData=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.contains=function(x){return x?x===this||this.isDescendant(x):!1},l.prototype.isDescendant=function(x){var u,G,y,h,f;for(f=this.children,y=0,h=f.length;y<h;y++)if(u=f[y],x===u||(G=u.isDescendant(x),G))return!0;return!1},l.prototype.isAncestor=function(x){return x.isDescendant(this)},l.prototype.isPreceding=function(x){var u,G;return u=this.treePosition(x),G=this.treePosition(this),u===-1||G===-1?!1:u<G},l.prototype.isFollowing=function(x){var u,G;return u=this.treePosition(x),G=this.treePosition(this),u===-1||G===-1?!1:u>G},l.prototype.treePosition=function(x){var u,G;return G=0,u=!1,this.foreachTreeNode(this.document(),function(y){if(G++,!u&&y===x)return u=!0}),u?G:-1},l.prototype.foreachTreeNode=function(x,u){var G,y,h,f,b;for(x||(x=this.document()),f=x.children,y=0,h=f.length;y<h;y++){if(G=f[y],b=u(G))return b;if(b=this.foreachTreeNode(G,u),b)return b}},l}()}).call(Xa)});var Oi=V((Za,Ia)=>{(function(){var t,o=function(s,i){return function(){return s.apply(i,arguments)}},e={}.hasOwnProperty;Ia.exports=t=function(){function s(i){this.assertLegalName=o(this.assertLegalName,this),this.assertLegalChar=o(this.assertLegalChar,this);var r,a,n;i||(i={}),this.options=i,this.options.version||(this.options.version="1.0"),a=i.stringify||{};for(r in a)e.call(a,r)&&(n=a[r],this[r]=n)}return s.prototype.name=function(i){return this.options.noValidation?i:this.assertLegalName(""+i||"")},s.prototype.text=function(i){return this.options.noValidation?i:this.assertLegalChar(this.textEscape(""+i||""))},s.prototype.cdata=function(i){return this.options.noValidation?i:(i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i))},s.prototype.comment=function(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+i);return this.assertLegalChar(i)},s.prototype.raw=function(i){return this.options.noValidation?i:""+i||""},s.prototype.attValue=function(i){return this.options.noValidation?i:this.assertLegalChar(this.attEscape(i=""+i||""))},s.prototype.insTarget=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.insValue=function(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return this.assertLegalChar(i)},s.prototype.xmlVersion=function(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i},s.prototype.xmlEncoding=function(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+i);return this.assertLegalChar(i)},s.prototype.xmlStandalone=function(i){return this.options.noValidation?i:i?"yes":"no"},s.prototype.dtdPubID=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdSysID=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdElementValue=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdAttType=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdAttDefault=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdEntityValue=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdNData=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.convertAttKey="@",s.prototype.convertPIKey="?",s.prototype.convertTextKey="#text",s.prototype.convertCDataKey="#cdata",s.prototype.convertCommentKey="#comment",s.prototype.convertRawKey="#raw",s.prototype.assertLegalChar=function(i){var r,a;if(this.options.noValidation)return i;if(r="",this.options.version==="1.0"){if(r=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=i.match(r))throw new Error("Invalid character in string: "+i+" at index "+a.index)}else if(this.options.version==="1.1"&&(r=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=i.match(r)))throw new Error("Invalid character in string: "+i+" at index "+a.index);return i},s.prototype.assertLegalName=function(i){var r;if(this.options.noValidation)return i;if(this.assertLegalChar(i),r=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!i.match(r))throw new Error("Invalid character in name");return i},s.prototype.textEscape=function(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},s.prototype.attEscape=function(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},s}()}).call(Za)});var Dt=V((Pa,La)=>{(function(){La.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(Pa)});var wi=V((Ta,Ua)=>{(function(){var t,o,e,s,i,r,a,n,c,_,d,g,O,w,z,K,q,v={}.hasOwnProperty;q=po().assign,t=T(),c=Ue(),_=Je(),e=Le(),s=Te(),g=Pe(),w=Be(),z=De(),O=$e(),d=gi(),i=Qe(),r=je(),a=Ae(),n=Re(),o=Dt(),Ua.exports=K=function(){function p(m){var l,x,u;m||(m={}),this.options=m,x=m.writer||{};for(l in x)v.call(x,l)&&(u=x[l],this["_"+l]=this[l],this[l]=u)}return p.prototype.filterOptions=function(m){var l,x,u,G,y,h,f,b;return m||(m={}),m=q({},this.options,m),l={writer:this},l.pretty=m.pretty||!1,l.allowEmpty=m.allowEmpty||!1,l.indent=(x=m.indent)!=null?x:" ",l.newline=(u=m.newline)!=null?u:`
3
- `,l.offset=(G=m.offset)!=null?G:0,l.dontPrettyTextNodes=(y=(h=m.dontPrettyTextNodes)!=null?h:m.dontprettytextnodes)!=null?y:0,l.spaceBeforeSlash=(f=(b=m.spaceBeforeSlash)!=null?b:m.spacebeforeslash)!=null?f:"",l.spaceBeforeSlash===!0&&(l.spaceBeforeSlash=" "),l.suppressPrettyCount=0,l.user={},l.state=o.None,l},p.prototype.indent=function(m,l,x){var u;return!l.pretty||l.suppressPrettyCount?"":l.pretty&&(u=(x||0)+l.offset+1,u>0)?new Array(u).join(l.indent):""},p.prototype.endline=function(m,l,x){return!l.pretty||l.suppressPrettyCount?"":l.newline},p.prototype.attribute=function(m,l,x){var u;return this.openAttribute(m,l,x),u=" "+m.name+'="'+m.value+'"',this.closeAttribute(m,l,x),u},p.prototype.cdata=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<![CDATA[",l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+="]]>"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.comment=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!-- ",l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+=" -->"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.declaration=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<?xml",l.state=o.InsideTag,u+=' version="'+m.version+'"',m.encoding!=null&&(u+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(u+=' standalone="'+m.standalone+'"'),l.state=o.CloseTag,u+=l.spaceBeforeSlash+"?>",u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.docType=function(m,l,x){var u,G,y,h,f;if(x||(x=0),this.openNode(m,l,x),l.state=o.OpenTag,h=this.indent(m,l,x),h+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?h+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(h+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(h+=" [",h+=this.endline(m,l,x),l.state=o.InsideTag,f=m.children,G=0,y=f.length;G<y;G++)u=f[G],h+=this.writeChildNode(u,l,x+1);l.state=o.CloseTag,h+="]"}return l.state=o.CloseTag,h+=l.spaceBeforeSlash+">",h+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),h},p.prototype.element=function(m,l,x){var u,G,y,h,f,b,N,S,E,Y,M,X,Z,wo;x||(x=0),Y=!1,M="",this.openNode(m,l,x),l.state=o.OpenTag,M+=this.indent(m,l,x)+"<"+m.name,X=m.attribs;for(E in X)v.call(X,E)&&(u=X[E],M+=this.attribute(u,l,x));if(y=m.children.length,h=y===0?null:m.children[0],y===0||m.children.every(function(to){return(to.type===t.Text||to.type===t.Raw)&&to.value===""}))l.allowEmpty?(M+=">",l.state=o.CloseTag,M+="</"+m.name+">"+this.endline(m,l,x)):(l.state=o.CloseTag,M+=l.spaceBeforeSlash+"/>"+this.endline(m,l,x));else if(l.pretty&&y===1&&(h.type===t.Text||h.type===t.Raw)&&h.value!=null)M+=">",l.state=o.InsideTag,l.suppressPrettyCount++,Y=!0,M+=this.writeChildNode(h,l,x+1),l.suppressPrettyCount--,Y=!1,l.state=o.CloseTag,M+="</"+m.name+">"+this.endline(m,l,x);else{if(l.dontPrettyTextNodes){for(Z=m.children,f=0,N=Z.length;f<N;f++)if(G=Z[f],(G.type===t.Text||G.type===t.Raw)&&G.value!=null){l.suppressPrettyCount++,Y=!0;break}}for(M+=">"+this.endline(m,l,x),l.state=o.InsideTag,wo=m.children,b=0,S=wo.length;b<S;b++)G=wo[b],M+=this.writeChildNode(G,l,x+1);l.state=o.CloseTag,M+=this.indent(m,l,x)+"</"+m.name+">",Y&&l.suppressPrettyCount--,M+=this.endline(m,l,x),l.state=o.None}return this.closeNode(m,l,x),M},p.prototype.writeChildNode=function(m,l,x){switch(m.type){case t.CData:return this.cdata(m,l,x);case t.Comment:return this.comment(m,l,x);case t.Element:return this.element(m,l,x);case t.Raw:return this.raw(m,l,x);case t.Text:return this.text(m,l,x);case t.ProcessingInstruction:return this.processingInstruction(m,l,x);case t.Dummy:return"";case t.Declaration:return this.declaration(m,l,x);case t.DocType:return this.docType(m,l,x);case t.AttributeDeclaration:return this.dtdAttList(m,l,x);case t.ElementDeclaration:return this.dtdElement(m,l,x);case t.EntityDeclaration:return this.dtdEntity(m,l,x);case t.NotationDeclaration:return this.dtdNotation(m,l,x);default:throw new Error("Unknown XML node type: "+m.constructor.name)}},p.prototype.processingInstruction=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<?",l.state=o.InsideTag,u+=m.target,m.value&&(u+=" "+m.value),l.state=o.CloseTag,u+=l.spaceBeforeSlash+"?>",u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.raw=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x),l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.text=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x),l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.dtdAttList=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!ATTLIST",l.state=o.InsideTag,u+=" "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(u+=" "+m.defaultValueType),m.defaultValue&&(u+=' "'+m.defaultValue+'"'),l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.dtdElement=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!ELEMENT",l.state=o.InsideTag,u+=" "+m.name+" "+m.value,l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.dtdEntity=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!ENTITY",l.state=o.InsideTag,m.pe&&(u+=" %"),u+=" "+m.name,m.value?u+=' "'+m.value+'"':(m.pubID&&m.sysID?u+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(u+=' SYSTEM "'+m.sysID+'"'),m.nData&&(u+=" NDATA "+m.nData)),l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.dtdNotation=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!NOTATION",l.state=o.InsideTag,u+=" "+m.name,m.pubID&&m.sysID?u+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?u+=' PUBLIC "'+m.pubID+'"':m.sysID&&(u+=' SYSTEM "'+m.sysID+'"'),l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.openNode=function(m,l,x){},p.prototype.closeNode=function(m,l,x){},p.prototype.openAttribute=function(m,l,x){},p.prototype.closeAttribute=function(m,l,x){},p}()}).call(Ta)});var He=V((Qa,Aa)=>{(function(){var t,o,e=function(i,r){for(var a in r)s.call(r,a)&&(i[a]=r[a]);function n(){this.constructor=i}return n.prototype=r.prototype,i.prototype=new n,i.__super__=r.prototype,i},s={}.hasOwnProperty;o=wi(),Aa.exports=t=function(i){e(r,i);function r(a){r.__super__.constructor.call(this,a)}return r.prototype.document=function(a,n){var c,_,d,g,O;for(n=this.filterOptions(n),g="",O=a.children,_=0,d=O.length;_<d;_++)c=O[_],g+=this.writeChildNode(c,n,0);return n.pretty&&g.slice(-n.newline.length)===n.newline&&(g=g.slice(0,-n.newline.length)),g},r}(o)}).call(Qa)});var di=V((ja,Ra)=>{(function(){var t,o,e,s,i,r,a,n,c=function(d,g){for(var O in g)_.call(g,O)&&(d[O]=g[O]);function w(){this.constructor=d}return w.prototype=g.prototype,d.prototype=new w,d.__super__=g.prototype,d},_={}.hasOwnProperty;n=po().isPlainObject,e=xi(),o=Br(),i=xo(),t=T(),a=Oi(),r=He(),Ra.exports=s=function(d){c(g,d);function g(O){g.__super__.constructor.call(this,null),this.name="#document",this.type=t.Document,this.documentURI=null,this.domConfig=new o,O||(O={}),O.writer||(O.writer=new r),this.options=O,this.stringify=new a(O)}return Object.defineProperty(g.prototype,"implementation",{value:new e}),Object.defineProperty(g.prototype,"doctype",{get:function(){var O,w,z,K;for(K=this.children,w=0,z=K.length;w<z;w++)if(O=K[w],O.type===t.DocType)return O;return null}}),Object.defineProperty(g.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(g.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(g.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(g.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].encoding:null}}),Object.defineProperty(g.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(g.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(g.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(g.prototype,"origin",{get:function(){return null}}),Object.defineProperty(g.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(g.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(g.prototype,"contentType",{get:function(){return null}}),g.prototype.end=function(O){var w;return w={},O?n(O)&&(w=O,O=this.options.writer):O=this.options.writer,O.document(this,O.filterOptions(w))},g.prototype.toString=function(O){return this.options.writer.document(this,this.options.writer.filterOptions(O))},g.prototype.createElement=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createTextNode=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createComment=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createCDATASection=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createProcessingInstruction=function(O,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createAttribute=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createEntityReference=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagName=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.importNode=function(O,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createElementNS=function(O,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createAttributeNS=function(O,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagNameNS=function(O,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementById=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.adoptNode=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.renameNode=function(O,w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByClassName=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createEvent=function(O){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createNodeIterator=function(O,w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.createTreeWalker=function(O,w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},g}(i)}).call(ja)});var Da=V((Ja,Ba)=>{(function(){var t,o,e,s,i,r,a,n,c,_,d,g,O,w,z,K,q,v,p,m,l,x,u,G,y={}.hasOwnProperty;G=po(),x=G.isObject,l=G.isFunction,u=G.isPlainObject,m=G.getValue,t=T(),g=di(),w=Pe(),s=Le(),i=Te(),K=Be(),p=De(),z=$e(),_=Ue(),d=Je(),r=Qe(),n=Ae(),a=je(),c=Re(),e=mi(),v=Oi(),q=He(),o=Dt(),Ba.exports=O=function(){function h(f,b,N){var S;this.name="?xml",this.type=t.Document,f||(f={}),S={},f.writer?u(f.writer)&&(S=f.writer,f.writer=new q):f.writer=new q,this.options=f,this.writer=f.writer,this.writerOptions=this.writer.filterOptions(S),this.stringify=new v(f),this.onDataCallback=b||function(){},this.onEndCallback=N||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return h.prototype.createChildNode=function(f){var b,N,S,E,Y,M,X,Z;switch(f.type){case t.CData:this.cdata(f.value);break;case t.Comment:this.comment(f.value);break;case t.Element:S={},X=f.attribs;for(N in X)y.call(X,N)&&(b=X[N],S[N]=b.value);this.node(f.name,S);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(f.value);break;case t.Text:this.text(f.value);break;case t.ProcessingInstruction:this.instruction(f.target,f.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+f.constructor.name)}for(Z=f.children,Y=0,M=Z.length;Y<M;Y++)E=Z[Y],this.createChildNode(E),E.type===t.Element&&this.up();return this},h.prototype.dummy=function(){return this},h.prototype.node=function(f,b,N){var S;if(f==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(f));return this.openCurrent(),f=m(f),b==null&&(b={}),b=m(b),x(b)||(S=[b,N],N=S[0],b=S[1]),this.currentNode=new w(this,f,b),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,N!=null&&this.text(N),this},h.prototype.element=function(f,b,N){var S,E,Y,M,X,Z;if(this.currentNode&&this.currentNode.type===t.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(f)||x(f)||l(f))for(M=this.options.noValidation,this.options.noValidation=!0,Z=new g(this.options).element("TEMP_ROOT"),Z.element(f),this.options.noValidation=M,X=Z.children,E=0,Y=X.length;E<Y;E++)S=X[E],this.createChildNode(S),S.type===t.Element&&this.up();else this.node(f,b,N);return this},h.prototype.attribute=function(f,b){var N,S;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(f));if(f!=null&&(f=m(f)),x(f))for(N in f)y.call(f,N)&&(S=f[N],this.attribute(N,S));else l(b)&&(b=b.apply()),this.options.keepNullAttributes&&b==null?this.currentNode.attribs[f]=new e(this,f,""):b!=null&&(this.currentNode.attribs[f]=new e(this,f,b));return this},h.prototype.text=function(f){var b;return this.openCurrent(),b=new p(this,f),this.onData(this.writer.text(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.cdata=function(f){var b;return this.openCurrent(),b=new s(this,f),this.onData(this.writer.cdata(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.comment=function(f){var b;return this.openCurrent(),b=new i(this,f),this.onData(this.writer.comment(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.raw=function(f){var b;return this.openCurrent(),b=new K(this,f),this.onData(this.writer.raw(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.instruction=function(f,b){var N,S,E,Y,M;if(this.openCurrent(),f!=null&&(f=m(f)),b!=null&&(b=m(b)),Array.isArray(f))for(N=0,Y=f.length;N<Y;N++)S=f[N],this.instruction(S);else if(x(f))for(S in f)y.call(f,S)&&(E=f[S],this.instruction(S,E));else l(b)&&(b=b.apply()),M=new z(this,f,b),this.onData(this.writer.processingInstruction(M,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},h.prototype.declaration=function(f,b,N){var S;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return S=new _(this,f,b,N),this.onData(this.writer.declaration(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.doctype=function(f,b,N){if(this.openCurrent(),f==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new d(this,b,N),this.currentNode.rootNodeName=f,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},h.prototype.dtdElement=function(f,b){var N;return this.openCurrent(),N=new a(this,f,b),this.onData(this.writer.dtdElement(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.attList=function(f,b,N,S,E){var Y;return this.openCurrent(),Y=new r(this,f,b,N,S,E),this.onData(this.writer.dtdAttList(Y,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.entity=function(f,b){var N;return this.openCurrent(),N=new n(this,!1,f,b),this.onData(this.writer.dtdEntity(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.pEntity=function(f,b){var N;return this.openCurrent(),N=new n(this,!0,f,b),this.onData(this.writer.dtdEntity(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.notation=function(f,b){var N;return this.openCurrent(),N=new c(this,f,b),this.onData(this.writer.dtdNotation(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},h.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},h.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},h.prototype.openNode=function(f){var b,N,S,E;if(!f.isOpen){if(!this.root&&this.currentLevel===0&&f.type===t.Element&&(this.root=f),N="",f.type===t.Element){this.writerOptions.state=o.OpenTag,N=this.writer.indent(f,this.writerOptions,this.currentLevel)+"<"+f.name,E=f.attribs;for(S in E)y.call(E,S)&&(b=E[S],N+=this.writer.attribute(b,this.writerOptions,this.currentLevel));N+=(f.children?">":"/>")+this.writer.endline(f,this.writerOptions,this.currentLevel),this.writerOptions.state=o.InsideTag}else this.writerOptions.state=o.OpenTag,N=this.writer.indent(f,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+f.rootNodeName,f.pubID&&f.sysID?N+=' PUBLIC "'+f.pubID+'" "'+f.sysID+'"':f.sysID&&(N+=' SYSTEM "'+f.sysID+'"'),f.children?(N+=" [",this.writerOptions.state=o.InsideTag):(this.writerOptions.state=o.CloseTag,N+=">"),N+=this.writer.endline(f,this.writerOptions,this.currentLevel);return this.onData(N,this.currentLevel),f.isOpen=!0}},h.prototype.closeNode=function(f){var b;if(!f.isClosed)return b="",this.writerOptions.state=o.CloseTag,f.type===t.Element?b=this.writer.indent(f,this.writerOptions,this.currentLevel)+"</"+f.name+">"+this.writer.endline(f,this.writerOptions,this.currentLevel):b=this.writer.indent(f,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(f,this.writerOptions,this.currentLevel),this.writerOptions.state=o.None,this.onData(b,this.currentLevel),f.isClosed=!0},h.prototype.onData=function(f,b){return this.documentStarted=!0,this.onDataCallback(f,b+1)},h.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},h.prototype.debugInfo=function(f){return f==null?"":"node: <"+f+">"},h.prototype.ele=function(){return this.element.apply(this,arguments)},h.prototype.nod=function(f,b,N){return this.node(f,b,N)},h.prototype.txt=function(f){return this.text(f)},h.prototype.dat=function(f){return this.cdata(f)},h.prototype.com=function(f){return this.comment(f)},h.prototype.ins=function(f,b){return this.instruction(f,b)},h.prototype.dec=function(f,b,N){return this.declaration(f,b,N)},h.prototype.dtd=function(f,b,N){return this.doctype(f,b,N)},h.prototype.e=function(f,b,N){return this.element(f,b,N)},h.prototype.n=function(f,b,N){return this.node(f,b,N)},h.prototype.t=function(f){return this.text(f)},h.prototype.d=function(f){return this.cdata(f)},h.prototype.c=function(f){return this.comment(f)},h.prototype.r=function(f){return this.raw(f)},h.prototype.i=function(f,b){return this.instruction(f,b)},h.prototype.att=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},h.prototype.a=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},h.prototype.ent=function(f,b){return this.entity(f,b)},h.prototype.pent=function(f,b){return this.pEntity(f,b)},h.prototype.not=function(f,b){return this.notation(f,b)},h}()}).call(Ja)});var on=V(($a,Ha)=>{(function(){var t,o,e,s,i=function(a,n){for(var c in n)r.call(n,c)&&(a[c]=n[c]);function _(){this.constructor=a}return _.prototype=n.prototype,a.prototype=new _,a.__super__=n.prototype,a},r={}.hasOwnProperty;t=T(),s=wi(),o=Dt(),Ha.exports=e=function(a){i(n,a);function n(c,_){this.stream=c,n.__super__.constructor.call(this,_)}return n.prototype.endline=function(c,_,d){return c.isLastRootNode&&_.state===o.CloseTag?"":n.__super__.endline.call(this,c,_,d)},n.prototype.document=function(c,_){var d,g,O,w,z,K,q,v,p;for(q=c.children,g=O=0,z=q.length;O<z;g=++O)d=q[g],d.isLastRootNode=g===c.children.length-1;for(_=this.filterOptions(_),v=c.children,p=[],w=0,K=v.length;w<K;w++)d=v[w],p.push(this.writeChildNode(d,_,0));return p},n.prototype.attribute=function(c,_,d){return this.stream.write(n.__super__.attribute.call(this,c,_,d))},n.prototype.cdata=function(c,_,d){return this.stream.write(n.__super__.cdata.call(this,c,_,d))},n.prototype.comment=function(c,_,d){return this.stream.write(n.__super__.comment.call(this,c,_,d))},n.prototype.declaration=function(c,_,d){return this.stream.write(n.__super__.declaration.call(this,c,_,d))},n.prototype.docType=function(c,_,d){var g,O,w,z;if(d||(d=0),this.openNode(c,_,d),_.state=o.OpenTag,this.stream.write(this.indent(c,_,d)),this.stream.write("<!DOCTYPE "+c.root().name),c.pubID&&c.sysID?this.stream.write(' PUBLIC "'+c.pubID+'" "'+c.sysID+'"'):c.sysID&&this.stream.write(' SYSTEM "'+c.sysID+'"'),c.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(c,_,d)),_.state=o.InsideTag,z=c.children,O=0,w=z.length;O<w;O++)g=z[O],this.writeChildNode(g,_,d+1);_.state=o.CloseTag,this.stream.write("]")}return _.state=o.CloseTag,this.stream.write(_.spaceBeforeSlash+">"),this.stream.write(this.endline(c,_,d)),_.state=o.None,this.closeNode(c,_,d)},n.prototype.element=function(c,_,d){var g,O,w,z,K,q,v,p,m,l;d||(d=0),this.openNode(c,_,d),_.state=o.OpenTag,this.stream.write(this.indent(c,_,d)+"<"+c.name),m=c.attribs;for(v in m)r.call(m,v)&&(g=m[v],this.attribute(g,_,d));if(w=c.children.length,z=w===0?null:c.children[0],w===0||c.children.every(function(x){return(x.type===t.Text||x.type===t.Raw)&&x.value===""}))_.allowEmpty?(this.stream.write(">"),_.state=o.CloseTag,this.stream.write("</"+c.name+">")):(_.state=o.CloseTag,this.stream.write(_.spaceBeforeSlash+"/>"));else if(_.pretty&&w===1&&(z.type===t.Text||z.type===t.Raw)&&z.value!=null)this.stream.write(">"),_.state=o.InsideTag,_.suppressPrettyCount++,p=!0,this.writeChildNode(z,_,d+1),_.suppressPrettyCount--,p=!1,_.state=o.CloseTag,this.stream.write("</"+c.name+">");else{for(this.stream.write(">"+this.endline(c,_,d)),_.state=o.InsideTag,l=c.children,K=0,q=l.length;K<q;K++)O=l[K],this.writeChildNode(O,_,d+1);_.state=o.CloseTag,this.stream.write(this.indent(c,_,d)+"</"+c.name+">")}return this.stream.write(this.endline(c,_,d)),_.state=o.None,this.closeNode(c,_,d)},n.prototype.processingInstruction=function(c,_,d){return this.stream.write(n.__super__.processingInstruction.call(this,c,_,d))},n.prototype.raw=function(c,_,d){return this.stream.write(n.__super__.raw.call(this,c,_,d))},n.prototype.text=function(c,_,d){return this.stream.write(n.__super__.text.call(this,c,_,d))},n.prototype.dtdAttList=function(c,_,d){return this.stream.write(n.__super__.dtdAttList.call(this,c,_,d))},n.prototype.dtdElement=function(c,_,d){return this.stream.write(n.__super__.dtdElement.call(this,c,_,d))},n.prototype.dtdEntity=function(c,_,d){return this.stream.write(n.__super__.dtdEntity.call(this,c,_,d))},n.prototype.dtdNotation=function(c,_,d){return this.stream.write(n.__super__.dtdNotation.call(this,c,_,d))},n}(s)}).call($a)});var en=V((tn,ot)=>{(function(){var t,o,e,s,i,r,a,n,c,_;_=po(),n=_.assign,c=_.isFunction,e=xi(),s=di(),i=Da(),a=He(),r=on(),t=T(),o=Dt(),ot.exports.create=function(d,g,O,w){var z,K;if(d==null)throw new Error("Root element needs a name.");return w=n({},g,O,w),z=new s(w),K=z.element(d),w.headless||(z.declaration(w),(w.pubID!=null||w.sysID!=null)&&z.dtd(w)),K},ot.exports.begin=function(d,g,O){var w;return c(d)&&(w=[d,g],g=w[0],O=w[1],d={}),g?new i(d,g,O):new s(d)},ot.exports.stringWriter=function(d){return new a(d)},ot.exports.streamWriter=function(d,g){return new r(d,g)},ot.exports.implementation=new e,ot.exports.nodeType=t,ot.exports.writerState=o}).call(tn)});var sn=V(yi=>{(function(){"use strict";var t,o,e,s,i,r={}.hasOwnProperty;t=en(),o=Ze().defaults,s=function(a){return typeof a=="string"&&(a.indexOf("&")>=0||a.indexOf(">")>=0||a.indexOf("<")>=0)},i=function(a){return"<![CDATA["+e(a)+"]]>"},e=function(a){return a.replace("]]>","]]]]><![CDATA[>")},yi.Builder=function(){function a(n){var c,_,d;this.options={},_=o["0.2"];for(c in _)r.call(_,c)&&(d=_[c],this.options[c]=d);for(c in n)r.call(n,c)&&(d=n[c],this.options[c]=d)}return a.prototype.buildObject=function(n){var c,_,d,g,O;return c=this.options.attrkey,_=this.options.charkey,Object.keys(n).length===1&&this.options.rootName===o["0.2"].rootName?(O=Object.keys(n)[0],n=n[O]):O=this.options.rootName,d=function(w){return function(z,K){var q,v,p,m,l,x;if(typeof K!="object")w.options.cdata&&s(K)?z.raw(i(K)):z.txt(K);else if(Array.isArray(K)){for(m in K)if(r.call(K,m)){v=K[m];for(l in v)p=v[l],z=d(z.ele(l),p).up()}}else for(l in K)if(r.call(K,l))if(v=K[l],l===c){if(typeof v=="object")for(q in v)x=v[q],z=z.att(q,x)}else if(l===_)w.options.cdata&&s(v)?z=z.raw(i(v)):z=z.txt(v);else if(Array.isArray(v))for(m in v)r.call(v,m)&&(p=v[m],typeof p=="string"?w.options.cdata&&s(p)?z=z.ele(l).raw(i(p)).up():z=z.ele(l,p).up():z=d(z.ele(l),p).up());else typeof v=="object"?z=d(z.ele(l),v).up():typeof v=="string"&&w.options.cdata&&s(v)?z=z.ele(l).raw(i(v)).up():(v==null&&(v=""),z=z.ele(l,v.toString()).up());return z}}(this),g=t.create(O,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),d(g,n).end(this.options.renderOpts)},a}()}).call(yi)});var rn=V(os=>{(function(t){t.parser=function(W,k){return new e(W,k)},t.SAXParser=e,t.SAXStream=_,t.createStream=c,t.MAX_BUFFER_LENGTH=64*1024;var o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function e(W,k){if(!(this instanceof e))return new e(W,k);var F=this;i(F),F.q=F.c="",F.bufferCheckPosition=t.MAX_BUFFER_LENGTH,F.opt=k||{},F.opt.lowercase=F.opt.lowercase||F.opt.lowercasetags,F.looseCase=F.opt.lowercase?"toLowerCase":"toUpperCase",F.tags=[],F.closed=F.closedRoot=F.sawRoot=!1,F.tag=F.error=null,F.strict=!!W,F.noscript=!!(W||F.opt.noscript),F.state=y.BEGIN,F.strictEntities=F.opt.strictEntities,F.ENTITIES=F.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),F.attribList=[],F.opt.xmlns&&(F.ns=Object.create(z)),F.trackPosition=F.opt.position!==!1,F.trackPosition&&(F.position=F.line=F.column=0),f(F,"onready")}Object.create||(Object.create=function(W){function k(){}k.prototype=W;var F=new k;return F}),Object.keys||(Object.keys=function(W){var k=[];for(var F in W)W.hasOwnProperty(F)&&k.push(F);return k});function s(W){for(var k=Math.max(t.MAX_BUFFER_LENGTH,10),F=0,C=0,P=o.length;C<P;C++){var j=W[o[C]].length;if(j>k)switch(o[C]){case"textNode":N(W);break;case"cdata":b(W,"oncdata",W.cdata),W.cdata="";break;case"script":b(W,"onscript",W.script),W.script="";break;default:E(W,"Max buffer length exceeded: "+o[C])}F=Math.max(F,j)}var R=t.MAX_BUFFER_LENGTH-F;W.bufferCheckPosition=R+W.position}function i(W){for(var k=0,F=o.length;k<F;k++)W[o[k]]=""}function r(W){N(W),W.cdata!==""&&(b(W,"oncdata",W.cdata),W.cdata=""),W.script!==""&&(b(W,"onscript",W.script),W.script="")}e.prototype={end:function(){Y(this)},write:ht,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){r(this)}};var a;try{a=require("stream").Stream}catch{a=function(){}}a||(a=function(){});var n=t.EVENTS.filter(function(W){return W!=="error"&&W!=="end"});function c(W,k){return new _(W,k)}function _(W,k){if(!(this instanceof _))return new _(W,k);a.apply(this),this._parser=new e(W,k),this.writable=!0,this.readable=!0;var F=this;this._parser.onend=function(){F.emit("end")},this._parser.onerror=function(C){F.emit("error",C),F._parser.error=null},this._decoder=null,n.forEach(function(C){Object.defineProperty(F,"on"+C,{get:function(){return F._parser["on"+C]},set:function(P){if(!P)return F.removeAllListeners(C),F._parser["on"+C]=P,P;F.on(C,P)},enumerable:!0,configurable:!1})})}_.prototype=Object.create(a.prototype,{constructor:{value:_}}),_.prototype.write=function(W){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(W)){if(!this._decoder){var k=require("string_decoder").StringDecoder;this._decoder=new k("utf8")}W=this._decoder.write(W)}return this._parser.write(W.toString()),this.emit("data",W),!0},_.prototype.end=function(W){return W&&W.length&&this.write(W),this._parser.end(),!0},_.prototype.on=function(W,k){var F=this;return!F._parser["on"+W]&&n.indexOf(W)!==-1&&(F._parser["on"+W]=function(){var C=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);C.splice(0,0,W),F.emit.apply(F,C)}),a.prototype.on.call(F,W,k)};var d="[CDATA[",g="DOCTYPE",O="http://www.w3.org/XML/1998/namespace",w="http://www.w3.org/2000/xmlns/",z={xml:O,xmlns:w},K=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,q=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(W){return W===" "||W===`
1
+ "use strict";var mx=Object.create;var Ee=Object.defineProperty;var gx=Object.getOwnPropertyDescriptor;var Ox=Object.getOwnPropertyNames;var wx=Object.getPrototypeOf,dx=Object.prototype.hasOwnProperty;var V=(t,o)=>()=>(o||t((o={exports:{}}).exports,o),o.exports),yx=(t,o)=>{for(var e in o)Ee(t,e,{get:o[e],enumerable:!0})},Xr=(t,o,e,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of Ox(o))!dx.call(t,i)&&i!==e&&Ee(t,i,{get:()=>o[i],enumerable:!(s=gx(o,i))||s.enumerable});return t};var I=(t,o,e)=>(e=t!=null?mx(wx(t)):{},Xr(o||!t||!t.__esModule?Ee(e,"default",{value:t,enumerable:!0}):e,t)),hx=t=>Xr(Ee({},"__esModule",{value:!0}),t);var _i=V((yO,ui)=>{var Ye=process||{},Yr=Ye.argv||[],Xe=Ye.env||{},fx=!(Xe.NO_COLOR||Yr.includes("--no-color"))&&(!!Xe.FORCE_COLOR||Yr.includes("--color")||Ye.platform==="win32"||(Ye.stdout||{}).isTTY&&Xe.TERM!=="dumb"||!!Xe.CI),zx=(t,o,e=t)=>s=>{let i=""+s,r=i.indexOf(o,t.length);return~r?t+Kx(i,o,e,r)+o:t+i+o},Kx=(t,o,e,s)=>{let i="",r=0;do i+=t.substring(r,s)+e,r=s+o.length,s=t.indexOf(o,r);while(~s);return i+t.substring(r)},Zr=(t=fx)=>{let o=t?zx:()=>String;return{isColorSupported:t,reset:o("\x1B[0m","\x1B[0m"),bold:o("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:o("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:o("\x1B[3m","\x1B[23m"),underline:o("\x1B[4m","\x1B[24m"),inverse:o("\x1B[7m","\x1B[27m"),hidden:o("\x1B[8m","\x1B[28m"),strikethrough:o("\x1B[9m","\x1B[29m"),black:o("\x1B[30m","\x1B[39m"),red:o("\x1B[31m","\x1B[39m"),green:o("\x1B[32m","\x1B[39m"),yellow:o("\x1B[33m","\x1B[39m"),blue:o("\x1B[34m","\x1B[39m"),magenta:o("\x1B[35m","\x1B[39m"),cyan:o("\x1B[36m","\x1B[39m"),white:o("\x1B[37m","\x1B[39m"),gray:o("\x1B[90m","\x1B[39m"),bgBlack:o("\x1B[40m","\x1B[49m"),bgRed:o("\x1B[41m","\x1B[49m"),bgGreen:o("\x1B[42m","\x1B[49m"),bgYellow:o("\x1B[43m","\x1B[49m"),bgBlue:o("\x1B[44m","\x1B[49m"),bgMagenta:o("\x1B[45m","\x1B[49m"),bgCyan:o("\x1B[46m","\x1B[49m"),bgWhite:o("\x1B[47m","\x1B[49m"),blackBright:o("\x1B[90m","\x1B[39m"),redBright:o("\x1B[91m","\x1B[39m"),greenBright:o("\x1B[92m","\x1B[39m"),yellowBright:o("\x1B[93m","\x1B[39m"),blueBright:o("\x1B[94m","\x1B[39m"),magentaBright:o("\x1B[95m","\x1B[39m"),cyanBright:o("\x1B[96m","\x1B[39m"),whiteBright:o("\x1B[97m","\x1B[39m"),bgBlackBright:o("\x1B[100m","\x1B[49m"),bgRedBright:o("\x1B[101m","\x1B[49m"),bgGreenBright:o("\x1B[102m","\x1B[49m"),bgYellowBright:o("\x1B[103m","\x1B[49m"),bgBlueBright:o("\x1B[104m","\x1B[49m"),bgMagentaBright:o("\x1B[105m","\x1B[49m"),bgCyanBright:o("\x1B[106m","\x1B[49m"),bgWhiteBright:o("\x1B[107m","\x1B[49m")}};ui.exports=Zr();ui.exports.createColors=Zr});var Ze=V(xi=>{(function(){xi.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
2
+ `},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(xi)});var Co=V((Ir,Ho)=>{(function(){var t,o,e,s,i,r,a,n=[].slice,c={}.hasOwnProperty;t=function(){var _,d,O,g,w,z;if(z=arguments[0],w=2<=arguments.length?n.call(arguments,1):[],i(Object.assign))Object.assign.apply(null,arguments);else for(_=0,O=w.length;_<O;_++)if(g=w[_],g!=null)for(d in g)c.call(g,d)&&(z[d]=g[d]);return z},i=function(_){return!!_&&Object.prototype.toString.call(_)==="[object Function]"},r=function(_){var d;return!!_&&((d=typeof _)=="function"||d==="object")},e=function(_){return i(Array.isArray)?Array.isArray(_):Object.prototype.toString.call(_)==="[object Array]"},s=function(_){var d;if(e(_))return!_.length;for(d in _)if(c.call(_,d))return!1;return!0},a=function(_){var d,O;return r(_)&&(O=Object.getPrototypeOf(_))&&(d=O.constructor)&&typeof d=="function"&&d instanceof d&&Function.prototype.toString.call(d)===Function.prototype.toString.call(Object)},o=function(_){return i(_.valueOf)?_.valueOf():_},Ho.exports.assign=t,Ho.exports.isFunction=i,Ho.exports.isObject=r,Ho.exports.isArray=e,Ho.exports.isEmpty=s,Ho.exports.isPlainObject=a,Ho.exports.getValue=o}).call(Ir)});var mi=V((Pr,Lr)=>{(function(){var t;Lr.exports=t=function(){function o(){}return o.prototype.hasFeature=function(e,s){return!0},o.prototype.createDocumentType=function(e,s,i){throw new Error("This DOM method is not implemented.")},o.prototype.createDocument=function(e,s,i){throw new Error("This DOM method is not implemented.")},o.prototype.createHTMLDocument=function(e){throw new Error("This DOM method is not implemented.")},o.prototype.getFeature=function(e,s){throw new Error("This DOM method is not implemented.")},o}()}).call(Pr)});var Qr=V((Tr,Ur)=>{(function(){var t;Ur.exports=t=function(){function o(){}return o.prototype.handleError=function(e){throw new Error(e)},o}()}).call(Tr)});var Rr=V((Ar,jr)=>{(function(){var t;jr.exports=t=function(){function o(e){this.arr=e||[]}return Object.defineProperty(o.prototype,"length",{get:function(){return this.arr.length}}),o.prototype.item=function(e){return this.arr[e]||null},o.prototype.contains=function(e){return this.arr.indexOf(e)!==-1},o}()}).call(Ar)});var Dr=V((Jr,Br)=>{(function(){var t,o,e;o=Qr(),e=Rr(),Br.exports=t=function(){function s(){var i;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new o,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=i=Object.create(this.defaultParams)}return Object.defineProperty(s.prototype,"parameterNames",{get:function(){return new e(Object.keys(this.defaultParams))}}),s.prototype.getParameter=function(i){return this.params.hasOwnProperty(i)?this.params[i]:null},s.prototype.canSetParameter=function(i,r){return!0},s.prototype.setParameter=function(i,r){return r!=null?this.params[i]=r:delete this.params[i]},s}()}).call(Jr)});var T=V(($r,Hr)=>{(function(){Hr.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call($r)});var gi=V((oa,ta)=>{(function(){var t,o,e;t=T(),e=xo(),ta.exports=o=function(){function s(i,r,a){if(this.parent=i,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),r==null)throw new Error("Missing attribute name. "+this.debugInfo(r));this.name=this.stringify.name(r),this.value=this.stringify.attValue(a),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(s.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(s.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(s.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(s.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(s.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"specified",{get:function(){return!0}}),s.prototype.clone=function(){return Object.create(this)},s.prototype.toString=function(i){return this.options.writer.attribute(this,this.options.writer.filterOptions(i))},s.prototype.debugInfo=function(i){return i=i||this.name,i==null?"parent: <"+this.parent.name+">":"attribute: {"+i+"}, parent: <"+this.parent.name+">"},s.prototype.isEqualNode=function(i){return!(i.namespaceURI!==this.namespaceURI||i.prefix!==this.prefix||i.localName!==this.localName||i.value!==this.value)},s}()}).call(oa)});var Ie=V((ea,sa)=>{(function(){var t;sa.exports=t=function(){function o(e){this.nodes=e}return Object.defineProperty(o.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),o.prototype.clone=function(){return this.nodes=null},o.prototype.getNamedItem=function(e){return this.nodes[e]},o.prototype.setNamedItem=function(e){var s;return s=this.nodes[e.nodeName],this.nodes[e.nodeName]=e,s||null},o.prototype.removeNamedItem=function(e){var s;return s=this.nodes[e],delete this.nodes[e],s||null},o.prototype.item=function(e){return this.nodes[Object.keys(this.nodes)[e]]||null},o.prototype.getNamedItemNS=function(e,s){throw new Error("This DOM method is not implemented.")},o.prototype.setNamedItemNS=function(e){throw new Error("This DOM method is not implemented.")},o.prototype.removeNamedItemNS=function(e,s){throw new Error("This DOM method is not implemented.")},o}()}).call(ea)});var Pe=V((ia,ra)=>{(function(){var t,o,e,s,i,r,a,n,c,_=function(O,g){for(var w in g)d.call(g,w)&&(O[w]=g[w]);function z(){this.constructor=O}return z.prototype=g.prototype,O.prototype=new z,O.__super__=g.prototype,O},d={}.hasOwnProperty;c=Co(),n=c.isObject,a=c.isFunction,r=c.getValue,i=xo(),t=T(),o=gi(),s=Ie(),ra.exports=e=function(O){_(g,O);function g(w,z,K){var q,v,p,m;if(g.__super__.constructor.call(this,w),z==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(z),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,K!=null&&this.attribute(K),w.type===t.Document&&(this.isRoot=!0,this.documentObject=w,w.rootObject=this,w.children)){for(m=w.children,v=0,p=m.length;v<p;v++)if(q=m[v],q.type===t.DocType){q.name=this.name;break}}}return Object.defineProperty(g.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(g.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(g.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(g.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(g.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(g.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(g.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(g.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new s(this.attribs)),this.attributeMap}}),g.prototype.clone=function(){var w,z,K,q;K=Object.create(this),K.isRoot&&(K.documentObject=null),K.attribs={},q=this.attribs;for(z in q)d.call(q,z)&&(w=q[z],K.attribs[z]=w.clone());return K.children=[],this.children.forEach(function(v){var p;return p=v.clone(),p.parent=K,K.children.push(p)}),K},g.prototype.attribute=function(w,z){var K,q;if(w!=null&&(w=r(w)),n(w))for(K in w)d.call(w,K)&&(q=w[K],this.attribute(K,q));else a(z)&&(z=z.apply()),this.options.keepNullAttributes&&z==null?this.attribs[w]=new o(this,w,""):z!=null&&(this.attribs[w]=new o(this,w,z));return this},g.prototype.removeAttribute=function(w){var z,K,q;if(w==null)throw new Error("Missing attribute name. "+this.debugInfo());if(w=r(w),Array.isArray(w))for(K=0,q=w.length;K<q;K++)z=w[K],delete this.attribs[z];else delete this.attribs[w];return this},g.prototype.toString=function(w){return this.options.writer.element(this,this.options.writer.filterOptions(w))},g.prototype.att=function(w,z){return this.attribute(w,z)},g.prototype.a=function(w,z){return this.attribute(w,z)},g.prototype.getAttribute=function(w){return this.attribs.hasOwnProperty(w)?this.attribs[w].value:null},g.prototype.setAttribute=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getAttributeNode=function(w){return this.attribs.hasOwnProperty(w)?this.attribs[w]:null},g.prototype.setAttributeNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.removeAttributeNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagName=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getAttributeNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setAttributeNS=function(w,z,K){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.removeAttributeNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getAttributeNodeNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setAttributeNodeNS=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagNameNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.hasAttribute=function(w){return this.attribs.hasOwnProperty(w)},g.prototype.hasAttributeNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setIdAttribute=function(w,z){return this.attribs.hasOwnProperty(w)?this.attribs[w].isId:z},g.prototype.setIdAttributeNS=function(w,z,K){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.setIdAttributeNode=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagName=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByTagNameNS=function(w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.getElementsByClassName=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},g.prototype.isEqualNode=function(w){var z,K,q;if(!g.__super__.isEqualNode.apply(this,arguments).isEqualNode(w)||w.namespaceURI!==this.namespaceURI||w.prefix!==this.prefix||w.localName!==this.localName||w.attribs.length!==this.attribs.length)return!1;for(z=K=0,q=this.attribs.length-1;0<=q?K<=q:K>=q;z=0<=q?++K:--K)if(!this.attribs[z].isEqualNode(w.attribs[z]))return!1;return!0},g}(i)}).call(ia)});var Bt=V((aa,na)=>{(function(){var t,o,e=function(i,r){for(var a in r)s.call(r,a)&&(i[a]=r[a]);function n(){this.constructor=i}return n.prototype=r.prototype,i.prototype=new n,i.__super__=r.prototype,i},s={}.hasOwnProperty;o=xo(),na.exports=t=function(i){e(r,i);function r(a){r.__super__.constructor.call(this,a),this.value=""}return Object.defineProperty(r.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(r.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(r.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),r.prototype.clone=function(){return Object.create(this)},r.prototype.substringData=function(a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.appendData=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.insertData=function(a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.deleteData=function(a,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceData=function(a,n,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.isEqualNode=function(a){return!(!r.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)||a.data!==this.data)},r}(o)}).call(aa)});var Le=V((ca,la)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;t=T(),e=Bt(),la.exports=o=function(r){s(a,r);function a(n,c){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(c)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(n){return this.options.writer.cdata(this,this.options.writer.filterOptions(n))},a}(e)}).call(ca)});var Te=V((ua,_a)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;t=T(),o=Bt(),_a.exports=e=function(r){s(a,r);function a(n,c){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(c)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(n){return this.options.writer.comment(this,this.options.writer.filterOptions(n))},a}(o)}).call(ua)});var Ue=V((xa,ma)=>{(function(){var t,o,e,s,i=function(a,n){for(var c in n)r.call(n,c)&&(a[c]=n[c]);function _(){this.constructor=a}return _.prototype=n.prototype,a.prototype=new _,a.__super__=n.prototype,a},r={}.hasOwnProperty;s=Co().isObject,e=xo(),t=T(),ma.exports=o=function(a){i(n,a);function n(c,_,d,O){var g;n.__super__.constructor.call(this,c),s(_)&&(g=_,_=g.version,d=g.encoding,O=g.standalone),_||(_="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(_),d!=null&&(this.encoding=this.stringify.xmlEncoding(d)),O!=null&&(this.standalone=this.stringify.xmlStandalone(O))}return n.prototype.toString=function(c){return this.options.writer.declaration(this,this.options.writer.filterOptions(c))},n}(e)}).call(xa)});var Qe=V((ga,Oa)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;e=xo(),t=T(),Oa.exports=o=function(r){s(a,r);function a(n,c,_,d,O,g){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(_==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(c));if(!d)throw new Error("Missing DTD attribute type. "+this.debugInfo(c));if(!O)throw new Error("Missing DTD attribute default. "+this.debugInfo(c));if(O.indexOf("#")!==0&&(O="#"+O),!O.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(g&&!O.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.name(c),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(_),this.attributeType=this.stringify.dtdAttType(d),g&&(this.defaultValue=this.stringify.dtdAttDefault(g)),this.defaultValueType=O}return a.prototype.toString=function(n){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(n))},a}(e)}).call(ga)});var Ae=V((wa,da)=>{(function(){var t,o,e,s,i=function(a,n){for(var c in n)r.call(n,c)&&(a[c]=n[c]);function _(){this.constructor=a}return _.prototype=n.prototype,a.prototype=new _,a.__super__=n.prototype,a},r={}.hasOwnProperty;s=Co().isObject,e=xo(),t=T(),da.exports=o=function(a){i(n,a);function n(c,_,d,O){if(n.__super__.constructor.call(this,c),d==null)throw new Error("Missing DTD entity name. "+this.debugInfo(d));if(O==null)throw new Error("Missing DTD entity value. "+this.debugInfo(d));if(this.pe=!!_,this.name=this.stringify.name(d),this.type=t.EntityDeclaration,!s(O))this.value=this.stringify.dtdEntityValue(O),this.internal=!0;else{if(!O.pubID&&!O.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(d));if(O.pubID&&!O.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(d));if(this.internal=!1,O.pubID!=null&&(this.pubID=this.stringify.dtdPubID(O.pubID)),O.sysID!=null&&(this.sysID=this.stringify.dtdSysID(O.sysID)),O.nData!=null&&(this.nData=this.stringify.dtdNData(O.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(d))}}return Object.defineProperty(n.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(n.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(n.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(n.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(n.prototype,"xmlVersion",{get:function(){return null}}),n.prototype.toString=function(c){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(c))},n}(e)}).call(wa)});var je=V((ya,ha)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;e=xo(),t=T(),ha.exports=o=function(r){s(a,r);function a(n,c,_){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());_||(_="(#PCDATA)"),Array.isArray(_)&&(_="("+_.join(",")+")"),this.name=this.stringify.name(c),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(_)}return a.prototype.toString=function(n){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(n))},a}(e)}).call(ya)});var Re=V((fa,za)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;e=xo(),t=T(),za.exports=o=function(r){s(a,r);function a(n,c,_){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing DTD notation name. "+this.debugInfo(c));if(!_.pubID&&!_.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=t.NotationDeclaration,_.pubID!=null&&(this.pubID=this.stringify.dtdPubID(_.pubID)),_.sysID!=null&&(this.sysID=this.stringify.dtdSysID(_.sysID))}return Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),a.prototype.toString=function(n){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(n))},a}(e)}).call(fa)});var Je=V((Ka,ka)=>{(function(){var t,o,e,s,i,r,a,n,c,_=function(O,g){for(var w in g)d.call(g,w)&&(O[w]=g[w]);function z(){this.constructor=O}return z.prototype=g.prototype,O.prototype=new z,O.__super__=g.prototype,O},d={}.hasOwnProperty;c=Co().isObject,n=xo(),t=T(),o=Qe(),s=Ae(),e=je(),i=Re(),a=Ie(),ka.exports=r=function(O){_(g,O);function g(w,z,K){var q,v,p,m,l,x;if(g.__super__.constructor.call(this,w),this.type=t.DocType,w.children){for(m=w.children,v=0,p=m.length;v<p;v++)if(q=m[v],q.type===t.Element){this.name=q.name;break}}this.documentObject=w,c(z)&&(l=z,z=l.pubID,K=l.sysID),K==null&&(x=[z,K],K=x[0],z=x[1]),z!=null&&(this.pubID=this.stringify.dtdPubID(z)),K!=null&&(this.sysID=this.stringify.dtdSysID(K))}return Object.defineProperty(g.prototype,"entities",{get:function(){var w,z,K,q,v;for(q={},v=this.children,z=0,K=v.length;z<K;z++)w=v[z],w.type===t.EntityDeclaration&&!w.pe&&(q[w.name]=w);return new a(q)}}),Object.defineProperty(g.prototype,"notations",{get:function(){var w,z,K,q,v;for(q={},v=this.children,z=0,K=v.length;z<K;z++)w=v[z],w.type===t.NotationDeclaration&&(q[w.name]=w);return new a(q)}}),Object.defineProperty(g.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(g.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(g.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),g.prototype.element=function(w,z){var K;return K=new e(this,w,z),this.children.push(K),this},g.prototype.attList=function(w,z,K,q,v){var p;return p=new o(this,w,z,K,q,v),this.children.push(p),this},g.prototype.entity=function(w,z){var K;return K=new s(this,!1,w,z),this.children.push(K),this},g.prototype.pEntity=function(w,z){var K;return K=new s(this,!0,w,z),this.children.push(K),this},g.prototype.notation=function(w,z){var K;return K=new i(this,w,z),this.children.push(K),this},g.prototype.toString=function(w){return this.options.writer.docType(this,this.options.writer.filterOptions(w))},g.prototype.ele=function(w,z){return this.element(w,z)},g.prototype.att=function(w,z,K,q,v){return this.attList(w,z,K,q,v)},g.prototype.ent=function(w,z){return this.entity(w,z)},g.prototype.pent=function(w,z){return this.pEntity(w,z)},g.prototype.not=function(w,z){return this.notation(w,z)},g.prototype.up=function(){return this.root()||this.documentObject},g.prototype.isEqualNode=function(w){return!(!g.__super__.isEqualNode.apply(this,arguments).isEqualNode(w)||w.name!==this.name||w.publicId!==this.publicId||w.systemId!==this.systemId)},g}(n)}).call(Ka)});var Be=V((Ga,Wa)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;t=T(),o=xo(),Wa.exports=e=function(r){s(a,r);function a(n,c){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(c)}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(n){return this.options.writer.raw(this,this.options.writer.filterOptions(n))},a}(o)}).call(Ga)});var De=V((ba,va)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;t=T(),o=Bt(),va.exports=e=function(r){s(a,r);function a(n,c){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=t.Text,this.value=this.stringify.text(c)}return Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var n,c,_;for(_="",c=this.previousSibling;c;)_=c.data+_,c=c.previousSibling;for(_+=this.data,n=this.nextSibling;n;)_=_+n.data,n=n.nextSibling;return _}}),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(n){return this.options.writer.text(this,this.options.writer.filterOptions(n))},a.prototype.splitText=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.replaceWholeText=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},a}(o)}).call(ba)});var $e=V((qa,pa)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;t=T(),o=Bt(),pa.exports=e=function(r){s(a,r);function a(n,c,_){if(a.__super__.constructor.call(this,n),c==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=t.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,_&&(this.value=this.stringify.insValue(_))}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(n){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(n))},a.prototype.isEqualNode=function(n){return!(!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(n)||n.target!==this.target)},a}(o)}).call(qa)});var Oi=V((Ca,Na)=>{(function(){var t,o,e,s=function(r,a){for(var n in a)i.call(a,n)&&(r[n]=a[n]);function c(){this.constructor=r}return c.prototype=a.prototype,r.prototype=new c,r.__super__=a.prototype,r},i={}.hasOwnProperty;e=xo(),t=T(),Na.exports=o=function(r){s(a,r);function a(n){a.__super__.constructor.call(this,n),this.type=t.Dummy}return a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(n){return""},a}(e)}).call(Ca)});var Ma=V((Sa,Fa)=>{(function(){var t;Fa.exports=t=function(){function o(e){this.nodes=e}return Object.defineProperty(o.prototype,"length",{get:function(){return this.nodes.length||0}}),o.prototype.clone=function(){return this.nodes=null},o.prototype.item=function(e){return this.nodes[e]||null},o}()}).call(Sa)});var Xa=V((Va,Ea)=>{(function(){Ea.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(Va)});var xo=V((Ya,Za)=>{(function(){var t,o,e,s,i,r,a,n,c,_,d,O,g,w,z,K,q,v,p,m={}.hasOwnProperty;p=Co(),v=p.isObject,q=p.isFunction,K=p.isEmpty,z=p.getValue,n=null,e=null,s=null,i=null,r=null,g=null,w=null,O=null,a=null,o=null,d=null,c=null,t=null,Za.exports=_=function(){function l(x){this.parent=x,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,n||(n=Pe(),e=Le(),s=Te(),i=Ue(),r=Je(),g=Be(),w=De(),O=$e(),a=Oi(),o=T(),d=Ma(),c=Ie(),t=Xa())}return Object.defineProperty(l.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(l.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(l.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(l.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(l.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new d(this.children)),this.childNodeList}}),Object.defineProperty(l.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(l.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(l.prototype,"previousSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x-1]||null}}),Object.defineProperty(l.prototype,"nextSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x+1]||null}}),Object.defineProperty(l.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(l.prototype,"textContent",{get:function(){var x,u,G,y,h;if(this.nodeType===o.Element||this.nodeType===o.DocumentFragment){for(h="",y=this.children,u=0,G=y.length;u<G;u++)x=y[u],x.textContent&&(h+=x.textContent);return h}else return null},set:function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),l.prototype.setParent=function(x){var u,G,y,h,f;for(this.parent=x,x&&(this.options=x.options,this.stringify=x.stringify),h=this.children,f=[],G=0,y=h.length;G<y;G++)u=h[G],f.push(u.setParent(this));return f},l.prototype.element=function(x,u,G){var y,h,f,b,N,S,E,Y,M,X,Z;if(S=null,u===null&&G==null&&(M=[{},null],u=M[0],G=M[1]),u==null&&(u={}),u=z(u),v(u)||(X=[u,G],G=X[0],u=X[1]),x!=null&&(x=z(x)),Array.isArray(x))for(f=0,E=x.length;f<E;f++)h=x[f],S=this.element(h);else if(q(x))S=this.element(x.apply());else if(v(x)){for(N in x)if(m.call(x,N))if(Z=x[N],q(Z)&&(Z=Z.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&N.indexOf(this.stringify.convertAttKey)===0)S=this.attribute(N.substr(this.stringify.convertAttKey.length),Z);else if(!this.options.separateArrayItems&&Array.isArray(Z)&&K(Z))S=this.dummy();else if(v(Z)&&K(Z))S=this.element(N);else if(!this.options.keepNullNodes&&Z==null)S=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(Z))for(b=0,Y=Z.length;b<Y;b++)h=Z[b],y={},y[N]=h,S=this.element(y);else v(Z)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&N.indexOf(this.stringify.convertTextKey)===0?S=this.element(Z):(S=this.element(N),S.element(Z)):S=this.element(N,Z)}else!this.options.keepNullNodes&&G===null?S=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&x.indexOf(this.stringify.convertTextKey)===0?S=this.text(G):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&x.indexOf(this.stringify.convertCDataKey)===0?S=this.cdata(G):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&x.indexOf(this.stringify.convertCommentKey)===0?S=this.comment(G):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&x.indexOf(this.stringify.convertRawKey)===0?S=this.raw(G):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&x.indexOf(this.stringify.convertPIKey)===0?S=this.instruction(x.substr(this.stringify.convertPIKey.length),G):S=this.node(x,u,G);if(S==null)throw new Error("Could not create any elements with: "+x+". "+this.debugInfo());return S},l.prototype.insertBefore=function(x,u,G){var y,h,f,b,N;if(x?.type)return f=x,b=u,f.setParent(this),b?(h=children.indexOf(b),N=children.splice(h),children.push(f),Array.prototype.push.apply(children,N)):children.push(f),f;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(x));return h=this.parent.children.indexOf(this),N=this.parent.children.splice(h),y=this.parent.element(x,u,G),Array.prototype.push.apply(this.parent.children,N),y},l.prototype.insertAfter=function(x,u,G){var y,h,f;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(x));return h=this.parent.children.indexOf(this),f=this.parent.children.splice(h+1),y=this.parent.element(x,u,G),Array.prototype.push.apply(this.parent.children,f),y},l.prototype.remove=function(){var x,u;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return x=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[x,x-x+1].concat(u=[])),this.parent},l.prototype.node=function(x,u,G){var y,h;return x!=null&&(x=z(x)),u||(u={}),u=z(u),v(u)||(h=[u,G],G=h[0],u=h[1]),y=new n(this,x,u),G!=null&&y.text(G),this.children.push(y),y},l.prototype.text=function(x){var u;return v(x)&&this.element(x),u=new w(this,x),this.children.push(u),this},l.prototype.cdata=function(x){var u;return u=new e(this,x),this.children.push(u),this},l.prototype.comment=function(x){var u;return u=new s(this,x),this.children.push(u),this},l.prototype.commentBefore=function(x){var u,G,y;return G=this.parent.children.indexOf(this),y=this.parent.children.splice(G),u=this.parent.comment(x),Array.prototype.push.apply(this.parent.children,y),this},l.prototype.commentAfter=function(x){var u,G,y;return G=this.parent.children.indexOf(this),y=this.parent.children.splice(G+1),u=this.parent.comment(x),Array.prototype.push.apply(this.parent.children,y),this},l.prototype.raw=function(x){var u;return u=new g(this,x),this.children.push(u),this},l.prototype.dummy=function(){var x;return x=new a(this),x},l.prototype.instruction=function(x,u){var G,y,h,f,b;if(x!=null&&(x=z(x)),u!=null&&(u=z(u)),Array.isArray(x))for(f=0,b=x.length;f<b;f++)G=x[f],this.instruction(G);else if(v(x))for(G in x)m.call(x,G)&&(y=x[G],this.instruction(G,y));else q(u)&&(u=u.apply()),h=new O(this,x,u),this.children.push(h);return this},l.prototype.instructionBefore=function(x,u){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y),G=this.parent.instruction(x,u),Array.prototype.push.apply(this.parent.children,h),this},l.prototype.instructionAfter=function(x,u){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y+1),G=this.parent.instruction(x,u),Array.prototype.push.apply(this.parent.children,h),this},l.prototype.declaration=function(x,u,G){var y,h;return y=this.document(),h=new i(y,x,u,G),y.children.length===0?y.children.unshift(h):y.children[0].type===o.Declaration?y.children[0]=h:y.children.unshift(h),y.root()||y},l.prototype.dtd=function(x,u){var G,y,h,f,b,N,S,E,Y,M;for(y=this.document(),h=new r(y,x,u),Y=y.children,f=b=0,S=Y.length;b<S;f=++b)if(G=Y[f],G.type===o.DocType)return y.children[f]=h,h;for(M=y.children,f=N=0,E=M.length;N<E;f=++N)if(G=M[f],G.isRoot)return y.children.splice(f,0,h),h;return y.children.push(h),h},l.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},l.prototype.root=function(){var x;for(x=this;x;){if(x.type===o.Document)return x.rootObject;if(x.isRoot)return x;x=x.parent}},l.prototype.document=function(){var x;for(x=this;x;){if(x.type===o.Document)return x;x=x.parent}},l.prototype.end=function(x){return this.document().end(x)},l.prototype.prev=function(){var x;if(x=this.parent.children.indexOf(this),x<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[x-1]},l.prototype.next=function(){var x;if(x=this.parent.children.indexOf(this),x===-1||x===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[x+1]},l.prototype.importDocument=function(x){var u;return u=x.root().clone(),u.parent=this,u.isRoot=!1,this.children.push(u),this},l.prototype.debugInfo=function(x){var u,G;return x=x||this.name,x==null&&!((u=this.parent)!=null&&u.name)?"":x==null?"parent: <"+this.parent.name+">":(G=this.parent)!=null&&G.name?"node: <"+x+">, parent: <"+this.parent.name+">":"node: <"+x+">"},l.prototype.ele=function(x,u,G){return this.element(x,u,G)},l.prototype.nod=function(x,u,G){return this.node(x,u,G)},l.prototype.txt=function(x){return this.text(x)},l.prototype.dat=function(x){return this.cdata(x)},l.prototype.com=function(x){return this.comment(x)},l.prototype.ins=function(x,u){return this.instruction(x,u)},l.prototype.doc=function(){return this.document()},l.prototype.dec=function(x,u,G){return this.declaration(x,u,G)},l.prototype.e=function(x,u,G){return this.element(x,u,G)},l.prototype.n=function(x,u,G){return this.node(x,u,G)},l.prototype.t=function(x){return this.text(x)},l.prototype.d=function(x){return this.cdata(x)},l.prototype.c=function(x){return this.comment(x)},l.prototype.r=function(x){return this.raw(x)},l.prototype.i=function(x,u){return this.instruction(x,u)},l.prototype.u=function(){return this.up()},l.prototype.importXMLBuilder=function(x){return this.importDocument(x)},l.prototype.replaceChild=function(x,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.removeChild=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.appendChild=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.hasChildNodes=function(){return this.children.length!==0},l.prototype.cloneNode=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isSupported=function(x,u){return!0},l.prototype.hasAttributes=function(){return this.attribs.length!==0},l.prototype.compareDocumentPosition=function(x){var u,G;return u=this,u===x?0:this.document()!==x.document()?(G=t.Disconnected|t.ImplementationSpecific,Math.random()<.5?G|=t.Preceding:G|=t.Following,G):u.isAncestor(x)?t.Contains|t.Preceding:u.isDescendant(x)?t.Contains|t.Following:u.isPreceding(x)?t.Preceding:t.Following},l.prototype.isSameNode=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.lookupPrefix=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isDefaultNamespace=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.lookupNamespaceURI=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.isEqualNode=function(x){var u,G,y;if(x.nodeType!==this.nodeType||x.children.length!==this.children.length)return!1;for(u=G=0,y=this.children.length-1;0<=y?G<=y:G>=y;u=0<=y?++G:--G)if(!this.children[u].isEqualNode(x.children[u]))return!1;return!0},l.prototype.getFeature=function(x,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.setUserData=function(x,u,G){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.getUserData=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},l.prototype.contains=function(x){return x?x===this||this.isDescendant(x):!1},l.prototype.isDescendant=function(x){var u,G,y,h,f;for(f=this.children,y=0,h=f.length;y<h;y++)if(u=f[y],x===u||(G=u.isDescendant(x),G))return!0;return!1},l.prototype.isAncestor=function(x){return x.isDescendant(this)},l.prototype.isPreceding=function(x){var u,G;return u=this.treePosition(x),G=this.treePosition(this),u===-1||G===-1?!1:u<G},l.prototype.isFollowing=function(x){var u,G;return u=this.treePosition(x),G=this.treePosition(this),u===-1||G===-1?!1:u>G},l.prototype.treePosition=function(x){var u,G;return G=0,u=!1,this.foreachTreeNode(this.document(),function(y){if(G++,!u&&y===x)return u=!0}),u?G:-1},l.prototype.foreachTreeNode=function(x,u){var G,y,h,f,b;for(x||(x=this.document()),f=x.children,y=0,h=f.length;y<h;y++){if(G=f[y],b=u(G))return b;if(b=this.foreachTreeNode(G,u),b)return b}},l}()}).call(Ya)});var wi=V((Ia,Pa)=>{(function(){var t,o=function(s,i){return function(){return s.apply(i,arguments)}},e={}.hasOwnProperty;Pa.exports=t=function(){function s(i){this.assertLegalName=o(this.assertLegalName,this),this.assertLegalChar=o(this.assertLegalChar,this);var r,a,n;i||(i={}),this.options=i,this.options.version||(this.options.version="1.0"),a=i.stringify||{};for(r in a)e.call(a,r)&&(n=a[r],this[r]=n)}return s.prototype.name=function(i){return this.options.noValidation?i:this.assertLegalName(""+i||"")},s.prototype.text=function(i){return this.options.noValidation?i:this.assertLegalChar(this.textEscape(""+i||""))},s.prototype.cdata=function(i){return this.options.noValidation?i:(i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i))},s.prototype.comment=function(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+i);return this.assertLegalChar(i)},s.prototype.raw=function(i){return this.options.noValidation?i:""+i||""},s.prototype.attValue=function(i){return this.options.noValidation?i:this.assertLegalChar(this.attEscape(i=""+i||""))},s.prototype.insTarget=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.insValue=function(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return this.assertLegalChar(i)},s.prototype.xmlVersion=function(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i},s.prototype.xmlEncoding=function(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+i);return this.assertLegalChar(i)},s.prototype.xmlStandalone=function(i){return this.options.noValidation?i:i?"yes":"no"},s.prototype.dtdPubID=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdSysID=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdElementValue=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdAttType=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdAttDefault=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdEntityValue=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.dtdNData=function(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")},s.prototype.convertAttKey="@",s.prototype.convertPIKey="?",s.prototype.convertTextKey="#text",s.prototype.convertCDataKey="#cdata",s.prototype.convertCommentKey="#comment",s.prototype.convertRawKey="#raw",s.prototype.assertLegalChar=function(i){var r,a;if(this.options.noValidation)return i;if(r="",this.options.version==="1.0"){if(r=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=i.match(r))throw new Error("Invalid character in string: "+i+" at index "+a.index)}else if(this.options.version==="1.1"&&(r=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,a=i.match(r)))throw new Error("Invalid character in string: "+i+" at index "+a.index);return i},s.prototype.assertLegalName=function(i){var r;if(this.options.noValidation)return i;if(this.assertLegalChar(i),r=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!i.match(r))throw new Error("Invalid character in name");return i},s.prototype.textEscape=function(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},s.prototype.attEscape=function(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},s}()}).call(Ia)});var Dt=V((La,Ta)=>{(function(){Ta.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(La)});var di=V((Ua,Qa)=>{(function(){var t,o,e,s,i,r,a,n,c,_,d,O,g,w,z,K,q,v={}.hasOwnProperty;q=Co().assign,t=T(),c=Ue(),_=Je(),e=Le(),s=Te(),O=Pe(),w=Be(),z=De(),g=$e(),d=Oi(),i=Qe(),r=je(),a=Ae(),n=Re(),o=Dt(),Qa.exports=K=function(){function p(m){var l,x,u;m||(m={}),this.options=m,x=m.writer||{};for(l in x)v.call(x,l)&&(u=x[l],this["_"+l]=this[l],this[l]=u)}return p.prototype.filterOptions=function(m){var l,x,u,G,y,h,f,b;return m||(m={}),m=q({},this.options,m),l={writer:this},l.pretty=m.pretty||!1,l.allowEmpty=m.allowEmpty||!1,l.indent=(x=m.indent)!=null?x:" ",l.newline=(u=m.newline)!=null?u:`
3
+ `,l.offset=(G=m.offset)!=null?G:0,l.dontPrettyTextNodes=(y=(h=m.dontPrettyTextNodes)!=null?h:m.dontprettytextnodes)!=null?y:0,l.spaceBeforeSlash=(f=(b=m.spaceBeforeSlash)!=null?b:m.spacebeforeslash)!=null?f:"",l.spaceBeforeSlash===!0&&(l.spaceBeforeSlash=" "),l.suppressPrettyCount=0,l.user={},l.state=o.None,l},p.prototype.indent=function(m,l,x){var u;return!l.pretty||l.suppressPrettyCount?"":l.pretty&&(u=(x||0)+l.offset+1,u>0)?new Array(u).join(l.indent):""},p.prototype.endline=function(m,l,x){return!l.pretty||l.suppressPrettyCount?"":l.newline},p.prototype.attribute=function(m,l,x){var u;return this.openAttribute(m,l,x),u=" "+m.name+'="'+m.value+'"',this.closeAttribute(m,l,x),u},p.prototype.cdata=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<![CDATA[",l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+="]]>"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.comment=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!-- ",l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+=" -->"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.declaration=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<?xml",l.state=o.InsideTag,u+=' version="'+m.version+'"',m.encoding!=null&&(u+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(u+=' standalone="'+m.standalone+'"'),l.state=o.CloseTag,u+=l.spaceBeforeSlash+"?>",u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.docType=function(m,l,x){var u,G,y,h,f;if(x||(x=0),this.openNode(m,l,x),l.state=o.OpenTag,h=this.indent(m,l,x),h+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?h+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(h+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(h+=" [",h+=this.endline(m,l,x),l.state=o.InsideTag,f=m.children,G=0,y=f.length;G<y;G++)u=f[G],h+=this.writeChildNode(u,l,x+1);l.state=o.CloseTag,h+="]"}return l.state=o.CloseTag,h+=l.spaceBeforeSlash+">",h+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),h},p.prototype.element=function(m,l,x){var u,G,y,h,f,b,N,S,E,Y,M,X,Z,wo;x||(x=0),Y=!1,M="",this.openNode(m,l,x),l.state=o.OpenTag,M+=this.indent(m,l,x)+"<"+m.name,X=m.attribs;for(E in X)v.call(X,E)&&(u=X[E],M+=this.attribute(u,l,x));if(y=m.children.length,h=y===0?null:m.children[0],y===0||m.children.every(function(to){return(to.type===t.Text||to.type===t.Raw)&&to.value===""}))l.allowEmpty?(M+=">",l.state=o.CloseTag,M+="</"+m.name+">"+this.endline(m,l,x)):(l.state=o.CloseTag,M+=l.spaceBeforeSlash+"/>"+this.endline(m,l,x));else if(l.pretty&&y===1&&(h.type===t.Text||h.type===t.Raw)&&h.value!=null)M+=">",l.state=o.InsideTag,l.suppressPrettyCount++,Y=!0,M+=this.writeChildNode(h,l,x+1),l.suppressPrettyCount--,Y=!1,l.state=o.CloseTag,M+="</"+m.name+">"+this.endline(m,l,x);else{if(l.dontPrettyTextNodes){for(Z=m.children,f=0,N=Z.length;f<N;f++)if(G=Z[f],(G.type===t.Text||G.type===t.Raw)&&G.value!=null){l.suppressPrettyCount++,Y=!0;break}}for(M+=">"+this.endline(m,l,x),l.state=o.InsideTag,wo=m.children,b=0,S=wo.length;b<S;b++)G=wo[b],M+=this.writeChildNode(G,l,x+1);l.state=o.CloseTag,M+=this.indent(m,l,x)+"</"+m.name+">",Y&&l.suppressPrettyCount--,M+=this.endline(m,l,x),l.state=o.None}return this.closeNode(m,l,x),M},p.prototype.writeChildNode=function(m,l,x){switch(m.type){case t.CData:return this.cdata(m,l,x);case t.Comment:return this.comment(m,l,x);case t.Element:return this.element(m,l,x);case t.Raw:return this.raw(m,l,x);case t.Text:return this.text(m,l,x);case t.ProcessingInstruction:return this.processingInstruction(m,l,x);case t.Dummy:return"";case t.Declaration:return this.declaration(m,l,x);case t.DocType:return this.docType(m,l,x);case t.AttributeDeclaration:return this.dtdAttList(m,l,x);case t.ElementDeclaration:return this.dtdElement(m,l,x);case t.EntityDeclaration:return this.dtdEntity(m,l,x);case t.NotationDeclaration:return this.dtdNotation(m,l,x);default:throw new Error("Unknown XML node type: "+m.constructor.name)}},p.prototype.processingInstruction=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<?",l.state=o.InsideTag,u+=m.target,m.value&&(u+=" "+m.value),l.state=o.CloseTag,u+=l.spaceBeforeSlash+"?>",u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.raw=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x),l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.text=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x),l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.dtdAttList=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!ATTLIST",l.state=o.InsideTag,u+=" "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(u+=" "+m.defaultValueType),m.defaultValue&&(u+=' "'+m.defaultValue+'"'),l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.dtdElement=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!ELEMENT",l.state=o.InsideTag,u+=" "+m.name+" "+m.value,l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.dtdEntity=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!ENTITY",l.state=o.InsideTag,m.pe&&(u+=" %"),u+=" "+m.name,m.value?u+=' "'+m.value+'"':(m.pubID&&m.sysID?u+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(u+=' SYSTEM "'+m.sysID+'"'),m.nData&&(u+=" NDATA "+m.nData)),l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.dtdNotation=function(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!NOTATION",l.state=o.InsideTag,u+=" "+m.name,m.pubID&&m.sysID?u+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?u+=' PUBLIC "'+m.pubID+'"':m.sysID&&(u+=' SYSTEM "'+m.sysID+'"'),l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u},p.prototype.openNode=function(m,l,x){},p.prototype.closeNode=function(m,l,x){},p.prototype.openAttribute=function(m,l,x){},p.prototype.closeAttribute=function(m,l,x){},p}()}).call(Ua)});var He=V((Aa,ja)=>{(function(){var t,o,e=function(i,r){for(var a in r)s.call(r,a)&&(i[a]=r[a]);function n(){this.constructor=i}return n.prototype=r.prototype,i.prototype=new n,i.__super__=r.prototype,i},s={}.hasOwnProperty;o=di(),ja.exports=t=function(i){e(r,i);function r(a){r.__super__.constructor.call(this,a)}return r.prototype.document=function(a,n){var c,_,d,O,g;for(n=this.filterOptions(n),O="",g=a.children,_=0,d=g.length;_<d;_++)c=g[_],O+=this.writeChildNode(c,n,0);return n.pretty&&O.slice(-n.newline.length)===n.newline&&(O=O.slice(0,-n.newline.length)),O},r}(o)}).call(Aa)});var yi=V((Ra,Ja)=>{(function(){var t,o,e,s,i,r,a,n,c=function(d,O){for(var g in O)_.call(O,g)&&(d[g]=O[g]);function w(){this.constructor=d}return w.prototype=O.prototype,d.prototype=new w,d.__super__=O.prototype,d},_={}.hasOwnProperty;n=Co().isPlainObject,e=mi(),o=Dr(),i=xo(),t=T(),a=wi(),r=He(),Ja.exports=s=function(d){c(O,d);function O(g){O.__super__.constructor.call(this,null),this.name="#document",this.type=t.Document,this.documentURI=null,this.domConfig=new o,g||(g={}),g.writer||(g.writer=new r),this.options=g,this.stringify=new a(g)}return Object.defineProperty(O.prototype,"implementation",{value:new e}),Object.defineProperty(O.prototype,"doctype",{get:function(){var g,w,z,K;for(K=this.children,w=0,z=K.length;w<z;w++)if(g=K[w],g.type===t.DocType)return g;return null}}),Object.defineProperty(O.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(O.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(O.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(O.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].encoding:null}}),Object.defineProperty(O.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(O.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(O.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(O.prototype,"origin",{get:function(){return null}}),Object.defineProperty(O.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(O.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(O.prototype,"contentType",{get:function(){return null}}),O.prototype.end=function(g){var w;return w={},g?n(g)&&(w=g,g=this.options.writer):g=this.options.writer,g.document(this,g.filterOptions(w))},O.prototype.toString=function(g){return this.options.writer.document(this,this.options.writer.filterOptions(g))},O.prototype.createElement=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createTextNode=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createComment=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createCDATASection=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createProcessingInstruction=function(g,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createAttribute=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createEntityReference=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementsByTagName=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.importNode=function(g,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createElementNS=function(g,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createAttributeNS=function(g,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementsByTagNameNS=function(g,w){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementById=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.adoptNode=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.renameNode=function(g,w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.getElementsByClassName=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createEvent=function(g){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createNodeIterator=function(g,w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},O.prototype.createTreeWalker=function(g,w,z){throw new Error("This DOM method is not implemented."+this.debugInfo())},O}(i)}).call(Ra)});var $a=V((Ba,Da)=>{(function(){var t,o,e,s,i,r,a,n,c,_,d,O,g,w,z,K,q,v,p,m,l,x,u,G,y={}.hasOwnProperty;G=Co(),x=G.isObject,l=G.isFunction,u=G.isPlainObject,m=G.getValue,t=T(),O=yi(),w=Pe(),s=Le(),i=Te(),K=Be(),p=De(),z=$e(),_=Ue(),d=Je(),r=Qe(),n=Ae(),a=je(),c=Re(),e=gi(),v=wi(),q=He(),o=Dt(),Da.exports=g=function(){function h(f,b,N){var S;this.name="?xml",this.type=t.Document,f||(f={}),S={},f.writer?u(f.writer)&&(S=f.writer,f.writer=new q):f.writer=new q,this.options=f,this.writer=f.writer,this.writerOptions=this.writer.filterOptions(S),this.stringify=new v(f),this.onDataCallback=b||function(){},this.onEndCallback=N||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return h.prototype.createChildNode=function(f){var b,N,S,E,Y,M,X,Z;switch(f.type){case t.CData:this.cdata(f.value);break;case t.Comment:this.comment(f.value);break;case t.Element:S={},X=f.attribs;for(N in X)y.call(X,N)&&(b=X[N],S[N]=b.value);this.node(f.name,S);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(f.value);break;case t.Text:this.text(f.value);break;case t.ProcessingInstruction:this.instruction(f.target,f.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+f.constructor.name)}for(Z=f.children,Y=0,M=Z.length;Y<M;Y++)E=Z[Y],this.createChildNode(E),E.type===t.Element&&this.up();return this},h.prototype.dummy=function(){return this},h.prototype.node=function(f,b,N){var S;if(f==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(f));return this.openCurrent(),f=m(f),b==null&&(b={}),b=m(b),x(b)||(S=[b,N],N=S[0],b=S[1]),this.currentNode=new w(this,f,b),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,N!=null&&this.text(N),this},h.prototype.element=function(f,b,N){var S,E,Y,M,X,Z;if(this.currentNode&&this.currentNode.type===t.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(f)||x(f)||l(f))for(M=this.options.noValidation,this.options.noValidation=!0,Z=new O(this.options).element("TEMP_ROOT"),Z.element(f),this.options.noValidation=M,X=Z.children,E=0,Y=X.length;E<Y;E++)S=X[E],this.createChildNode(S),S.type===t.Element&&this.up();else this.node(f,b,N);return this},h.prototype.attribute=function(f,b){var N,S;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(f));if(f!=null&&(f=m(f)),x(f))for(N in f)y.call(f,N)&&(S=f[N],this.attribute(N,S));else l(b)&&(b=b.apply()),this.options.keepNullAttributes&&b==null?this.currentNode.attribs[f]=new e(this,f,""):b!=null&&(this.currentNode.attribs[f]=new e(this,f,b));return this},h.prototype.text=function(f){var b;return this.openCurrent(),b=new p(this,f),this.onData(this.writer.text(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.cdata=function(f){var b;return this.openCurrent(),b=new s(this,f),this.onData(this.writer.cdata(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.comment=function(f){var b;return this.openCurrent(),b=new i(this,f),this.onData(this.writer.comment(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.raw=function(f){var b;return this.openCurrent(),b=new K(this,f),this.onData(this.writer.raw(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.instruction=function(f,b){var N,S,E,Y,M;if(this.openCurrent(),f!=null&&(f=m(f)),b!=null&&(b=m(b)),Array.isArray(f))for(N=0,Y=f.length;N<Y;N++)S=f[N],this.instruction(S);else if(x(f))for(S in f)y.call(f,S)&&(E=f[S],this.instruction(S,E));else l(b)&&(b=b.apply()),M=new z(this,f,b),this.onData(this.writer.processingInstruction(M,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},h.prototype.declaration=function(f,b,N){var S;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return S=new _(this,f,b,N),this.onData(this.writer.declaration(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.doctype=function(f,b,N){if(this.openCurrent(),f==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new d(this,b,N),this.currentNode.rootNodeName=f,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},h.prototype.dtdElement=function(f,b){var N;return this.openCurrent(),N=new a(this,f,b),this.onData(this.writer.dtdElement(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.attList=function(f,b,N,S,E){var Y;return this.openCurrent(),Y=new r(this,f,b,N,S,E),this.onData(this.writer.dtdAttList(Y,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.entity=function(f,b){var N;return this.openCurrent(),N=new n(this,!1,f,b),this.onData(this.writer.dtdEntity(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.pEntity=function(f,b){var N;return this.openCurrent(),N=new n(this,!0,f,b),this.onData(this.writer.dtdEntity(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.notation=function(f,b){var N;return this.openCurrent(),N=new c(this,f,b),this.onData(this.writer.dtdNotation(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},h.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},h.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},h.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},h.prototype.openNode=function(f){var b,N,S,E;if(!f.isOpen){if(!this.root&&this.currentLevel===0&&f.type===t.Element&&(this.root=f),N="",f.type===t.Element){this.writerOptions.state=o.OpenTag,N=this.writer.indent(f,this.writerOptions,this.currentLevel)+"<"+f.name,E=f.attribs;for(S in E)y.call(E,S)&&(b=E[S],N+=this.writer.attribute(b,this.writerOptions,this.currentLevel));N+=(f.children?">":"/>")+this.writer.endline(f,this.writerOptions,this.currentLevel),this.writerOptions.state=o.InsideTag}else this.writerOptions.state=o.OpenTag,N=this.writer.indent(f,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+f.rootNodeName,f.pubID&&f.sysID?N+=' PUBLIC "'+f.pubID+'" "'+f.sysID+'"':f.sysID&&(N+=' SYSTEM "'+f.sysID+'"'),f.children?(N+=" [",this.writerOptions.state=o.InsideTag):(this.writerOptions.state=o.CloseTag,N+=">"),N+=this.writer.endline(f,this.writerOptions,this.currentLevel);return this.onData(N,this.currentLevel),f.isOpen=!0}},h.prototype.closeNode=function(f){var b;if(!f.isClosed)return b="",this.writerOptions.state=o.CloseTag,f.type===t.Element?b=this.writer.indent(f,this.writerOptions,this.currentLevel)+"</"+f.name+">"+this.writer.endline(f,this.writerOptions,this.currentLevel):b=this.writer.indent(f,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(f,this.writerOptions,this.currentLevel),this.writerOptions.state=o.None,this.onData(b,this.currentLevel),f.isClosed=!0},h.prototype.onData=function(f,b){return this.documentStarted=!0,this.onDataCallback(f,b+1)},h.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},h.prototype.debugInfo=function(f){return f==null?"":"node: <"+f+">"},h.prototype.ele=function(){return this.element.apply(this,arguments)},h.prototype.nod=function(f,b,N){return this.node(f,b,N)},h.prototype.txt=function(f){return this.text(f)},h.prototype.dat=function(f){return this.cdata(f)},h.prototype.com=function(f){return this.comment(f)},h.prototype.ins=function(f,b){return this.instruction(f,b)},h.prototype.dec=function(f,b,N){return this.declaration(f,b,N)},h.prototype.dtd=function(f,b,N){return this.doctype(f,b,N)},h.prototype.e=function(f,b,N){return this.element(f,b,N)},h.prototype.n=function(f,b,N){return this.node(f,b,N)},h.prototype.t=function(f){return this.text(f)},h.prototype.d=function(f){return this.cdata(f)},h.prototype.c=function(f){return this.comment(f)},h.prototype.r=function(f){return this.raw(f)},h.prototype.i=function(f,b){return this.instruction(f,b)},h.prototype.att=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},h.prototype.a=function(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},h.prototype.ent=function(f,b){return this.entity(f,b)},h.prototype.pent=function(f,b){return this.pEntity(f,b)},h.prototype.not=function(f,b){return this.notation(f,b)},h}()}).call(Ba)});var tn=V((Ha,on)=>{(function(){var t,o,e,s,i=function(a,n){for(var c in n)r.call(n,c)&&(a[c]=n[c]);function _(){this.constructor=a}return _.prototype=n.prototype,a.prototype=new _,a.__super__=n.prototype,a},r={}.hasOwnProperty;t=T(),s=di(),o=Dt(),on.exports=e=function(a){i(n,a);function n(c,_){this.stream=c,n.__super__.constructor.call(this,_)}return n.prototype.endline=function(c,_,d){return c.isLastRootNode&&_.state===o.CloseTag?"":n.__super__.endline.call(this,c,_,d)},n.prototype.document=function(c,_){var d,O,g,w,z,K,q,v,p;for(q=c.children,O=g=0,z=q.length;g<z;O=++g)d=q[O],d.isLastRootNode=O===c.children.length-1;for(_=this.filterOptions(_),v=c.children,p=[],w=0,K=v.length;w<K;w++)d=v[w],p.push(this.writeChildNode(d,_,0));return p},n.prototype.attribute=function(c,_,d){return this.stream.write(n.__super__.attribute.call(this,c,_,d))},n.prototype.cdata=function(c,_,d){return this.stream.write(n.__super__.cdata.call(this,c,_,d))},n.prototype.comment=function(c,_,d){return this.stream.write(n.__super__.comment.call(this,c,_,d))},n.prototype.declaration=function(c,_,d){return this.stream.write(n.__super__.declaration.call(this,c,_,d))},n.prototype.docType=function(c,_,d){var O,g,w,z;if(d||(d=0),this.openNode(c,_,d),_.state=o.OpenTag,this.stream.write(this.indent(c,_,d)),this.stream.write("<!DOCTYPE "+c.root().name),c.pubID&&c.sysID?this.stream.write(' PUBLIC "'+c.pubID+'" "'+c.sysID+'"'):c.sysID&&this.stream.write(' SYSTEM "'+c.sysID+'"'),c.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(c,_,d)),_.state=o.InsideTag,z=c.children,g=0,w=z.length;g<w;g++)O=z[g],this.writeChildNode(O,_,d+1);_.state=o.CloseTag,this.stream.write("]")}return _.state=o.CloseTag,this.stream.write(_.spaceBeforeSlash+">"),this.stream.write(this.endline(c,_,d)),_.state=o.None,this.closeNode(c,_,d)},n.prototype.element=function(c,_,d){var O,g,w,z,K,q,v,p,m,l;d||(d=0),this.openNode(c,_,d),_.state=o.OpenTag,this.stream.write(this.indent(c,_,d)+"<"+c.name),m=c.attribs;for(v in m)r.call(m,v)&&(O=m[v],this.attribute(O,_,d));if(w=c.children.length,z=w===0?null:c.children[0],w===0||c.children.every(function(x){return(x.type===t.Text||x.type===t.Raw)&&x.value===""}))_.allowEmpty?(this.stream.write(">"),_.state=o.CloseTag,this.stream.write("</"+c.name+">")):(_.state=o.CloseTag,this.stream.write(_.spaceBeforeSlash+"/>"));else if(_.pretty&&w===1&&(z.type===t.Text||z.type===t.Raw)&&z.value!=null)this.stream.write(">"),_.state=o.InsideTag,_.suppressPrettyCount++,p=!0,this.writeChildNode(z,_,d+1),_.suppressPrettyCount--,p=!1,_.state=o.CloseTag,this.stream.write("</"+c.name+">");else{for(this.stream.write(">"+this.endline(c,_,d)),_.state=o.InsideTag,l=c.children,K=0,q=l.length;K<q;K++)g=l[K],this.writeChildNode(g,_,d+1);_.state=o.CloseTag,this.stream.write(this.indent(c,_,d)+"</"+c.name+">")}return this.stream.write(this.endline(c,_,d)),_.state=o.None,this.closeNode(c,_,d)},n.prototype.processingInstruction=function(c,_,d){return this.stream.write(n.__super__.processingInstruction.call(this,c,_,d))},n.prototype.raw=function(c,_,d){return this.stream.write(n.__super__.raw.call(this,c,_,d))},n.prototype.text=function(c,_,d){return this.stream.write(n.__super__.text.call(this,c,_,d))},n.prototype.dtdAttList=function(c,_,d){return this.stream.write(n.__super__.dtdAttList.call(this,c,_,d))},n.prototype.dtdElement=function(c,_,d){return this.stream.write(n.__super__.dtdElement.call(this,c,_,d))},n.prototype.dtdEntity=function(c,_,d){return this.stream.write(n.__super__.dtdEntity.call(this,c,_,d))},n.prototype.dtdNotation=function(c,_,d){return this.stream.write(n.__super__.dtdNotation.call(this,c,_,d))},n}(s)}).call(Ha)});var sn=V((en,ot)=>{(function(){var t,o,e,s,i,r,a,n,c,_;_=Co(),n=_.assign,c=_.isFunction,e=mi(),s=yi(),i=$a(),a=He(),r=tn(),t=T(),o=Dt(),ot.exports.create=function(d,O,g,w){var z,K;if(d==null)throw new Error("Root element needs a name.");return w=n({},O,g,w),z=new s(w),K=z.element(d),w.headless||(z.declaration(w),(w.pubID!=null||w.sysID!=null)&&z.dtd(w)),K},ot.exports.begin=function(d,O,g){var w;return c(d)&&(w=[d,O],O=w[0],g=w[1],d={}),O?new i(d,O,g):new s(d)},ot.exports.stringWriter=function(d){return new a(d)},ot.exports.streamWriter=function(d,O){return new r(d,O)},ot.exports.implementation=new e,ot.exports.nodeType=t,ot.exports.writerState=o}).call(en)});var rn=V(hi=>{(function(){"use strict";var t,o,e,s,i,r={}.hasOwnProperty;t=sn(),o=Ze().defaults,s=function(a){return typeof a=="string"&&(a.indexOf("&")>=0||a.indexOf(">")>=0||a.indexOf("<")>=0)},i=function(a){return"<![CDATA["+e(a)+"]]>"},e=function(a){return a.replace("]]>","]]]]><![CDATA[>")},hi.Builder=function(){function a(n){var c,_,d;this.options={},_=o["0.2"];for(c in _)r.call(_,c)&&(d=_[c],this.options[c]=d);for(c in n)r.call(n,c)&&(d=n[c],this.options[c]=d)}return a.prototype.buildObject=function(n){var c,_,d,O,g;return c=this.options.attrkey,_=this.options.charkey,Object.keys(n).length===1&&this.options.rootName===o["0.2"].rootName?(g=Object.keys(n)[0],n=n[g]):g=this.options.rootName,d=function(w){return function(z,K){var q,v,p,m,l,x;if(typeof K!="object")w.options.cdata&&s(K)?z.raw(i(K)):z.txt(K);else if(Array.isArray(K)){for(m in K)if(r.call(K,m)){v=K[m];for(l in v)p=v[l],z=d(z.ele(l),p).up()}}else for(l in K)if(r.call(K,l))if(v=K[l],l===c){if(typeof v=="object")for(q in v)x=v[q],z=z.att(q,x)}else if(l===_)w.options.cdata&&s(v)?z=z.raw(i(v)):z=z.txt(v);else if(Array.isArray(v))for(m in v)r.call(v,m)&&(p=v[m],typeof p=="string"?w.options.cdata&&s(p)?z=z.ele(l).raw(i(p)).up():z=z.ele(l,p).up():z=d(z.ele(l),p).up());else typeof v=="object"?z=d(z.ele(l),v).up():typeof v=="string"&&w.options.cdata&&s(v)?z=z.ele(l).raw(i(v)).up():(v==null&&(v=""),z=z.ele(l,v.toString()).up());return z}}(this),O=t.create(g,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),d(O,n).end(this.options.renderOpts)},a}()}).call(hi)});var an=V(os=>{(function(t){t.parser=function(W,k){return new e(W,k)},t.SAXParser=e,t.SAXStream=_,t.createStream=c,t.MAX_BUFFER_LENGTH=64*1024;var o=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function e(W,k){if(!(this instanceof e))return new e(W,k);var F=this;i(F),F.q=F.c="",F.bufferCheckPosition=t.MAX_BUFFER_LENGTH,F.opt=k||{},F.opt.lowercase=F.opt.lowercase||F.opt.lowercasetags,F.looseCase=F.opt.lowercase?"toLowerCase":"toUpperCase",F.tags=[],F.closed=F.closedRoot=F.sawRoot=!1,F.tag=F.error=null,F.strict=!!W,F.noscript=!!(W||F.opt.noscript),F.state=y.BEGIN,F.strictEntities=F.opt.strictEntities,F.ENTITIES=F.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),F.attribList=[],F.opt.xmlns&&(F.ns=Object.create(z)),F.trackPosition=F.opt.position!==!1,F.trackPosition&&(F.position=F.line=F.column=0),f(F,"onready")}Object.create||(Object.create=function(W){function k(){}k.prototype=W;var F=new k;return F}),Object.keys||(Object.keys=function(W){var k=[];for(var F in W)W.hasOwnProperty(F)&&k.push(F);return k});function s(W){for(var k=Math.max(t.MAX_BUFFER_LENGTH,10),F=0,C=0,P=o.length;C<P;C++){var j=W[o[C]].length;if(j>k)switch(o[C]){case"textNode":N(W);break;case"cdata":b(W,"oncdata",W.cdata),W.cdata="";break;case"script":b(W,"onscript",W.script),W.script="";break;default:E(W,"Max buffer length exceeded: "+o[C])}F=Math.max(F,j)}var R=t.MAX_BUFFER_LENGTH-F;W.bufferCheckPosition=R+W.position}function i(W){for(var k=0,F=o.length;k<F;k++)W[o[k]]=""}function r(W){N(W),W.cdata!==""&&(b(W,"oncdata",W.cdata),W.cdata=""),W.script!==""&&(b(W,"onscript",W.script),W.script="")}e.prototype={end:function(){Y(this)},write:ft,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){r(this)}};var a;try{a=require("stream").Stream}catch{a=function(){}}a||(a=function(){});var n=t.EVENTS.filter(function(W){return W!=="error"&&W!=="end"});function c(W,k){return new _(W,k)}function _(W,k){if(!(this instanceof _))return new _(W,k);a.apply(this),this._parser=new e(W,k),this.writable=!0,this.readable=!0;var F=this;this._parser.onend=function(){F.emit("end")},this._parser.onerror=function(C){F.emit("error",C),F._parser.error=null},this._decoder=null,n.forEach(function(C){Object.defineProperty(F,"on"+C,{get:function(){return F._parser["on"+C]},set:function(P){if(!P)return F.removeAllListeners(C),F._parser["on"+C]=P,P;F.on(C,P)},enumerable:!0,configurable:!1})})}_.prototype=Object.create(a.prototype,{constructor:{value:_}}),_.prototype.write=function(W){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(W)){if(!this._decoder){var k=require("string_decoder").StringDecoder;this._decoder=new k("utf8")}W=this._decoder.write(W)}return this._parser.write(W.toString()),this.emit("data",W),!0},_.prototype.end=function(W){return W&&W.length&&this.write(W),this._parser.end(),!0},_.prototype.on=function(W,k){var F=this;return!F._parser["on"+W]&&n.indexOf(W)!==-1&&(F._parser["on"+W]=function(){var C=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);C.splice(0,0,W),F.emit.apply(F,C)}),a.prototype.on.call(F,W,k)};var d="[CDATA[",O="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",w="http://www.w3.org/2000/xmlns/",z={xml:g,xmlns:w},K=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,q=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,p=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function m(W){return W===" "||W===`
4
4
  `||W==="\r"||W===" "}function l(W){return W==='"'||W==="'"}function x(W){return W===">"||m(W)}function u(W,k){return W.test(k)}function G(W,k){return!u(W,k)}var y=0;t.STATE={BEGIN:y++,BEGIN_WHITESPACE:y++,TEXT:y++,TEXT_ENTITY:y++,OPEN_WAKA:y++,SGML_DECL:y++,SGML_DECL_QUOTED:y++,DOCTYPE:y++,DOCTYPE_QUOTED:y++,DOCTYPE_DTD:y++,DOCTYPE_DTD_QUOTED:y++,COMMENT_STARTING:y++,COMMENT:y++,COMMENT_ENDING:y++,COMMENT_ENDED:y++,CDATA:y++,CDATA_ENDING:y++,CDATA_ENDING_2:y++,PROC_INST:y++,PROC_INST_BODY:y++,PROC_INST_ENDING:y++,OPEN_TAG:y++,OPEN_TAG_SLASH:y++,ATTRIB:y++,ATTRIB_NAME:y++,ATTRIB_NAME_SAW_WHITE:y++,ATTRIB_VALUE:y++,ATTRIB_VALUE_QUOTED:y++,ATTRIB_VALUE_CLOSED:y++,ATTRIB_VALUE_UNQUOTED:y++,ATTRIB_VALUE_ENTITY_Q:y++,ATTRIB_VALUE_ENTITY_U:y++,CLOSE_TAG:y++,CLOSE_TAG_SAW_WHITE:y++,SCRIPT:y++,SCRIPT_ENDING:y++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(W){var k=t.ENTITIES[W],F=typeof k=="number"?String.fromCharCode(k):k;t.ENTITIES[W]=F});for(var h in t.STATE)t.STATE[t.STATE[h]]=h;y=t.STATE;function f(W,k,F){W[k]&&W[k](F)}function b(W,k,F){W.textNode&&N(W),f(W,k,F)}function N(W){W.textNode=S(W.opt,W.textNode),W.textNode&&f(W,"ontext",W.textNode),W.textNode=""}function S(W,k){return W.trim&&(k=k.trim()),W.normalize&&(k=k.replace(/\s+/g," ")),k}function E(W,k){return N(W),W.trackPosition&&(k+=`
5
5
  Line: `+W.line+`
6
6
  Column: `+W.column+`
7
- Char: `+W.c),k=new Error(k),W.error=k,f(W,"onerror",k),W}function Y(W){return W.sawRoot&&!W.closedRoot&&M(W,"Unclosed root tag"),W.state!==y.BEGIN&&W.state!==y.BEGIN_WHITESPACE&&W.state!==y.TEXT&&E(W,"Unexpected end"),N(W),W.c="",W.closed=!0,f(W,"onend"),e.call(W,W.strict,W.opt),W}function M(W,k){if(typeof W!="object"||!(W instanceof e))throw new Error("bad call to strictFail");W.strict&&E(W,k)}function X(W){W.strict||(W.tagName=W.tagName[W.looseCase]());var k=W.tags[W.tags.length-1]||W,F=W.tag={name:W.tagName,attributes:{}};W.opt.xmlns&&(F.ns=k.ns),W.attribList.length=0,b(W,"onopentagstart",F)}function Z(W,k){var F=W.indexOf(":"),C=F<0?["",W]:W.split(":"),P=C[0],j=C[1];return k&&W==="xmlns"&&(P="xmlns",j=""),{prefix:P,local:j}}function wo(W){if(W.strict||(W.attribName=W.attribName[W.looseCase]()),W.attribList.indexOf(W.attribName)!==-1||W.tag.attributes.hasOwnProperty(W.attribName)){W.attribName=W.attribValue="";return}if(W.opt.xmlns){var k=Z(W.attribName,!0),F=k.prefix,C=k.local;if(F==="xmlns")if(C==="xml"&&W.attribValue!==O)M(W,"xml: prefix must be bound to "+O+`
7
+ Char: `+W.c),k=new Error(k),W.error=k,f(W,"onerror",k),W}function Y(W){return W.sawRoot&&!W.closedRoot&&M(W,"Unclosed root tag"),W.state!==y.BEGIN&&W.state!==y.BEGIN_WHITESPACE&&W.state!==y.TEXT&&E(W,"Unexpected end"),N(W),W.c="",W.closed=!0,f(W,"onend"),e.call(W,W.strict,W.opt),W}function M(W,k){if(typeof W!="object"||!(W instanceof e))throw new Error("bad call to strictFail");W.strict&&E(W,k)}function X(W){W.strict||(W.tagName=W.tagName[W.looseCase]());var k=W.tags[W.tags.length-1]||W,F=W.tag={name:W.tagName,attributes:{}};W.opt.xmlns&&(F.ns=k.ns),W.attribList.length=0,b(W,"onopentagstart",F)}function Z(W,k){var F=W.indexOf(":"),C=F<0?["",W]:W.split(":"),P=C[0],j=C[1];return k&&W==="xmlns"&&(P="xmlns",j=""),{prefix:P,local:j}}function wo(W){if(W.strict||(W.attribName=W.attribName[W.looseCase]()),W.attribList.indexOf(W.attribName)!==-1||W.tag.attributes.hasOwnProperty(W.attribName)){W.attribName=W.attribValue="";return}if(W.opt.xmlns){var k=Z(W.attribName,!0),F=k.prefix,C=k.local;if(F==="xmlns")if(C==="xml"&&W.attribValue!==g)M(W,"xml: prefix must be bound to "+g+`
8
8
  Actual: `+W.attribValue);else if(C==="xmlns"&&W.attribValue!==w)M(W,"xmlns: prefix must be bound to "+w+`
9
- Actual: `+W.attribValue);else{var P=W.tag,j=W.tags[W.tags.length-1]||W;P.ns===j.ns&&(P.ns=Object.create(j.ns)),P.ns[C]=W.attribValue}W.attribList.push([W.attribName,W.attribValue])}else W.tag.attributes[W.attribName]=W.attribValue,b(W,"onattribute",{name:W.attribName,value:W.attribValue});W.attribName=W.attribValue=""}function to(W,k){if(W.opt.xmlns){var F=W.tag,C=Z(W.tagName);F.prefix=C.prefix,F.local=C.local,F.uri=F.ns[C.prefix]||"",F.prefix&&!F.uri&&(M(W,"Unbound namespace prefix: "+JSON.stringify(W.tagName)),F.uri=C.prefix);var P=W.tags[W.tags.length-1]||W;F.ns&&P.ns!==F.ns&&Object.keys(F.ns).forEach(function(Vr){b(W,"onopennamespace",{prefix:Vr,uri:F.ns[Vr]})});for(var j=0,R=W.attribList.length;j<R;j++){var co=W.attribList[j],yo=co[0],ft=co[1],H=Z(yo,!0),Zo=H.prefix,ux=H.local,Mr=Zo===""?"":F.ns[Zo]||"",ci={name:yo,value:ft,prefix:Zo,local:ux,uri:Mr};Zo&&Zo!=="xmlns"&&!Mr&&(M(W,"Unbound namespace prefix: "+JSON.stringify(Zo)),ci.uri=Zo),W.tag.attributes[yo]=ci,b(W,"onattribute",ci)}W.attribList.length=0}W.tag.isSelfClosing=!!k,W.sawRoot=!0,W.tags.push(W.tag),b(W,"onopentag",W.tag),k||(!W.noscript&&W.tagName.toLowerCase()==="script"?W.state=y.SCRIPT:W.state=y.TEXT,W.tag=null,W.tagName=""),W.attribName=W.attribValue="",W.attribList.length=0}function $o(W){if(!W.tagName){M(W,"Weird empty close tag."),W.textNode+="</>",W.state=y.TEXT;return}if(W.script){if(W.tagName!=="script"){W.script+="</"+W.tagName+">",W.tagName="",W.state=y.SCRIPT;return}b(W,"onscript",W.script),W.script=""}var k=W.tags.length,F=W.tagName;W.strict||(F=F[W.looseCase]());for(var C=F;k--;){var P=W.tags[k];if(P.name!==C)M(W,"Unexpected close tag");else break}if(k<0){M(W,"Unmatched closing tag: "+W.tagName),W.textNode+="</"+W.tagName+">",W.state=y.TEXT;return}W.tagName=F;for(var j=W.tags.length;j-- >k;){var R=W.tag=W.tags.pop();W.tagName=W.tag.name,b(W,"onclosetag",W.tagName);var co={};for(var yo in R.ns)co[yo]=R.ns[yo];var ft=W.tags[W.tags.length-1]||W;W.opt.xmlns&&R.ns!==ft.ns&&Object.keys(R.ns).forEach(function(H){var Zo=R.ns[H];b(W,"onclosenamespace",{prefix:H,uri:Zo})})}k===0&&(W.closedRoot=!0),W.tagName=W.attribValue=W.attribName="",W.attribList.length=0,W.state=y.TEXT}function dt(W){var k=W.entity,F=k.toLowerCase(),C,P="";return W.ENTITIES[k]?W.ENTITIES[k]:W.ENTITIES[F]?W.ENTITIES[F]:(k=F,k.charAt(0)==="#"&&(k.charAt(1)==="x"?(k=k.slice(2),C=parseInt(k,16),P=C.toString(16)):(k=k.slice(1),C=parseInt(k,10),P=C.toString(10))),k=k.replace(/^0+/,""),isNaN(C)||P.toLowerCase()!==k?(M(W,"Invalid character entity"),"&"+W.entity+";"):String.fromCodePoint(C))}function yt(W,k){k==="<"?(W.state=y.OPEN_WAKA,W.startTagPosition=W.position):m(k)||(M(W,"Non-whitespace before first tag."),W.textNode=k,W.state=y.TEXT)}function Yo(W,k){var F="";return k<W.length&&(F=W.charAt(k)),F}function ht(W){var k=this;if(this.error)throw this.error;if(k.closed)return E(k,"Cannot write after close. Assign an onready handler.");if(W===null)return Y(k);typeof W=="object"&&(W=W.toString());for(var F=0,C="";C=Yo(W,F++),k.c=C,!!C;)switch(k.trackPosition&&(k.position++,C===`
10
- `?(k.line++,k.column=0):k.column++),k.state){case y.BEGIN:if(k.state=y.BEGIN_WHITESPACE,C==="\uFEFF")continue;yt(k,C);continue;case y.BEGIN_WHITESPACE:yt(k,C);continue;case y.TEXT:if(k.sawRoot&&!k.closedRoot){for(var P=F-1;C&&C!=="<"&&C!=="&";)C=Yo(W,F++),C&&k.trackPosition&&(k.position++,C===`
11
- `?(k.line++,k.column=0):k.column++);k.textNode+=W.substring(P,F-1)}C==="<"&&!(k.sawRoot&&k.closedRoot&&!k.strict)?(k.state=y.OPEN_WAKA,k.startTagPosition=k.position):(!m(C)&&(!k.sawRoot||k.closedRoot)&&M(k,"Text data outside of root node."),C==="&"?k.state=y.TEXT_ENTITY:k.textNode+=C);continue;case y.SCRIPT:C==="<"?k.state=y.SCRIPT_ENDING:k.script+=C;continue;case y.SCRIPT_ENDING:C==="/"?k.state=y.CLOSE_TAG:(k.script+="<"+C,k.state=y.SCRIPT);continue;case y.OPEN_WAKA:if(C==="!")k.state=y.SGML_DECL,k.sgmlDecl="";else if(!m(C))if(u(K,C))k.state=y.OPEN_TAG,k.tagName=C;else if(C==="/")k.state=y.CLOSE_TAG,k.tagName="";else if(C==="?")k.state=y.PROC_INST,k.procInstName=k.procInstBody="";else{if(M(k,"Unencoded <"),k.startTagPosition+1<k.position){var j=k.position-k.startTagPosition;C=new Array(j).join(" ")+C}k.textNode+="<"+C,k.state=y.TEXT}continue;case y.SGML_DECL:(k.sgmlDecl+C).toUpperCase()===d?(b(k,"onopencdata"),k.state=y.CDATA,k.sgmlDecl="",k.cdata=""):k.sgmlDecl+C==="--"?(k.state=y.COMMENT,k.comment="",k.sgmlDecl=""):(k.sgmlDecl+C).toUpperCase()===g?(k.state=y.DOCTYPE,(k.doctype||k.sawRoot)&&M(k,"Inappropriately located doctype declaration"),k.doctype="",k.sgmlDecl=""):C===">"?(b(k,"onsgmldeclaration",k.sgmlDecl),k.sgmlDecl="",k.state=y.TEXT):(l(C)&&(k.state=y.SGML_DECL_QUOTED),k.sgmlDecl+=C);continue;case y.SGML_DECL_QUOTED:C===k.q&&(k.state=y.SGML_DECL,k.q=""),k.sgmlDecl+=C;continue;case y.DOCTYPE:C===">"?(k.state=y.TEXT,b(k,"ondoctype",k.doctype),k.doctype=!0):(k.doctype+=C,C==="["?k.state=y.DOCTYPE_DTD:l(C)&&(k.state=y.DOCTYPE_QUOTED,k.q=C));continue;case y.DOCTYPE_QUOTED:k.doctype+=C,C===k.q&&(k.q="",k.state=y.DOCTYPE);continue;case y.DOCTYPE_DTD:k.doctype+=C,C==="]"?k.state=y.DOCTYPE:l(C)&&(k.state=y.DOCTYPE_DTD_QUOTED,k.q=C);continue;case y.DOCTYPE_DTD_QUOTED:k.doctype+=C,C===k.q&&(k.state=y.DOCTYPE_DTD,k.q="");continue;case y.COMMENT:C==="-"?k.state=y.COMMENT_ENDING:k.comment+=C;continue;case y.COMMENT_ENDING:C==="-"?(k.state=y.COMMENT_ENDED,k.comment=S(k.opt,k.comment),k.comment&&b(k,"oncomment",k.comment),k.comment=""):(k.comment+="-"+C,k.state=y.COMMENT);continue;case y.COMMENT_ENDED:C!==">"?(M(k,"Malformed comment"),k.comment+="--"+C,k.state=y.COMMENT):k.state=y.TEXT;continue;case y.CDATA:C==="]"?k.state=y.CDATA_ENDING:k.cdata+=C;continue;case y.CDATA_ENDING:C==="]"?k.state=y.CDATA_ENDING_2:(k.cdata+="]"+C,k.state=y.CDATA);continue;case y.CDATA_ENDING_2:C===">"?(k.cdata&&b(k,"oncdata",k.cdata),b(k,"onclosecdata"),k.cdata="",k.state=y.TEXT):C==="]"?k.cdata+="]":(k.cdata+="]]"+C,k.state=y.CDATA);continue;case y.PROC_INST:C==="?"?k.state=y.PROC_INST_ENDING:m(C)?k.state=y.PROC_INST_BODY:k.procInstName+=C;continue;case y.PROC_INST_BODY:if(!k.procInstBody&&m(C))continue;C==="?"?k.state=y.PROC_INST_ENDING:k.procInstBody+=C;continue;case y.PROC_INST_ENDING:C===">"?(b(k,"onprocessinginstruction",{name:k.procInstName,body:k.procInstBody}),k.procInstName=k.procInstBody="",k.state=y.TEXT):(k.procInstBody+="?"+C,k.state=y.PROC_INST_BODY);continue;case y.OPEN_TAG:u(q,C)?k.tagName+=C:(X(k),C===">"?to(k):C==="/"?k.state=y.OPEN_TAG_SLASH:(m(C)||M(k,"Invalid character in tag name"),k.state=y.ATTRIB));continue;case y.OPEN_TAG_SLASH:C===">"?(to(k,!0),$o(k)):(M(k,"Forward-slash in opening tag not followed by >"),k.state=y.ATTRIB);continue;case y.ATTRIB:if(m(C))continue;C===">"?to(k):C==="/"?k.state=y.OPEN_TAG_SLASH:u(K,C)?(k.attribName=C,k.attribValue="",k.state=y.ATTRIB_NAME):M(k,"Invalid attribute name");continue;case y.ATTRIB_NAME:C==="="?k.state=y.ATTRIB_VALUE:C===">"?(M(k,"Attribute without value"),k.attribValue=k.attribName,wo(k),to(k)):m(C)?k.state=y.ATTRIB_NAME_SAW_WHITE:u(q,C)?k.attribName+=C:M(k,"Invalid attribute name");continue;case y.ATTRIB_NAME_SAW_WHITE:if(C==="=")k.state=y.ATTRIB_VALUE;else{if(m(C))continue;M(k,"Attribute without value"),k.tag.attributes[k.attribName]="",k.attribValue="",b(k,"onattribute",{name:k.attribName,value:""}),k.attribName="",C===">"?to(k):u(K,C)?(k.attribName=C,k.state=y.ATTRIB_NAME):(M(k,"Invalid attribute name"),k.state=y.ATTRIB)}continue;case y.ATTRIB_VALUE:if(m(C))continue;l(C)?(k.q=C,k.state=y.ATTRIB_VALUE_QUOTED):(M(k,"Unquoted attribute value"),k.state=y.ATTRIB_VALUE_UNQUOTED,k.attribValue=C);continue;case y.ATTRIB_VALUE_QUOTED:if(C!==k.q){C==="&"?k.state=y.ATTRIB_VALUE_ENTITY_Q:k.attribValue+=C;continue}wo(k),k.q="",k.state=y.ATTRIB_VALUE_CLOSED;continue;case y.ATTRIB_VALUE_CLOSED:m(C)?k.state=y.ATTRIB:C===">"?to(k):C==="/"?k.state=y.OPEN_TAG_SLASH:u(K,C)?(M(k,"No whitespace between attributes"),k.attribName=C,k.attribValue="",k.state=y.ATTRIB_NAME):M(k,"Invalid attribute name");continue;case y.ATTRIB_VALUE_UNQUOTED:if(!x(C)){C==="&"?k.state=y.ATTRIB_VALUE_ENTITY_U:k.attribValue+=C;continue}wo(k),C===">"?to(k):k.state=y.ATTRIB;continue;case y.CLOSE_TAG:if(k.tagName)C===">"?$o(k):u(q,C)?k.tagName+=C:k.script?(k.script+="</"+k.tagName,k.tagName="",k.state=y.SCRIPT):(m(C)||M(k,"Invalid tagname in closing tag"),k.state=y.CLOSE_TAG_SAW_WHITE);else{if(m(C))continue;G(K,C)?k.script?(k.script+="</"+C,k.state=y.SCRIPT):M(k,"Invalid tagname in closing tag."):k.tagName=C}continue;case y.CLOSE_TAG_SAW_WHITE:if(m(C))continue;C===">"?$o(k):M(k,"Invalid characters in closing tag");continue;case y.TEXT_ENTITY:case y.ATTRIB_VALUE_ENTITY_Q:case y.ATTRIB_VALUE_ENTITY_U:var R,co;switch(k.state){case y.TEXT_ENTITY:R=y.TEXT,co="textNode";break;case y.ATTRIB_VALUE_ENTITY_Q:R=y.ATTRIB_VALUE_QUOTED,co="attribValue";break;case y.ATTRIB_VALUE_ENTITY_U:R=y.ATTRIB_VALUE_UNQUOTED,co="attribValue";break}if(C===";")if(k.opt.unparsedEntities){var yo=dt(k);k.entity="",k.state=R,k.write(yo)}else k[co]+=dt(k),k.entity="",k.state=R;else u(k.entity.length?p:v,C)?k.entity+=C:(M(k,"Invalid character in entity name"),k[co]+="&"+k.entity+C,k.entity="",k.state=R);continue;default:throw new Error(k,"Unknown state: "+k.state)}return k.position>=k.bufferCheckPosition&&s(k),k}String.fromCodePoint||function(){var W=String.fromCharCode,k=Math.floor,F=function(){var C=16384,P=[],j,R,co=-1,yo=arguments.length;if(!yo)return"";for(var ft="";++co<yo;){var H=Number(arguments[co]);if(!isFinite(H)||H<0||H>1114111||k(H)!==H)throw RangeError("Invalid code point: "+H);H<=65535?P.push(H):(H-=65536,j=(H>>10)+55296,R=H%1024+56320,P.push(j,R)),(co+1===yo||P.length>C)&&(ft+=W.apply(null,P),P.length=0)}return ft};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:F,configurable:!0,writable:!0}):String.fromCodePoint=F}()})(typeof os>"u"?os.sax={}:os)});var an=V(hi=>{(function(){"use strict";hi.stripBOM=function(t){return t[0]==="\uFEFF"?t.substring(1):t}}).call(hi)});var fi=V(ut=>{(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),ut.normalize=function(o){return o.toLowerCase()},ut.firstCharLowerCase=function(o){return o.charAt(0).toLowerCase()+o.slice(1)},ut.stripPrefix=function(o){return o.replace(t,"")},ut.parseNumbers=function(o){return isNaN(o)||(o=o%1===0?parseInt(o,10):parseFloat(o)),o},ut.parseBooleans=function(o){return/^(?:true|false)$/i.test(o)&&(o=o.toLowerCase()==="true"),o}}).call(ut)});var nn=V(Io=>{(function(){"use strict";var t,o,e,s,i,r,a,n,c,_=function(O,w){return function(){return O.apply(w,arguments)}},d=function(O,w){for(var z in w)g.call(w,z)&&(O[z]=w[z]);function K(){this.constructor=O}return K.prototype=w.prototype,O.prototype=new K,O.__super__=w.prototype,O},g={}.hasOwnProperty;n=rn(),s=require("events"),t=an(),a=fi(),c=require("timers").setImmediate,o=Ze().defaults,i=function(O){return typeof O=="object"&&O!=null&&Object.keys(O).length===0},r=function(O,w,z){var K,q,v;for(K=0,q=O.length;K<q;K++)v=O[K],w=v(w,z);return w},e=function(O,w,z){var K;return K=Object.create(null),K.value=z,K.writable=!0,K.enumerable=!0,K.configurable=!0,Object.defineProperty(O,w,K)},Io.Parser=function(O){d(w,O);function w(z){this.parseStringPromise=_(this.parseStringPromise,this),this.parseString=_(this.parseString,this),this.reset=_(this.reset,this),this.assignOrPush=_(this.assignOrPush,this),this.processAsync=_(this.processAsync,this);var K,q,v;if(!(this instanceof Io.Parser))return new Io.Parser(z);this.options={},q=o["0.2"];for(K in q)g.call(q,K)&&(v=q[K],this.options[K]=v);for(K in z)g.call(z,K)&&(v=z[K],this.options[K]=v);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(a.normalize)),this.reset()}return w.prototype.processAsync=function(){var z,K;try{return this.remaining.length<=this.options.chunkSize?(z=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(z),this.saxParser.close()):(z=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(z),c(this.processAsync))}catch(q){if(K=q,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(K)}},w.prototype.assignOrPush=function(z,K,q){return K in z?(z[K]instanceof Array||e(z,K,[z[K]]),z[K].push(q)):this.options.explicitArray?e(z,K,[q]):e(z,K,q)},w.prototype.reset=function(){var z,K,q,v;return this.removeAllListeners(),this.saxParser=n.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(p){return function(m){if(p.saxParser.resume(),!p.saxParser.errThrown)return p.saxParser.errThrown=!0,p.emit("error",m)}}(this),this.saxParser.onend=function(p){return function(){if(!p.saxParser.ended)return p.saxParser.ended=!0,p.emit("end",p.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,v=[],z=this.options.attrkey,K=this.options.charkey,this.saxParser.onopentag=function(p){return function(m){var l,x,u,G,y;if(u={},u[K]="",!p.options.ignoreAttrs){y=m.attributes;for(l in y)g.call(y,l)&&(!(z in u)&&!p.options.mergeAttrs&&(u[z]={}),x=p.options.attrValueProcessors?r(p.options.attrValueProcessors,m.attributes[l],l):m.attributes[l],G=p.options.attrNameProcessors?r(p.options.attrNameProcessors,l):l,p.options.mergeAttrs?p.assignOrPush(u,G,x):e(u[z],G,x))}return u["#name"]=p.options.tagNameProcessors?r(p.options.tagNameProcessors,m.name):m.name,p.options.xmlns&&(u[p.options.xmlnskey]={uri:m.uri,local:m.local}),v.push(u)}}(this),this.saxParser.onclosetag=function(p){return function(){var m,l,x,u,G,y,h,f,b,N;if(y=v.pop(),G=y["#name"],(!p.options.explicitChildren||!p.options.preserveChildrenOrder)&&delete y["#name"],y.cdata===!0&&(m=y.cdata,delete y.cdata),b=v[v.length-1],y[K].match(/^\s*$/)&&!m?(l=y[K],delete y[K]):(p.options.trim&&(y[K]=y[K].trim()),p.options.normalize&&(y[K]=y[K].replace(/\s{2,}/g," ").trim()),y[K]=p.options.valueProcessors?r(p.options.valueProcessors,y[K],G):y[K],Object.keys(y).length===1&&K in y&&!p.EXPLICIT_CHARKEY&&(y=y[K])),i(y)&&(typeof p.options.emptyTag=="function"?y=p.options.emptyTag():y=p.options.emptyTag!==""?p.options.emptyTag:l),p.options.validator!=null&&(N="/"+function(){var S,E,Y;for(Y=[],S=0,E=v.length;S<E;S++)u=v[S],Y.push(u["#name"]);return Y}().concat(G).join("/"),function(){var S;try{return y=p.options.validator(N,b&&b[G],y)}catch(E){return S=E,p.emit("error",S)}}()),p.options.explicitChildren&&!p.options.mergeAttrs&&typeof y=="object"){if(!p.options.preserveChildrenOrder)u={},p.options.attrkey in y&&(u[p.options.attrkey]=y[p.options.attrkey],delete y[p.options.attrkey]),!p.options.charsAsChildren&&p.options.charkey in y&&(u[p.options.charkey]=y[p.options.charkey],delete y[p.options.charkey]),Object.getOwnPropertyNames(y).length>0&&(u[p.options.childkey]=y),y=u;else if(b){b[p.options.childkey]=b[p.options.childkey]||[],h={};for(x in y)g.call(y,x)&&e(h,x,y[x]);b[p.options.childkey].push(h),delete y["#name"],Object.keys(y).length===1&&K in y&&!p.EXPLICIT_CHARKEY&&(y=y[K])}}return v.length>0?p.assignOrPush(b,G,y):(p.options.explicitRoot&&(f=y,y={},e(y,G,f)),p.resultObject=y,p.saxParser.ended=!0,p.emit("end",p.resultObject))}}(this),q=function(p){return function(m){var l,x;if(x=v[v.length-1],x)return x[K]+=m,p.options.explicitChildren&&p.options.preserveChildrenOrder&&p.options.charsAsChildren&&(p.options.includeWhiteChars||m.replace(/\\n/g,"").trim()!=="")&&(x[p.options.childkey]=x[p.options.childkey]||[],l={"#name":"__text__"},l[K]=m,p.options.normalize&&(l[K]=l[K].replace(/\s{2,}/g," ").trim()),x[p.options.childkey].push(l)),x}}(this),this.saxParser.ontext=q,this.saxParser.oncdata=function(p){return function(m){var l;if(l=q(m),l)return l.cdata=!0}}(this)},w.prototype.parseString=function(z,K){var q;K!=null&&typeof K=="function"&&(this.on("end",function(v){return this.reset(),K(null,v)}),this.on("error",function(v){return this.reset(),K(v)}));try{return z=z.toString(),z.trim()===""?(this.emit("end",null),!0):(z=t.stripBOM(z),this.options.async?(this.remaining=z,c(this.processAsync),this.saxParser):this.saxParser.write(z).close())}catch(v){if(q=v,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw q}else return this.emit("error",q),this.saxParser.errThrown=!0}},w.prototype.parseStringPromise=function(z){return new Promise(function(K){return function(q,v){return K.parseString(z,function(p,m){return p?v(p):q(m)})}}(this))},w}(s),Io.parseString=function(O,w,z){var K,q,v;return z!=null?(typeof z=="function"&&(K=z),typeof w=="object"&&(q=w)):(typeof w=="function"&&(K=w),q={}),v=new Io.Parser(q),v.parseString(O,K)},Io.parseStringPromise=function(O,w){var z,K;return typeof w=="object"&&(z=w),K=new Io.Parser(z),K.parseStringPromise(O)}}).call(Io)});var zi=V(Po=>{(function(){"use strict";var t,o,e,s,i=function(a,n){for(var c in n)r.call(n,c)&&(a[c]=n[c]);function _(){this.constructor=a}return _.prototype=n.prototype,a.prototype=new _,a.__super__=n.prototype,a},r={}.hasOwnProperty;o=Ze(),t=sn(),e=nn(),s=fi(),Po.defaults=o.defaults,Po.processors=s,Po.ValidationError=function(a){i(n,a);function n(c){this.message=c}return n}(Error),Po.Builder=t.Builder,Po.Parser=e.Parser,Po.parseString=e.parseString,Po.parseStringPromise=e.parseStringPromise}).call(Po)});var kn=V((qO,Kn)=>{Kn.exports=zn;zn.sync=bx;var hn=require("fs");function Wx(t,o){var e=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!e||(e=e.split(";"),e.indexOf("")!==-1))return!0;for(var s=0;s<e.length;s++){var i=e[s].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function fn(t,o,e){return!t.isSymbolicLink()&&!t.isFile()?!1:Wx(o,e)}function zn(t,o,e){hn.stat(t,function(s,i){e(s,s?!1:fn(i,t,o))})}function bx(t,o){return fn(hn.statSync(t),t,o)}});var qn=V((pO,vn)=>{vn.exports=Wn;Wn.sync=vx;var Gn=require("fs");function Wn(t,o,e){Gn.stat(t,function(s,i){e(s,s?!1:bn(i,o))})}function vx(t,o){return bn(Gn.statSync(t),o)}function bn(t,o){return t.isFile()&&qx(t,o)}function qx(t,o){var e=t.mode,s=t.uid,i=t.gid,r=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),a=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),n=parseInt("100",8),c=parseInt("010",8),_=parseInt("001",8),d=n|c,g=e&_||e&c&&i===a||e&n&&s===r||e&d&&r===0;return g}});var Cn=V((NO,pn)=>{var CO=require("fs"),es;process.platform==="win32"||global.TESTING_WINDOWS?es=kn():es=qn();pn.exports=Gi;Gi.sync=px;function Gi(t,o,e){if(typeof o=="function"&&(e=o,o={}),!e){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(s,i){Gi(t,o||{},function(r,a){r?i(r):s(a)})})}es(t,o||{},function(s,i){s&&(s.code==="EACCES"||o&&o.ignoreErrors)&&(s=null,i=!1),e(s,i)})}function px(t,o){try{return es.sync(t,o||{})}catch(e){if(o&&o.ignoreErrors||e.code==="EACCES")return!1;throw e}}});var Xn=V((SO,En)=>{var zt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Nn=require("path"),Cx=zt?";":":",Sn=Cn(),Fn=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Mn=(t,o)=>{let e=o.colon||Cx,s=t.match(/\//)||zt&&t.match(/\\/)?[""]:[...zt?[process.cwd()]:[],...(o.path||process.env.PATH||"").split(e)],i=zt?o.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",r=zt?i.split(e):[""];return zt&&t.indexOf(".")!==-1&&r[0]!==""&&r.unshift(""),{pathEnv:s,pathExt:r,pathExtExe:i}},Vn=(t,o,e)=>{typeof o=="function"&&(e=o,o={}),o||(o={});let{pathEnv:s,pathExt:i,pathExtExe:r}=Mn(t,o),a=[],n=_=>new Promise((d,g)=>{if(_===s.length)return o.all&&a.length?d(a):g(Fn(t));let O=s[_],w=/^".*"$/.test(O)?O.slice(1,-1):O,z=Nn.join(w,t),K=!w&&/^\.[\\\/]/.test(t)?t.slice(0,2)+z:z;d(c(K,_,0))}),c=(_,d,g)=>new Promise((O,w)=>{if(g===i.length)return O(n(d+1));let z=i[g];Sn(_+z,{pathExt:r},(K,q)=>{if(!K&&q)if(o.all)a.push(_+z);else return O(_+z);return O(c(_,d,g+1))})});return e?n(0).then(_=>e(null,_),e):n(0)},Nx=(t,o)=>{o=o||{};let{pathEnv:e,pathExt:s,pathExtExe:i}=Mn(t,o),r=[];for(let a=0;a<e.length;a++){let n=e[a],c=/^".*"$/.test(n)?n.slice(1,-1):n,_=Nn.join(c,t),d=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+_:_;for(let g=0;g<s.length;g++){let O=d+s[g];try{if(Sn.sync(O,{pathExt:i}))if(o.all)r.push(O);else return O}catch{}}}if(o.all&&r.length)return r;if(o.nothrow)return null;throw Fn(t)};En.exports=Vn;Vn.sync=Nx});var Zn=V((FO,Wi)=>{"use strict";var Yn=(t={})=>{let o=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(o).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"};Wi.exports=Yn;Wi.exports.default=Yn});var Tn=V((MO,Ln)=>{"use strict";var In=require("path"),Sx=Xn(),Fx=Zn();function Pn(t,o){let e=t.options.env||process.env,s=process.cwd(),i=t.options.cwd!=null,r=i&&process.chdir!==void 0&&!process.chdir.disabled;if(r)try{process.chdir(t.options.cwd)}catch{}let a;try{a=Sx.sync(t.command,{path:e[Fx({env:e})],pathExt:o?In.delimiter:void 0})}catch{}finally{r&&process.chdir(s)}return a&&(a=In.resolve(i?t.options.cwd:"",a)),a}function Mx(t){return Pn(t)||Pn(t,!0)}Ln.exports=Mx});var Un=V((VO,vi)=>{"use strict";var bi=/([()\][%!^"`<>&|;, *?])/g;function Vx(t){return t=t.replace(bi,"^$1"),t}function Ex(t,o){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(bi,"^$1"),o&&(t=t.replace(bi,"^$1")),t}vi.exports.command=Vx;vi.exports.argument=Ex});var An=V((EO,Qn)=>{"use strict";Qn.exports=/^#!(.*)/});var Rn=V((XO,jn)=>{"use strict";var Xx=An();jn.exports=(t="")=>{let o=t.match(Xx);if(!o)return null;let[e,s]=o[0].replace(/#! ?/,"").split(" "),i=e.split("/").pop();return i==="env"?s:s?`${i} ${s}`:i}});var Bn=V((YO,Jn)=>{"use strict";var qi=require("fs"),Yx=Rn();function Zx(t){let e=Buffer.alloc(150),s;try{s=qi.openSync(t,"r"),qi.readSync(s,e,0,150,0),qi.closeSync(s)}catch{}return Yx(e.toString())}Jn.exports=Zx});var oc=V((ZO,Hn)=>{"use strict";var Ix=require("path"),Dn=Tn(),$n=Un(),Px=Bn(),Lx=process.platform==="win32",Tx=/\.(?:com|exe)$/i,Ux=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Qx(t){t.file=Dn(t);let o=t.file&&Px(t.file);return o?(t.args.unshift(t.file),t.command=o,Dn(t)):t.file}function Ax(t){if(!Lx)return t;let o=Qx(t),e=!Tx.test(o);if(t.options.forceShell||e){let s=Ux.test(o);t.command=Ix.normalize(t.command),t.command=$n.command(t.command),t.args=t.args.map(r=>$n.argument(r,s));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function jx(t,o,e){o&&!Array.isArray(o)&&(e=o,o=null),o=o?o.slice(0):[],e=Object.assign({},e);let s={command:t,args:o,options:e,file:void 0,original:{command:t,args:o}};return e.shell?s:Ax(s)}Hn.exports=jx});var sc=V((IO,ec)=>{"use strict";var pi=process.platform==="win32";function Ci(t,o){return Object.assign(new Error(`${o} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${t.command}`,path:t.command,spawnargs:t.args})}function Rx(t,o){if(!pi)return;let e=t.emit;t.emit=function(s,i){if(s==="exit"){let r=tc(i,o,"spawn");if(r)return e.call(t,"error",r)}return e.apply(t,arguments)}}function tc(t,o){return pi&&t===1&&!o.file?Ci(o.original,"spawn"):null}function Jx(t,o){return pi&&t===1&&!o.file?Ci(o.original,"spawnSync"):null}ec.exports={hookChildProcess:Rx,verifyENOENT:tc,verifyENOENTSync:Jx,notFoundError:Ci}});var ac=V((PO,Kt)=>{"use strict";var ic=require("child_process"),Ni=oc(),Si=sc();function rc(t,o,e){let s=Ni(t,o,e),i=ic.spawn(s.command,s.args,s.options);return Si.hookChildProcess(i,s),i}function Bx(t,o,e){let s=Ni(t,o,e),i=ic.spawnSync(s.command,s.args,s.options);return i.error=i.error||Si.verifyENOENTSync(i.status,s),i}Kt.exports=rc;Kt.exports.spawn=rc;Kt.exports.sync=Bx;Kt.exports._parse=Ni;Kt.exports._enoent=Si});var cc=V((Fi,nc)=>{"use strict";var Dx=Fi&&Fi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},$x=Dx(ac());function Hx(t,o,e={}){let s=new Error,i=s.stack?s.stack.replace(/^.*/," ..."):null,r,a=new Promise((n,c)=>{let{ignoreStdio:_,...d}=e;r=(0,$x.default)(t,o,d);let g="",O="";_||(r.stdout&&r.stdout.on("data",K=>{g+=K}),r.stderr&&r.stderr.on("data",K=>{O+=K}));let w=(K,q)=>{r.removeListener("error",z);let v={pid:r.pid,output:[g,O],stdout:g,stderr:O,status:K,signal:q};if(K!==0){let p=o&&o.length>0?` ${o.join(" ")}`:"",m=q?new Error(`${t}${p} exited with signal: ${q}`):new Error(`${t}${p} exited with non-zero code: ${K}`);m.stack&&i&&(m.stack+=`
12
- ${i}`),Object.assign(m,v),c(m)}else n(v)},z=K=>{_?r.removeListener("exit",w):r.removeListener("close",w),Object.assign(K,{pid:r.pid,output:[g,O],stdout:g,stderr:O,status:null,signal:null}),c(K)};_?r.once("exit",w):r.once("close",w),r.once("error",z)});return a.child=r,a}nc.exports=Hx});var uc=V((LO,lc)=>{"use strict";var om=require("fs"),tm=require("os"),Mi=Symbol.for("__RESOLVED_TEMP_DIRECTORY__");global[Mi]||Object.defineProperty(global,Mi,{value:om.realpathSync(tm.tmpdir())});lc.exports=global[Mi]});var Gc=V((jO,Xi)=>{"use strict";var zc=require("path"),Kc=require("module"),rm=require("fs"),kc=(t,o,e)=>{if(typeof t!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof t}\``);if(typeof o!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof o}\``);try{t=rm.realpathSync(t)}catch(r){if(r.code==="ENOENT")t=zc.resolve(t);else{if(e)return;throw r}}let s=zc.join(t,"noop.js"),i=()=>Kc._resolveFilename(o,{id:s,filename:s,paths:Kc._nodeModulePaths(t)});if(e)try{return i()}catch{return}return i()};Xi.exports=(t,o)=>kc(t,o);Xi.exports.silent=(t,o)=>kc(t,o,!0)});var Sc=V((ew,Nc)=>{"use strict";Nc.exports=pc;function pc(t,o,e){t instanceof RegExp&&(t=qc(t,e)),o instanceof RegExp&&(o=qc(o,e));var s=Cc(t,o,e);return s&&{start:s[0],end:s[1],pre:e.slice(0,s[0]),body:e.slice(s[0]+t.length,s[1]),post:e.slice(s[1]+o.length)}}function qc(t,o){var e=o.match(t);return e?e[0]:null}pc.range=Cc;function Cc(t,o,e){var s,i,r,a,n,c=e.indexOf(t),_=e.indexOf(o,c+1),d=c;if(c>=0&&_>0){if(t===o)return[c,_];for(s=[],r=e.length;d>=0&&!n;)d==c?(s.push(d),c=e.indexOf(t,d+1)):s.length==1?n=[s.pop(),_]:(i=s.pop(),i<r&&(r=i,a=_),_=e.indexOf(o,d+1)),d=c<_&&c>=0?c:_;s.length&&(n=[r,a])}return n}});var Ic=V((sw,Zc)=>{var Fc=Sc();Zc.exports=um;var Mc="\0SLASH"+Math.random()+"\0",Vc="\0OPEN"+Math.random()+"\0",Pi="\0CLOSE"+Math.random()+"\0",Ec="\0COMMA"+Math.random()+"\0",Xc="\0PERIOD"+Math.random()+"\0";function Ii(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function cm(t){return t.split("\\\\").join(Mc).split("\\{").join(Vc).split("\\}").join(Pi).split("\\,").join(Ec).split("\\.").join(Xc)}function lm(t){return t.split(Mc).join("\\").split(Vc).join("{").split(Pi).join("}").split(Ec).join(",").split(Xc).join(".")}function Yc(t){if(!t)return[""];var o=[],e=Fc("{","}",t);if(!e)return t.split(",");var s=e.pre,i=e.body,r=e.post,a=s.split(",");a[a.length-1]+="{"+i+"}";var n=Yc(r);return r.length&&(a[a.length-1]+=n.shift(),a.push.apply(a,n)),o.push.apply(o,a),o}function um(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),ie(cm(t),!0).map(lm)):[]}function _m(t){return"{"+t+"}"}function xm(t){return/^-?0\d/.test(t)}function mm(t,o){return t<=o}function gm(t,o){return t>=o}function ie(t,o){var e=[],s=Fc("{","}",t);if(!s)return[t];var i=s.pre,r=s.post.length?ie(s.post,!1):[""];if(/\$$/.test(s.pre))for(var a=0;a<r.length;a++){var n=i+"{"+s.body+"}"+r[a];e.push(n)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),_=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||_,g=s.body.indexOf(",")>=0;if(!d&&!g)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+Pi+s.post,ie(t)):[t];var O;if(d)O=s.body.split(/\.\./);else if(O=Yc(s.body),O.length===1&&(O=ie(O[0],!1).map(_m),O.length===1))return r.map(function(f){return s.pre+O[0]+f});var w;if(d){var z=Ii(O[0]),K=Ii(O[1]),q=Math.max(O[0].length,O[1].length),v=O.length==3?Math.abs(Ii(O[2])):1,p=mm,m=K<z;m&&(v*=-1,p=gm);var l=O.some(xm);w=[];for(var x=z;p(x,K);x+=v){var u;if(_)u=String.fromCharCode(x),u==="\\"&&(u="");else if(u=String(x),l){var G=q-u.length;if(G>0){var y=new Array(G+1).join("0");x<0?u="-"+y+u.slice(1):u=y+u}}w.push(u)}}else{w=[];for(var h=0;h<O.length;h++)w.push.apply(w,ie(O[h],!1))}for(var h=0;h<w.length;h++)for(var a=0;a<r.length;a++){var n=i+w[h]+r[a];(!o||d||n)&&e.push(n)}}return e}});var vl=V((rr,ar)=>{(function(t,o,e){typeof rr=="object"?(ar.exports=e(),ar.exports.default=e()):typeof define=="function"&&define.amd?define(e):o[t]=e()})("slugify",rr,function(){var t=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),o=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function e(s,i){if(typeof s!="string")throw new Error("slugify: string argument expected");i=typeof i=="string"?{replacement:i}:i||{};var r=o[i.locale]||{},a=i.replacement===void 0?"-":i.replacement,n=i.trim===void 0?!0:i.trim,c=s.normalize().split("").reduce(function(_,d){var g=r[d];return g===void 0&&(g=t[d]),g===void 0&&(g=d),g===a&&(g=" "),_+g.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),n&&(c=c.trim()),c=c.replace(/\s+/g,a),i.lower&&(c=c.toLowerCase()),c}return e.extend=function(s){Object.assign(t,s)},e})});var Yl=V(Fs=>{"use strict";Fs.byteLength=kg;Fs.toByteArray=Wg;Fs.fromByteArray=qg;var Mo=[],Ko=[],Kg=typeof Uint8Array<"u"?Uint8Array:Array,nr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Ot=0,El=nr.length;Ot<El;++Ot)Mo[Ot]=nr[Ot],Ko[nr.charCodeAt(Ot)]=Ot;var Ot,El;Ko[45]=62;Ko[95]=63;function Xl(t){var o=t.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=o);var s=e===o?0:4-e%4;return[e,s]}function kg(t){var o=Xl(t),e=o[0],s=o[1];return(e+s)*3/4-s}function Gg(t,o,e){return(o+e)*3/4-e}function Wg(t){var o,e=Xl(t),s=e[0],i=e[1],r=new Kg(Gg(t,s,i)),a=0,n=i>0?s-4:s,c;for(c=0;c<n;c+=4)o=Ko[t.charCodeAt(c)]<<18|Ko[t.charCodeAt(c+1)]<<12|Ko[t.charCodeAt(c+2)]<<6|Ko[t.charCodeAt(c+3)],r[a++]=o>>16&255,r[a++]=o>>8&255,r[a++]=o&255;return i===2&&(o=Ko[t.charCodeAt(c)]<<2|Ko[t.charCodeAt(c+1)]>>4,r[a++]=o&255),i===1&&(o=Ko[t.charCodeAt(c)]<<10|Ko[t.charCodeAt(c+1)]<<4|Ko[t.charCodeAt(c+2)]>>2,r[a++]=o>>8&255,r[a++]=o&255),r}function bg(t){return Mo[t>>18&63]+Mo[t>>12&63]+Mo[t>>6&63]+Mo[t&63]}function vg(t,o,e){for(var s,i=[],r=o;r<e;r+=3)s=(t[r]<<16&16711680)+(t[r+1]<<8&65280)+(t[r+2]&255),i.push(bg(s));return i.join("")}function qg(t){for(var o,e=t.length,s=e%3,i=[],r=16383,a=0,n=e-s;a<n;a+=r)i.push(vg(t,a,a+r>n?n:a+r));return s===1?(o=t[e-1],i.push(Mo[o>>2]+Mo[o<<4&63]+"==")):s===2&&(o=(t[e-2]<<8)+t[e-1],i.push(Mo[o>>10]+Mo[o>>4&63]+Mo[o<<2&63]+"=")),i.join("")}});var Vo=V((Zl,rt)=>{(function(){var t,o,e,s,i,r,a,n={}.hasOwnProperty;t=function(c,..._){var d,g,O,w;if(i(Object.assign))Object.assign.apply(null,arguments);else for(d=0,O=_.length;d<O;d++)if(w=_[d],w!=null)for(g in w)n.call(w,g)&&(c[g]=w[g]);return c},i=function(c){return!!c&&Object.prototype.toString.call(c)==="[object Function]"},r=function(c){var _;return!!c&&((_=typeof c)=="function"||_==="object")},e=function(c){return i(Array.isArray)?Array.isArray(c):Object.prototype.toString.call(c)==="[object Array]"},s=function(c){var _;if(e(c))return!c.length;for(_ in c)if(n.call(c,_))return!1;return!0},a=function(c){var _,d;return r(c)&&(d=Object.getPrototypeOf(c))&&(_=d.constructor)&&typeof _=="function"&&_ instanceof _&&Function.prototype.toString.call(_)===Function.prototype.toString.call(Object)},o=function(c){return i(c.valueOf)?c.valueOf():c},rt.exports.assign=t,rt.exports.isFunction=i,rt.exports.isObject=r,rt.exports.isArray=e,rt.exports.isEmpty=s,rt.exports.isPlainObject=a,rt.exports.getValue=o}).call(Zl)});var cr=V((Il,Pl)=>{(function(){var t;Pl.exports=t=class{hasFeature(e,s){return!0}createDocumentType(e,s,i){throw new Error("This DOM method is not implemented.")}createDocument(e,s,i){throw new Error("This DOM method is not implemented.")}createHTMLDocument(e){throw new Error("This DOM method is not implemented.")}getFeature(e,s){throw new Error("This DOM method is not implemented.")}}}).call(Il)});var Ul=V((Ll,Tl)=>{(function(){var t;Tl.exports=t=class{constructor(){}handleError(e){throw new Error(e)}}}).call(Ll)});var jl=V((Ql,Al)=>{(function(){var t;Al.exports=t=function(){class o{constructor(s){this.arr=s||[]}item(s){return this.arr[s]||null}contains(s){return this.arr.indexOf(s)!==-1}}return Object.defineProperty(o.prototype,"length",{get:function(){return this.arr.length}}),o}.call(this)}).call(Ql)});var Bl=V((Rl,Jl)=>{(function(){var t,o,e;o=Ul(),e=jl(),Jl.exports=t=function(){class s{constructor(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new o,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}getParameter(r){return this.params.hasOwnProperty(r)?this.params[r]:null}canSetParameter(r,a){return!0}setParameter(r,a){return a!=null?this.params[r]=a:delete this.params[r]}}return Object.defineProperty(s.prototype,"parameterNames",{get:function(){return new e(Object.keys(this.defaultParams))}}),s}.call(this)}).call(Rl)});var Q=V((Dl,$l)=>{(function(){$l.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(Dl)});var lr=V((Hl,ou)=>{(function(){var t,o,e;t=Q(),e=Oo(),ou.exports=o=function(){class s{constructor(r,a,n){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),a==null)throw new Error("Missing attribute name. "+this.debugInfo(a));this.name=this.stringify.name(a),this.value=this.stringify.attValue(n),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))}debugInfo(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"}isEqualNode(r){return!(r.namespaceURI!==this.namespaceURI||r.prefix!==this.prefix||r.localName!==this.localName||r.value!==this.value)}}return Object.defineProperty(s.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(s.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(s.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(s.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(s.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"specified",{get:function(){return!0}}),s}.call(this)}).call(Hl)});var Ms=V((tu,eu)=>{(function(){var t;eu.exports=t=function(){class o{constructor(s){this.nodes=s}clone(){return this.nodes=null}getNamedItem(s){return this.nodes[s]}setNamedItem(s){var i;return i=this.nodes[s.nodeName],this.nodes[s.nodeName]=s,i||null}removeNamedItem(s){var i;return i=this.nodes[s],delete this.nodes[s],i||null}item(s){return this.nodes[Object.keys(this.nodes)[s]]||null}getNamedItemNS(s,i){throw new Error("This DOM method is not implemented.")}setNamedItemNS(s){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(s,i){throw new Error("This DOM method is not implemented.")}}return Object.defineProperty(o.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),o}.call(this)}).call(tu)});var Vs=V((su,iu)=>{(function(){var t,o,e,s,i,r,a,n,c={}.hasOwnProperty;({isObject:n,isFunction:a,getValue:r}=Vo()),i=Oo(),t=Q(),o=lr(),s=Ms(),iu.exports=e=function(){class _ extends i{constructor(g,O,w){var z,K,q,v;if(super(g),O==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(O),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,w!=null&&this.attribute(w),g.type===t.Document&&(this.isRoot=!0,this.documentObject=g,g.rootObject=this,g.children)){for(v=g.children,K=0,q=v.length;K<q;K++)if(z=v[K],z.type===t.DocType){z.name=this.name;break}}}clone(){var g,O,w,z;w=Object.create(this),w.isRoot&&(w.documentObject=null),w.attribs={},z=this.attribs;for(O in z)c.call(z,O)&&(g=z[O],w.attribs[O]=g.clone());return w.children=[],this.children.forEach(function(K){var q;return q=K.clone(),q.parent=w,w.children.push(q)}),w}attribute(g,O){var w,z;if(g!=null&&(g=r(g)),n(g))for(w in g)c.call(g,w)&&(z=g[w],this.attribute(w,z));else a(O)&&(O=O.apply()),this.options.keepNullAttributes&&O==null?this.attribs[g]=new o(this,g,""):O!=null&&(this.attribs[g]=new o(this,g,O));return this}removeAttribute(g){var O,w,z;if(g==null)throw new Error("Missing attribute name. "+this.debugInfo());if(g=r(g),Array.isArray(g))for(w=0,z=g.length;w<z;w++)O=g[w],delete this.attribs[O];else delete this.attribs[g];return this}toString(g){return this.options.writer.element(this,this.options.writer.filterOptions(g))}att(g,O){return this.attribute(g,O)}a(g,O){return this.attribute(g,O)}getAttribute(g){return this.attribs.hasOwnProperty(g)?this.attribs[g].value:null}setAttribute(g,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(g){return this.attribs.hasOwnProperty(g)?this.attribs[g]:null}setAttributeNode(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(g,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(g,O,w){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(g,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(g,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(g,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(g){return this.attribs.hasOwnProperty(g)}hasAttributeNS(g,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(g,O){return this.attribs.hasOwnProperty(g)?this.attribs[g].isId:O}setIdAttributeNS(g,O,w){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(g,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(g,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(g){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(g){var O,w,z;if(!super.isEqualNode(g)||g.namespaceURI!==this.namespaceURI||g.prefix!==this.prefix||g.localName!==this.localName||g.attribs.length!==this.attribs.length)return!1;for(O=w=0,z=this.attribs.length-1;0<=z?w<=z:w>=z;O=0<=z?++w:--w)if(!this.attribs[O].isEqualNode(g.attribs[O]))return!1;return!0}}return Object.defineProperty(_.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(_.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(_.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(_.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(_.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(_.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(_.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(_.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new s(this.attribs)),this.attributeMap}}),_}.call(this)}).call(su)});var fe=V((ru,au)=>{(function(){var t,o;o=Oo(),au.exports=t=function(){class e extends o{constructor(i){super(i),this.value=""}clone(){return Object.create(this)}substringData(i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(i){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(i,r,a){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(i){return!(!super.isEqualNode(i)||i.data!==this.data)}}return Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),e}.call(this)}).call(ru)});var Es=V((nu,cu)=>{(function(){var t,o,e;t=Q(),e=fe(),cu.exports=o=class extends e{constructor(i,r){if(super(i),r==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(r)}clone(){return Object.create(this)}toString(i){return this.options.writer.cdata(this,this.options.writer.filterOptions(i))}}}).call(nu)});var Xs=V((lu,uu)=>{(function(){var t,o,e;t=Q(),o=fe(),uu.exports=e=class extends o{constructor(i,r){if(super(i),r==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(r)}clone(){return Object.create(this)}toString(i){return this.options.writer.comment(this,this.options.writer.filterOptions(i))}}}).call(lu)});var Ys=V((_u,xu)=>{(function(){var t,o,e,s;({isObject:s}=Vo()),e=Oo(),t=Q(),xu.exports=o=class extends e{constructor(r,a,n,c){super(r),s(a)&&({version:a,encoding:n,standalone:c}=a),a||(a="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(a),n!=null&&(this.encoding=this.stringify.xmlEncoding(n)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}toString(r){return this.options.writer.declaration(this,this.options.writer.filterOptions(r))}}}).call(_u)});var Zs=V((mu,gu)=>{(function(){var t,o,e;e=Oo(),t=Q(),gu.exports=o=class extends e{constructor(i,r,a,n,c,_){if(super(i),r==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(a==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(r));if(!n)throw new Error("Missing DTD attribute type. "+this.debugInfo(r));if(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(r));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(r));if(_&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(r));this.elementName=this.stringify.name(r),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(a),this.attributeType=this.stringify.dtdAttType(n),_&&(this.defaultValue=this.stringify.dtdAttDefault(_)),this.defaultValueType=c}toString(i){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(i))}}}).call(mu)});var Is=V((Ou,wu)=>{(function(){var t,o,e,s;({isObject:s}=Vo()),e=Oo(),t=Q(),wu.exports=o=function(){class i extends e{constructor(a,n,c,_){if(super(a),c==null)throw new Error("Missing DTD entity name. "+this.debugInfo(c));if(_==null)throw new Error("Missing DTD entity value. "+this.debugInfo(c));if(this.pe=!!n,this.name=this.stringify.name(c),this.type=t.EntityDeclaration,!s(_))this.value=this.stringify.dtdEntityValue(_),this.internal=!0;else{if(!_.pubID&&!_.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(c));if(_.pubID&&!_.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(c));if(this.internal=!1,_.pubID!=null&&(this.pubID=this.stringify.dtdPubID(_.pubID)),_.sysID!=null&&(this.sysID=this.stringify.dtdSysID(_.sysID)),_.nData!=null&&(this.nData=this.stringify.dtdNData(_.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(c))}}toString(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))}}return Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(i.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(i.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"xmlVersion",{get:function(){return null}}),i}.call(this)}).call(Ou)});var Ps=V((du,yu)=>{(function(){var t,o,e;e=Oo(),t=Q(),yu.exports=o=class extends e{constructor(i,r,a){if(super(i),r==null)throw new Error("Missing DTD element name. "+this.debugInfo());a||(a="(#PCDATA)"),Array.isArray(a)&&(a="("+a.join(",")+")"),this.name=this.stringify.name(r),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(a)}toString(i){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(i))}}}).call(du)});var Ls=V((hu,fu)=>{(function(){var t,o,e;e=Oo(),t=Q(),fu.exports=o=function(){class s extends e{constructor(r,a,n){if(super(r),a==null)throw new Error("Missing DTD notation name. "+this.debugInfo(a));if(!n.pubID&&!n.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a));this.name=this.stringify.name(a),this.type=t.NotationDeclaration,n.pubID!=null&&(this.pubID=this.stringify.dtdPubID(n.pubID)),n.sysID!=null&&(this.sysID=this.stringify.dtdSysID(n.sysID))}toString(r){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(r))}}return Object.defineProperty(s.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(s.prototype,"systemId",{get:function(){return this.sysID}}),s}.call(this)}).call(hu)});var Ts=V((zu,Ku)=>{(function(){var t,o,e,s,i,r,a,n,c;({isObject:c}=Vo()),n=Oo(),t=Q(),o=Zs(),s=Is(),e=Ps(),i=Ls(),a=Ms(),Ku.exports=r=function(){class _ extends n{constructor(g,O,w){var z,K,q,v;if(super(g),this.type=t.DocType,g.children){for(v=g.children,K=0,q=v.length;K<q;K++)if(z=v[K],z.type===t.Element){this.name=z.name;break}}this.documentObject=g,c(O)&&({pubID:O,sysID:w}=O),w==null&&([w,O]=[O,w]),O!=null&&(this.pubID=this.stringify.dtdPubID(O)),w!=null&&(this.sysID=this.stringify.dtdSysID(w))}element(g,O){var w;return w=new e(this,g,O),this.children.push(w),this}attList(g,O,w,z,K){var q;return q=new o(this,g,O,w,z,K),this.children.push(q),this}entity(g,O){var w;return w=new s(this,!1,g,O),this.children.push(w),this}pEntity(g,O){var w;return w=new s(this,!0,g,O),this.children.push(w),this}notation(g,O){var w;return w=new i(this,g,O),this.children.push(w),this}toString(g){return this.options.writer.docType(this,this.options.writer.filterOptions(g))}ele(g,O){return this.element(g,O)}att(g,O,w,z,K){return this.attList(g,O,w,z,K)}ent(g,O){return this.entity(g,O)}pent(g,O){return this.pEntity(g,O)}not(g,O){return this.notation(g,O)}up(){return this.root()||this.documentObject}isEqualNode(g){return!(!super.isEqualNode(g)||g.name!==this.name||g.publicId!==this.publicId||g.systemId!==this.systemId)}}return Object.defineProperty(_.prototype,"entities",{get:function(){var d,g,O,w,z;for(w={},z=this.children,g=0,O=z.length;g<O;g++)d=z[g],d.type===t.EntityDeclaration&&!d.pe&&(w[d.name]=d);return new a(w)}}),Object.defineProperty(_.prototype,"notations",{get:function(){var d,g,O,w,z;for(w={},z=this.children,g=0,O=z.length;g<O;g++)d=z[g],d.type===t.NotationDeclaration&&(w[d.name]=d);return new a(w)}}),Object.defineProperty(_.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(_.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(_.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),_}.call(this)}).call(zu)});var Us=V((ku,Gu)=>{(function(){var t,o,e;t=Q(),o=Oo(),Gu.exports=e=class extends o{constructor(i,r){if(super(i),r==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(r)}clone(){return Object.create(this)}toString(i){return this.options.writer.raw(this,this.options.writer.filterOptions(i))}}}).call(ku)});var Qs=V((Wu,bu)=>{(function(){var t,o,e;t=Q(),o=fe(),bu.exports=e=function(){class s extends o{constructor(r,a){if(super(r),a==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=t.Text,this.value=this.stringify.text(a)}clone(){return Object.create(this)}toString(r){return this.options.writer.text(this,this.options.writer.filterOptions(r))}splitText(r){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(r){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(s.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"wholeText",{get:function(){var i,r,a;for(a="",r=this.previousSibling;r;)a=r.data+a,r=r.previousSibling;for(a+=this.data,i=this.nextSibling;i;)a=a+i.data,i=i.nextSibling;return a}}),s}.call(this)}).call(Wu)});var As=V((vu,qu)=>{(function(){var t,o,e;t=Q(),o=fe(),qu.exports=e=class extends o{constructor(i,r,a){if(super(i),r==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=t.ProcessingInstruction,this.target=this.stringify.insTarget(r),this.name=this.target,a&&(this.value=this.stringify.insValue(a))}clone(){return Object.create(this)}toString(i){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(i))}isEqualNode(i){return!(!super.isEqualNode(i)||i.target!==this.target)}}}).call(vu)});var ur=V((pu,Cu)=>{(function(){var t,o,e;e=Oo(),t=Q(),Cu.exports=o=class extends e{constructor(i){super(i),this.type=t.Dummy}clone(){return Object.create(this)}toString(i){return""}}}).call(pu)});var Fu=V((Nu,Su)=>{(function(){var t;Su.exports=t=function(){class o{constructor(s){this.nodes=s}clone(){return this.nodes=null}item(s){return this.nodes[s]||null}}return Object.defineProperty(o.prototype,"length",{get:function(){return this.nodes.length||0}}),o}.call(this)}).call(Nu)});var Eu=V((Mu,Vu)=>{(function(){Vu.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(Mu)});var Oo=V((Xu,Yu)=>{(function(){var t,o,e,s,i,r,a,n,c,_,d,g,O,w,z,K,q,v,p={}.hasOwnProperty,m=[].splice;({isObject:v,isFunction:q,isEmpty:K,getValue:z}=Vo()),n=null,e=null,s=null,i=null,r=null,O=null,w=null,g=null,a=null,o=null,d=null,c=null,t=null,Yu.exports=_=function(){class l{constructor(u){this.parent=u,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,n||(n=Vs(),e=Es(),s=Xs(),i=Ys(),r=Ts(),O=Us(),w=Qs(),g=As(),a=ur(),o=Q(),d=Fu(),c=Ms(),t=Eu())}setParent(u){var G,y,h,f,b;for(this.parent=u,u&&(this.options=u.options,this.stringify=u.stringify),f=this.children,b=[],y=0,h=f.length;y<h;y++)G=f[y],b.push(G.setParent(this));return b}element(u,G,y){var h,f,b,N,S,E,Y,M,X;if(E=null,G===null&&y==null&&([G,y]=[{},null]),G==null&&(G={}),G=z(G),v(G)||([y,G]=[G,y]),u!=null&&(u=z(u)),Array.isArray(u))for(b=0,Y=u.length;b<Y;b++)f=u[b],E=this.element(f);else if(q(u))E=this.element(u.apply());else if(v(u)){for(S in u)if(p.call(u,S))if(X=u[S],q(X)&&(X=X.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&S.indexOf(this.stringify.convertAttKey)===0)E=this.attribute(S.substr(this.stringify.convertAttKey.length),X);else if(!this.options.separateArrayItems&&Array.isArray(X)&&K(X))E=this.dummy();else if(v(X)&&K(X))E=this.element(S);else if(!this.options.keepNullNodes&&X==null)E=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(X))for(N=0,M=X.length;N<M;N++)f=X[N],h={},h[S]=f,E=this.element(h);else v(X)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&S.indexOf(this.stringify.convertTextKey)===0?E=this.element(X):(E=this.element(S),E.element(X)):E=this.element(S,X)}else!this.options.keepNullNodes&&y===null?E=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&u.indexOf(this.stringify.convertTextKey)===0?E=this.text(y):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&u.indexOf(this.stringify.convertCDataKey)===0?E=this.cdata(y):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&u.indexOf(this.stringify.convertCommentKey)===0?E=this.comment(y):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&u.indexOf(this.stringify.convertRawKey)===0?E=this.raw(y):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&u.indexOf(this.stringify.convertPIKey)===0?E=this.instruction(u.substr(this.stringify.convertPIKey.length),y):E=this.node(u,G,y);if(E==null)throw new Error("Could not create any elements with: "+u+". "+this.debugInfo());return E}insertBefore(u,G,y){var h,f,b,N,S;if(u?.type)return b=u,N=G,b.setParent(this),N?(f=children.indexOf(N),S=children.splice(f),children.push(b),Array.prototype.push.apply(children,S)):children.push(b),b;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(u));return f=this.parent.children.indexOf(this),S=this.parent.children.splice(f),h=this.parent.element(u,G,y),Array.prototype.push.apply(this.parent.children,S),h}insertAfter(u,G,y){var h,f,b;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(u));return f=this.parent.children.indexOf(this),b=this.parent.children.splice(f+1),h=this.parent.element(u,G,y),Array.prototype.push.apply(this.parent.children,b),h}remove(){var u,G;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return u=this.parent.children.indexOf(this),m.apply(this.parent.children,[u,u-u+1].concat(G=[])),this.parent}node(u,G,y){var h;return u!=null&&(u=z(u)),G||(G={}),G=z(G),v(G)||([y,G]=[G,y]),h=new n(this,u,G),y!=null&&h.text(y),this.children.push(h),h}text(u){var G;return v(u)&&this.element(u),G=new w(this,u),this.children.push(G),this}cdata(u){var G;return G=new e(this,u),this.children.push(G),this}comment(u){var G;return G=new s(this,u),this.children.push(G),this}commentBefore(u){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y),G=this.parent.comment(u),Array.prototype.push.apply(this.parent.children,h),this}commentAfter(u){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y+1),G=this.parent.comment(u),Array.prototype.push.apply(this.parent.children,h),this}raw(u){var G;return G=new O(this,u),this.children.push(G),this}dummy(){var u;return u=new a(this),u}instruction(u,G){var y,h,f,b,N;if(u!=null&&(u=z(u)),G!=null&&(G=z(G)),Array.isArray(u))for(b=0,N=u.length;b<N;b++)y=u[b],this.instruction(y);else if(v(u))for(y in u)p.call(u,y)&&(h=u[y],this.instruction(y,h));else q(G)&&(G=G.apply()),f=new g(this,u,G),this.children.push(f);return this}instructionBefore(u,G){var y,h,f;return h=this.parent.children.indexOf(this),f=this.parent.children.splice(h),y=this.parent.instruction(u,G),Array.prototype.push.apply(this.parent.children,f),this}instructionAfter(u,G){var y,h,f;return h=this.parent.children.indexOf(this),f=this.parent.children.splice(h+1),y=this.parent.instruction(u,G),Array.prototype.push.apply(this.parent.children,f),this}declaration(u,G,y){var h,f;return h=this.document(),f=new i(h,u,G,y),h.children.length===0?h.children.unshift(f):h.children[0].type===o.Declaration?h.children[0]=f:h.children.unshift(f),h.root()||h}dtd(u,G){var y,h,f,b,N,S,E,Y,M,X;for(h=this.document(),f=new r(h,u,G),M=h.children,b=N=0,E=M.length;N<E;b=++N)if(y=M[b],y.type===o.DocType)return h.children[b]=f,f;for(X=h.children,b=S=0,Y=X.length;S<Y;b=++S)if(y=X[b],y.isRoot)return h.children.splice(b,0,f),f;return h.children.push(f),f}up(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent}root(){var u;for(u=this;u;){if(u.type===o.Document)return u.rootObject;if(u.isRoot)return u;u=u.parent}}document(){var u;for(u=this;u;){if(u.type===o.Document)return u;u=u.parent}}end(u){return this.document().end(u)}prev(){var u;if(u=this.parent.children.indexOf(this),u<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[u-1]}next(){var u;if(u=this.parent.children.indexOf(this),u===-1||u===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[u+1]}importDocument(u){var G,y,h,f,b;if(y=u.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this.type===o.Document&&(y.isRoot=!0,y.documentObject=this,this.rootObject=y,this.children)){for(b=this.children,h=0,f=b.length;h<f;h++)if(G=b[h],G.type===o.DocType){G.name=y.name;break}}return this}debugInfo(u){var G,y;return u=u||this.name,u==null&&!((G=this.parent)!=null&&G.name)?"":u==null?"parent: <"+this.parent.name+">":(y=this.parent)!=null&&y.name?"node: <"+u+">, parent: <"+this.parent.name+">":"node: <"+u+">"}ele(u,G,y){return this.element(u,G,y)}nod(u,G,y){return this.node(u,G,y)}txt(u){return this.text(u)}dat(u){return this.cdata(u)}com(u){return this.comment(u)}ins(u,G){return this.instruction(u,G)}doc(){return this.document()}dec(u,G,y){return this.declaration(u,G,y)}e(u,G,y){return this.element(u,G,y)}n(u,G,y){return this.node(u,G,y)}t(u){return this.text(u)}d(u){return this.cdata(u)}c(u){return this.comment(u)}r(u){return this.raw(u)}i(u,G){return this.instruction(u,G)}u(){return this.up()}importXMLBuilder(u){return this.importDocument(u)}attribute(u,G){throw new Error("attribute() applies to element nodes only.")}att(u,G){return this.attribute(u,G)}a(u,G){return this.attribute(u,G)}removeAttribute(u){throw new Error("attribute() applies to element nodes only.")}replaceChild(u,G){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(u,G){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(u){var G,y;return G=this,G===u?0:this.document()!==u.document()?(y=t.Disconnected|t.ImplementationSpecific,Math.random()<.5?y|=t.Preceding:y|=t.Following,y):G.isAncestor(u)?t.Contains|t.Preceding:G.isDescendant(u)?t.Contains|t.Following:G.isPreceding(u)?t.Preceding:t.Following}isSameNode(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(u){var G,y,h;if(u.nodeType!==this.nodeType||u.children.length!==this.children.length)return!1;for(G=y=0,h=this.children.length-1;0<=h?y<=h:y>=h;G=0<=h?++y:--y)if(!this.children[G].isEqualNode(u.children[G]))return!1;return!0}getFeature(u,G){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(u,G,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(u){return u?u===this||this.isDescendant(u):!1}isDescendant(u){var G,y,h,f,b;for(b=this.children,h=0,f=b.length;h<f;h++)if(G=b[h],u===G||(y=G.isDescendant(u),y))return!0;return!1}isAncestor(u){return u.isDescendant(this)}isPreceding(u){var G,y;return G=this.treePosition(u),y=this.treePosition(this),G===-1||y===-1?!1:G<y}isFollowing(u){var G,y;return G=this.treePosition(u),y=this.treePosition(this),G===-1||y===-1?!1:G>y}treePosition(u){var G,y;return y=0,G=!1,this.foreachTreeNode(this.document(),function(h){if(y++,!G&&h===u)return G=!0}),G?y:-1}foreachTreeNode(u,G){var y,h,f,b,N;for(u||(u=this.document()),b=u.children,h=0,f=b.length;h<f;h++){if(y=b[h],N=G(y))return N;if(N=this.foreachTreeNode(y,G),N)return N}}}return Object.defineProperty(l.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(l.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(l.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(l.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(l.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new d(this.children)),this.childNodeList}}),Object.defineProperty(l.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(l.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(l.prototype,"previousSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x-1]||null}}),Object.defineProperty(l.prototype,"nextSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x+1]||null}}),Object.defineProperty(l.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(l.prototype,"textContent",{get:function(){var x,u,G,y,h;if(this.nodeType===o.Element||this.nodeType===o.DocumentFragment){for(h="",y=this.children,u=0,G=y.length;u<G;u++)x=y[u],x.textContent&&(h+=x.textContent);return h}else return null},set:function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),l}.call(this)}).call(Xu)});var _r=V((Zu,Iu)=>{(function(){var t,o={}.hasOwnProperty;Iu.exports=t=function(){class e{constructor(i){var r,a,n;this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),i||(i={}),this.options=i,this.options.version||(this.options.version="1.0"),a=i.stringify||{};for(r in a)o.call(a,r)&&(n=a[r],this[r]=n)}name(i){return this.options.noValidation?i:this.assertLegalName(""+i||"")}text(i){return this.options.noValidation?i:this.assertLegalChar(this.textEscape(""+i||""))}cdata(i){return this.options.noValidation?i:(i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i))}comment(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+i);return this.assertLegalChar(i)}raw(i){return this.options.noValidation?i:""+i||""}attValue(i){return this.options.noValidation?i:this.assertLegalChar(this.attEscape(i=""+i||""))}insTarget(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}insValue(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return this.assertLegalChar(i)}xmlVersion(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i}xmlEncoding(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+i);return this.assertLegalChar(i)}xmlStandalone(i){return this.options.noValidation?i:i?"yes":"no"}dtdPubID(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdSysID(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdElementValue(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdAttType(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdAttDefault(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdEntityValue(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdNData(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}assertLegalChar(i){var r,a;if(this.options.noValidation)return i;if(this.options.version==="1.0"){if(r=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)i=i.replace(r,this.options.invalidCharReplacement);else if(a=i.match(r))throw new Error(`Invalid character in string: ${i} at index ${a.index}`)}else if(this.options.version==="1.1"){if(r=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)i=i.replace(r,this.options.invalidCharReplacement);else if(a=i.match(r))throw new Error(`Invalid character in string: ${i} at index ${a.index}`)}return i}assertLegalName(i){var r;if(this.options.noValidation)return i;if(i=this.assertLegalChar(i),r=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!i.match(r))throw new Error(`Invalid character in name: ${i}`);return i}textEscape(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))}attEscape(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))}}return e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e}.call(this)}).call(Zu)});var ze=V((Pu,Lu)=>{(function(){Lu.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(Pu)});var xr=V((Tu,Uu)=>{(function(){var t,o,e,s,i,r,a,n,c,_,d,g,O,w,z,K,q,v={}.hasOwnProperty;({assign:q}=Vo()),t=Q(),c=Ys(),_=Ts(),e=Es(),s=Xs(),g=Vs(),w=Us(),z=Qs(),O=As(),d=ur(),i=Zs(),r=Ps(),a=Is(),n=Ls(),o=ze(),Uu.exports=K=class{constructor(m){var l,x,u;m||(m={}),this.options=m,x=m.writer||{};for(l in x)v.call(x,l)&&(u=x[l],this["_"+l]=this[l],this[l]=u)}filterOptions(m){var l,x,u,G,y,h,f,b,N;return m||(m={}),m=q({},this.options,m),l={writer:this},l.pretty=m.pretty||!1,l.allowEmpty=m.allowEmpty||!1,l.indent=(x=m.indent)!=null?x:" ",l.newline=(u=m.newline)!=null?u:`
13
- `,l.offset=(G=m.offset)!=null?G:0,l.width=(y=m.width)!=null?y:0,l.dontPrettyTextNodes=(h=(f=m.dontPrettyTextNodes)!=null?f:m.dontprettytextnodes)!=null?h:0,l.spaceBeforeSlash=(b=(N=m.spaceBeforeSlash)!=null?N:m.spacebeforeslash)!=null?b:"",l.spaceBeforeSlash===!0&&(l.spaceBeforeSlash=" "),l.suppressPrettyCount=0,l.user={},l.state=o.None,l}indent(m,l,x){var u;return!l.pretty||l.suppressPrettyCount?"":l.pretty&&(u=(x||0)+l.offset+1,u>0)?new Array(u).join(l.indent):""}endline(m,l,x){return!l.pretty||l.suppressPrettyCount?"":l.newline}attribute(m,l,x){var u;return this.openAttribute(m,l,x),l.pretty&&l.width>0?u=m.name+'="'+m.value+'"':u=" "+m.name+'="'+m.value+'"',this.closeAttribute(m,l,x),u}cdata(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<![CDATA[",l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+="]]>"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}comment(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!-- ",l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+=" -->"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}declaration(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<?xml",l.state=o.InsideTag,u+=' version="'+m.version+'"',m.encoding!=null&&(u+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(u+=' standalone="'+m.standalone+'"'),l.state=o.CloseTag,u+=l.spaceBeforeSlash+"?>",u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}docType(m,l,x){var u,G,y,h,f;if(x||(x=0),this.openNode(m,l,x),l.state=o.OpenTag,h=this.indent(m,l,x),h+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?h+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(h+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(h+=" [",h+=this.endline(m,l,x),l.state=o.InsideTag,f=m.children,G=0,y=f.length;G<y;G++)u=f[G],h+=this.writeChildNode(u,l,x+1);l.state=o.CloseTag,h+="]"}return l.state=o.CloseTag,h+=l.spaceBeforeSlash+">",h+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),h}element(m,l,x){var u,G,y,h,f,b,N,S,E,Y,M,X,Z,wo,to,$o,dt,yt,Yo;if(x||(x=0),X=!1,this.openNode(m,l,x),l.state=o.OpenTag,Z=this.indent(m,l,x)+"<"+m.name,l.pretty&&l.width>0){S=Z.length,to=m.attribs;for(M in to)v.call(to,M)&&(u=to[M],wo=this.attribute(u,l,x),G=wo.length,S+G>l.width?(Yo=this.indent(m,l,x+1)+wo,Z+=this.endline(m,l,x)+Yo,S=Yo.length):(Yo=" "+wo,Z+=Yo,S+=Yo.length))}else{$o=m.attribs;for(M in $o)v.call($o,M)&&(u=$o[M],Z+=this.attribute(u,l,x))}if(h=m.children.length,f=h===0?null:m.children[0],h===0||m.children.every(function(ht){return(ht.type===t.Text||ht.type===t.Raw||ht.type===t.CData)&&ht.value===""}))l.allowEmpty?(Z+=">",l.state=o.CloseTag,Z+="</"+m.name+">"+this.endline(m,l,x)):(l.state=o.CloseTag,Z+=l.spaceBeforeSlash+"/>"+this.endline(m,l,x));else if(l.pretty&&h===1&&(f.type===t.Text||f.type===t.Raw||f.type===t.CData)&&f.value!=null)Z+=">",l.state=o.InsideTag,l.suppressPrettyCount++,X=!0,Z+=this.writeChildNode(f,l,x+1),l.suppressPrettyCount--,X=!1,l.state=o.CloseTag,Z+="</"+m.name+">"+this.endline(m,l,x);else{if(l.dontPrettyTextNodes){for(dt=m.children,b=0,E=dt.length;b<E;b++)if(y=dt[b],(y.type===t.Text||y.type===t.Raw||y.type===t.CData)&&y.value!=null){l.suppressPrettyCount++,X=!0;break}}for(Z+=">"+this.endline(m,l,x),l.state=o.InsideTag,yt=m.children,N=0,Y=yt.length;N<Y;N++)y=yt[N],Z+=this.writeChildNode(y,l,x+1);l.state=o.CloseTag,Z+=this.indent(m,l,x)+"</"+m.name+">",X&&l.suppressPrettyCount--,Z+=this.endline(m,l,x),l.state=o.None}return this.closeNode(m,l,x),Z}writeChildNode(m,l,x){switch(m.type){case t.CData:return this.cdata(m,l,x);case t.Comment:return this.comment(m,l,x);case t.Element:return this.element(m,l,x);case t.Raw:return this.raw(m,l,x);case t.Text:return this.text(m,l,x);case t.ProcessingInstruction:return this.processingInstruction(m,l,x);case t.Dummy:return"";case t.Declaration:return this.declaration(m,l,x);case t.DocType:return this.docType(m,l,x);case t.AttributeDeclaration:return this.dtdAttList(m,l,x);case t.ElementDeclaration:return this.dtdElement(m,l,x);case t.EntityDeclaration:return this.dtdEntity(m,l,x);case t.NotationDeclaration:return this.dtdNotation(m,l,x);default:throw new Error("Unknown XML node type: "+m.constructor.name)}}processingInstruction(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<?",l.state=o.InsideTag,u+=m.target,m.value&&(u+=" "+m.value),l.state=o.CloseTag,u+=l.spaceBeforeSlash+"?>",u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}raw(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x),l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}text(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x),l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}dtdAttList(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!ATTLIST",l.state=o.InsideTag,u+=" "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(u+=" "+m.defaultValueType),m.defaultValue&&(u+=' "'+m.defaultValue+'"'),l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}dtdElement(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!ELEMENT",l.state=o.InsideTag,u+=" "+m.name+" "+m.value,l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}dtdEntity(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!ENTITY",l.state=o.InsideTag,m.pe&&(u+=" %"),u+=" "+m.name,m.value?u+=' "'+m.value+'"':(m.pubID&&m.sysID?u+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(u+=' SYSTEM "'+m.sysID+'"'),m.nData&&(u+=" NDATA "+m.nData)),l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}dtdNotation(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!NOTATION",l.state=o.InsideTag,u+=" "+m.name,m.pubID&&m.sysID?u+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?u+=' PUBLIC "'+m.pubID+'"':m.sysID&&(u+=' SYSTEM "'+m.sysID+'"'),l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}openNode(m,l,x){}closeNode(m,l,x){}openAttribute(m,l,x){}closeAttribute(m,l,x){}}}).call(Tu)});var js=V((Qu,Au)=>{(function(){var t,o;o=xr(),Au.exports=t=class extends o{constructor(s){super(s)}document(s,i){var r,a,n,c,_;for(i=this.filterOptions(i),c="",_=s.children,a=0,n=_.length;a<n;a++)r=_[a],c+=this.writeChildNode(r,i,0);return i.pretty&&c.slice(-i.newline.length)===i.newline&&(c=c.slice(0,-i.newline.length)),c}}}).call(Qu)});var mr=V((ju,Ru)=>{(function(){var t,o,e,s,i,r,a,n;({isPlainObject:n}=Vo()),e=cr(),o=Bl(),i=Oo(),t=Q(),a=_r(),r=js(),Ru.exports=s=function(){class c extends i{constructor(d){super(null),this.name="#document",this.type=t.Document,this.documentURI=null,this.domConfig=new o,d||(d={}),d.writer||(d.writer=new r),this.options=d,this.stringify=new a(d)}end(d){var g;return g={},d?n(d)&&(g=d,d=this.options.writer):d=this.options.writer,d.document(this,d.filterOptions(g))}toString(d){return this.options.writer.document(this,this.options.writer.filterOptions(d))}createElement(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(d,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(d,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(d,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(d,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(d,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(d,g,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(d,g,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(d,g,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(c.prototype,"implementation",{value:new e}),Object.defineProperty(c.prototype,"doctype",{get:function(){var _,d,g,O;for(O=this.children,d=0,g=O.length;d<g;d++)if(_=O[d],_.type===t.DocType)return _;return null}}),Object.defineProperty(c.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].encoding:null}}),Object.defineProperty(c.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(c.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(c.prototype,"origin",{get:function(){return null}}),Object.defineProperty(c.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(c.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(c.prototype,"contentType",{get:function(){return null}}),c}.call(this)}).call(ju)});var Du=V((Ju,Bu)=>{(function(){var t,o,e,s,i,r,a,n,c,_,d,g,O,w,z,K,q,v,p,m,l,x,u,G={}.hasOwnProperty;({isObject:x,isFunction:l,isPlainObject:u,getValue:m}=Vo()),t=Q(),g=mr(),w=Vs(),s=Es(),i=Xs(),K=Us(),p=Qs(),z=As(),_=Ys(),d=Ts(),r=Zs(),n=Is(),a=Ps(),c=Ls(),e=lr(),v=_r(),q=js(),o=ze(),Bu.exports=O=class{constructor(h,f,b){var N;this.name="?xml",this.type=t.Document,h||(h={}),N={},h.writer?u(h.writer)&&(N=h.writer,h.writer=new q):h.writer=new q,this.options=h,this.writer=h.writer,this.writerOptions=this.writer.filterOptions(N),this.stringify=new v(h),this.onDataCallback=f||function(){},this.onEndCallback=b||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(h){var f,b,N,S,E,Y,M,X;switch(h.type){case t.CData:this.cdata(h.value);break;case t.Comment:this.comment(h.value);break;case t.Element:N={},M=h.attribs;for(b in M)G.call(M,b)&&(f=M[b],N[b]=f.value);this.node(h.name,N);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(h.value);break;case t.Text:this.text(h.value);break;case t.ProcessingInstruction:this.instruction(h.target,h.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+h.constructor.name)}for(X=h.children,E=0,Y=X.length;E<Y;E++)S=X[E],this.createChildNode(S),S.type===t.Element&&this.up();return this}dummy(){return this}node(h,f,b){if(h==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(h));return this.openCurrent(),h=m(h),f==null&&(f={}),f=m(f),x(f)||([b,f]=[f,b]),this.currentNode=new w(this,h,f),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,b!=null&&this.text(b),this}element(h,f,b){var N,S,E,Y,M,X;if(this.currentNode&&this.currentNode.type===t.DocType)this.dtdElement(...arguments);else if(Array.isArray(h)||x(h)||l(h))for(Y=this.options.noValidation,this.options.noValidation=!0,X=new g(this.options).element("TEMP_ROOT"),X.element(h),this.options.noValidation=Y,M=X.children,S=0,E=M.length;S<E;S++)N=M[S],this.createChildNode(N),N.type===t.Element&&this.up();else this.node(h,f,b);return this}attribute(h,f){var b,N;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(h));if(h!=null&&(h=m(h)),x(h))for(b in h)G.call(h,b)&&(N=h[b],this.attribute(b,N));else l(f)&&(f=f.apply()),this.options.keepNullAttributes&&f==null?this.currentNode.attribs[h]=new e(this,h,""):f!=null&&(this.currentNode.attribs[h]=new e(this,h,f));return this}text(h){var f;return this.openCurrent(),f=new p(this,h),this.onData(this.writer.text(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(h){var f;return this.openCurrent(),f=new s(this,h),this.onData(this.writer.cdata(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(h){var f;return this.openCurrent(),f=new i(this,h),this.onData(this.writer.comment(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(h){var f;return this.openCurrent(),f=new K(this,h),this.onData(this.writer.raw(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(h,f){var b,N,S,E,Y;if(this.openCurrent(),h!=null&&(h=m(h)),f!=null&&(f=m(f)),Array.isArray(h))for(b=0,E=h.length;b<E;b++)N=h[b],this.instruction(N);else if(x(h))for(N in h)G.call(h,N)&&(S=h[N],this.instruction(N,S));else l(f)&&(f=f.apply()),Y=new z(this,h,f),this.onData(this.writer.processingInstruction(Y,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(h,f,b){var N;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return N=new _(this,h,f,b),this.onData(this.writer.declaration(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(h,f,b){if(this.openCurrent(),h==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new d(this,f,b),this.currentNode.rootNodeName=h,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(h,f){var b;return this.openCurrent(),b=new a(this,h,f),this.onData(this.writer.dtdElement(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(h,f,b,N,S){var E;return this.openCurrent(),E=new r(this,h,f,b,N,S),this.onData(this.writer.dtdAttList(E,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(h,f){var b;return this.openCurrent(),b=new n(this,!1,h,f),this.onData(this.writer.dtdEntity(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(h,f){var b;return this.openCurrent(),b=new n(this,!0,h,f),this.onData(this.writer.dtdEntity(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(h,f){var b;return this.openCurrent(),b=new c(this,h,f),this.onData(this.writer.dtdNotation(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(h){var f,b,N,S;if(!h.isOpen){if(!this.root&&this.currentLevel===0&&h.type===t.Element&&(this.root=h),b="",h.type===t.Element){this.writerOptions.state=o.OpenTag,b=this.writer.indent(h,this.writerOptions,this.currentLevel)+"<"+h.name,S=h.attribs;for(N in S)G.call(S,N)&&(f=S[N],b+=this.writer.attribute(f,this.writerOptions,this.currentLevel));b+=(h.children?">":"/>")+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=o.InsideTag}else this.writerOptions.state=o.OpenTag,b=this.writer.indent(h,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+h.rootNodeName,h.pubID&&h.sysID?b+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(b+=' SYSTEM "'+h.sysID+'"'),h.children?(b+=" [",this.writerOptions.state=o.InsideTag):(this.writerOptions.state=o.CloseTag,b+=">"),b+=this.writer.endline(h,this.writerOptions,this.currentLevel);return this.onData(b,this.currentLevel),h.isOpen=!0}}closeNode(h){var f;if(!h.isClosed)return f="",this.writerOptions.state=o.CloseTag,h.type===t.Element?f=this.writer.indent(h,this.writerOptions,this.currentLevel)+"</"+h.name+">"+this.writer.endline(h,this.writerOptions,this.currentLevel):f=this.writer.indent(h,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=o.None,this.onData(f,this.currentLevel),h.isClosed=!0}onData(h,f){return this.documentStarted=!0,this.onDataCallback(h,f+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(h){return h==null?"":"node: <"+h+">"}ele(){return this.element(...arguments)}nod(h,f,b){return this.node(h,f,b)}txt(h){return this.text(h)}dat(h){return this.cdata(h)}com(h){return this.comment(h)}ins(h,f){return this.instruction(h,f)}dec(h,f,b){return this.declaration(h,f,b)}dtd(h,f,b){return this.doctype(h,f,b)}e(h,f,b){return this.element(h,f,b)}n(h,f,b){return this.node(h,f,b)}t(h){return this.text(h)}d(h){return this.cdata(h)}c(h){return this.comment(h)}r(h){return this.raw(h)}i(h,f){return this.instruction(h,f)}att(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(h,f){return this.entity(h,f)}pent(h,f){return this.pEntity(h,f)}not(h,f){return this.notation(h,f)}}}).call(Ju)});var o_=V(($u,Hu)=>{(function(){var t,o,e,s,i={}.hasOwnProperty;t=Q(),s=xr(),o=ze(),Hu.exports=e=class extends s{constructor(a,n){super(n),this.stream=a}endline(a,n,c){return a.isLastRootNode&&n.state===o.CloseTag?"":super.endline(a,n,c)}document(a,n){var c,_,d,g,O,w,z,K,q;for(z=a.children,_=d=0,O=z.length;d<O;_=++d)c=z[_],c.isLastRootNode=_===a.children.length-1;for(n=this.filterOptions(n),K=a.children,q=[],g=0,w=K.length;g<w;g++)c=K[g],q.push(this.writeChildNode(c,n,0));return q}cdata(a,n,c){return this.stream.write(super.cdata(a,n,c))}comment(a,n,c){return this.stream.write(super.comment(a,n,c))}declaration(a,n,c){return this.stream.write(super.declaration(a,n,c))}docType(a,n,c){var _,d,g,O;if(c||(c=0),this.openNode(a,n,c),n.state=o.OpenTag,this.stream.write(this.indent(a,n,c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,n,c)),n.state=o.InsideTag,O=a.children,d=0,g=O.length;d<g;d++)_=O[d],this.writeChildNode(_,n,c+1);n.state=o.CloseTag,this.stream.write("]")}return n.state=o.CloseTag,this.stream.write(n.spaceBeforeSlash+">"),this.stream.write(this.endline(a,n,c)),n.state=o.None,this.closeNode(a,n,c)}element(a,n,c){var _,d,g,O,w,z,K,q,v,p,m,l,x,u,G,y;if(c||(c=0),this.openNode(a,n,c),n.state=o.OpenTag,m=this.indent(a,n,c)+"<"+a.name,n.pretty&&n.width>0){K=m.length,x=a.attribs;for(v in x)i.call(x,v)&&(_=x[v],l=this.attribute(_,n,c),d=l.length,K+d>n.width?(y=this.indent(a,n,c+1)+l,m+=this.endline(a,n,c)+y,K=y.length):(y=" "+l,m+=y,K+=y.length))}else{u=a.attribs;for(v in u)i.call(u,v)&&(_=u[v],m+=this.attribute(_,n,c))}if(this.stream.write(m),O=a.children.length,w=O===0?null:a.children[0],O===0||a.children.every(function(h){return(h.type===t.Text||h.type===t.Raw||h.type===t.CData)&&h.value===""}))n.allowEmpty?(this.stream.write(">"),n.state=o.CloseTag,this.stream.write("</"+a.name+">")):(n.state=o.CloseTag,this.stream.write(n.spaceBeforeSlash+"/>"));else if(n.pretty&&O===1&&(w.type===t.Text||w.type===t.Raw||w.type===t.CData)&&w.value!=null)this.stream.write(">"),n.state=o.InsideTag,n.suppressPrettyCount++,p=!0,this.writeChildNode(w,n,c+1),n.suppressPrettyCount--,p=!1,n.state=o.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,n,c)),n.state=o.InsideTag,G=a.children,z=0,q=G.length;z<q;z++)g=G[z],this.writeChildNode(g,n,c+1);n.state=o.CloseTag,this.stream.write(this.indent(a,n,c)+"</"+a.name+">")}return this.stream.write(this.endline(a,n,c)),n.state=o.None,this.closeNode(a,n,c)}processingInstruction(a,n,c){return this.stream.write(super.processingInstruction(a,n,c))}raw(a,n,c){return this.stream.write(super.raw(a,n,c))}text(a,n,c){return this.stream.write(super.text(a,n,c))}dtdAttList(a,n,c){return this.stream.write(super.dtdAttList(a,n,c))}dtdElement(a,n,c){return this.stream.write(super.dtdElement(a,n,c))}dtdEntity(a,n,c){return this.stream.write(super.dtdEntity(a,n,c))}dtdNotation(a,n,c){return this.stream.write(super.dtdNotation(a,n,c))}}}).call($u)});var e_=V((t_,at)=>{(function(){var t,o,e,s,i,r,a,n,c;({assign:n,isFunction:c}=Vo()),e=cr(),s=mr(),i=Du(),a=js(),r=o_(),t=Q(),o=ze(),at.exports.create=function(_,d,g,O){var w,z;if(_==null)throw new Error("Root element needs a name.");return O=n({},d,g,O),w=new s(O),z=w.element(_),O.headless||(w.declaration(O),(O.pubID!=null||O.sysID!=null)&&w.dtd(O)),z},at.exports.begin=function(_,d,g){return c(_)&&([d,g]=[_,d],_={}),d?new i(_,d,g):new s(_)},at.exports.stringWriter=function(_){return new a(_)},at.exports.streamWriter=function(_,d){return new r(_,d)},at.exports.implementation=new e,at.exports.nodeType=t,at.exports.writerState=o}).call(t_)});var a_=V(Ke=>{"use strict";var r_=Ke&&Ke.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.build=Sg;var s_=r_(Yl()),pg=r_(e_());function Cg(t){function o(e){return e<10?"0"+e:e}return t.getUTCFullYear()+"-"+o(t.getUTCMonth()+1)+"-"+o(t.getUTCDate())+"T"+o(t.getUTCHours())+":"+o(t.getUTCMinutes())+":"+o(t.getUTCSeconds())+"Z"}var Ng=Object.prototype.toString;function i_(t){let o=Ng.call(t).match(/\[object (.*)\]/);return o&&o[1]}function Sg(t,o){let e={version:"1.0",encoding:"UTF-8"},s={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},i=pg.default.create("plist");return i.dec(e.version,e.encoding,e.standalone),i.dtd(s.pubid,s.sysid),i.att("version","1.0"),gr(t,i),o||(o={}),o.pretty=o.pretty!==!1,i.end(o)}function gr(t,o){let e,s,i,r=i_(t);if(r!=="Undefined")if(Array.isArray(t))for(o=o.ele("array"),s=0;s<t.length;s++)gr(t[s],o);else if(Buffer.isBuffer(t))o.ele("data").raw(t.toString("base64"));else if(r==="Object"){o=o.ele("dict");for(i in t)t.hasOwnProperty(i)&&t[i]!==void 0&&(o.ele("key").txt(i),gr(t[i],o))}else r==="Number"?(e=t%1===0?"integer":"real",o.ele(e).txt(t.toString())):r==="Date"?o.ele("date").txt(Cg(new Date(t))):r==="Boolean"?o.ele(t?"true":"false"):r==="String"?o.ele("string").txt(t):r==="ArrayBuffer"?o.ele("data").raw(s_.default.fromByteArray(t)):t&&t.buffer&&i_(t.buffer)==="ArrayBuffer"&&o.ele("data").raw(s_.default.fromByteArray(new Uint8Array(t.buffer)))}});var ke=V(Yt=>{"use strict";function Fg(t,o,e){if(e===void 0&&(e=Array.prototype),t&&typeof e.find=="function")return e.find.call(t,o);for(var s=0;s<t.length;s++)if(Object.prototype.hasOwnProperty.call(t,s)){var i=t[s];if(o.call(void 0,i,s,t))return i}}function Or(t,o){return o===void 0&&(o=Object),o&&typeof o.freeze=="function"?o.freeze(t):t}function Mg(t,o){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e]);return t}var n_=Or({HTML:"text/html",isHTML:function(t){return t===n_.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),c_=Or({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===c_.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});Yt.assign=Mg;Yt.find=Fg;Yt.freeze=Or;Yt.MIME_TYPE=n_;Yt.NAMESPACE=c_});var br=V(nt=>{var w_=ke(),Eo=w_.find,Ge=w_.NAMESPACE;function Vg(t){return t!==""}function Eg(t){return t?t.split(/[\t\n\f\r ]+/).filter(Vg):[]}function Xg(t,o){return t.hasOwnProperty(o)||(t[o]=!0),t}function l_(t){if(!t)return[];var o=Eg(t);return Object.keys(o.reduce(Xg,{}))}function Yg(t){return function(o){return t&&t.indexOf(o)!==-1}}function be(t,o){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}function uo(t,o){var e=t.prototype;if(!(e instanceof o)){let i=function(){};var s=i;i.prototype=o.prototype,i=new i,be(e,i),t.prototype=e=i}e.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),e.constructor=t)}var _o={},qo=_o.ELEMENT_NODE=1,It=_o.ATTRIBUTE_NODE=2,Rs=_o.TEXT_NODE=3,d_=_o.CDATA_SECTION_NODE=4,y_=_o.ENTITY_REFERENCE_NODE=5,Zg=_o.ENTITY_NODE=6,h_=_o.PROCESSING_INSTRUCTION_NODE=7,f_=_o.COMMENT_NODE=8,z_=_o.DOCUMENT_NODE=9,K_=_o.DOCUMENT_TYPE_NODE=10,Ro=_o.DOCUMENT_FRAGMENT_NODE=11,Ig=_o.NOTATION_NODE=12,io={},$={},Gd=io.INDEX_SIZE_ERR=($[1]="Index size error",1),Wd=io.DOMSTRING_SIZE_ERR=($[2]="DOMString size error",2),lo=io.HIERARCHY_REQUEST_ERR=($[3]="Hierarchy request error",3),bd=io.WRONG_DOCUMENT_ERR=($[4]="Wrong document",4),vd=io.INVALID_CHARACTER_ERR=($[5]="Invalid character",5),qd=io.NO_DATA_ALLOWED_ERR=($[6]="No data allowed",6),pd=io.NO_MODIFICATION_ALLOWED_ERR=($[7]="No modification allowed",7),k_=io.NOT_FOUND_ERR=($[8]="Not found",8),Cd=io.NOT_SUPPORTED_ERR=($[9]="Not supported",9),u_=io.INUSE_ATTRIBUTE_ERR=($[10]="Attribute in use",10),Nd=io.INVALID_STATE_ERR=($[11]="Invalid state",11),Sd=io.SYNTAX_ERR=($[12]="Syntax error",12),Fd=io.INVALID_MODIFICATION_ERR=($[13]="Invalid modification",13),Md=io.NAMESPACE_ERR=($[14]="Invalid namespace",14),Vd=io.INVALID_ACCESS_ERR=($[15]="Invalid access",15);function A(t,o){if(o instanceof Error)var e=o;else e=this,Error.call(this,$[t]),this.message=$[t],Error.captureStackTrace&&Error.captureStackTrace(this,A);return e.code=t,o&&(this.message=this.message+": "+o),e}A.prototype=Error.prototype;be(io,A);function jo(){}jo.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,o){for(var e=[],s=0;s<this.length;s++)Zt(this[s],e,t,o);return e.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function Pt(t,o){this._node=t,this._refresh=o,yr(this)}function yr(t){var o=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==o){var e=t._refresh(t._node);if(V_(t,"length",e.length),!t.$$length||e.length<t.$$length)for(var s=e.length;s in t;s++)Object.prototype.hasOwnProperty.call(t,s)&&delete t[s];be(e,t),t._inc=o}}Pt.prototype.item=function(t){return yr(this),this[t]||null};uo(Pt,jo);function Js(){}function G_(t,o){for(var e=t.length;e--;)if(t[e]===o)return e}function __(t,o,e,s){if(s?o[G_(o,s)]=e:o[o.length++]=e,t){e.ownerElement=t;var i=t.ownerDocument;i&&(s&&v_(i,t,s),Pg(i,t,e))}}function x_(t,o,e){var s=G_(o,e);if(s>=0){for(var i=o.length-1;s<i;)o[s]=o[++s];if(o.length=i,t){var r=t.ownerDocument;r&&(v_(r,t,e),e.ownerElement=null)}}else throw new A(k_,new Error(t.tagName+"@"+e))}Js.prototype={length:0,item:jo.prototype.item,getNamedItem:function(t){for(var o=this.length;o--;){var e=this[o];if(e.nodeName==t)return e}},setNamedItem:function(t){var o=t.ownerElement;if(o&&o!=this._ownerElement)throw new A(u_);var e=this.getNamedItem(t.nodeName);return __(this._ownerElement,this,t,e),e},setNamedItemNS:function(t){var o=t.ownerElement,e;if(o&&o!=this._ownerElement)throw new A(u_);return e=this.getNamedItemNS(t.namespaceURI,t.localName),__(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var o=this.getNamedItem(t);return x_(this._ownerElement,this,o),o},removeNamedItemNS:function(t,o){var e=this.getNamedItemNS(t,o);return x_(this._ownerElement,this,e),e},getNamedItemNS:function(t,o){for(var e=this.length;e--;){var s=this[e];if(s.localName==o&&s.namespaceURI==t)return s}return null}};function W_(){}W_.prototype={hasFeature:function(t,o){return!0},createDocument:function(t,o,e){var s=new ve;if(s.implementation=this,s.childNodes=new jo,s.doctype=e||null,e&&s.appendChild(e),o){var i=s.createElementNS(t,o);s.appendChild(i)}return s},createDocumentType:function(t,o,e){var s=new $s;return s.name=t,s.nodeName=t,s.publicId=o||"",s.systemId=e||"",s}};function L(){}L.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,o){return Bs(this,t,o)},replaceChild:function(t,o){Bs(this,t,o,p_),o&&this.removeChild(o)},removeChild:function(t){return q_(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return dr(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var o=t.nextSibling;o&&o.nodeType==Rs&&t.nodeType==Rs?(this.removeChild(o),t.appendData(o.data)):(t.normalize(),t=o)}},isSupported:function(t,o){return this.ownerDocument.implementation.hasFeature(t,o)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var o=this;o;){var e=o._nsMap;if(e){for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]===t)return s}o=o.nodeType==It?o.ownerDocument:o.parentNode}return null},lookupNamespaceURI:function(t){for(var o=this;o;){var e=o._nsMap;if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t];o=o.nodeType==It?o.ownerDocument:o.parentNode}return null},isDefaultNamespace:function(t){var o=this.lookupPrefix(t);return o==null}};function b_(t){return t=="<"&&"&lt;"||t==">"&&"&gt;"||t=="&"&&"&amp;"||t=='"'&&"&quot;"||"&#"+t.charCodeAt()+";"}be(_o,L);be(_o,L.prototype);function We(t,o){if(o(t))return!0;if(t=t.firstChild)do if(We(t,o))return!0;while(t=t.nextSibling)}function ve(){this.ownerDocument=this}function Pg(t,o,e){t&&t._inc++;var s=e.namespaceURI;s===Ge.XMLNS&&(o._nsMap[e.prefix?e.localName:""]=e.value)}function v_(t,o,e,s){t&&t._inc++;var i=e.namespaceURI;i===Ge.XMLNS&&delete o._nsMap[e.prefix?e.localName:""]}function hr(t,o,e){if(t&&t._inc){t._inc++;var s=o.childNodes;if(e)s[s.length++]=e;else{for(var i=o.firstChild,r=0;i;)s[r++]=i,i=i.nextSibling;s.length=r,delete s[s.length]}}}function q_(t,o){var e=o.previousSibling,s=o.nextSibling;return e?e.nextSibling=s:t.firstChild=s,s?s.previousSibling=e:t.lastChild=e,o.parentNode=null,o.previousSibling=null,o.nextSibling=null,hr(t.ownerDocument,t),o}function Lg(t){return t&&(t.nodeType===L.DOCUMENT_NODE||t.nodeType===L.DOCUMENT_FRAGMENT_NODE||t.nodeType===L.ELEMENT_NODE)}function Tg(t){return t&&(Xo(t)||fr(t)||Jo(t)||t.nodeType===L.DOCUMENT_FRAGMENT_NODE||t.nodeType===L.COMMENT_NODE||t.nodeType===L.PROCESSING_INSTRUCTION_NODE)}function Jo(t){return t&&t.nodeType===L.DOCUMENT_TYPE_NODE}function Xo(t){return t&&t.nodeType===L.ELEMENT_NODE}function fr(t){return t&&t.nodeType===L.TEXT_NODE}function m_(t,o){var e=t.childNodes||[];if(Eo(e,Xo)||Jo(o))return!1;var s=Eo(e,Jo);return!(o&&s&&e.indexOf(s)>e.indexOf(o))}function g_(t,o){var e=t.childNodes||[];function s(r){return Xo(r)&&r!==o}if(Eo(e,s))return!1;var i=Eo(e,Jo);return!(o&&i&&e.indexOf(i)>e.indexOf(o))}function Ug(t,o,e){if(!Lg(t))throw new A(lo,"Unexpected parent node type "+t.nodeType);if(e&&e.parentNode!==t)throw new A(k_,"child not in parent");if(!Tg(o)||Jo(o)&&t.nodeType!==L.DOCUMENT_NODE)throw new A(lo,"Unexpected node type "+o.nodeType+" for parent node type "+t.nodeType)}function Qg(t,o,e){var s=t.childNodes||[],i=o.childNodes||[];if(o.nodeType===L.DOCUMENT_FRAGMENT_NODE){var r=i.filter(Xo);if(r.length>1||Eo(i,fr))throw new A(lo,"More than one element or text in fragment");if(r.length===1&&!m_(t,e))throw new A(lo,"Element in fragment can not be inserted before doctype")}if(Xo(o)&&!m_(t,e))throw new A(lo,"Only one element can be added and only after doctype");if(Jo(o)){if(Eo(s,Jo))throw new A(lo,"Only one doctype is allowed");var a=Eo(s,Xo);if(e&&s.indexOf(a)<s.indexOf(e))throw new A(lo,"Doctype can only be inserted before an element");if(!e&&a)throw new A(lo,"Doctype can not be appended since element is present")}}function p_(t,o,e){var s=t.childNodes||[],i=o.childNodes||[];if(o.nodeType===L.DOCUMENT_FRAGMENT_NODE){var r=i.filter(Xo);if(r.length>1||Eo(i,fr))throw new A(lo,"More than one element or text in fragment");if(r.length===1&&!g_(t,e))throw new A(lo,"Element in fragment can not be inserted before doctype")}if(Xo(o)&&!g_(t,e))throw new A(lo,"Only one element can be added and only after doctype");if(Jo(o)){let c=function(_){return Jo(_)&&_!==e};var n=c;if(Eo(s,c))throw new A(lo,"Only one doctype is allowed");var a=Eo(s,Xo);if(e&&s.indexOf(a)<s.indexOf(e))throw new A(lo,"Doctype can only be inserted before an element")}}function Bs(t,o,e,s){Ug(t,o,e),t.nodeType===L.DOCUMENT_NODE&&(s||Qg)(t,o,e);var i=o.parentNode;if(i&&i.removeChild(o),o.nodeType===Ro){var r=o.firstChild;if(r==null)return o;var a=o.lastChild}else r=a=o;var n=e?e.previousSibling:t.lastChild;r.previousSibling=n,a.nextSibling=e,n?n.nextSibling=r:t.firstChild=r,e==null?t.lastChild=a:e.previousSibling=a;do r.parentNode=t;while(r!==a&&(r=r.nextSibling));return hr(t.ownerDocument||t,t),o.nodeType==Ro&&(o.firstChild=o.lastChild=null),o}function Ag(t,o){return o.parentNode&&o.parentNode.removeChild(o),o.parentNode=t,o.previousSibling=t.lastChild,o.nextSibling=null,o.previousSibling?o.previousSibling.nextSibling=o:t.firstChild=o,t.lastChild=o,hr(t.ownerDocument,t,o),o}ve.prototype={nodeName:"#document",nodeType:z_,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,o){if(t.nodeType==Ro){for(var e=t.firstChild;e;){var s=e.nextSibling;this.insertBefore(e,o),e=s}return t}return Bs(this,t,o),t.ownerDocument=this,this.documentElement===null&&t.nodeType===qo&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),q_(this,t)},replaceChild:function(t,o){Bs(this,t,o,p_),t.ownerDocument=this,o&&this.removeChild(o),Xo(t)&&(this.documentElement=t)},importNode:function(t,o){return M_(this,t,o)},getElementById:function(t){var o=null;return We(this.documentElement,function(e){if(e.nodeType==qo&&e.getAttribute("id")==t)return o=e,!0}),o},getElementsByClassName:function(t){var o=l_(t);return new Pt(this,function(e){var s=[];return o.length>0&&We(e.documentElement,function(i){if(i!==e&&i.nodeType===qo){var r=i.getAttribute("class");if(r){var a=t===r;if(!a){var n=l_(r);a=o.every(Yg(n))}a&&s.push(i)}}}),s})},createElement:function(t){var o=new wt;o.ownerDocument=this,o.nodeName=t,o.tagName=t,o.localName=t,o.childNodes=new jo;var e=o.attributes=new Js;return e._ownerElement=o,o},createDocumentFragment:function(){var t=new Hs;return t.ownerDocument=this,t.childNodes=new jo,t},createTextNode:function(t){var o=new zr;return o.ownerDocument=this,o.appendData(t),o},createComment:function(t){var o=new Kr;return o.ownerDocument=this,o.appendData(t),o},createCDATASection:function(t){var o=new kr;return o.ownerDocument=this,o.appendData(t),o},createProcessingInstruction:function(t,o){var e=new Wr;return e.ownerDocument=this,e.tagName=e.nodeName=e.target=t,e.nodeValue=e.data=o,e},createAttribute:function(t){var o=new Ds;return o.ownerDocument=this,o.name=t,o.nodeName=t,o.localName=t,o.specified=!0,o},createEntityReference:function(t){var o=new Gr;return o.ownerDocument=this,o.nodeName=t,o},createElementNS:function(t,o){var e=new wt,s=o.split(":"),i=e.attributes=new Js;return e.childNodes=new jo,e.ownerDocument=this,e.nodeName=o,e.tagName=o,e.namespaceURI=t,s.length==2?(e.prefix=s[0],e.localName=s[1]):e.localName=o,i._ownerElement=e,e},createAttributeNS:function(t,o){var e=new Ds,s=o.split(":");return e.ownerDocument=this,e.nodeName=o,e.name=o,e.namespaceURI=t,e.specified=!0,s.length==2?(e.prefix=s[0],e.localName=s[1]):e.localName=o,e}};uo(ve,L);function wt(){this._nsMap={}}wt.prototype={nodeType:qo,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var o=this.getAttributeNode(t);return o&&o.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,o){var e=this.ownerDocument.createAttribute(t);e.value=e.nodeValue=""+o,this.setAttributeNode(e)},removeAttribute:function(t){var o=this.getAttributeNode(t);o&&this.removeAttributeNode(o)},appendChild:function(t){return t.nodeType===Ro?this.insertBefore(t,null):Ag(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,o){var e=this.getAttributeNodeNS(t,o);e&&this.removeAttributeNode(e)},hasAttributeNS:function(t,o){return this.getAttributeNodeNS(t,o)!=null},getAttributeNS:function(t,o){var e=this.getAttributeNodeNS(t,o);return e&&e.value||""},setAttributeNS:function(t,o,e){var s=this.ownerDocument.createAttributeNS(t,o);s.value=s.nodeValue=""+e,this.setAttributeNode(s)},getAttributeNodeNS:function(t,o){return this.attributes.getNamedItemNS(t,o)},getElementsByTagName:function(t){return new Pt(this,function(o){var e=[];return We(o,function(s){s!==o&&s.nodeType==qo&&(t==="*"||s.tagName==t)&&e.push(s)}),e})},getElementsByTagNameNS:function(t,o){return new Pt(this,function(e){var s=[];return We(e,function(i){i!==e&&i.nodeType===qo&&(t==="*"||i.namespaceURI===t)&&(o==="*"||i.localName==o)&&s.push(i)}),s})}};ve.prototype.getElementsByTagName=wt.prototype.getElementsByTagName;ve.prototype.getElementsByTagNameNS=wt.prototype.getElementsByTagNameNS;uo(wt,L);function Ds(){}Ds.prototype.nodeType=It;uo(Ds,L);function qe(){}qe.prototype={data:"",substringData:function(t,o){return this.data.substring(t,t+o)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,o){this.replaceData(t,0,o)},appendChild:function(t){throw new Error($[lo])},deleteData:function(t,o){this.replaceData(t,o,"")},replaceData:function(t,o,e){var s=this.data.substring(0,t),i=this.data.substring(t+o);e=s+e+i,this.nodeValue=this.data=e,this.length=e.length}};uo(qe,L);function zr(){}zr.prototype={nodeName:"#text",nodeType:Rs,splitText:function(t){var o=this.data,e=o.substring(t);o=o.substring(0,t),this.data=this.nodeValue=o,this.length=o.length;var s=this.ownerDocument.createTextNode(e);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}};uo(zr,qe);function Kr(){}Kr.prototype={nodeName:"#comment",nodeType:f_};uo(Kr,qe);function kr(){}kr.prototype={nodeName:"#cdata-section",nodeType:d_};uo(kr,qe);function $s(){}$s.prototype.nodeType=K_;uo($s,L);function C_(){}C_.prototype.nodeType=Ig;uo(C_,L);function N_(){}N_.prototype.nodeType=Zg;uo(N_,L);function Gr(){}Gr.prototype.nodeType=y_;uo(Gr,L);function Hs(){}Hs.prototype.nodeName="#document-fragment";Hs.prototype.nodeType=Ro;uo(Hs,L);function Wr(){}Wr.prototype.nodeType=h_;uo(Wr,L);function S_(){}S_.prototype.serializeToString=function(t,o,e){return F_.call(t,o,e)};L.prototype.toString=F_;function F_(t,o){var e=[],s=this.nodeType==9&&this.documentElement||this,i=s.prefix,r=s.namespaceURI;if(r&&i==null){var i=s.lookupPrefix(r);if(i==null)var a=[{namespace:r,prefix:null}]}return Zt(this,e,t,o,a),e.join("")}function O_(t,o,e){var s=t.prefix||"",i=t.namespaceURI;if(!i||s==="xml"&&i===Ge.XML||i===Ge.XMLNS)return!1;for(var r=e.length;r--;){var a=e[r];if(a.prefix===s)return a.namespace!==i}return!0}function wr(t,o,e){t.push(" ",o,'="',e.replace(/[<>&"\t\n\r]/g,b_),'"')}function Zt(t,o,e,s,i){if(i||(i=[]),s)if(t=s(t),t){if(typeof t=="string"){o.push(t);return}}else return;switch(t.nodeType){case qo:var r=t.attributes,a=r.length,v=t.firstChild,n=t.tagName;e=Ge.isHTML(t.namespaceURI)||e;var c=n;if(!e&&!t.prefix&&t.namespaceURI){for(var _,d=0;d<r.length;d++)if(r.item(d).name==="xmlns"){_=r.item(d).value;break}if(!_)for(var g=i.length-1;g>=0;g--){var O=i[g];if(O.prefix===""&&O.namespace===t.namespaceURI){_=O.namespace;break}}if(_!==t.namespaceURI)for(var g=i.length-1;g>=0;g--){var O=i[g];if(O.namespace===t.namespaceURI){O.prefix&&(c=O.prefix+":"+n);break}}}o.push("<",c);for(var w=0;w<a;w++){var z=r.item(w);z.prefix=="xmlns"?i.push({prefix:z.localName,namespace:z.value}):z.nodeName=="xmlns"&&i.push({prefix:"",namespace:z.value})}for(var w=0;w<a;w++){var z=r.item(w);if(O_(z,e,i)){var K=z.prefix||"",q=z.namespaceURI;wr(o,K?"xmlns:"+K:"xmlns",q),i.push({prefix:K,namespace:q})}Zt(z,o,e,s,i)}if(n===c&&O_(t,e,i)){var K=t.prefix||"",q=t.namespaceURI;wr(o,K?"xmlns:"+K:"xmlns",q),i.push({prefix:K,namespace:q})}if(v||e&&!/^(?:meta|link|img|br|hr|input)$/i.test(n)){if(o.push(">"),e&&/^script$/i.test(n))for(;v;)v.data?o.push(v.data):Zt(v,o,e,s,i.slice()),v=v.nextSibling;else for(;v;)Zt(v,o,e,s,i.slice()),v=v.nextSibling;o.push("</",c,">")}else o.push("/>");return;case z_:case Ro:for(var v=t.firstChild;v;)Zt(v,o,e,s,i.slice()),v=v.nextSibling;return;case It:return wr(o,t.name,t.value);case Rs:return o.push(t.data.replace(/[<&>]/g,b_));case d_:return o.push("<![CDATA[",t.data,"]]>");case f_:return o.push("<!--",t.data,"-->");case K_:var p=t.publicId,m=t.systemId;if(o.push("<!DOCTYPE ",t.name),p)o.push(" PUBLIC ",p),m&&m!="."&&o.push(" ",m),o.push(">");else if(m&&m!=".")o.push(" SYSTEM ",m,">");else{var l=t.internalSubset;l&&o.push(" [",l,"]"),o.push(">")}return;case h_:return o.push("<?",t.target," ",t.data,"?>");case y_:return o.push("&",t.nodeName,";");default:o.push("??",t.nodeName)}}function M_(t,o,e){var s;switch(o.nodeType){case qo:s=o.cloneNode(!1),s.ownerDocument=t;case Ro:break;case It:e=!0;break}if(s||(s=o.cloneNode(!1)),s.ownerDocument=t,s.parentNode=null,e)for(var i=o.firstChild;i;)s.appendChild(M_(t,i,e)),i=i.nextSibling;return s}function dr(t,o,e){var s=new o.constructor;for(var i in o)if(Object.prototype.hasOwnProperty.call(o,i)){var r=o[i];typeof r!="object"&&r!=s[i]&&(s[i]=r)}switch(o.childNodes&&(s.childNodes=new jo),s.ownerDocument=t,s.nodeType){case qo:var a=o.attributes,n=s.attributes=new Js,c=a.length;n._ownerElement=s;for(var _=0;_<c;_++)s.setAttributeNode(dr(t,a.item(_),!0));break;case It:e=!0}if(e)for(var d=o.firstChild;d;)s.appendChild(dr(t,d,e)),d=d.nextSibling;return s}function V_(t,o,e){t[o]=e}try{if(Object.defineProperty){let t=function(o){switch(o.nodeType){case qo:case Ro:var e=[];for(o=o.firstChild;o;)o.nodeType!==7&&o.nodeType!==8&&e.push(t(o)),o=o.nextSibling;return e.join("");default:return o.nodeValue}};jg=t,Object.defineProperty(Pt.prototype,"length",{get:function(){return yr(this),this.$$length}}),Object.defineProperty(L.prototype,"textContent",{get:function(){return t(this)},set:function(o){switch(this.nodeType){case qo:case Ro:for(;this.firstChild;)this.removeChild(this.firstChild);(o||String(o))&&this.appendChild(this.ownerDocument.createTextNode(o));break;default:this.data=o,this.value=o,this.nodeValue=o}}}),V_=function(o,e,s){o["$$"+e]=s}}}catch{}var jg;nt.DocumentType=$s;nt.DOMException=A;nt.DOMImplementation=W_;nt.Element=wt;nt.Node=L;nt.NodeList=jo;nt.XMLSerializer=S_});var X_=V(pe=>{"use strict";var E_=ke().freeze;pe.XML_ENTITIES=E_({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});pe.HTML_ENTITIES=E_({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
14
- `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"});pe.entityMap=pe.HTML_ENTITIES});var Q_=V(qr=>{var Fe=ke().NAMESPACE,vr=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Y_=new RegExp("[\\-\\.0-9"+vr.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Z_=new RegExp("^"+vr.source+Y_.source+"*(?::"+vr.source+Y_.source+"*)?$"),Ce=0,ct=1,Lt=2,Ne=3,Tt=4,Ut=5,Se=6,oi=7;function Qt(t,o){this.message=t,this.locator=o,Error.captureStackTrace&&Error.captureStackTrace(this,Qt)}Qt.prototype=new Error;Qt.prototype.name=Qt.name;function L_(){}L_.prototype={parse:function(t,o,e){var s=this.domBuilder;s.startDocument(),T_(o,o={}),Rg(t,o,e,s,this.errorHandler),s.endDocument()}};function Rg(t,o,e,s,i){function r(M){if(M>65535){M-=65536;var X=55296+(M>>10),Z=56320+(M&1023);return String.fromCharCode(X,Z)}else return String.fromCharCode(M)}function a(M){var X=M.slice(1,-1);return Object.hasOwnProperty.call(e,X)?e[X]:X.charAt(0)==="#"?r(parseInt(X.substr(1).replace("x","0x"))):(i.error("entity not found:"+M),M)}function n(M){if(M>K){var X=t.substring(K,M).replace(/&#?\w+;/g,a);O&&c(K),s.characters(X,0,M-K),K=M}}function c(M,X){for(;M>=d&&(X=g.exec(t));)_=X.index,d=_+X[0].length,O.lineNumber++;O.columnNumber=M-_+1}for(var _=0,d=0,g=/.*(?:\r\n?|\n)|.*$/g,O=s.locator,w=[{currentNSMap:o}],z={},K=0;;){try{var q=t.indexOf("<",K);if(q<0){if(!t.substr(K).match(/^\s*$/)){var v=s.doc,p=v.createTextNode(t.substr(K));v.appendChild(p),s.currentElement=p}return}switch(q>K&&n(q),t.charAt(q+1)){case"/":var b=t.indexOf(">",q+3),m=t.substring(q+2,b).replace(/[ \t\n\r]+$/g,""),l=w.pop();b<0?(m=t.substring(q+2).replace(/[\s<].*/,""),i.error("end tag name: "+m+" is not complete:"+l.tagName),b=q+1+m.length):m.match(/\s</)&&(m=m.replace(/[\s<].*/,""),i.error("end tag name: "+m+" maybe not complete"),b=q+1+m.length);var x=l.localNSMap,u=l.tagName==m,G=u||l.tagName&&l.tagName.toLowerCase()==m.toLowerCase();if(G){if(s.endElement(l.uri,l.localName,m),x)for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&s.endPrefixMapping(y);u||i.fatalError("end tag name: "+m+" is not match the current start tagName:"+l.tagName)}else w.push(l);b++;break;case"?":O&&c(q),b=Hg(t,q,s);break;case"!":O&&c(q),b=$g(t,q,s,i);break;default:O&&c(q);var h=new U_,f=w[w.length-1].currentNSMap,b=Jg(t,q,h,f,a,i),N=h.length;if(!h.closed&&Dg(t,b,h.tagName,z)&&(h.closed=!0,e.nbsp||i.warning("unclosed xml attribute")),O&&N){for(var S=I_(O,{}),E=0;E<N;E++){var Y=h[E];c(Y.offset),Y.locator=I_(O,{})}s.locator=S,P_(h,s,f)&&w.push(h),s.locator=O}else P_(h,s,f)&&w.push(h);Fe.isHTML(h.uri)&&!h.closed?b=Bg(t,b,h.tagName,a,s):b++}}catch(M){if(M instanceof Qt)throw M;i.error("element parse error: "+M),b=-1}b>K?K=b:n(Math.max(q,K)+1)}}function I_(t,o){return o.lineNumber=t.lineNumber,o.columnNumber=t.columnNumber,o}function Jg(t,o,e,s,i,r){function a(w,z,K){e.attributeNames.hasOwnProperty(w)&&r.fatalError("Attribute "+w+" redefined"),e.addValue(w,z.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),K)}for(var n,c,_=++o,d=Ce;;){var g=t.charAt(_);switch(g){case"=":if(d===ct)n=t.slice(o,_),d=Ne;else if(d===Lt)d=Ne;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(d===Ne||d===ct)if(d===ct&&(r.warning('attribute value must after "="'),n=t.slice(o,_)),o=_+1,_=t.indexOf(g,o),_>0)c=t.slice(o,_),a(n,c,o-1),d=Ut;else throw new Error("attribute value no end '"+g+"' match");else if(d==Tt)c=t.slice(o,_),a(n,c,o),r.warning('attribute "'+n+'" missed start quot('+g+")!!"),o=_+1,d=Ut;else throw new Error('attribute value must after "="');break;case"/":switch(d){case Ce:e.setTagName(t.slice(o,_));case Ut:case Se:case oi:d=oi,e.closed=!0;case Tt:case ct:break;case Lt:e.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return r.error("unexpected end of input"),d==Ce&&e.setTagName(t.slice(o,_)),_;case">":switch(d){case Ce:e.setTagName(t.slice(o,_));case Ut:case Se:case oi:break;case Tt:case ct:c=t.slice(o,_),c.slice(-1)==="/"&&(e.closed=!0,c=c.slice(0,-1));case Lt:d===Lt&&(c=n),d==Tt?(r.warning('attribute "'+c+'" missed quot(")!'),a(n,c,o)):((!Fe.isHTML(s[""])||!c.match(/^(?:disabled|checked|selected)$/i))&&r.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),a(c,c,o));break;case Ne:throw new Error("attribute value missed!!")}return _;case"\x80":g=" ";default:if(g<=" ")switch(d){case Ce:e.setTagName(t.slice(o,_)),d=Se;break;case ct:n=t.slice(o,_),d=Lt;break;case Tt:var c=t.slice(o,_);r.warning('attribute "'+c+'" missed quot(")!!'),a(n,c,o);case Ut:d=Se;break}else switch(d){case Lt:var O=e.tagName;(!Fe.isHTML(s[""])||!n.match(/^(?:disabled|checked|selected)$/i))&&r.warning('attribute "'+n+'" missed value!! "'+n+'" instead2!!'),a(n,n,o),o=_,d=ct;break;case Ut:r.warning('attribute space is required"'+n+'"!!');case Se:d=ct,o=_;break;case Ne:d=Tt,o=_;break;case oi:throw new Error("elements closed character '/' and '>' must be connected to")}}_++}}function P_(t,o,e){for(var s=t.tagName,i=null,g=t.length;g--;){var r=t[g],a=r.qName,n=r.value,O=a.indexOf(":");if(O>0)var c=r.prefix=a.slice(0,O),_=a.slice(O+1),d=c==="xmlns"&&_;else _=a,c=null,d=a==="xmlns"&&"";r.localName=_,d!==!1&&(i==null&&(i={},T_(e,e={})),e[d]=i[d]=n,r.uri=Fe.XMLNS,o.startPrefixMapping(d,n))}for(var g=t.length;g--;){r=t[g];var c=r.prefix;c&&(c==="xml"&&(r.uri=Fe.XML),c!=="xmlns"&&(r.uri=e[c||""]))}var O=s.indexOf(":");O>0?(c=t.prefix=s.slice(0,O),_=t.localName=s.slice(O+1)):(c=null,_=t.localName=s);var w=t.uri=e[c||""];if(o.startElement(w,_,s,t),t.closed){if(o.endElement(w,_,s),i)for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&o.endPrefixMapping(c)}else return t.currentNSMap=e,t.localNSMap=i,!0}function Bg(t,o,e,s,i){if(/^(?:script|textarea)$/i.test(e)){var r=t.indexOf("</"+e+">",o),a=t.substring(o+1,r);if(/[&<]/.test(a))return/^script$/i.test(e)?(i.characters(a,0,a.length),r):(a=a.replace(/&#?\w+;/g,s),i.characters(a,0,a.length),r)}return o+1}function Dg(t,o,e,s){var i=s[e];return i==null&&(i=t.lastIndexOf("</"+e+">"),i<o&&(i=t.lastIndexOf("</"+e)),s[e]=i),i<o}function T_(t,o){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}function $g(t,o,e,s){var i=t.charAt(o+2);switch(i){case"-":if(t.charAt(o+3)==="-"){var r=t.indexOf("-->",o+4);return r>o?(e.comment(t,o+4,r-o-4),r+3):(s.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(o+3,6)=="CDATA["){var r=t.indexOf("]]>",o+9);return e.startCDATA(),e.characters(t,o+9,r-o-9),e.endCDATA(),r+3}var a=oO(t,o),n=a.length;if(n>1&&/!doctype/i.test(a[0][0])){var c=a[1][0],_=!1,d=!1;n>3&&(/^public$/i.test(a[2][0])?(_=a[3][0],d=n>4&&a[4][0]):/^system$/i.test(a[2][0])&&(d=a[3][0]));var g=a[n-1];return e.startDTD(c,_,d),e.endDTD(),g.index+g[0].length}}return-1}function Hg(t,o,e){var s=t.indexOf("?>",o);if(s){var i=t.substring(o,s).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){var r=i[0].length;return e.processingInstruction(i[1],i[2]),s+2}else return-1}return-1}function U_(){this.attributeNames={}}U_.prototype={setTagName:function(t){if(!Z_.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,o,e){if(!Z_.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:o,offset:e}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function oO(t,o){var e,s=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=o,i.exec(t);e=i.exec(t);)if(s.push(e),e[1])return s}qr.XMLReader=L_;qr.ParseError=Qt});var $_=V(ei=>{var tO=ke(),eO=br(),A_=X_(),J_=Q_(),sO=eO.DOMImplementation,j_=tO.NAMESPACE,iO=J_.ParseError,rO=J_.XMLReader;function B_(t){return t.replace(/\r[\n\u0085]/g,`
9
+ Actual: `+W.attribValue);else{var P=W.tag,j=W.tags[W.tags.length-1]||W;P.ns===j.ns&&(P.ns=Object.create(j.ns)),P.ns[C]=W.attribValue}W.attribList.push([W.attribName,W.attribValue])}else W.tag.attributes[W.attribName]=W.attribValue,b(W,"onattribute",{name:W.attribName,value:W.attribValue});W.attribName=W.attribValue=""}function to(W,k){if(W.opt.xmlns){var F=W.tag,C=Z(W.tagName);F.prefix=C.prefix,F.local=C.local,F.uri=F.ns[C.prefix]||"",F.prefix&&!F.uri&&(M(W,"Unbound namespace prefix: "+JSON.stringify(W.tagName)),F.uri=C.prefix);var P=W.tags[W.tags.length-1]||W;F.ns&&P.ns!==F.ns&&Object.keys(F.ns).forEach(function(Er){b(W,"onopennamespace",{prefix:Er,uri:F.ns[Er]})});for(var j=0,R=W.attribList.length;j<R;j++){var co=W.attribList[j],yo=co[0],zt=co[1],H=Z(yo,!0),Io=H.prefix,xx=H.local,Vr=Io===""?"":F.ns[Io]||"",li={name:yo,value:zt,prefix:Io,local:xx,uri:Vr};Io&&Io!=="xmlns"&&!Vr&&(M(W,"Unbound namespace prefix: "+JSON.stringify(Io)),li.uri=Io),W.tag.attributes[yo]=li,b(W,"onattribute",li)}W.attribList.length=0}W.tag.isSelfClosing=!!k,W.sawRoot=!0,W.tags.push(W.tag),b(W,"onopentag",W.tag),k||(!W.noscript&&W.tagName.toLowerCase()==="script"?W.state=y.SCRIPT:W.state=y.TEXT,W.tag=null,W.tagName=""),W.attribName=W.attribValue="",W.attribList.length=0}function $o(W){if(!W.tagName){M(W,"Weird empty close tag."),W.textNode+="</>",W.state=y.TEXT;return}if(W.script){if(W.tagName!=="script"){W.script+="</"+W.tagName+">",W.tagName="",W.state=y.SCRIPT;return}b(W,"onscript",W.script),W.script=""}var k=W.tags.length,F=W.tagName;W.strict||(F=F[W.looseCase]());for(var C=F;k--;){var P=W.tags[k];if(P.name!==C)M(W,"Unexpected close tag");else break}if(k<0){M(W,"Unmatched closing tag: "+W.tagName),W.textNode+="</"+W.tagName+">",W.state=y.TEXT;return}W.tagName=F;for(var j=W.tags.length;j-- >k;){var R=W.tag=W.tags.pop();W.tagName=W.tag.name,b(W,"onclosetag",W.tagName);var co={};for(var yo in R.ns)co[yo]=R.ns[yo];var zt=W.tags[W.tags.length-1]||W;W.opt.xmlns&&R.ns!==zt.ns&&Object.keys(R.ns).forEach(function(H){var Io=R.ns[H];b(W,"onclosenamespace",{prefix:H,uri:Io})})}k===0&&(W.closedRoot=!0),W.tagName=W.attribValue=W.attribName="",W.attribList.length=0,W.state=y.TEXT}function yt(W){var k=W.entity,F=k.toLowerCase(),C,P="";return W.ENTITIES[k]?W.ENTITIES[k]:W.ENTITIES[F]?W.ENTITIES[F]:(k=F,k.charAt(0)==="#"&&(k.charAt(1)==="x"?(k=k.slice(2),C=parseInt(k,16),P=C.toString(16)):(k=k.slice(1),C=parseInt(k,10),P=C.toString(10))),k=k.replace(/^0+/,""),isNaN(C)||P.toLowerCase()!==k?(M(W,"Invalid character entity"),"&"+W.entity+";"):String.fromCodePoint(C))}function ht(W,k){k==="<"?(W.state=y.OPEN_WAKA,W.startTagPosition=W.position):m(k)||(M(W,"Non-whitespace before first tag."),W.textNode=k,W.state=y.TEXT)}function Zo(W,k){var F="";return k<W.length&&(F=W.charAt(k)),F}function ft(W){var k=this;if(this.error)throw this.error;if(k.closed)return E(k,"Cannot write after close. Assign an onready handler.");if(W===null)return Y(k);typeof W=="object"&&(W=W.toString());for(var F=0,C="";C=Zo(W,F++),k.c=C,!!C;)switch(k.trackPosition&&(k.position++,C===`
10
+ `?(k.line++,k.column=0):k.column++),k.state){case y.BEGIN:if(k.state=y.BEGIN_WHITESPACE,C==="\uFEFF")continue;ht(k,C);continue;case y.BEGIN_WHITESPACE:ht(k,C);continue;case y.TEXT:if(k.sawRoot&&!k.closedRoot){for(var P=F-1;C&&C!=="<"&&C!=="&";)C=Zo(W,F++),C&&k.trackPosition&&(k.position++,C===`
11
+ `?(k.line++,k.column=0):k.column++);k.textNode+=W.substring(P,F-1)}C==="<"&&!(k.sawRoot&&k.closedRoot&&!k.strict)?(k.state=y.OPEN_WAKA,k.startTagPosition=k.position):(!m(C)&&(!k.sawRoot||k.closedRoot)&&M(k,"Text data outside of root node."),C==="&"?k.state=y.TEXT_ENTITY:k.textNode+=C);continue;case y.SCRIPT:C==="<"?k.state=y.SCRIPT_ENDING:k.script+=C;continue;case y.SCRIPT_ENDING:C==="/"?k.state=y.CLOSE_TAG:(k.script+="<"+C,k.state=y.SCRIPT);continue;case y.OPEN_WAKA:if(C==="!")k.state=y.SGML_DECL,k.sgmlDecl="";else if(!m(C))if(u(K,C))k.state=y.OPEN_TAG,k.tagName=C;else if(C==="/")k.state=y.CLOSE_TAG,k.tagName="";else if(C==="?")k.state=y.PROC_INST,k.procInstName=k.procInstBody="";else{if(M(k,"Unencoded <"),k.startTagPosition+1<k.position){var j=k.position-k.startTagPosition;C=new Array(j).join(" ")+C}k.textNode+="<"+C,k.state=y.TEXT}continue;case y.SGML_DECL:(k.sgmlDecl+C).toUpperCase()===d?(b(k,"onopencdata"),k.state=y.CDATA,k.sgmlDecl="",k.cdata=""):k.sgmlDecl+C==="--"?(k.state=y.COMMENT,k.comment="",k.sgmlDecl=""):(k.sgmlDecl+C).toUpperCase()===O?(k.state=y.DOCTYPE,(k.doctype||k.sawRoot)&&M(k,"Inappropriately located doctype declaration"),k.doctype="",k.sgmlDecl=""):C===">"?(b(k,"onsgmldeclaration",k.sgmlDecl),k.sgmlDecl="",k.state=y.TEXT):(l(C)&&(k.state=y.SGML_DECL_QUOTED),k.sgmlDecl+=C);continue;case y.SGML_DECL_QUOTED:C===k.q&&(k.state=y.SGML_DECL,k.q=""),k.sgmlDecl+=C;continue;case y.DOCTYPE:C===">"?(k.state=y.TEXT,b(k,"ondoctype",k.doctype),k.doctype=!0):(k.doctype+=C,C==="["?k.state=y.DOCTYPE_DTD:l(C)&&(k.state=y.DOCTYPE_QUOTED,k.q=C));continue;case y.DOCTYPE_QUOTED:k.doctype+=C,C===k.q&&(k.q="",k.state=y.DOCTYPE);continue;case y.DOCTYPE_DTD:k.doctype+=C,C==="]"?k.state=y.DOCTYPE:l(C)&&(k.state=y.DOCTYPE_DTD_QUOTED,k.q=C);continue;case y.DOCTYPE_DTD_QUOTED:k.doctype+=C,C===k.q&&(k.state=y.DOCTYPE_DTD,k.q="");continue;case y.COMMENT:C==="-"?k.state=y.COMMENT_ENDING:k.comment+=C;continue;case y.COMMENT_ENDING:C==="-"?(k.state=y.COMMENT_ENDED,k.comment=S(k.opt,k.comment),k.comment&&b(k,"oncomment",k.comment),k.comment=""):(k.comment+="-"+C,k.state=y.COMMENT);continue;case y.COMMENT_ENDED:C!==">"?(M(k,"Malformed comment"),k.comment+="--"+C,k.state=y.COMMENT):k.state=y.TEXT;continue;case y.CDATA:C==="]"?k.state=y.CDATA_ENDING:k.cdata+=C;continue;case y.CDATA_ENDING:C==="]"?k.state=y.CDATA_ENDING_2:(k.cdata+="]"+C,k.state=y.CDATA);continue;case y.CDATA_ENDING_2:C===">"?(k.cdata&&b(k,"oncdata",k.cdata),b(k,"onclosecdata"),k.cdata="",k.state=y.TEXT):C==="]"?k.cdata+="]":(k.cdata+="]]"+C,k.state=y.CDATA);continue;case y.PROC_INST:C==="?"?k.state=y.PROC_INST_ENDING:m(C)?k.state=y.PROC_INST_BODY:k.procInstName+=C;continue;case y.PROC_INST_BODY:if(!k.procInstBody&&m(C))continue;C==="?"?k.state=y.PROC_INST_ENDING:k.procInstBody+=C;continue;case y.PROC_INST_ENDING:C===">"?(b(k,"onprocessinginstruction",{name:k.procInstName,body:k.procInstBody}),k.procInstName=k.procInstBody="",k.state=y.TEXT):(k.procInstBody+="?"+C,k.state=y.PROC_INST_BODY);continue;case y.OPEN_TAG:u(q,C)?k.tagName+=C:(X(k),C===">"?to(k):C==="/"?k.state=y.OPEN_TAG_SLASH:(m(C)||M(k,"Invalid character in tag name"),k.state=y.ATTRIB));continue;case y.OPEN_TAG_SLASH:C===">"?(to(k,!0),$o(k)):(M(k,"Forward-slash in opening tag not followed by >"),k.state=y.ATTRIB);continue;case y.ATTRIB:if(m(C))continue;C===">"?to(k):C==="/"?k.state=y.OPEN_TAG_SLASH:u(K,C)?(k.attribName=C,k.attribValue="",k.state=y.ATTRIB_NAME):M(k,"Invalid attribute name");continue;case y.ATTRIB_NAME:C==="="?k.state=y.ATTRIB_VALUE:C===">"?(M(k,"Attribute without value"),k.attribValue=k.attribName,wo(k),to(k)):m(C)?k.state=y.ATTRIB_NAME_SAW_WHITE:u(q,C)?k.attribName+=C:M(k,"Invalid attribute name");continue;case y.ATTRIB_NAME_SAW_WHITE:if(C==="=")k.state=y.ATTRIB_VALUE;else{if(m(C))continue;M(k,"Attribute without value"),k.tag.attributes[k.attribName]="",k.attribValue="",b(k,"onattribute",{name:k.attribName,value:""}),k.attribName="",C===">"?to(k):u(K,C)?(k.attribName=C,k.state=y.ATTRIB_NAME):(M(k,"Invalid attribute name"),k.state=y.ATTRIB)}continue;case y.ATTRIB_VALUE:if(m(C))continue;l(C)?(k.q=C,k.state=y.ATTRIB_VALUE_QUOTED):(M(k,"Unquoted attribute value"),k.state=y.ATTRIB_VALUE_UNQUOTED,k.attribValue=C);continue;case y.ATTRIB_VALUE_QUOTED:if(C!==k.q){C==="&"?k.state=y.ATTRIB_VALUE_ENTITY_Q:k.attribValue+=C;continue}wo(k),k.q="",k.state=y.ATTRIB_VALUE_CLOSED;continue;case y.ATTRIB_VALUE_CLOSED:m(C)?k.state=y.ATTRIB:C===">"?to(k):C==="/"?k.state=y.OPEN_TAG_SLASH:u(K,C)?(M(k,"No whitespace between attributes"),k.attribName=C,k.attribValue="",k.state=y.ATTRIB_NAME):M(k,"Invalid attribute name");continue;case y.ATTRIB_VALUE_UNQUOTED:if(!x(C)){C==="&"?k.state=y.ATTRIB_VALUE_ENTITY_U:k.attribValue+=C;continue}wo(k),C===">"?to(k):k.state=y.ATTRIB;continue;case y.CLOSE_TAG:if(k.tagName)C===">"?$o(k):u(q,C)?k.tagName+=C:k.script?(k.script+="</"+k.tagName,k.tagName="",k.state=y.SCRIPT):(m(C)||M(k,"Invalid tagname in closing tag"),k.state=y.CLOSE_TAG_SAW_WHITE);else{if(m(C))continue;G(K,C)?k.script?(k.script+="</"+C,k.state=y.SCRIPT):M(k,"Invalid tagname in closing tag."):k.tagName=C}continue;case y.CLOSE_TAG_SAW_WHITE:if(m(C))continue;C===">"?$o(k):M(k,"Invalid characters in closing tag");continue;case y.TEXT_ENTITY:case y.ATTRIB_VALUE_ENTITY_Q:case y.ATTRIB_VALUE_ENTITY_U:var R,co;switch(k.state){case y.TEXT_ENTITY:R=y.TEXT,co="textNode";break;case y.ATTRIB_VALUE_ENTITY_Q:R=y.ATTRIB_VALUE_QUOTED,co="attribValue";break;case y.ATTRIB_VALUE_ENTITY_U:R=y.ATTRIB_VALUE_UNQUOTED,co="attribValue";break}if(C===";")if(k.opt.unparsedEntities){var yo=yt(k);k.entity="",k.state=R,k.write(yo)}else k[co]+=yt(k),k.entity="",k.state=R;else u(k.entity.length?p:v,C)?k.entity+=C:(M(k,"Invalid character in entity name"),k[co]+="&"+k.entity+C,k.entity="",k.state=R);continue;default:throw new Error(k,"Unknown state: "+k.state)}return k.position>=k.bufferCheckPosition&&s(k),k}String.fromCodePoint||function(){var W=String.fromCharCode,k=Math.floor,F=function(){var C=16384,P=[],j,R,co=-1,yo=arguments.length;if(!yo)return"";for(var zt="";++co<yo;){var H=Number(arguments[co]);if(!isFinite(H)||H<0||H>1114111||k(H)!==H)throw RangeError("Invalid code point: "+H);H<=65535?P.push(H):(H-=65536,j=(H>>10)+55296,R=H%1024+56320,P.push(j,R)),(co+1===yo||P.length>C)&&(zt+=W.apply(null,P),P.length=0)}return zt};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:F,configurable:!0,writable:!0}):String.fromCodePoint=F}()})(typeof os>"u"?os.sax={}:os)});var nn=V(fi=>{(function(){"use strict";fi.stripBOM=function(t){return t[0]==="\uFEFF"?t.substring(1):t}}).call(fi)});var zi=V(ut=>{(function(){"use strict";var t;t=new RegExp(/(?!xmlns)^.*:/),ut.normalize=function(o){return o.toLowerCase()},ut.firstCharLowerCase=function(o){return o.charAt(0).toLowerCase()+o.slice(1)},ut.stripPrefix=function(o){return o.replace(t,"")},ut.parseNumbers=function(o){return isNaN(o)||(o=o%1===0?parseInt(o,10):parseFloat(o)),o},ut.parseBooleans=function(o){return/^(?:true|false)$/i.test(o)&&(o=o.toLowerCase()==="true"),o}}).call(ut)});var cn=V(Po=>{(function(){"use strict";var t,o,e,s,i,r,a,n,c,_=function(g,w){return function(){return g.apply(w,arguments)}},d=function(g,w){for(var z in w)O.call(w,z)&&(g[z]=w[z]);function K(){this.constructor=g}return K.prototype=w.prototype,g.prototype=new K,g.__super__=w.prototype,g},O={}.hasOwnProperty;n=an(),s=require("events"),t=nn(),a=zi(),c=require("timers").setImmediate,o=Ze().defaults,i=function(g){return typeof g=="object"&&g!=null&&Object.keys(g).length===0},r=function(g,w,z){var K,q,v;for(K=0,q=g.length;K<q;K++)v=g[K],w=v(w,z);return w},e=function(g,w,z){var K;return K=Object.create(null),K.value=z,K.writable=!0,K.enumerable=!0,K.configurable=!0,Object.defineProperty(g,w,K)},Po.Parser=function(g){d(w,g);function w(z){this.parseStringPromise=_(this.parseStringPromise,this),this.parseString=_(this.parseString,this),this.reset=_(this.reset,this),this.assignOrPush=_(this.assignOrPush,this),this.processAsync=_(this.processAsync,this);var K,q,v;if(!(this instanceof Po.Parser))return new Po.Parser(z);this.options={},q=o["0.2"];for(K in q)O.call(q,K)&&(v=q[K],this.options[K]=v);for(K in z)O.call(z,K)&&(v=z[K],this.options[K]=v);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(a.normalize)),this.reset()}return w.prototype.processAsync=function(){var z,K;try{return this.remaining.length<=this.options.chunkSize?(z=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(z),this.saxParser.close()):(z=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(z),c(this.processAsync))}catch(q){if(K=q,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(K)}},w.prototype.assignOrPush=function(z,K,q){return K in z?(z[K]instanceof Array||e(z,K,[z[K]]),z[K].push(q)):this.options.explicitArray?e(z,K,[q]):e(z,K,q)},w.prototype.reset=function(){var z,K,q,v;return this.removeAllListeners(),this.saxParser=n.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(p){return function(m){if(p.saxParser.resume(),!p.saxParser.errThrown)return p.saxParser.errThrown=!0,p.emit("error",m)}}(this),this.saxParser.onend=function(p){return function(){if(!p.saxParser.ended)return p.saxParser.ended=!0,p.emit("end",p.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,v=[],z=this.options.attrkey,K=this.options.charkey,this.saxParser.onopentag=function(p){return function(m){var l,x,u,G,y;if(u={},u[K]="",!p.options.ignoreAttrs){y=m.attributes;for(l in y)O.call(y,l)&&(!(z in u)&&!p.options.mergeAttrs&&(u[z]={}),x=p.options.attrValueProcessors?r(p.options.attrValueProcessors,m.attributes[l],l):m.attributes[l],G=p.options.attrNameProcessors?r(p.options.attrNameProcessors,l):l,p.options.mergeAttrs?p.assignOrPush(u,G,x):e(u[z],G,x))}return u["#name"]=p.options.tagNameProcessors?r(p.options.tagNameProcessors,m.name):m.name,p.options.xmlns&&(u[p.options.xmlnskey]={uri:m.uri,local:m.local}),v.push(u)}}(this),this.saxParser.onclosetag=function(p){return function(){var m,l,x,u,G,y,h,f,b,N;if(y=v.pop(),G=y["#name"],(!p.options.explicitChildren||!p.options.preserveChildrenOrder)&&delete y["#name"],y.cdata===!0&&(m=y.cdata,delete y.cdata),b=v[v.length-1],y[K].match(/^\s*$/)&&!m?(l=y[K],delete y[K]):(p.options.trim&&(y[K]=y[K].trim()),p.options.normalize&&(y[K]=y[K].replace(/\s{2,}/g," ").trim()),y[K]=p.options.valueProcessors?r(p.options.valueProcessors,y[K],G):y[K],Object.keys(y).length===1&&K in y&&!p.EXPLICIT_CHARKEY&&(y=y[K])),i(y)&&(typeof p.options.emptyTag=="function"?y=p.options.emptyTag():y=p.options.emptyTag!==""?p.options.emptyTag:l),p.options.validator!=null&&(N="/"+function(){var S,E,Y;for(Y=[],S=0,E=v.length;S<E;S++)u=v[S],Y.push(u["#name"]);return Y}().concat(G).join("/"),function(){var S;try{return y=p.options.validator(N,b&&b[G],y)}catch(E){return S=E,p.emit("error",S)}}()),p.options.explicitChildren&&!p.options.mergeAttrs&&typeof y=="object"){if(!p.options.preserveChildrenOrder)u={},p.options.attrkey in y&&(u[p.options.attrkey]=y[p.options.attrkey],delete y[p.options.attrkey]),!p.options.charsAsChildren&&p.options.charkey in y&&(u[p.options.charkey]=y[p.options.charkey],delete y[p.options.charkey]),Object.getOwnPropertyNames(y).length>0&&(u[p.options.childkey]=y),y=u;else if(b){b[p.options.childkey]=b[p.options.childkey]||[],h={};for(x in y)O.call(y,x)&&e(h,x,y[x]);b[p.options.childkey].push(h),delete y["#name"],Object.keys(y).length===1&&K in y&&!p.EXPLICIT_CHARKEY&&(y=y[K])}}return v.length>0?p.assignOrPush(b,G,y):(p.options.explicitRoot&&(f=y,y={},e(y,G,f)),p.resultObject=y,p.saxParser.ended=!0,p.emit("end",p.resultObject))}}(this),q=function(p){return function(m){var l,x;if(x=v[v.length-1],x)return x[K]+=m,p.options.explicitChildren&&p.options.preserveChildrenOrder&&p.options.charsAsChildren&&(p.options.includeWhiteChars||m.replace(/\\n/g,"").trim()!=="")&&(x[p.options.childkey]=x[p.options.childkey]||[],l={"#name":"__text__"},l[K]=m,p.options.normalize&&(l[K]=l[K].replace(/\s{2,}/g," ").trim()),x[p.options.childkey].push(l)),x}}(this),this.saxParser.ontext=q,this.saxParser.oncdata=function(p){return function(m){var l;if(l=q(m),l)return l.cdata=!0}}(this)},w.prototype.parseString=function(z,K){var q;K!=null&&typeof K=="function"&&(this.on("end",function(v){return this.reset(),K(null,v)}),this.on("error",function(v){return this.reset(),K(v)}));try{return z=z.toString(),z.trim()===""?(this.emit("end",null),!0):(z=t.stripBOM(z),this.options.async?(this.remaining=z,c(this.processAsync),this.saxParser):this.saxParser.write(z).close())}catch(v){if(q=v,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw q}else return this.emit("error",q),this.saxParser.errThrown=!0}},w.prototype.parseStringPromise=function(z){return new Promise(function(K){return function(q,v){return K.parseString(z,function(p,m){return p?v(p):q(m)})}}(this))},w}(s),Po.parseString=function(g,w,z){var K,q,v;return z!=null?(typeof z=="function"&&(K=z),typeof w=="object"&&(q=w)):(typeof w=="function"&&(K=w),q={}),v=new Po.Parser(q),v.parseString(g,K)},Po.parseStringPromise=function(g,w){var z,K;return typeof w=="object"&&(z=w),K=new Po.Parser(z),K.parseStringPromise(g)}}).call(Po)});var Ki=V(Lo=>{(function(){"use strict";var t,o,e,s,i=function(a,n){for(var c in n)r.call(n,c)&&(a[c]=n[c]);function _(){this.constructor=a}return _.prototype=n.prototype,a.prototype=new _,a.__super__=n.prototype,a},r={}.hasOwnProperty;o=Ze(),t=rn(),e=cn(),s=zi(),Lo.defaults=o.defaults,Lo.processors=s,Lo.ValidationError=function(a){i(n,a);function n(c){this.message=c}return n}(Error),Lo.Builder=t.Builder,Lo.Parser=e.Parser,Lo.parseString=e.parseString,Lo.parseStringPromise=e.parseStringPromise}).call(Lo)});var Gn=V((CO,kn)=>{kn.exports=Kn;Kn.sync=qx;var fn=require("fs");function vx(t,o){var e=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!e||(e=e.split(";"),e.indexOf("")!==-1))return!0;for(var s=0;s<e.length;s++){var i=e[s].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}function zn(t,o,e){return!t.isSymbolicLink()&&!t.isFile()?!1:vx(o,e)}function Kn(t,o,e){fn.stat(t,function(s,i){e(s,s?!1:zn(i,t,o))})}function qx(t,o){return zn(fn.statSync(t),t,o)}});var pn=V((NO,qn)=>{qn.exports=bn;bn.sync=px;var Wn=require("fs");function bn(t,o,e){Wn.stat(t,function(s,i){e(s,s?!1:vn(i,o))})}function px(t,o){return vn(Wn.statSync(t),o)}function vn(t,o){return t.isFile()&&Cx(t,o)}function Cx(t,o){var e=t.mode,s=t.uid,i=t.gid,r=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),a=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),n=parseInt("100",8),c=parseInt("010",8),_=parseInt("001",8),d=n|c,O=e&_||e&c&&i===a||e&n&&s===r||e&d&&r===0;return O}});var Nn=V((FO,Cn)=>{var SO=require("fs"),es;process.platform==="win32"||global.TESTING_WINDOWS?es=Gn():es=pn();Cn.exports=Wi;Wi.sync=Nx;function Wi(t,o,e){if(typeof o=="function"&&(e=o,o={}),!e){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(s,i){Wi(t,o||{},function(r,a){r?i(r):s(a)})})}es(t,o||{},function(s,i){s&&(s.code==="EACCES"||o&&o.ignoreErrors)&&(s=null,i=!1),e(s,i)})}function Nx(t,o){try{return es.sync(t,o||{})}catch(e){if(o&&o.ignoreErrors||e.code==="EACCES")return!1;throw e}}});var Yn=V((MO,Xn)=>{var Kt=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Sn=require("path"),Sx=Kt?";":":",Fn=Nn(),Mn=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),Vn=(t,o)=>{let e=o.colon||Sx,s=t.match(/\//)||Kt&&t.match(/\\/)?[""]:[...Kt?[process.cwd()]:[],...(o.path||process.env.PATH||"").split(e)],i=Kt?o.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",r=Kt?i.split(e):[""];return Kt&&t.indexOf(".")!==-1&&r[0]!==""&&r.unshift(""),{pathEnv:s,pathExt:r,pathExtExe:i}},En=(t,o,e)=>{typeof o=="function"&&(e=o,o={}),o||(o={});let{pathEnv:s,pathExt:i,pathExtExe:r}=Vn(t,o),a=[],n=_=>new Promise((d,O)=>{if(_===s.length)return o.all&&a.length?d(a):O(Mn(t));let g=s[_],w=/^".*"$/.test(g)?g.slice(1,-1):g,z=Sn.join(w,t),K=!w&&/^\.[\\\/]/.test(t)?t.slice(0,2)+z:z;d(c(K,_,0))}),c=(_,d,O)=>new Promise((g,w)=>{if(O===i.length)return g(n(d+1));let z=i[O];Fn(_+z,{pathExt:r},(K,q)=>{if(!K&&q)if(o.all)a.push(_+z);else return g(_+z);return g(c(_,d,O+1))})});return e?n(0).then(_=>e(null,_),e):n(0)},Fx=(t,o)=>{o=o||{};let{pathEnv:e,pathExt:s,pathExtExe:i}=Vn(t,o),r=[];for(let a=0;a<e.length;a++){let n=e[a],c=/^".*"$/.test(n)?n.slice(1,-1):n,_=Sn.join(c,t),d=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+_:_;for(let O=0;O<s.length;O++){let g=d+s[O];try{if(Fn.sync(g,{pathExt:i}))if(o.all)r.push(g);else return g}catch{}}}if(o.all&&r.length)return r;if(o.nothrow)return null;throw Mn(t)};Xn.exports=En;En.sync=Fx});var In=V((VO,bi)=>{"use strict";var Zn=(t={})=>{let o=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(o).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"};bi.exports=Zn;bi.exports.default=Zn});var Un=V((EO,Tn)=>{"use strict";var Pn=require("path"),Mx=Yn(),Vx=In();function Ln(t,o){let e=t.options.env||process.env,s=process.cwd(),i=t.options.cwd!=null,r=i&&process.chdir!==void 0&&!process.chdir.disabled;if(r)try{process.chdir(t.options.cwd)}catch{}let a;try{a=Mx.sync(t.command,{path:e[Vx({env:e})],pathExt:o?Pn.delimiter:void 0})}catch{}finally{r&&process.chdir(s)}return a&&(a=Pn.resolve(i?t.options.cwd:"",a)),a}function Ex(t){return Ln(t)||Ln(t,!0)}Tn.exports=Ex});var Qn=V((XO,qi)=>{"use strict";var vi=/([()\][%!^"`<>&|;, *?])/g;function Xx(t){return t=t.replace(vi,"^$1"),t}function Yx(t,o){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(vi,"^$1"),o&&(t=t.replace(vi,"^$1")),t}qi.exports.command=Xx;qi.exports.argument=Yx});var jn=V((YO,An)=>{"use strict";An.exports=/^#!(.*)/});var Jn=V((ZO,Rn)=>{"use strict";var Zx=jn();Rn.exports=(t="")=>{let o=t.match(Zx);if(!o)return null;let[e,s]=o[0].replace(/#! ?/,"").split(" "),i=e.split("/").pop();return i==="env"?s:s?`${i} ${s}`:i}});var Dn=V((IO,Bn)=>{"use strict";var pi=require("fs"),Ix=Jn();function Px(t){let e=Buffer.alloc(150),s;try{s=pi.openSync(t,"r"),pi.readSync(s,e,0,150,0),pi.closeSync(s)}catch{}return Ix(e.toString())}Bn.exports=Px});var tc=V((PO,oc)=>{"use strict";var Lx=require("path"),$n=Un(),Hn=Qn(),Tx=Dn(),Ux=process.platform==="win32",Qx=/\.(?:com|exe)$/i,Ax=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function jx(t){t.file=$n(t);let o=t.file&&Tx(t.file);return o?(t.args.unshift(t.file),t.command=o,$n(t)):t.file}function Rx(t){if(!Ux)return t;let o=jx(t),e=!Qx.test(o);if(t.options.forceShell||e){let s=Ax.test(o);t.command=Lx.normalize(t.command),t.command=Hn.command(t.command),t.args=t.args.map(r=>Hn.argument(r,s));let i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}function Jx(t,o,e){o&&!Array.isArray(o)&&(e=o,o=null),o=o?o.slice(0):[],e=Object.assign({},e);let s={command:t,args:o,options:e,file:void 0,original:{command:t,args:o}};return e.shell?s:Rx(s)}oc.exports=Jx});var ic=V((LO,sc)=>{"use strict";var Ci=process.platform==="win32";function Ni(t,o){return Object.assign(new Error(`${o} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${t.command}`,path:t.command,spawnargs:t.args})}function Bx(t,o){if(!Ci)return;let e=t.emit;t.emit=function(s,i){if(s==="exit"){let r=ec(i,o,"spawn");if(r)return e.call(t,"error",r)}return e.apply(t,arguments)}}function ec(t,o){return Ci&&t===1&&!o.file?Ni(o.original,"spawn"):null}function Dx(t,o){return Ci&&t===1&&!o.file?Ni(o.original,"spawnSync"):null}sc.exports={hookChildProcess:Bx,verifyENOENT:ec,verifyENOENTSync:Dx,notFoundError:Ni}});var nc=V((TO,kt)=>{"use strict";var rc=require("child_process"),Si=tc(),Fi=ic();function ac(t,o,e){let s=Si(t,o,e),i=rc.spawn(s.command,s.args,s.options);return Fi.hookChildProcess(i,s),i}function $x(t,o,e){let s=Si(t,o,e),i=rc.spawnSync(s.command,s.args,s.options);return i.error=i.error||Fi.verifyENOENTSync(i.status,s),i}kt.exports=ac;kt.exports.spawn=ac;kt.exports.sync=$x;kt.exports._parse=Si;kt.exports._enoent=Fi});var lc=V((Mi,cc)=>{"use strict";var Hx=Mi&&Mi.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},om=Hx(nc());function tm(t,o,e={}){let s=new Error,i=s.stack?s.stack.replace(/^.*/," ..."):null,r,a=new Promise((n,c)=>{let{ignoreStdio:_,...d}=e;r=(0,om.default)(t,o,d);let O="",g="";_||(r.stdout&&r.stdout.on("data",K=>{O+=K}),r.stderr&&r.stderr.on("data",K=>{g+=K}));let w=(K,q)=>{r.removeListener("error",z);let v={pid:r.pid,output:[O,g],stdout:O,stderr:g,status:K,signal:q};if(K!==0){let p=o&&o.length>0?` ${o.join(" ")}`:"",m=q?new Error(`${t}${p} exited with signal: ${q}`):new Error(`${t}${p} exited with non-zero code: ${K}`);m.stack&&i&&(m.stack+=`
12
+ ${i}`),Object.assign(m,v),c(m)}else n(v)},z=K=>{_?r.removeListener("exit",w):r.removeListener("close",w),Object.assign(K,{pid:r.pid,output:[O,g],stdout:O,stderr:g,status:null,signal:null}),c(K)};_?r.once("exit",w):r.once("close",w),r.once("error",z)});return a.child=r,a}cc.exports=tm});var _c=V((UO,uc)=>{"use strict";var em=require("fs"),sm=require("os"),Vi=Symbol.for("__RESOLVED_TEMP_DIRECTORY__");global[Vi]||Object.defineProperty(global,Vi,{value:em.realpathSync(sm.tmpdir())});uc.exports=global[Vi]});var bc=V((JO,Yi)=>{"use strict";var kc=require("path"),Gc=require("module"),nm=require("fs"),Wc=(t,o,e)=>{if(typeof t!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof t}\``);if(typeof o!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof o}\``);try{t=nm.realpathSync(t)}catch(r){if(r.code==="ENOENT")t=kc.resolve(t);else{if(e)return;throw r}}let s=kc.join(t,"noop.js"),i=()=>Gc._resolveFilename(o,{id:s,filename:s,paths:Gc._nodeModulePaths(t)});if(e)try{return i()}catch{return}return i()};Yi.exports=(t,o)=>Wc(t,o);Yi.exports.silent=(t,o)=>Wc(t,o,!0)});var Mc=V((rw,Fc)=>{"use strict";Fc.exports=Nc;function Nc(t,o,e){t instanceof RegExp&&(t=Cc(t,e)),o instanceof RegExp&&(o=Cc(o,e));var s=Sc(t,o,e);return s&&{start:s[0],end:s[1],pre:e.slice(0,s[0]),body:e.slice(s[0]+t.length,s[1]),post:e.slice(s[1]+o.length)}}function Cc(t,o){var e=o.match(t);return e?e[0]:null}Nc.range=Sc;function Sc(t,o,e){var s,i,r,a,n,c=e.indexOf(t),_=e.indexOf(o,c+1),d=c;if(c>=0&&_>0){if(t===o)return[c,_];for(s=[],r=e.length;d>=0&&!n;)d==c?(s.push(d),c=e.indexOf(t,d+1)):s.length==1?n=[s.pop(),_]:(i=s.pop(),i<r&&(r=i,a=_),_=e.indexOf(o,d+1)),d=c<_&&c>=0?c:_;s.length&&(n=[r,a])}return n}});var Lc=V((aw,Pc)=>{var Vc=Mc();Pc.exports=xm;var Ec="\0SLASH"+Math.random()+"\0",Xc="\0OPEN"+Math.random()+"\0",Li="\0CLOSE"+Math.random()+"\0",Yc="\0COMMA"+Math.random()+"\0",Zc="\0PERIOD"+Math.random()+"\0";function Pi(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function um(t){return t.split("\\\\").join(Ec).split("\\{").join(Xc).split("\\}").join(Li).split("\\,").join(Yc).split("\\.").join(Zc)}function _m(t){return t.split(Ec).join("\\").split(Xc).join("{").split(Li).join("}").split(Yc).join(",").split(Zc).join(".")}function Ic(t){if(!t)return[""];var o=[],e=Vc("{","}",t);if(!e)return t.split(",");var s=e.pre,i=e.body,r=e.post,a=s.split(",");a[a.length-1]+="{"+i+"}";var n=Ic(r);return r.length&&(a[a.length-1]+=n.shift(),a.push.apply(a,n)),o.push.apply(o,a),o}function xm(t){return t?(t.substr(0,2)==="{}"&&(t="\\{\\}"+t.substr(2)),ie(um(t),!0).map(_m)):[]}function mm(t){return"{"+t+"}"}function gm(t){return/^-?0\d/.test(t)}function Om(t,o){return t<=o}function wm(t,o){return t>=o}function ie(t,o){var e=[],s=Vc("{","}",t);if(!s)return[t];var i=s.pre,r=s.post.length?ie(s.post,!1):[""];if(/\$$/.test(s.pre))for(var a=0;a<r.length;a++){var n=i+"{"+s.body+"}"+r[a];e.push(n)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),_=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||_,O=s.body.indexOf(",")>=0;if(!d&&!O)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+Li+s.post,ie(t)):[t];var g;if(d)g=s.body.split(/\.\./);else if(g=Ic(s.body),g.length===1&&(g=ie(g[0],!1).map(mm),g.length===1))return r.map(function(f){return s.pre+g[0]+f});var w;if(d){var z=Pi(g[0]),K=Pi(g[1]),q=Math.max(g[0].length,g[1].length),v=g.length==3?Math.abs(Pi(g[2])):1,p=Om,m=K<z;m&&(v*=-1,p=wm);var l=g.some(gm);w=[];for(var x=z;p(x,K);x+=v){var u;if(_)u=String.fromCharCode(x),u==="\\"&&(u="");else if(u=String(x),l){var G=q-u.length;if(G>0){var y=new Array(G+1).join("0");x<0?u="-"+y+u.slice(1):u=y+u}}w.push(u)}}else{w=[];for(var h=0;h<g.length;h++)w.push.apply(w,ie(g[h],!1))}for(var h=0;h<w.length;h++)for(var a=0;a<r.length;a++){var n=i+w[h]+r[a];(!o||d||n)&&e.push(n)}}return e}});var pl=V((ar,nr)=>{(function(t,o,e){typeof ar=="object"?(nr.exports=e(),nr.exports.default=e()):typeof define=="function"&&define.amd?define(e):o[t]=e()})("slugify",ar,function(){var t=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xA2":"cent","\xA3":"pound","\xA4":"currency","\xA5":"yen","\xA9":"(c)","\xAA":"a","\xAE":"(r)","\xBA":"o","\xC0":"A","\xC1":"A","\xC2":"A","\xC3":"A","\xC4":"A","\xC5":"A","\xC6":"AE","\xC7":"C","\xC8":"E","\xC9":"E","\xCA":"E","\xCB":"E","\xCC":"I","\xCD":"I","\xCE":"I","\xCF":"I","\xD0":"D","\xD1":"N","\xD2":"O","\xD3":"O","\xD4":"O","\xD5":"O","\xD6":"O","\xD8":"O","\xD9":"U","\xDA":"U","\xDB":"U","\xDC":"U","\xDD":"Y","\xDE":"TH","\xDF":"ss","\xE0":"a","\xE1":"a","\xE2":"a","\xE3":"a","\xE4":"a","\xE5":"a","\xE6":"ae","\xE7":"c","\xE8":"e","\xE9":"e","\xEA":"e","\xEB":"e","\xEC":"i","\xED":"i","\xEE":"i","\xEF":"i","\xF0":"d","\xF1":"n","\xF2":"o","\xF3":"o","\xF4":"o","\xF5":"o","\xF6":"o","\xF8":"o","\xF9":"u","\xFA":"u","\xFB":"u","\xFC":"u","\xFD":"y","\xFE":"th","\xFF":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010C":"C","\u010D":"c","\u010E":"D","\u010F":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011A":"E","\u011B":"e","\u011E":"G","\u011F":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012A":"i","\u012B":"i","\u012E":"I","\u012F":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013B":"L","\u013C":"l","\u013D":"L","\u013E":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014C":"O","\u014D":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015A":"S","\u015B":"s","\u015E":"S","\u015F":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016A":"u","\u016B":"u","\u016E":"U","\u016F":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017A":"z","\u017B":"Z","\u017C":"z","\u017D":"Z","\u017E":"z","\u018F":"E","\u0192":"f","\u01A0":"O","\u01A1":"o","\u01AF":"U","\u01B0":"u","\u01C8":"LJ","\u01C9":"lj","\u01CB":"NJ","\u01CC":"nj","\u0218":"S","\u0219":"s","\u021A":"T","\u021B":"t","\u0259":"e","\u02DA":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038A":"I","\u038C":"O","\u038E":"Y","\u038F":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039A":"K","\u039B":"L","\u039C":"M","\u039D":"N","\u039E":"3","\u039F":"O","\u03A0":"P","\u03A1":"R","\u03A3":"S","\u03A4":"T","\u03A5":"Y","\u03A6":"F","\u03A7":"X","\u03A8":"PS","\u03A9":"W","\u03AA":"I","\u03AB":"Y","\u03AC":"a","\u03AD":"e","\u03AE":"h","\u03AF":"i","\u03B0":"y","\u03B1":"a","\u03B2":"b","\u03B3":"g","\u03B4":"d","\u03B5":"e","\u03B6":"z","\u03B7":"h","\u03B8":"8","\u03B9":"i","\u03BA":"k","\u03BB":"l","\u03BC":"m","\u03BD":"n","\u03BE":"3","\u03BF":"o","\u03C0":"p","\u03C1":"r","\u03C2":"s","\u03C3":"s","\u03C4":"t","\u03C5":"y","\u03C6":"f","\u03C7":"x","\u03C8":"ps","\u03C9":"w","\u03CA":"i","\u03CB":"y","\u03CC":"o","\u03CD":"y","\u03CE":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040A":"NJ","\u040B":"C","\u040F":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041A":"K","\u041B":"L","\u041C":"M","\u041D":"N","\u041E":"O","\u041F":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042A":"U","\u042B":"Y","\u042C":"","\u042D":"E","\u042E":"Yu","\u042F":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043A":"k","\u043B":"l","\u043C":"m","\u043D":"n","\u043E":"o","\u043F":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044A":"u","\u044B":"y","\u044C":"","\u044D":"e","\u044E":"yu","\u044F":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045A":"nj","\u045B":"c","\u045D":"u","\u045F":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049A":"KH","\u049B":"kh","\u04A2":"NG","\u04A3":"ng","\u04AE":"UE","\u04AF":"ue","\u04B0":"U","\u04B1":"u","\u04BA":"H","\u04BB":"h","\u04D8":"AE","\u04D9":"ae","\u04E8":"OE","\u04E9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E'","\u0538":"Y'","\u0539":"T'","\u053A":"JH","\u053B":"I","\u053C":"L","\u053D":"X","\u053E":"C'","\u053F":"K","\u0540":"H","\u0541":"D'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054A":"P","\u054B":"J","\u054C":"R'","\u054D":"S","\u054E":"V","\u054F":"T","\u0550":"R","\u0551":"C","\u0553":"P'","\u0554":"Q'","\u0555":"O''","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062A":"t","\u062B":"th","\u062C":"j","\u062D":"h","\u062E":"kh","\u062F":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063A":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064A":"y","\u064B":"an","\u064C":"on","\u064D":"en","\u064E":"a","\u064F":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067E":"p","\u0686":"ch","\u0698":"zh","\u06A9":"k","\u06AF":"g","\u06CC":"y","\u06F0":"0","\u06F1":"1","\u06F2":"2","\u06F3":"3","\u06F4":"4","\u06F5":"5","\u06F6":"6","\u06F7":"7","\u06F8":"8","\u06F9":"9","\u0E3F":"baht","\u10D0":"a","\u10D1":"b","\u10D2":"g","\u10D3":"d","\u10D4":"e","\u10D5":"v","\u10D6":"z","\u10D7":"t","\u10D8":"i","\u10D9":"k","\u10DA":"l","\u10DB":"m","\u10DC":"n","\u10DD":"o","\u10DE":"p","\u10DF":"zh","\u10E0":"r","\u10E1":"s","\u10E2":"t","\u10E3":"u","\u10E4":"f","\u10E5":"k","\u10E6":"gh","\u10E7":"q","\u10E8":"sh","\u10E9":"ch","\u10EA":"ts","\u10EB":"dz","\u10EC":"ts","\u10ED":"ch","\u10EE":"kh","\u10EF":"j","\u10F0":"h","\u1E62":"S","\u1E63":"s","\u1E80":"W","\u1E81":"w","\u1E82":"W","\u1E83":"w","\u1E84":"W","\u1E85":"w","\u1E9E":"SS","\u1EA0":"A","\u1EA1":"a","\u1EA2":"A","\u1EA3":"a","\u1EA4":"A","\u1EA5":"a","\u1EA6":"A","\u1EA7":"a","\u1EA8":"A","\u1EA9":"a","\u1EAA":"A","\u1EAB":"a","\u1EAC":"A","\u1EAD":"a","\u1EAE":"A","\u1EAF":"a","\u1EB0":"A","\u1EB1":"a","\u1EB2":"A","\u1EB3":"a","\u1EB4":"A","\u1EB5":"a","\u1EB6":"A","\u1EB7":"a","\u1EB8":"E","\u1EB9":"e","\u1EBA":"E","\u1EBB":"e","\u1EBC":"E","\u1EBD":"e","\u1EBE":"E","\u1EBF":"e","\u1EC0":"E","\u1EC1":"e","\u1EC2":"E","\u1EC3":"e","\u1EC4":"E","\u1EC5":"e","\u1EC6":"E","\u1EC7":"e","\u1EC8":"I","\u1EC9":"i","\u1ECA":"I","\u1ECB":"i","\u1ECC":"O","\u1ECD":"o","\u1ECE":"O","\u1ECF":"o","\u1ED0":"O","\u1ED1":"o","\u1ED2":"O","\u1ED3":"o","\u1ED4":"O","\u1ED5":"o","\u1ED6":"O","\u1ED7":"o","\u1ED8":"O","\u1ED9":"o","\u1EDA":"O","\u1EDB":"o","\u1EDC":"O","\u1EDD":"o","\u1EDE":"O","\u1EDF":"o","\u1EE0":"O","\u1EE1":"o","\u1EE2":"O","\u1EE3":"o","\u1EE4":"U","\u1EE5":"u","\u1EE6":"U","\u1EE7":"u","\u1EE8":"U","\u1EE9":"u","\u1EEA":"U","\u1EEB":"u","\u1EEC":"U","\u1EED":"u","\u1EEE":"U","\u1EEF":"u","\u1EF0":"U","\u1EF1":"u","\u1EF2":"Y","\u1EF3":"y","\u1EF4":"Y","\u1EF5":"y","\u1EF6":"Y","\u1EF7":"y","\u1EF8":"Y","\u1EF9":"y","\u2013":"-","\u2018":"'","\u2019":"'","\u201C":"\\"","\u201D":"\\"","\u201E":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20A0":"ecu","\u20A2":"cruzeiro","\u20A3":"french franc","\u20A4":"lira","\u20A5":"mill","\u20A6":"naira","\u20A7":"peseta","\u20A8":"rupee","\u20A9":"won","\u20AA":"new shequel","\u20AB":"dong","\u20AC":"euro","\u20AD":"kip","\u20AE":"tugrik","\u20AF":"drachma","\u20B0":"penny","\u20B1":"peso","\u20B2":"guarani","\u20B3":"austral","\u20B4":"hryvnia","\u20B5":"cedi","\u20B8":"kazakhstani tenge","\u20B9":"indian rupee","\u20BA":"turkish lira","\u20BD":"russian ruble","\u20BF":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221E":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\uFDFC":"rial","\uFEF5":"laa","\uFEF7":"laa","\uFEF9":"lai","\uFEFB":"la"}`),o=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042A":"A","\u042C":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044A":"a","\u044C":"y"},"de":{"\xC4":"AE","\xE4":"ae","\xD6":"OE","\xF6":"oe","\xDC":"UE","\xFC":"ue","\xDF":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221E":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xA2":"centavos","\xA3":"libras","\xA4":"moneda","\u20A3":"francos","\u2211":"suma","\u221E":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xA2":"centime","\xA3":"livre","\xA4":"devise","\u20A3":"franc","\u2211":"somme","\u221E":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xA2":"centavo","\u2211":"soma","\xA3":"libra","\u221E":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xD8":"OE","\xF8":"oe","\xC5":"AA","\xE5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xF8rre end"},"nb":{"&":"og","\xC5":"AA","\xC6":"AE","\xD8":"OE","\xE5":"aa","\xE6":"ae","\xF8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xC5":"AA","\xC4":"AE","\xD6":"OE","\xE5":"aa","\xE4":"ae","\xF6":"oe"}}');function e(s,i){if(typeof s!="string")throw new Error("slugify: string argument expected");i=typeof i=="string"?{replacement:i}:i||{};var r=o[i.locale]||{},a=i.replacement===void 0?"-":i.replacement,n=i.trim===void 0?!0:i.trim,c=s.normalize().split("").reduce(function(_,d){var O=r[d];return O===void 0&&(O=t[d]),O===void 0&&(O=d),O===a&&(O=" "),_+O.replace(i.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return i.strict&&(c=c.replace(/[^A-Za-z0-9\s]/g,"")),n&&(c=c.trim()),c=c.replace(/\s+/g,a),i.lower&&(c=c.toLowerCase()),c}return e.extend=function(s){Object.assign(t,s)},e})});var Il=V(Ms=>{"use strict";Ms.byteLength=Wg;Ms.toByteArray=vg;Ms.fromByteArray=Cg;var Vo=[],Ko=[],Gg=typeof Uint8Array<"u"?Uint8Array:Array,cr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(wt=0,Yl=cr.length;wt<Yl;++wt)Vo[wt]=cr[wt],Ko[cr.charCodeAt(wt)]=wt;var wt,Yl;Ko[45]=62;Ko[95]=63;function Zl(t){var o=t.length;if(o%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=t.indexOf("=");e===-1&&(e=o);var s=e===o?0:4-e%4;return[e,s]}function Wg(t){var o=Zl(t),e=o[0],s=o[1];return(e+s)*3/4-s}function bg(t,o,e){return(o+e)*3/4-e}function vg(t){var o,e=Zl(t),s=e[0],i=e[1],r=new Gg(bg(t,s,i)),a=0,n=i>0?s-4:s,c;for(c=0;c<n;c+=4)o=Ko[t.charCodeAt(c)]<<18|Ko[t.charCodeAt(c+1)]<<12|Ko[t.charCodeAt(c+2)]<<6|Ko[t.charCodeAt(c+3)],r[a++]=o>>16&255,r[a++]=o>>8&255,r[a++]=o&255;return i===2&&(o=Ko[t.charCodeAt(c)]<<2|Ko[t.charCodeAt(c+1)]>>4,r[a++]=o&255),i===1&&(o=Ko[t.charCodeAt(c)]<<10|Ko[t.charCodeAt(c+1)]<<4|Ko[t.charCodeAt(c+2)]>>2,r[a++]=o>>8&255,r[a++]=o&255),r}function qg(t){return Vo[t>>18&63]+Vo[t>>12&63]+Vo[t>>6&63]+Vo[t&63]}function pg(t,o,e){for(var s,i=[],r=o;r<e;r+=3)s=(t[r]<<16&16711680)+(t[r+1]<<8&65280)+(t[r+2]&255),i.push(qg(s));return i.join("")}function Cg(t){for(var o,e=t.length,s=e%3,i=[],r=16383,a=0,n=e-s;a<n;a+=r)i.push(pg(t,a,a+r>n?n:a+r));return s===1?(o=t[e-1],i.push(Vo[o>>2]+Vo[o<<4&63]+"==")):s===2&&(o=(t[e-2]<<8)+t[e-1],i.push(Vo[o>>10]+Vo[o>>4&63]+Vo[o<<2&63]+"=")),i.join("")}});var Eo=V((Pl,rt)=>{(function(){var t,o,e,s,i,r,a,n={}.hasOwnProperty;t=function(c,..._){var d,O,g,w;if(i(Object.assign))Object.assign.apply(null,arguments);else for(d=0,g=_.length;d<g;d++)if(w=_[d],w!=null)for(O in w)n.call(w,O)&&(c[O]=w[O]);return c},i=function(c){return!!c&&Object.prototype.toString.call(c)==="[object Function]"},r=function(c){var _;return!!c&&((_=typeof c)=="function"||_==="object")},e=function(c){return i(Array.isArray)?Array.isArray(c):Object.prototype.toString.call(c)==="[object Array]"},s=function(c){var _;if(e(c))return!c.length;for(_ in c)if(n.call(c,_))return!1;return!0},a=function(c){var _,d;return r(c)&&(d=Object.getPrototypeOf(c))&&(_=d.constructor)&&typeof _=="function"&&_ instanceof _&&Function.prototype.toString.call(_)===Function.prototype.toString.call(Object)},o=function(c){return i(c.valueOf)?c.valueOf():c},rt.exports.assign=t,rt.exports.isFunction=i,rt.exports.isObject=r,rt.exports.isArray=e,rt.exports.isEmpty=s,rt.exports.isPlainObject=a,rt.exports.getValue=o}).call(Pl)});var lr=V((Ll,Tl)=>{(function(){var t;Tl.exports=t=class{hasFeature(e,s){return!0}createDocumentType(e,s,i){throw new Error("This DOM method is not implemented.")}createDocument(e,s,i){throw new Error("This DOM method is not implemented.")}createHTMLDocument(e){throw new Error("This DOM method is not implemented.")}getFeature(e,s){throw new Error("This DOM method is not implemented.")}}}).call(Ll)});var Al=V((Ul,Ql)=>{(function(){var t;Ql.exports=t=class{constructor(){}handleError(e){throw new Error(e)}}}).call(Ul)});var Jl=V((jl,Rl)=>{(function(){var t;Rl.exports=t=function(){class o{constructor(s){this.arr=s||[]}item(s){return this.arr[s]||null}contains(s){return this.arr.indexOf(s)!==-1}}return Object.defineProperty(o.prototype,"length",{get:function(){return this.arr.length}}),o}.call(this)}).call(jl)});var $l=V((Bl,Dl)=>{(function(){var t,o,e;o=Al(),e=Jl(),Dl.exports=t=function(){class s{constructor(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new o,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}getParameter(r){return this.params.hasOwnProperty(r)?this.params[r]:null}canSetParameter(r,a){return!0}setParameter(r,a){return a!=null?this.params[r]=a:delete this.params[r]}}return Object.defineProperty(s.prototype,"parameterNames",{get:function(){return new e(Object.keys(this.defaultParams))}}),s}.call(this)}).call(Bl)});var Q=V((Hl,ou)=>{(function(){ou.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(Hl)});var ur=V((tu,eu)=>{(function(){var t,o,e;t=Q(),e=Oo(),eu.exports=o=function(){class s{constructor(r,a,n){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),a==null)throw new Error("Missing attribute name. "+this.debugInfo(a));this.name=this.stringify.name(a),this.value=this.stringify.attValue(n),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(r){return this.options.writer.attribute(this,this.options.writer.filterOptions(r))}debugInfo(r){return r=r||this.name,r==null?"parent: <"+this.parent.name+">":"attribute: {"+r+"}, parent: <"+this.parent.name+">"}isEqualNode(r){return!(r.namespaceURI!==this.namespaceURI||r.prefix!==this.prefix||r.localName!==this.localName||r.value!==this.value)}}return Object.defineProperty(s.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(s.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(s.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(s.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(s.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(s.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(s.prototype,"specified",{get:function(){return!0}}),s}.call(this)}).call(tu)});var Vs=V((su,iu)=>{(function(){var t;iu.exports=t=function(){class o{constructor(s){this.nodes=s}clone(){return this.nodes=null}getNamedItem(s){return this.nodes[s]}setNamedItem(s){var i;return i=this.nodes[s.nodeName],this.nodes[s.nodeName]=s,i||null}removeNamedItem(s){var i;return i=this.nodes[s],delete this.nodes[s],i||null}item(s){return this.nodes[Object.keys(this.nodes)[s]]||null}getNamedItemNS(s,i){throw new Error("This DOM method is not implemented.")}setNamedItemNS(s){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(s,i){throw new Error("This DOM method is not implemented.")}}return Object.defineProperty(o.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),o}.call(this)}).call(su)});var Es=V((ru,au)=>{(function(){var t,o,e,s,i,r,a,n,c={}.hasOwnProperty;({isObject:n,isFunction:a,getValue:r}=Eo()),i=Oo(),t=Q(),o=ur(),s=Vs(),au.exports=e=function(){class _ extends i{constructor(O,g,w){var z,K,q,v;if(super(O),g==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(g),this.type=t.Element,this.attribs={},this.schemaTypeInfo=null,w!=null&&this.attribute(w),O.type===t.Document&&(this.isRoot=!0,this.documentObject=O,O.rootObject=this,O.children)){for(v=O.children,K=0,q=v.length;K<q;K++)if(z=v[K],z.type===t.DocType){z.name=this.name;break}}}clone(){var O,g,w,z;w=Object.create(this),w.isRoot&&(w.documentObject=null),w.attribs={},z=this.attribs;for(g in z)c.call(z,g)&&(O=z[g],w.attribs[g]=O.clone());return w.children=[],this.children.forEach(function(K){var q;return q=K.clone(),q.parent=w,w.children.push(q)}),w}attribute(O,g){var w,z;if(O!=null&&(O=r(O)),n(O))for(w in O)c.call(O,w)&&(z=O[w],this.attribute(w,z));else a(g)&&(g=g.apply()),this.options.keepNullAttributes&&g==null?this.attribs[O]=new o(this,O,""):g!=null&&(this.attribs[O]=new o(this,O,g));return this}removeAttribute(O){var g,w,z;if(O==null)throw new Error("Missing attribute name. "+this.debugInfo());if(O=r(O),Array.isArray(O))for(w=0,z=O.length;w<z;w++)g=O[w],delete this.attribs[g];else delete this.attribs[O];return this}toString(O){return this.options.writer.element(this,this.options.writer.filterOptions(O))}att(O,g){return this.attribute(O,g)}a(O,g){return this.attribute(O,g)}getAttribute(O){return this.attribs.hasOwnProperty(O)?this.attribs[O].value:null}setAttribute(O,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(O){return this.attribs.hasOwnProperty(O)?this.attribs[O]:null}setAttributeNode(O){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(O){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(O){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(O,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(O,g,w){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(O,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(O,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(O){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(O,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(O){return this.attribs.hasOwnProperty(O)}hasAttributeNS(O,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(O,g){return this.attribs.hasOwnProperty(O)?this.attribs[O].isId:g}setIdAttributeNS(O,g,w){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(O,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(O){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(O,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(O){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(O){var g,w,z;if(!super.isEqualNode(O)||O.namespaceURI!==this.namespaceURI||O.prefix!==this.prefix||O.localName!==this.localName||O.attribs.length!==this.attribs.length)return!1;for(g=w=0,z=this.attribs.length-1;0<=z?w<=z:w>=z;g=0<=z?++w:--w)if(!this.attribs[g].isEqualNode(O.attribs[g]))return!1;return!0}}return Object.defineProperty(_.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(_.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(_.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(_.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(_.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(_.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(_.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(_.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new s(this.attribs)),this.attributeMap}}),_}.call(this)}).call(ru)});var fe=V((nu,cu)=>{(function(){var t,o;o=Oo(),cu.exports=t=function(){class e extends o{constructor(i){super(i),this.value=""}clone(){return Object.create(this)}substringData(i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(i){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(i,r){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(i,r,a){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(i){return!(!super.isEqualNode(i)||i.data!==this.data)}}return Object.defineProperty(e.prototype,"data",{get:function(){return this.value},set:function(s){return this.value=s||""}}),Object.defineProperty(e.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(e.prototype,"textContent",{get:function(){return this.value},set:function(s){return this.value=s||""}}),e}.call(this)}).call(nu)});var Xs=V((lu,uu)=>{(function(){var t,o,e;t=Q(),e=fe(),uu.exports=o=class extends e{constructor(i,r){if(super(i),r==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=t.CData,this.value=this.stringify.cdata(r)}clone(){return Object.create(this)}toString(i){return this.options.writer.cdata(this,this.options.writer.filterOptions(i))}}}).call(lu)});var Ys=V((_u,xu)=>{(function(){var t,o,e;t=Q(),o=fe(),xu.exports=e=class extends o{constructor(i,r){if(super(i),r==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=t.Comment,this.value=this.stringify.comment(r)}clone(){return Object.create(this)}toString(i){return this.options.writer.comment(this,this.options.writer.filterOptions(i))}}}).call(_u)});var Zs=V((mu,gu)=>{(function(){var t,o,e,s;({isObject:s}=Eo()),e=Oo(),t=Q(),gu.exports=o=class extends e{constructor(r,a,n,c){super(r),s(a)&&({version:a,encoding:n,standalone:c}=a),a||(a="1.0"),this.type=t.Declaration,this.version=this.stringify.xmlVersion(a),n!=null&&(this.encoding=this.stringify.xmlEncoding(n)),c!=null&&(this.standalone=this.stringify.xmlStandalone(c))}toString(r){return this.options.writer.declaration(this,this.options.writer.filterOptions(r))}}}).call(mu)});var Is=V((Ou,wu)=>{(function(){var t,o,e;e=Oo(),t=Q(),wu.exports=o=class extends e{constructor(i,r,a,n,c,_){if(super(i),r==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(a==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(r));if(!n)throw new Error("Missing DTD attribute type. "+this.debugInfo(r));if(!c)throw new Error("Missing DTD attribute default. "+this.debugInfo(r));if(c.indexOf("#")!==0&&(c="#"+c),!c.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(r));if(_&&!c.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(r));this.elementName=this.stringify.name(r),this.type=t.AttributeDeclaration,this.attributeName=this.stringify.name(a),this.attributeType=this.stringify.dtdAttType(n),_&&(this.defaultValue=this.stringify.dtdAttDefault(_)),this.defaultValueType=c}toString(i){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(i))}}}).call(Ou)});var Ps=V((du,yu)=>{(function(){var t,o,e,s;({isObject:s}=Eo()),e=Oo(),t=Q(),yu.exports=o=function(){class i extends e{constructor(a,n,c,_){if(super(a),c==null)throw new Error("Missing DTD entity name. "+this.debugInfo(c));if(_==null)throw new Error("Missing DTD entity value. "+this.debugInfo(c));if(this.pe=!!n,this.name=this.stringify.name(c),this.type=t.EntityDeclaration,!s(_))this.value=this.stringify.dtdEntityValue(_),this.internal=!0;else{if(!_.pubID&&!_.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(c));if(_.pubID&&!_.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(c));if(this.internal=!1,_.pubID!=null&&(this.pubID=this.stringify.dtdPubID(_.pubID)),_.sysID!=null&&(this.sysID=this.stringify.dtdSysID(_.sysID)),_.nData!=null&&(this.nData=this.stringify.dtdNData(_.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(c))}}toString(a){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(a))}}return Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(i.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(i.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"xmlVersion",{get:function(){return null}}),i}.call(this)}).call(du)});var Ls=V((hu,fu)=>{(function(){var t,o,e;e=Oo(),t=Q(),fu.exports=o=class extends e{constructor(i,r,a){if(super(i),r==null)throw new Error("Missing DTD element name. "+this.debugInfo());a||(a="(#PCDATA)"),Array.isArray(a)&&(a="("+a.join(",")+")"),this.name=this.stringify.name(r),this.type=t.ElementDeclaration,this.value=this.stringify.dtdElementValue(a)}toString(i){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(i))}}}).call(hu)});var Ts=V((zu,Ku)=>{(function(){var t,o,e;e=Oo(),t=Q(),Ku.exports=o=function(){class s extends e{constructor(r,a,n){if(super(r),a==null)throw new Error("Missing DTD notation name. "+this.debugInfo(a));if(!n.pubID&&!n.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(a));this.name=this.stringify.name(a),this.type=t.NotationDeclaration,n.pubID!=null&&(this.pubID=this.stringify.dtdPubID(n.pubID)),n.sysID!=null&&(this.sysID=this.stringify.dtdSysID(n.sysID))}toString(r){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(r))}}return Object.defineProperty(s.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(s.prototype,"systemId",{get:function(){return this.sysID}}),s}.call(this)}).call(zu)});var Us=V((ku,Gu)=>{(function(){var t,o,e,s,i,r,a,n,c;({isObject:c}=Eo()),n=Oo(),t=Q(),o=Is(),s=Ps(),e=Ls(),i=Ts(),a=Vs(),Gu.exports=r=function(){class _ extends n{constructor(O,g,w){var z,K,q,v;if(super(O),this.type=t.DocType,O.children){for(v=O.children,K=0,q=v.length;K<q;K++)if(z=v[K],z.type===t.Element){this.name=z.name;break}}this.documentObject=O,c(g)&&({pubID:g,sysID:w}=g),w==null&&([w,g]=[g,w]),g!=null&&(this.pubID=this.stringify.dtdPubID(g)),w!=null&&(this.sysID=this.stringify.dtdSysID(w))}element(O,g){var w;return w=new e(this,O,g),this.children.push(w),this}attList(O,g,w,z,K){var q;return q=new o(this,O,g,w,z,K),this.children.push(q),this}entity(O,g){var w;return w=new s(this,!1,O,g),this.children.push(w),this}pEntity(O,g){var w;return w=new s(this,!0,O,g),this.children.push(w),this}notation(O,g){var w;return w=new i(this,O,g),this.children.push(w),this}toString(O){return this.options.writer.docType(this,this.options.writer.filterOptions(O))}ele(O,g){return this.element(O,g)}att(O,g,w,z,K){return this.attList(O,g,w,z,K)}ent(O,g){return this.entity(O,g)}pent(O,g){return this.pEntity(O,g)}not(O,g){return this.notation(O,g)}up(){return this.root()||this.documentObject}isEqualNode(O){return!(!super.isEqualNode(O)||O.name!==this.name||O.publicId!==this.publicId||O.systemId!==this.systemId)}}return Object.defineProperty(_.prototype,"entities",{get:function(){var d,O,g,w,z;for(w={},z=this.children,O=0,g=z.length;O<g;O++)d=z[O],d.type===t.EntityDeclaration&&!d.pe&&(w[d.name]=d);return new a(w)}}),Object.defineProperty(_.prototype,"notations",{get:function(){var d,O,g,w,z;for(w={},z=this.children,O=0,g=z.length;O<g;O++)d=z[O],d.type===t.NotationDeclaration&&(w[d.name]=d);return new a(w)}}),Object.defineProperty(_.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(_.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(_.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),_}.call(this)}).call(ku)});var Qs=V((Wu,bu)=>{(function(){var t,o,e;t=Q(),o=Oo(),bu.exports=e=class extends o{constructor(i,r){if(super(i),r==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=t.Raw,this.value=this.stringify.raw(r)}clone(){return Object.create(this)}toString(i){return this.options.writer.raw(this,this.options.writer.filterOptions(i))}}}).call(Wu)});var As=V((vu,qu)=>{(function(){var t,o,e;t=Q(),o=fe(),qu.exports=e=function(){class s extends o{constructor(r,a){if(super(r),a==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=t.Text,this.value=this.stringify.text(a)}clone(){return Object.create(this)}toString(r){return this.options.writer.text(this,this.options.writer.filterOptions(r))}splitText(r){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(r){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(s.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(s.prototype,"wholeText",{get:function(){var i,r,a;for(a="",r=this.previousSibling;r;)a=r.data+a,r=r.previousSibling;for(a+=this.data,i=this.nextSibling;i;)a=a+i.data,i=i.nextSibling;return a}}),s}.call(this)}).call(vu)});var js=V((pu,Cu)=>{(function(){var t,o,e;t=Q(),o=fe(),Cu.exports=e=class extends o{constructor(i,r,a){if(super(i),r==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=t.ProcessingInstruction,this.target=this.stringify.insTarget(r),this.name=this.target,a&&(this.value=this.stringify.insValue(a))}clone(){return Object.create(this)}toString(i){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(i))}isEqualNode(i){return!(!super.isEqualNode(i)||i.target!==this.target)}}}).call(pu)});var _r=V((Nu,Su)=>{(function(){var t,o,e;e=Oo(),t=Q(),Su.exports=o=class extends e{constructor(i){super(i),this.type=t.Dummy}clone(){return Object.create(this)}toString(i){return""}}}).call(Nu)});var Vu=V((Fu,Mu)=>{(function(){var t;Mu.exports=t=function(){class o{constructor(s){this.nodes=s}clone(){return this.nodes=null}item(s){return this.nodes[s]||null}}return Object.defineProperty(o.prototype,"length",{get:function(){return this.nodes.length||0}}),o}.call(this)}).call(Fu)});var Yu=V((Eu,Xu)=>{(function(){Xu.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(Eu)});var Oo=V((Zu,Iu)=>{(function(){var t,o,e,s,i,r,a,n,c,_,d,O,g,w,z,K,q,v,p={}.hasOwnProperty,m=[].splice;({isObject:v,isFunction:q,isEmpty:K,getValue:z}=Eo()),n=null,e=null,s=null,i=null,r=null,g=null,w=null,O=null,a=null,o=null,d=null,c=null,t=null,Iu.exports=_=function(){class l{constructor(u){this.parent=u,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,n||(n=Es(),e=Xs(),s=Ys(),i=Zs(),r=Us(),g=Qs(),w=As(),O=js(),a=_r(),o=Q(),d=Vu(),c=Vs(),t=Yu())}setParent(u){var G,y,h,f,b;for(this.parent=u,u&&(this.options=u.options,this.stringify=u.stringify),f=this.children,b=[],y=0,h=f.length;y<h;y++)G=f[y],b.push(G.setParent(this));return b}element(u,G,y){var h,f,b,N,S,E,Y,M,X;if(E=null,G===null&&y==null&&([G,y]=[{},null]),G==null&&(G={}),G=z(G),v(G)||([y,G]=[G,y]),u!=null&&(u=z(u)),Array.isArray(u))for(b=0,Y=u.length;b<Y;b++)f=u[b],E=this.element(f);else if(q(u))E=this.element(u.apply());else if(v(u)){for(S in u)if(p.call(u,S))if(X=u[S],q(X)&&(X=X.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&S.indexOf(this.stringify.convertAttKey)===0)E=this.attribute(S.substr(this.stringify.convertAttKey.length),X);else if(!this.options.separateArrayItems&&Array.isArray(X)&&K(X))E=this.dummy();else if(v(X)&&K(X))E=this.element(S);else if(!this.options.keepNullNodes&&X==null)E=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(X))for(N=0,M=X.length;N<M;N++)f=X[N],h={},h[S]=f,E=this.element(h);else v(X)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&S.indexOf(this.stringify.convertTextKey)===0?E=this.element(X):(E=this.element(S),E.element(X)):E=this.element(S,X)}else!this.options.keepNullNodes&&y===null?E=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&u.indexOf(this.stringify.convertTextKey)===0?E=this.text(y):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&u.indexOf(this.stringify.convertCDataKey)===0?E=this.cdata(y):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&u.indexOf(this.stringify.convertCommentKey)===0?E=this.comment(y):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&u.indexOf(this.stringify.convertRawKey)===0?E=this.raw(y):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&u.indexOf(this.stringify.convertPIKey)===0?E=this.instruction(u.substr(this.stringify.convertPIKey.length),y):E=this.node(u,G,y);if(E==null)throw new Error("Could not create any elements with: "+u+". "+this.debugInfo());return E}insertBefore(u,G,y){var h,f,b,N,S;if(u?.type)return b=u,N=G,b.setParent(this),N?(f=children.indexOf(N),S=children.splice(f),children.push(b),Array.prototype.push.apply(children,S)):children.push(b),b;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(u));return f=this.parent.children.indexOf(this),S=this.parent.children.splice(f),h=this.parent.element(u,G,y),Array.prototype.push.apply(this.parent.children,S),h}insertAfter(u,G,y){var h,f,b;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(u));return f=this.parent.children.indexOf(this),b=this.parent.children.splice(f+1),h=this.parent.element(u,G,y),Array.prototype.push.apply(this.parent.children,b),h}remove(){var u,G;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return u=this.parent.children.indexOf(this),m.apply(this.parent.children,[u,u-u+1].concat(G=[])),this.parent}node(u,G,y){var h;return u!=null&&(u=z(u)),G||(G={}),G=z(G),v(G)||([y,G]=[G,y]),h=new n(this,u,G),y!=null&&h.text(y),this.children.push(h),h}text(u){var G;return v(u)&&this.element(u),G=new w(this,u),this.children.push(G),this}cdata(u){var G;return G=new e(this,u),this.children.push(G),this}comment(u){var G;return G=new s(this,u),this.children.push(G),this}commentBefore(u){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y),G=this.parent.comment(u),Array.prototype.push.apply(this.parent.children,h),this}commentAfter(u){var G,y,h;return y=this.parent.children.indexOf(this),h=this.parent.children.splice(y+1),G=this.parent.comment(u),Array.prototype.push.apply(this.parent.children,h),this}raw(u){var G;return G=new g(this,u),this.children.push(G),this}dummy(){var u;return u=new a(this),u}instruction(u,G){var y,h,f,b,N;if(u!=null&&(u=z(u)),G!=null&&(G=z(G)),Array.isArray(u))for(b=0,N=u.length;b<N;b++)y=u[b],this.instruction(y);else if(v(u))for(y in u)p.call(u,y)&&(h=u[y],this.instruction(y,h));else q(G)&&(G=G.apply()),f=new O(this,u,G),this.children.push(f);return this}instructionBefore(u,G){var y,h,f;return h=this.parent.children.indexOf(this),f=this.parent.children.splice(h),y=this.parent.instruction(u,G),Array.prototype.push.apply(this.parent.children,f),this}instructionAfter(u,G){var y,h,f;return h=this.parent.children.indexOf(this),f=this.parent.children.splice(h+1),y=this.parent.instruction(u,G),Array.prototype.push.apply(this.parent.children,f),this}declaration(u,G,y){var h,f;return h=this.document(),f=new i(h,u,G,y),h.children.length===0?h.children.unshift(f):h.children[0].type===o.Declaration?h.children[0]=f:h.children.unshift(f),h.root()||h}dtd(u,G){var y,h,f,b,N,S,E,Y,M,X;for(h=this.document(),f=new r(h,u,G),M=h.children,b=N=0,E=M.length;N<E;b=++N)if(y=M[b],y.type===o.DocType)return h.children[b]=f,f;for(X=h.children,b=S=0,Y=X.length;S<Y;b=++S)if(y=X[b],y.isRoot)return h.children.splice(b,0,f),f;return h.children.push(f),f}up(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent}root(){var u;for(u=this;u;){if(u.type===o.Document)return u.rootObject;if(u.isRoot)return u;u=u.parent}}document(){var u;for(u=this;u;){if(u.type===o.Document)return u;u=u.parent}}end(u){return this.document().end(u)}prev(){var u;if(u=this.parent.children.indexOf(this),u<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[u-1]}next(){var u;if(u=this.parent.children.indexOf(this),u===-1||u===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[u+1]}importDocument(u){var G,y,h,f,b;if(y=u.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this.type===o.Document&&(y.isRoot=!0,y.documentObject=this,this.rootObject=y,this.children)){for(b=this.children,h=0,f=b.length;h<f;h++)if(G=b[h],G.type===o.DocType){G.name=y.name;break}}return this}debugInfo(u){var G,y;return u=u||this.name,u==null&&!((G=this.parent)!=null&&G.name)?"":u==null?"parent: <"+this.parent.name+">":(y=this.parent)!=null&&y.name?"node: <"+u+">, parent: <"+this.parent.name+">":"node: <"+u+">"}ele(u,G,y){return this.element(u,G,y)}nod(u,G,y){return this.node(u,G,y)}txt(u){return this.text(u)}dat(u){return this.cdata(u)}com(u){return this.comment(u)}ins(u,G){return this.instruction(u,G)}doc(){return this.document()}dec(u,G,y){return this.declaration(u,G,y)}e(u,G,y){return this.element(u,G,y)}n(u,G,y){return this.node(u,G,y)}t(u){return this.text(u)}d(u){return this.cdata(u)}c(u){return this.comment(u)}r(u){return this.raw(u)}i(u,G){return this.instruction(u,G)}u(){return this.up()}importXMLBuilder(u){return this.importDocument(u)}attribute(u,G){throw new Error("attribute() applies to element nodes only.")}att(u,G){return this.attribute(u,G)}a(u,G){return this.attribute(u,G)}removeAttribute(u){throw new Error("attribute() applies to element nodes only.")}replaceChild(u,G){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(u,G){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(u){var G,y;return G=this,G===u?0:this.document()!==u.document()?(y=t.Disconnected|t.ImplementationSpecific,Math.random()<.5?y|=t.Preceding:y|=t.Following,y):G.isAncestor(u)?t.Contains|t.Preceding:G.isDescendant(u)?t.Contains|t.Following:G.isPreceding(u)?t.Preceding:t.Following}isSameNode(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(u){var G,y,h;if(u.nodeType!==this.nodeType||u.children.length!==this.children.length)return!1;for(G=y=0,h=this.children.length-1;0<=h?y<=h:y>=h;G=0<=h?++y:--y)if(!this.children[G].isEqualNode(u.children[G]))return!1;return!0}getFeature(u,G){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(u,G,y){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(u){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(u){return u?u===this||this.isDescendant(u):!1}isDescendant(u){var G,y,h,f,b;for(b=this.children,h=0,f=b.length;h<f;h++)if(G=b[h],u===G||(y=G.isDescendant(u),y))return!0;return!1}isAncestor(u){return u.isDescendant(this)}isPreceding(u){var G,y;return G=this.treePosition(u),y=this.treePosition(this),G===-1||y===-1?!1:G<y}isFollowing(u){var G,y;return G=this.treePosition(u),y=this.treePosition(this),G===-1||y===-1?!1:G>y}treePosition(u){var G,y;return y=0,G=!1,this.foreachTreeNode(this.document(),function(h){if(y++,!G&&h===u)return G=!0}),G?y:-1}foreachTreeNode(u,G){var y,h,f,b,N;for(u||(u=this.document()),b=u.children,h=0,f=b.length;h<f;h++){if(y=b[h],N=G(y))return N;if(N=this.foreachTreeNode(y,G),N)return N}}}return Object.defineProperty(l.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(l.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(l.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(l.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(l.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new d(this.children)),this.childNodeList}}),Object.defineProperty(l.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(l.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(l.prototype,"previousSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x-1]||null}}),Object.defineProperty(l.prototype,"nextSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x+1]||null}}),Object.defineProperty(l.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(l.prototype,"textContent",{get:function(){var x,u,G,y,h;if(this.nodeType===o.Element||this.nodeType===o.DocumentFragment){for(h="",y=this.children,u=0,G=y.length;u<G;u++)x=y[u],x.textContent&&(h+=x.textContent);return h}else return null},set:function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),l}.call(this)}).call(Zu)});var xr=V((Pu,Lu)=>{(function(){var t,o={}.hasOwnProperty;Lu.exports=t=function(){class e{constructor(i){var r,a,n;this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),i||(i={}),this.options=i,this.options.version||(this.options.version="1.0"),a=i.stringify||{};for(r in a)o.call(a,r)&&(n=a[r],this[r]=n)}name(i){return this.options.noValidation?i:this.assertLegalName(""+i||"")}text(i){return this.options.noValidation?i:this.assertLegalChar(this.textEscape(""+i||""))}cdata(i){return this.options.noValidation?i:(i=""+i||"",i=i.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(i))}comment(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+i);return this.assertLegalChar(i)}raw(i){return this.options.noValidation?i:""+i||""}attValue(i){return this.options.noValidation?i:this.assertLegalChar(this.attEscape(i=""+i||""))}insTarget(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}insValue(i){if(this.options.noValidation)return i;if(i=""+i||"",i.match(/\?>/))throw new Error("Invalid processing instruction value: "+i);return this.assertLegalChar(i)}xmlVersion(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+i);return i}xmlEncoding(i){if(this.options.noValidation)return i;if(i=""+i||"",!i.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+i);return this.assertLegalChar(i)}xmlStandalone(i){return this.options.noValidation?i:i?"yes":"no"}dtdPubID(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdSysID(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdElementValue(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdAttType(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdAttDefault(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdEntityValue(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}dtdNData(i){return this.options.noValidation?i:this.assertLegalChar(""+i||"")}assertLegalChar(i){var r,a;if(this.options.noValidation)return i;if(this.options.version==="1.0"){if(r=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)i=i.replace(r,this.options.invalidCharReplacement);else if(a=i.match(r))throw new Error(`Invalid character in string: ${i} at index ${a.index}`)}else if(this.options.version==="1.1"){if(r=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)i=i.replace(r,this.options.invalidCharReplacement);else if(a=i.match(r))throw new Error(`Invalid character in string: ${i} at index ${a.index}`)}return i}assertLegalName(i){var r;if(this.options.noValidation)return i;if(i=this.assertLegalChar(i),r=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!i.match(r))throw new Error(`Invalid character in name: ${i}`);return i}textEscape(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))}attEscape(i){var r;return this.options.noValidation?i:(r=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,i.replace(r,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))}}return e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e}.call(this)}).call(Pu)});var ze=V((Tu,Uu)=>{(function(){Uu.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(Tu)});var mr=V((Qu,Au)=>{(function(){var t,o,e,s,i,r,a,n,c,_,d,O,g,w,z,K,q,v={}.hasOwnProperty;({assign:q}=Eo()),t=Q(),c=Zs(),_=Us(),e=Xs(),s=Ys(),O=Es(),w=Qs(),z=As(),g=js(),d=_r(),i=Is(),r=Ls(),a=Ps(),n=Ts(),o=ze(),Au.exports=K=class{constructor(m){var l,x,u;m||(m={}),this.options=m,x=m.writer||{};for(l in x)v.call(x,l)&&(u=x[l],this["_"+l]=this[l],this[l]=u)}filterOptions(m){var l,x,u,G,y,h,f,b,N;return m||(m={}),m=q({},this.options,m),l={writer:this},l.pretty=m.pretty||!1,l.allowEmpty=m.allowEmpty||!1,l.indent=(x=m.indent)!=null?x:" ",l.newline=(u=m.newline)!=null?u:`
13
+ `,l.offset=(G=m.offset)!=null?G:0,l.width=(y=m.width)!=null?y:0,l.dontPrettyTextNodes=(h=(f=m.dontPrettyTextNodes)!=null?f:m.dontprettytextnodes)!=null?h:0,l.spaceBeforeSlash=(b=(N=m.spaceBeforeSlash)!=null?N:m.spacebeforeslash)!=null?b:"",l.spaceBeforeSlash===!0&&(l.spaceBeforeSlash=" "),l.suppressPrettyCount=0,l.user={},l.state=o.None,l}indent(m,l,x){var u;return!l.pretty||l.suppressPrettyCount?"":l.pretty&&(u=(x||0)+l.offset+1,u>0)?new Array(u).join(l.indent):""}endline(m,l,x){return!l.pretty||l.suppressPrettyCount?"":l.newline}attribute(m,l,x){var u;return this.openAttribute(m,l,x),l.pretty&&l.width>0?u=m.name+'="'+m.value+'"':u=" "+m.name+'="'+m.value+'"',this.closeAttribute(m,l,x),u}cdata(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<![CDATA[",l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+="]]>"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}comment(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!-- ",l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+=" -->"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}declaration(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<?xml",l.state=o.InsideTag,u+=' version="'+m.version+'"',m.encoding!=null&&(u+=' encoding="'+m.encoding+'"'),m.standalone!=null&&(u+=' standalone="'+m.standalone+'"'),l.state=o.CloseTag,u+=l.spaceBeforeSlash+"?>",u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}docType(m,l,x){var u,G,y,h,f;if(x||(x=0),this.openNode(m,l,x),l.state=o.OpenTag,h=this.indent(m,l,x),h+="<!DOCTYPE "+m.root().name,m.pubID&&m.sysID?h+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(h+=' SYSTEM "'+m.sysID+'"'),m.children.length>0){for(h+=" [",h+=this.endline(m,l,x),l.state=o.InsideTag,f=m.children,G=0,y=f.length;G<y;G++)u=f[G],h+=this.writeChildNode(u,l,x+1);l.state=o.CloseTag,h+="]"}return l.state=o.CloseTag,h+=l.spaceBeforeSlash+">",h+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),h}element(m,l,x){var u,G,y,h,f,b,N,S,E,Y,M,X,Z,wo,to,$o,yt,ht,Zo;if(x||(x=0),X=!1,this.openNode(m,l,x),l.state=o.OpenTag,Z=this.indent(m,l,x)+"<"+m.name,l.pretty&&l.width>0){S=Z.length,to=m.attribs;for(M in to)v.call(to,M)&&(u=to[M],wo=this.attribute(u,l,x),G=wo.length,S+G>l.width?(Zo=this.indent(m,l,x+1)+wo,Z+=this.endline(m,l,x)+Zo,S=Zo.length):(Zo=" "+wo,Z+=Zo,S+=Zo.length))}else{$o=m.attribs;for(M in $o)v.call($o,M)&&(u=$o[M],Z+=this.attribute(u,l,x))}if(h=m.children.length,f=h===0?null:m.children[0],h===0||m.children.every(function(ft){return(ft.type===t.Text||ft.type===t.Raw||ft.type===t.CData)&&ft.value===""}))l.allowEmpty?(Z+=">",l.state=o.CloseTag,Z+="</"+m.name+">"+this.endline(m,l,x)):(l.state=o.CloseTag,Z+=l.spaceBeforeSlash+"/>"+this.endline(m,l,x));else if(l.pretty&&h===1&&(f.type===t.Text||f.type===t.Raw||f.type===t.CData)&&f.value!=null)Z+=">",l.state=o.InsideTag,l.suppressPrettyCount++,X=!0,Z+=this.writeChildNode(f,l,x+1),l.suppressPrettyCount--,X=!1,l.state=o.CloseTag,Z+="</"+m.name+">"+this.endline(m,l,x);else{if(l.dontPrettyTextNodes){for(yt=m.children,b=0,E=yt.length;b<E;b++)if(y=yt[b],(y.type===t.Text||y.type===t.Raw||y.type===t.CData)&&y.value!=null){l.suppressPrettyCount++,X=!0;break}}for(Z+=">"+this.endline(m,l,x),l.state=o.InsideTag,ht=m.children,N=0,Y=ht.length;N<Y;N++)y=ht[N],Z+=this.writeChildNode(y,l,x+1);l.state=o.CloseTag,Z+=this.indent(m,l,x)+"</"+m.name+">",X&&l.suppressPrettyCount--,Z+=this.endline(m,l,x),l.state=o.None}return this.closeNode(m,l,x),Z}writeChildNode(m,l,x){switch(m.type){case t.CData:return this.cdata(m,l,x);case t.Comment:return this.comment(m,l,x);case t.Element:return this.element(m,l,x);case t.Raw:return this.raw(m,l,x);case t.Text:return this.text(m,l,x);case t.ProcessingInstruction:return this.processingInstruction(m,l,x);case t.Dummy:return"";case t.Declaration:return this.declaration(m,l,x);case t.DocType:return this.docType(m,l,x);case t.AttributeDeclaration:return this.dtdAttList(m,l,x);case t.ElementDeclaration:return this.dtdElement(m,l,x);case t.EntityDeclaration:return this.dtdEntity(m,l,x);case t.NotationDeclaration:return this.dtdNotation(m,l,x);default:throw new Error("Unknown XML node type: "+m.constructor.name)}}processingInstruction(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<?",l.state=o.InsideTag,u+=m.target,m.value&&(u+=" "+m.value),l.state=o.CloseTag,u+=l.spaceBeforeSlash+"?>",u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}raw(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x),l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}text(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x),l.state=o.InsideTag,u+=m.value,l.state=o.CloseTag,u+=this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}dtdAttList(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!ATTLIST",l.state=o.InsideTag,u+=" "+m.elementName+" "+m.attributeName+" "+m.attributeType,m.defaultValueType!=="#DEFAULT"&&(u+=" "+m.defaultValueType),m.defaultValue&&(u+=' "'+m.defaultValue+'"'),l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}dtdElement(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!ELEMENT",l.state=o.InsideTag,u+=" "+m.name+" "+m.value,l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}dtdEntity(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!ENTITY",l.state=o.InsideTag,m.pe&&(u+=" %"),u+=" "+m.name,m.value?u+=' "'+m.value+'"':(m.pubID&&m.sysID?u+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.sysID&&(u+=' SYSTEM "'+m.sysID+'"'),m.nData&&(u+=" NDATA "+m.nData)),l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}dtdNotation(m,l,x){var u;return this.openNode(m,l,x),l.state=o.OpenTag,u=this.indent(m,l,x)+"<!NOTATION",l.state=o.InsideTag,u+=" "+m.name,m.pubID&&m.sysID?u+=' PUBLIC "'+m.pubID+'" "'+m.sysID+'"':m.pubID?u+=' PUBLIC "'+m.pubID+'"':m.sysID&&(u+=' SYSTEM "'+m.sysID+'"'),l.state=o.CloseTag,u+=l.spaceBeforeSlash+">"+this.endline(m,l,x),l.state=o.None,this.closeNode(m,l,x),u}openNode(m,l,x){}closeNode(m,l,x){}openAttribute(m,l,x){}closeAttribute(m,l,x){}}}).call(Qu)});var Rs=V((ju,Ru)=>{(function(){var t,o;o=mr(),Ru.exports=t=class extends o{constructor(s){super(s)}document(s,i){var r,a,n,c,_;for(i=this.filterOptions(i),c="",_=s.children,a=0,n=_.length;a<n;a++)r=_[a],c+=this.writeChildNode(r,i,0);return i.pretty&&c.slice(-i.newline.length)===i.newline&&(c=c.slice(0,-i.newline.length)),c}}}).call(ju)});var gr=V((Ju,Bu)=>{(function(){var t,o,e,s,i,r,a,n;({isPlainObject:n}=Eo()),e=lr(),o=$l(),i=Oo(),t=Q(),a=xr(),r=Rs(),Bu.exports=s=function(){class c extends i{constructor(d){super(null),this.name="#document",this.type=t.Document,this.documentURI=null,this.domConfig=new o,d||(d={}),d.writer||(d.writer=new r),this.options=d,this.stringify=new a(d)}end(d){var O;return O={},d?n(d)&&(O=d,d=this.options.writer):d=this.options.writer,d.document(this,d.filterOptions(O))}toString(d){return this.options.writer.document(this,this.options.writer.filterOptions(d))}createElement(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(d,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(d,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(d,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(d,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(d,O){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(d,O,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(d){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(d,O,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(d,O,g){throw new Error("This DOM method is not implemented."+this.debugInfo())}}return Object.defineProperty(c.prototype,"implementation",{value:new e}),Object.defineProperty(c.prototype,"doctype",{get:function(){var _,d,O,g;for(g=this.children,d=0,O=g.length;d<O;d++)if(_=g[d],_.type===t.DocType)return _;return null}}),Object.defineProperty(c.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].encoding:null}}),Object.defineProperty(c.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===t.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(c.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(c.prototype,"origin",{get:function(){return null}}),Object.defineProperty(c.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(c.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(c.prototype,"contentType",{get:function(){return null}}),c}.call(this)}).call(Ju)});var Hu=V((Du,$u)=>{(function(){var t,o,e,s,i,r,a,n,c,_,d,O,g,w,z,K,q,v,p,m,l,x,u,G={}.hasOwnProperty;({isObject:x,isFunction:l,isPlainObject:u,getValue:m}=Eo()),t=Q(),O=gr(),w=Es(),s=Xs(),i=Ys(),K=Qs(),p=As(),z=js(),_=Zs(),d=Us(),r=Is(),n=Ps(),a=Ls(),c=Ts(),e=ur(),v=xr(),q=Rs(),o=ze(),$u.exports=g=class{constructor(h,f,b){var N;this.name="?xml",this.type=t.Document,h||(h={}),N={},h.writer?u(h.writer)&&(N=h.writer,h.writer=new q):h.writer=new q,this.options=h,this.writer=h.writer,this.writerOptions=this.writer.filterOptions(N),this.stringify=new v(h),this.onDataCallback=f||function(){},this.onEndCallback=b||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(h){var f,b,N,S,E,Y,M,X;switch(h.type){case t.CData:this.cdata(h.value);break;case t.Comment:this.comment(h.value);break;case t.Element:N={},M=h.attribs;for(b in M)G.call(M,b)&&(f=M[b],N[b]=f.value);this.node(h.name,N);break;case t.Dummy:this.dummy();break;case t.Raw:this.raw(h.value);break;case t.Text:this.text(h.value);break;case t.ProcessingInstruction:this.instruction(h.target,h.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+h.constructor.name)}for(X=h.children,E=0,Y=X.length;E<Y;E++)S=X[E],this.createChildNode(S),S.type===t.Element&&this.up();return this}dummy(){return this}node(h,f,b){if(h==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(h));return this.openCurrent(),h=m(h),f==null&&(f={}),f=m(f),x(f)||([b,f]=[f,b]),this.currentNode=new w(this,h,f),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,b!=null&&this.text(b),this}element(h,f,b){var N,S,E,Y,M,X;if(this.currentNode&&this.currentNode.type===t.DocType)this.dtdElement(...arguments);else if(Array.isArray(h)||x(h)||l(h))for(Y=this.options.noValidation,this.options.noValidation=!0,X=new O(this.options).element("TEMP_ROOT"),X.element(h),this.options.noValidation=Y,M=X.children,S=0,E=M.length;S<E;S++)N=M[S],this.createChildNode(N),N.type===t.Element&&this.up();else this.node(h,f,b);return this}attribute(h,f){var b,N;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(h));if(h!=null&&(h=m(h)),x(h))for(b in h)G.call(h,b)&&(N=h[b],this.attribute(b,N));else l(f)&&(f=f.apply()),this.options.keepNullAttributes&&f==null?this.currentNode.attribs[h]=new e(this,h,""):f!=null&&(this.currentNode.attribs[h]=new e(this,h,f));return this}text(h){var f;return this.openCurrent(),f=new p(this,h),this.onData(this.writer.text(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(h){var f;return this.openCurrent(),f=new s(this,h),this.onData(this.writer.cdata(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(h){var f;return this.openCurrent(),f=new i(this,h),this.onData(this.writer.comment(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(h){var f;return this.openCurrent(),f=new K(this,h),this.onData(this.writer.raw(f,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(h,f){var b,N,S,E,Y;if(this.openCurrent(),h!=null&&(h=m(h)),f!=null&&(f=m(f)),Array.isArray(h))for(b=0,E=h.length;b<E;b++)N=h[b],this.instruction(N);else if(x(h))for(N in h)G.call(h,N)&&(S=h[N],this.instruction(N,S));else l(f)&&(f=f.apply()),Y=new z(this,h,f),this.onData(this.writer.processingInstruction(Y,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(h,f,b){var N;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return N=new _(this,h,f,b),this.onData(this.writer.declaration(N,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(h,f,b){if(this.openCurrent(),h==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new d(this,f,b),this.currentNode.rootNodeName=h,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(h,f){var b;return this.openCurrent(),b=new a(this,h,f),this.onData(this.writer.dtdElement(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(h,f,b,N,S){var E;return this.openCurrent(),E=new r(this,h,f,b,N,S),this.onData(this.writer.dtdAttList(E,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(h,f){var b;return this.openCurrent(),b=new n(this,!1,h,f),this.onData(this.writer.dtdEntity(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(h,f){var b;return this.openCurrent(),b=new n(this,!0,h,f),this.onData(this.writer.dtdEntity(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(h,f){var b;return this.openCurrent(),b=new c(this,h,f),this.onData(this.writer.dtdNotation(b,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(h){var f,b,N,S;if(!h.isOpen){if(!this.root&&this.currentLevel===0&&h.type===t.Element&&(this.root=h),b="",h.type===t.Element){this.writerOptions.state=o.OpenTag,b=this.writer.indent(h,this.writerOptions,this.currentLevel)+"<"+h.name,S=h.attribs;for(N in S)G.call(S,N)&&(f=S[N],b+=this.writer.attribute(f,this.writerOptions,this.currentLevel));b+=(h.children?">":"/>")+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=o.InsideTag}else this.writerOptions.state=o.OpenTag,b=this.writer.indent(h,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+h.rootNodeName,h.pubID&&h.sysID?b+=' PUBLIC "'+h.pubID+'" "'+h.sysID+'"':h.sysID&&(b+=' SYSTEM "'+h.sysID+'"'),h.children?(b+=" [",this.writerOptions.state=o.InsideTag):(this.writerOptions.state=o.CloseTag,b+=">"),b+=this.writer.endline(h,this.writerOptions,this.currentLevel);return this.onData(b,this.currentLevel),h.isOpen=!0}}closeNode(h){var f;if(!h.isClosed)return f="",this.writerOptions.state=o.CloseTag,h.type===t.Element?f=this.writer.indent(h,this.writerOptions,this.currentLevel)+"</"+h.name+">"+this.writer.endline(h,this.writerOptions,this.currentLevel):f=this.writer.indent(h,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(h,this.writerOptions,this.currentLevel),this.writerOptions.state=o.None,this.onData(f,this.currentLevel),h.isClosed=!0}onData(h,f){return this.documentStarted=!0,this.onDataCallback(h,f+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(h){return h==null?"":"node: <"+h+">"}ele(){return this.element(...arguments)}nod(h,f,b){return this.node(h,f,b)}txt(h){return this.text(h)}dat(h){return this.cdata(h)}com(h){return this.comment(h)}ins(h,f){return this.instruction(h,f)}dec(h,f,b){return this.declaration(h,f,b)}dtd(h,f,b){return this.doctype(h,f,b)}e(h,f,b){return this.element(h,f,b)}n(h,f,b){return this.node(h,f,b)}t(h){return this.text(h)}d(h){return this.cdata(h)}c(h){return this.comment(h)}r(h){return this.raw(h)}i(h,f){return this.instruction(h,f)}att(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===t.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(h,f){return this.entity(h,f)}pent(h,f){return this.pEntity(h,f)}not(h,f){return this.notation(h,f)}}}).call(Du)});var e_=V((o_,t_)=>{(function(){var t,o,e,s,i={}.hasOwnProperty;t=Q(),s=mr(),o=ze(),t_.exports=e=class extends s{constructor(a,n){super(n),this.stream=a}endline(a,n,c){return a.isLastRootNode&&n.state===o.CloseTag?"":super.endline(a,n,c)}document(a,n){var c,_,d,O,g,w,z,K,q;for(z=a.children,_=d=0,g=z.length;d<g;_=++d)c=z[_],c.isLastRootNode=_===a.children.length-1;for(n=this.filterOptions(n),K=a.children,q=[],O=0,w=K.length;O<w;O++)c=K[O],q.push(this.writeChildNode(c,n,0));return q}cdata(a,n,c){return this.stream.write(super.cdata(a,n,c))}comment(a,n,c){return this.stream.write(super.comment(a,n,c))}declaration(a,n,c){return this.stream.write(super.declaration(a,n,c))}docType(a,n,c){var _,d,O,g;if(c||(c=0),this.openNode(a,n,c),n.state=o.OpenTag,this.stream.write(this.indent(a,n,c)),this.stream.write("<!DOCTYPE "+a.root().name),a.pubID&&a.sysID?this.stream.write(' PUBLIC "'+a.pubID+'" "'+a.sysID+'"'):a.sysID&&this.stream.write(' SYSTEM "'+a.sysID+'"'),a.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(a,n,c)),n.state=o.InsideTag,g=a.children,d=0,O=g.length;d<O;d++)_=g[d],this.writeChildNode(_,n,c+1);n.state=o.CloseTag,this.stream.write("]")}return n.state=o.CloseTag,this.stream.write(n.spaceBeforeSlash+">"),this.stream.write(this.endline(a,n,c)),n.state=o.None,this.closeNode(a,n,c)}element(a,n,c){var _,d,O,g,w,z,K,q,v,p,m,l,x,u,G,y;if(c||(c=0),this.openNode(a,n,c),n.state=o.OpenTag,m=this.indent(a,n,c)+"<"+a.name,n.pretty&&n.width>0){K=m.length,x=a.attribs;for(v in x)i.call(x,v)&&(_=x[v],l=this.attribute(_,n,c),d=l.length,K+d>n.width?(y=this.indent(a,n,c+1)+l,m+=this.endline(a,n,c)+y,K=y.length):(y=" "+l,m+=y,K+=y.length))}else{u=a.attribs;for(v in u)i.call(u,v)&&(_=u[v],m+=this.attribute(_,n,c))}if(this.stream.write(m),g=a.children.length,w=g===0?null:a.children[0],g===0||a.children.every(function(h){return(h.type===t.Text||h.type===t.Raw||h.type===t.CData)&&h.value===""}))n.allowEmpty?(this.stream.write(">"),n.state=o.CloseTag,this.stream.write("</"+a.name+">")):(n.state=o.CloseTag,this.stream.write(n.spaceBeforeSlash+"/>"));else if(n.pretty&&g===1&&(w.type===t.Text||w.type===t.Raw||w.type===t.CData)&&w.value!=null)this.stream.write(">"),n.state=o.InsideTag,n.suppressPrettyCount++,p=!0,this.writeChildNode(w,n,c+1),n.suppressPrettyCount--,p=!1,n.state=o.CloseTag,this.stream.write("</"+a.name+">");else{for(this.stream.write(">"+this.endline(a,n,c)),n.state=o.InsideTag,G=a.children,z=0,q=G.length;z<q;z++)O=G[z],this.writeChildNode(O,n,c+1);n.state=o.CloseTag,this.stream.write(this.indent(a,n,c)+"</"+a.name+">")}return this.stream.write(this.endline(a,n,c)),n.state=o.None,this.closeNode(a,n,c)}processingInstruction(a,n,c){return this.stream.write(super.processingInstruction(a,n,c))}raw(a,n,c){return this.stream.write(super.raw(a,n,c))}text(a,n,c){return this.stream.write(super.text(a,n,c))}dtdAttList(a,n,c){return this.stream.write(super.dtdAttList(a,n,c))}dtdElement(a,n,c){return this.stream.write(super.dtdElement(a,n,c))}dtdEntity(a,n,c){return this.stream.write(super.dtdEntity(a,n,c))}dtdNotation(a,n,c){return this.stream.write(super.dtdNotation(a,n,c))}}}).call(o_)});var i_=V((s_,at)=>{(function(){var t,o,e,s,i,r,a,n,c;({assign:n,isFunction:c}=Eo()),e=lr(),s=gr(),i=Hu(),a=Rs(),r=e_(),t=Q(),o=ze(),at.exports.create=function(_,d,O,g){var w,z;if(_==null)throw new Error("Root element needs a name.");return g=n({},d,O,g),w=new s(g),z=w.element(_),g.headless||(w.declaration(g),(g.pubID!=null||g.sysID!=null)&&w.dtd(g)),z},at.exports.begin=function(_,d,O){return c(_)&&([d,O]=[_,d],_={}),d?new i(_,d,O):new s(_)},at.exports.stringWriter=function(_){return new a(_)},at.exports.streamWriter=function(_,d){return new r(_,d)},at.exports.implementation=new e,at.exports.nodeType=t,at.exports.writerState=o}).call(s_)});var c_=V(Ke=>{"use strict";var n_=Ke&&Ke.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.build=Mg;var r_=n_(Il()),Ng=n_(i_());function Sg(t){function o(e){return e<10?"0"+e:e}return t.getUTCFullYear()+"-"+o(t.getUTCMonth()+1)+"-"+o(t.getUTCDate())+"T"+o(t.getUTCHours())+":"+o(t.getUTCMinutes())+":"+o(t.getUTCSeconds())+"Z"}var Fg=Object.prototype.toString;function a_(t){let o=Fg.call(t).match(/\[object (.*)\]/);return o&&o[1]}function Mg(t,o){let e={version:"1.0",encoding:"UTF-8"},s={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"},i=Ng.default.create("plist");return i.dec(e.version,e.encoding,e.standalone),i.dtd(s.pubid,s.sysid),i.att("version","1.0"),Or(t,i),o||(o={}),o.pretty=o.pretty!==!1,i.end(o)}function Or(t,o){let e,s,i,r=a_(t);if(r!=="Undefined")if(Array.isArray(t))for(o=o.ele("array"),s=0;s<t.length;s++)Or(t[s],o);else if(Buffer.isBuffer(t))o.ele("data").raw(t.toString("base64"));else if(r==="Object"){o=o.ele("dict");for(i in t)t.hasOwnProperty(i)&&t[i]!==void 0&&(o.ele("key").txt(i),Or(t[i],o))}else r==="Number"?(e=t%1===0?"integer":"real",o.ele(e).txt(t.toString())):r==="Date"?o.ele("date").txt(Sg(new Date(t))):r==="Boolean"?o.ele(t?"true":"false"):r==="String"?o.ele("string").txt(t):r==="ArrayBuffer"?o.ele("data").raw(r_.default.fromByteArray(t)):t&&t.buffer&&a_(t.buffer)==="ArrayBuffer"&&o.ele("data").raw(r_.default.fromByteArray(new Uint8Array(t.buffer)))}});var ke=V(Yt=>{"use strict";function Vg(t,o,e){if(e===void 0&&(e=Array.prototype),t&&typeof e.find=="function")return e.find.call(t,o);for(var s=0;s<t.length;s++)if(Object.prototype.hasOwnProperty.call(t,s)){var i=t[s];if(o.call(void 0,i,s,t))return i}}function wr(t,o){return o===void 0&&(o=Object),o&&typeof o.freeze=="function"?o.freeze(t):t}function Eg(t,o){if(t===null||typeof t!="object")throw new TypeError("target is not an object");for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e]);return t}var l_=wr({HTML:"text/html",isHTML:function(t){return t===l_.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),u_=wr({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(t){return t===u_.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});Yt.assign=Eg;Yt.find=Vg;Yt.freeze=wr;Yt.MIME_TYPE=l_;Yt.NAMESPACE=u_});var vr=V(nt=>{var y_=ke(),Xo=y_.find,Ge=y_.NAMESPACE;function Xg(t){return t!==""}function Yg(t){return t?t.split(/[\t\n\f\r ]+/).filter(Xg):[]}function Zg(t,o){return t.hasOwnProperty(o)||(t[o]=!0),t}function __(t){if(!t)return[];var o=Yg(t);return Object.keys(o.reduce(Zg,{}))}function Ig(t){return function(o){return t&&t.indexOf(o)!==-1}}function be(t,o){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}function uo(t,o){var e=t.prototype;if(!(e instanceof o)){let i=function(){};var s=i;i.prototype=o.prototype,i=new i,be(e,i),t.prototype=e=i}e.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),e.constructor=t)}var _o={},po=_o.ELEMENT_NODE=1,It=_o.ATTRIBUTE_NODE=2,Js=_o.TEXT_NODE=3,h_=_o.CDATA_SECTION_NODE=4,f_=_o.ENTITY_REFERENCE_NODE=5,Pg=_o.ENTITY_NODE=6,z_=_o.PROCESSING_INSTRUCTION_NODE=7,K_=_o.COMMENT_NODE=8,k_=_o.DOCUMENT_NODE=9,G_=_o.DOCUMENT_TYPE_NODE=10,Ro=_o.DOCUMENT_FRAGMENT_NODE=11,Lg=_o.NOTATION_NODE=12,io={},$={},vd=io.INDEX_SIZE_ERR=($[1]="Index size error",1),qd=io.DOMSTRING_SIZE_ERR=($[2]="DOMString size error",2),lo=io.HIERARCHY_REQUEST_ERR=($[3]="Hierarchy request error",3),pd=io.WRONG_DOCUMENT_ERR=($[4]="Wrong document",4),Cd=io.INVALID_CHARACTER_ERR=($[5]="Invalid character",5),Nd=io.NO_DATA_ALLOWED_ERR=($[6]="No data allowed",6),Sd=io.NO_MODIFICATION_ALLOWED_ERR=($[7]="No modification allowed",7),W_=io.NOT_FOUND_ERR=($[8]="Not found",8),Fd=io.NOT_SUPPORTED_ERR=($[9]="Not supported",9),x_=io.INUSE_ATTRIBUTE_ERR=($[10]="Attribute in use",10),Md=io.INVALID_STATE_ERR=($[11]="Invalid state",11),Vd=io.SYNTAX_ERR=($[12]="Syntax error",12),Ed=io.INVALID_MODIFICATION_ERR=($[13]="Invalid modification",13),Xd=io.NAMESPACE_ERR=($[14]="Invalid namespace",14),Yd=io.INVALID_ACCESS_ERR=($[15]="Invalid access",15);function A(t,o){if(o instanceof Error)var e=o;else e=this,Error.call(this,$[t]),this.message=$[t],Error.captureStackTrace&&Error.captureStackTrace(this,A);return e.code=t,o&&(this.message=this.message+": "+o),e}A.prototype=Error.prototype;be(io,A);function jo(){}jo.prototype={length:0,item:function(t){return t>=0&&t<this.length?this[t]:null},toString:function(t,o){for(var e=[],s=0;s<this.length;s++)Zt(this[s],e,t,o);return e.join("")},filter:function(t){return Array.prototype.filter.call(this,t)},indexOf:function(t){return Array.prototype.indexOf.call(this,t)}};function Pt(t,o){this._node=t,this._refresh=o,hr(this)}function hr(t){var o=t._node._inc||t._node.ownerDocument._inc;if(t._inc!==o){var e=t._refresh(t._node);if(X_(t,"length",e.length),!t.$$length||e.length<t.$$length)for(var s=e.length;s in t;s++)Object.prototype.hasOwnProperty.call(t,s)&&delete t[s];be(e,t),t._inc=o}}Pt.prototype.item=function(t){return hr(this),this[t]||null};uo(Pt,jo);function Bs(){}function b_(t,o){for(var e=t.length;e--;)if(t[e]===o)return e}function m_(t,o,e,s){if(s?o[b_(o,s)]=e:o[o.length++]=e,t){e.ownerElement=t;var i=t.ownerDocument;i&&(s&&p_(i,t,s),Tg(i,t,e))}}function g_(t,o,e){var s=b_(o,e);if(s>=0){for(var i=o.length-1;s<i;)o[s]=o[++s];if(o.length=i,t){var r=t.ownerDocument;r&&(p_(r,t,e),e.ownerElement=null)}}else throw new A(W_,new Error(t.tagName+"@"+e))}Bs.prototype={length:0,item:jo.prototype.item,getNamedItem:function(t){for(var o=this.length;o--;){var e=this[o];if(e.nodeName==t)return e}},setNamedItem:function(t){var o=t.ownerElement;if(o&&o!=this._ownerElement)throw new A(x_);var e=this.getNamedItem(t.nodeName);return m_(this._ownerElement,this,t,e),e},setNamedItemNS:function(t){var o=t.ownerElement,e;if(o&&o!=this._ownerElement)throw new A(x_);return e=this.getNamedItemNS(t.namespaceURI,t.localName),m_(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var o=this.getNamedItem(t);return g_(this._ownerElement,this,o),o},removeNamedItemNS:function(t,o){var e=this.getNamedItemNS(t,o);return g_(this._ownerElement,this,e),e},getNamedItemNS:function(t,o){for(var e=this.length;e--;){var s=this[e];if(s.localName==o&&s.namespaceURI==t)return s}return null}};function v_(){}v_.prototype={hasFeature:function(t,o){return!0},createDocument:function(t,o,e){var s=new ve;if(s.implementation=this,s.childNodes=new jo,s.doctype=e||null,e&&s.appendChild(e),o){var i=s.createElementNS(t,o);s.appendChild(i)}return s},createDocumentType:function(t,o,e){var s=new Hs;return s.name=t,s.nodeName=t,s.publicId=o||"",s.systemId=e||"",s}};function L(){}L.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,o){return Ds(this,t,o)},replaceChild:function(t,o){Ds(this,t,o,N_),o&&this.removeChild(o)},removeChild:function(t){return C_(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(t){return yr(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var o=t.nextSibling;o&&o.nodeType==Js&&t.nodeType==Js?(this.removeChild(o),t.appendData(o.data)):(t.normalize(),t=o)}},isSupported:function(t,o){return this.ownerDocument.implementation.hasFeature(t,o)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var o=this;o;){var e=o._nsMap;if(e){for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]===t)return s}o=o.nodeType==It?o.ownerDocument:o.parentNode}return null},lookupNamespaceURI:function(t){for(var o=this;o;){var e=o._nsMap;if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t];o=o.nodeType==It?o.ownerDocument:o.parentNode}return null},isDefaultNamespace:function(t){var o=this.lookupPrefix(t);return o==null}};function q_(t){return t=="<"&&"&lt;"||t==">"&&"&gt;"||t=="&"&&"&amp;"||t=='"'&&"&quot;"||"&#"+t.charCodeAt()+";"}be(_o,L);be(_o,L.prototype);function We(t,o){if(o(t))return!0;if(t=t.firstChild)do if(We(t,o))return!0;while(t=t.nextSibling)}function ve(){this.ownerDocument=this}function Tg(t,o,e){t&&t._inc++;var s=e.namespaceURI;s===Ge.XMLNS&&(o._nsMap[e.prefix?e.localName:""]=e.value)}function p_(t,o,e,s){t&&t._inc++;var i=e.namespaceURI;i===Ge.XMLNS&&delete o._nsMap[e.prefix?e.localName:""]}function fr(t,o,e){if(t&&t._inc){t._inc++;var s=o.childNodes;if(e)s[s.length++]=e;else{for(var i=o.firstChild,r=0;i;)s[r++]=i,i=i.nextSibling;s.length=r,delete s[s.length]}}}function C_(t,o){var e=o.previousSibling,s=o.nextSibling;return e?e.nextSibling=s:t.firstChild=s,s?s.previousSibling=e:t.lastChild=e,o.parentNode=null,o.previousSibling=null,o.nextSibling=null,fr(t.ownerDocument,t),o}function Ug(t){return t&&(t.nodeType===L.DOCUMENT_NODE||t.nodeType===L.DOCUMENT_FRAGMENT_NODE||t.nodeType===L.ELEMENT_NODE)}function Qg(t){return t&&(Yo(t)||zr(t)||Jo(t)||t.nodeType===L.DOCUMENT_FRAGMENT_NODE||t.nodeType===L.COMMENT_NODE||t.nodeType===L.PROCESSING_INSTRUCTION_NODE)}function Jo(t){return t&&t.nodeType===L.DOCUMENT_TYPE_NODE}function Yo(t){return t&&t.nodeType===L.ELEMENT_NODE}function zr(t){return t&&t.nodeType===L.TEXT_NODE}function O_(t,o){var e=t.childNodes||[];if(Xo(e,Yo)||Jo(o))return!1;var s=Xo(e,Jo);return!(o&&s&&e.indexOf(s)>e.indexOf(o))}function w_(t,o){var e=t.childNodes||[];function s(r){return Yo(r)&&r!==o}if(Xo(e,s))return!1;var i=Xo(e,Jo);return!(o&&i&&e.indexOf(i)>e.indexOf(o))}function Ag(t,o,e){if(!Ug(t))throw new A(lo,"Unexpected parent node type "+t.nodeType);if(e&&e.parentNode!==t)throw new A(W_,"child not in parent");if(!Qg(o)||Jo(o)&&t.nodeType!==L.DOCUMENT_NODE)throw new A(lo,"Unexpected node type "+o.nodeType+" for parent node type "+t.nodeType)}function jg(t,o,e){var s=t.childNodes||[],i=o.childNodes||[];if(o.nodeType===L.DOCUMENT_FRAGMENT_NODE){var r=i.filter(Yo);if(r.length>1||Xo(i,zr))throw new A(lo,"More than one element or text in fragment");if(r.length===1&&!O_(t,e))throw new A(lo,"Element in fragment can not be inserted before doctype")}if(Yo(o)&&!O_(t,e))throw new A(lo,"Only one element can be added and only after doctype");if(Jo(o)){if(Xo(s,Jo))throw new A(lo,"Only one doctype is allowed");var a=Xo(s,Yo);if(e&&s.indexOf(a)<s.indexOf(e))throw new A(lo,"Doctype can only be inserted before an element");if(!e&&a)throw new A(lo,"Doctype can not be appended since element is present")}}function N_(t,o,e){var s=t.childNodes||[],i=o.childNodes||[];if(o.nodeType===L.DOCUMENT_FRAGMENT_NODE){var r=i.filter(Yo);if(r.length>1||Xo(i,zr))throw new A(lo,"More than one element or text in fragment");if(r.length===1&&!w_(t,e))throw new A(lo,"Element in fragment can not be inserted before doctype")}if(Yo(o)&&!w_(t,e))throw new A(lo,"Only one element can be added and only after doctype");if(Jo(o)){let c=function(_){return Jo(_)&&_!==e};var n=c;if(Xo(s,c))throw new A(lo,"Only one doctype is allowed");var a=Xo(s,Yo);if(e&&s.indexOf(a)<s.indexOf(e))throw new A(lo,"Doctype can only be inserted before an element")}}function Ds(t,o,e,s){Ag(t,o,e),t.nodeType===L.DOCUMENT_NODE&&(s||jg)(t,o,e);var i=o.parentNode;if(i&&i.removeChild(o),o.nodeType===Ro){var r=o.firstChild;if(r==null)return o;var a=o.lastChild}else r=a=o;var n=e?e.previousSibling:t.lastChild;r.previousSibling=n,a.nextSibling=e,n?n.nextSibling=r:t.firstChild=r,e==null?t.lastChild=a:e.previousSibling=a;do r.parentNode=t;while(r!==a&&(r=r.nextSibling));return fr(t.ownerDocument||t,t),o.nodeType==Ro&&(o.firstChild=o.lastChild=null),o}function Rg(t,o){return o.parentNode&&o.parentNode.removeChild(o),o.parentNode=t,o.previousSibling=t.lastChild,o.nextSibling=null,o.previousSibling?o.previousSibling.nextSibling=o:t.firstChild=o,t.lastChild=o,fr(t.ownerDocument,t,o),o}ve.prototype={nodeName:"#document",nodeType:k_,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,o){if(t.nodeType==Ro){for(var e=t.firstChild;e;){var s=e.nextSibling;this.insertBefore(e,o),e=s}return t}return Ds(this,t,o),t.ownerDocument=this,this.documentElement===null&&t.nodeType===po&&(this.documentElement=t),t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),C_(this,t)},replaceChild:function(t,o){Ds(this,t,o,N_),t.ownerDocument=this,o&&this.removeChild(o),Yo(t)&&(this.documentElement=t)},importNode:function(t,o){return E_(this,t,o)},getElementById:function(t){var o=null;return We(this.documentElement,function(e){if(e.nodeType==po&&e.getAttribute("id")==t)return o=e,!0}),o},getElementsByClassName:function(t){var o=__(t);return new Pt(this,function(e){var s=[];return o.length>0&&We(e.documentElement,function(i){if(i!==e&&i.nodeType===po){var r=i.getAttribute("class");if(r){var a=t===r;if(!a){var n=__(r);a=o.every(Ig(n))}a&&s.push(i)}}}),s})},createElement:function(t){var o=new dt;o.ownerDocument=this,o.nodeName=t,o.tagName=t,o.localName=t,o.childNodes=new jo;var e=o.attributes=new Bs;return e._ownerElement=o,o},createDocumentFragment:function(){var t=new oi;return t.ownerDocument=this,t.childNodes=new jo,t},createTextNode:function(t){var o=new Kr;return o.ownerDocument=this,o.appendData(t),o},createComment:function(t){var o=new kr;return o.ownerDocument=this,o.appendData(t),o},createCDATASection:function(t){var o=new Gr;return o.ownerDocument=this,o.appendData(t),o},createProcessingInstruction:function(t,o){var e=new br;return e.ownerDocument=this,e.tagName=e.nodeName=e.target=t,e.nodeValue=e.data=o,e},createAttribute:function(t){var o=new $s;return o.ownerDocument=this,o.name=t,o.nodeName=t,o.localName=t,o.specified=!0,o},createEntityReference:function(t){var o=new Wr;return o.ownerDocument=this,o.nodeName=t,o},createElementNS:function(t,o){var e=new dt,s=o.split(":"),i=e.attributes=new Bs;return e.childNodes=new jo,e.ownerDocument=this,e.nodeName=o,e.tagName=o,e.namespaceURI=t,s.length==2?(e.prefix=s[0],e.localName=s[1]):e.localName=o,i._ownerElement=e,e},createAttributeNS:function(t,o){var e=new $s,s=o.split(":");return e.ownerDocument=this,e.nodeName=o,e.name=o,e.namespaceURI=t,e.specified=!0,s.length==2?(e.prefix=s[0],e.localName=s[1]):e.localName=o,e}};uo(ve,L);function dt(){this._nsMap={}}dt.prototype={nodeType:po,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var o=this.getAttributeNode(t);return o&&o.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,o){var e=this.ownerDocument.createAttribute(t);e.value=e.nodeValue=""+o,this.setAttributeNode(e)},removeAttribute:function(t){var o=this.getAttributeNode(t);o&&this.removeAttributeNode(o)},appendChild:function(t){return t.nodeType===Ro?this.insertBefore(t,null):Rg(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,o){var e=this.getAttributeNodeNS(t,o);e&&this.removeAttributeNode(e)},hasAttributeNS:function(t,o){return this.getAttributeNodeNS(t,o)!=null},getAttributeNS:function(t,o){var e=this.getAttributeNodeNS(t,o);return e&&e.value||""},setAttributeNS:function(t,o,e){var s=this.ownerDocument.createAttributeNS(t,o);s.value=s.nodeValue=""+e,this.setAttributeNode(s)},getAttributeNodeNS:function(t,o){return this.attributes.getNamedItemNS(t,o)},getElementsByTagName:function(t){return new Pt(this,function(o){var e=[];return We(o,function(s){s!==o&&s.nodeType==po&&(t==="*"||s.tagName==t)&&e.push(s)}),e})},getElementsByTagNameNS:function(t,o){return new Pt(this,function(e){var s=[];return We(e,function(i){i!==e&&i.nodeType===po&&(t==="*"||i.namespaceURI===t)&&(o==="*"||i.localName==o)&&s.push(i)}),s})}};ve.prototype.getElementsByTagName=dt.prototype.getElementsByTagName;ve.prototype.getElementsByTagNameNS=dt.prototype.getElementsByTagNameNS;uo(dt,L);function $s(){}$s.prototype.nodeType=It;uo($s,L);function qe(){}qe.prototype={data:"",substringData:function(t,o){return this.data.substring(t,t+o)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,o){this.replaceData(t,0,o)},appendChild:function(t){throw new Error($[lo])},deleteData:function(t,o){this.replaceData(t,o,"")},replaceData:function(t,o,e){var s=this.data.substring(0,t),i=this.data.substring(t+o);e=s+e+i,this.nodeValue=this.data=e,this.length=e.length}};uo(qe,L);function Kr(){}Kr.prototype={nodeName:"#text",nodeType:Js,splitText:function(t){var o=this.data,e=o.substring(t);o=o.substring(0,t),this.data=this.nodeValue=o,this.length=o.length;var s=this.ownerDocument.createTextNode(e);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}};uo(Kr,qe);function kr(){}kr.prototype={nodeName:"#comment",nodeType:K_};uo(kr,qe);function Gr(){}Gr.prototype={nodeName:"#cdata-section",nodeType:h_};uo(Gr,qe);function Hs(){}Hs.prototype.nodeType=G_;uo(Hs,L);function S_(){}S_.prototype.nodeType=Lg;uo(S_,L);function F_(){}F_.prototype.nodeType=Pg;uo(F_,L);function Wr(){}Wr.prototype.nodeType=f_;uo(Wr,L);function oi(){}oi.prototype.nodeName="#document-fragment";oi.prototype.nodeType=Ro;uo(oi,L);function br(){}br.prototype.nodeType=z_;uo(br,L);function M_(){}M_.prototype.serializeToString=function(t,o,e){return V_.call(t,o,e)};L.prototype.toString=V_;function V_(t,o){var e=[],s=this.nodeType==9&&this.documentElement||this,i=s.prefix,r=s.namespaceURI;if(r&&i==null){var i=s.lookupPrefix(r);if(i==null)var a=[{namespace:r,prefix:null}]}return Zt(this,e,t,o,a),e.join("")}function d_(t,o,e){var s=t.prefix||"",i=t.namespaceURI;if(!i||s==="xml"&&i===Ge.XML||i===Ge.XMLNS)return!1;for(var r=e.length;r--;){var a=e[r];if(a.prefix===s)return a.namespace!==i}return!0}function dr(t,o,e){t.push(" ",o,'="',e.replace(/[<>&"\t\n\r]/g,q_),'"')}function Zt(t,o,e,s,i){if(i||(i=[]),s)if(t=s(t),t){if(typeof t=="string"){o.push(t);return}}else return;switch(t.nodeType){case po:var r=t.attributes,a=r.length,v=t.firstChild,n=t.tagName;e=Ge.isHTML(t.namespaceURI)||e;var c=n;if(!e&&!t.prefix&&t.namespaceURI){for(var _,d=0;d<r.length;d++)if(r.item(d).name==="xmlns"){_=r.item(d).value;break}if(!_)for(var O=i.length-1;O>=0;O--){var g=i[O];if(g.prefix===""&&g.namespace===t.namespaceURI){_=g.namespace;break}}if(_!==t.namespaceURI)for(var O=i.length-1;O>=0;O--){var g=i[O];if(g.namespace===t.namespaceURI){g.prefix&&(c=g.prefix+":"+n);break}}}o.push("<",c);for(var w=0;w<a;w++){var z=r.item(w);z.prefix=="xmlns"?i.push({prefix:z.localName,namespace:z.value}):z.nodeName=="xmlns"&&i.push({prefix:"",namespace:z.value})}for(var w=0;w<a;w++){var z=r.item(w);if(d_(z,e,i)){var K=z.prefix||"",q=z.namespaceURI;dr(o,K?"xmlns:"+K:"xmlns",q),i.push({prefix:K,namespace:q})}Zt(z,o,e,s,i)}if(n===c&&d_(t,e,i)){var K=t.prefix||"",q=t.namespaceURI;dr(o,K?"xmlns:"+K:"xmlns",q),i.push({prefix:K,namespace:q})}if(v||e&&!/^(?:meta|link|img|br|hr|input)$/i.test(n)){if(o.push(">"),e&&/^script$/i.test(n))for(;v;)v.data?o.push(v.data):Zt(v,o,e,s,i.slice()),v=v.nextSibling;else for(;v;)Zt(v,o,e,s,i.slice()),v=v.nextSibling;o.push("</",c,">")}else o.push("/>");return;case k_:case Ro:for(var v=t.firstChild;v;)Zt(v,o,e,s,i.slice()),v=v.nextSibling;return;case It:return dr(o,t.name,t.value);case Js:return o.push(t.data.replace(/[<&>]/g,q_));case h_:return o.push("<![CDATA[",t.data,"]]>");case K_:return o.push("<!--",t.data,"-->");case G_:var p=t.publicId,m=t.systemId;if(o.push("<!DOCTYPE ",t.name),p)o.push(" PUBLIC ",p),m&&m!="."&&o.push(" ",m),o.push(">");else if(m&&m!=".")o.push(" SYSTEM ",m,">");else{var l=t.internalSubset;l&&o.push(" [",l,"]"),o.push(">")}return;case z_:return o.push("<?",t.target," ",t.data,"?>");case f_:return o.push("&",t.nodeName,";");default:o.push("??",t.nodeName)}}function E_(t,o,e){var s;switch(o.nodeType){case po:s=o.cloneNode(!1),s.ownerDocument=t;case Ro:break;case It:e=!0;break}if(s||(s=o.cloneNode(!1)),s.ownerDocument=t,s.parentNode=null,e)for(var i=o.firstChild;i;)s.appendChild(E_(t,i,e)),i=i.nextSibling;return s}function yr(t,o,e){var s=new o.constructor;for(var i in o)if(Object.prototype.hasOwnProperty.call(o,i)){var r=o[i];typeof r!="object"&&r!=s[i]&&(s[i]=r)}switch(o.childNodes&&(s.childNodes=new jo),s.ownerDocument=t,s.nodeType){case po:var a=o.attributes,n=s.attributes=new Bs,c=a.length;n._ownerElement=s;for(var _=0;_<c;_++)s.setAttributeNode(yr(t,a.item(_),!0));break;case It:e=!0}if(e)for(var d=o.firstChild;d;)s.appendChild(yr(t,d,e)),d=d.nextSibling;return s}function X_(t,o,e){t[o]=e}try{if(Object.defineProperty){let t=function(o){switch(o.nodeType){case po:case Ro:var e=[];for(o=o.firstChild;o;)o.nodeType!==7&&o.nodeType!==8&&e.push(t(o)),o=o.nextSibling;return e.join("");default:return o.nodeValue}};Jg=t,Object.defineProperty(Pt.prototype,"length",{get:function(){return hr(this),this.$$length}}),Object.defineProperty(L.prototype,"textContent",{get:function(){return t(this)},set:function(o){switch(this.nodeType){case po:case Ro:for(;this.firstChild;)this.removeChild(this.firstChild);(o||String(o))&&this.appendChild(this.ownerDocument.createTextNode(o));break;default:this.data=o,this.value=o,this.nodeValue=o}}}),X_=function(o,e,s){o["$$"+e]=s}}}catch{}var Jg;nt.DocumentType=Hs;nt.DOMException=A;nt.DOMImplementation=v_;nt.Element=dt;nt.Node=L;nt.NodeList=jo;nt.XMLSerializer=M_});var Z_=V(pe=>{"use strict";var Y_=ke().freeze;pe.XML_ENTITIES=Y_({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'});pe.HTML_ENTITIES=Y_({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
14
+ `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"});pe.entityMap=pe.HTML_ENTITIES});var j_=V(pr=>{var Fe=ke().NAMESPACE,qr=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,I_=new RegExp("[\\-\\.0-9"+qr.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),P_=new RegExp("^"+qr.source+I_.source+"*(?::"+qr.source+I_.source+"*)?$"),Ce=0,ct=1,Lt=2,Ne=3,Tt=4,Ut=5,Se=6,ti=7;function Qt(t,o){this.message=t,this.locator=o,Error.captureStackTrace&&Error.captureStackTrace(this,Qt)}Qt.prototype=new Error;Qt.prototype.name=Qt.name;function U_(){}U_.prototype={parse:function(t,o,e){var s=this.domBuilder;s.startDocument(),Q_(o,o={}),Bg(t,o,e,s,this.errorHandler),s.endDocument()}};function Bg(t,o,e,s,i){function r(M){if(M>65535){M-=65536;var X=55296+(M>>10),Z=56320+(M&1023);return String.fromCharCode(X,Z)}else return String.fromCharCode(M)}function a(M){var X=M.slice(1,-1);return Object.hasOwnProperty.call(e,X)?e[X]:X.charAt(0)==="#"?r(parseInt(X.substr(1).replace("x","0x"))):(i.error("entity not found:"+M),M)}function n(M){if(M>K){var X=t.substring(K,M).replace(/&#?\w+;/g,a);g&&c(K),s.characters(X,0,M-K),K=M}}function c(M,X){for(;M>=d&&(X=O.exec(t));)_=X.index,d=_+X[0].length,g.lineNumber++;g.columnNumber=M-_+1}for(var _=0,d=0,O=/.*(?:\r\n?|\n)|.*$/g,g=s.locator,w=[{currentNSMap:o}],z={},K=0;;){try{var q=t.indexOf("<",K);if(q<0){if(!t.substr(K).match(/^\s*$/)){var v=s.doc,p=v.createTextNode(t.substr(K));v.appendChild(p),s.currentElement=p}return}switch(q>K&&n(q),t.charAt(q+1)){case"/":var b=t.indexOf(">",q+3),m=t.substring(q+2,b).replace(/[ \t\n\r]+$/g,""),l=w.pop();b<0?(m=t.substring(q+2).replace(/[\s<].*/,""),i.error("end tag name: "+m+" is not complete:"+l.tagName),b=q+1+m.length):m.match(/\s</)&&(m=m.replace(/[\s<].*/,""),i.error("end tag name: "+m+" maybe not complete"),b=q+1+m.length);var x=l.localNSMap,u=l.tagName==m,G=u||l.tagName&&l.tagName.toLowerCase()==m.toLowerCase();if(G){if(s.endElement(l.uri,l.localName,m),x)for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&s.endPrefixMapping(y);u||i.fatalError("end tag name: "+m+" is not match the current start tagName:"+l.tagName)}else w.push(l);b++;break;case"?":g&&c(q),b=tO(t,q,s);break;case"!":g&&c(q),b=oO(t,q,s,i);break;default:g&&c(q);var h=new A_,f=w[w.length-1].currentNSMap,b=Dg(t,q,h,f,a,i),N=h.length;if(!h.closed&&Hg(t,b,h.tagName,z)&&(h.closed=!0,e.nbsp||i.warning("unclosed xml attribute")),g&&N){for(var S=L_(g,{}),E=0;E<N;E++){var Y=h[E];c(Y.offset),Y.locator=L_(g,{})}s.locator=S,T_(h,s,f)&&w.push(h),s.locator=g}else T_(h,s,f)&&w.push(h);Fe.isHTML(h.uri)&&!h.closed?b=$g(t,b,h.tagName,a,s):b++}}catch(M){if(M instanceof Qt)throw M;i.error("element parse error: "+M),b=-1}b>K?K=b:n(Math.max(q,K)+1)}}function L_(t,o){return o.lineNumber=t.lineNumber,o.columnNumber=t.columnNumber,o}function Dg(t,o,e,s,i,r){function a(w,z,K){e.attributeNames.hasOwnProperty(w)&&r.fatalError("Attribute "+w+" redefined"),e.addValue(w,z.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i),K)}for(var n,c,_=++o,d=Ce;;){var O=t.charAt(_);switch(O){case"=":if(d===ct)n=t.slice(o,_),d=Ne;else if(d===Lt)d=Ne;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(d===Ne||d===ct)if(d===ct&&(r.warning('attribute value must after "="'),n=t.slice(o,_)),o=_+1,_=t.indexOf(O,o),_>0)c=t.slice(o,_),a(n,c,o-1),d=Ut;else throw new Error("attribute value no end '"+O+"' match");else if(d==Tt)c=t.slice(o,_),a(n,c,o),r.warning('attribute "'+n+'" missed start quot('+O+")!!"),o=_+1,d=Ut;else throw new Error('attribute value must after "="');break;case"/":switch(d){case Ce:e.setTagName(t.slice(o,_));case Ut:case Se:case ti:d=ti,e.closed=!0;case Tt:case ct:break;case Lt:e.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return r.error("unexpected end of input"),d==Ce&&e.setTagName(t.slice(o,_)),_;case">":switch(d){case Ce:e.setTagName(t.slice(o,_));case Ut:case Se:case ti:break;case Tt:case ct:c=t.slice(o,_),c.slice(-1)==="/"&&(e.closed=!0,c=c.slice(0,-1));case Lt:d===Lt&&(c=n),d==Tt?(r.warning('attribute "'+c+'" missed quot(")!'),a(n,c,o)):((!Fe.isHTML(s[""])||!c.match(/^(?:disabled|checked|selected)$/i))&&r.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),a(c,c,o));break;case Ne:throw new Error("attribute value missed!!")}return _;case"\x80":O=" ";default:if(O<=" ")switch(d){case Ce:e.setTagName(t.slice(o,_)),d=Se;break;case ct:n=t.slice(o,_),d=Lt;break;case Tt:var c=t.slice(o,_);r.warning('attribute "'+c+'" missed quot(")!!'),a(n,c,o);case Ut:d=Se;break}else switch(d){case Lt:var g=e.tagName;(!Fe.isHTML(s[""])||!n.match(/^(?:disabled|checked|selected)$/i))&&r.warning('attribute "'+n+'" missed value!! "'+n+'" instead2!!'),a(n,n,o),o=_,d=ct;break;case Ut:r.warning('attribute space is required"'+n+'"!!');case Se:d=ct,o=_;break;case Ne:d=Tt,o=_;break;case ti:throw new Error("elements closed character '/' and '>' must be connected to")}}_++}}function T_(t,o,e){for(var s=t.tagName,i=null,O=t.length;O--;){var r=t[O],a=r.qName,n=r.value,g=a.indexOf(":");if(g>0)var c=r.prefix=a.slice(0,g),_=a.slice(g+1),d=c==="xmlns"&&_;else _=a,c=null,d=a==="xmlns"&&"";r.localName=_,d!==!1&&(i==null&&(i={},Q_(e,e={})),e[d]=i[d]=n,r.uri=Fe.XMLNS,o.startPrefixMapping(d,n))}for(var O=t.length;O--;){r=t[O];var c=r.prefix;c&&(c==="xml"&&(r.uri=Fe.XML),c!=="xmlns"&&(r.uri=e[c||""]))}var g=s.indexOf(":");g>0?(c=t.prefix=s.slice(0,g),_=t.localName=s.slice(g+1)):(c=null,_=t.localName=s);var w=t.uri=e[c||""];if(o.startElement(w,_,s,t),t.closed){if(o.endElement(w,_,s),i)for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&o.endPrefixMapping(c)}else return t.currentNSMap=e,t.localNSMap=i,!0}function $g(t,o,e,s,i){if(/^(?:script|textarea)$/i.test(e)){var r=t.indexOf("</"+e+">",o),a=t.substring(o+1,r);if(/[&<]/.test(a))return/^script$/i.test(e)?(i.characters(a,0,a.length),r):(a=a.replace(/&#?\w+;/g,s),i.characters(a,0,a.length),r)}return o+1}function Hg(t,o,e,s){var i=s[e];return i==null&&(i=t.lastIndexOf("</"+e+">"),i<o&&(i=t.lastIndexOf("</"+e)),s[e]=i),i<o}function Q_(t,o){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(o[e]=t[e])}function oO(t,o,e,s){var i=t.charAt(o+2);switch(i){case"-":if(t.charAt(o+3)==="-"){var r=t.indexOf("-->",o+4);return r>o?(e.comment(t,o+4,r-o-4),r+3):(s.error("Unclosed comment"),-1)}else return-1;default:if(t.substr(o+3,6)=="CDATA["){var r=t.indexOf("]]>",o+9);return e.startCDATA(),e.characters(t,o+9,r-o-9),e.endCDATA(),r+3}var a=eO(t,o),n=a.length;if(n>1&&/!doctype/i.test(a[0][0])){var c=a[1][0],_=!1,d=!1;n>3&&(/^public$/i.test(a[2][0])?(_=a[3][0],d=n>4&&a[4][0]):/^system$/i.test(a[2][0])&&(d=a[3][0]));var O=a[n-1];return e.startDTD(c,_,d),e.endDTD(),O.index+O[0].length}}return-1}function tO(t,o,e){var s=t.indexOf("?>",o);if(s){var i=t.substring(o,s).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){var r=i[0].length;return e.processingInstruction(i[1],i[2]),s+2}else return-1}return-1}function A_(){this.attributeNames={}}A_.prototype={setTagName:function(t){if(!P_.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},addValue:function(t,o,e){if(!P_.test(t))throw new Error("invalid attribute:"+t);this.attributeNames[t]=this.length,this[this.length++]={qName:t,value:o,offset:e}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}};function eO(t,o){var e,s=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=o,i.exec(t);e=i.exec(t);)if(s.push(e),e[1])return s}pr.XMLReader=U_;pr.ParseError=Qt});var ox=V(si=>{var sO=ke(),iO=vr(),R_=Z_(),D_=j_(),rO=iO.DOMImplementation,J_=sO.NAMESPACE,aO=D_.ParseError,nO=D_.XMLReader;function $_(t){return t.replace(/\r[\n\u0085]/g,`
15
15
  `).replace(/[\r\u0085\u2028]/g,`
16
- `)}function D_(t){this.options=t||{locator:{}}}D_.prototype.parseFromString=function(t,o){var e=this.options,s=new rO,i=e.domBuilder||new Me,r=e.errorHandler,a=e.locator,n=e.xmlns||{},c=/\/x?html?$/.test(o),_=c?A_.HTML_ENTITIES:A_.XML_ENTITIES;a&&i.setDocumentLocator(a),s.errorHandler=aO(r,i,a),s.domBuilder=e.domBuilder||i,c&&(n[""]=j_.HTML),n.xml=n.xml||j_.XML;var d=e.normalizeLineEndings||B_;return t&&typeof t=="string"?s.parse(d(t),n,_):s.errorHandler.error("invalid doc source"),i.doc};function aO(t,o,e){if(!t){if(o instanceof Me)return o;t=o}var s={},i=t instanceof Function;e=e||{};function r(a){var n=t[a];!n&&i&&(n=t.length==2?function(c){t(a,c)}:t),s[a]=n&&function(c){n("[xmldom "+a+"] "+c+pr(e))}||function(){}}return r("warning"),r("error"),r("fatalError"),s}function Me(){this.cdata=!1}function At(t,o){o.lineNumber=t.lineNumber,o.columnNumber=t.columnNumber}Me.prototype={startDocument:function(){this.doc=new sO().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,o,e,s){var i=this.doc,r=i.createElementNS(t,e||o),a=s.length;ti(this,r),this.currentElement=r,this.locator&&At(this.locator,r);for(var n=0;n<a;n++){var t=s.getURI(n),c=s.getValue(n),e=s.getQName(n),_=i.createAttributeNS(t,e);this.locator&&At(s.getLocator(n),_),_.value=_.nodeValue=c,r.setAttributeNode(_)}},endElement:function(t,o,e){var s=this.currentElement,i=s.tagName;this.currentElement=s.parentNode},startPrefixMapping:function(t,o){},endPrefixMapping:function(t){},processingInstruction:function(t,o){var e=this.doc.createProcessingInstruction(t,o);this.locator&&At(this.locator,e),ti(this,e)},ignorableWhitespace:function(t,o,e){},characters:function(t,o,e){if(t=R_.apply(this,arguments),t){if(this.cdata)var s=this.doc.createCDATASection(t);else var s=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(t)&&this.doc.appendChild(s),this.locator&&At(this.locator,s)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,o,e){t=R_.apply(this,arguments);var s=this.doc.createComment(t);this.locator&&At(this.locator,s),ti(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,o,e){var s=this.doc.implementation;if(s&&s.createDocumentType){var i=s.createDocumentType(t,o,e);this.locator&&At(this.locator,i),ti(this,i),this.doc.doctype=i}},warning:function(t){console.warn("[xmldom warning] "+t,pr(this.locator))},error:function(t){console.error("[xmldom error] "+t,pr(this.locator))},fatalError:function(t){throw new iO(t,this.locator)}};function pr(t){if(t)return`
17
- @`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function R_(t,o,e){return typeof t=="string"?t.substr(o,e):t.length>=o+e||o?new java.lang.String(t,o,e)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){Me.prototype[t]=function(){return null}});function ti(t,o){t.currentElement?t.currentElement.appendChild(o):t.doc.appendChild(o)}ei.__DOMHandler=Me;ei.normalizeLineEndings=B_;ei.DOMParser=D_});var ox=V(si=>{var H_=br();si.DOMImplementation=H_.DOMImplementation;si.XMLSerializer=H_.XMLSerializer;si.DOMParser=$_().DOMParser});var ex=V(Ve=>{"use strict";var nO=Ve&&Ve.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.parse=uO;var cO=ox(),jt=nO(require("assert")),ii=3,tx=4,lO=8;function Cr(t){return t.nodeType===ii||t.nodeType===lO||t.nodeType===tx}function Bo(t){return!t.childNodes||t.childNodes.length===0}function uO(t){let o=new cO.DOMParser({errorHandler(){}}).parseFromString(t);(0,jt.default)(o.documentElement.nodeName==="plist","malformed document. First element should be <plist>");let e=Rt(o.documentElement);return e.length===1&&(e=e[0]),e}function Rt(t){let o,e,s,i,r,a;if(!t)return null;if(t.nodeName==="plist"){if(i=[],Bo(t))return i;for(o=0;o<t.childNodes.length;o++)Cr(t.childNodes[o])||i.push(Rt(t.childNodes[o]));return i}else if(t.nodeName==="dict"){if(e={},s=null,a=0,Bo(t))return e;for(o=0;o<t.childNodes.length;o++)Cr(t.childNodes[o])||(a%2===0?((0,jt.default)(t.childNodes[o].nodeName==="key","Missing key while parsing <dict/>."),s=Rt(t.childNodes[o])):((0,jt.default)(t.childNodes[o].nodeName!=="key",'Unexpected key "'+Rt(t.childNodes[o])+'" while parsing <dict/>.'),e[s]=Rt(t.childNodes[o])),a+=1);if(a%2===1)throw new Error('Missing value for "'+s+'" while parsing <dict/>');return e}else if(t.nodeName==="array"){if(i=[],Bo(t))return i;for(o=0;o<t.childNodes.length;o++)Cr(t.childNodes[o])||(r=Rt(t.childNodes[o]),r!=null&&i.push(r));return i}else if(t.nodeName!=="#text"){if(t.nodeName==="key")return Bo(t)?"":t.childNodes[0].nodeValue;if(t.nodeName==="string"){if(r="",Bo(t))return r;for(o=0;o<t.childNodes.length;o++){let n=t.childNodes[o].nodeType;(n===ii||n===tx)&&(r+=t.childNodes[o].nodeValue)}return r}else{if(t.nodeName==="integer")return(0,jt.default)(!Bo(t),'Cannot parse "" as integer.'),parseInt(t.childNodes[0].nodeValue,10);if(t.nodeName==="real"){for((0,jt.default)(!Bo(t),'Cannot parse "" as real.'),r="",o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===ii&&(r+=t.childNodes[o].nodeValue);return parseFloat(r)}else if(t.nodeName==="data"){if(r="",Bo(t))return Buffer.from(r,"base64");for(o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===ii&&(r+=t.childNodes[o].nodeValue.replace(/\s+/g,""));return Buffer.from(r,"base64")}else{if(t.nodeName==="date")return(0,jt.default)(!Bo(t),'Cannot parse "" as Date.'),new Date(t.childNodes[0].nodeValue);if(t.nodeName==="true")return!0;if(t.nodeName==="false")return!1}}}}});var sx=V(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});var _O=a_(),xO=ex();Nr.default={parse:xO.parse,build:_O.build}});var gO={};wx(gO,{ConsoleLogger:()=>oe,repackAppAndroidAsync:()=>vc,repackAppIosAsync:()=>lx});module.exports=dx(gO);var Zi=I(require("node:assert")),xt=I(require("node:fs/promises")),Uo=I(require("node:path")),bc=I(ui());var Co=I(require("fs/promises")),$t=I(require("node:assert")),ko=I(require("node:path")),ts=I(zi());var cn="./apktool.jar";var ln=ko.default.resolve(__dirname,cn);async function un(t,o){let{spawnAsync:e,workingDirectory:s}=o,i="decoded-apk";return await e("java",["-jar",ln,"decode",t,"-s","-o",i],{cwd:s}),ko.default.join(s,i)}async function _n(t,o){let{spawnAsync:e,workingDirectory:s}=o,r=ko.default.resolve(s,"apktool-packed.apk");return await e("java",["-jar",ln,"build","-o",r,t]),r}async function xn({decodedApkRoot:t,assetRoot:o,bundleOutputPath:e}){await Co.default.copyFile(e,ko.default.join(t,"assets","index.android.bundle"));let s=await gn(o,ko.default.join(t,"res"));await Kx(t,s)}async function mn(t,o){let e=ko.default.join(t,"apktool.yml"),s=await Co.default.readFile(e,"utf8");s=s.replace(/^(\s+renameManifestPackage:\s+)(.+)$/gm,`$1${o}`),await Co.default.writeFile(e,s)}async function Kx(t,o){let e=ko.default.join(t,"res/values/public.xml"),s=await Co.default.readFile(e,"utf8"),i=new ts.Parser,r=new Set,a=await i.parseStringPromise(s),n=0,c=0,_=0;for(let K of a.resources.public){let q=parseInt(K.$.id,16);K.$.type==="drawable"?(n=Math.max(n,q),r.add(K.$.name)):K.$.type==="raw"&&(c=Math.max(c,q),r.add(K.$.name)),_=Math.max(_,q)}(0,$t.default)(n!==0,"Drawable resources must be defined."),c===0&&(c=(_&4294901760)+65536);let d=(n&4294901760)+65536,g=(c&4294901760)+65536,O=new Set([...o.keys()].filter(K=>!r.has(K)));for(let K of O){let q=o.get(K);q!=null&&(q.type==="drawable"?(n+=1,(0,$t.default)(n<d,"Drawable resource ID boundary exceeded."),a.resources.public.push({$:{type:"drawable",name:q.name,id:`0x${n.toString(16)}`}})):q.type==="raw"&&(c+=1,(0,$t.default)(c<g,"Raw resource ID boundary exceeded."),a.resources.public.push({$:{type:"raw",name:q.name,id:`0x${c.toString(16)}`}})))}let z=new ts.Builder().buildObject(a);await Co.default.writeFile(e,z)}function kx(t){if(t.startsWith("drawable"))return"drawable";if(t==="raw")return"raw";throw new Error(`Unsupported asset type for ${t}`)}async function gn(t,o,e=0,s=2,i=void 0,r=new Map){await Co.default.mkdir(o,{recursive:!0});let a=await Co.default.readdir(t,{withFileTypes:!0});return await Promise.all(a.map(async n=>{let c=ko.default.join(t,n.name),_=ko.default.join(o,n.name);if(n.isDirectory()){let d=i??kx(n.name);e<s-1?await gn(c,_,e+1,s,d,r):await Co.default.mkdir(_,{recursive:!0})}else{await Co.default.copyFile(c,_);let{name:d}=ko.default.parse(n.name);(0,$t.default)(i,"Asset type must be defined."),r.set(d,{name:d,type:i})}})),r}var ki=I(require("node:assert")),On=I(require("node:fs/promises")),Lo=I(require("node:path")),Ki=null;async function wn(t){if(Ki==null){let o=t?.androidBuildToolsDir??await Gx(t);(0,ki.default)(o!=null,"Unable to find the Android build-tools directory."),Ki={aapt2Path:Lo.default.join(o,"aapt2"),apksignerPath:Lo.default.join(o,"apksigner"),dexdumpPath:Lo.default.join(o,"dexdump"),zipalignPath:Lo.default.join(o,"zipalign")}}return Ki}async function dn(t,o,e){let{spawnAsync:s,workingDirectory:i}=o,{apksignerPath:r,zipalignPath:a}=await wn(o),n=Lo.default.join(i,"resigned.apk"),c=Lo.default.resolve(i,"resigned-unaligned.apk");await s("zip",["-r","-0",c,"lib","resources.arsc"],{cwd:t}),await s("zip",["-r",c,".","-x","lib/*","-x","resources.arsc"],{cwd:t}),await s(a,["-v","-p","4",c,n]);let _=["sign","--ks",e.keyStorePath,"--ks-pass",e.keyStorePassword];return e.keyAlias&&_.push("--ks-key-alias",e.keyAlias),e.keyPassword&&_.push("--key-pass",e.keyPassword),_.push(n),await s(r,_),n}async function Gx(t){let{logger:o}=t,e=process.env.ANDROID_SDK_ROOT;(0,ki.default)(e!=null,"ANDROID_SDK_ROOT environment variable is not set");let s=Lo.default.join(e,"build-tools");try{let r=(await On.default.readdir(s,{withFileTypes:!0})).filter(a=>a.isDirectory()).map(a=>a.name).sort((a,n)=>{let c=a.split(".").map(Number),_=n.split(".").map(Number);for(let d=0;d<Math.min(c.length,_.length);d++)if(c[d]!==_[d])return _[d]-c[d];return _.length-c.length});return r.length>0?Lo.default.join(s,r[0]):(o.error("No build-tools directories found."),null)}catch(i){return o.error(`Failed to read the build-tools directory: ${i}`),null}}async function yn(t,o,e){let{logger:s,spawnAsync:i}=e,{dexdumpPath:r}=await wn(e),a=`"^ Class descriptor : 'L${o.replace(/\./g,"/")}\\/"`;try{let{stdout:n}=await i(r,["classes*.dex","|","grep",a],{cwd:t,shell:!0,stdio:"pipe"}),c=n.split(`
18
- `).map(_=>_.match(/Class descriptor\s+?:\s+?'L(.+);'/)?.[1].replace(/\//g,".")).filter(Boolean);return new Set(c)}catch(n){return s.info(`Failed to search for classes in the APK - grepAppIdPattern[${o}]: ${n}`),null}}var _t=I(require("node:assert")),se=I(require("node:fs/promises")),mc=I(require("node:path")),is=I(zi());var _c=I(cc()),xc=I(require("node:assert")),kt=I(require("node:fs/promises")),Ht=I(require("node:path"));async function ss(t){return(await kt.default.stat(t).catch(()=>null))?.isDirectory()??!1}function te(t){return(0,xc.default)(t!=null,"Expected value to be non-null"),t}async function ee(t){let o=t.platform==="android"?".apk":".ipa";return{...t,workingDirectory:t.workingDirectory??await kt.default.mkdtemp(Ht.default.join(uc(),"repack-app-")),outputPath:t.outputPath??Ht.default.join(t.projectRoot,`repacked${o}`),logger:t.logger??new oe,spawnAsync:t.spawnAsync??em(!!t.verbose)}}var oe=class{debug(...o){console.debug(...o)}info(...o){console.log(...o)}warn(...o){console.warn(...o)}error(...o){console.error(...o)}time(o){console.time(o)}timeEnd(o){console.timeEnd(o)}};function em(t){return function(e,s,i){return(0,_c.default)(e,s,{stdio:t?"inherit":"pipe",...i})}}async function Gt(t,o){await kt.default.mkdir(o,{recursive:!0});let e=await kt.default.readdir(t,{withFileTypes:!0});for(let s of e){let i=Ht.default.join(t,s.name),r=Ht.default.join(o,s.name);s.isDirectory()?await Gt(i,r):s.isFile()&&await kt.default.copyFile(i,r)}}async function gc({config:t,decodedApkRoot:o}){let e=mc.default.join(o,"res","values","strings.xml"),s=await se.default.readFile(e,"utf8");s=s.replace(/(<string name="app_name">)(.+)(<\/string>)/,`$1${t.name}$3`),await se.default.writeFile(e,s)}async function Oc({config:t,androidManiestXml:o,dexClasses:e,originalAppId:s,originalAppIdFallback:i,updatesRuntimeVersion:r}){let a=te(t.android?.package);o.manifest.$.package=a,Ei(o,d=>d.startsWith(s)&&!e.has(d)?d.replace(s,a):d);let n=Vi("manifest",o.manifest,(d,g)=>d==="intent-filter"&&Vi(d,g,(O,w)=>O==="action"&&w[0].$?.["android:name"]==="android.intent.action.VIEW").length>0),c=Array.isArray(t.scheme)?t.scheme[0]:t.scheme;for(let d of n)Ei(d,g=>{let O=g.replace(s,a).replace(/^exp\+.+$/g,`exp+${te(t.slug)}`);return c&&(O=O.replace(/^myapp$/g,c)),i!=null&&(O=O.replace(i,a)),O});let _=o.manifest.application[0];(0,_t.default)(_.$?.["android:name"]?.endsWith(".MainApplication"),"Expected application node to be named as MainApplication"),r&&sm(_,t,r)}async function wc(t){let o=await se.default.readFile(t,"utf8");return await new is.Parser().parseStringPromise(o)}async function dc(t,o){let s=new is.Builder().buildObject(t);await se.default.writeFile(o,s)}function yc(t){let o=t.manifest.$.package;return(0,_t.default)(o!=null,"Expected package attribute to be present in AndroidManifest.xml"),o}function hc(t,o){let e=t.manifest.application?.[0]?.$?.["android:name"];if(e){let s=e.replace(/\.[^.]+$/,"");if(s!==e&&s!==o)return s}return null}function sm(t,o,e){let s=t["meta-data"]??[],i=s.find(c=>c.$?.["android:name"]==="expo.modules.updates.ENABLED");i!=null?((0,_t.default)(i.$!=null),i.$["android:value"]="true"):s.push({$:{"android:name":"expo.modules.updates.ENABLED","android:value":"true"}});let r=s.find(c=>c.$?.["android:name"]==="expo.modules.updates.EXPO_RUNTIME_VERSION");r!=null?((0,_t.default)(r.$!=null),r.$["android:value"]=e):s.push({$:{"android:name":"expo.modules.updates.EXPO_RUNTIME_VERSION","android:value":e}});let a=s.find(c=>c.$?.["android:name"]==="expo.modules.updates.EXPO_UPDATE_URL"),n=o.updates?.url;(0,_t.default)(n),a!=null?((0,_t.default)(a.$!=null),a.$["android:value"]=n):s.push({$:{"android:name":"expo.modules.updates.EXPO_UPDATE_URL","android:value":n}})}function Vi(t,o,e){return o==null?[]:e(t,o)?[o]:Object.keys(o).filter(s=>s!=="$"&&s!=="_").flatMap(s=>{let i=o[s];return Vi(s,i,e)})}function Ei(t,o){if(t==null)return;let e=t.$??{};for(let[s,i]of Object.entries(e))e[s]=o(i);for(let[s,i]of Object.entries(t))s==="$"||s==="_"||Ei(i,o)}var fc="./debug.keystore";var rs=I(require("node:assert")),Yi=I(require("node:fs/promises")),To=I(require("node:path")),Wt=I(Gc());async function as(t,o){let{workingDirectory:e}=t,s=To.default.join(e,"app.config");return await Yi.default.writeFile(s,JSON.stringify(o)),s}async function ns(t){let{platform:o,projectRoot:e,spawnAsync:s,workingDirectory:i}=t,{stdout:r}=await s("node",["-e","require('expo/scripts/resolveAppEntry')",e,o,"absolute"],{cwd:e,stdio:"pipe"}),a=Wt.default.silent(t.projectRoot,"expo-updates/utils/build/createUpdatesResources.js");return(0,rs.default)(a,"Failed to resolve `createUpdatesResources.js` within expo-updates package"),await s("node",[a,o,e,i,"all",r.trim()],{cwd:e}),To.default.join(i,"app.manifest")}function cs(t){let o=Wc(t);(0,rs.default)(o,"Failed to resolve '@expo/config' package in the project");let{getPackageJson:e}=require(o),s=e(t);return!!(s.dependencies&&"expo-updates"in s.dependencies)}async function ls(t,o){let{projectRoot:e,spawnAsync:s}=t,i=Wt.default.silent(e,"expo-updates/bin/cli")??(0,Wt.default)(e,"expo-updates/bin/cli.js"),{stdout:r}=await s(i,["runtimeversion:resolve","--platform","android","--workflow","managed"],{cwd:e,stdio:"pipe"});return JSON.parse(r).runtimeVersion??o.version??"1.0.0"}function Wc(t){let o=Wt.default.silent(t,"expo/package.json");return o?Wt.default.silent(To.default.dirname(o),"@expo/config")??null:null}function us(t,o){let e=Wc(t);(0,rs.default)(e,"Failed to resolve '@expo/config' package in the project");let{getConfig:s}=require(e);return s(t,o)}async function _s(t,o){let{projectRoot:e,platform:s,spawnAsync:i,workingDirectory:r}=o,a=To.default.resolve(r,"bundles");await Yi.default.mkdir(a,{recursive:!0});let{stdout:n}=await i("node",["-e","require('expo/scripts/resolveAppEntry')",e,s,"absolute"],{cwd:e,stdio:"pipe"}),c=am(t,s),_=s==="android"?"index.android.bundle":"main.bundle",d=To.default.join(a,_),g=To.default.join(a,"assets"),O=["expo","export:embed","--platform",s,"--entry-file",n.trim(),"--bundle-output",To.default.join(a,_),"--assets-dest",To.default.join(a,"assets"),"--dev","false","--reset-cache"];return c?(O.push("--minify","false"),O.push("--bytecode","true"),O.push("--unstable-transform-profile","hermes")):O.push("--minify","true"),o.exportEmbedOptions?.sourcemapOutput&&O.push("--sourcemap-output",o.exportEmbedOptions.sourcemapOutput),await i("npx",O,{cwd:e}),{bundleOutputPath:d,assetRoot:g}}function am(t,o){switch(o){case"android":return(t.android?.jsEngine??t.jsEngine)!=="jsc";case"ios":return(t.ios?.jsEngine??t.jsEngine)!=="jsc";default:return!1}}var nm=Uo.default.resolve(__dirname,fc);async function vc(t){let o=await ee(t),{logger:e,spawnAsync:s,workingDirectory:i}=o;await xt.default.mkdir(i,{recursive:!0});let{exp:r}=us(o.projectRoot,{isPublicConfig:!0,skipSDKVersionRequirement:!0}),a=await un(Uo.default.resolve(o.sourceAppPath),o);(0,Zi.default)(r.android?.package,"Expected app ID (`android.package`) to be defined in app.json");let n=cs(o.projectRoot),c=n?await ls(o,r):null;if(e.info(bc.default.dim(`Resolved runtime version: ${c}`)),o.exportEmbedOptions!=null){e.time("Generating bundle");let{assetRoot:m,bundleOutputPath:l}=await _s(r,o);if(e.timeEnd("Generating bundle"),e.time("Adding bundled resources"),await xn({decodedApkRoot:a,assetRoot:m,bundleOutputPath:l}),e.timeEnd("Adding bundled resources"),n){e.time("Generating 'app.manifest' for expo-updates");let x=await ns(o),u=Uo.default.join(a,"assets");await xt.default.copyFile(x,Uo.default.join(u,Uo.default.basename(x))),e.timeEnd("Generating 'app.manifest' for expo-updates")}}e.time("Updating AndroidManifest.xml");let _=Uo.default.join(a,"AndroidManifest.xml"),d=await wc(_),g=yc(d),O=new Set([g]),w=hc(d,g);w!=null&&O.add(w);let z=await Promise.any(Array.from(O).map(m=>yn(a,m,o)));(0,Zi.default)(z!=null,"Failed to search for dex classes with appId in the APK"),await Oc({config:r,androidManiestXml:d,dexClasses:z,originalAppId:g,originalAppIdFallback:w,options:o,updatesRuntimeVersion:c}),await mn(a,r.android?.package),await dc(d,_),e.timeEnd("Updating AndroidManifest.xml"),e.time("Updating resources"),await gc({config:r,decodedApkRoot:a}),e.timeEnd("Updating resources"),e.time("Generating app config");let K=await as(o,r);await xt.default.copyFile(K,Uo.default.join(a,"assets","app.config")),e.timeEnd("Generating app config"),e.time("Creating updated apk");let q=await _n(a,o),v=Uo.default.join(i,"unzip");await xt.default.mkdir(v,{recursive:!0}),await s("unzip",["-o",q,"-d",v]);let p=await dn(v,o,{keyStorePath:o.androidSigningOptions?.keyStorePath??nm,keyStorePassword:o.androidSigningOptions?.keyStorePassword??"android",keyAlias:o.androidSigningOptions?.keyAlias,keyPassword:o.androidSigningOptions?.keyPassword});if(e.timeEnd("Creating updated apk"),await xt.default.rename(p,o.outputPath),!o.skipWorkingDirCleanup)try{await xt.default.rm(i,{recursive:!0})}catch{}return o.outputPath}var ni=I(require("node:assert")),lt=I(require("node:fs/promises")),Do=I(require("node:path")),cx=I(ui());var Rc=I(Ic(),1);var re=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};var Om={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ae=t=>t.replace(/[[\]\\-]/g,"\\$&"),wm=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Pc=t=>t.join(""),Lc=(t,o)=>{let e=o;if(t.charAt(e)!=="[")throw new Error("not in a brace expression");let s=[],i=[],r=e+1,a=!1,n=!1,c=!1,_=!1,d=e,g="";o:for(;r<t.length;){let K=t.charAt(r);if((K==="!"||K==="^")&&r===e+1){_=!0,r++;continue}if(K==="]"&&a&&!c){d=r+1;break}if(a=!0,K==="\\"&&!c){c=!0,r++;continue}if(K==="["&&!c){for(let[q,[v,p,m]]of Object.entries(Om))if(t.startsWith(q,r)){if(g)return["$.",!1,t.length-e,!0];r+=q.length,m?i.push(v):s.push(v),n=n||p;continue o}}if(c=!1,g){K>g?s.push(ae(g)+"-"+ae(K)):K===g&&s.push(ae(K)),g="",r++;continue}if(t.startsWith("-]",r+1)){s.push(ae(K+"-")),r+=2;continue}if(t.startsWith("-",r+1)){g=K,r+=2;continue}s.push(ae(K)),r++}if(d<r)return["",!1,0,!1];if(!s.length&&!i.length)return["$.",!1,t.length-e,!0];if(i.length===0&&s.length===1&&/^\\?.$/.test(s[0])&&!_){let K=s[0].length===2?s[0].slice(-1):s[0];return[wm(K),!1,d-e,!1]}let O="["+(_?"^":"")+Pc(s)+"]",w="["+(_?"":"^")+Pc(i)+"]";return[s.length&&i.length?"("+O+"|"+w+")":s.length?O:w,n,d-e,!0]};var Go=(t,{windowsPathsNoEscape:o=!1}={})=>o?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var dm=new Set(["!","?","+","*","@"]),Tc=t=>dm.has(t),ym="(?!(?:^|/)\\.\\.?(?:$|/))",xs="(?!\\.)",hm=new Set(["[","."]),fm=new Set(["..","."]),zm=new Set("().*{}+?[]^$\\!"),Km=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Li="[^/]",Uc=Li+"*?",Qc=Li+"+?",bt=class t{type;#o;#t;#r=!1;#s=[];#a;#f;#l;#_=!1;#n;#c;#i=!1;constructor(o,e,s={}){this.type=o,o&&(this.#t=!0),this.#a=e,this.#o=this.#a?this.#a.#o:this,this.#n=this.#o===this?s:this.#o.#n,this.#l=this.#o===this?[]:this.#o.#l,o==="!"&&!this.#o.#_&&this.#l.push(this),this.#f=this.#a?this.#a.#s.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let o of this.#s)if(typeof o!="string"&&(o.type||o.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#s.map(o=>String(o)).join("|")+")":this.#c=this.#s.map(o=>String(o)).join("")}#w(){if(this!==this.#o)throw new Error("should only call on root");if(this.#_)return this;this.toString(),this.#_=!0;let o;for(;o=this.#l.pop();){if(o.type!=="!")continue;let e=o,s=e.#a;for(;s;){for(let i=e.#f+1;!s.type&&i<s.#s.length;i++)for(let r of o.#s){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(s.#s[i])}e=s,s=e.#a}}return this}push(...o){for(let e of o)if(e!==""){if(typeof e!="string"&&!(e instanceof t&&e.#a===this))throw new Error("invalid part: "+e);this.#s.push(e)}}toJSON(){let o=this.type===null?this.#s.slice().map(e=>typeof e=="string"?e:e.toJSON()):[this.type,...this.#s.map(e=>e.toJSON())];return this.isStart()&&!this.type&&o.unshift([]),this.isEnd()&&(this===this.#o||this.#o.#_&&this.#a?.type==="!")&&o.push({}),o}isStart(){if(this.#o===this)return!0;if(!this.#a?.isStart())return!1;if(this.#f===0)return!0;let o=this.#a;for(let e=0;e<this.#f;e++){let s=o.#s[e];if(!(s instanceof t&&s.type==="!"))return!1}return!0}isEnd(){if(this.#o===this||this.#a?.type==="!")return!0;if(!this.#a?.isEnd())return!1;if(!this.type)return this.#a?.isEnd();let o=this.#a?this.#a.#s.length:0;return this.#f===o-1}copyIn(o){typeof o=="string"?this.push(o):this.push(o.clone(this))}clone(o){let e=new t(this.type,o);for(let s of this.#s)e.copyIn(s);return e}static#d(o,e,s,i){let r=!1,a=!1,n=-1,c=!1;if(e.type===null){let w=s,z="";for(;w<o.length;){let K=o.charAt(w++);if(r||K==="\\"){r=!r,z+=K;continue}if(a){w===n+1?(K==="^"||K==="!")&&(c=!0):K==="]"&&!(w===n+2&&c)&&(a=!1),z+=K;continue}else if(K==="["){a=!0,n=w,c=!1,z+=K;continue}if(!i.noext&&Tc(K)&&o.charAt(w)==="("){e.push(z),z="";let q=new t(K,e);w=t.#d(o,q,w,i),e.push(q);continue}z+=K}return e.push(z),w}let _=s+1,d=new t(null,e),g=[],O="";for(;_<o.length;){let w=o.charAt(_++);if(r||w==="\\"){r=!r,O+=w;continue}if(a){_===n+1?(w==="^"||w==="!")&&(c=!0):w==="]"&&!(_===n+2&&c)&&(a=!1),O+=w;continue}else if(w==="["){a=!0,n=_,c=!1,O+=w;continue}if(Tc(w)&&o.charAt(_)==="("){d.push(O),O="";let z=new t(w,d);d.push(z),_=t.#d(o,z,_,i);continue}if(w==="|"){d.push(O),O="",g.push(d),d=new t(null,e);continue}if(w===")")return O===""&&e.#s.length===0&&(e.#i=!0),d.push(O),O="",e.push(...g,d),_;O+=w}return e.type=null,e.#t=void 0,e.#s=[o.substring(s-1)],_}static fromGlob(o,e={}){let s=new t(null,void 0,e);return t.#d(o,s,0,e),s}toMMPattern(){if(this!==this.#o)return this.#o.toMMPattern();let o=this.toString(),[e,s,i,r]=this.toRegExpSource();if(!(i||this.#t||this.#n.nocase&&!this.#n.nocaseMagicOnly&&o.toUpperCase()!==o.toLowerCase()))return s;let n=(this.#n.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${e}$`,n),{_src:e,_glob:o})}get options(){return this.#n}toRegExpSource(o){let e=o??!!this.#n.dot;if(this.#o===this&&this.#w(),!this.type){let c=this.isStart()&&this.isEnd(),_=this.#s.map(w=>{let[z,K,q,v]=typeof w=="string"?t.#x(w,this.#t,c):w.toRegExpSource(o);return this.#t=this.#t||q,this.#r=this.#r||v,z}).join(""),d="";if(this.isStart()&&typeof this.#s[0]=="string"&&!(this.#s.length===1&&fm.has(this.#s[0]))){let z=hm,K=e&&z.has(_.charAt(0))||_.startsWith("\\.")&&z.has(_.charAt(2))||_.startsWith("\\.\\.")&&z.has(_.charAt(4)),q=!e&&!o&&z.has(_.charAt(0));d=K?ym:q?xs:""}let g="";return this.isEnd()&&this.#o.#_&&this.#a?.type==="!"&&(g="(?:$|\\/)"),[d+_+g,Go(_),this.#t=!!this.#t,this.#r]}let s=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#m(e);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let c=this.toString();return this.#s=[c],this.type=null,this.#t=void 0,[c,Go(this.toString()),!1,!1]}let a=!s||o||e||!xs?"":this.#m(!0);a===r&&(a=""),a&&(r=`(?:${r})(?:${a})*?`);let n="";if(this.type==="!"&&this.#i)n=(this.isStart()&&!e?xs:"")+Qc;else{let c=this.type==="!"?"))"+(this.isStart()&&!e&&!o?xs:"")+Uc+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;n=i+r+c}return[n,Go(r),this.#t=!!this.#t,this.#r]}#m(o){return this.#s.map(e=>{if(typeof e=="string")throw new Error("string type in extglob ast??");let[s,i,r,a]=e.toRegExpSource(o);return this.#r=this.#r||a,s}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join("|")}static#x(o,e,s=!1){let i=!1,r="",a=!1;for(let n=0;n<o.length;n++){let c=o.charAt(n);if(i){i=!1,r+=(zm.has(c)?"\\":"")+c;continue}if(c==="\\"){n===o.length-1?r+="\\\\":i=!0;continue}if(c==="["){let[_,d,g,O]=Lc(o,n);if(g){r+=_,a=a||d,n+=g-1,e=e||O;continue}}if(c==="*"){s&&o==="*"?r+=Qc:r+=Uc,e=!0;continue}if(c==="?"){r+=Li,e=!0;continue}r+=Km(c)}return[r,Go(o),!!e,a]}};var vt=(t,{windowsPathsNoEscape:o=!1}={})=>o?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var ro=(t,o,e={})=>(re(o),!e.nocomment&&o.charAt(0)==="#"?!1:new mo(o,e).match(t)),km=/^\*+([^+@!?\*\[\(]*)$/,Gm=t=>o=>!o.startsWith(".")&&o.endsWith(t),Wm=t=>o=>o.endsWith(t),bm=t=>(t=t.toLowerCase(),o=>!o.startsWith(".")&&o.toLowerCase().endsWith(t)),vm=t=>(t=t.toLowerCase(),o=>o.toLowerCase().endsWith(t)),qm=/^\*+\.\*+$/,pm=t=>!t.startsWith(".")&&t.includes("."),Cm=t=>t!=="."&&t!==".."&&t.includes("."),Nm=/^\.\*+$/,Sm=t=>t!=="."&&t!==".."&&t.startsWith("."),Fm=/^\*+$/,Mm=t=>t.length!==0&&!t.startsWith("."),Vm=t=>t.length!==0&&t!=="."&&t!=="..",Em=/^\?+([^+@!?\*\[\(]*)?$/,Xm=([t,o=""])=>{let e=Jc([t]);return o?(o=o.toLowerCase(),s=>e(s)&&s.toLowerCase().endsWith(o)):e},Ym=([t,o=""])=>{let e=Bc([t]);return o?(o=o.toLowerCase(),s=>e(s)&&s.toLowerCase().endsWith(o)):e},Zm=([t,o=""])=>{let e=Bc([t]);return o?s=>e(s)&&s.endsWith(o):e},Im=([t,o=""])=>{let e=Jc([t]);return o?s=>e(s)&&s.endsWith(o):e},Jc=([t])=>{let o=t.length;return e=>e.length===o&&!e.startsWith(".")},Bc=([t])=>{let o=t.length;return e=>e.length===o&&e!=="."&&e!==".."},Dc=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ac={win32:{sep:"\\"},posix:{sep:"/"}},Pm=Dc==="win32"?Ac.win32.sep:Ac.posix.sep;ro.sep=Pm;var oo=Symbol("globstar **");ro.GLOBSTAR=oo;var Lm="[^/]",Tm=Lm+"*?",Um="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Qm="(?:(?!(?:\\/|^)\\.).)*?",Am=(t,o={})=>e=>ro(e,t,o);ro.filter=Am;var ho=(t,o={})=>Object.assign({},t,o),jm=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return ro;let o=ro;return Object.assign((s,i,r={})=>o(s,i,ho(t,r)),{Minimatch:class extends o.Minimatch{constructor(i,r={}){super(i,ho(t,r))}static defaults(i){return o.defaults(ho(t,i)).Minimatch}},AST:class extends o.AST{constructor(i,r,a={}){super(i,r,ho(t,a))}static fromGlob(i,r={}){return o.AST.fromGlob(i,ho(t,r))}},unescape:(s,i={})=>o.unescape(s,ho(t,i)),escape:(s,i={})=>o.escape(s,ho(t,i)),filter:(s,i={})=>o.filter(s,ho(t,i)),defaults:s=>o.defaults(ho(t,s)),makeRe:(s,i={})=>o.makeRe(s,ho(t,i)),braceExpand:(s,i={})=>o.braceExpand(s,ho(t,i)),match:(s,i,r={})=>o.match(s,i,ho(t,r)),sep:o.sep,GLOBSTAR:oo})};ro.defaults=jm;var $c=(t,o={})=>(re(t),o.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,Rc.default)(t));ro.braceExpand=$c;var Rm=(t,o={})=>new mo(t,o).makeRe();ro.makeRe=Rm;var Jm=(t,o,e={})=>{let s=new mo(o,e);return t=t.filter(i=>s.match(i)),s.options.nonull&&!t.length&&t.push(o),t};ro.match=Jm;var jc=/[?*]|[+@!]\(.*?\)|\[|\]/,Bm=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mo=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(o,e={}){re(o),e=e||{},this.options=e,this.pattern=o,this.platform=e.platform||Dc,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=e.windowsNoMagicRoot!==void 0?e.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let o of this.set)for(let e of o)if(typeof e!="string")return!0;return!1}debug(...o){}make(){let o=this.pattern,e=this.options;if(!e.nocomment&&o.charAt(0)==="#"){this.comment=!0;return}if(!o){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let s=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(s),this.debug(this.pattern,this.globParts);let i=this.globParts.map((r,a,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=r[0]===""&&r[1]===""&&(r[2]==="?"||!jc.test(r[2]))&&!jc.test(r[3]),_=/^[a-z]:/i.test(r[0]);if(c)return[...r.slice(0,4),...r.slice(4).map(d=>this.parse(d))];if(_)return[r[0],...r.slice(1).map(d=>this.parse(d))]}return r.map(c=>this.parse(c))});if(this.debug(this.pattern,i),this.set=i.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let a=this.set[r];a[0]===""&&a[1]===""&&this.globParts[r][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(o){if(this.options.noglobstar)for(let s=0;s<o.length;s++)for(let i=0;i<o[s].length;i++)o[s][i]==="**"&&(o[s][i]="*");let{optimizationLevel:e=1}=this.options;return e>=2?(o=this.firstPhasePreProcess(o),o=this.secondPhasePreProcess(o)):e>=1?o=this.levelOneOptimize(o):o=this.adjascentGlobstarOptimize(o),o}adjascentGlobstarOptimize(o){return o.map(e=>{let s=-1;for(;(s=e.indexOf("**",s+1))!==-1;){let i=s;for(;e[i+1]==="**";)i++;i!==s&&e.splice(s,i-s)}return e})}levelOneOptimize(o){return o.map(e=>(e=e.reduce((s,i)=>{let r=s[s.length-1];return i==="**"&&r==="**"?s:i===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(s.pop(),s):(s.push(i),s)},[]),e.length===0?[""]:e))}levelTwoFileOptimize(o){Array.isArray(o)||(o=this.slashSplit(o));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let i=1;i<o.length-1;i++){let r=o[i];i===1&&r===""&&o[0]===""||(r==="."||r==="")&&(e=!0,o.splice(i,1),i--)}o[0]==="."&&o.length===2&&(o[1]==="."||o[1]==="")&&(e=!0,o.pop())}let s=0;for(;(s=o.indexOf("..",s+1))!==-1;){let i=o[s-1];i&&i!=="."&&i!==".."&&i!=="**"&&(e=!0,o.splice(s-1,2),s-=2)}}while(e);return o.length===0?[""]:o}firstPhasePreProcess(o){let e=!1;do{e=!1;for(let s of o){let i=-1;for(;(i=s.indexOf("**",i+1))!==-1;){let a=i;for(;s[a+1]==="**";)a++;a>i&&s.splice(i+1,a-i);let n=s[i+1],c=s[i+2],_=s[i+3];if(n!==".."||!c||c==="."||c===".."||!_||_==="."||_==="..")continue;e=!0,s.splice(i,1);let d=s.slice(0);d[i]="**",o.push(d),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<s.length-1;a++){let n=s[a];a===1&&n===""&&s[0]===""||(n==="."||n==="")&&(e=!0,s.splice(a,1),a--)}s[0]==="."&&s.length===2&&(s[1]==="."||s[1]==="")&&(e=!0,s.pop())}let r=0;for(;(r=s.indexOf("..",r+1))!==-1;){let a=s[r-1];if(a&&a!=="."&&a!==".."&&a!=="**"){e=!0;let c=r===1&&s[r+1]==="**"?["."]:[];s.splice(r-1,2,...c),s.length===0&&s.push(""),r-=2}}}}while(e);return o}secondPhasePreProcess(o){for(let e=0;e<o.length-1;e++)for(let s=e+1;s<o.length;s++){let i=this.partsMatch(o[e],o[s],!this.preserveMultipleSlashes);if(i){o[e]=[],o[s]=i;break}}return o.filter(e=>e.length)}partsMatch(o,e,s=!1){let i=0,r=0,a=[],n="";for(;i<o.length&&r<e.length;)if(o[i]===e[r])a.push(n==="b"?e[r]:o[i]),i++,r++;else if(s&&o[i]==="**"&&e[r]===o[i+1])a.push(o[i]),i++;else if(s&&e[r]==="**"&&o[i]===e[r+1])a.push(e[r]),r++;else if(o[i]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(n==="b")return!1;n="a",a.push(o[i]),i++,r++}else if(e[r]==="*"&&o[i]&&(this.options.dot||!o[i].startsWith("."))&&o[i]!=="**"){if(n==="a")return!1;n="b",a.push(e[r]),i++,r++}else return!1;return o.length===e.length&&a}parseNegate(){if(this.nonegate)return;let o=this.pattern,e=!1,s=0;for(let i=0;i<o.length&&o.charAt(i)==="!";i++)e=!e,s++;s&&(this.pattern=o.slice(s)),this.negate=e}matchOne(o,e,s=!1){let i=this.options;if(this.isWindows){let K=typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0]),q=!K&&o[0]===""&&o[1]===""&&o[2]==="?"&&/^[a-z]:$/i.test(o[3]),v=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),p=!v&&e[0]===""&&e[1]===""&&e[2]==="?"&&typeof e[3]=="string"&&/^[a-z]:$/i.test(e[3]),m=q?3:K?0:void 0,l=p?3:v?0:void 0;if(typeof m=="number"&&typeof l=="number"){let[x,u]=[o[m],e[l]];x.toLowerCase()===u.toLowerCase()&&(e[l]=x,l>m?e=e.slice(l):m>l&&(o=o.slice(m)))}}let{optimizationLevel:r=1}=this.options;r>=2&&(o=this.levelTwoFileOptimize(o)),this.debug("matchOne",this,{file:o,pattern:e}),this.debug("matchOne",o.length,e.length);for(var a=0,n=0,c=o.length,_=e.length;a<c&&n<_;a++,n++){this.debug("matchOne loop");var d=e[n],g=o[a];if(this.debug(e,d,g),d===!1)return!1;if(d===oo){this.debug("GLOBSTAR",[e,d,g]);var O=a,w=n+1;if(w===_){for(this.debug("** at the end");a<c;a++)if(o[a]==="."||o[a]===".."||!i.dot&&o[a].charAt(0)===".")return!1;return!0}for(;O<c;){var z=o[O];if(this.debug(`
19
- globstar while`,o,O,e,w,z),this.matchOne(o.slice(O),e.slice(w),s))return this.debug("globstar found match!",O,c,z),!0;if(z==="."||z===".."||!i.dot&&z.charAt(0)==="."){this.debug("dot detected!",o,O,e,w);break}this.debug("globstar swallow a segment, and continue"),O++}return!!(s&&(this.debug(`
20
- >>> no match, partial?`,o,O,e,w),O===c))}let K;if(typeof d=="string"?(K=g===d,this.debug("string match",d,g,K)):(K=d.test(g),this.debug("pattern match",d,g,K)),!K)return!1}if(a===c&&n===_)return!0;if(a===c)return s;if(n===_)return a===c-1&&o[a]==="";throw new Error("wtf?")}braceExpand(){return $c(this.pattern,this.options)}parse(o){re(o);let e=this.options;if(o==="**")return oo;if(o==="")return"";let s,i=null;(s=o.match(Fm))?i=e.dot?Vm:Mm:(s=o.match(km))?i=(e.nocase?e.dot?vm:bm:e.dot?Wm:Gm)(s[1]):(s=o.match(Em))?i=(e.nocase?e.dot?Ym:Xm:e.dot?Zm:Im)(s):(s=o.match(qm))?i=e.dot?Cm:pm:(s=o.match(Nm))&&(i=Sm);let r=bt.fromGlob(o,this.options).toMMPattern();return i&&typeof r=="object"&&Reflect.defineProperty(r,"test",{value:i}),r}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let o=this.set;if(!o.length)return this.regexp=!1,this.regexp;let e=this.options,s=e.noglobstar?Tm:e.dot?Um:Qm,i=new Set(e.nocase?["i"]:[]),r=o.map(c=>{let _=c.map(d=>{if(d instanceof RegExp)for(let g of d.flags.split(""))i.add(g);return typeof d=="string"?Bm(d):d===oo?oo:d._src});return _.forEach((d,g)=>{let O=_[g+1],w=_[g-1];d!==oo||w===oo||(w===void 0?O!==void 0&&O!==oo?_[g+1]="(?:\\/|"+s+"\\/)?"+O:_[g]=s:O===void 0?_[g-1]=w+"(?:\\/|"+s+")?":O!==oo&&(_[g-1]=w+"(?:\\/|\\/"+s+"\\/)"+O,_[g+1]=oo))}),_.filter(d=>d!==oo).join("/")}).join("|"),[a,n]=o.length>1?["(?:",")"]:["",""];r="^"+a+r+n+"$",this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(o){return this.preserveMultipleSlashes?o.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(o)?["",...o.split(/\/+/)]:o.split(/\/+/)}match(o,e=this.partial){if(this.debug("match",o,this.pattern),this.comment)return!1;if(this.empty)return o==="";if(o==="/"&&e)return!0;let s=this.options;this.isWindows&&(o=o.split("\\").join("/"));let i=this.slashSplit(o);this.debug(this.pattern,"split",i);let r=this.set;this.debug(this.pattern,"set",r);let a=i[i.length-1];if(!a)for(let n=i.length-2;!a&&n>=0;n--)a=i[n];for(let n=0;n<r.length;n++){let c=r[n],_=i;if(s.matchBase&&c.length===1&&(_=[a]),this.matchOne(_,c,e))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(o){return ro.defaults(o).Minimatch}};ro.AST=bt;ro.Minimatch=mo;ro.escape=vt;ro.unescape=Go;var Kl=require("node:url");var qt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,ol=new Set,Ti=typeof process=="object"&&process?process:{},tl=(t,o,e,s)=>{typeof Ti.emitWarning=="function"?Ti.emitWarning(t,o,e,s):console.error(`[${e}] ${o}: ${t}`)},ms=globalThis.AbortController,Hc=globalThis.AbortSignal;if(typeof ms>"u"){Hc=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,i){this._onabort.push(i)}},ms=class{constructor(){o()}signal=new Hc;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let i of this.signal._onabort)i(s);this.signal.onabort?.(s)}}};let t=Ti.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",o=()=>{t&&(t=!1,tl("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",o))}}var Dm=t=>!ol.has(t),kw=Symbol("type"),tt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),el=t=>tt(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?pt:null:null,pt=class extends Array{constructor(o){super(o),this.fill(0)}},Ui=class t{heap;length;static#o=!1;static create(o){let e=el(o);if(!e)return[];t.#o=!0;let s=new t(o,e);return t.#o=!1,s}constructor(o,e){if(!t.#o)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(o),this.length=0}push(o){this.heap[this.length++]=o}pop(){return this.heap[--this.length]}},ne=class t{#o;#t;#r;#s;#a;#f;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#_;#n;#c;#i;#w;#d;#m;#x;#k;#O;#G;#W;#h;#z;#K;#g;static unsafeExposeInternals(o){return{starts:o.#W,ttls:o.#h,sizes:o.#G,keyMap:o.#n,keyList:o.#c,valList:o.#i,next:o.#w,prev:o.#d,get head(){return o.#m},get tail(){return o.#x},free:o.#k,isBackgroundFetch:e=>o.#u(e),backgroundFetch:(e,s,i,r)=>o.#Y(e,s,i,r),moveToTail:e=>o.#I(e),indexes:e=>o.#v(e),rindexes:e=>o.#q(e),isStale:e=>o.#y(e)}}get max(){return this.#o}get maxSize(){return this.#t}get calculatedSize(){return this.#_}get size(){return this.#l}get fetchMethod(){return this.#a}get memoMethod(){return this.#f}get dispose(){return this.#r}get disposeAfter(){return this.#s}constructor(o){let{max:e=0,ttl:s,ttlResolution:i=1,ttlAutopurge:r,updateAgeOnGet:a,updateAgeOnHas:n,allowStale:c,dispose:_,disposeAfter:d,noDisposeOnSet:g,noUpdateTTL:O,maxSize:w=0,maxEntrySize:z=0,sizeCalculation:K,fetchMethod:q,memoMethod:v,noDeleteOnFetchRejection:p,noDeleteOnStaleGet:m,allowStaleOnFetchRejection:l,allowStaleOnFetchAbort:x,ignoreFetchAbort:u}=o;if(e!==0&&!tt(e))throw new TypeError("max option must be a nonnegative integer");let G=e?el(e):Array;if(!G)throw new Error("invalid max value: "+e);if(this.#o=e,this.#t=w,this.maxEntrySize=z||this.#t,this.sizeCalculation=K,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(v!==void 0&&typeof v!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#f=v,q!==void 0&&typeof q!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#a=q,this.#K=!!q,this.#n=new Map,this.#c=new Array(e).fill(void 0),this.#i=new Array(e).fill(void 0),this.#w=new G(e),this.#d=new G(e),this.#m=0,this.#x=0,this.#k=Ui.create(e),this.#l=0,this.#_=0,typeof _=="function"&&(this.#r=_),typeof d=="function"?(this.#s=d,this.#O=[]):(this.#s=void 0,this.#O=void 0),this.#z=!!this.#r,this.#g=!!this.#s,this.noDisposeOnSet=!!g,this.noUpdateTTL=!!O,this.noDeleteOnFetchRejection=!!p,this.allowStaleOnFetchRejection=!!l,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!u,this.maxEntrySize!==0){if(this.#t!==0&&!tt(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!tt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#C()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!m,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!n,this.ttlResolution=tt(i)||i===0?i:1,this.ttlAutopurge=!!r,this.ttl=s||0,this.ttl){if(!tt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#p()}if(this.#o===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#o&&!this.#t){let y="LRU_CACHE_UNBOUNDED";Dm(y)&&(ol.add(y),tl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",y,t))}}getRemainingTTL(o){return this.#n.has(o)?1/0:0}#p(){let o=new pt(this.#o),e=new pt(this.#o);this.#h=o,this.#W=e,this.#S=(r,a,n=qt.now())=>{if(e[r]=a!==0?n:0,o[r]=a,a!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#y(r)&&this.#N(this.#c[r],"expire")},a+1);c.unref&&c.unref()}},this.#b=r=>{e[r]=o[r]!==0?qt.now():0},this.#e=(r,a)=>{if(o[a]){let n=o[a],c=e[a];if(!n||!c)return;r.ttl=n,r.start=c,r.now=s||i();let _=r.now-c;r.remainingTTL=n-_}};let s=0,i=()=>{let r=qt.now();if(this.ttlResolution>0){s=r;let a=setTimeout(()=>s=0,this.ttlResolution);a.unref&&a.unref()}return r};this.getRemainingTTL=r=>{let a=this.#n.get(r);if(a===void 0)return 0;let n=o[a],c=e[a];if(!n||!c)return 1/0;let _=(s||i())-c;return n-_},this.#y=r=>{let a=e[r],n=o[r];return!!n&&!!a&&(s||i())-a>n}}#b=()=>{};#e=()=>{};#S=()=>{};#y=()=>!1;#C(){let o=new pt(this.#o);this.#_=0,this.#G=o,this.#F=e=>{this.#_-=o[e],o[e]=0},this.#V=(e,s,i,r)=>{if(this.#u(s))return 0;if(!tt(i))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(i=r(s,e),!tt(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#M=(e,s,i)=>{if(o[e]=s,this.#t){let r=this.#t-o[e];for(;this.#_>r;)this.#X(!0)}this.#_+=o[e],i&&(i.entrySize=s,i.totalCalculatedSize=this.#_)}}#F=o=>{};#M=(o,e,s)=>{};#V=(o,e,s,i)=>{if(s||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#v({allowStale:o=this.allowStale}={}){if(this.#l)for(let e=this.#x;!(!this.#E(e)||((o||!this.#y(e))&&(yield e),e===this.#m));)e=this.#d[e]}*#q({allowStale:o=this.allowStale}={}){if(this.#l)for(let e=this.#m;!(!this.#E(e)||((o||!this.#y(e))&&(yield e),e===this.#x));)e=this.#w[e]}#E(o){return o!==void 0&&this.#n.get(this.#c[o])===o}*entries(){for(let o of this.#v())this.#i[o]!==void 0&&this.#c[o]!==void 0&&!this.#u(this.#i[o])&&(yield[this.#c[o],this.#i[o]])}*rentries(){for(let o of this.#q())this.#i[o]!==void 0&&this.#c[o]!==void 0&&!this.#u(this.#i[o])&&(yield[this.#c[o],this.#i[o]])}*keys(){for(let o of this.#v()){let e=this.#c[o];e!==void 0&&!this.#u(this.#i[o])&&(yield e)}}*rkeys(){for(let o of this.#q()){let e=this.#c[o];e!==void 0&&!this.#u(this.#i[o])&&(yield e)}}*values(){for(let o of this.#v())this.#i[o]!==void 0&&!this.#u(this.#i[o])&&(yield this.#i[o])}*rvalues(){for(let o of this.#q())this.#i[o]!==void 0&&!this.#u(this.#i[o])&&(yield this.#i[o])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(o,e={}){for(let s of this.#v()){let i=this.#i[s],r=this.#u(i)?i.__staleWhileFetching:i;if(r!==void 0&&o(r,this.#c[s],this))return this.get(this.#c[s],e)}}forEach(o,e=this){for(let s of this.#v()){let i=this.#i[s],r=this.#u(i)?i.__staleWhileFetching:i;r!==void 0&&o.call(e,r,this.#c[s],this)}}rforEach(o,e=this){for(let s of this.#q()){let i=this.#i[s],r=this.#u(i)?i.__staleWhileFetching:i;r!==void 0&&o.call(e,r,this.#c[s],this)}}purgeStale(){let o=!1;for(let e of this.#q({allowStale:!0}))this.#y(e)&&(this.#N(this.#c[e],"expire"),o=!0);return o}info(o){let e=this.#n.get(o);if(e===void 0)return;let s=this.#i[e],i=this.#u(s)?s.__staleWhileFetching:s;if(i===void 0)return;let r={value:i};if(this.#h&&this.#W){let a=this.#h[e],n=this.#W[e];if(a&&n){let c=a-(qt.now()-n);r.ttl=c,r.start=Date.now()}}return this.#G&&(r.size=this.#G[e]),r}dump(){let o=[];for(let e of this.#v({allowStale:!0})){let s=this.#c[e],i=this.#i[e],r=this.#u(i)?i.__staleWhileFetching:i;if(r===void 0||s===void 0)continue;let a={value:r};if(this.#h&&this.#W){a.ttl=this.#h[e];let n=qt.now()-this.#W[e];a.start=Math.floor(Date.now()-n)}this.#G&&(a.size=this.#G[e]),o.unshift([s,a])}return o}load(o){this.clear();for(let[e,s]of o){if(s.start){let i=Date.now()-s.start;s.start=qt.now()-i}this.set(e,s.value,s)}}set(o,e,s={}){if(e===void 0)return this.delete(o),this;let{ttl:i=this.ttl,start:r,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:n=this.sizeCalculation,status:c}=s,{noUpdateTTL:_=this.noUpdateTTL}=s,d=this.#V(o,e,s.size||0,n);if(this.maxEntrySize&&d>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.#N(o,"set"),this;let g=this.#l===0?void 0:this.#n.get(o);if(g===void 0)g=this.#l===0?this.#x:this.#k.length!==0?this.#k.pop():this.#l===this.#o?this.#X(!1):this.#l,this.#c[g]=o,this.#i[g]=e,this.#n.set(o,g),this.#w[this.#x]=g,this.#d[g]=this.#x,this.#x=g,this.#l++,this.#M(g,d,c),c&&(c.set="add"),_=!1;else{this.#I(g);let O=this.#i[g];if(e!==O){if(this.#K&&this.#u(O)){O.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=O;w!==void 0&&!a&&(this.#z&&this.#r?.(w,o,"set"),this.#g&&this.#O?.push([w,o,"set"]))}else a||(this.#z&&this.#r?.(O,o,"set"),this.#g&&this.#O?.push([O,o,"set"]));if(this.#F(g),this.#M(g,d,c),this.#i[g]=e,c){c.set="replace";let w=O&&this.#u(O)?O.__staleWhileFetching:O;w!==void 0&&(c.oldValue=w)}}else c&&(c.set="update")}if(i!==0&&!this.#h&&this.#p(),this.#h&&(_||this.#S(g,i,r),c&&this.#e(c,g)),!a&&this.#g&&this.#O){let O=this.#O,w;for(;w=O?.shift();)this.#s?.(...w)}return this}pop(){try{for(;this.#l;){let o=this.#i[this.#m];if(this.#X(!0),this.#u(o)){if(o.__staleWhileFetching)return o.__staleWhileFetching}else if(o!==void 0)return o}}finally{if(this.#g&&this.#O){let o=this.#O,e;for(;e=o?.shift();)this.#s?.(...e)}}}#X(o){let e=this.#m,s=this.#c[e],i=this.#i[e];return this.#K&&this.#u(i)?i.__abortController.abort(new Error("evicted")):(this.#z||this.#g)&&(this.#z&&this.#r?.(i,s,"evict"),this.#g&&this.#O?.push([i,s,"evict"])),this.#F(e),o&&(this.#c[e]=void 0,this.#i[e]=void 0,this.#k.push(e)),this.#l===1?(this.#m=this.#x=0,this.#k.length=0):this.#m=this.#w[e],this.#n.delete(s),this.#l--,e}has(o,e={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:i}=e,r=this.#n.get(o);if(r!==void 0){let a=this.#i[r];if(this.#u(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#y(r))i&&(i.has="stale",this.#e(i,r));else return s&&this.#b(r),i&&(i.has="hit",this.#e(i,r)),!0}else i&&(i.has="miss");return!1}peek(o,e={}){let{allowStale:s=this.allowStale}=e,i=this.#n.get(o);if(i===void 0||!s&&this.#y(i))return;let r=this.#i[i];return this.#u(r)?r.__staleWhileFetching:r}#Y(o,e,s,i){let r=e===void 0?void 0:this.#i[e];if(this.#u(r))return r;let a=new ms,{signal:n}=s;n?.addEventListener("abort",()=>a.abort(n.reason),{signal:a.signal});let c={signal:a.signal,options:s,context:i},_=(K,q=!1)=>{let{aborted:v}=a.signal,p=s.ignoreFetchAbort&&K!==void 0;if(s.status&&(v&&!q?(s.status.fetchAborted=!0,s.status.fetchError=a.signal.reason,p&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),v&&!p&&!q)return g(a.signal.reason);let m=w;return this.#i[e]===w&&(K===void 0?m.__staleWhileFetching?this.#i[e]=m.__staleWhileFetching:this.#N(o,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(o,K,c.options))),K},d=K=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=K),g(K)),g=K=>{let{aborted:q}=a.signal,v=q&&s.allowStaleOnFetchAbort,p=v||s.allowStaleOnFetchRejection,m=p||s.noDeleteOnFetchRejection,l=w;if(this.#i[e]===w&&(!m||l.__staleWhileFetching===void 0?this.#N(o,"fetch"):v||(this.#i[e]=l.__staleWhileFetching)),p)return s.status&&l.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw K},O=(K,q)=>{let v=this.#a?.(o,r,c);v&&v instanceof Promise&&v.then(p=>K(p===void 0?void 0:p),q),a.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(K(void 0),s.allowStaleOnFetchAbort&&(K=p=>_(p,!0)))})};s.status&&(s.status.fetchDispatched=!0);let w=new Promise(O).then(_,d),z=Object.assign(w,{__abortController:a,__staleWhileFetching:r,__returned:void 0});return e===void 0?(this.set(o,z,{...c.options,status:void 0}),e=this.#n.get(o)):this.#i[e]=z,z}#u(o){if(!this.#K)return!1;let e=o;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof ms}async fetch(o,e={}){let{allowStale:s=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:c=0,sizeCalculation:_=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:O=this.allowStaleOnFetchRejection,ignoreFetchAbort:w=this.ignoreFetchAbort,allowStaleOnFetchAbort:z=this.allowStaleOnFetchAbort,context:K,forceRefresh:q=!1,status:v,signal:p}=e;if(!this.#K)return v&&(v.fetch="get"),this.get(o,{allowStale:s,updateAgeOnGet:i,noDeleteOnStaleGet:r,status:v});let m={allowStale:s,updateAgeOnGet:i,noDeleteOnStaleGet:r,ttl:a,noDisposeOnSet:n,size:c,sizeCalculation:_,noUpdateTTL:d,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:O,allowStaleOnFetchAbort:z,ignoreFetchAbort:w,status:v,signal:p},l=this.#n.get(o);if(l===void 0){v&&(v.fetch="miss");let x=this.#Y(o,l,m,K);return x.__returned=x}else{let x=this.#i[l];if(this.#u(x)){let f=s&&x.__staleWhileFetching!==void 0;return v&&(v.fetch="inflight",f&&(v.returnedStale=!0)),f?x.__staleWhileFetching:x.__returned=x}let u=this.#y(l);if(!q&&!u)return v&&(v.fetch="hit"),this.#I(l),i&&this.#b(l),v&&this.#e(v,l),x;let G=this.#Y(o,l,m,K),h=G.__staleWhileFetching!==void 0&&s;return v&&(v.fetch=u?"stale":"refresh",h&&u&&(v.returnedStale=!0)),h?G.__staleWhileFetching:G.__returned=G}}async forceFetch(o,e={}){let s=await this.fetch(o,e);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(o,e={}){let s=this.#f;if(!s)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:r,...a}=e,n=this.get(o,a);if(!r&&n!==void 0)return n;let c=s(o,n,{options:a,context:i});return this.set(o,c,a),c}get(o,e={}){let{allowStale:s=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:a}=e,n=this.#n.get(o);if(n!==void 0){let c=this.#i[n],_=this.#u(c);return a&&this.#e(a,n),this.#y(n)?(a&&(a.get="stale"),_?(a&&s&&c.__staleWhileFetching!==void 0&&(a.returnedStale=!0),s?c.__staleWhileFetching:void 0):(r||this.#N(o,"expire"),a&&s&&(a.returnedStale=!0),s?c:void 0)):(a&&(a.get="hit"),_?c.__staleWhileFetching:(this.#I(n),i&&this.#b(n),c))}else a&&(a.get="miss")}#Z(o,e){this.#d[e]=o,this.#w[o]=e}#I(o){o!==this.#x&&(o===this.#m?this.#m=this.#w[o]:this.#Z(this.#d[o],this.#w[o]),this.#Z(this.#x,o),this.#x=o)}delete(o){return this.#N(o,"delete")}#N(o,e){let s=!1;if(this.#l!==0){let i=this.#n.get(o);if(i!==void 0)if(s=!0,this.#l===1)this.#P(e);else{this.#F(i);let r=this.#i[i];if(this.#u(r)?r.__abortController.abort(new Error("deleted")):(this.#z||this.#g)&&(this.#z&&this.#r?.(r,o,e),this.#g&&this.#O?.push([r,o,e])),this.#n.delete(o),this.#c[i]=void 0,this.#i[i]=void 0,i===this.#x)this.#x=this.#d[i];else if(i===this.#m)this.#m=this.#w[i];else{let a=this.#d[i];this.#w[a]=this.#w[i];let n=this.#w[i];this.#d[n]=this.#d[i]}this.#l--,this.#k.push(i)}}if(this.#g&&this.#O?.length){let i=this.#O,r;for(;r=i?.shift();)this.#s?.(...r)}return s}clear(){return this.#P("delete")}#P(o){for(let e of this.#q({allowStale:!0})){let s=this.#i[e];if(this.#u(s))s.__abortController.abort(new Error("deleted"));else{let i=this.#c[e];this.#z&&this.#r?.(s,i,o),this.#g&&this.#O?.push([s,i,o])}}if(this.#n.clear(),this.#i.fill(void 0),this.#c.fill(void 0),this.#h&&this.#W&&(this.#h.fill(0),this.#W.fill(0)),this.#G&&this.#G.fill(0),this.#m=0,this.#x=0,this.#k.length=0,this.#_=0,this.#l=0,this.#g&&this.#O){let e=this.#O,s;for(;s=e?.shift();)this.#s?.(...s)}}};var St=require("node:path"),xl=require("node:url"),Fo=require("fs"),ng=I(require("node:fs"),1),it=require("node:fs/promises");var fs=require("node:events"),Di=I(require("node:stream"),1),nl=require("node:string_decoder"),sl=typeof process=="object"&&process?process:{stdout:null,stderr:null},$m=t=>!!t&&typeof t=="object"&&(t instanceof st||t instanceof Di.default||Hm(t)||og(t)),Hm=t=>!!t&&typeof t=="object"&&t instanceof fs.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==Di.default.Writable.prototype.pipe,og=t=>!!t&&typeof t=="object"&&t instanceof fs.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function",Qo=Symbol("EOF"),Ao=Symbol("maybeEmitEnd"),et=Symbol("emittedEnd"),gs=Symbol("emittingEnd"),ce=Symbol("emittedError"),Os=Symbol("closed"),il=Symbol("read"),ws=Symbol("flush"),rl=Symbol("flushChunk"),Wo=Symbol("encoding"),Ct=Symbol("decoder"),J=Symbol("flowing"),le=Symbol("paused"),Nt=Symbol("resume"),B=Symbol("buffer"),ao=Symbol("pipes"),D=Symbol("bufferLength"),Qi=Symbol("bufferPush"),ds=Symbol("bufferShift"),eo=Symbol("objectMode"),U=Symbol("destroyed"),Ai=Symbol("error"),ji=Symbol("emitData"),al=Symbol("emitEnd"),Ri=Symbol("emitEnd2"),No=Symbol("async"),Ji=Symbol("abort"),ys=Symbol("aborted"),ue=Symbol("signal"),mt=Symbol("dataListeners"),go=Symbol("discarded"),_e=t=>Promise.resolve().then(t),tg=t=>t(),eg=t=>t==="end"||t==="finish"||t==="prefinish",sg=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,ig=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),hs=class{src;dest;opts;ondrain;constructor(o,e,s){this.src=o,this.dest=e,this.opts=s,this.ondrain=()=>o[Nt](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(o){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Bi=class extends hs{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(o,e,s){super(o,e,s),this.proxyErrors=i=>e.emit("error",i),o.on("error",this.proxyErrors)}},rg=t=>!!t.objectMode,ag=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",st=class extends fs.EventEmitter{[J]=!1;[le]=!1;[ao]=[];[B]=[];[eo];[Wo];[No];[Ct];[Qo]=!1;[et]=!1;[gs]=!1;[Os]=!1;[ce]=null;[D]=0;[U]=!1;[ue];[ys]=!1;[mt]=0;[go]=!1;writable=!0;readable=!0;constructor(...o){let e=o[0]||{};if(super(),e.objectMode&&typeof e.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");rg(e)?(this[eo]=!0,this[Wo]=null):ag(e)?(this[Wo]=e.encoding,this[eo]=!1):(this[eo]=!1,this[Wo]=null),this[No]=!!e.async,this[Ct]=this[Wo]?new nl.StringDecoder(this[Wo]):null,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[B]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ao]});let{signal:s}=e;s&&(this[ue]=s,s.aborted?this[Ji]():s.addEventListener("abort",()=>this[Ji]()))}get bufferLength(){return this[D]}get encoding(){return this[Wo]}set encoding(o){throw new Error("Encoding must be set at instantiation time")}setEncoding(o){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[eo]}set objectMode(o){throw new Error("objectMode must be set at instantiation time")}get async(){return this[No]}set async(o){this[No]=this[No]||!!o}[Ji](){this[ys]=!0,this.emit("abort",this[ue]?.reason),this.destroy(this[ue]?.reason)}get aborted(){return this[ys]}set aborted(o){}write(o,e,s){if(this[ys])return!1;if(this[Qo])throw new Error("write after end");if(this[U])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof e=="function"&&(s=e,e="utf8"),e||(e="utf8");let i=this[No]?_e:tg;if(!this[eo]&&!Buffer.isBuffer(o)){if(ig(o))o=Buffer.from(o.buffer,o.byteOffset,o.byteLength);else if(sg(o))o=Buffer.from(o);else if(typeof o!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[eo]?(this[J]&&this[D]!==0&&this[ws](!0),this[J]?this.emit("data",o):this[Qi](o),this[D]!==0&&this.emit("readable"),s&&i(s),this[J]):o.length?(typeof o=="string"&&!(e===this[Wo]&&!this[Ct]?.lastNeed)&&(o=Buffer.from(o,e)),Buffer.isBuffer(o)&&this[Wo]&&(o=this[Ct].write(o)),this[J]&&this[D]!==0&&this[ws](!0),this[J]?this.emit("data",o):this[Qi](o),this[D]!==0&&this.emit("readable"),s&&i(s),this[J]):(this[D]!==0&&this.emit("readable"),s&&i(s),this[J])}read(o){if(this[U])return null;if(this[go]=!1,this[D]===0||o===0||o&&o>this[D])return this[Ao](),null;this[eo]&&(o=null),this[B].length>1&&!this[eo]&&(this[B]=[this[Wo]?this[B].join(""):Buffer.concat(this[B],this[D])]);let e=this[il](o||null,this[B][0]);return this[Ao](),e}[il](o,e){if(this[eo])this[ds]();else{let s=e;o===s.length||o===null?this[ds]():typeof s=="string"?(this[B][0]=s.slice(o),e=s.slice(0,o),this[D]-=o):(this[B][0]=s.subarray(o),e=s.subarray(0,o),this[D]-=o)}return this.emit("data",e),!this[B].length&&!this[Qo]&&this.emit("drain"),e}end(o,e,s){return typeof o=="function"&&(s=o,o=void 0),typeof e=="function"&&(s=e,e="utf8"),o!==void 0&&this.write(o,e),s&&this.once("end",s),this[Qo]=!0,this.writable=!1,(this[J]||!this[le])&&this[Ao](),this}[Nt](){this[U]||(!this[mt]&&!this[ao].length&&(this[go]=!0),this[le]=!1,this[J]=!0,this.emit("resume"),this[B].length?this[ws]():this[Qo]?this[Ao]():this.emit("drain"))}resume(){return this[Nt]()}pause(){this[J]=!1,this[le]=!0,this[go]=!1}get destroyed(){return this[U]}get flowing(){return this[J]}get paused(){return this[le]}[Qi](o){this[eo]?this[D]+=1:this[D]+=o.length,this[B].push(o)}[ds](){return this[eo]?this[D]-=1:this[D]-=this[B][0].length,this[B].shift()}[ws](o=!1){do;while(this[rl](this[ds]())&&this[B].length);!o&&!this[B].length&&!this[Qo]&&this.emit("drain")}[rl](o){return this.emit("data",o),this[J]}pipe(o,e){if(this[U])return o;this[go]=!1;let s=this[et];return e=e||{},o===sl.stdout||o===sl.stderr?e.end=!1:e.end=e.end!==!1,e.proxyErrors=!!e.proxyErrors,s?e.end&&o.end():(this[ao].push(e.proxyErrors?new Bi(this,o,e):new hs(this,o,e)),this[No]?_e(()=>this[Nt]()):this[Nt]()),o}unpipe(o){let e=this[ao].find(s=>s.dest===o);e&&(this[ao].length===1?(this[J]&&this[mt]===0&&(this[J]=!1),this[ao]=[]):this[ao].splice(this[ao].indexOf(e),1),e.unpipe())}addListener(o,e){return this.on(o,e)}on(o,e){let s=super.on(o,e);if(o==="data")this[go]=!1,this[mt]++,!this[ao].length&&!this[J]&&this[Nt]();else if(o==="readable"&&this[D]!==0)super.emit("readable");else if(eg(o)&&this[et])super.emit(o),this.removeAllListeners(o);else if(o==="error"&&this[ce]){let i=e;this[No]?_e(()=>i.call(this,this[ce])):i.call(this,this[ce])}return s}removeListener(o,e){return this.off(o,e)}off(o,e){let s=super.off(o,e);return o==="data"&&(this[mt]=this.listeners("data").length,this[mt]===0&&!this[go]&&!this[ao].length&&(this[J]=!1)),s}removeAllListeners(o){let e=super.removeAllListeners(o);return(o==="data"||o===void 0)&&(this[mt]=0,!this[go]&&!this[ao].length&&(this[J]=!1)),e}get emittedEnd(){return this[et]}[Ao](){!this[gs]&&!this[et]&&!this[U]&&this[B].length===0&&this[Qo]&&(this[gs]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Os]&&this.emit("close"),this[gs]=!1)}emit(o,...e){let s=e[0];if(o!=="error"&&o!=="close"&&o!==U&&this[U])return!1;if(o==="data")return!this[eo]&&!s?!1:this[No]?(_e(()=>this[ji](s)),!0):this[ji](s);if(o==="end")return this[al]();if(o==="close"){if(this[Os]=!0,!this[et]&&!this[U])return!1;let r=super.emit("close");return this.removeAllListeners("close"),r}else if(o==="error"){this[ce]=s,super.emit(Ai,s);let r=!this[ue]||this.listeners("error").length?super.emit("error",s):!1;return this[Ao](),r}else if(o==="resume"){let r=super.emit("resume");return this[Ao](),r}else if(o==="finish"||o==="prefinish"){let r=super.emit(o);return this.removeAllListeners(o),r}let i=super.emit(o,...e);return this[Ao](),i}[ji](o){for(let s of this[ao])s.dest.write(o)===!1&&this.pause();let e=this[go]?!1:super.emit("data",o);return this[Ao](),e}[al](){return this[et]?!1:(this[et]=!0,this.readable=!1,this[No]?(_e(()=>this[Ri]()),!0):this[Ri]())}[Ri](){if(this[Ct]){let e=this[Ct].end();if(e){for(let s of this[ao])s.dest.write(e);this[go]||super.emit("data",e)}}for(let e of this[ao])e.end();let o=super.emit("end");return this.removeAllListeners("end"),o}async collect(){let o=Object.assign([],{dataLength:0});this[eo]||(o.dataLength=0);let e=this.promise();return this.on("data",s=>{o.push(s),this[eo]||(o.dataLength+=s.length)}),await e,o}async concat(){if(this[eo])throw new Error("cannot concat in objectMode");let o=await this.collect();return this[Wo]?o.join(""):Buffer.concat(o,o.dataLength)}async promise(){return new Promise((o,e)=>{this.on(U,()=>e(new Error("stream destroyed"))),this.on("error",s=>e(s)),this.on("end",()=>o())})}[Symbol.asyncIterator](){this[go]=!1;let o=!1,e=async()=>(this.pause(),o=!0,{value:void 0,done:!0});return{next:()=>{if(o)return e();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Qo])return e();let r,a,n=g=>{this.off("data",c),this.off("end",_),this.off(U,d),e(),a(g)},c=g=>{this.off("error",n),this.off("end",_),this.off(U,d),this.pause(),r({value:g,done:!!this[Qo]})},_=()=>{this.off("error",n),this.off("data",c),this.off(U,d),e(),r({done:!0,value:void 0})},d=()=>n(new Error("stream destroyed"));return new Promise((g,O)=>{a=O,r=g,this.once(U,d),this.once("error",n),this.once("end",_),this.once("data",c)})},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[go]=!1;let o=!1,e=()=>(this.pause(),this.off(Ai,e),this.off(U,e),this.off("end",e),o=!0,{done:!0,value:void 0}),s=()=>{if(o)return e();let i=this.read();return i===null?e():{done:!1,value:i}};return this.once("end",e),this.once(Ai,e),this.once(U,e),{next:s,throw:e,return:e,[Symbol.iterator](){return this}}}destroy(o){if(this[U])return o?this.emit("error",o):this.emit(U),this;this[U]=!0,this[go]=!0,this[B].length=0,this[D]=0;let e=this;return typeof e.close=="function"&&!this[Os]&&e.close(),o?this.emit("error",o):this.emit(U),this}static get isStream(){return $m}};var cg=Fo.realpathSync.native,me={lstatSync:Fo.lstatSync,readdir:Fo.readdir,readdirSync:Fo.readdirSync,readlinkSync:Fo.readlinkSync,realpathSync:cg,promises:{lstat:it.lstat,readdir:it.readdir,readlink:it.readlink,realpath:it.realpath}},ml=t=>!t||t===me||t===ng?me:{...me,...t,promises:{...me.promises,...t.promises||{}}},gl=/^\\\\\?\\([a-z]:)\\?$/i,lg=t=>t.replace(/\//g,"\\").replace(gl,"$1\\"),ug=/[\\\/]/,zo=0,Ol=1,wl=2,So=4,dl=6,yl=8,gt=10,hl=12,fo=15,xe=~fo,$i=16,cl=32,ge=64,bo=128,zs=256,ks=512,ll=ge|bo|ks,_g=1023,Hi=t=>t.isFile()?yl:t.isDirectory()?So:t.isSymbolicLink()?gt:t.isCharacterDevice()?wl:t.isBlockDevice()?dl:t.isSocket()?hl:t.isFIFO()?Ol:zo,ul=new Map,Oe=t=>{let o=ul.get(t);if(o)return o;let e=t.normalize("NFKD");return ul.set(t,e),e},_l=new Map,Ks=t=>{let o=_l.get(t);if(o)return o;let e=Oe(t.toLowerCase());return _l.set(t,e),e},Gs=class extends ne{constructor(){super({max:256})}},or=class extends ne{constructor(o=16*1024){super({maxSize:o,sizeCalculation:e=>e.length+1})}},fl=Symbol("PathScurry setAsCwd"),so=class{name;root;roots;parent;nocase;isCWD=!1;#o;#t;get dev(){return this.#t}#r;get mode(){return this.#r}#s;get nlink(){return this.#s}#a;get uid(){return this.#a}#f;get gid(){return this.#f}#l;get rdev(){return this.#l}#_;get blksize(){return this.#_}#n;get ino(){return this.#n}#c;get size(){return this.#c}#i;get blocks(){return this.#i}#w;get atimeMs(){return this.#w}#d;get mtimeMs(){return this.#d}#m;get ctimeMs(){return this.#m}#x;get birthtimeMs(){return this.#x}#k;get atime(){return this.#k}#O;get mtime(){return this.#O}#G;get ctime(){return this.#G}#W;get birthtime(){return this.#W}#h;#z;#K;#g;#p;#b;#e;#S;#y;#C;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(o,e=zo,s,i,r,a,n){this.name=o,this.#h=r?Ks(o):Oe(o),this.#e=e&_g,this.nocase=r,this.roots=i,this.root=s||this,this.#S=a,this.#K=n.fullpath,this.#p=n.relative,this.#b=n.relativePosix,this.parent=n.parent,this.parent?this.#o=this.parent.#o:this.#o=ml(n.fs)}depth(){return this.#z!==void 0?this.#z:this.parent?this.#z=this.parent.depth()+1:this.#z=0}childrenCache(){return this.#S}resolve(o){if(!o)return this;let e=this.getRootString(o),i=o.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#F(i):this.#F(i)}#F(o){let e=this;for(let s of o)e=e.child(s);return e}children(){let o=this.#S.get(this);if(o)return o;let e=Object.assign([],{provisional:0});return this.#S.set(this,e),this.#e&=~$i,e}child(o,e){if(o===""||o===".")return this;if(o==="..")return this.parent||this;let s=this.children(),i=this.nocase?Ks(o):Oe(o);for(let c of s)if(c.#h===i)return c;let r=this.parent?this.sep:"",a=this.#K?this.#K+r+o:void 0,n=this.newChild(o,zo,{...e,parent:this,fullpath:a});return this.canReaddir()||(n.#e|=bo),s.push(n),n}relative(){if(this.isCWD)return"";if(this.#p!==void 0)return this.#p;let o=this.name,e=this.parent;if(!e)return this.#p=this.name;let s=e.relative();return s+(!s||!e.parent?"":this.sep)+o}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#b!==void 0)return this.#b;let o=this.name,e=this.parent;if(!e)return this.#b=this.fullpathPosix();let s=e.relativePosix();return s+(!s||!e.parent?"":"/")+o}fullpath(){if(this.#K!==void 0)return this.#K;let o=this.name,e=this.parent;if(!e)return this.#K=this.name;let i=e.fullpath()+(e.parent?this.sep:"")+o;return this.#K=i}fullpathPosix(){if(this.#g!==void 0)return this.#g;if(this.sep==="/")return this.#g=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#g=`//?/${i}`:this.#g=i}let o=this.parent,e=o.fullpathPosix(),s=e+(!e||!o.parent?"":"/")+this.name;return this.#g=s}isUnknown(){return(this.#e&fo)===zo}isType(o){return this[`is${o}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#e&fo)===yl}isDirectory(){return(this.#e&fo)===So}isCharacterDevice(){return(this.#e&fo)===wl}isBlockDevice(){return(this.#e&fo)===dl}isFIFO(){return(this.#e&fo)===Ol}isSocket(){return(this.#e&fo)===hl}isSymbolicLink(){return(this.#e&gt)===gt}lstatCached(){return this.#e&cl?this:void 0}readlinkCached(){return this.#y}realpathCached(){return this.#C}readdirCached(){let o=this.children();return o.slice(0,o.provisional)}canReadlink(){if(this.#y)return!0;if(!this.parent)return!1;let o=this.#e&fo;return!(o!==zo&&o!==gt||this.#e&zs||this.#e&bo)}calledReaddir(){return!!(this.#e&$i)}isENOENT(){return!!(this.#e&bo)}isNamed(o){return this.nocase?this.#h===Ks(o):this.#h===Oe(o)}async readlink(){let o=this.#y;if(o)return o;if(this.canReadlink()&&this.parent)try{let e=await this.#o.promises.readlink(this.fullpath()),s=(await this.parent.realpath())?.resolve(e);if(s)return this.#y=s}catch(e){this.#u(e.code);return}}readlinkSync(){let o=this.#y;if(o)return o;if(this.canReadlink()&&this.parent)try{let e=this.#o.readlinkSync(this.fullpath()),s=this.parent.realpathSync()?.resolve(e);if(s)return this.#y=s}catch(e){this.#u(e.code);return}}#M(o){this.#e|=$i;for(let e=o.provisional;e<o.length;e++){let s=o[e];s&&s.#V()}}#V(){this.#e&bo||(this.#e=(this.#e|bo)&xe,this.#v())}#v(){let o=this.children();o.provisional=0;for(let e of o)e.#V()}#q(){this.#e|=ks,this.#E()}#E(){if(this.#e&ge)return;let o=this.#e;(o&fo)===So&&(o&=xe),this.#e=o|ge,this.#v()}#X(o=""){o==="ENOTDIR"||o==="EPERM"?this.#E():o==="ENOENT"?this.#V():this.children().provisional=0}#Y(o=""){o==="ENOTDIR"?this.parent.#E():o==="ENOENT"&&this.#V()}#u(o=""){let e=this.#e;e|=zs,o==="ENOENT"&&(e|=bo),(o==="EINVAL"||o==="UNKNOWN")&&(e&=xe),this.#e=e,o==="ENOTDIR"&&this.parent&&this.parent.#E()}#Z(o,e){return this.#N(o,e)||this.#I(o,e)}#I(o,e){let s=Hi(o),i=this.newChild(o.name,s,{parent:this}),r=i.#e&fo;return r!==So&&r!==gt&&r!==zo&&(i.#e|=ge),e.unshift(i),e.provisional++,i}#N(o,e){for(let s=e.provisional;s<e.length;s++){let i=e[s];if((this.nocase?Ks(o.name):Oe(o.name))===i.#h)return this.#P(o,i,s,e)}}#P(o,e,s,i){let r=e.name;return e.#e=e.#e&xe|Hi(o),r!==o.name&&(e.name=o.name),s!==i.provisional&&(s===i.length-1?i.pop():i.splice(s,1),i.unshift(e)),i.provisional++,e}async lstat(){if((this.#e&bo)===0)try{return this.#Q(await this.#o.promises.lstat(this.fullpath())),this}catch(o){this.#Y(o.code)}}lstatSync(){if((this.#e&bo)===0)try{return this.#Q(this.#o.lstatSync(this.fullpath())),this}catch(o){this.#Y(o.code)}}#Q(o){let{atime:e,atimeMs:s,birthtime:i,birthtimeMs:r,blksize:a,blocks:n,ctime:c,ctimeMs:_,dev:d,gid:g,ino:O,mode:w,mtime:z,mtimeMs:K,nlink:q,rdev:v,size:p,uid:m}=o;this.#k=e,this.#w=s,this.#W=i,this.#x=r,this.#_=a,this.#i=n,this.#G=c,this.#m=_,this.#t=d,this.#f=g,this.#n=O,this.#r=w,this.#O=z,this.#d=K,this.#s=q,this.#l=v,this.#c=p,this.#a=m;let l=Hi(o);this.#e=this.#e&xe|l|cl,l!==zo&&l!==So&&l!==gt&&(this.#e|=ge)}#T=[];#U=!1;#A(o){this.#U=!1;let e=this.#T.slice();this.#T.length=0,e.forEach(s=>s(null,o))}readdirCB(o,e=!1){if(!this.canReaddir()){e?o(null,[]):queueMicrotask(()=>o(null,[]));return}let s=this.children();if(this.calledReaddir()){let r=s.slice(0,s.provisional);e?o(null,r):queueMicrotask(()=>o(null,r));return}if(this.#T.push(o),this.#U)return;this.#U=!0;let i=this.fullpath();this.#o.readdir(i,{withFileTypes:!0},(r,a)=>{if(r)this.#X(r.code),s.provisional=0;else{for(let n of a)this.#Z(n,s);this.#M(s)}this.#A(s.slice(0,s.provisional))})}#L;async readdir(){if(!this.canReaddir())return[];let o=this.children();if(this.calledReaddir())return o.slice(0,o.provisional);let e=this.fullpath();if(this.#L)await this.#L;else{let s=()=>{};this.#L=new Promise(i=>s=i);try{for(let i of await this.#o.promises.readdir(e,{withFileTypes:!0}))this.#Z(i,o);this.#M(o)}catch(i){this.#X(i.code),o.provisional=0}this.#L=void 0,s()}return o.slice(0,o.provisional)}readdirSync(){if(!this.canReaddir())return[];let o=this.children();if(this.calledReaddir())return o.slice(0,o.provisional);let e=this.fullpath();try{for(let s of this.#o.readdirSync(e,{withFileTypes:!0}))this.#Z(s,o);this.#M(o)}catch(s){this.#X(s.code),o.provisional=0}return o.slice(0,o.provisional)}canReaddir(){if(this.#e&ll)return!1;let o=fo&this.#e;return o===zo||o===So||o===gt}shouldWalk(o,e){return(this.#e&So)===So&&!(this.#e&ll)&&!o.has(this)&&(!e||e(this))}async realpath(){if(this.#C)return this.#C;if(!((ks|zs|bo)&this.#e))try{let o=await this.#o.promises.realpath(this.fullpath());return this.#C=this.resolve(o)}catch{this.#q()}}realpathSync(){if(this.#C)return this.#C;if(!((ks|zs|bo)&this.#e))try{let o=this.#o.realpathSync(this.fullpath());return this.#C=this.resolve(o)}catch{this.#q()}}[fl](o){if(o===this)return;o.isCWD=!1,this.isCWD=!0;let e=new Set([]),s=[],i=this;for(;i&&i.parent;)e.add(i),i.#p=s.join(this.sep),i.#b=s.join("/"),i=i.parent,s.push("..");for(i=o;i&&i.parent&&!e.has(i);)i.#p=void 0,i.#b=void 0,i=i.parent}},Ws=class t extends so{sep="\\";splitSep=ug;constructor(o,e=zo,s,i,r,a,n){super(o,e,s,i,r,a,n)}newChild(o,e=zo,s={}){return new t(o,e,this.root,this.roots,this.nocase,this.childrenCache(),s)}getRootString(o){return St.win32.parse(o).root}getRoot(o){if(o=lg(o.toUpperCase()),o===this.root.name)return this.root;for(let[e,s]of Object.entries(this.roots))if(this.sameRoot(o,e))return this.roots[o]=s;return this.roots[o]=new Ft(o,this).root}sameRoot(o,e=this.root.name){return o=o.toUpperCase().replace(/\//g,"\\").replace(gl,"$1\\"),o===e}},bs=class t extends so{splitSep="/";sep="/";constructor(o,e=zo,s,i,r,a,n){super(o,e,s,i,r,a,n)}getRootString(o){return o.startsWith("/")?"/":""}getRoot(o){return this.root}newChild(o,e=zo,s={}){return new t(o,e,this.root,this.roots,this.nocase,this.childrenCache(),s)}},vs=class{root;rootPath;roots;cwd;#o;#t;#r;nocase;#s;constructor(o=process.cwd(),e,s,{nocase:i,childrenCacheSize:r=16*1024,fs:a=me}={}){this.#s=ml(a),(o instanceof URL||o.startsWith("file://"))&&(o=(0,xl.fileURLToPath)(o));let n=e.resolve(o);this.roots=Object.create(null),this.rootPath=this.parseRootPath(n),this.#o=new Gs,this.#t=new Gs,this.#r=new or(r);let c=n.substring(this.rootPath.length).split(s);if(c.length===1&&!c[0]&&c.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#s),this.roots[this.rootPath]=this.root;let _=this.root,d=c.length-1,g=e.sep,O=this.rootPath,w=!1;for(let z of c){let K=d--;_=_.child(z,{relative:new Array(K).fill("..").join(g),relativePosix:new Array(K).fill("..").join("/"),fullpath:O+=(w?"":g)+z}),w=!0}this.cwd=_}depth(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.depth()}childrenCache(){return this.#r}resolve(...o){let e="";for(let r=o.length-1;r>=0;r--){let a=o[r];if(!(!a||a===".")&&(e=e?`${a}/${e}`:a,this.isAbsolute(a)))break}let s=this.#o.get(e);if(s!==void 0)return s;let i=this.cwd.resolve(e).fullpath();return this.#o.set(e,i),i}resolvePosix(...o){let e="";for(let r=o.length-1;r>=0;r--){let a=o[r];if(!(!a||a===".")&&(e=e?`${a}/${e}`:a,this.isAbsolute(a)))break}let s=this.#t.get(e);if(s!==void 0)return s;let i=this.cwd.resolve(e).fullpathPosix();return this.#t.set(e,i),i}relative(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.relative()}relativePosix(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.relativePosix()}basename(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.name}dirname(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),(o.parent||o).fullpath()}async readdir(o=this.cwd,e={withFileTypes:!0}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s}=e;if(o.canReaddir()){let i=await o.readdir();return s?i:i.map(r=>r.name)}else return[]}readdirSync(o=this.cwd,e={withFileTypes:!0}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s=!0}=e;return o.canReaddir()?s?o.readdirSync():o.readdirSync().map(i=>i.name):[]}async lstat(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.lstat()}lstatSync(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.lstatSync()}async readlink(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o.withFileTypes,o=this.cwd);let s=await o.readlink();return e?s:s?.fullpath()}readlinkSync(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o.withFileTypes,o=this.cwd);let s=o.readlinkSync();return e?s:s?.fullpath()}async realpath(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o.withFileTypes,o=this.cwd);let s=await o.realpath();return e?s:s?.fullpath()}realpathSync(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o.withFileTypes,o=this.cwd);let s=o.realpathSync();return e?s:s?.fullpath()}async walk(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:a}=e,n=[];(!r||r(o))&&n.push(s?o:o.fullpath());let c=new Set,_=(g,O)=>{c.add(g),g.readdirCB((w,z)=>{if(w)return O(w);let K=z.length;if(!K)return O();let q=()=>{--K===0&&O()};for(let v of z)(!r||r(v))&&n.push(s?v:v.fullpath()),i&&v.isSymbolicLink()?v.realpath().then(p=>p?.isUnknown()?p.lstat():p).then(p=>p?.shouldWalk(c,a)?_(p,q):q()):v.shouldWalk(c,a)?_(v,q):q()},!0)},d=o;return new Promise((g,O)=>{_(d,w=>{if(w)return O(w);g(n)})})}walkSync(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:a}=e,n=[];(!r||r(o))&&n.push(s?o:o.fullpath());let c=new Set([o]);for(let _ of c){let d=_.readdirSync();for(let g of d){(!r||r(g))&&n.push(s?g:g.fullpath());let O=g;if(g.isSymbolicLink()){if(!(i&&(O=g.realpathSync())))continue;O.isUnknown()&&O.lstatSync()}O.shouldWalk(c,a)&&c.add(O)}}return n}[Symbol.asyncIterator](){return this.iterate()}iterate(o=this.cwd,e={}){return typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd),this.stream(o,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:a}=e;(!r||r(o))&&(yield s?o:o.fullpath());let n=new Set([o]);for(let c of n){let _=c.readdirSync();for(let d of _){(!r||r(d))&&(yield s?d:d.fullpath());let g=d;if(d.isSymbolicLink()){if(!(i&&(g=d.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(n,a)&&n.add(g)}}}stream(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:a}=e,n=new st({objectMode:!0});(!r||r(o))&&n.write(s?o:o.fullpath());let c=new Set,_=[o],d=0,g=()=>{let O=!1;for(;!O;){let w=_.shift();if(!w){d===0&&n.end();return}d++,c.add(w);let z=(q,v,p=!1)=>{if(q)return n.emit("error",q);if(i&&!p){let m=[];for(let l of v)l.isSymbolicLink()&&m.push(l.realpath().then(x=>x?.isUnknown()?x.lstat():x));if(m.length){Promise.all(m).then(()=>z(null,v,!0));return}}for(let m of v)m&&(!r||r(m))&&(n.write(s?m:m.fullpath())||(O=!0));d--;for(let m of v){let l=m.realpathCached()||m;l.shouldWalk(c,a)&&_.push(l)}O&&!n.flowing?n.once("drain",g):K||g()},K=!0;w.readdirCB(z,!0),K=!1}};return g(),n}streamSync(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:a}=e,n=new st({objectMode:!0}),c=new Set;(!r||r(o))&&n.write(s?o:o.fullpath());let _=[o],d=0,g=()=>{let O=!1;for(;!O;){let w=_.shift();if(!w){d===0&&n.end();return}d++,c.add(w);let z=w.readdirSync();for(let K of z)(!r||r(K))&&(n.write(s?K:K.fullpath())||(O=!0));d--;for(let K of z){let q=K;if(K.isSymbolicLink()){if(!(i&&(q=K.realpathSync())))continue;q.isUnknown()&&q.lstatSync()}q.shouldWalk(c,a)&&_.push(q)}}O&&!n.flowing&&n.once("drain",g)};return g(),n}chdir(o=this.cwd){let e=this.cwd;this.cwd=typeof o=="string"?this.cwd.resolve(o):o,this.cwd[fl](e)}},Ft=class extends vs{sep="\\";constructor(o=process.cwd(),e={}){let{nocase:s=!0}=e;super(o,St.win32,"\\",{...e,nocase:s}),this.nocase=s;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(o){return St.win32.parse(o).root.toUpperCase()}newRoot(o){return new Ws(this.rootPath,So,void 0,this.roots,this.nocase,this.childrenCache(),{fs:o})}isAbsolute(o){return o.startsWith("/")||o.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(o)}},Mt=class extends vs{sep="/";constructor(o=process.cwd(),e={}){let{nocase:s=!1}=e;super(o,St.posix,"/",{...e,nocase:s}),this.nocase=s}parseRootPath(o){return"/"}newRoot(o){return new bs(this.rootPath,So,void 0,this.roots,this.nocase,this.childrenCache(),{fs:o})}isAbsolute(o){return o.startsWith("/")}},we=class extends Mt{constructor(o=process.cwd(),e={}){let{nocase:s=!0}=e;super(o,{...e,nocase:s})}},qw=process.platform==="win32"?Ws:bs,zl=process.platform==="win32"?Ft:process.platform==="darwin"?we:Mt;var xg=t=>t.length>=1,mg=t=>t.length>=1,Vt=class t{#o;#t;#r;length;#s;#a;#f;#l;#_;#n;#c=!0;constructor(o,e,s,i){if(!xg(o))throw new TypeError("empty pattern list");if(!mg(e))throw new TypeError("empty glob list");if(e.length!==o.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=o.length,s<0||s>=this.length)throw new TypeError("index out of range");if(this.#o=o,this.#t=e,this.#r=s,this.#s=i,this.#r===0){if(this.isUNC()){let[r,a,n,c,..._]=this.#o,[d,g,O,w,...z]=this.#t;_[0]===""&&(_.shift(),z.shift());let K=[r,a,n,c,""].join("/"),q=[d,g,O,w,""].join("/");this.#o=[K,..._],this.#t=[q,...z],this.length=this.#o.length}else if(this.isDrive()||this.isAbsolute()){let[r,...a]=this.#o,[n,...c]=this.#t;a[0]===""&&(a.shift(),c.shift());let _=r+"/",d=n+"/";this.#o=[_,...a],this.#t=[d,...c],this.length=this.#o.length}}}pattern(){return this.#o[this.#r]}isString(){return typeof this.#o[this.#r]=="string"}isGlobstar(){return this.#o[this.#r]===oo}isRegExp(){return this.#o[this.#r]instanceof RegExp}globString(){return this.#f=this.#f||(this.#r===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return this.#a!==void 0?this.#a:this.hasMore()?(this.#a=new t(this.#o,this.#t,this.#r+1,this.#s),this.#a.#n=this.#n,this.#a.#_=this.#_,this.#a.#l=this.#l,this.#a):this.#a=null}isUNC(){let o=this.#o;return this.#_!==void 0?this.#_:this.#_=this.#s==="win32"&&this.#r===0&&o[0]===""&&o[1]===""&&typeof o[2]=="string"&&!!o[2]&&typeof o[3]=="string"&&!!o[3]}isDrive(){let o=this.#o;return this.#l!==void 0?this.#l:this.#l=this.#s==="win32"&&this.#r===0&&this.length>1&&typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0])}isAbsolute(){let o=this.#o;return this.#n!==void 0?this.#n:this.#n=o[0]===""&&o.length>1||this.isDrive()||this.isUNC()}root(){let o=this.#o[0];return typeof o=="string"&&this.isAbsolute()&&this.#r===0?o:""}checkFollowGlobstar(){return!(this.#r===0||!this.isGlobstar()||!this.#c)}markFollowGlobstar(){return this.#r===0||!this.isGlobstar()||!this.#c?!1:(this.#c=!1,!0)}};var gg=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Et=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(o,{nobrace:e,nocase:s,noext:i,noglobstar:r,platform:a=gg}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:e,nocase:s,noext:i,noglobstar:r,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let n of o)this.add(n)}add(o){let e=new mo(o,this.mmopts);for(let s=0;s<e.set.length;s++){let i=e.set[s],r=e.globParts[s];if(!i||!r)throw new Error("invalid pattern object");for(;i[0]==="."&&r[0]===".";)i.shift(),r.shift();let a=new Vt(i,r,0,this.platform),n=new mo(a.globString(),this.mmopts),c=r[r.length-1]==="**",_=a.isAbsolute();_?this.absolute.push(n):this.relative.push(n),c&&(_?this.absoluteChildren.push(n):this.relativeChildren.push(n))}}ignored(o){let e=o.fullpath(),s=`${e}/`,i=o.relative()||".",r=`${i}/`;for(let a of this.relative)if(a.match(i)||a.match(r))return!0;for(let a of this.absolute)if(a.match(e)||a.match(s))return!0;return!1}childrenIgnored(o){let e=o.fullpath()+"/",s=(o.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(s))return!0;for(let i of this.absoluteChildren)if(i.match(e))return!0;return!1}};var tr=class t{store;constructor(o=new Map){this.store=o}copy(){return new t(new Map(this.store))}hasWalked(o,e){return this.store.get(o.fullpath())?.has(e.globString())}storeWalked(o,e){let s=o.fullpath(),i=this.store.get(s);i?i.add(e.globString()):this.store.set(s,new Set([e.globString()]))}},er=class{store=new Map;add(o,e,s){let i=(e?2:0)|(s?1:0),r=this.store.get(o);this.store.set(o,r===void 0?i:i&r)}entries(){return[...this.store.entries()].map(([o,e])=>[o,!!(e&2),!!(e&1)])}},sr=class{store=new Map;add(o,e){if(!o.canReaddir())return;let s=this.store.get(o);s?s.find(i=>i.globString()===e.globString())||s.push(e):this.store.set(o,[e])}get(o){let e=this.store.get(o);if(!e)throw new Error("attempting to walk unknown path");return e}entries(){return this.keys().map(o=>[o,this.store.get(o)])}keys(){return[...this.store.keys()].filter(o=>o.canReaddir())}},de=class t{hasWalkedCache;matches=new er;subwalks=new sr;patterns;follow;dot;opts;constructor(o,e){this.opts=o,this.follow=!!o.follow,this.dot=!!o.dot,this.hasWalkedCache=e?e.copy():new tr}processPatterns(o,e){this.patterns=e;let s=e.map(i=>[o,i]);for(let[i,r]of s){this.hasWalkedCache.storeWalked(i,r);let a=r.root(),n=r.isAbsolute()&&this.opts.absolute!==!1;if(a){i=i.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);let g=r.rest();if(g)r=g;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let c,_,d=!1;for(;typeof(c=r.pattern())=="string"&&(_=r.rest());)i=i.resolve(c),r=_,d=!0;if(c=r.pattern(),_=r.rest(),d){if(this.hasWalkedCache.hasWalked(i,r))continue;this.hasWalkedCache.storeWalked(i,r)}if(typeof c=="string"){let g=c===".."||c===""||c===".";this.matches.add(i.resolve(c),n,g);continue}else if(c===oo){(!i.isSymbolicLink()||this.follow||r.checkFollowGlobstar())&&this.subwalks.add(i,r);let g=_?.pattern(),O=_?.rest();if(!_||(g===""||g===".")&&!O)this.matches.add(i,n,g===""||g===".");else if(g===".."){let w=i.parent||i;O?this.hasWalkedCache.hasWalked(w,O)||this.subwalks.add(w,O):this.matches.add(w,n,!0)}}else c instanceof RegExp&&this.subwalks.add(i,r)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(o,e){let s=this.subwalks.get(o),i=this.child();for(let r of e)for(let a of s){let n=a.isAbsolute(),c=a.pattern(),_=a.rest();c===oo?i.testGlobstar(r,a,_,n):c instanceof RegExp?i.testRegExp(r,c,_,n):i.testString(r,c,_,n)}return i}testGlobstar(o,e,s,i){if((this.dot||!o.name.startsWith("."))&&(e.hasMore()||this.matches.add(o,i,!1),o.canReaddir()&&(this.follow||!o.isSymbolicLink()?this.subwalks.add(o,e):o.isSymbolicLink()&&(s&&e.checkFollowGlobstar()?this.subwalks.add(o,s):e.markFollowGlobstar()&&this.subwalks.add(o,e)))),s){let r=s.pattern();if(typeof r=="string"&&r!==".."&&r!==""&&r!==".")this.testString(o,r,s.rest(),i);else if(r===".."){let a=o.parent||o;this.subwalks.add(a,s)}else r instanceof RegExp&&this.testRegExp(o,r,s.rest(),i)}}testRegExp(o,e,s,i){e.test(o.name)&&(s?this.subwalks.add(o,s):this.matches.add(o,i,!1))}testString(o,e,s,i){o.isNamed(e)&&(s?this.subwalks.add(o,s):this.matches.add(o,i,!1))}};var Og=(t,o)=>typeof t=="string"?new Et([t],o):Array.isArray(t)?new Et(t,o):t,qs=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#o=[];#t;#r;signal;maxDepth;includeChildMatches;constructor(o,e,s){if(this.patterns=o,this.path=e,this.opts=s,this.#r=!s.posix&&s.platform==="win32"?"\\":"/",this.includeChildMatches=s.includeChildMatches!==!1,(s.ignore||!this.includeChildMatches)&&(this.#t=Og(s.ignore??[],s),!this.includeChildMatches&&typeof this.#t.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=s.maxDepth||1/0,s.signal&&(this.signal=s.signal,this.signal.addEventListener("abort",()=>{this.#o.length=0}))}#s(o){return this.seen.has(o)||!!this.#t?.ignored?.(o)}#a(o){return!!this.#t?.childrenIgnored?.(o)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let o;for(;!this.paused&&(o=this.#o.shift());)o()}onResume(o){this.signal?.aborted||(this.paused?this.#o.push(o):o())}async matchCheck(o,e){if(e&&this.opts.nodir)return;let s;if(this.opts.realpath){if(s=o.realpathCached()||await o.realpath(),!s)return;o=s}let r=o.isUnknown()||this.opts.stat?await o.lstat():o;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let a=await r.realpath();a&&(a.isUnknown()||this.opts.stat)&&await a.lstat()}return this.matchCheckTest(r,e)}matchCheckTest(o,e){return o&&(this.maxDepth===1/0||o.depth()<=this.maxDepth)&&(!e||o.canReaddir())&&(!this.opts.nodir||!o.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!o.isSymbolicLink()||!o.realpathCached()?.isDirectory())&&!this.#s(o)?o:void 0}matchCheckSync(o,e){if(e&&this.opts.nodir)return;let s;if(this.opts.realpath){if(s=o.realpathCached()||o.realpathSync(),!s)return;o=s}let r=o.isUnknown()||this.opts.stat?o.lstatSync():o;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let a=r.realpathSync();a&&(a?.isUnknown()||this.opts.stat)&&a.lstatSync()}return this.matchCheckTest(r,e)}matchFinish(o,e){if(this.#s(o))return;if(!this.includeChildMatches&&this.#t?.add){let r=`${o.relativePosix()}/**`;this.#t.add(r)}let s=this.opts.absolute===void 0?e:this.opts.absolute;this.seen.add(o);let i=this.opts.mark&&o.isDirectory()?this.#r:"";if(this.opts.withFileTypes)this.matchEmit(o);else if(s){let r=this.opts.posix?o.fullpathPosix():o.fullpath();this.matchEmit(r+i)}else{let r=this.opts.posix?o.relativePosix():o.relative(),a=this.opts.dotRelative&&!r.startsWith(".."+this.#r)?"."+this.#r:"";this.matchEmit(r?a+r+i:"."+i)}}async match(o,e,s){let i=await this.matchCheck(o,s);i&&this.matchFinish(i,e)}matchSync(o,e,s){let i=this.matchCheckSync(o,s);i&&this.matchFinish(i,e)}walkCB(o,e,s){this.signal?.aborted&&s(),this.walkCB2(o,e,new de(this.opts),s)}walkCB2(o,e,s,i){if(this.#a(o))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(o,e,s,i));return}s.processPatterns(o,e);let r=1,a=()=>{--r===0&&i()};for(let[n,c,_]of s.matches.entries())this.#s(n)||(r++,this.match(n,c,_).then(()=>a()));for(let n of s.subwalkTargets()){if(this.maxDepth!==1/0&&n.depth()>=this.maxDepth)continue;r++;let c=n.readdirCached();n.calledReaddir()?this.walkCB3(n,c,s,a):n.readdirCB((_,d)=>this.walkCB3(n,d,s,a),!0)}a()}walkCB3(o,e,s,i){s=s.filterEntries(o,e);let r=1,a=()=>{--r===0&&i()};for(let[n,c,_]of s.matches.entries())this.#s(n)||(r++,this.match(n,c,_).then(()=>a()));for(let[n,c]of s.subwalks.entries())r++,this.walkCB2(n,c,s.child(),a);a()}walkCBSync(o,e,s){this.signal?.aborted&&s(),this.walkCB2Sync(o,e,new de(this.opts),s)}walkCB2Sync(o,e,s,i){if(this.#a(o))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(o,e,s,i));return}s.processPatterns(o,e);let r=1,a=()=>{--r===0&&i()};for(let[n,c,_]of s.matches.entries())this.#s(n)||this.matchSync(n,c,_);for(let n of s.subwalkTargets()){if(this.maxDepth!==1/0&&n.depth()>=this.maxDepth)continue;r++;let c=n.readdirSync();this.walkCB3Sync(n,c,s,a)}a()}walkCB3Sync(o,e,s,i){s=s.filterEntries(o,e);let r=1,a=()=>{--r===0&&i()};for(let[n,c,_]of s.matches.entries())this.#s(n)||this.matchSync(n,c,_);for(let[n,c]of s.subwalks.entries())r++,this.walkCB2Sync(n,c,s.child(),a);a()}},ye=class extends qs{matches=new Set;constructor(o,e,s){super(o,e,s)}matchEmit(o){this.matches.add(o)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((o,e)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?e(this.signal.reason):o(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},he=class extends qs{results;constructor(o,e,s){super(o,e,s),this.results=new st({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(o){this.results.write(o),this.results.flowing||this.pause()}stream(){let o=this.path;return o.isUnknown()?o.lstat().then(()=>{this.walkCB(o,this.patterns,()=>this.results.end())}):this.walkCB(o,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var wg=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",vo=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(o,e){if(!e)throw new TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,Kl.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.includeChildMatches=e.includeChildMatches!==!1,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth=typeof e.maxDepth=="number"?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof o=="string"&&(o=[o]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(o=o.map(c=>c.replace(/\\/g,"/"))),this.matchBase){if(e.noglobstar)throw new TypeError("base matching requires globstar");o=o.map(c=>c.includes("/")?c:`./**/${c}`)}if(this.pattern=o,this.platform=e.platform||wg,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,e.nocase!==void 0&&e.nocase!==e.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let c=e.platform==="win32"?Ft:e.platform==="darwin"?we:e.platform?Mt:zl;this.scurry=new c(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;let s=this.platform==="darwin"||this.platform==="win32",i={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:s,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},r=this.pattern.map(c=>new mo(c,i)),[a,n]=r.reduce((c,_)=>(c[0].push(..._.set),c[1].push(..._.globParts),c),[[],[]]);this.patterns=a.map((c,_)=>{let d=n[_];if(!d)throw new Error("invalid pattern object");return new Vt(c,d,0,this.platform)})}async walk(){return[...await new ye(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new ye(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new he(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new he(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var ir=(t,o={})=>{Array.isArray(t)||(t=[t]);for(let e of t)if(new mo(e,o).hasMagic())return!0;return!1};function Cs(t,o={}){return new vo(t,o).streamSync()}function Gl(t,o={}){return new vo(t,o).stream()}function Wl(t,o={}){return new vo(t,o).walkSync()}async function kl(t,o={}){return new vo(t,o).walk()}function Ns(t,o={}){return new vo(t,o).iterateSync()}function bl(t,o={}){return new vo(t,o).iterate()}var dg=Cs,yg=Object.assign(Gl,{sync:Cs}),hg=Ns,fg=Object.assign(bl,{sync:Ns}),zg=Object.assign(Wl,{stream:Cs,iterate:Ns}),ps=Object.assign(kl,{glob:kl,globSync:Wl,sync:zg,globStream:Gl,stream:yg,globStreamSync:Cs,streamSync:dg,globIterate:bl,iterate:fg,globIterateSync:Ns,iterateSync:hg,Glob:vo,hasMagic:ir,escape:vt,unescape:Go});ps.glob=ps;var Cl=I(require("node:assert")),Xt=I(require("node:fs/promises")),no=I(require("node:path"));var pl=I(vl());function Ss(t){return ql(t)||ql((0,pl.default)(t))||"app"}function ql(t){return t.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}async function Nl(t){let{spawnAsync:o,sourceAppPath:e}=t,s=no.default.join(t.workingDirectory,"extracted");if(await Xt.default.mkdir(s,{recursive:!0}),e.endsWith(".zip")||e.endsWith(".ipa"))await o("unzip",[e,"-d",s]);else if(e.endsWith(".tar.gz"))await o("tar",["-xzf",e,"-C",s]);else if(e.endsWith(".app")){let a=no.default.basename(e);await Gt(e,no.default.join(s,a))}else throw new Error("Unsupported file type. Please provide a .zip, .tar.gz, or .app file.");let r=(await ps("{Payload/*.app,*.app}",{cwd:s,absolute:!0}))[0];return(0,Cl.default)(r,`Failed to find the .app directory in the extracted artifact: ${s}`),r}async function Sl(t,o){let{dir:e,name:s}=no.default.parse(o),i=Ss(t.name),r=no.default.join(e,`${i}.app`);return await Xt.default.rename(no.default.join(e,`${s}.app`),r),await Xt.default.rename(no.default.join(r,s),no.default.join(r,i)),r}async function Fl(t,o){let e=no.default.resolve(t.workingDirectory,no.default.basename(o));return await Gt(o,e),e}async function Ml(t,o){let{spawnAsync:e,workingDirectory:s}=t;await Xt.default.mkdir(no.default.join(s,"Payload"),{recursive:!0}),await Xt.default.rename(o,no.default.join(s,"Payload",no.default.basename(o)));let i=no.default.resolve(s,"repacked.ipa");return await e("zip",["-r",i,"Payload"],{cwd:s}),i}function Vl(t,o,e){let s=e.keychainPath?`keychain_path: "${e.keychainPath}",`:"",i;if(typeof e.provisioningProfile=="string")i=`provisioning_profile: "${e.provisioningProfile}",`;else if(typeof e.provisioningProfile=="object"&&!Array.isArray(e.provisioningProfile)){let a="";for(let[n,c]of Object.entries(e.provisioningProfile))a+=` "${n}" => "${c}",
16
+ `)}function H_(t){this.options=t||{locator:{}}}H_.prototype.parseFromString=function(t,o){var e=this.options,s=new nO,i=e.domBuilder||new Me,r=e.errorHandler,a=e.locator,n=e.xmlns||{},c=/\/x?html?$/.test(o),_=c?R_.HTML_ENTITIES:R_.XML_ENTITIES;a&&i.setDocumentLocator(a),s.errorHandler=cO(r,i,a),s.domBuilder=e.domBuilder||i,c&&(n[""]=J_.HTML),n.xml=n.xml||J_.XML;var d=e.normalizeLineEndings||$_;return t&&typeof t=="string"?s.parse(d(t),n,_):s.errorHandler.error("invalid doc source"),i.doc};function cO(t,o,e){if(!t){if(o instanceof Me)return o;t=o}var s={},i=t instanceof Function;e=e||{};function r(a){var n=t[a];!n&&i&&(n=t.length==2?function(c){t(a,c)}:t),s[a]=n&&function(c){n("[xmldom "+a+"] "+c+Cr(e))}||function(){}}return r("warning"),r("error"),r("fatalError"),s}function Me(){this.cdata=!1}function At(t,o){o.lineNumber=t.lineNumber,o.columnNumber=t.columnNumber}Me.prototype={startDocument:function(){this.doc=new rO().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,o,e,s){var i=this.doc,r=i.createElementNS(t,e||o),a=s.length;ei(this,r),this.currentElement=r,this.locator&&At(this.locator,r);for(var n=0;n<a;n++){var t=s.getURI(n),c=s.getValue(n),e=s.getQName(n),_=i.createAttributeNS(t,e);this.locator&&At(s.getLocator(n),_),_.value=_.nodeValue=c,r.setAttributeNode(_)}},endElement:function(t,o,e){var s=this.currentElement,i=s.tagName;this.currentElement=s.parentNode},startPrefixMapping:function(t,o){},endPrefixMapping:function(t){},processingInstruction:function(t,o){var e=this.doc.createProcessingInstruction(t,o);this.locator&&At(this.locator,e),ei(this,e)},ignorableWhitespace:function(t,o,e){},characters:function(t,o,e){if(t=B_.apply(this,arguments),t){if(this.cdata)var s=this.doc.createCDATASection(t);else var s=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(t)&&this.doc.appendChild(s),this.locator&&At(this.locator,s)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,o,e){t=B_.apply(this,arguments);var s=this.doc.createComment(t);this.locator&&At(this.locator,s),ei(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,o,e){var s=this.doc.implementation;if(s&&s.createDocumentType){var i=s.createDocumentType(t,o,e);this.locator&&At(this.locator,i),ei(this,i),this.doc.doctype=i}},warning:function(t){console.warn("[xmldom warning] "+t,Cr(this.locator))},error:function(t){console.error("[xmldom error] "+t,Cr(this.locator))},fatalError:function(t){throw new aO(t,this.locator)}};function Cr(t){if(t)return`
17
+ @`+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function B_(t,o,e){return typeof t=="string"?t.substr(o,e):t.length>=o+e||o?new java.lang.String(t,o,e)+"":t}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){Me.prototype[t]=function(){return null}});function ei(t,o){t.currentElement?t.currentElement.appendChild(o):t.doc.appendChild(o)}si.__DOMHandler=Me;si.normalizeLineEndings=$_;si.DOMParser=H_});var ex=V(ii=>{var tx=vr();ii.DOMImplementation=tx.DOMImplementation;ii.XMLSerializer=tx.XMLSerializer;ii.DOMParser=ox().DOMParser});var ix=V(Ve=>{"use strict";var lO=Ve&&Ve.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.parse=xO;var uO=ex(),jt=lO(require("assert")),ri=3,sx=4,_O=8;function Nr(t){return t.nodeType===ri||t.nodeType===_O||t.nodeType===sx}function Bo(t){return!t.childNodes||t.childNodes.length===0}function xO(t){let o=new uO.DOMParser({errorHandler(){}}).parseFromString(t);(0,jt.default)(o.documentElement.nodeName==="plist","malformed document. First element should be <plist>");let e=Rt(o.documentElement);return e.length===1&&(e=e[0]),e}function Rt(t){let o,e,s,i,r,a;if(!t)return null;if(t.nodeName==="plist"){if(i=[],Bo(t))return i;for(o=0;o<t.childNodes.length;o++)Nr(t.childNodes[o])||i.push(Rt(t.childNodes[o]));return i}else if(t.nodeName==="dict"){if(e={},s=null,a=0,Bo(t))return e;for(o=0;o<t.childNodes.length;o++)Nr(t.childNodes[o])||(a%2===0?((0,jt.default)(t.childNodes[o].nodeName==="key","Missing key while parsing <dict/>."),s=Rt(t.childNodes[o])):((0,jt.default)(t.childNodes[o].nodeName!=="key",'Unexpected key "'+Rt(t.childNodes[o])+'" while parsing <dict/>.'),e[s]=Rt(t.childNodes[o])),a+=1);if(a%2===1)throw new Error('Missing value for "'+s+'" while parsing <dict/>');return e}else if(t.nodeName==="array"){if(i=[],Bo(t))return i;for(o=0;o<t.childNodes.length;o++)Nr(t.childNodes[o])||(r=Rt(t.childNodes[o]),r!=null&&i.push(r));return i}else if(t.nodeName!=="#text"){if(t.nodeName==="key")return Bo(t)?"":t.childNodes[0].nodeValue;if(t.nodeName==="string"){if(r="",Bo(t))return r;for(o=0;o<t.childNodes.length;o++){let n=t.childNodes[o].nodeType;(n===ri||n===sx)&&(r+=t.childNodes[o].nodeValue)}return r}else{if(t.nodeName==="integer")return(0,jt.default)(!Bo(t),'Cannot parse "" as integer.'),parseInt(t.childNodes[0].nodeValue,10);if(t.nodeName==="real"){for((0,jt.default)(!Bo(t),'Cannot parse "" as real.'),r="",o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===ri&&(r+=t.childNodes[o].nodeValue);return parseFloat(r)}else if(t.nodeName==="data"){if(r="",Bo(t))return Buffer.from(r,"base64");for(o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===ri&&(r+=t.childNodes[o].nodeValue.replace(/\s+/g,""));return Buffer.from(r,"base64")}else{if(t.nodeName==="date")return(0,jt.default)(!Bo(t),'Cannot parse "" as Date.'),new Date(t.childNodes[0].nodeValue);if(t.nodeName==="true")return!0;if(t.nodeName==="false")return!1}}}}});var rx=V(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});var mO=c_(),gO=ix();Sr.default={parse:gO.parse,build:mO.build}});var wO={};yx(wO,{ConsoleLogger:()=>oe,repackAppAndroidAsync:()=>pc,repackAppIosAsync:()=>_x});module.exports=hx(wO);var Ii=I(require("node:assert")),mt=I(require("node:fs/promises")),Uo=I(require("node:path")),qc=I(_i());var No=I(require("fs/promises")),$t=I(require("node:assert")),ko=I(require("node:path")),ts=I(Ki());var ln="./apktool.jar";var un=ko.default.resolve(__dirname,ln);async function _n(t,o){let{spawnAsync:e,workingDirectory:s}=o,i="decoded-apk";return await e("java",["-jar",un,"decode",t,"-s","-o",i],{cwd:s}),ko.default.join(s,i)}async function xn(t,o){let{spawnAsync:e,workingDirectory:s}=o,r=ko.default.resolve(s,"apktool-packed.apk");return await e("java",["-jar",un,"build","-o",r,t]),r}async function mn({decodedApkRoot:t,assetRoot:o,bundleOutputPath:e}){await No.default.copyFile(e,ko.default.join(t,"assets","index.android.bundle"));let s=await On(o,ko.default.join(t,"res"));await Gx(t,s)}async function gn(t,o){let e=ko.default.join(t,"apktool.yml"),s=await No.default.readFile(e,"utf8");s=s.replace(/^(\s+renameManifestPackage:\s+)(.+)$/gm,`$1${o}`),await No.default.writeFile(e,s)}async function Gx(t,o){let e=ko.default.join(t,"res/values/public.xml"),s=await No.default.readFile(e,"utf8"),i=new ts.Parser,r=new Set,a=await i.parseStringPromise(s),n=0,c=0,_=0;for(let K of a.resources.public){let q=parseInt(K.$.id,16);K.$.type==="drawable"?(n=Math.max(n,q),r.add(K.$.name)):K.$.type==="raw"&&(c=Math.max(c,q),r.add(K.$.name)),_=Math.max(_,q)}(0,$t.default)(n!==0,"Drawable resources must be defined."),c===0&&(c=(_&4294901760)+65536);let d=(n&4294901760)+65536,O=(c&4294901760)+65536,g=new Set([...o.keys()].filter(K=>!r.has(K)));for(let K of g){let q=o.get(K);q!=null&&(q.type==="drawable"?(n+=1,(0,$t.default)(n<d,"Drawable resource ID boundary exceeded."),a.resources.public.push({$:{type:"drawable",name:q.name,id:`0x${n.toString(16)}`}})):q.type==="raw"&&(c+=1,(0,$t.default)(c<O,"Raw resource ID boundary exceeded."),a.resources.public.push({$:{type:"raw",name:q.name,id:`0x${c.toString(16)}`}})))}let z=new ts.Builder().buildObject(a);await No.default.writeFile(e,z)}function Wx(t){if(t.startsWith("drawable"))return"drawable";if(t==="raw")return"raw";throw new Error(`Unsupported asset type for ${t}`)}async function On(t,o,e=0,s=2,i=void 0,r=new Map){await No.default.mkdir(o,{recursive:!0});let a=await No.default.readdir(t,{withFileTypes:!0});return await Promise.all(a.map(async n=>{let c=ko.default.join(t,n.name),_=ko.default.join(o,n.name);if(n.isDirectory()){let d=i??Wx(n.name);e<s-1?await On(c,_,e+1,s,d,r):await No.default.mkdir(_,{recursive:!0})}else{await No.default.copyFile(c,_);let{name:d}=ko.default.parse(n.name);(0,$t.default)(i,"Asset type must be defined."),r.set(d,{name:d,type:i})}})),r}var Gi=I(require("node:assert")),wn=I(require("node:fs/promises")),To=I(require("node:path")),ki=null;async function dn(t){if(ki==null){let o=t?.androidBuildToolsDir??await bx(t);(0,Gi.default)(o!=null,"Unable to find the Android build-tools directory."),ki={aapt2Path:To.default.join(o,"aapt2"),apksignerPath:To.default.join(o,"apksigner"),dexdumpPath:To.default.join(o,"dexdump"),zipalignPath:To.default.join(o,"zipalign")}}return ki}async function yn(t,o,e){let{spawnAsync:s,workingDirectory:i}=o,{apksignerPath:r,zipalignPath:a}=await dn(o),n=To.default.join(i,"resigned.apk"),c=To.default.resolve(i,"resigned-unaligned.apk");await s("zip",["-r","-0",c,"lib","resources.arsc"],{cwd:t}),await s("zip",["-r",c,".","-x","lib/*","-x","resources.arsc"],{cwd:t}),await s(a,["-v","-p","4",c,n]);let _=["sign","--ks",e.keyStorePath,"--ks-pass",e.keyStorePassword];return e.keyAlias&&_.push("--ks-key-alias",e.keyAlias),e.keyPassword&&_.push("--key-pass",e.keyPassword),_.push(n),await s(r,_),n}async function bx(t){let{logger:o}=t,e=process.env.ANDROID_SDK_ROOT;(0,Gi.default)(e!=null,"ANDROID_SDK_ROOT environment variable is not set");let s=To.default.join(e,"build-tools");try{let r=(await wn.default.readdir(s,{withFileTypes:!0})).filter(a=>a.isDirectory()).map(a=>a.name).sort((a,n)=>{let c=a.split(".").map(Number),_=n.split(".").map(Number);for(let d=0;d<Math.min(c.length,_.length);d++)if(c[d]!==_[d])return _[d]-c[d];return _.length-c.length});return r.length>0?To.default.join(s,r[0]):(o.error("No build-tools directories found."),null)}catch(i){return o.error(`Failed to read the build-tools directory: ${i}`),null}}async function hn(t,o,e){let{logger:s,spawnAsync:i}=e,{dexdumpPath:r}=await dn(e),a=`"^ Class descriptor : 'L${o.replace(/\./g,"/")}\\/"`;try{let{stdout:n}=await i(r,["classes*.dex","|","grep",a],{cwd:t,shell:!0,stdio:"pipe"}),c=n.split(`
18
+ `).map(_=>_.match(/Class descriptor\s+?:\s+?'L(.+);'/)?.[1].replace(/\//g,".")).filter(Boolean);return new Set(c)}catch(n){return s.info(`Failed to search for classes in the APK - grepAppIdPattern[${o}]: ${n}`),null}}var xt=I(require("node:assert")),se=I(require("node:fs/promises")),Oc=I(require("node:path")),is=I(Ki());var xc=I(lc()),mc=I(require("node:assert")),_t=I(require("node:fs/promises")),Ht=I(require("node:path"));async function gc(t){return(await _t.default.stat(t).catch(()=>null))?.isFile()??!1}async function ss(t){return(await _t.default.stat(t).catch(()=>null))?.isDirectory()??!1}function te(t){return(0,mc.default)(t!=null,"Expected value to be non-null"),t}async function ee(t){let o=t.platform==="android"?".apk":".ipa";return{...t,workingDirectory:t.workingDirectory??await _t.default.mkdtemp(Ht.default.join(_c(),"repack-app-")),outputPath:t.outputPath??Ht.default.join(t.projectRoot,`repacked${o}`),logger:t.logger??new oe,spawnAsync:t.spawnAsync??im(!!t.verbose)}}var oe=class{debug(...o){console.debug(...o)}info(...o){console.log(...o)}warn(...o){console.warn(...o)}error(...o){console.error(...o)}time(o){console.time(o)}timeEnd(o){console.timeEnd(o)}};function im(t){return function(e,s,i){return(0,xc.default)(e,s,{stdio:t?"inherit":"pipe",...i})}}async function Gt(t,o){await _t.default.mkdir(o,{recursive:!0});let e=await _t.default.readdir(t,{withFileTypes:!0});for(let s of e){let i=Ht.default.join(t,s.name),r=Ht.default.join(o,s.name);s.isDirectory()?await Gt(i,r):s.isFile()&&await _t.default.copyFile(i,r)}}async function wc({config:t,decodedApkRoot:o}){let e=Oc.default.join(o,"res","values","strings.xml"),s=await se.default.readFile(e,"utf8");s=s.replace(/(<string name="app_name">)(.+)(<\/string>)/,`$1${t.name}$3`),await se.default.writeFile(e,s)}async function dc({config:t,androidManiestXml:o,dexClasses:e,originalAppId:s,originalAppIdFallback:i,updatesRuntimeVersion:r}){let a=te(t.android?.package);o.manifest.$.package=a,Xi(o,d=>d.startsWith(s)&&!e.has(d)?d.replace(s,a):d);let n=Ei("manifest",o.manifest,(d,O)=>d==="intent-filter"&&Ei(d,O,(g,w)=>g==="action"&&w[0].$?.["android:name"]==="android.intent.action.VIEW").length>0),c=Array.isArray(t.scheme)?t.scheme[0]:t.scheme;for(let d of n)Xi(d,O=>{let g=O.replace(s,a).replace(/^exp\+.+$/g,`exp+${te(t.slug)}`);return c&&(g=g.replace(/^myapp$/g,c)),i!=null&&(g=g.replace(i,a)),g});let _=o.manifest.application[0];(0,xt.default)(_.$?.["android:name"]?.endsWith(".MainApplication"),"Expected application node to be named as MainApplication"),r&&rm(_,t,r)}async function yc(t){let o=await se.default.readFile(t,"utf8");return await new is.Parser().parseStringPromise(o)}async function hc(t,o){let s=new is.Builder().buildObject(t);await se.default.writeFile(o,s)}function fc(t){let o=t.manifest.$.package;return(0,xt.default)(o!=null,"Expected package attribute to be present in AndroidManifest.xml"),o}function zc(t,o){let e=t.manifest.application?.[0]?.$?.["android:name"];if(e){let s=e.replace(/\.[^.]+$/,"");if(s!==e&&s!==o)return s}return null}function rm(t,o,e){let s=t["meta-data"]??[],i=s.find(c=>c.$?.["android:name"]==="expo.modules.updates.ENABLED");i!=null?((0,xt.default)(i.$!=null),i.$["android:value"]="true"):s.push({$:{"android:name":"expo.modules.updates.ENABLED","android:value":"true"}});let r=s.find(c=>c.$?.["android:name"]==="expo.modules.updates.EXPO_RUNTIME_VERSION");r!=null?((0,xt.default)(r.$!=null),r.$["android:value"]=e):s.push({$:{"android:name":"expo.modules.updates.EXPO_RUNTIME_VERSION","android:value":e}});let a=s.find(c=>c.$?.["android:name"]==="expo.modules.updates.EXPO_UPDATE_URL"),n=o.updates?.url;(0,xt.default)(n),a!=null?((0,xt.default)(a.$!=null),a.$["android:value"]=n):s.push({$:{"android:name":"expo.modules.updates.EXPO_UPDATE_URL","android:value":n}})}function Ei(t,o,e){return o==null?[]:e(t,o)?[o]:Object.keys(o).filter(s=>s!=="$"&&s!=="_").flatMap(s=>{let i=o[s];return Ei(s,i,e)})}function Xi(t,o){if(t==null)return;let e=t.$??{};for(let[s,i]of Object.entries(e))e[s]=o(i);for(let[s,i]of Object.entries(t))s==="$"||s==="_"||Xi(i,o)}var Kc="./debug.keystore";var rs=I(require("node:assert")),Zi=I(require("node:fs/promises")),Go=I(require("node:path")),Wt=I(bc());async function as(t,o){let{workingDirectory:e}=t,s=Go.default.join(e,"app.config");return await Zi.default.writeFile(s,JSON.stringify(o)),s}async function ns(t){let{platform:o,projectRoot:e,spawnAsync:s,workingDirectory:i}=t,{stdout:r}=await s("node",["-e","require('expo/scripts/resolveAppEntry')",e,o,"absolute"],{cwd:e,stdio:"pipe"}),a=Wt.default.silent(t.projectRoot,"expo-updates/utils/build/createUpdatesResources.js");return(0,rs.default)(a,"Failed to resolve `createUpdatesResources.js` within expo-updates package"),await s("node",[a,o,e,i,"all",r.trim()],{cwd:e}),Go.default.join(i,"app.manifest")}function cs(t){let o=vc(t);(0,rs.default)(o,"Failed to resolve '@expo/config' package in the project");let{getPackageJson:e}=require(o),s=e(t);return!!(s.dependencies&&"expo-updates"in s.dependencies)}async function ls(t,o){let{projectRoot:e,spawnAsync:s}=t,i=Wt.default.silent(e,"expo-updates/bin/cli")??(0,Wt.default)(e,"expo-updates/bin/cli.js"),{stdout:r}=await s(i,["runtimeversion:resolve","--platform","android","--workflow","managed"],{cwd:e,stdio:"pipe"});return JSON.parse(r).runtimeVersion??o.version??"1.0.0"}function vc(t){let o=Wt.default.silent(t,"expo/package.json");return o?Wt.default.silent(Go.default.dirname(o),"@expo/config")??null:null}function us(t,o){let e=vc(t);(0,rs.default)(e,"Failed to resolve '@expo/config' package in the project");let{getConfig:s}=require(e);return s(t,o)}async function _s(t,o){let{projectRoot:e,platform:s,spawnAsync:i,workingDirectory:r}=o,a=Go.default.resolve(r,"bundles");await Zi.default.mkdir(a,{recursive:!0});let{stdout:n}=await i("node",["-e","require('expo/scripts/resolveAppEntry')",e,s,"absolute"],{cwd:e,stdio:"pipe"}),c=cm(t,s),_=s==="android"?"index.android.bundle":"main.bundle",d=Go.default.join(a,_),O=Go.default.join(a,"assets"),g=["expo","export:embed","--platform",s,"--entry-file",n.trim(),"--bundle-output",Go.default.join(a,_),"--assets-dest",Go.default.join(a,"assets"),"--dev","false","--reset-cache"];return c?(g.push("--minify","false"),g.push("--bytecode","true"),g.push("--unstable-transform-profile","hermes")):g.push("--minify","true"),o.exportEmbedOptions?.sourcemapOutput&&g.push("--sourcemap-output",o.exportEmbedOptions.sourcemapOutput),await i("npx",g,{cwd:e}),{bundleOutputPath:d,assetRoot:O}}async function xs({appWorkingDirectory:t,options:o}){if(o.exportEmbedOptions!=null)return!0;let e;return o.platform==="android"?e=Go.default.join(t,"assets","index.android.bundle"):e=Go.default.join(t,"main.jsbundle"),await gc(e)}function cm(t,o){switch(o){case"android":return(t.android?.jsEngine??t.jsEngine)!=="jsc";case"ios":return(t.ios?.jsEngine??t.jsEngine)!=="jsc";default:return!1}}var lm=Uo.default.resolve(__dirname,Kc);async function pc(t){let o=await ee(t),{logger:e,spawnAsync:s,workingDirectory:i}=o;await mt.default.mkdir(i,{recursive:!0});let{exp:r}=us(o.projectRoot,{isPublicConfig:!0,skipSDKVersionRequirement:!0}),a=await _n(Uo.default.resolve(o.sourceAppPath),o);(0,Ii.default)(r.android?.package,"Expected app ID (`android.package`) to be defined in app.json");let n=cs(o.projectRoot),c=n?await ls(o,r):null;if(e.info(qc.default.dim(`Resolved runtime version: ${c}`)),await xs({appWorkingDirectory:a,options:o})){e.time("Generating bundle");let{assetRoot:l,bundleOutputPath:x}=await _s(r,o);if(e.timeEnd("Generating bundle"),e.time("Adding bundled resources"),await mn({decodedApkRoot:a,assetRoot:l,bundleOutputPath:x}),e.timeEnd("Adding bundled resources"),n){e.time("Generating 'app.manifest' for expo-updates");let u=await ns(o),G=Uo.default.join(a,"assets");await mt.default.copyFile(u,Uo.default.join(G,Uo.default.basename(u))),e.timeEnd("Generating 'app.manifest' for expo-updates")}}e.time("Updating AndroidManifest.xml");let d=Uo.default.join(a,"AndroidManifest.xml"),O=await yc(d),g=fc(O),w=new Set([g]),z=zc(O,g);z!=null&&w.add(z);let K=await Promise.any(Array.from(w).map(l=>hn(a,l,o)));(0,Ii.default)(K!=null,"Failed to search for dex classes with appId in the APK"),await dc({config:r,androidManiestXml:O,dexClasses:K,originalAppId:g,originalAppIdFallback:z,options:o,updatesRuntimeVersion:c}),await gn(a,r.android?.package),await hc(O,d),e.timeEnd("Updating AndroidManifest.xml"),e.time("Updating resources"),await wc({config:r,decodedApkRoot:a}),e.timeEnd("Updating resources"),e.time("Generating app config");let q=await as(o,r);await mt.default.copyFile(q,Uo.default.join(a,"assets","app.config")),e.timeEnd("Generating app config"),e.time("Creating updated apk");let v=await xn(a,o),p=Uo.default.join(i,"unzip");await mt.default.mkdir(p,{recursive:!0}),await s("unzip",["-o",v,"-d",p]);let m=await yn(p,o,{keyStorePath:o.androidSigningOptions?.keyStorePath??lm,keyStorePassword:o.androidSigningOptions?.keyStorePassword??"pass:android",keyAlias:o.androidSigningOptions?.keyAlias,keyPassword:o.androidSigningOptions?.keyPassword});if(e.timeEnd("Creating updated apk"),await mt.default.rename(m,o.outputPath),!o.skipWorkingDirCleanup)try{await mt.default.rm(i,{recursive:!0})}catch{}return o.outputPath}var ci=I(require("node:assert")),lt=I(require("node:fs/promises")),Do=I(require("node:path")),ux=I(_i());var Bc=I(Lc(),1);var re=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")};var dm={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ae=t=>t.replace(/[[\]\\-]/g,"\\$&"),ym=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Tc=t=>t.join(""),Uc=(t,o)=>{let e=o;if(t.charAt(e)!=="[")throw new Error("not in a brace expression");let s=[],i=[],r=e+1,a=!1,n=!1,c=!1,_=!1,d=e,O="";o:for(;r<t.length;){let K=t.charAt(r);if((K==="!"||K==="^")&&r===e+1){_=!0,r++;continue}if(K==="]"&&a&&!c){d=r+1;break}if(a=!0,K==="\\"&&!c){c=!0,r++;continue}if(K==="["&&!c){for(let[q,[v,p,m]]of Object.entries(dm))if(t.startsWith(q,r)){if(O)return["$.",!1,t.length-e,!0];r+=q.length,m?i.push(v):s.push(v),n=n||p;continue o}}if(c=!1,O){K>O?s.push(ae(O)+"-"+ae(K)):K===O&&s.push(ae(K)),O="",r++;continue}if(t.startsWith("-]",r+1)){s.push(ae(K+"-")),r+=2;continue}if(t.startsWith("-",r+1)){O=K,r+=2;continue}s.push(ae(K)),r++}if(d<r)return["",!1,0,!1];if(!s.length&&!i.length)return["$.",!1,t.length-e,!0];if(i.length===0&&s.length===1&&/^\\?.$/.test(s[0])&&!_){let K=s[0].length===2?s[0].slice(-1):s[0];return[ym(K),!1,d-e,!1]}let g="["+(_?"^":"")+Tc(s)+"]",w="["+(_?"":"^")+Tc(i)+"]";return[s.length&&i.length?"("+g+"|"+w+")":s.length?g:w,n,d-e,!0]};var Wo=(t,{windowsPathsNoEscape:o=!1}={})=>o?t.replace(/\[([^\/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var hm=new Set(["!","?","+","*","@"]),Qc=t=>hm.has(t),fm="(?!(?:^|/)\\.\\.?(?:$|/))",ms="(?!\\.)",zm=new Set(["[","."]),Km=new Set(["..","."]),km=new Set("().*{}+?[]^$\\!"),Gm=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ti="[^/]",Ac=Ti+"*?",jc=Ti+"+?",bt=class t{type;#o;#t;#r=!1;#s=[];#a;#f;#l;#_=!1;#n;#c;#i=!1;constructor(o,e,s={}){this.type=o,o&&(this.#t=!0),this.#a=e,this.#o=this.#a?this.#a.#o:this,this.#n=this.#o===this?s:this.#o.#n,this.#l=this.#o===this?[]:this.#o.#l,o==="!"&&!this.#o.#_&&this.#l.push(this),this.#f=this.#a?this.#a.#s.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let o of this.#s)if(typeof o!="string"&&(o.type||o.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#c!==void 0?this.#c:this.type?this.#c=this.type+"("+this.#s.map(o=>String(o)).join("|")+")":this.#c=this.#s.map(o=>String(o)).join("")}#w(){if(this!==this.#o)throw new Error("should only call on root");if(this.#_)return this;this.toString(),this.#_=!0;let o;for(;o=this.#l.pop();){if(o.type!=="!")continue;let e=o,s=e.#a;for(;s;){for(let i=e.#f+1;!s.type&&i<s.#s.length;i++)for(let r of o.#s){if(typeof r=="string")throw new Error("string part in extglob AST??");r.copyIn(s.#s[i])}e=s,s=e.#a}}return this}push(...o){for(let e of o)if(e!==""){if(typeof e!="string"&&!(e instanceof t&&e.#a===this))throw new Error("invalid part: "+e);this.#s.push(e)}}toJSON(){let o=this.type===null?this.#s.slice().map(e=>typeof e=="string"?e:e.toJSON()):[this.type,...this.#s.map(e=>e.toJSON())];return this.isStart()&&!this.type&&o.unshift([]),this.isEnd()&&(this===this.#o||this.#o.#_&&this.#a?.type==="!")&&o.push({}),o}isStart(){if(this.#o===this)return!0;if(!this.#a?.isStart())return!1;if(this.#f===0)return!0;let o=this.#a;for(let e=0;e<this.#f;e++){let s=o.#s[e];if(!(s instanceof t&&s.type==="!"))return!1}return!0}isEnd(){if(this.#o===this||this.#a?.type==="!")return!0;if(!this.#a?.isEnd())return!1;if(!this.type)return this.#a?.isEnd();let o=this.#a?this.#a.#s.length:0;return this.#f===o-1}copyIn(o){typeof o=="string"?this.push(o):this.push(o.clone(this))}clone(o){let e=new t(this.type,o);for(let s of this.#s)e.copyIn(s);return e}static#d(o,e,s,i){let r=!1,a=!1,n=-1,c=!1;if(e.type===null){let w=s,z="";for(;w<o.length;){let K=o.charAt(w++);if(r||K==="\\"){r=!r,z+=K;continue}if(a){w===n+1?(K==="^"||K==="!")&&(c=!0):K==="]"&&!(w===n+2&&c)&&(a=!1),z+=K;continue}else if(K==="["){a=!0,n=w,c=!1,z+=K;continue}if(!i.noext&&Qc(K)&&o.charAt(w)==="("){e.push(z),z="";let q=new t(K,e);w=t.#d(o,q,w,i),e.push(q);continue}z+=K}return e.push(z),w}let _=s+1,d=new t(null,e),O=[],g="";for(;_<o.length;){let w=o.charAt(_++);if(r||w==="\\"){r=!r,g+=w;continue}if(a){_===n+1?(w==="^"||w==="!")&&(c=!0):w==="]"&&!(_===n+2&&c)&&(a=!1),g+=w;continue}else if(w==="["){a=!0,n=_,c=!1,g+=w;continue}if(Qc(w)&&o.charAt(_)==="("){d.push(g),g="";let z=new t(w,d);d.push(z),_=t.#d(o,z,_,i);continue}if(w==="|"){d.push(g),g="",O.push(d),d=new t(null,e);continue}if(w===")")return g===""&&e.#s.length===0&&(e.#i=!0),d.push(g),g="",e.push(...O,d),_;g+=w}return e.type=null,e.#t=void 0,e.#s=[o.substring(s-1)],_}static fromGlob(o,e={}){let s=new t(null,void 0,e);return t.#d(o,s,0,e),s}toMMPattern(){if(this!==this.#o)return this.#o.toMMPattern();let o=this.toString(),[e,s,i,r]=this.toRegExpSource();if(!(i||this.#t||this.#n.nocase&&!this.#n.nocaseMagicOnly&&o.toUpperCase()!==o.toLowerCase()))return s;let n=(this.#n.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${e}$`,n),{_src:e,_glob:o})}get options(){return this.#n}toRegExpSource(o){let e=o??!!this.#n.dot;if(this.#o===this&&this.#w(),!this.type){let c=this.isStart()&&this.isEnd(),_=this.#s.map(w=>{let[z,K,q,v]=typeof w=="string"?t.#x(w,this.#t,c):w.toRegExpSource(o);return this.#t=this.#t||q,this.#r=this.#r||v,z}).join(""),d="";if(this.isStart()&&typeof this.#s[0]=="string"&&!(this.#s.length===1&&Km.has(this.#s[0]))){let z=zm,K=e&&z.has(_.charAt(0))||_.startsWith("\\.")&&z.has(_.charAt(2))||_.startsWith("\\.\\.")&&z.has(_.charAt(4)),q=!e&&!o&&z.has(_.charAt(0));d=K?fm:q?ms:""}let O="";return this.isEnd()&&this.#o.#_&&this.#a?.type==="!"&&(O="(?:$|\\/)"),[d+_+O,Wo(_),this.#t=!!this.#t,this.#r]}let s=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",r=this.#m(e);if(this.isStart()&&this.isEnd()&&!r&&this.type!=="!"){let c=this.toString();return this.#s=[c],this.type=null,this.#t=void 0,[c,Wo(this.toString()),!1,!1]}let a=!s||o||e||!ms?"":this.#m(!0);a===r&&(a=""),a&&(r=`(?:${r})(?:${a})*?`);let n="";if(this.type==="!"&&this.#i)n=(this.isStart()&&!e?ms:"")+jc;else{let c=this.type==="!"?"))"+(this.isStart()&&!e&&!o?ms:"")+Ac+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&a?")":this.type==="*"&&a?")?":`)${this.type}`;n=i+r+c}return[n,Wo(r),this.#t=!!this.#t,this.#r]}#m(o){return this.#s.map(e=>{if(typeof e=="string")throw new Error("string type in extglob ast??");let[s,i,r,a]=e.toRegExpSource(o);return this.#r=this.#r||a,s}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join("|")}static#x(o,e,s=!1){let i=!1,r="",a=!1;for(let n=0;n<o.length;n++){let c=o.charAt(n);if(i){i=!1,r+=(km.has(c)?"\\":"")+c;continue}if(c==="\\"){n===o.length-1?r+="\\\\":i=!0;continue}if(c==="["){let[_,d,O,g]=Uc(o,n);if(O){r+=_,a=a||d,n+=O-1,e=e||g;continue}}if(c==="*"){s&&o==="*"?r+=jc:r+=Ac,e=!0;continue}if(c==="?"){r+=Ti,e=!0;continue}r+=Gm(c)}return[r,Wo(o),!!e,a]}};var vt=(t,{windowsPathsNoEscape:o=!1}={})=>o?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&");var ro=(t,o,e={})=>(re(o),!e.nocomment&&o.charAt(0)==="#"?!1:new mo(o,e).match(t)),Wm=/^\*+([^+@!?\*\[\(]*)$/,bm=t=>o=>!o.startsWith(".")&&o.endsWith(t),vm=t=>o=>o.endsWith(t),qm=t=>(t=t.toLowerCase(),o=>!o.startsWith(".")&&o.toLowerCase().endsWith(t)),pm=t=>(t=t.toLowerCase(),o=>o.toLowerCase().endsWith(t)),Cm=/^\*+\.\*+$/,Nm=t=>!t.startsWith(".")&&t.includes("."),Sm=t=>t!=="."&&t!==".."&&t.includes("."),Fm=/^\.\*+$/,Mm=t=>t!=="."&&t!==".."&&t.startsWith("."),Vm=/^\*+$/,Em=t=>t.length!==0&&!t.startsWith("."),Xm=t=>t.length!==0&&t!=="."&&t!=="..",Ym=/^\?+([^+@!?\*\[\(]*)?$/,Zm=([t,o=""])=>{let e=Dc([t]);return o?(o=o.toLowerCase(),s=>e(s)&&s.toLowerCase().endsWith(o)):e},Im=([t,o=""])=>{let e=$c([t]);return o?(o=o.toLowerCase(),s=>e(s)&&s.toLowerCase().endsWith(o)):e},Pm=([t,o=""])=>{let e=$c([t]);return o?s=>e(s)&&s.endsWith(o):e},Lm=([t,o=""])=>{let e=Dc([t]);return o?s=>e(s)&&s.endsWith(o):e},Dc=([t])=>{let o=t.length;return e=>e.length===o&&!e.startsWith(".")},$c=([t])=>{let o=t.length;return e=>e.length===o&&e!=="."&&e!==".."},Hc=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Rc={win32:{sep:"\\"},posix:{sep:"/"}},Tm=Hc==="win32"?Rc.win32.sep:Rc.posix.sep;ro.sep=Tm;var oo=Symbol("globstar **");ro.GLOBSTAR=oo;var Um="[^/]",Qm=Um+"*?",Am="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",jm="(?:(?!(?:\\/|^)\\.).)*?",Rm=(t,o={})=>e=>ro(e,t,o);ro.filter=Rm;var ho=(t,o={})=>Object.assign({},t,o),Jm=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return ro;let o=ro;return Object.assign((s,i,r={})=>o(s,i,ho(t,r)),{Minimatch:class extends o.Minimatch{constructor(i,r={}){super(i,ho(t,r))}static defaults(i){return o.defaults(ho(t,i)).Minimatch}},AST:class extends o.AST{constructor(i,r,a={}){super(i,r,ho(t,a))}static fromGlob(i,r={}){return o.AST.fromGlob(i,ho(t,r))}},unescape:(s,i={})=>o.unescape(s,ho(t,i)),escape:(s,i={})=>o.escape(s,ho(t,i)),filter:(s,i={})=>o.filter(s,ho(t,i)),defaults:s=>o.defaults(ho(t,s)),makeRe:(s,i={})=>o.makeRe(s,ho(t,i)),braceExpand:(s,i={})=>o.braceExpand(s,ho(t,i)),match:(s,i,r={})=>o.match(s,i,ho(t,r)),sep:o.sep,GLOBSTAR:oo})};ro.defaults=Jm;var ol=(t,o={})=>(re(t),o.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:(0,Bc.default)(t));ro.braceExpand=ol;var Bm=(t,o={})=>new mo(t,o).makeRe();ro.makeRe=Bm;var Dm=(t,o,e={})=>{let s=new mo(o,e);return t=t.filter(i=>s.match(i)),s.options.nonull&&!t.length&&t.push(o),t};ro.match=Dm;var Jc=/[?*]|[+@!]\(.*?\)|\[|\]/,$m=t=>t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),mo=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(o,e={}){re(o),e=e||{},this.options=e,this.pattern=o,this.platform=e.platform||Hc,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!e.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!e.nonegate,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=e.windowsNoMagicRoot!==void 0?e.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let o of this.set)for(let e of o)if(typeof e!="string")return!0;return!1}debug(...o){}make(){let o=this.pattern,e=this.options;if(!e.nocomment&&o.charAt(0)==="#"){this.comment=!0;return}if(!o){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],e.debug&&(this.debug=(...r)=>console.error(...r)),this.debug(this.pattern,this.globSet);let s=this.globSet.map(r=>this.slashSplit(r));this.globParts=this.preprocess(s),this.debug(this.pattern,this.globParts);let i=this.globParts.map((r,a,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=r[0]===""&&r[1]===""&&(r[2]==="?"||!Jc.test(r[2]))&&!Jc.test(r[3]),_=/^[a-z]:/i.test(r[0]);if(c)return[...r.slice(0,4),...r.slice(4).map(d=>this.parse(d))];if(_)return[r[0],...r.slice(1).map(d=>this.parse(d))]}return r.map(c=>this.parse(c))});if(this.debug(this.pattern,i),this.set=i.filter(r=>r.indexOf(!1)===-1),this.isWindows)for(let r=0;r<this.set.length;r++){let a=this.set[r];a[0]===""&&a[1]===""&&this.globParts[r][2]==="?"&&typeof a[3]=="string"&&/^[a-z]:$/i.test(a[3])&&(a[2]="?")}this.debug(this.pattern,this.set)}preprocess(o){if(this.options.noglobstar)for(let s=0;s<o.length;s++)for(let i=0;i<o[s].length;i++)o[s][i]==="**"&&(o[s][i]="*");let{optimizationLevel:e=1}=this.options;return e>=2?(o=this.firstPhasePreProcess(o),o=this.secondPhasePreProcess(o)):e>=1?o=this.levelOneOptimize(o):o=this.adjascentGlobstarOptimize(o),o}adjascentGlobstarOptimize(o){return o.map(e=>{let s=-1;for(;(s=e.indexOf("**",s+1))!==-1;){let i=s;for(;e[i+1]==="**";)i++;i!==s&&e.splice(s,i-s)}return e})}levelOneOptimize(o){return o.map(e=>(e=e.reduce((s,i)=>{let r=s[s.length-1];return i==="**"&&r==="**"?s:i===".."&&r&&r!==".."&&r!=="."&&r!=="**"?(s.pop(),s):(s.push(i),s)},[]),e.length===0?[""]:e))}levelTwoFileOptimize(o){Array.isArray(o)||(o=this.slashSplit(o));let e=!1;do{if(e=!1,!this.preserveMultipleSlashes){for(let i=1;i<o.length-1;i++){let r=o[i];i===1&&r===""&&o[0]===""||(r==="."||r==="")&&(e=!0,o.splice(i,1),i--)}o[0]==="."&&o.length===2&&(o[1]==="."||o[1]==="")&&(e=!0,o.pop())}let s=0;for(;(s=o.indexOf("..",s+1))!==-1;){let i=o[s-1];i&&i!=="."&&i!==".."&&i!=="**"&&(e=!0,o.splice(s-1,2),s-=2)}}while(e);return o.length===0?[""]:o}firstPhasePreProcess(o){let e=!1;do{e=!1;for(let s of o){let i=-1;for(;(i=s.indexOf("**",i+1))!==-1;){let a=i;for(;s[a+1]==="**";)a++;a>i&&s.splice(i+1,a-i);let n=s[i+1],c=s[i+2],_=s[i+3];if(n!==".."||!c||c==="."||c===".."||!_||_==="."||_==="..")continue;e=!0,s.splice(i,1);let d=s.slice(0);d[i]="**",o.push(d),i--}if(!this.preserveMultipleSlashes){for(let a=1;a<s.length-1;a++){let n=s[a];a===1&&n===""&&s[0]===""||(n==="."||n==="")&&(e=!0,s.splice(a,1),a--)}s[0]==="."&&s.length===2&&(s[1]==="."||s[1]==="")&&(e=!0,s.pop())}let r=0;for(;(r=s.indexOf("..",r+1))!==-1;){let a=s[r-1];if(a&&a!=="."&&a!==".."&&a!=="**"){e=!0;let c=r===1&&s[r+1]==="**"?["."]:[];s.splice(r-1,2,...c),s.length===0&&s.push(""),r-=2}}}}while(e);return o}secondPhasePreProcess(o){for(let e=0;e<o.length-1;e++)for(let s=e+1;s<o.length;s++){let i=this.partsMatch(o[e],o[s],!this.preserveMultipleSlashes);if(i){o[e]=[],o[s]=i;break}}return o.filter(e=>e.length)}partsMatch(o,e,s=!1){let i=0,r=0,a=[],n="";for(;i<o.length&&r<e.length;)if(o[i]===e[r])a.push(n==="b"?e[r]:o[i]),i++,r++;else if(s&&o[i]==="**"&&e[r]===o[i+1])a.push(o[i]),i++;else if(s&&e[r]==="**"&&o[i]===e[r+1])a.push(e[r]),r++;else if(o[i]==="*"&&e[r]&&(this.options.dot||!e[r].startsWith("."))&&e[r]!=="**"){if(n==="b")return!1;n="a",a.push(o[i]),i++,r++}else if(e[r]==="*"&&o[i]&&(this.options.dot||!o[i].startsWith("."))&&o[i]!=="**"){if(n==="a")return!1;n="b",a.push(e[r]),i++,r++}else return!1;return o.length===e.length&&a}parseNegate(){if(this.nonegate)return;let o=this.pattern,e=!1,s=0;for(let i=0;i<o.length&&o.charAt(i)==="!";i++)e=!e,s++;s&&(this.pattern=o.slice(s)),this.negate=e}matchOne(o,e,s=!1){let i=this.options;if(this.isWindows){let K=typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0]),q=!K&&o[0]===""&&o[1]===""&&o[2]==="?"&&/^[a-z]:$/i.test(o[3]),v=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),p=!v&&e[0]===""&&e[1]===""&&e[2]==="?"&&typeof e[3]=="string"&&/^[a-z]:$/i.test(e[3]),m=q?3:K?0:void 0,l=p?3:v?0:void 0;if(typeof m=="number"&&typeof l=="number"){let[x,u]=[o[m],e[l]];x.toLowerCase()===u.toLowerCase()&&(e[l]=x,l>m?e=e.slice(l):m>l&&(o=o.slice(m)))}}let{optimizationLevel:r=1}=this.options;r>=2&&(o=this.levelTwoFileOptimize(o)),this.debug("matchOne",this,{file:o,pattern:e}),this.debug("matchOne",o.length,e.length);for(var a=0,n=0,c=o.length,_=e.length;a<c&&n<_;a++,n++){this.debug("matchOne loop");var d=e[n],O=o[a];if(this.debug(e,d,O),d===!1)return!1;if(d===oo){this.debug("GLOBSTAR",[e,d,O]);var g=a,w=n+1;if(w===_){for(this.debug("** at the end");a<c;a++)if(o[a]==="."||o[a]===".."||!i.dot&&o[a].charAt(0)===".")return!1;return!0}for(;g<c;){var z=o[g];if(this.debug(`
19
+ globstar while`,o,g,e,w,z),this.matchOne(o.slice(g),e.slice(w),s))return this.debug("globstar found match!",g,c,z),!0;if(z==="."||z===".."||!i.dot&&z.charAt(0)==="."){this.debug("dot detected!",o,g,e,w);break}this.debug("globstar swallow a segment, and continue"),g++}return!!(s&&(this.debug(`
20
+ >>> no match, partial?`,o,g,e,w),g===c))}let K;if(typeof d=="string"?(K=O===d,this.debug("string match",d,O,K)):(K=d.test(O),this.debug("pattern match",d,O,K)),!K)return!1}if(a===c&&n===_)return!0;if(a===c)return s;if(n===_)return a===c-1&&o[a]==="";throw new Error("wtf?")}braceExpand(){return ol(this.pattern,this.options)}parse(o){re(o);let e=this.options;if(o==="**")return oo;if(o==="")return"";let s,i=null;(s=o.match(Vm))?i=e.dot?Xm:Em:(s=o.match(Wm))?i=(e.nocase?e.dot?pm:qm:e.dot?vm:bm)(s[1]):(s=o.match(Ym))?i=(e.nocase?e.dot?Im:Zm:e.dot?Pm:Lm)(s):(s=o.match(Cm))?i=e.dot?Sm:Nm:(s=o.match(Fm))&&(i=Mm);let r=bt.fromGlob(o,this.options).toMMPattern();return i&&typeof r=="object"&&Reflect.defineProperty(r,"test",{value:i}),r}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let o=this.set;if(!o.length)return this.regexp=!1,this.regexp;let e=this.options,s=e.noglobstar?Qm:e.dot?Am:jm,i=new Set(e.nocase?["i"]:[]),r=o.map(c=>{let _=c.map(d=>{if(d instanceof RegExp)for(let O of d.flags.split(""))i.add(O);return typeof d=="string"?$m(d):d===oo?oo:d._src});return _.forEach((d,O)=>{let g=_[O+1],w=_[O-1];d!==oo||w===oo||(w===void 0?g!==void 0&&g!==oo?_[O+1]="(?:\\/|"+s+"\\/)?"+g:_[O]=s:g===void 0?_[O-1]=w+"(?:\\/|"+s+")?":g!==oo&&(_[O-1]=w+"(?:\\/|\\/"+s+"\\/)"+g,_[O+1]=oo))}),_.filter(d=>d!==oo).join("/")}).join("|"),[a,n]=o.length>1?["(?:",")"]:["",""];r="^"+a+r+n+"$",this.negate&&(r="^(?!"+r+").+$");try{this.regexp=new RegExp(r,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(o){return this.preserveMultipleSlashes?o.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(o)?["",...o.split(/\/+/)]:o.split(/\/+/)}match(o,e=this.partial){if(this.debug("match",o,this.pattern),this.comment)return!1;if(this.empty)return o==="";if(o==="/"&&e)return!0;let s=this.options;this.isWindows&&(o=o.split("\\").join("/"));let i=this.slashSplit(o);this.debug(this.pattern,"split",i);let r=this.set;this.debug(this.pattern,"set",r);let a=i[i.length-1];if(!a)for(let n=i.length-2;!a&&n>=0;n--)a=i[n];for(let n=0;n<r.length;n++){let c=r[n],_=i;if(s.matchBase&&c.length===1&&(_=[a]),this.matchOne(_,c,e))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(o){return ro.defaults(o).Minimatch}};ro.AST=bt;ro.Minimatch=mo;ro.escape=vt;ro.unescape=Wo;var Gl=require("node:url");var qt=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,el=new Set,Ui=typeof process=="object"&&process?process:{},sl=(t,o,e,s)=>{typeof Ui.emitWarning=="function"?Ui.emitWarning(t,o,e,s):console.error(`[${e}] ${o}: ${t}`)},gs=globalThis.AbortController,tl=globalThis.AbortSignal;if(typeof gs>"u"){tl=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(s,i){this._onabort.push(i)}},gs=class{constructor(){o()}signal=new tl;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let i of this.signal._onabort)i(s);this.signal.onabort?.(s)}}};let t=Ui.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",o=()=>{t&&(t=!1,sl("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",o))}}var Hm=t=>!el.has(t),bw=Symbol("type"),tt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),il=t=>tt(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?pt:null:null,pt=class extends Array{constructor(o){super(o),this.fill(0)}},Qi=class t{heap;length;static#o=!1;static create(o){let e=il(o);if(!e)return[];t.#o=!0;let s=new t(o,e);return t.#o=!1,s}constructor(o,e){if(!t.#o)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(o),this.length=0}push(o){this.heap[this.length++]=o}pop(){return this.heap[--this.length]}},ne=class t{#o;#t;#r;#s;#a;#f;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#_;#n;#c;#i;#w;#d;#m;#x;#k;#O;#G;#W;#h;#z;#K;#g;static unsafeExposeInternals(o){return{starts:o.#W,ttls:o.#h,sizes:o.#G,keyMap:o.#n,keyList:o.#c,valList:o.#i,next:o.#w,prev:o.#d,get head(){return o.#m},get tail(){return o.#x},free:o.#k,isBackgroundFetch:e=>o.#u(e),backgroundFetch:(e,s,i,r)=>o.#Y(e,s,i,r),moveToTail:e=>o.#I(e),indexes:e=>o.#v(e),rindexes:e=>o.#q(e),isStale:e=>o.#y(e)}}get max(){return this.#o}get maxSize(){return this.#t}get calculatedSize(){return this.#_}get size(){return this.#l}get fetchMethod(){return this.#a}get memoMethod(){return this.#f}get dispose(){return this.#r}get disposeAfter(){return this.#s}constructor(o){let{max:e=0,ttl:s,ttlResolution:i=1,ttlAutopurge:r,updateAgeOnGet:a,updateAgeOnHas:n,allowStale:c,dispose:_,disposeAfter:d,noDisposeOnSet:O,noUpdateTTL:g,maxSize:w=0,maxEntrySize:z=0,sizeCalculation:K,fetchMethod:q,memoMethod:v,noDeleteOnFetchRejection:p,noDeleteOnStaleGet:m,allowStaleOnFetchRejection:l,allowStaleOnFetchAbort:x,ignoreFetchAbort:u}=o;if(e!==0&&!tt(e))throw new TypeError("max option must be a nonnegative integer");let G=e?il(e):Array;if(!G)throw new Error("invalid max value: "+e);if(this.#o=e,this.#t=w,this.maxEntrySize=z||this.#t,this.sizeCalculation=K,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(v!==void 0&&typeof v!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#f=v,q!==void 0&&typeof q!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#a=q,this.#K=!!q,this.#n=new Map,this.#c=new Array(e).fill(void 0),this.#i=new Array(e).fill(void 0),this.#w=new G(e),this.#d=new G(e),this.#m=0,this.#x=0,this.#k=Qi.create(e),this.#l=0,this.#_=0,typeof _=="function"&&(this.#r=_),typeof d=="function"?(this.#s=d,this.#O=[]):(this.#s=void 0,this.#O=void 0),this.#z=!!this.#r,this.#g=!!this.#s,this.noDisposeOnSet=!!O,this.noUpdateTTL=!!g,this.noDeleteOnFetchRejection=!!p,this.allowStaleOnFetchRejection=!!l,this.allowStaleOnFetchAbort=!!x,this.ignoreFetchAbort=!!u,this.maxEntrySize!==0){if(this.#t!==0&&!tt(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!tt(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#C()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!m,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!n,this.ttlResolution=tt(i)||i===0?i:1,this.ttlAutopurge=!!r,this.ttl=s||0,this.ttl){if(!tt(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#p()}if(this.#o===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#o&&!this.#t){let y="LRU_CACHE_UNBOUNDED";Hm(y)&&(el.add(y),sl("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",y,t))}}getRemainingTTL(o){return this.#n.has(o)?1/0:0}#p(){let o=new pt(this.#o),e=new pt(this.#o);this.#h=o,this.#W=e,this.#S=(r,a,n=qt.now())=>{if(e[r]=a!==0?n:0,o[r]=a,a!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#y(r)&&this.#N(this.#c[r],"expire")},a+1);c.unref&&c.unref()}},this.#b=r=>{e[r]=o[r]!==0?qt.now():0},this.#e=(r,a)=>{if(o[a]){let n=o[a],c=e[a];if(!n||!c)return;r.ttl=n,r.start=c,r.now=s||i();let _=r.now-c;r.remainingTTL=n-_}};let s=0,i=()=>{let r=qt.now();if(this.ttlResolution>0){s=r;let a=setTimeout(()=>s=0,this.ttlResolution);a.unref&&a.unref()}return r};this.getRemainingTTL=r=>{let a=this.#n.get(r);if(a===void 0)return 0;let n=o[a],c=e[a];if(!n||!c)return 1/0;let _=(s||i())-c;return n-_},this.#y=r=>{let a=e[r],n=o[r];return!!n&&!!a&&(s||i())-a>n}}#b=()=>{};#e=()=>{};#S=()=>{};#y=()=>!1;#C(){let o=new pt(this.#o);this.#_=0,this.#G=o,this.#F=e=>{this.#_-=o[e],o[e]=0},this.#V=(e,s,i,r)=>{if(this.#u(s))return 0;if(!tt(i))if(r){if(typeof r!="function")throw new TypeError("sizeCalculation must be a function");if(i=r(s,e),!tt(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#M=(e,s,i)=>{if(o[e]=s,this.#t){let r=this.#t-o[e];for(;this.#_>r;)this.#X(!0)}this.#_+=o[e],i&&(i.entrySize=s,i.totalCalculatedSize=this.#_)}}#F=o=>{};#M=(o,e,s)=>{};#V=(o,e,s,i)=>{if(s||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#v({allowStale:o=this.allowStale}={}){if(this.#l)for(let e=this.#x;!(!this.#E(e)||((o||!this.#y(e))&&(yield e),e===this.#m));)e=this.#d[e]}*#q({allowStale:o=this.allowStale}={}){if(this.#l)for(let e=this.#m;!(!this.#E(e)||((o||!this.#y(e))&&(yield e),e===this.#x));)e=this.#w[e]}#E(o){return o!==void 0&&this.#n.get(this.#c[o])===o}*entries(){for(let o of this.#v())this.#i[o]!==void 0&&this.#c[o]!==void 0&&!this.#u(this.#i[o])&&(yield[this.#c[o],this.#i[o]])}*rentries(){for(let o of this.#q())this.#i[o]!==void 0&&this.#c[o]!==void 0&&!this.#u(this.#i[o])&&(yield[this.#c[o],this.#i[o]])}*keys(){for(let o of this.#v()){let e=this.#c[o];e!==void 0&&!this.#u(this.#i[o])&&(yield e)}}*rkeys(){for(let o of this.#q()){let e=this.#c[o];e!==void 0&&!this.#u(this.#i[o])&&(yield e)}}*values(){for(let o of this.#v())this.#i[o]!==void 0&&!this.#u(this.#i[o])&&(yield this.#i[o])}*rvalues(){for(let o of this.#q())this.#i[o]!==void 0&&!this.#u(this.#i[o])&&(yield this.#i[o])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(o,e={}){for(let s of this.#v()){let i=this.#i[s],r=this.#u(i)?i.__staleWhileFetching:i;if(r!==void 0&&o(r,this.#c[s],this))return this.get(this.#c[s],e)}}forEach(o,e=this){for(let s of this.#v()){let i=this.#i[s],r=this.#u(i)?i.__staleWhileFetching:i;r!==void 0&&o.call(e,r,this.#c[s],this)}}rforEach(o,e=this){for(let s of this.#q()){let i=this.#i[s],r=this.#u(i)?i.__staleWhileFetching:i;r!==void 0&&o.call(e,r,this.#c[s],this)}}purgeStale(){let o=!1;for(let e of this.#q({allowStale:!0}))this.#y(e)&&(this.#N(this.#c[e],"expire"),o=!0);return o}info(o){let e=this.#n.get(o);if(e===void 0)return;let s=this.#i[e],i=this.#u(s)?s.__staleWhileFetching:s;if(i===void 0)return;let r={value:i};if(this.#h&&this.#W){let a=this.#h[e],n=this.#W[e];if(a&&n){let c=a-(qt.now()-n);r.ttl=c,r.start=Date.now()}}return this.#G&&(r.size=this.#G[e]),r}dump(){let o=[];for(let e of this.#v({allowStale:!0})){let s=this.#c[e],i=this.#i[e],r=this.#u(i)?i.__staleWhileFetching:i;if(r===void 0||s===void 0)continue;let a={value:r};if(this.#h&&this.#W){a.ttl=this.#h[e];let n=qt.now()-this.#W[e];a.start=Math.floor(Date.now()-n)}this.#G&&(a.size=this.#G[e]),o.unshift([s,a])}return o}load(o){this.clear();for(let[e,s]of o){if(s.start){let i=Date.now()-s.start;s.start=qt.now()-i}this.set(e,s.value,s)}}set(o,e,s={}){if(e===void 0)return this.delete(o),this;let{ttl:i=this.ttl,start:r,noDisposeOnSet:a=this.noDisposeOnSet,sizeCalculation:n=this.sizeCalculation,status:c}=s,{noUpdateTTL:_=this.noUpdateTTL}=s,d=this.#V(o,e,s.size||0,n);if(this.maxEntrySize&&d>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.#N(o,"set"),this;let O=this.#l===0?void 0:this.#n.get(o);if(O===void 0)O=this.#l===0?this.#x:this.#k.length!==0?this.#k.pop():this.#l===this.#o?this.#X(!1):this.#l,this.#c[O]=o,this.#i[O]=e,this.#n.set(o,O),this.#w[this.#x]=O,this.#d[O]=this.#x,this.#x=O,this.#l++,this.#M(O,d,c),c&&(c.set="add"),_=!1;else{this.#I(O);let g=this.#i[O];if(e!==g){if(this.#K&&this.#u(g)){g.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:w}=g;w!==void 0&&!a&&(this.#z&&this.#r?.(w,o,"set"),this.#g&&this.#O?.push([w,o,"set"]))}else a||(this.#z&&this.#r?.(g,o,"set"),this.#g&&this.#O?.push([g,o,"set"]));if(this.#F(O),this.#M(O,d,c),this.#i[O]=e,c){c.set="replace";let w=g&&this.#u(g)?g.__staleWhileFetching:g;w!==void 0&&(c.oldValue=w)}}else c&&(c.set="update")}if(i!==0&&!this.#h&&this.#p(),this.#h&&(_||this.#S(O,i,r),c&&this.#e(c,O)),!a&&this.#g&&this.#O){let g=this.#O,w;for(;w=g?.shift();)this.#s?.(...w)}return this}pop(){try{for(;this.#l;){let o=this.#i[this.#m];if(this.#X(!0),this.#u(o)){if(o.__staleWhileFetching)return o.__staleWhileFetching}else if(o!==void 0)return o}}finally{if(this.#g&&this.#O){let o=this.#O,e;for(;e=o?.shift();)this.#s?.(...e)}}}#X(o){let e=this.#m,s=this.#c[e],i=this.#i[e];return this.#K&&this.#u(i)?i.__abortController.abort(new Error("evicted")):(this.#z||this.#g)&&(this.#z&&this.#r?.(i,s,"evict"),this.#g&&this.#O?.push([i,s,"evict"])),this.#F(e),o&&(this.#c[e]=void 0,this.#i[e]=void 0,this.#k.push(e)),this.#l===1?(this.#m=this.#x=0,this.#k.length=0):this.#m=this.#w[e],this.#n.delete(s),this.#l--,e}has(o,e={}){let{updateAgeOnHas:s=this.updateAgeOnHas,status:i}=e,r=this.#n.get(o);if(r!==void 0){let a=this.#i[r];if(this.#u(a)&&a.__staleWhileFetching===void 0)return!1;if(this.#y(r))i&&(i.has="stale",this.#e(i,r));else return s&&this.#b(r),i&&(i.has="hit",this.#e(i,r)),!0}else i&&(i.has="miss");return!1}peek(o,e={}){let{allowStale:s=this.allowStale}=e,i=this.#n.get(o);if(i===void 0||!s&&this.#y(i))return;let r=this.#i[i];return this.#u(r)?r.__staleWhileFetching:r}#Y(o,e,s,i){let r=e===void 0?void 0:this.#i[e];if(this.#u(r))return r;let a=new gs,{signal:n}=s;n?.addEventListener("abort",()=>a.abort(n.reason),{signal:a.signal});let c={signal:a.signal,options:s,context:i},_=(K,q=!1)=>{let{aborted:v}=a.signal,p=s.ignoreFetchAbort&&K!==void 0;if(s.status&&(v&&!q?(s.status.fetchAborted=!0,s.status.fetchError=a.signal.reason,p&&(s.status.fetchAbortIgnored=!0)):s.status.fetchResolved=!0),v&&!p&&!q)return O(a.signal.reason);let m=w;return this.#i[e]===w&&(K===void 0?m.__staleWhileFetching?this.#i[e]=m.__staleWhileFetching:this.#N(o,"fetch"):(s.status&&(s.status.fetchUpdated=!0),this.set(o,K,c.options))),K},d=K=>(s.status&&(s.status.fetchRejected=!0,s.status.fetchError=K),O(K)),O=K=>{let{aborted:q}=a.signal,v=q&&s.allowStaleOnFetchAbort,p=v||s.allowStaleOnFetchRejection,m=p||s.noDeleteOnFetchRejection,l=w;if(this.#i[e]===w&&(!m||l.__staleWhileFetching===void 0?this.#N(o,"fetch"):v||(this.#i[e]=l.__staleWhileFetching)),p)return s.status&&l.__staleWhileFetching!==void 0&&(s.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw K},g=(K,q)=>{let v=this.#a?.(o,r,c);v&&v instanceof Promise&&v.then(p=>K(p===void 0?void 0:p),q),a.signal.addEventListener("abort",()=>{(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort)&&(K(void 0),s.allowStaleOnFetchAbort&&(K=p=>_(p,!0)))})};s.status&&(s.status.fetchDispatched=!0);let w=new Promise(g).then(_,d),z=Object.assign(w,{__abortController:a,__staleWhileFetching:r,__returned:void 0});return e===void 0?(this.set(o,z,{...c.options,status:void 0}),e=this.#n.get(o)):this.#i[e]=z,z}#u(o){if(!this.#K)return!1;let e=o;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof gs}async fetch(o,e={}){let{allowStale:s=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:a=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:c=0,sizeCalculation:_=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:O=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:w=this.ignoreFetchAbort,allowStaleOnFetchAbort:z=this.allowStaleOnFetchAbort,context:K,forceRefresh:q=!1,status:v,signal:p}=e;if(!this.#K)return v&&(v.fetch="get"),this.get(o,{allowStale:s,updateAgeOnGet:i,noDeleteOnStaleGet:r,status:v});let m={allowStale:s,updateAgeOnGet:i,noDeleteOnStaleGet:r,ttl:a,noDisposeOnSet:n,size:c,sizeCalculation:_,noUpdateTTL:d,noDeleteOnFetchRejection:O,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:z,ignoreFetchAbort:w,status:v,signal:p},l=this.#n.get(o);if(l===void 0){v&&(v.fetch="miss");let x=this.#Y(o,l,m,K);return x.__returned=x}else{let x=this.#i[l];if(this.#u(x)){let f=s&&x.__staleWhileFetching!==void 0;return v&&(v.fetch="inflight",f&&(v.returnedStale=!0)),f?x.__staleWhileFetching:x.__returned=x}let u=this.#y(l);if(!q&&!u)return v&&(v.fetch="hit"),this.#I(l),i&&this.#b(l),v&&this.#e(v,l),x;let G=this.#Y(o,l,m,K),h=G.__staleWhileFetching!==void 0&&s;return v&&(v.fetch=u?"stale":"refresh",h&&u&&(v.returnedStale=!0)),h?G.__staleWhileFetching:G.__returned=G}}async forceFetch(o,e={}){let s=await this.fetch(o,e);if(s===void 0)throw new Error("fetch() returned undefined");return s}memo(o,e={}){let s=this.#f;if(!s)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:r,...a}=e,n=this.get(o,a);if(!r&&n!==void 0)return n;let c=s(o,n,{options:a,context:i});return this.set(o,c,a),c}get(o,e={}){let{allowStale:s=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,status:a}=e,n=this.#n.get(o);if(n!==void 0){let c=this.#i[n],_=this.#u(c);return a&&this.#e(a,n),this.#y(n)?(a&&(a.get="stale"),_?(a&&s&&c.__staleWhileFetching!==void 0&&(a.returnedStale=!0),s?c.__staleWhileFetching:void 0):(r||this.#N(o,"expire"),a&&s&&(a.returnedStale=!0),s?c:void 0)):(a&&(a.get="hit"),_?c.__staleWhileFetching:(this.#I(n),i&&this.#b(n),c))}else a&&(a.get="miss")}#Z(o,e){this.#d[e]=o,this.#w[o]=e}#I(o){o!==this.#x&&(o===this.#m?this.#m=this.#w[o]:this.#Z(this.#d[o],this.#w[o]),this.#Z(this.#x,o),this.#x=o)}delete(o){return this.#N(o,"delete")}#N(o,e){let s=!1;if(this.#l!==0){let i=this.#n.get(o);if(i!==void 0)if(s=!0,this.#l===1)this.#P(e);else{this.#F(i);let r=this.#i[i];if(this.#u(r)?r.__abortController.abort(new Error("deleted")):(this.#z||this.#g)&&(this.#z&&this.#r?.(r,o,e),this.#g&&this.#O?.push([r,o,e])),this.#n.delete(o),this.#c[i]=void 0,this.#i[i]=void 0,i===this.#x)this.#x=this.#d[i];else if(i===this.#m)this.#m=this.#w[i];else{let a=this.#d[i];this.#w[a]=this.#w[i];let n=this.#w[i];this.#d[n]=this.#d[i]}this.#l--,this.#k.push(i)}}if(this.#g&&this.#O?.length){let i=this.#O,r;for(;r=i?.shift();)this.#s?.(...r)}return s}clear(){return this.#P("delete")}#P(o){for(let e of this.#q({allowStale:!0})){let s=this.#i[e];if(this.#u(s))s.__abortController.abort(new Error("deleted"));else{let i=this.#c[e];this.#z&&this.#r?.(s,i,o),this.#g&&this.#O?.push([s,i,o])}}if(this.#n.clear(),this.#i.fill(void 0),this.#c.fill(void 0),this.#h&&this.#W&&(this.#h.fill(0),this.#W.fill(0)),this.#G&&this.#G.fill(0),this.#m=0,this.#x=0,this.#k.length=0,this.#_=0,this.#l=0,this.#g&&this.#O){let e=this.#O,s;for(;s=e?.shift();)this.#s?.(...s)}}};var St=require("node:path"),gl=require("node:url"),Mo=require("fs"),lg=I(require("node:fs"),1),it=require("node:fs/promises");var zs=require("node:events"),$i=I(require("node:stream"),1),ll=require("node:string_decoder"),rl=typeof process=="object"&&process?process:{stdout:null,stderr:null},og=t=>!!t&&typeof t=="object"&&(t instanceof st||t instanceof $i.default||tg(t)||eg(t)),tg=t=>!!t&&typeof t=="object"&&t instanceof zs.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==$i.default.Writable.prototype.pipe,eg=t=>!!t&&typeof t=="object"&&t instanceof zs.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function",Qo=Symbol("EOF"),Ao=Symbol("maybeEmitEnd"),et=Symbol("emittedEnd"),Os=Symbol("emittingEnd"),ce=Symbol("emittedError"),ws=Symbol("closed"),al=Symbol("read"),ds=Symbol("flush"),nl=Symbol("flushChunk"),bo=Symbol("encoding"),Ct=Symbol("decoder"),J=Symbol("flowing"),le=Symbol("paused"),Nt=Symbol("resume"),B=Symbol("buffer"),ao=Symbol("pipes"),D=Symbol("bufferLength"),Ai=Symbol("bufferPush"),ys=Symbol("bufferShift"),eo=Symbol("objectMode"),U=Symbol("destroyed"),ji=Symbol("error"),Ri=Symbol("emitData"),cl=Symbol("emitEnd"),Ji=Symbol("emitEnd2"),So=Symbol("async"),Bi=Symbol("abort"),hs=Symbol("aborted"),ue=Symbol("signal"),gt=Symbol("dataListeners"),go=Symbol("discarded"),_e=t=>Promise.resolve().then(t),sg=t=>t(),ig=t=>t==="end"||t==="finish"||t==="prefinish",rg=t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,ag=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),fs=class{src;dest;opts;ondrain;constructor(o,e,s){this.src=o,this.dest=e,this.opts=s,this.ondrain=()=>o[Nt](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(o){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},Di=class extends fs{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(o,e,s){super(o,e,s),this.proxyErrors=i=>e.emit("error",i),o.on("error",this.proxyErrors)}},ng=t=>!!t.objectMode,cg=t=>!t.objectMode&&!!t.encoding&&t.encoding!=="buffer",st=class extends zs.EventEmitter{[J]=!1;[le]=!1;[ao]=[];[B]=[];[eo];[bo];[So];[Ct];[Qo]=!1;[et]=!1;[Os]=!1;[ws]=!1;[ce]=null;[D]=0;[U]=!1;[ue];[hs]=!1;[gt]=0;[go]=!1;writable=!0;readable=!0;constructor(...o){let e=o[0]||{};if(super(),e.objectMode&&typeof e.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");ng(e)?(this[eo]=!0,this[bo]=null):cg(e)?(this[bo]=e.encoding,this[eo]=!1):(this[eo]=!1,this[bo]=null),this[So]=!!e.async,this[Ct]=this[bo]?new ll.StringDecoder(this[bo]):null,e&&e.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[B]}),e&&e.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ao]});let{signal:s}=e;s&&(this[ue]=s,s.aborted?this[Bi]():s.addEventListener("abort",()=>this[Bi]()))}get bufferLength(){return this[D]}get encoding(){return this[bo]}set encoding(o){throw new Error("Encoding must be set at instantiation time")}setEncoding(o){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[eo]}set objectMode(o){throw new Error("objectMode must be set at instantiation time")}get async(){return this[So]}set async(o){this[So]=this[So]||!!o}[Bi](){this[hs]=!0,this.emit("abort",this[ue]?.reason),this.destroy(this[ue]?.reason)}get aborted(){return this[hs]}set aborted(o){}write(o,e,s){if(this[hs])return!1;if(this[Qo])throw new Error("write after end");if(this[U])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof e=="function"&&(s=e,e="utf8"),e||(e="utf8");let i=this[So]?_e:sg;if(!this[eo]&&!Buffer.isBuffer(o)){if(ag(o))o=Buffer.from(o.buffer,o.byteOffset,o.byteLength);else if(rg(o))o=Buffer.from(o);else if(typeof o!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[eo]?(this[J]&&this[D]!==0&&this[ds](!0),this[J]?this.emit("data",o):this[Ai](o),this[D]!==0&&this.emit("readable"),s&&i(s),this[J]):o.length?(typeof o=="string"&&!(e===this[bo]&&!this[Ct]?.lastNeed)&&(o=Buffer.from(o,e)),Buffer.isBuffer(o)&&this[bo]&&(o=this[Ct].write(o)),this[J]&&this[D]!==0&&this[ds](!0),this[J]?this.emit("data",o):this[Ai](o),this[D]!==0&&this.emit("readable"),s&&i(s),this[J]):(this[D]!==0&&this.emit("readable"),s&&i(s),this[J])}read(o){if(this[U])return null;if(this[go]=!1,this[D]===0||o===0||o&&o>this[D])return this[Ao](),null;this[eo]&&(o=null),this[B].length>1&&!this[eo]&&(this[B]=[this[bo]?this[B].join(""):Buffer.concat(this[B],this[D])]);let e=this[al](o||null,this[B][0]);return this[Ao](),e}[al](o,e){if(this[eo])this[ys]();else{let s=e;o===s.length||o===null?this[ys]():typeof s=="string"?(this[B][0]=s.slice(o),e=s.slice(0,o),this[D]-=o):(this[B][0]=s.subarray(o),e=s.subarray(0,o),this[D]-=o)}return this.emit("data",e),!this[B].length&&!this[Qo]&&this.emit("drain"),e}end(o,e,s){return typeof o=="function"&&(s=o,o=void 0),typeof e=="function"&&(s=e,e="utf8"),o!==void 0&&this.write(o,e),s&&this.once("end",s),this[Qo]=!0,this.writable=!1,(this[J]||!this[le])&&this[Ao](),this}[Nt](){this[U]||(!this[gt]&&!this[ao].length&&(this[go]=!0),this[le]=!1,this[J]=!0,this.emit("resume"),this[B].length?this[ds]():this[Qo]?this[Ao]():this.emit("drain"))}resume(){return this[Nt]()}pause(){this[J]=!1,this[le]=!0,this[go]=!1}get destroyed(){return this[U]}get flowing(){return this[J]}get paused(){return this[le]}[Ai](o){this[eo]?this[D]+=1:this[D]+=o.length,this[B].push(o)}[ys](){return this[eo]?this[D]-=1:this[D]-=this[B][0].length,this[B].shift()}[ds](o=!1){do;while(this[nl](this[ys]())&&this[B].length);!o&&!this[B].length&&!this[Qo]&&this.emit("drain")}[nl](o){return this.emit("data",o),this[J]}pipe(o,e){if(this[U])return o;this[go]=!1;let s=this[et];return e=e||{},o===rl.stdout||o===rl.stderr?e.end=!1:e.end=e.end!==!1,e.proxyErrors=!!e.proxyErrors,s?e.end&&o.end():(this[ao].push(e.proxyErrors?new Di(this,o,e):new fs(this,o,e)),this[So]?_e(()=>this[Nt]()):this[Nt]()),o}unpipe(o){let e=this[ao].find(s=>s.dest===o);e&&(this[ao].length===1?(this[J]&&this[gt]===0&&(this[J]=!1),this[ao]=[]):this[ao].splice(this[ao].indexOf(e),1),e.unpipe())}addListener(o,e){return this.on(o,e)}on(o,e){let s=super.on(o,e);if(o==="data")this[go]=!1,this[gt]++,!this[ao].length&&!this[J]&&this[Nt]();else if(o==="readable"&&this[D]!==0)super.emit("readable");else if(ig(o)&&this[et])super.emit(o),this.removeAllListeners(o);else if(o==="error"&&this[ce]){let i=e;this[So]?_e(()=>i.call(this,this[ce])):i.call(this,this[ce])}return s}removeListener(o,e){return this.off(o,e)}off(o,e){let s=super.off(o,e);return o==="data"&&(this[gt]=this.listeners("data").length,this[gt]===0&&!this[go]&&!this[ao].length&&(this[J]=!1)),s}removeAllListeners(o){let e=super.removeAllListeners(o);return(o==="data"||o===void 0)&&(this[gt]=0,!this[go]&&!this[ao].length&&(this[J]=!1)),e}get emittedEnd(){return this[et]}[Ao](){!this[Os]&&!this[et]&&!this[U]&&this[B].length===0&&this[Qo]&&(this[Os]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[ws]&&this.emit("close"),this[Os]=!1)}emit(o,...e){let s=e[0];if(o!=="error"&&o!=="close"&&o!==U&&this[U])return!1;if(o==="data")return!this[eo]&&!s?!1:this[So]?(_e(()=>this[Ri](s)),!0):this[Ri](s);if(o==="end")return this[cl]();if(o==="close"){if(this[ws]=!0,!this[et]&&!this[U])return!1;let r=super.emit("close");return this.removeAllListeners("close"),r}else if(o==="error"){this[ce]=s,super.emit(ji,s);let r=!this[ue]||this.listeners("error").length?super.emit("error",s):!1;return this[Ao](),r}else if(o==="resume"){let r=super.emit("resume");return this[Ao](),r}else if(o==="finish"||o==="prefinish"){let r=super.emit(o);return this.removeAllListeners(o),r}let i=super.emit(o,...e);return this[Ao](),i}[Ri](o){for(let s of this[ao])s.dest.write(o)===!1&&this.pause();let e=this[go]?!1:super.emit("data",o);return this[Ao](),e}[cl](){return this[et]?!1:(this[et]=!0,this.readable=!1,this[So]?(_e(()=>this[Ji]()),!0):this[Ji]())}[Ji](){if(this[Ct]){let e=this[Ct].end();if(e){for(let s of this[ao])s.dest.write(e);this[go]||super.emit("data",e)}}for(let e of this[ao])e.end();let o=super.emit("end");return this.removeAllListeners("end"),o}async collect(){let o=Object.assign([],{dataLength:0});this[eo]||(o.dataLength=0);let e=this.promise();return this.on("data",s=>{o.push(s),this[eo]||(o.dataLength+=s.length)}),await e,o}async concat(){if(this[eo])throw new Error("cannot concat in objectMode");let o=await this.collect();return this[bo]?o.join(""):Buffer.concat(o,o.dataLength)}async promise(){return new Promise((o,e)=>{this.on(U,()=>e(new Error("stream destroyed"))),this.on("error",s=>e(s)),this.on("end",()=>o())})}[Symbol.asyncIterator](){this[go]=!1;let o=!1,e=async()=>(this.pause(),o=!0,{value:void 0,done:!0});return{next:()=>{if(o)return e();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Qo])return e();let r,a,n=O=>{this.off("data",c),this.off("end",_),this.off(U,d),e(),a(O)},c=O=>{this.off("error",n),this.off("end",_),this.off(U,d),this.pause(),r({value:O,done:!!this[Qo]})},_=()=>{this.off("error",n),this.off("data",c),this.off(U,d),e(),r({done:!0,value:void 0})},d=()=>n(new Error("stream destroyed"));return new Promise((O,g)=>{a=g,r=O,this.once(U,d),this.once("error",n),this.once("end",_),this.once("data",c)})},throw:e,return:e,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[go]=!1;let o=!1,e=()=>(this.pause(),this.off(ji,e),this.off(U,e),this.off("end",e),o=!0,{done:!0,value:void 0}),s=()=>{if(o)return e();let i=this.read();return i===null?e():{done:!1,value:i}};return this.once("end",e),this.once(ji,e),this.once(U,e),{next:s,throw:e,return:e,[Symbol.iterator](){return this}}}destroy(o){if(this[U])return o?this.emit("error",o):this.emit(U),this;this[U]=!0,this[go]=!0,this[B].length=0,this[D]=0;let e=this;return typeof e.close=="function"&&!this[ws]&&e.close(),o?this.emit("error",o):this.emit(U),this}static get isStream(){return og}};var ug=Mo.realpathSync.native,me={lstatSync:Mo.lstatSync,readdir:Mo.readdir,readdirSync:Mo.readdirSync,readlinkSync:Mo.readlinkSync,realpathSync:ug,promises:{lstat:it.lstat,readdir:it.readdir,readlink:it.readlink,realpath:it.realpath}},Ol=t=>!t||t===me||t===lg?me:{...me,...t,promises:{...me.promises,...t.promises||{}}},wl=/^\\\\\?\\([a-z]:)\\?$/i,_g=t=>t.replace(/\//g,"\\").replace(wl,"$1\\"),xg=/[\\\/]/,zo=0,dl=1,yl=2,Fo=4,hl=6,fl=8,Ot=10,zl=12,fo=15,xe=~fo,Hi=16,ul=32,ge=64,vo=128,Ks=256,Gs=512,_l=ge|vo|Gs,mg=1023,or=t=>t.isFile()?fl:t.isDirectory()?Fo:t.isSymbolicLink()?Ot:t.isCharacterDevice()?yl:t.isBlockDevice()?hl:t.isSocket()?zl:t.isFIFO()?dl:zo,xl=new Map,Oe=t=>{let o=xl.get(t);if(o)return o;let e=t.normalize("NFKD");return xl.set(t,e),e},ml=new Map,ks=t=>{let o=ml.get(t);if(o)return o;let e=Oe(t.toLowerCase());return ml.set(t,e),e},Ws=class extends ne{constructor(){super({max:256})}},tr=class extends ne{constructor(o=16*1024){super({maxSize:o,sizeCalculation:e=>e.length+1})}},Kl=Symbol("PathScurry setAsCwd"),so=class{name;root;roots;parent;nocase;isCWD=!1;#o;#t;get dev(){return this.#t}#r;get mode(){return this.#r}#s;get nlink(){return this.#s}#a;get uid(){return this.#a}#f;get gid(){return this.#f}#l;get rdev(){return this.#l}#_;get blksize(){return this.#_}#n;get ino(){return this.#n}#c;get size(){return this.#c}#i;get blocks(){return this.#i}#w;get atimeMs(){return this.#w}#d;get mtimeMs(){return this.#d}#m;get ctimeMs(){return this.#m}#x;get birthtimeMs(){return this.#x}#k;get atime(){return this.#k}#O;get mtime(){return this.#O}#G;get ctime(){return this.#G}#W;get birthtime(){return this.#W}#h;#z;#K;#g;#p;#b;#e;#S;#y;#C;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(o,e=zo,s,i,r,a,n){this.name=o,this.#h=r?ks(o):Oe(o),this.#e=e&mg,this.nocase=r,this.roots=i,this.root=s||this,this.#S=a,this.#K=n.fullpath,this.#p=n.relative,this.#b=n.relativePosix,this.parent=n.parent,this.parent?this.#o=this.parent.#o:this.#o=Ol(n.fs)}depth(){return this.#z!==void 0?this.#z:this.parent?this.#z=this.parent.depth()+1:this.#z=0}childrenCache(){return this.#S}resolve(o){if(!o)return this;let e=this.getRootString(o),i=o.substring(e.length).split(this.splitSep);return e?this.getRoot(e).#F(i):this.#F(i)}#F(o){let e=this;for(let s of o)e=e.child(s);return e}children(){let o=this.#S.get(this);if(o)return o;let e=Object.assign([],{provisional:0});return this.#S.set(this,e),this.#e&=~Hi,e}child(o,e){if(o===""||o===".")return this;if(o==="..")return this.parent||this;let s=this.children(),i=this.nocase?ks(o):Oe(o);for(let c of s)if(c.#h===i)return c;let r=this.parent?this.sep:"",a=this.#K?this.#K+r+o:void 0,n=this.newChild(o,zo,{...e,parent:this,fullpath:a});return this.canReaddir()||(n.#e|=vo),s.push(n),n}relative(){if(this.isCWD)return"";if(this.#p!==void 0)return this.#p;let o=this.name,e=this.parent;if(!e)return this.#p=this.name;let s=e.relative();return s+(!s||!e.parent?"":this.sep)+o}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#b!==void 0)return this.#b;let o=this.name,e=this.parent;if(!e)return this.#b=this.fullpathPosix();let s=e.relativePosix();return s+(!s||!e.parent?"":"/")+o}fullpath(){if(this.#K!==void 0)return this.#K;let o=this.name,e=this.parent;if(!e)return this.#K=this.name;let i=e.fullpath()+(e.parent?this.sep:"")+o;return this.#K=i}fullpathPosix(){if(this.#g!==void 0)return this.#g;if(this.sep==="/")return this.#g=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#g=`//?/${i}`:this.#g=i}let o=this.parent,e=o.fullpathPosix(),s=e+(!e||!o.parent?"":"/")+this.name;return this.#g=s}isUnknown(){return(this.#e&fo)===zo}isType(o){return this[`is${o}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#e&fo)===fl}isDirectory(){return(this.#e&fo)===Fo}isCharacterDevice(){return(this.#e&fo)===yl}isBlockDevice(){return(this.#e&fo)===hl}isFIFO(){return(this.#e&fo)===dl}isSocket(){return(this.#e&fo)===zl}isSymbolicLink(){return(this.#e&Ot)===Ot}lstatCached(){return this.#e&ul?this:void 0}readlinkCached(){return this.#y}realpathCached(){return this.#C}readdirCached(){let o=this.children();return o.slice(0,o.provisional)}canReadlink(){if(this.#y)return!0;if(!this.parent)return!1;let o=this.#e&fo;return!(o!==zo&&o!==Ot||this.#e&Ks||this.#e&vo)}calledReaddir(){return!!(this.#e&Hi)}isENOENT(){return!!(this.#e&vo)}isNamed(o){return this.nocase?this.#h===ks(o):this.#h===Oe(o)}async readlink(){let o=this.#y;if(o)return o;if(this.canReadlink()&&this.parent)try{let e=await this.#o.promises.readlink(this.fullpath()),s=(await this.parent.realpath())?.resolve(e);if(s)return this.#y=s}catch(e){this.#u(e.code);return}}readlinkSync(){let o=this.#y;if(o)return o;if(this.canReadlink()&&this.parent)try{let e=this.#o.readlinkSync(this.fullpath()),s=this.parent.realpathSync()?.resolve(e);if(s)return this.#y=s}catch(e){this.#u(e.code);return}}#M(o){this.#e|=Hi;for(let e=o.provisional;e<o.length;e++){let s=o[e];s&&s.#V()}}#V(){this.#e&vo||(this.#e=(this.#e|vo)&xe,this.#v())}#v(){let o=this.children();o.provisional=0;for(let e of o)e.#V()}#q(){this.#e|=Gs,this.#E()}#E(){if(this.#e&ge)return;let o=this.#e;(o&fo)===Fo&&(o&=xe),this.#e=o|ge,this.#v()}#X(o=""){o==="ENOTDIR"||o==="EPERM"?this.#E():o==="ENOENT"?this.#V():this.children().provisional=0}#Y(o=""){o==="ENOTDIR"?this.parent.#E():o==="ENOENT"&&this.#V()}#u(o=""){let e=this.#e;e|=Ks,o==="ENOENT"&&(e|=vo),(o==="EINVAL"||o==="UNKNOWN")&&(e&=xe),this.#e=e,o==="ENOTDIR"&&this.parent&&this.parent.#E()}#Z(o,e){return this.#N(o,e)||this.#I(o,e)}#I(o,e){let s=or(o),i=this.newChild(o.name,s,{parent:this}),r=i.#e&fo;return r!==Fo&&r!==Ot&&r!==zo&&(i.#e|=ge),e.unshift(i),e.provisional++,i}#N(o,e){for(let s=e.provisional;s<e.length;s++){let i=e[s];if((this.nocase?ks(o.name):Oe(o.name))===i.#h)return this.#P(o,i,s,e)}}#P(o,e,s,i){let r=e.name;return e.#e=e.#e&xe|or(o),r!==o.name&&(e.name=o.name),s!==i.provisional&&(s===i.length-1?i.pop():i.splice(s,1),i.unshift(e)),i.provisional++,e}async lstat(){if((this.#e&vo)===0)try{return this.#Q(await this.#o.promises.lstat(this.fullpath())),this}catch(o){this.#Y(o.code)}}lstatSync(){if((this.#e&vo)===0)try{return this.#Q(this.#o.lstatSync(this.fullpath())),this}catch(o){this.#Y(o.code)}}#Q(o){let{atime:e,atimeMs:s,birthtime:i,birthtimeMs:r,blksize:a,blocks:n,ctime:c,ctimeMs:_,dev:d,gid:O,ino:g,mode:w,mtime:z,mtimeMs:K,nlink:q,rdev:v,size:p,uid:m}=o;this.#k=e,this.#w=s,this.#W=i,this.#x=r,this.#_=a,this.#i=n,this.#G=c,this.#m=_,this.#t=d,this.#f=O,this.#n=g,this.#r=w,this.#O=z,this.#d=K,this.#s=q,this.#l=v,this.#c=p,this.#a=m;let l=or(o);this.#e=this.#e&xe|l|ul,l!==zo&&l!==Fo&&l!==Ot&&(this.#e|=ge)}#T=[];#U=!1;#A(o){this.#U=!1;let e=this.#T.slice();this.#T.length=0,e.forEach(s=>s(null,o))}readdirCB(o,e=!1){if(!this.canReaddir()){e?o(null,[]):queueMicrotask(()=>o(null,[]));return}let s=this.children();if(this.calledReaddir()){let r=s.slice(0,s.provisional);e?o(null,r):queueMicrotask(()=>o(null,r));return}if(this.#T.push(o),this.#U)return;this.#U=!0;let i=this.fullpath();this.#o.readdir(i,{withFileTypes:!0},(r,a)=>{if(r)this.#X(r.code),s.provisional=0;else{for(let n of a)this.#Z(n,s);this.#M(s)}this.#A(s.slice(0,s.provisional))})}#L;async readdir(){if(!this.canReaddir())return[];let o=this.children();if(this.calledReaddir())return o.slice(0,o.provisional);let e=this.fullpath();if(this.#L)await this.#L;else{let s=()=>{};this.#L=new Promise(i=>s=i);try{for(let i of await this.#o.promises.readdir(e,{withFileTypes:!0}))this.#Z(i,o);this.#M(o)}catch(i){this.#X(i.code),o.provisional=0}this.#L=void 0,s()}return o.slice(0,o.provisional)}readdirSync(){if(!this.canReaddir())return[];let o=this.children();if(this.calledReaddir())return o.slice(0,o.provisional);let e=this.fullpath();try{for(let s of this.#o.readdirSync(e,{withFileTypes:!0}))this.#Z(s,o);this.#M(o)}catch(s){this.#X(s.code),o.provisional=0}return o.slice(0,o.provisional)}canReaddir(){if(this.#e&_l)return!1;let o=fo&this.#e;return o===zo||o===Fo||o===Ot}shouldWalk(o,e){return(this.#e&Fo)===Fo&&!(this.#e&_l)&&!o.has(this)&&(!e||e(this))}async realpath(){if(this.#C)return this.#C;if(!((Gs|Ks|vo)&this.#e))try{let o=await this.#o.promises.realpath(this.fullpath());return this.#C=this.resolve(o)}catch{this.#q()}}realpathSync(){if(this.#C)return this.#C;if(!((Gs|Ks|vo)&this.#e))try{let o=this.#o.realpathSync(this.fullpath());return this.#C=this.resolve(o)}catch{this.#q()}}[Kl](o){if(o===this)return;o.isCWD=!1,this.isCWD=!0;let e=new Set([]),s=[],i=this;for(;i&&i.parent;)e.add(i),i.#p=s.join(this.sep),i.#b=s.join("/"),i=i.parent,s.push("..");for(i=o;i&&i.parent&&!e.has(i);)i.#p=void 0,i.#b=void 0,i=i.parent}},bs=class t extends so{sep="\\";splitSep=xg;constructor(o,e=zo,s,i,r,a,n){super(o,e,s,i,r,a,n)}newChild(o,e=zo,s={}){return new t(o,e,this.root,this.roots,this.nocase,this.childrenCache(),s)}getRootString(o){return St.win32.parse(o).root}getRoot(o){if(o=_g(o.toUpperCase()),o===this.root.name)return this.root;for(let[e,s]of Object.entries(this.roots))if(this.sameRoot(o,e))return this.roots[o]=s;return this.roots[o]=new Ft(o,this).root}sameRoot(o,e=this.root.name){return o=o.toUpperCase().replace(/\//g,"\\").replace(wl,"$1\\"),o===e}},vs=class t extends so{splitSep="/";sep="/";constructor(o,e=zo,s,i,r,a,n){super(o,e,s,i,r,a,n)}getRootString(o){return o.startsWith("/")?"/":""}getRoot(o){return this.root}newChild(o,e=zo,s={}){return new t(o,e,this.root,this.roots,this.nocase,this.childrenCache(),s)}},qs=class{root;rootPath;roots;cwd;#o;#t;#r;nocase;#s;constructor(o=process.cwd(),e,s,{nocase:i,childrenCacheSize:r=16*1024,fs:a=me}={}){this.#s=Ol(a),(o instanceof URL||o.startsWith("file://"))&&(o=(0,gl.fileURLToPath)(o));let n=e.resolve(o);this.roots=Object.create(null),this.rootPath=this.parseRootPath(n),this.#o=new Ws,this.#t=new Ws,this.#r=new tr(r);let c=n.substring(this.rootPath.length).split(s);if(c.length===1&&!c[0]&&c.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#s),this.roots[this.rootPath]=this.root;let _=this.root,d=c.length-1,O=e.sep,g=this.rootPath,w=!1;for(let z of c){let K=d--;_=_.child(z,{relative:new Array(K).fill("..").join(O),relativePosix:new Array(K).fill("..").join("/"),fullpath:g+=(w?"":O)+z}),w=!0}this.cwd=_}depth(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.depth()}childrenCache(){return this.#r}resolve(...o){let e="";for(let r=o.length-1;r>=0;r--){let a=o[r];if(!(!a||a===".")&&(e=e?`${a}/${e}`:a,this.isAbsolute(a)))break}let s=this.#o.get(e);if(s!==void 0)return s;let i=this.cwd.resolve(e).fullpath();return this.#o.set(e,i),i}resolvePosix(...o){let e="";for(let r=o.length-1;r>=0;r--){let a=o[r];if(!(!a||a===".")&&(e=e?`${a}/${e}`:a,this.isAbsolute(a)))break}let s=this.#t.get(e);if(s!==void 0)return s;let i=this.cwd.resolve(e).fullpathPosix();return this.#t.set(e,i),i}relative(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.relative()}relativePosix(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.relativePosix()}basename(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.name}dirname(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),(o.parent||o).fullpath()}async readdir(o=this.cwd,e={withFileTypes:!0}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s}=e;if(o.canReaddir()){let i=await o.readdir();return s?i:i.map(r=>r.name)}else return[]}readdirSync(o=this.cwd,e={withFileTypes:!0}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s=!0}=e;return o.canReaddir()?s?o.readdirSync():o.readdirSync().map(i=>i.name):[]}async lstat(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.lstat()}lstatSync(o=this.cwd){return typeof o=="string"&&(o=this.cwd.resolve(o)),o.lstatSync()}async readlink(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o.withFileTypes,o=this.cwd);let s=await o.readlink();return e?s:s?.fullpath()}readlinkSync(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o.withFileTypes,o=this.cwd);let s=o.readlinkSync();return e?s:s?.fullpath()}async realpath(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o.withFileTypes,o=this.cwd);let s=await o.realpath();return e?s:s?.fullpath()}realpathSync(o=this.cwd,{withFileTypes:e}={withFileTypes:!1}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o.withFileTypes,o=this.cwd);let s=o.realpathSync();return e?s:s?.fullpath()}async walk(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:a}=e,n=[];(!r||r(o))&&n.push(s?o:o.fullpath());let c=new Set,_=(O,g)=>{c.add(O),O.readdirCB((w,z)=>{if(w)return g(w);let K=z.length;if(!K)return g();let q=()=>{--K===0&&g()};for(let v of z)(!r||r(v))&&n.push(s?v:v.fullpath()),i&&v.isSymbolicLink()?v.realpath().then(p=>p?.isUnknown()?p.lstat():p).then(p=>p?.shouldWalk(c,a)?_(p,q):q()):v.shouldWalk(c,a)?_(v,q):q()},!0)},d=o;return new Promise((O,g)=>{_(d,w=>{if(w)return g(w);O(n)})})}walkSync(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:a}=e,n=[];(!r||r(o))&&n.push(s?o:o.fullpath());let c=new Set([o]);for(let _ of c){let d=_.readdirSync();for(let O of d){(!r||r(O))&&n.push(s?O:O.fullpath());let g=O;if(O.isSymbolicLink()){if(!(i&&(g=O.realpathSync())))continue;g.isUnknown()&&g.lstatSync()}g.shouldWalk(c,a)&&c.add(g)}}return n}[Symbol.asyncIterator](){return this.iterate()}iterate(o=this.cwd,e={}){return typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd),this.stream(o,e)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:a}=e;(!r||r(o))&&(yield s?o:o.fullpath());let n=new Set([o]);for(let c of n){let _=c.readdirSync();for(let d of _){(!r||r(d))&&(yield s?d:d.fullpath());let O=d;if(d.isSymbolicLink()){if(!(i&&(O=d.realpathSync())))continue;O.isUnknown()&&O.lstatSync()}O.shouldWalk(n,a)&&n.add(O)}}}stream(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:a}=e,n=new st({objectMode:!0});(!r||r(o))&&n.write(s?o:o.fullpath());let c=new Set,_=[o],d=0,O=()=>{let g=!1;for(;!g;){let w=_.shift();if(!w){d===0&&n.end();return}d++,c.add(w);let z=(q,v,p=!1)=>{if(q)return n.emit("error",q);if(i&&!p){let m=[];for(let l of v)l.isSymbolicLink()&&m.push(l.realpath().then(x=>x?.isUnknown()?x.lstat():x));if(m.length){Promise.all(m).then(()=>z(null,v,!0));return}}for(let m of v)m&&(!r||r(m))&&(n.write(s?m:m.fullpath())||(g=!0));d--;for(let m of v){let l=m.realpathCached()||m;l.shouldWalk(c,a)&&_.push(l)}g&&!n.flowing?n.once("drain",O):K||O()},K=!0;w.readdirCB(z,!0),K=!1}};return O(),n}streamSync(o=this.cwd,e={}){typeof o=="string"?o=this.cwd.resolve(o):o instanceof so||(e=o,o=this.cwd);let{withFileTypes:s=!0,follow:i=!1,filter:r,walkFilter:a}=e,n=new st({objectMode:!0}),c=new Set;(!r||r(o))&&n.write(s?o:o.fullpath());let _=[o],d=0,O=()=>{let g=!1;for(;!g;){let w=_.shift();if(!w){d===0&&n.end();return}d++,c.add(w);let z=w.readdirSync();for(let K of z)(!r||r(K))&&(n.write(s?K:K.fullpath())||(g=!0));d--;for(let K of z){let q=K;if(K.isSymbolicLink()){if(!(i&&(q=K.realpathSync())))continue;q.isUnknown()&&q.lstatSync()}q.shouldWalk(c,a)&&_.push(q)}}g&&!n.flowing&&n.once("drain",O)};return O(),n}chdir(o=this.cwd){let e=this.cwd;this.cwd=typeof o=="string"?this.cwd.resolve(o):o,this.cwd[Kl](e)}},Ft=class extends qs{sep="\\";constructor(o=process.cwd(),e={}){let{nocase:s=!0}=e;super(o,St.win32,"\\",{...e,nocase:s}),this.nocase=s;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(o){return St.win32.parse(o).root.toUpperCase()}newRoot(o){return new bs(this.rootPath,Fo,void 0,this.roots,this.nocase,this.childrenCache(),{fs:o})}isAbsolute(o){return o.startsWith("/")||o.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(o)}},Mt=class extends qs{sep="/";constructor(o=process.cwd(),e={}){let{nocase:s=!1}=e;super(o,St.posix,"/",{...e,nocase:s}),this.nocase=s}parseRootPath(o){return"/"}newRoot(o){return new vs(this.rootPath,Fo,void 0,this.roots,this.nocase,this.childrenCache(),{fs:o})}isAbsolute(o){return o.startsWith("/")}},we=class extends Mt{constructor(o=process.cwd(),e={}){let{nocase:s=!0}=e;super(o,{...e,nocase:s})}},Nw=process.platform==="win32"?bs:vs,kl=process.platform==="win32"?Ft:process.platform==="darwin"?we:Mt;var gg=t=>t.length>=1,Og=t=>t.length>=1,Vt=class t{#o;#t;#r;length;#s;#a;#f;#l;#_;#n;#c=!0;constructor(o,e,s,i){if(!gg(o))throw new TypeError("empty pattern list");if(!Og(e))throw new TypeError("empty glob list");if(e.length!==o.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=o.length,s<0||s>=this.length)throw new TypeError("index out of range");if(this.#o=o,this.#t=e,this.#r=s,this.#s=i,this.#r===0){if(this.isUNC()){let[r,a,n,c,..._]=this.#o,[d,O,g,w,...z]=this.#t;_[0]===""&&(_.shift(),z.shift());let K=[r,a,n,c,""].join("/"),q=[d,O,g,w,""].join("/");this.#o=[K,..._],this.#t=[q,...z],this.length=this.#o.length}else if(this.isDrive()||this.isAbsolute()){let[r,...a]=this.#o,[n,...c]=this.#t;a[0]===""&&(a.shift(),c.shift());let _=r+"/",d=n+"/";this.#o=[_,...a],this.#t=[d,...c],this.length=this.#o.length}}}pattern(){return this.#o[this.#r]}isString(){return typeof this.#o[this.#r]=="string"}isGlobstar(){return this.#o[this.#r]===oo}isRegExp(){return this.#o[this.#r]instanceof RegExp}globString(){return this.#f=this.#f||(this.#r===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#r).join("/"))}hasMore(){return this.length>this.#r+1}rest(){return this.#a!==void 0?this.#a:this.hasMore()?(this.#a=new t(this.#o,this.#t,this.#r+1,this.#s),this.#a.#n=this.#n,this.#a.#_=this.#_,this.#a.#l=this.#l,this.#a):this.#a=null}isUNC(){let o=this.#o;return this.#_!==void 0?this.#_:this.#_=this.#s==="win32"&&this.#r===0&&o[0]===""&&o[1]===""&&typeof o[2]=="string"&&!!o[2]&&typeof o[3]=="string"&&!!o[3]}isDrive(){let o=this.#o;return this.#l!==void 0?this.#l:this.#l=this.#s==="win32"&&this.#r===0&&this.length>1&&typeof o[0]=="string"&&/^[a-z]:$/i.test(o[0])}isAbsolute(){let o=this.#o;return this.#n!==void 0?this.#n:this.#n=o[0]===""&&o.length>1||this.isDrive()||this.isUNC()}root(){let o=this.#o[0];return typeof o=="string"&&this.isAbsolute()&&this.#r===0?o:""}checkFollowGlobstar(){return!(this.#r===0||!this.isGlobstar()||!this.#c)}markFollowGlobstar(){return this.#r===0||!this.isGlobstar()||!this.#c?!1:(this.#c=!1,!0)}};var wg=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Et=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(o,{nobrace:e,nocase:s,noext:i,noglobstar:r,platform:a=wg}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=a,this.mmopts={dot:!0,nobrace:e,nocase:s,noext:i,noglobstar:r,optimizationLevel:2,platform:a,nocomment:!0,nonegate:!0};for(let n of o)this.add(n)}add(o){let e=new mo(o,this.mmopts);for(let s=0;s<e.set.length;s++){let i=e.set[s],r=e.globParts[s];if(!i||!r)throw new Error("invalid pattern object");for(;i[0]==="."&&r[0]===".";)i.shift(),r.shift();let a=new Vt(i,r,0,this.platform),n=new mo(a.globString(),this.mmopts),c=r[r.length-1]==="**",_=a.isAbsolute();_?this.absolute.push(n):this.relative.push(n),c&&(_?this.absoluteChildren.push(n):this.relativeChildren.push(n))}}ignored(o){let e=o.fullpath(),s=`${e}/`,i=o.relative()||".",r=`${i}/`;for(let a of this.relative)if(a.match(i)||a.match(r))return!0;for(let a of this.absolute)if(a.match(e)||a.match(s))return!0;return!1}childrenIgnored(o){let e=o.fullpath()+"/",s=(o.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(s))return!0;for(let i of this.absoluteChildren)if(i.match(e))return!0;return!1}};var er=class t{store;constructor(o=new Map){this.store=o}copy(){return new t(new Map(this.store))}hasWalked(o,e){return this.store.get(o.fullpath())?.has(e.globString())}storeWalked(o,e){let s=o.fullpath(),i=this.store.get(s);i?i.add(e.globString()):this.store.set(s,new Set([e.globString()]))}},sr=class{store=new Map;add(o,e,s){let i=(e?2:0)|(s?1:0),r=this.store.get(o);this.store.set(o,r===void 0?i:i&r)}entries(){return[...this.store.entries()].map(([o,e])=>[o,!!(e&2),!!(e&1)])}},ir=class{store=new Map;add(o,e){if(!o.canReaddir())return;let s=this.store.get(o);s?s.find(i=>i.globString()===e.globString())||s.push(e):this.store.set(o,[e])}get(o){let e=this.store.get(o);if(!e)throw new Error("attempting to walk unknown path");return e}entries(){return this.keys().map(o=>[o,this.store.get(o)])}keys(){return[...this.store.keys()].filter(o=>o.canReaddir())}},de=class t{hasWalkedCache;matches=new sr;subwalks=new ir;patterns;follow;dot;opts;constructor(o,e){this.opts=o,this.follow=!!o.follow,this.dot=!!o.dot,this.hasWalkedCache=e?e.copy():new er}processPatterns(o,e){this.patterns=e;let s=e.map(i=>[o,i]);for(let[i,r]of s){this.hasWalkedCache.storeWalked(i,r);let a=r.root(),n=r.isAbsolute()&&this.opts.absolute!==!1;if(a){i=i.resolve(a==="/"&&this.opts.root!==void 0?this.opts.root:a);let O=r.rest();if(O)r=O;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let c,_,d=!1;for(;typeof(c=r.pattern())=="string"&&(_=r.rest());)i=i.resolve(c),r=_,d=!0;if(c=r.pattern(),_=r.rest(),d){if(this.hasWalkedCache.hasWalked(i,r))continue;this.hasWalkedCache.storeWalked(i,r)}if(typeof c=="string"){let O=c===".."||c===""||c===".";this.matches.add(i.resolve(c),n,O);continue}else if(c===oo){(!i.isSymbolicLink()||this.follow||r.checkFollowGlobstar())&&this.subwalks.add(i,r);let O=_?.pattern(),g=_?.rest();if(!_||(O===""||O===".")&&!g)this.matches.add(i,n,O===""||O===".");else if(O===".."){let w=i.parent||i;g?this.hasWalkedCache.hasWalked(w,g)||this.subwalks.add(w,g):this.matches.add(w,n,!0)}}else c instanceof RegExp&&this.subwalks.add(i,r)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new t(this.opts,this.hasWalkedCache)}filterEntries(o,e){let s=this.subwalks.get(o),i=this.child();for(let r of e)for(let a of s){let n=a.isAbsolute(),c=a.pattern(),_=a.rest();c===oo?i.testGlobstar(r,a,_,n):c instanceof RegExp?i.testRegExp(r,c,_,n):i.testString(r,c,_,n)}return i}testGlobstar(o,e,s,i){if((this.dot||!o.name.startsWith("."))&&(e.hasMore()||this.matches.add(o,i,!1),o.canReaddir()&&(this.follow||!o.isSymbolicLink()?this.subwalks.add(o,e):o.isSymbolicLink()&&(s&&e.checkFollowGlobstar()?this.subwalks.add(o,s):e.markFollowGlobstar()&&this.subwalks.add(o,e)))),s){let r=s.pattern();if(typeof r=="string"&&r!==".."&&r!==""&&r!==".")this.testString(o,r,s.rest(),i);else if(r===".."){let a=o.parent||o;this.subwalks.add(a,s)}else r instanceof RegExp&&this.testRegExp(o,r,s.rest(),i)}}testRegExp(o,e,s,i){e.test(o.name)&&(s?this.subwalks.add(o,s):this.matches.add(o,i,!1))}testString(o,e,s,i){o.isNamed(e)&&(s?this.subwalks.add(o,s):this.matches.add(o,i,!1))}};var dg=(t,o)=>typeof t=="string"?new Et([t],o):Array.isArray(t)?new Et(t,o):t,ps=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#o=[];#t;#r;signal;maxDepth;includeChildMatches;constructor(o,e,s){if(this.patterns=o,this.path=e,this.opts=s,this.#r=!s.posix&&s.platform==="win32"?"\\":"/",this.includeChildMatches=s.includeChildMatches!==!1,(s.ignore||!this.includeChildMatches)&&(this.#t=dg(s.ignore??[],s),!this.includeChildMatches&&typeof this.#t.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=s.maxDepth||1/0,s.signal&&(this.signal=s.signal,this.signal.addEventListener("abort",()=>{this.#o.length=0}))}#s(o){return this.seen.has(o)||!!this.#t?.ignored?.(o)}#a(o){return!!this.#t?.childrenIgnored?.(o)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let o;for(;!this.paused&&(o=this.#o.shift());)o()}onResume(o){this.signal?.aborted||(this.paused?this.#o.push(o):o())}async matchCheck(o,e){if(e&&this.opts.nodir)return;let s;if(this.opts.realpath){if(s=o.realpathCached()||await o.realpath(),!s)return;o=s}let r=o.isUnknown()||this.opts.stat?await o.lstat():o;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let a=await r.realpath();a&&(a.isUnknown()||this.opts.stat)&&await a.lstat()}return this.matchCheckTest(r,e)}matchCheckTest(o,e){return o&&(this.maxDepth===1/0||o.depth()<=this.maxDepth)&&(!e||o.canReaddir())&&(!this.opts.nodir||!o.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!o.isSymbolicLink()||!o.realpathCached()?.isDirectory())&&!this.#s(o)?o:void 0}matchCheckSync(o,e){if(e&&this.opts.nodir)return;let s;if(this.opts.realpath){if(s=o.realpathCached()||o.realpathSync(),!s)return;o=s}let r=o.isUnknown()||this.opts.stat?o.lstatSync():o;if(this.opts.follow&&this.opts.nodir&&r?.isSymbolicLink()){let a=r.realpathSync();a&&(a?.isUnknown()||this.opts.stat)&&a.lstatSync()}return this.matchCheckTest(r,e)}matchFinish(o,e){if(this.#s(o))return;if(!this.includeChildMatches&&this.#t?.add){let r=`${o.relativePosix()}/**`;this.#t.add(r)}let s=this.opts.absolute===void 0?e:this.opts.absolute;this.seen.add(o);let i=this.opts.mark&&o.isDirectory()?this.#r:"";if(this.opts.withFileTypes)this.matchEmit(o);else if(s){let r=this.opts.posix?o.fullpathPosix():o.fullpath();this.matchEmit(r+i)}else{let r=this.opts.posix?o.relativePosix():o.relative(),a=this.opts.dotRelative&&!r.startsWith(".."+this.#r)?"."+this.#r:"";this.matchEmit(r?a+r+i:"."+i)}}async match(o,e,s){let i=await this.matchCheck(o,s);i&&this.matchFinish(i,e)}matchSync(o,e,s){let i=this.matchCheckSync(o,s);i&&this.matchFinish(i,e)}walkCB(o,e,s){this.signal?.aborted&&s(),this.walkCB2(o,e,new de(this.opts),s)}walkCB2(o,e,s,i){if(this.#a(o))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(o,e,s,i));return}s.processPatterns(o,e);let r=1,a=()=>{--r===0&&i()};for(let[n,c,_]of s.matches.entries())this.#s(n)||(r++,this.match(n,c,_).then(()=>a()));for(let n of s.subwalkTargets()){if(this.maxDepth!==1/0&&n.depth()>=this.maxDepth)continue;r++;let c=n.readdirCached();n.calledReaddir()?this.walkCB3(n,c,s,a):n.readdirCB((_,d)=>this.walkCB3(n,d,s,a),!0)}a()}walkCB3(o,e,s,i){s=s.filterEntries(o,e);let r=1,a=()=>{--r===0&&i()};for(let[n,c,_]of s.matches.entries())this.#s(n)||(r++,this.match(n,c,_).then(()=>a()));for(let[n,c]of s.subwalks.entries())r++,this.walkCB2(n,c,s.child(),a);a()}walkCBSync(o,e,s){this.signal?.aborted&&s(),this.walkCB2Sync(o,e,new de(this.opts),s)}walkCB2Sync(o,e,s,i){if(this.#a(o))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(o,e,s,i));return}s.processPatterns(o,e);let r=1,a=()=>{--r===0&&i()};for(let[n,c,_]of s.matches.entries())this.#s(n)||this.matchSync(n,c,_);for(let n of s.subwalkTargets()){if(this.maxDepth!==1/0&&n.depth()>=this.maxDepth)continue;r++;let c=n.readdirSync();this.walkCB3Sync(n,c,s,a)}a()}walkCB3Sync(o,e,s,i){s=s.filterEntries(o,e);let r=1,a=()=>{--r===0&&i()};for(let[n,c,_]of s.matches.entries())this.#s(n)||this.matchSync(n,c,_);for(let[n,c]of s.subwalks.entries())r++,this.walkCB2Sync(n,c,s.child(),a);a()}},ye=class extends ps{matches=new Set;constructor(o,e,s){super(o,e,s)}matchEmit(o){this.matches.add(o)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((o,e)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?e(this.signal.reason):o(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},he=class extends ps{results;constructor(o,e,s){super(o,e,s),this.results=new st({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(o){this.results.write(o),this.results.flowing||this.pause()}stream(){let o=this.path;return o.isUnknown()?o.lstat().then(()=>{this.walkCB(o,this.patterns,()=>this.results.end())}):this.walkCB(o,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};var yg=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",qo=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(o,e){if(!e)throw new TypeError("glob options required");if(this.withFileTypes=!!e.withFileTypes,this.signal=e.signal,this.follow=!!e.follow,this.dot=!!e.dot,this.dotRelative=!!e.dotRelative,this.nodir=!!e.nodir,this.mark=!!e.mark,e.cwd?(e.cwd instanceof URL||e.cwd.startsWith("file://"))&&(e.cwd=(0,Gl.fileURLToPath)(e.cwd)):this.cwd="",this.cwd=e.cwd||"",this.root=e.root,this.magicalBraces=!!e.magicalBraces,this.nobrace=!!e.nobrace,this.noext=!!e.noext,this.realpath=!!e.realpath,this.absolute=e.absolute,this.includeChildMatches=e.includeChildMatches!==!1,this.noglobstar=!!e.noglobstar,this.matchBase=!!e.matchBase,this.maxDepth=typeof e.maxDepth=="number"?e.maxDepth:1/0,this.stat=!!e.stat,this.ignore=e.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof o=="string"&&(o=[o]),this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||e.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(o=o.map(c=>c.replace(/\\/g,"/"))),this.matchBase){if(e.noglobstar)throw new TypeError("base matching requires globstar");o=o.map(c=>c.includes("/")?c:`./**/${c}`)}if(this.pattern=o,this.platform=e.platform||yg,this.opts={...e,platform:this.platform},e.scurry){if(this.scurry=e.scurry,e.nocase!==void 0&&e.nocase!==e.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let c=e.platform==="win32"?Ft:e.platform==="darwin"?we:e.platform?Mt:kl;this.scurry=new c(this.cwd,{nocase:e.nocase,fs:e.fs})}this.nocase=this.scurry.nocase;let s=this.platform==="darwin"||this.platform==="win32",i={...e,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:s,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},r=this.pattern.map(c=>new mo(c,i)),[a,n]=r.reduce((c,_)=>(c[0].push(..._.set),c[1].push(..._.globParts),c),[[],[]]);this.patterns=a.map((c,_)=>{let d=n[_];if(!d)throw new Error("invalid pattern object");return new Vt(c,d,0,this.platform)})}async walk(){return[...await new ye(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new ye(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new he(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new he(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};var rr=(t,o={})=>{Array.isArray(t)||(t=[t]);for(let e of t)if(new mo(e,o).hasMagic())return!0;return!1};function Ns(t,o={}){return new qo(t,o).streamSync()}function bl(t,o={}){return new qo(t,o).stream()}function vl(t,o={}){return new qo(t,o).walkSync()}async function Wl(t,o={}){return new qo(t,o).walk()}function Ss(t,o={}){return new qo(t,o).iterateSync()}function ql(t,o={}){return new qo(t,o).iterate()}var hg=Ns,fg=Object.assign(bl,{sync:Ns}),zg=Ss,Kg=Object.assign(ql,{sync:Ss}),kg=Object.assign(vl,{stream:Ns,iterate:Ss}),Cs=Object.assign(Wl,{glob:Wl,globSync:vl,sync:kg,globStream:bl,stream:fg,globStreamSync:Ns,streamSync:hg,globIterate:ql,iterate:Kg,globIterateSync:Ss,iterateSync:zg,Glob:qo,hasMagic:rr,escape:vt,unescape:Wo});Cs.glob=Cs;var Sl=I(require("node:assert")),Xt=I(require("node:fs/promises")),no=I(require("node:path"));var Nl=I(pl());function Fs(t){return Cl(t)||Cl((0,Nl.default)(t))||"app"}function Cl(t){return t.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}async function Fl(t){let{spawnAsync:o,sourceAppPath:e}=t,s=no.default.join(t.workingDirectory,"extracted");if(await Xt.default.mkdir(s,{recursive:!0}),e.endsWith(".zip")||e.endsWith(".ipa"))await o("unzip",[e,"-d",s]);else if(e.endsWith(".tar.gz"))await o("tar",["-xzf",e,"-C",s]);else if(e.endsWith(".app")){let a=no.default.basename(e);await Gt(e,no.default.join(s,a))}else throw new Error("Unsupported file type. Please provide a .zip, .tar.gz, or .app file.");let r=(await Cs("{Payload/*.app,*.app}",{cwd:s,absolute:!0}))[0];return(0,Sl.default)(r,`Failed to find the .app directory in the extracted artifact: ${s}`),r}async function Ml(t,o){let{dir:e,name:s}=no.default.parse(o),i=Fs(t.name),r=no.default.join(e,`${i}.app`);return await Xt.default.rename(no.default.join(e,`${s}.app`),r),await Xt.default.rename(no.default.join(r,s),no.default.join(r,i)),r}async function Vl(t,o){let e=no.default.resolve(t.workingDirectory,no.default.basename(o));return await Gt(o,e),e}async function El(t,o){let{spawnAsync:e,workingDirectory:s}=t;await Xt.default.mkdir(no.default.join(s,"Payload"),{recursive:!0}),await Xt.default.rename(o,no.default.join(s,"Payload",no.default.basename(o)));let i=no.default.resolve(s,"repacked.ipa");return await e("zip",["-r",i,"Payload"],{cwd:s}),i}function Xl(t,o,e){let s=e.keychainPath?`keychain_path: "${e.keychainPath}",`:"",i;if(typeof e.provisioningProfile=="string")i=`provisioning_profile: "${e.provisioningProfile}",`;else if(typeof e.provisioningProfile=="object"&&!Array.isArray(e.provisioningProfile)){let a="";for(let[n,c]of Object.entries(e.provisioningProfile))a+=` "${n}" => "${c}",
21
21
  `;i=`provisioning_profile: {
22
22
  ${a}
23
23
  },`}else i="";return`lane :${t} do
@@ -28,7 +28,7 @@ ${a}
28
28
  ${i}
29
29
  )
30
30
  end
31
- `.replace(/^\s*[\r\n]/gm,"")}var Sr=I(sx()),ai=I(require("node:assert")),Jt=I(require("node:fs/promises")),ri=I(require("node:path"));async function ix({config:t,infoPlistPath:o,originalAppId:e,options:s}){let i=t.ios?.bundleIdentifier;(0,ai.default)(i,"The `bundleIdentifier` must be specified in the `ios` config.");let r=Array.isArray(t.scheme)?t.scheme[0]:t.scheme;await Fr(o,s,a=>{let n=a.CFBundleURLTypes.slice();for(let d of n)if(Array.isArray(d.CFBundleURLSchemes)){let g=d.CFBundleURLSchemes.map(O=>{let w=O.replace(e,i).replace(/^exp\+.+$/g,`exp+${te(t.slug)}`);return r&&(w=O.replace(/^myapp$/g,r)),w});d.CFBundleURLSchemes=g}let c={...a,CFBundleDisplayName:t.name,CFBundleName:t.name,CFBundleExecutable:Ss(t.name),CFBundleIdentifier:i},_=a.NSUserActivityTypes?.map(d=>d.replace(e,i));return _&&(c.NSUserActivityTypes=_),c})}async function rx(t,o,e,s){e&&await Fr(o,s,i=>{let r=t.updates?.url;return(0,ai.default)(r),{...i,EXUpdatesEnabled:!0,EXUpdatesRuntimeVersion:e,EXUpdatesURL:r}})}async function ax(t,o){let e;return await Fr(t,o,s=>(e=s.CFBundleIdentifier,s)),(0,ai.default)(e,"Expected `CFBundleIdentifier` to be present in Info.plist"),e}async function nx({appWorkingDirectory:t,assetRoot:o,bundleOutputPath:e}){await Promise.all([Jt.default.rm(ri.default.join(t,"main.jsbundle"),{force:!0}),Jt.default.rm(ri.default.join(t,"assets"),{recursive:!0,force:!0})]),await Jt.default.copyFile(e,ri.default.join(t,"main.jsbundle")),await ss(o)&&await Gt(o,t)}async function Fr(t,o,e){let{spawnAsync:s}=o;await s("plutil",["-convert","xml1",t]);let i=await Jt.default.readFile(t,"utf8"),r=await Sr.default.parse(i),a=e(r),n=Sr.default.build(a);await Jt.default.writeFile(t,n),await s("plutil",["-convert","binary1",t])}async function lx(t){let o=await ee(t),{workingDirectory:e,logger:s}=o;await lt.default.mkdir(e,{recursive:!0});let{exp:i}=us(o.projectRoot,{isPublicConfig:!0,skipSDKVersionRequirement:!0});(0,ni.default)(i.ios?.bundleIdentifier,"Expected app ID (`ios.bundleIdentifier`) to be defined in app.json");let r=cs(o.projectRoot),a=r?await ls(o,i):null;r&&s.info(cx.default.dim(`Resolved runtime version: ${a}`)),s.time(`Extracting artifact from ${o.sourceAppPath}`);let n=await Nl(o);n=await Sl(i,n);let c=Do.default.join(n,"Info.plist"),_=await ax(c,o);if(s.timeEnd(`Extracting artifact from ${o.sourceAppPath}`),o.exportEmbedOptions!=null){s.time("Generating bundle");let{assetRoot:O,bundleOutputPath:w}=await _s(i,o);if(s.timeEnd("Generating bundle"),s.time("Adding bundled resources"),await nx({appWorkingDirectory:n,assetRoot:O,bundleOutputPath:w}),s.timeEnd("Adding bundled resources"),r){s.time("Generating 'app.manifest' for expo-updates");let z=await ns(o),K=Do.default.join(n,"EXUpdates.bundle");(0,ni.default)(await ss(K),"Expected EXUpdates.bundle directory to exist"),await lt.default.copyFile(z,Do.default.join(K,Do.default.basename(z))),s.timeEnd("Generating 'app.manifest' for expo-updates")}}s.time("Updating Info.plist"),await ix({config:i,infoPlistPath:c,originalAppId:_,options:o}),s.timeEnd("Updating Info.plist"),s.time("Updating Expo.plist"),await rx(i,Do.default.join(n,"Expo.plist"),a,o),s.timeEnd("Updating Expo.plist"),s.time("Generating app.config");let d=await as(o,i);await lt.default.copyFile(d,Do.default.join(n,"EXConstants.bundle","app.config")),s.timeEnd("Generating app.config"),s.time("Creating updated artifact");let g;if(o.outputPath.endsWith(".app")?g=await Fl(o,n):g=await Ml(o,n),s.timeEnd("Creating updated artifact"),o.iosSigningOptions&&((0,ni.default)(g.endsWith(".ipa"),"Signing is only supported for .ipa files"),s.time(`Resigning the IPA at ${g}`),await mO(g,o.iosSigningOptions,o),s.timeEnd(`Resigning the IPA at ${g}`)),await lt.default.rename(g,o.outputPath),!o.skipWorkingDirCleanup)try{await lt.default.rm(e,{recursive:!0})}catch{}return o.outputPath}async function mO(t,o,e){let s=await ee(e),{spawnAsync:i}=s,r=Do.default.join(s.workingDirectory,"fastlane");await lt.default.mkdir(r,{recursive:!0});let a=Vl("resign_ipa",t,o);await lt.default.writeFile(Do.default.join(r,"Fastfile"),a),await i("fastlane",["resign_ipa"],{cwd:r,env:s.env})}0&&(module.exports={ConsoleLogger,repackAppAndroidAsync,repackAppIosAsync});
31
+ `.replace(/^\s*[\r\n]/gm,"")}var Fr=I(rx()),ni=I(require("node:assert")),Jt=I(require("node:fs/promises")),ai=I(require("node:path"));async function ax({config:t,infoPlistPath:o,originalAppId:e,options:s}){let i=t.ios?.bundleIdentifier;(0,ni.default)(i,"The `bundleIdentifier` must be specified in the `ios` config.");let r=Array.isArray(t.scheme)?t.scheme[0]:t.scheme;await Mr(o,s,a=>{let n=a.CFBundleURLTypes.slice();for(let d of n)if(Array.isArray(d.CFBundleURLSchemes)){let O=d.CFBundleURLSchemes.map(g=>{let w=g.replace(e,i).replace(/^exp\+.+$/g,`exp+${te(t.slug)}`);return r&&(w=g.replace(/^myapp$/g,r)),w});d.CFBundleURLSchemes=O}let c={...a,CFBundleDisplayName:t.name,CFBundleName:t.name,CFBundleExecutable:Fs(t.name),CFBundleIdentifier:i},_=a.NSUserActivityTypes?.map(d=>d.replace(e,i));return _&&(c.NSUserActivityTypes=_),c})}async function nx(t,o,e,s){e&&await Mr(o,s,i=>{let r=t.updates?.url;return(0,ni.default)(r),{...i,EXUpdatesEnabled:!0,EXUpdatesRuntimeVersion:e,EXUpdatesURL:r}})}async function cx(t,o){let e;return await Mr(t,o,s=>(e=s.CFBundleIdentifier,s)),(0,ni.default)(e,"Expected `CFBundleIdentifier` to be present in Info.plist"),e}async function lx({appWorkingDirectory:t,assetRoot:o,bundleOutputPath:e}){await Promise.all([Jt.default.rm(ai.default.join(t,"main.jsbundle"),{force:!0}),Jt.default.rm(ai.default.join(t,"assets"),{recursive:!0,force:!0})]),await Jt.default.copyFile(e,ai.default.join(t,"main.jsbundle")),await ss(o)&&await Gt(o,t)}async function Mr(t,o,e){let{spawnAsync:s}=o;await s("plutil",["-convert","xml1",t]);let i=await Jt.default.readFile(t,"utf8"),r=await Fr.default.parse(i),a=e(r),n=Fr.default.build(a);await Jt.default.writeFile(t,n),await s("plutil",["-convert","binary1",t])}async function _x(t){let o=await ee(t),{workingDirectory:e,logger:s}=o;await lt.default.mkdir(e,{recursive:!0});let{exp:i}=us(o.projectRoot,{isPublicConfig:!0,skipSDKVersionRequirement:!0});(0,ci.default)(i.ios?.bundleIdentifier,"Expected app ID (`ios.bundleIdentifier`) to be defined in app.json");let r=cs(o.projectRoot),a=r?await ls(o,i):null;r&&s.info(ux.default.dim(`Resolved runtime version: ${a}`)),s.time(`Extracting artifact from ${o.sourceAppPath}`);let n=await Fl(o);n=await Ml(i,n);let c=Do.default.join(n,"Info.plist"),_=await cx(c,o);if(s.timeEnd(`Extracting artifact from ${o.sourceAppPath}`),await xs({appWorkingDirectory:n,options:o})){s.time("Generating bundle");let{assetRoot:w,bundleOutputPath:z}=await _s(i,o);if(s.timeEnd("Generating bundle"),s.time("Adding bundled resources"),await lx({appWorkingDirectory:n,assetRoot:w,bundleOutputPath:z}),s.timeEnd("Adding bundled resources"),r){s.time("Generating 'app.manifest' for expo-updates");let K=await ns(o),q=Do.default.join(n,"EXUpdates.bundle");(0,ci.default)(await ss(q),"Expected EXUpdates.bundle directory to exist"),await lt.default.copyFile(K,Do.default.join(q,Do.default.basename(K))),s.timeEnd("Generating 'app.manifest' for expo-updates")}}s.time("Updating Info.plist"),await ax({config:i,infoPlistPath:c,originalAppId:_,options:o}),s.timeEnd("Updating Info.plist"),s.time("Updating Expo.plist"),await nx(i,Do.default.join(n,"Expo.plist"),a,o),s.timeEnd("Updating Expo.plist"),s.time("Generating app.config");let O=await as(o,i);await lt.default.copyFile(O,Do.default.join(n,"EXConstants.bundle","app.config")),s.timeEnd("Generating app.config"),s.time("Creating updated artifact");let g;if(o.outputPath.endsWith(".app")?g=await Vl(o,n):g=await El(o,n),s.timeEnd("Creating updated artifact"),o.iosSigningOptions&&((0,ci.default)(g.endsWith(".ipa"),"Signing is only supported for .ipa files"),s.time(`Resigning the IPA at ${g}`),await OO(g,o.iosSigningOptions,o),s.timeEnd(`Resigning the IPA at ${g}`)),await lt.default.rename(g,o.outputPath),!o.skipWorkingDirCleanup)try{await lt.default.rm(e,{recursive:!0})}catch{}return o.outputPath}async function OO(t,o,e){let s=await ee(e),{spawnAsync:i}=s,r=Do.default.join(s.workingDirectory,"fastlane");await lt.default.mkdir(r,{recursive:!0});let a=Xl("resign_ipa",t,o);await lt.default.writeFile(Do.default.join(r,"Fastfile"),a),await i("fastlane",["resign_ipa"],{cwd:r,env:s.env})}0&&(module.exports={ConsoleLogger,repackAppAndroidAsync,repackAppIosAsync});
32
32
  /*! Bundled license information:
33
33
 
34
34
  sax/lib/sax.js: