xmlbuilder2
Version:
An XML builder for node.js
2 lines • 486 kB
JavaScript
/*! For license information please see xmlbuilder2.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.xmlbuilder2=t():e.xmlbuilder2=t()}(this,()=>(()=>{var e={34:(e,t,r)=>{"use strict";var n=r(4901);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},63:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbortSignalImpl=void 0;const n=r(9576),o=r(6498);class i extends n.EventTargetImpl{_abortedFlag=!1;_abortAlgorithms=new Set;constructor(){super()}get aborted(){return this._abortedFlag}get onabort(){return(0,o.event_getterEventHandlerIDLAttribute)(this,"onabort")}set onabort(e){(0,o.event_setterEventHandlerIDLAttribute)(this,"onabort",e)}static _create(){return new i}}t.AbortSignalImpl=i},76:e=>{"use strict";e.exports=Function.prototype.call},79:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeWalkerImpl=void 0;const n=r(6775),o=r(2810),i=r(6498);class a extends o.TraverserImpl{_current;constructor(e,t){super(e),this._current=t}get currentNode(){return this._current}set currentNode(e){this._current=e}parentNode(){let e=this._current;for(;null!==e&&e!==this._root;)if(e=e._parent,null!==e&&(0,i.traversal_filter)(this,e)===n.FilterResult.Accept)return this._current=e,e;return null}firstChild(){return(0,i.treeWalker_traverseChildren)(this,!0)}lastChild(){return(0,i.treeWalker_traverseChildren)(this,!1)}nextSibling(){return(0,i.treeWalker_traverseSiblings)(this,!0)}previousNode(){let e=this._current;for(;e!==this._root;){let t=e._previousSibling;for(;t;){e=t;let r=(0,i.traversal_filter)(this,e);for(;r!==n.FilterResult.Reject&&e._lastChild;)e=e._lastChild,r=(0,i.traversal_filter)(this,e);if(r===n.FilterResult.Accept)return this._current=e,e;t=e._previousSibling}if(e===this._root||null===e._parent)return null;if(e=e._parent,(0,i.traversal_filter)(this,e)===n.FilterResult.Accept)return this._current=e,e}return null}previousSibling(){return(0,i.treeWalker_traverseSiblings)(this,!1)}nextNode(){let e=this._current,t=n.FilterResult.Accept;for(;;){for(;t!==n.FilterResult.Reject&&e._firstChild;)if(e=e._firstChild,t=(0,i.traversal_filter)(this,e),t===n.FilterResult.Accept)return this._current=e,e;let r=null,o=e;for(;null!==o;){if(o===this._root)return null;if(r=o._nextSibling,null!==r){e=r;break}o=o._parent}if(t=(0,i.traversal_filter)(this,e),t===n.FilterResult.Accept)return this._current=e,e}}static _create(e,t){return new a(e,t)}}t.TreeWalkerImpl=a},81:(e,t,r)=>{"use strict";var n=r(9565),o=r(9306),i=r(8551),a=r(6823),s=r(851),u=TypeError;e.exports=function(e,t){var r=arguments.length<2?s(e):t;if(o(r))return i(n(r,e));throw new u(a(e)+" is not iterable")}},103:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLReader=t.JSONReader=t.ObjectReader=t.XMLReader=void 0;var n=r(4601);Object.defineProperty(t,"XMLReader",{enumerable:!0,get:function(){return n.XMLReader}});var o=r(7203);Object.defineProperty(t,"ObjectReader",{enumerable:!0,get:function(){return o.ObjectReader}});var i=r(5910);Object.defineProperty(t,"JSONReader",{enumerable:!0,get:function(){return i.JSONReader}});var a=r(1915);Object.defineProperty(t,"YAMLReader",{enumerable:!0,get:function(){return a.YAMLReader}})},127:(e,t,r)=>{"use strict";var n=r(5388),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new n("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==o.exec(e)||null!==i.exec(e))},construct:function(e){var t,r,n,a,s,u,l,c,f=0,d=null;if(null===(t=o.exec(e))&&(t=i.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(r,n,a));if(s=+t[4],u=+t[5],l=+t[6],t[7]){for(f=t[7].slice(0,3);f.length<3;)f+="0";f=+f}return t[9]&&(d=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(d=-d)),c=new Date(Date.UTC(r,n,a,s,u,l,f)),d&&c.setTime(c.getTime()-d),c},instanceOf:Date,represent:function(e){return e.toISOString()}})},211:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.length=function(e){return e.length},t.byteLowercase=function(e){for(let t=0;t<e.length;t++){const r=e[t];r>=65&&r<=90&&(e[t]=r+32)}},t.byteUppercase=function(e){for(let t=0;t<e.length;t++){const r=e[t];r>=97&&r<=122&&(e[t]=r-32)}},t.byteCaseInsensitiveMatch=function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let n=e[r],o=t[r];if(n>=65&&n<=90&&(n+=32),o>=65&&o<=90&&(o+=32),n!==o)return!1}return!0},t.startsWith=function(e,t){let r=0;for(;;){if(r>=e.length)return!1;if(r>=t.length)return!0;if(e[r]!==t[r])return!1;r++}},t.byteLessThan=function(e,t){let r=0;for(;;){if(r>=e.length)return!1;if(r>=t.length)return!0;const n=e[r],o=t[r];if(n<o)return!0;if(n>o)return!1;r++}},t.isomorphicDecode=function(e){return String.fromCodePoint(...e)}},251:(e,t)=>{t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,l=u>>1,c=-7,f=r?o-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=n;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=l}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,u,l=8*i-o-1,c=(1<<l)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[r+p]=255&a,p+=h,a/=256,l-=8);e[r+p-h]|=128*m}},283:(e,t,r)=>{"use strict";var n=r(9504),o=r(9039),i=r(4901),a=r(9297),s=r(3724),u=r(350).CONFIGURABLE,l=r(3706),c=r(1181),f=c.enforce,d=c.get,p=String,h=Object.defineProperty,m=n("".slice),_=n("".replace),y=n([].join),v=s&&!o(function(){return 8!==h(function(){},"length",{value:8}).length}),g=String(String).split("String"),b=e.exports=function(e,t,r){"Symbol("===m(p(t),0,7)&&(t="["+_(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=f(e);return a(n,"source")||(n.source=y(g,"string"==typeof t?t:"")),e};Function.prototype.toString=b(function(){return i(this)&&d(this).source||l(this)},"toString")},298:(e,t,r)=>{"use strict";var n=r(2195),o=r(5397),i=r(8480).f,a=r(7680),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attr_setAnExistingAttributeValue=function(e,t){null===e._element?e._value=t:(0,n.element_change)(e,e._element,t)};const n=r(2701)},339:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectCache=void 0;class r{_limit;_items=new Map;constructor(e=1e3){this._limit=e}get(e){return this._items.get(e)}set(e,t){if(this._items.set(e,t),this._items.size>this._limit){const e=this._items.keys().next();e.done||this._items.delete(e.value)}}delete(e){return this._items.delete(e)}has(e){return this._items.has(e)}clear(){this._items.clear()}get size(){return this._items.size}forEach(e,t){this._items.forEach((r,n)=>e.call(t,n,r))}*keys(){yield*this._items.keys()}*values(){yield*this._items.values()}*entries(){yield*this._items.entries()}*[Symbol.iterator](){yield*this._items}get[Symbol.toStringTag](){return"ObjectCache"}}t.ObjectCache=r},350:(e,t,r)=>{"use strict";var n=r(3724),o=r(9297),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=o(i,"name"),u=s&&"something"===function(){}.name,l=s&&(!n||n&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:l}},396:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u(n.key),n)}}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r(2675),r(9463),r(2259),r(5700),r(3792),r(9572),r(2892),r(875),r(6099),r(825),r(7764),r(2781),r(2953),Object.defineProperty(t,"__esModule",{value:!0}),t.XMLCBWriter=void 0;var l=function(e){function t(e){var r,o,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t,r){return t=a(t),function(e,t){if(t&&("object"==n(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,i()?Reflect.construct(t,r||[],a(e).constructor):t.apply(e,r))}(this,t,[e]),o=r,(s=u(s="_lineLength"))in o?Object.defineProperty(o,s,{value:0,enumerable:!0,configurable:!0,writable:!0}):o[s]=0,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),r=t,(l=[{key:"frontMatter",value:function(){return""}},{key:"declaration",value:function(e,t,r){var n=this._beginLine()+"<?xml";return n+=' version="'+e+'"',void 0!==t&&(n+=' encoding="'+t+'"'),void 0!==r&&(n+=' standalone="'+(r?"yes":"no")+'"'),n+"?>"}},{key:"docType",value:function(e,t,r){return this._beginLine()+(t&&r?"<!DOCTYPE "+e+' PUBLIC "'+t+'" "'+r+'">':t?"<!DOCTYPE "+e+' PUBLIC "'+t+'">':r?"<!DOCTYPE "+e+' SYSTEM "'+r+'">':"<!DOCTYPE "+e+">")}},{key:"comment",value:function(e){return this._beginLine()+"\x3c!--"+e+"--\x3e"}},{key:"text",value:function(e){return e}},{key:"instruction",value:function(e,t){return t?this._beginLine()+"<?"+e+" "+t+"?>":this._beginLine()+"<?"+e+"?>"}},{key:"cdata",value:function(e){return this._beginLine()+"<![CDATA["+e+"]]>"}},{key:"openTagBegin",value:function(e){return this._lineLength+=1+e.length,this._beginLine()+"<"+e}},{key:"openTagEnd",value:function(e,t,r){return r?" />":t?this._writerOptions.allowEmptyTags?"></"+e+">":this._writerOptions.spaceBeforeSlash?" />":"/>":">"}},{key:"closeTag",value:function(e,t){return(t?"":this._beginLine())+"</"+e+">"}},{key:"attribute",value:function(e,t){var r=e+'="'+t+'"';return this._writerOptions.prettyPrint&&this._writerOptions.width>0&&this._lineLength+1+r.length>this._writerOptions.width?(r=this._beginLine()+this._indent(1)+r,this._lineLength=r.length,r):(this._lineLength+=1+r.length," "+r)}},{key:"beginElement",value:function(e){}},{key:"endElement",value:function(e){}},{key:"_beginLine",value:function(){if(this._writerOptions.prettyPrint){var e=(this.hasData?this._writerOptions.newline:"")+this._indent(this._writerOptions.offset+this.level);return this._lineLength=e.length,e}return""}},{key:"_indent",value:function(e){return e<=0?"":this._writerOptions.indent.repeat(e)}}])&&o(r.prototype,l),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,l}(r(5084).BaseCBWriter);t.XMLCBWriter=l},397:(e,t,r)=>{"use strict";var n=r(7751);e.exports=n("document","documentElement")},414:e=>{"use strict";e.exports=Math.round},421:e=>{"use strict";e.exports={}},429:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptySet=t.Guard=t.Cast=void 0;var n=r(1654);Object.defineProperty(t,"Cast",{enumerable:!0,get:function(){return n.Cast}});var o=r(8748);Object.defineProperty(t,"Guard",{enumerable:!0,get:function(){return o.Guard}});var i=r(2698);Object.defineProperty(t,"EmptySet",{enumerable:!0,get:function(){return i.EmptySet}})},453:(e,t,r)=>{"use strict";var n,o=r(9612),i=r(9383),a=r(1237),s=r(9290),u=r(9538),l=r(8068),c=r(9675),f=r(5345),d=r(1514),p=r(8968),h=r(6188),m=r(8002),_=r(5880),y=r(414),v=r(3093),g=Function,b=function(e){try{return g('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=r(5795),N=r(3036),S=function(){throw new c},E=w?function(){try{return S}catch(e){try{return w(arguments,"callee").get}catch(e){return S}}}():S,O=r(4039)(),x=r(3628),T=r(1064),A=r(8648),I=r(1002),C=r(76),P={},D="undefined"!=typeof Uint8Array&&x?x(Uint8Array):n,k={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":O&&x?x([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":P,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&x?x(x([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&O&&x?x((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&O&&x?x((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&x?x(""[Symbol.iterator]()):n,"%Symbol%":O?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":E,"%TypedArray%":D,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":I,"%Object.defineProperty%":N,"%Object.getPrototypeOf%":T,"%Math.abs%":d,"%Math.floor%":p,"%Math.max%":h,"%Math.min%":m,"%Math.pow%":_,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":A};if(x)try{null.error}catch(e){var j=x(x(e));k["%Error.prototype%"]=j}var L=function e(t){var r;if("%AsyncFunction%"===t)r=b("async function () {}");else if("%GeneratorFunction%"===t)r=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=b("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&x&&(r=x(o.prototype))}return k[t]=r,r},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},F=r(6743),R=r(9957),B=F.call(C,Array.prototype.concat),U=F.call(I,Array.prototype.splice),z=F.call(C,String.prototype.replace),G=F.call(C,String.prototype.slice),W=F.call(C,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,V=function(e,t){var r,n=e;if(R(M,n)&&(n="%"+(r=M[n])[0]+"%"),R(k,n)){var o=k[n];if(o===P&&(o=L(n)),void 0===o&&!t)throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new l("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=G(e,0,1),r=G(e,-1);if("%"===t&&"%"!==r)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return z(e,q,function(e,t,r,o){n[n.length]=r?z(o,H,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=V("%"+n+"%",t),i=o.name,a=o.value,s=!1,u=o.alias;u&&(n=u[0],U(r,B([0,1],u)));for(var f=1,d=!0;f<r.length;f+=1){var p=r[f],h=G(p,0,1),m=G(p,-1);if(('"'===h||"'"===h||"`"===h||'"'===m||"'"===m||"`"===m)&&h!==m)throw new l("property names with quotes must have matching quotes");if("constructor"!==p&&d||(s=!0),R(k,i="%"+(n+="."+p)+"%"))a=k[i];else if(null!=a){if(!(p in a)){if(!t)throw new c("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&f+1>=r.length){var _=w(a,p);a=(d=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:a[p]}else d=R(a,p),a=a[p];d&&!s&&(k[i]=a)}}return a}},507:(e,t,r)=>{"use strict";var n=r(453),o=r(6556),i=r(8859),a=r(9675),s=n("%Map%",!0),u=o("Map.prototype.get",!0),l=o("Map.prototype.set",!0),c=o("Map.prototype.has",!0),f=o("Map.prototype.delete",!0),d=o("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+i(e))},delete:function(t){if(e){var r=f(e,t);return 0===d(e)&&(e=void 0),r}return!1},get:function(t){if(e)return u(e,t)},has:function(t){return!!e&&c(e,t)},set:function(t,r){e||(e=new s),l(e,t,r)}};return t}},511:(e,t,r)=>{"use strict";var n=r(9167),o=r(9297),i=r(1951),a=r(4913).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},566:(e,t,r)=>{"use strict";var n=r(9504),o=r(9306),i=r(34),a=r(9297),s=r(7680),u=r(616),l=Function,c=n([].concat),f=n([].join),d={};e.exports=u?l.bind:function(e){var t=o(this),r=t.prototype,n=s(arguments,1),u=function(){var r=c(n,s(arguments));return this instanceof u?function(e,t,r){if(!a(d,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";d[t]=l("C,a","return new C("+f(n,",")+")")}return d[t](e,r)}(t,r.length,r):t.apply(e,r)};return i(r)&&(u.prototype=r),u}},569:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeIterator_traverse=function(e,t){let r=e._reference,n=e._pointerBeforeReference;for(;;){if(t)if(n)n=!1;else{const t=(0,a.tree_getFollowingNode)(e._root,r);if(!t)return null;r=t}else if(n){const t=(0,a.tree_getPrecedingNode)(e.root,r);if(!t)return null;r=t}else n=!0;if((0,i.traversal_filter)(e,r)===o.FilterResult.Accept)break}return e._reference=r,e._pointerBeforeReference=n,r},t.nodeIterator_iteratorList=function(){return n.dom.window._iteratorList};const n=r(877),o=r(6775),i=r(8071),a=r(3931)},570:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventTarget_flatten=o,t.eventTarget_flattenMore=function(e){const t=o(e);let r=!1,i=!1;return(0,n.isBoolean)(e)||(r=e.once||!1,i=e.passive||!1),[t,i,r]},t.eventTarget_addEventListener=function(e,t){if(null!==t.callback){for(let r=0;r<e._eventListenerList.length;r++){const n=e._eventListenerList[r];if(n.type===t.type&&n.callback.handleEvent===t.callback.handleEvent&&n.capture===t.capture)return}e._eventListenerList.push(t)}},t.eventTarget_removeEventListener=function(e,t,r){t.removed=!0,e._eventListenerList.splice(r,1)},t.eventTarget_removeAllEventListeners=function(e){for(const t of e._eventListenerList)t.removed=!0;e._eventListenerList.length=0};const n=r(2556);function o(e){return(0,n.isBoolean)(e)?e:e.capture||!1}},597:(e,t,r)=>{"use strict";var n=r(9039),o=r(8227),i=r(9519),a=o("species");e.exports=function(e){return i>=51||!n(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},616:(e,t,r)=>{"use strict";var n=r(9039);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},655:(e,t,r)=>{"use strict";var n=r(6955),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},679:(e,t,r)=>{"use strict";var n=r(1625),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},681:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=i(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function u(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}r(2675),r(9463),r(2259),r(5700),r(3418),r(3792),r(4782),r(9572),r(2010),r(2892),r(6099),r(7495),r(8781),r(1415),r(9449),r(7764),r(5440),r(2953),Object.defineProperty(t,"__esModule",{value:!0}),t.BaseWriter=void 0;var c=r(6775),f=r(6177),d=r(6433),p=r(8090),h=r(6498),m=r(1665),_=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"_builderOptions",void 0),u(this,"_writerOptions",void 0),u(this,"level",0),u(this,"currentNode",void 0),this._builderOptions=t}return t=e,(r=[{key:"declaration",value:function(e,t,r){}},{key:"docType",value:function(e,t,r){}},{key:"comment",value:function(e){}},{key:"text",value:function(e){}},{key:"instruction",value:function(e,t){}},{key:"cdata",value:function(e){}},{key:"openTagBegin",value:function(e){}},{key:"openTagEnd",value:function(e,t,r){}},{key:"closeTag",value:function(e){}},{key:"attributes",value:function(e){var t,r=o(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;this.attribute(null===n[1]?n[2]:n[1]+":"+n[2],n[3])}}catch(e){r.e(e)}finally{r.f()}}},{key:"attribute",value:function(e,t){}},{key:"beginElement",value:function(e){}},{key:"endElement",value:function(e){}},{key:"serializeNode",value:function(e,t){var r=void 0!==e._nodeDocument&&e._nodeDocument._hasNamespaces;if(this.level=0,this.currentNode=e,r){var n=new d.NamespacePrefixMap;n.set("xml",p.namespace.XML),this._serializeNodeNS(e,null,n,{value:1},t)}else this._serializeNode(e,t)}},{key:"_serializeNodeNS",value:function(e,t,r,n,o){switch(this.currentNode=e,e.nodeType){case c.NodeType.Element:this._serializeElementNS(e,t,r,n,o);break;case c.NodeType.Document:this._serializeDocumentNS(e,t,r,n,o);break;case c.NodeType.Comment:this._serializeComment(e,o);break;case c.NodeType.Text:this._serializeText(e,o);break;case c.NodeType.DocumentFragment:this._serializeDocumentFragmentNS(e,t,r,n,o);break;case c.NodeType.DocumentType:this._serializeDocumentType(e,o);break;case c.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,o);break;case c.NodeType.CData:this._serializeCData(e,o);break;default:throw new Error("Unknown node type: ".concat(e.nodeType))}}},{key:"_serializeNode",value:function(e,t){switch(this.currentNode=e,e.nodeType){case c.NodeType.Element:this._serializeElement(e,t);break;case c.NodeType.Document:this._serializeDocument(e,t);break;case c.NodeType.Comment:this._serializeComment(e,t);break;case c.NodeType.Text:this._serializeText(e,t);break;case c.NodeType.DocumentFragment:this._serializeDocumentFragment(e,t);break;case c.NodeType.DocumentType:this._serializeDocumentType(e,t);break;case c.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(e,t);break;case c.NodeType.CData:this._serializeCData(e,t);break;default:throw new Error("Unknown node type: ".concat(e.nodeType))}}},{key:"_serializeElementNS",value:function(t,r,n,s,u){var l=[];if(u&&(-1!==t.localName.indexOf(":")||!(0,h.xml_isName)(t.localName)))throw new Error("Node local name contains invalid characters (well-formed required).");var c="",f=!1,d=!1,m=n.copy(),_={},y=this._recordNamespaceInformation(t,m,_),v=r,g=t.namespaceURI;if(v===g)null!==y&&(d=!0),c=g===p.namespace.XML?"xml:"+t.localName:t.localName,this.beginElement(c),this.openTagBegin(c);else{var b=t.prefix,w=null;if(null===b&&g===y||(w=m.get(b,g)),"xmlns"===b){if(u)throw new Error("An element cannot have the 'xmlns' prefix (well-formed required).");w=b}null!==w?(c=w+":"+t.localName,null!==y&&y!==p.namespace.XML&&(v=y||null),this.beginElement(c),this.openTagBegin(c)):null!==b?(b in _&&(b=this._generatePrefix(g,m,s)),m.set(b,g),c+=b+":"+t.localName,this.beginElement(c),this.openTagBegin(c),l.push([null,"xmlns",b,this._serializeAttributeValue(g,u)]),null!==y&&(v=y||null)):null===y||null!==y&&y!==g?(d=!0,c+=t.localName,v=g,this.beginElement(c),this.openTagBegin(c),l.push([null,null,"xmlns",this._serializeAttributeValue(g,u)])):(c+=t.localName,v=g,this.beginElement(c),this.openTagBegin(c))}l.push.apply(l,function(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this._serializeAttributesNS(t,m,s,_,d,u))),this.attributes(l);var N=g===p.namespace.HTML;if(N&&0===t.childNodes.length&&e._VoidElementNames.has(t.localName)?(this.openTagEnd(c,!0,!0),this.endElement(c),f=!0):N||0!==t.childNodes.length?this.openTagEnd(c,!1,!1):(this.openTagEnd(c,!0,!1),this.endElement(c),f=!0),!f){if(N&&"template"===t.localName);else{var S,E=o(t.childNodes);try{for(E.s();!(S=E.n()).done;){var O=S.value;this.level++,this._serializeNodeNS(O,v,m,s,u),this.level--}}catch(e){E.e(e)}finally{E.f()}}this.closeTag(c),this.endElement(c)}}},{key:"_serializeElement",value:function(e,t){if(t&&(-1!==e.localName.indexOf(":")||!(0,h.xml_isName)(e.localName)))throw new Error("Node local name contains invalid characters (well-formed required).");var r=!1,n=e.localName;this.beginElement(n),this.openTagBegin(n);var i=this._serializeAttributes(e,t);if(this.attributes(i),e.hasChildNodes()?this.openTagEnd(n,!1,!1):(this.openTagEnd(n,!0,!1),this.endElement(n),r=!0),!r){var a,s=o(e._children);try{for(s.s();!(a=s.n()).done;){var u=a.value;this.level++,this._serializeNode(u,t),this.level--}}catch(e){s.e(e)}finally{s.f()}this.closeTag(n),this.endElement(n)}}},{key:"_serializeDocumentNS",value:function(e,t,r,n,i){if(i&&null===e.documentElement)throw new Error("Missing document element (well-formed required).");var a,s=o(e.childNodes);try{for(s.s();!(a=s.n()).done;){var u=a.value;this._serializeNodeNS(u,t,r,n,i)}}catch(e){s.e(e)}finally{s.f()}}},{key:"_serializeDocument",value:function(e,t){if(t&&null===e.documentElement)throw new Error("Missing document element (well-formed required).");var r,n=o(e._children);try{for(n.s();!(r=n.n()).done;){var i=r.value;this._serializeNode(i,t)}}catch(e){n.e(e)}finally{n.f()}}},{key:"_serializeComment",value:function(e,t){if(t&&(!(0,h.xml_isLegalChar)(e.data)||-1!==e.data.indexOf("--")||e.data.endsWith("-")))throw new Error("Comment data contains invalid characters (well-formed required).");this.comment(e.data)}},{key:"_serializeText",value:function(e,t){if(t&&!(0,h.xml_isLegalChar)(e.data))throw new Error("Text data contains invalid characters (well-formed required).");var r=e.data.replace(m.nonEntityAmpersandRegex,"&").replace(/</g,"<").replace(/>/g,">");this.text(r)}},{key:"_serializeDocumentFragmentNS",value:function(e,t,r,n,i){var a,s=o(e.childNodes);try{for(s.s();!(a=s.n()).done;){var u=a.value;this._serializeNodeNS(u,t,r,n,i)}}catch(e){s.e(e)}finally{s.f()}}},{key:"_serializeDocumentFragment",value:function(e,t){var r,n=o(e._children);try{for(n.s();!(r=n.n()).done;){var i=r.value;this._serializeNode(i,t)}}catch(e){n.e(e)}finally{n.f()}}},{key:"_serializeDocumentType",value:function(e,t){if(t&&!(0,h.xml_isPubidChar)(e.publicId))throw new Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(t&&(!(0,h.xml_isLegalChar)(e.systemId)||-1!==e.systemId.indexOf('"')&&-1!==e.systemId.indexOf("'")))throw new Error("DocType system identifier contains invalid characters (well-formed required).");this.docType(e.name,e.publicId,e.systemId)}},{key:"_serializeProcessingInstruction",value:function(e,t){if(t&&(-1!==e.target.indexOf(":")||/^xml$/i.test(e.target)))throw new Error("Processing instruction target contains invalid characters (well-formed required).");if(t&&(!(0,h.xml_isLegalChar)(e.data)||-1!==e.data.indexOf("?>")))throw new Error("Processing instruction data contains invalid characters (well-formed required).");this.instruction(e.target,e.data)}},{key:"_serializeCData",value:function(e,t){if(t&&-1!==e.data.indexOf("]]>"))throw new Error("CDATA contains invalid characters (well-formed required).");this.cdata(e.data)}},{key:"_serializeAttributesNS",value:function(e,t,r,n,i,a){var s,u=[],l=a?new f.LocalNameSet:void 0,c=o(e.attributes);try{for(c.s();!(s=c.n()).done;){var d=s.value;if(a||i||null!==d.namespaceURI){if(a&&l&&l.has(d.namespaceURI,d.localName))throw new Error("Element contains duplicate attributes (well-formed required).");a&&l&&l.set(d.namespaceURI,d.localName);var m=d.namespaceURI,_=null;if(null!==m)if(_=t.get(d.prefix,m),m===p.namespace.XMLNS){if(d.value===p.namespace.XML||null===d.prefix&&i||null!==d.prefix&&(!(d.localName in n)||n[d.localName]!==d.value)&&t.has(d.localName,d.value))continue;if(a&&d.value===p.namespace.XMLNS)throw new Error("XMLNS namespace is reserved (well-formed required).");if(a&&""===d.value)throw new Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");"xmlns"===d.prefix&&(_="xmlns")}else null===_&&(_=null===d.prefix||t.hasPrefix(d.prefix)&&!t.has(d.prefix,m)?this._generatePrefix(m,t,r):d.prefix,u.push([null,"xmlns",_,this._serializeAttributeValue(m,a)]));if(a&&(-1!==d.localName.indexOf(":")||!(0,h.xml_isName)(d.localName)||"xmlns"===d.localName&&null===m))throw new Error("Attribute local name contains invalid characters (well-formed required).");u.push([m,_,d.localName,this._serializeAttributeValue(d.value,a)])}else u.push([null,null,d.localName,this._serializeAttributeValue(d.value,a)])}}catch(e){c.e(e)}finally{c.f()}return u}},{key:"_serializeAttributes",value:function(e,t){var r,n=[],i=t?{}:void 0,a=o(e.attributes);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(t){if(t&&i&&s.localName in i)throw new Error("Element contains duplicate attributes (well-formed required).");if(t&&i&&(i[s.localName]=!0),t&&(-1!==s.localName.indexOf(":")||!(0,h.xml_isName)(s.localName)))throw new Error("Attribute local name contains invalid characters (well-formed required).");n.push([null,null,s.localName,this._serializeAttributeValue(s.value,t)])}else n.push([null,null,s.localName,this._serializeAttributeValue(s.value,t)])}}catch(e){a.e(e)}finally{a.f()}return n}},{key:"_recordNamespaceInformation",value:function(e,t,r){var n,i=null,a=o(e.attributes);try{for(a.s();!(n=a.n()).done;){var s=n.value,u=s.namespaceURI,l=s.prefix;if(u===p.namespace.XMLNS){if(null===l){i=s.value;continue}var c=s.localName,f=s.value;if(f===p.namespace.XML)continue;if(""===f&&(f=null),t.has(c,f))continue;t.set(c,f),r[c]=f||""}}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"_generatePrefix",value:function(e,t,r){var n="ns"+r.value.toString();return r.value++,t.set(n,e),n}},{key:"_serializeAttributeValue",value:function(e,t){if(t&&null!==e&&!(0,h.xml_isLegalChar)(e))throw new Error("Invalid characters in attribute value.");return null===e?"":e.replace(m.nonEntityAmpersandRegex,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}}])&&s(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}();u(_,"_VoidElementNames",new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"])),t.BaseWriter=_},687:(e,t,r)=>{"use strict";var n=r(4913).f,o=r(9297),i=r(8227)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},741:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLSerializer=void 0;var n=r(6586);Object.defineProperty(t,"XMLSerializer",{enumerable:!0,get:function(){return n.XMLSerializerImpl}})},757:(e,t,r)=>{"use strict";var n=r(7751),o=r(4901),i=r(1625),a=r(7040),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return o(t)&&i(t.prototype,s(e))}},758:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customElement_isValidCustomElementName=function(e){return!!r.test(e)&&!n.has(e)},t.customElement_isValidElementName=function(e){return o.has(e)},t.customElement_isVoidElementName=function(e){return i.has(e)},t.customElement_isValidShadowHostName=function(e){return a.has(e)},t.customElement_enqueueACustomElementUpgradeReaction=function(e,t){},t.customElement_enqueueACustomElementCallbackReaction=function(e,t,r){},t.customElement_upgrade=function(e,t){},t.customElement_tryToUpgrade=function(e){},t.customElement_lookUpACustomElementDefinition=function(e,t,r,n){return null};const r=/[a-z]([\0-\t\x2D\._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])*-([\0-\t\x2D\._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])*/,n=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),o=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"]),i=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),a=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"])},788:(e,t,r)=>{"use strict";var n=r(34),o=r(2195),i=r(8227)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===o(e))}},790:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractRangeImpl=void 0,t.AbstractRangeImpl=class{get _startNode(){return this._start[0]}get _startOffset(){return this._start[1]}get _endNode(){return this._end[0]}get _endOffset(){return this._end[1]}get _collapsed(){return this._start[0]===this._end[0]&&this._start[1]===this._end[1]}get startContainer(){return this._startNode}get startOffset(){return this._startOffset}get endContainer(){return this._endNode}get endOffset(){return this._endOffset}get collapsed(){return this._collapsed}}},825:(e,t,r)=>{"use strict";var n=r(6518),o=r(7751),i=r(8745),a=r(566),s=r(5548),u=r(8551),l=r(34),c=r(2360),f=r(9039),d=o("Reflect","construct"),p=Object.prototype,h=[].push,m=f(function(){function e(){}return!(d(function(){},[],e)instanceof e)}),_=!f(function(){d(function(){})}),y=m||_;n({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){s(e),u(t);var r=arguments.length<3?e:s(arguments[2]);if(_&&!m)return d(e,t,r);if(e===r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return i(h,n,t),new(i(a,e,n))}var o=r.prototype,f=c(l(o)?o:p),y=i(e,f,t);return l(y)?y:f}})},851:(e,t,r)=>{"use strict";var n=r(6955),o=r(5966),i=r(4117),a=r(6269),s=r(8227)("iterator");e.exports=function(e){if(!i(e))return o(e,s)||o(e,"@@iterator")||a[n(e)]}},875:(e,t,r)=>{"use strict";var n=r(6518),o=r(9039),i=r(8981),a=r(2787),s=r(2211);n({target:"Object",stat:!0,forced:o(function(){a(1)}),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},877:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dom=void 0;const n=r(2556),o=r(3031);class i{static _instance;_features={mutationObservers:!0,customElements:!0,slots:!0,steps:!0};_window=null;_compareCache;_rangeList;constructor(){this._compareCache=new n.CompareCache,this._rangeList=new n.FixedSizeSet}setFeatures(e){if(void 0===e&&(e=!0),(0,n.isObject)(e))for(const t in e)this._features[t]=e[t]||!1;else for(const t in this._features)this._features[t]=e}get features(){return this._features}get window(){return null===this._window&&(this._window=(0,o.create_window)()),this._window}get compareCache(){return this._compareCache}get rangeList(){return this._rangeList}static get instance(){return i._instance||(i._instance=new i),i._instance}}t.dom=i.instance},910:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XMLStringLexer=void 0;const n=r(6384);class o{_str;_index;_length;_options={skipWhitespaceOnlyText:!1};err={line:-1,col:-1,index:-1,str:""};constructor(e,t){this._str=e,this._index=0,this._length=e.length,t&&(this._options.skipWhitespaceOnlyText=t.skipWhitespaceOnlyText||!1)}nextToken(){if(this.eof())return{type:n.TokenType.EOF};let e=this.skipIfStartsWith("<")?this.openBracket():this.text();return this._options.skipWhitespaceOnlyText&&e.type===n.TokenType.Text&&o.isWhiteSpaceToken(e)&&(e=this.nextToken()),e}openBracket(){return this.skipIfStartsWith("?")?this.skipIfStartsWith("xml")?o.isSpace(this._str[this._index])?this.declaration():(this.seek(-3),this.pi()):this.pi():this.skipIfStartsWith("!")?this.skipIfStartsWith("--")?this.comment():this.skipIfStartsWith("[CDATA[")?this.cdata():this.skipIfStartsWith("DOCTYPE")?this.doctype():void this.throwError("Invalid '!' in opening tag."):this.skipIfStartsWith("/")?this.closeTag():this.openTag()}declaration(){let e="",t="",r="";for(;!this.eof();){if(this.skipSpace(),this.skipIfStartsWith("?>"))return{type:n.TokenType.Declaration,version:e,encoding:t,standalone:r};{const[n,o]=this.attribute();"version"===n?e=o:"encoding"===n?t=o:"standalone"===n?r=o:this.throwError("Invalid attribute name: "+n)}}this.throwError("Missing declaration end symbol `?>`")}doctype(){let e="",t="";this.skipSpace();const r=this.takeUntil2("[",">",!0);return this.skipSpace(),this.skipIfStartsWith("PUBLIC")?(e=this.quotedString(),t=this.quotedString()):this.skipIfStartsWith("SYSTEM")&&(t=this.quotedString()),this.skipSpace(),this.skipIfStartsWith("[")&&(this.skipUntil("]"),this.skipIfStartsWith("]")||this.throwError("Missing end bracket of DTD internal subset")),this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing doctype end symbol `>`"),{type:n.TokenType.DocType,name:r,pubId:e,sysId:t}}pi(){const e=this.takeUntilStartsWith("?>",!0);if(this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.skipSpace(),this.skipIfStartsWith("?>"))return{type:n.TokenType.PI,target:e,data:""};const t=this.takeUntilStartsWith("?>");return this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.seek(2),{type:n.TokenType.PI,target:e,data:t}}text(){const e=this.takeUntil("<");return{type:n.TokenType.Text,data:e}}comment(){const e=this.takeUntilStartsWith("--\x3e");return this.eof()&&this.throwError("Missing comment end symbol `--\x3e`"),this.seek(3),{type:n.TokenType.Comment,data:e}}cdata(){const e=this.takeUntilStartsWith("]]>");return this.eof()&&this.throwError("Missing CDATA end symbol `]>`"),this.seek(3),{type:n.TokenType.CDATA,data:e}}openTag(){this.skipSpace();const e=this.takeUntil2(">","/",!0);if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:n.TokenType.Element,name:e,attributes:[],selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:n.TokenType.Element,name:e,attributes:[],selfClosing:!0};const t=[];for(;!this.eof();){if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:n.TokenType.Element,name:e,attributes:t,selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:n.TokenType.Element,name:e,attributes:t,selfClosing:!0};const r=this.attribute();t.push(r)}this.throwError("Missing opening element tag end symbol `>`")}closeTag(){this.skipSpace();const e=this.takeUntil(">",!0);return this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing closing element tag end symbol `>`"),{type:n.TokenType.ClosingTag,name:e}}attribute(){this.skipSpace();const e=this.takeUntil("=",!0);return this.skipSpace(),this.skipIfStartsWith("=")||this.throwError("Missing equals sign before attribute value"),[e,this.quotedString()]}quotedString(){this.skipSpace();const e=this.take(1);o.isQuote(e)||this.throwError("Missing start quote character before quoted value");const t=this.takeUntil(e);return this.skipIfStartsWith(e)||this.throwError("Missing end quote character after quoted value"),t}eof(){return this._index>=this._length}skipIfStartsWith(e){const t=e.length;if(1===t)return this._str[this._index]===e&&(this._index++,!0);for(let r=0;r<t;r++)if(this._str[this._index+r]!==e[r])return!1;return this._index+=t,!0}seek(e){this._index+=e,this._index<0&&(this._index=0),this._index>this._length&&(this._index=this._length)}skipSpace(){for(;!this.eof()&&o.isSpace(this._str[this._index]);)this._index++}take(e){if(1===e)return this._str[this._index++];const t=this._index;return this.seek(e),this._str.slice(t,this._index)}takeUntil(e,t=!1){const r=this._index;for(;this._index<this._length;){const r=this._str[this._index];if(r===e||t&&o.isSpace(r))break;this._index++}return this._str.slice(r,this._index)}takeUntil2(e,t,r=!1){const n=this._index;for(;this._index<this._length;){const n=this._str[this._index];if(n===e||n===t||r&&o.isSpace(n))break;this._index++}return this._str.slice(n,this._index)}takeUntilStartsWith(e,t=!1){const r=this._index,n=e.length;for(;this._index<this._length;){let i=!0;for(let a=0;a<n;a++){const n=this._str[this._index+a],s=e[a];if(t&&o.isSpace(n))return this._str.slice(r,this._index);if(n!==s){this._index++,i=!1;break}}if(i)return this._str.slice(r,this._index)}return this._index=this._length,this._str.slice(r)}skipUntil(e){for(;this._index<this._length&&this._str[this._index]!==e;)this._index++}static isWhiteSpaceToken(e){const t=e.data;for(let e=0;e<t.length;e++){const r=t[e];if(" "!==r&&"\n"!==r&&"\r"!==r&&"\t"!==r&&"\f"!==r)return!1}return!0}static isSpace(e){return" "===e||"\n"===e||"\r"===e||"\t"===e}static isQuote(e){return'"'===e||"'"===e}throwError(e){const t=/\r\n|\r|\n/g;let r=null,n=0,o=0,i=this._str.length;for(;null!==(r=t.exec(this._str))&&null!==r;)if(n++,r.index<this._index&&(o=t.lastIndex),r.index>this._index){i=r.index;break}throw this.err={line:n,col:this._index-o,index:this._index,str:this._str.substring(o,i)},new Error(e+"\nIndex: "+this.err.index+"\nLn: "+this.err.line+", Col: "+this.err.col+"\nInput: "+this.err.str)}[Symbol.iterator](){return this._index=0,{next:function(){const e=this.nextToken();return e.type===n.TokenType.EOF?{done:!0,value:null}:{done:!1,value:e}}.bind(this)}}}t.XMLStringLexer=o},920:(e,t,r)=>{"use strict";var n=r(9675),o=r(8859),i=r(4803),a=r(507),s=r(2271)||a||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+o(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomEventImpl=void 0;const n=r(5969),o=r(6498);class i extends n.EventImpl{_detail=null;constructor(e,t){super(e,t),this._detail=t&&t.detail||null}get detail(){return this._detail}initCustomEvent(e,t=!1,r=!1,n=null){this._dispatchFlag||((0,o.event_initialize)(this,e,t,r),this._detail=n)}}t.CustomEventImpl=i},945:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringWalker=void 0,t.StringWalker=class{_chars;_length;_pointer=0;_codePoint;_c;_remaining;_substring;constructor(e){this._chars=Array.from(e),this._length=this._chars.length}get eof(){return this._pointer>=this._length}get length(){return this._length}codePoint(){if(void 0===this._codePoint)if(this.eof)this._codePoint=-1;else{const e=this._cha