-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresx.min.js
More file actions
1 lines (1 loc) · 177 KB
/
Copy pathresx.min.js
File metadata and controls
1 lines (1 loc) · 177 KB
1
!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).resx=t()}(function(){return function n(i,o,s){function a(e,t){if(!o[e]){if(!i[e]){var r="function"==typeof require&&require;if(!t&&r)return r(e,!0);if(u)return u(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}r=o[e]={exports:{}},i[e][0].call(r.exports,function(t){return a(i[e][1][t]||t)},r,r.exports,n,i,o,s)}return o[e].exports}for(var u="function"==typeof require&&require,t=0;t<s.length;t++)a(s[t]);return a}({1:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,Object.defineProperty(r,"js2resx",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"resx2js",{enumerable:!0,get:function(){return n.default}});var n=o(t("./resx2js.js")),i=o(t("./js2resx.js"));function o(t){return t&&t.__esModule?t:{default:t}}t={resx2js:n.default,js2resx:i.default};r.default=t},{"./js2resx.js":2,"./resx2js.js":3}],2:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,e,r){if(!r&&void 0===e)return new Promise(function(r,n){return s(t,e,function(t,e){return t?n(t):r(e)})});if(!r&&"function"!=typeof e)return new Promise(function(r,n){return s(t,e,function(t,e){return t?n(t):r(e)})});s(t,e,r)};var i=(t=t("xml2js"))&&t.__esModule?t:{default:t};function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=function(r,t,e){e||"function"!=typeof t||(e=t,t={pretty:!0,indent:" ",newline:"\n"});var t=new i.default.Builder({rootName:"root",headless:!1,renderOpts:{pretty:!1!==(t=t||{pretty:!0,indent:" ",newline:"\n"}).pretty,indent:t.indent||" ",newline:t.newline||"\n"},xmldec:{version:"1.0",encoding:"utf-8"}}),n={$:{},"xsd:schema":{$:{id:"root",xmlns:"","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:msdata":"urn:schemas-microsoft-com:xml-msdata"},"xsd:import":{$:{namespace:"http://www.w3.org/XML/1998/namespace"}},"xsd:element":{$:{name:"root","msdata:IsDataSet":"true"},"xsd:complexType":{"xsd:choice":{$:{maxOccurs:"unbounded"},"xsd:element":[{$:{name:"metadata"},"xsd:complexType":{"xsd:sequence":{"xsd:element":{$:{name:"value",type:"xsd:string",minOccurs:"0"}}},"xsd:attribute":[{$:{name:"name",use:"required",type:"xsd:string"}},{$:{name:"type",type:"xsd:string"}},{$:{name:"mimetype",type:"xsd:string"}},{$:{ref:"xml:space"}}]}},{$:{name:"assembly"},"xsd:complexType":{"xsd:attribute":[{$:{name:"alias",type:"xsd:string"}},{$:{name:"name",type:"xsd:string"}}]}},{$:{name:"data"},"xsd:complexType":{"xsd:sequence":{"xsd:element":[{$:{name:"value",type:"xsd:string",minOccurs:"0","msdata:Ordinal":"1"}},{$:{name:"comment",type:"xsd:string",minOccurs:"0","msdata:Ordinal":"2"}}]},"xsd:attribute":[{$:{name:"name",type:"xsd:string",use:"required","msdata:Ordinal":"1"}},{$:{name:"type",type:"xsd:string","msdata:Ordinal":"3"}},{$:{name:"mimetype",type:"xsd:string","msdata:Ordinal":"4"}},{$:{ref:"xml:space"}}]}},{$:{name:"resheader"},"xsd:complexType":{"xsd:sequence":{"xsd:element":{$:{name:"value",type:"xsd:string",minOccurs:"0","msdata:Ordinal":"1"}}},"xsd:attribute":{$:{name:"name",type:"xsd:string",use:"required"}}}}]}}}},resheader:[{$:{name:"resmimetype"},value:"text/microsoft-resx"},{$:{name:"version"},value:"2.0"},{$:{name:"reader"},value:"System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"},{$:{name:"writer"},value:"System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"}],data:[]};Object.keys(r).forEach(function(t){var e={$:{name:t,"xml:space":"preserve"},value:r[t]};"object"===o(r[t])&&r[t].value&&(e.value=r[t].value,e.comment=r[t].comment),n.data.push(e)});t=(t=t.buildObject(n)).replace("<root>",'<root>\n \x3c!--\n Microsoft ResX Schema\n\n Version 2.0\n\n The primary goals of this format is to allow a simple XML format\n that is mostly human readable. The generation and parsing of the\n various data types are done through the TypeConverter classes\n associated with the data types.\n\n Example:\n\n ... ado.net/XML headers & schema ...\n <resheader name="resmimetype">text/microsoft-resx</resheader>\n <resheader name="version">2.0</resheader>\n <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>\n <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>\n <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>\n <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>\n <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">\n <value>[base64 mime encoded serialized .NET Framework object]</value>\n </data>\n <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\n <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>\n <comment>This is a comment</comment>\n </data>\n\n There are any number of "resheader" rows that contain simple\n name/value pairs.\n\n Each data row contains a name, and value. The row also contains a\n type or mimetype. Type corresponds to a .NET class that support\n text/value conversion through the TypeConverter architecture.\n Classes that don\'t support this are serialized and stored with the\n mimetype set.\n\n The mimetype is used for serialized objects, and tells the\n ResXResourceReader how to depersist the object. This is currently not\n extensible. For a given mimetype the value must be set accordingly:\n\n Note - application/x-microsoft.net.object.binary.base64 is the format\n that the ResXResourceWriter will generate, however the reader can\n read any of the formats listed below.\n\n mimetype: application/x-microsoft.net.object.binary.base64\n value : The object must be serialized with\n : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter\n : and then encoded with base64 encoding.\n\n mimetype: application/x-microsoft.net.object.soap.base64\n value : The object must be serialized with\n : System.Runtime.Serialization.Formatters.Soap.SoapFormatter\n : and then encoded with base64 encoding.\n\n mimetype: application/x-microsoft.net.object.bytearray.base64\n value : The object must be serialized into a byte array\n : using a System.ComponentModel.TypeConverter\n : and then encoded with base64 encoding.\n --\x3e');return e&&e(null,t),t};e.exports=r.default},{xml2js:36}],3:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,e,r){if(!r&&void 0===e)return new Promise(function(r,n){return i(t,e,function(t,e){return t?n(t):r(e)})});if(!r&&"function"!=typeof e)return new Promise(function(r,n){return i(t,e,function(t,e){return t?n(t):r(e)})});i(t,e,r)};var o=new((t=t("xml2js"))&&t.__esModule?t:{default:t}).default.Parser,i=function(t,n,r){if(r||"function"!=typeof n||(r=n,n=!1),"string"!=typeof t)return r(new Error("The first parameter was not a string"));var i={};o.parseString(t,function(t,e){if(t)return r(t);e&&e.root&&e.root.data&&0<e.root.data.length&&e.root.data.forEach(function(t){var e,r;t&&t.$&&t.$.name&&t.value&&0<t.value.length&&(e=t.$.name,r=t.value[0],n?(i[e]={value:r},t.comment&&(t=t.comment[0],i[e].comment=t)):i[e]=r)}),r(null,i)})};e.exports=r.default},{xml2js:36}],4:[function(t,e,r){"use strict";r.byteLength=function(t){var t=c(t),e=t[0],t=t[1];return 3*(e+t)/4-t},r.toByteArray=function(t){var e,r,n=c(t),i=n[0],n=n[1],o=new l(function(t,e){return 3*(t+e)/4-e}(i,n)),s=0,a=0<n?i-4:i;for(r=0;r<a;r+=4)e=u[t.charCodeAt(r)]<<18|u[t.charCodeAt(r+1)]<<12|u[t.charCodeAt(r+2)]<<6|u[t.charCodeAt(r+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=255&e;2===n&&(e=u[t.charCodeAt(r)]<<2|u[t.charCodeAt(r+1)]>>4,o[s++]=255&e);1===n&&(e=u[t.charCodeAt(r)]<<10|u[t.charCodeAt(r+1)]<<4|u[t.charCodeAt(r+2)]>>2,o[s++]=e>>8&255,o[s++]=255&e);return o},r.fromByteArray=function(t){for(var e,r=t.length,n=r%3,i=[],o=0,s=r-n;o<s;o+=16383)i.push(function(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(function(t){return a[t>>18&63]+a[t>>12&63]+a[t>>6&63]+a[63&t]}(n));return i.join("")}(t,o,s<o+16383?s:o+16383));1==n?(e=t[r-1],i.push(a[e>>2]+a[e<<4&63]+"==")):2==n&&(e=(t[r-2]<<8)+t[r-1],i.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"="));return i.join("")};for(var a=[],u=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)a[i]=n[i],u[n.charCodeAt(i)]=i;function c(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");t=t.indexOf("="),e=(t=-1===t?e:t)===e?0:4-t%4;return[t,e]}u["-".charCodeAt(0)]=62,u["_".charCodeAt(0)]=63},{}],5:[function(t,e,r){},{}],6:[function(M,t,A){!function(t){!function(){"use strict";var D=M("base64-js"),o=M("ieee754"),e=(A.Buffer=h,A.SlowBuffer=function(t){+t!=t&&(t=0);return h.alloc(+t)},A.INSPECT_MAX_BYTES=50,2147483647);function u(t){if(e<t)throw new RangeError('The value "'+t+'" is invalid for option "size"');t=new Uint8Array(t);return t.__proto__=h.prototype,t}function h(t,e,r){if("number"!=typeof t)return n(t,e,r);if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return s(t)}function n(t,e,r){if("string"==typeof t){var n=t,i=e;if(h.isEncoding(i="string"==typeof i&&""!==i?i:"utf8"))return o=0|p(n,i),s=u(o),s=(n=s.write(n,i))!==o?s.slice(0,n):s;throw new TypeError("Unknown encoding: "+i)}if(ArrayBuffer.isView(t))return l(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(L(t,ArrayBuffer)||t&&L(t.buffer,ArrayBuffer)){var o=t,n=e,s=r;if(n<0||o.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(o.byteLength<n+(s||0))throw new RangeError('"length" is outside of buffer bounds');return(o=void 0===n&&void 0===s?new Uint8Array(o):void 0===s?new Uint8Array(o,n):new Uint8Array(o,n,s)).__proto__=h.prototype,o}if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');i=t.valueOf&&t.valueOf();if(null!=i&&i!==t)return h.from(i,e,r);var a=function(t){{var e,r;if(h.isBuffer(t))return e=0|c(t.length),0!==(r=u(e)).length&&t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||S(t.length)?u(0):l(t);if("Buffer"===t.type&&Array.isArray(t.data))return l(t.data)}(t);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return h.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function i(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function s(t){return i(t),u(t<0?0:0|c(t))}function l(t){for(var e=t.length<0?0:0|c(t.length),r=u(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}function c(t){if(e<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e.toString(16)+" bytes");return 0|t}function p(t,e){if(h.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||L(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=2<arguments.length&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return O(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return I(t).length;default:if(i)return n?-1:O(t).length;e=(""+e).toLowerCase(),i=!0}}function r(t,e,r){var n,i=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((r=void 0===r||r>this.length?this.length:r)<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":var o=this,s=e,a=r,u=o.length;(!a||a<0||u<a)&&(a=u);for(var l="",c=s=!s||s<0?0:s;c<a;++c)l+=function(t){return t<16?"0"+t.toString(16):t.toString(16)}(o[c]);return l;case"utf8":case"utf-8":return N(this,e,r);case"ascii":var h=this,u=e,p=r,f="";p=Math.min(h.length,p);for(var d=u;d<p;++d)f+=String.fromCharCode(127&h[d]);return f;case"latin1":case"binary":var y=this,s=e,m=r,g="";m=Math.min(y.length,m);for(var b=s;b<m;++b)g+=String.fromCharCode(y[b]);return g;case"base64":return w=this,n=r,0===(v=e)&&n===w.length?D.fromByteArray(w):D.fromByteArray(w.slice(v,n));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var w=e,v=r,_=this.slice(w,v),T="",E=0;E<_.length;E+=2)T+=String.fromCharCode(_[E]+256*_[E+1]);return T;default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function a(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function f(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),(r=(r=S(r=+r)?i?0:t.length-1:r)<0?t.length+r:r)>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=h.from(e,n)),h.isBuffer(e))return 0===e.length?-1:d(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?(i?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,r):d(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function d(t,e,r,n,i){var o=1,s=t.length,a=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s/=o=2,a/=2,r/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i)for(var l=-1,c=r;c<s;c++)if(u(t,c)===u(e,-1===l?0:c-l)){if(c-(l=-1===l?c:l)+1===a)return l*o}else-1!==l&&(c-=c-l),l=-1;else for(c=r=s<r+a?s-a:r;0<=c;c--){for(var h=!0,p=0;p<a;p++)if(u(t,c+p)!==u(e,p)){h=!1;break}if(h)return c}return-1}function m(t,e,r,n){return x(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function g(t,e,r,n){return x(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)r=t.charCodeAt(o),n=r>>8,i.push(r%256),i.push(n);return i}(e,t.length-r),t,r,n)}function N(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,u,l=t[i],c=null,h=239<l?4:223<l?3:191<l?2:1;if(i+h<=r)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&127<(u=(31&l)<<6|63&o)&&(c=u);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&2047<(u=(15&l)<<12|(63&o)<<6|63&s)&&(u<55296||57343<u)&&(c=u);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&65535<(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)&&u<1114112&&(c=u)}null===c?(c=65533,h=1):65535<c&&(n.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}var p=n,f=p.length;if(f<=b)return String.fromCharCode.apply(String,p);for(var d="",y=0;y<f;)d+=String.fromCharCode.apply(String,p.slice(y,y+=b));return d}A.kMaxLength=e,(h.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}())||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),h.poolSize=8192,h.from=n,h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,h.alloc=function(t,e,r){return e=e,r=r,i(t=t),!(t<=0)&&void 0!==e?"string"==typeof r?u(t).fill(e,r):u(t).fill(e):u(t)},h.allocUnsafe=s,h.allocUnsafeSlow=s,h.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==h.prototype},h.compare=function(t,e){if(L(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),L(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(t)||!h.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},h.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);if(void 0===e)for(i=e=0;i<t.length;++i)e+=t[i].length;for(var r=h.allocUnsafe(e),n=0,i=0;i<t.length;++i){var o=t[i];if(L(o,Uint8Array)&&(o=h.from(o)),!h.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},h.byteLength=p,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)a(this,e,e+1);return this},h.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)a(this,e,e+3),a(this,e+1,e+2);return this},h.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)a(this,e,e+7),a(this,e+1,e+6),a(this,e+2,e+5),a(this,e+3,e+4);return this},h.prototype.toLocaleString=h.prototype.toString=function(){var t=this.length;return 0===t?"":0===arguments.length?N(this,0,t):r.apply(this,arguments)},h.prototype.equals=function(t){if(h.isBuffer(t))return this===t||0===h.compare(this,t);throw new TypeError("Argument must be a Buffer")},h.prototype.inspect=function(){var t="",e=A.INSPECT_MAX_BYTES,t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim();return this.length>e&&(t+=" ... "),"<Buffer "+t+">"},h.prototype.compare=function(t,e,r,n,i){if(L(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),(e=void 0===e?0:e)<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=e)return 0;if(i<=n)return-1;if(r<=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),u=this.slice(n,i),l=t.slice(e,r),c=0;c<a;++c)if(u[c]!==l[c]){o=u[c],s=l[c];break}return o<s?-1:s<o?1:0},h.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},h.prototype.indexOf=function(t,e,r){return f(this,t,e,r,!0)},h.prototype.lastIndexOf=function(t,e,r){return f(this,t,e,r,!1)},h.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||i<r)&&(r=i),0<t.length&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var o,s,a,u=!1;;)switch(n){case"hex":var l=this,c=t,h=e,p=r,f=(h=Number(h)||0,l.length-h);(!p||f<(p=Number(p)))&&(p=f),(f=c.length)/2<p&&(p=f/2);for(var d=0;d<p;++d){var y=parseInt(c.substr(2*d,2),16);if(S(y))return d;l[h+d]=y}return d;case"utf8":case"utf-8":return f=e,a=r,x(O(t,(s=this).length-f),s,f,a);case"ascii":return m(this,t,e,r);case"latin1":case"binary":return m(this,t,e,r);case"base64":return s=this,a=e,o=r,x(I(t),s,a,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g(this,t,e,r);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var b=4096;function y(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(r<t+e)throw new RangeError("Trying to access beyond buffer length")}function w(t,e,r,n,i,o){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<e||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function v(t,e,r,n){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function _(t,e,r,n,i){return e=+e,r>>>=0,i||v(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function T(t,e,r,n,i){return e=+e,r>>>=0,i||v(t,0,r,8),o.write(t,e,r,n,52,8),r+8}h.prototype.slice=function(t,e){var r=this.length,r=((t=~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),e<t&&(e=t),this.subarray(t,e));return r.__proto__=h.prototype,r},h.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||y(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},h.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||y(t,e,this.length);for(var n=this[t+--e],i=1;0<e&&(i*=256);)n+=this[t+--e]*i;return n},h.prototype.readUInt8=function(t,e){return t>>>=0,e||y(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return t>>>=0,e||y(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return t>>>=0,e||y(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return t>>>=0,e||y(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,e){return t>>>=0,e||y(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||y(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return(i*=128)<=n&&(n-=Math.pow(2,8*e)),n},h.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||y(t,e,this.length);for(var n=e,i=1,o=this[t+--n];0<n&&(i*=256);)o+=this[t+--n]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*e)),o},h.prototype.readInt8=function(t,e){return t>>>=0,e||y(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){t>>>=0,e||y(t,2,this.length);e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},h.prototype.readInt16BE=function(t,e){t>>>=0,e||y(t,2,this.length);e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},h.prototype.readInt32LE=function(t,e){return t>>>=0,e||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return t>>>=0,e||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return t>>>=0,e||y(t,4,this.length),o.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||y(t,4,this.length),o.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||y(t,8,this.length),o.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||y(t,8,this.length),o.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||w(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},h.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||w(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;0<=--i&&(o*=256);)this[e+i]=t/o&255;return e+r},h.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,1,255,0),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},h.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeIntLE=function(t,e,r,n){t=+t,e>>>=0,n||w(this,t,e,r,(n=Math.pow(2,8*r-1))-1,-n);var i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+r},h.prototype.writeIntBE=function(t,e,r,n){t=+t,e>>>=0,n||w(this,t,e,r,(n=Math.pow(2,8*r-1))-1,-n);var i=r-1,o=1,s=0;for(this[e+i]=255&t;0<=--i&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o>>0)-s&255;return e+r},h.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,1,127,-128),this[e]=255&(t=t<0?255+t+1:t),e+1},h.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},h.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||w(this,t,e,4,2147483647,-2147483648),this[e]=(t=t<0?4294967295+t+1:t)>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeFloatLE=function(t,e,r){return _(this,t,e,!0,r)},h.prototype.writeFloatBE=function(t,e,r){return _(this,t,e,!1,r)},h.prototype.writeDoubleLE=function(t,e,r){return T(this,t,e,!0,r)},h.prototype.writeDoubleBE=function(t,e,r){return T(this,t,e,!1,r)},h.prototype.copy=function(t,e,r,n){if(!h.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r=r||0,n||0===n||(n=this.length),e>=t.length&&(e=t.length),(n=0<n&&n<r?r:n)===r)return 0;if(0===t.length||0===this.length)return 0;if((e=e||0)<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length);var i=(n=t.length-e<n-r?t.length-e+r:n)-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;0<=o;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},h.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var i;1===t.length&&(i=t.charCodeAt(0),"utf8"===n&&i<128||"latin1"===n)&&(t=i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");var o;if(!(r<=e))if(e>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(t=t||0))for(o=e;o<r;++o)this[o]=t;else{var s=h.isBuffer(t)?t:h.from(t,n),a=s.length;if(0===a)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var E=/[^+/0-9A-Za-z-_]/g;function O(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if(55295<(r=t.charCodeAt(s))&&r<57344){if(!i){if(56319<r){-1<(e-=3)&&o.push(239,191,189);continue}if(s+1===n){-1<(e-=3)&&o.push(239,191,189);continue}i=r;continue}if(r<56320){-1<(e-=3)&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&-1<(e-=3)&&o.push(239,191,189);if(i=null,r<128){if(--e<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function I(t){return D.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(E,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function x(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function L(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function S(t){return t!=t}}.call(this)}.call(this,M("buffer").Buffer)},{"base64-js":4,buffer:6,ieee754:8}],7:[function(t,e,r){"use strict";var n="object"==typeof Reflect?Reflect:null,u=n&&"function"==typeof n.apply?n.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};var i=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(a,u){return new Promise(function(t,e){function r(t){a.removeListener(u,n),e(t)}function n(){"function"==typeof a.removeListener&&a.removeListener("error",r),t([].slice.call(arguments))}var i,o,s;m(a,u,n,{once:!0}),"error"!==u&&(o=r,s={once:!0},"function"==typeof(i=a).on)&&m(i,"error",o,s)})},(s.EventEmitter=s).prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function l(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function h(t,e,r,n){var i,o;return l(r),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,r.listener||r),i=t._events),o=i[e]),void 0===o?(o=i[e]=r,++t._eventsCount):("function"==typeof o?o=i[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),0<(i=c(t))&&o.length>i&&!o.warned&&(o.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=t,n.type=e,n.count=o.length,r=n,console)&&console.warn&&console.warn(r)),t}function p(t,e,r){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},e=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(t);return e.listener=r,t.wrapFn=e}function f(t,e,r){t=t._events;if(void 0===t)return[];t=t[e];if(void 0===t)return[];if("function"==typeof t)return r?[t.listener||t]:[t];if(r){for(var n=t,i=new Array(n.length),o=0;o<i.length;++o)i[o]=n[o].listener||n[o];return i}return y(t,t.length)}function d(t){var e=this._events;if(void 0!==e){e=e[t];if("function"==typeof e)return 1;if(void 0!==e)return e.length}return 0}function y(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function m(r,n,i,o){if("function"==typeof r.on)o.once?r.once(n,i):r.on(n,i);else{if("function"!=typeof r.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof r);r.addEventListener(n,function t(e){o.once&&r.removeEventListener(n,t),i(e)})}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var n="error"===t,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){if((o=0<e.length?e[0]:o)instanceof Error)throw o;n=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw n.context=o,n}var o=i[t];if(void 0===o)return!1;if("function"==typeof o)u(o,this,e);else for(var s=o.length,a=y(o,s),r=0;r<s;++r)u(a[r],this,e);return!0},s.prototype.on=s.prototype.addListener=function(t,e){return h(this,t,e,!1)},s.prototype.prependListener=function(t,e){return h(this,t,e,!0)},s.prototype.once=function(t,e){return l(e),this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return l(e),this.prependListener(t,p(this,t,e)),this},s.prototype.off=s.prototype.removeListener=function(t,e){var r,n,i,o,s;if(l(e),void 0!==(n=this._events)&&void 0!==(r=n[t]))if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length-1;0<=o;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;if(0===i)r.shift();else{for(var a=r,u=i;u+1<a.length;u++)a[u]=a[u+1];a.pop()}1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},s.prototype.removeAllListeners=function(t){var e,r=this._events;if(void 0!==r)if(void 0===r.removeListener)0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]);else if(0===arguments.length){for(var n,i=Object.keys(r),o=0;o<i.length;++o)"removeListener"!==(n=i[o])&&this.removeAllListeners(n);this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0}else if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(o=e.length-1;0<=o;o--)this.removeListener(t,e[o]);return this},s.prototype.listeners=function(t){return f(this,t,!0)},s.prototype.rawListeners=function(t){return f(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return 0<this._eventsCount?i(this._events):[]}},{}],8:[function(t,e,r){r.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,l=u>>1,c=-7,h=r?i-1:0,p=r?-1:1,i=t[e+h];for(h+=p,o=i&(1<<-c)-1,i>>=-c,c+=a;0<c;o=256*o+t[e+h],h+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;0<c;s=256*s+t[e+h],h+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(i?-1:1);s+=Math.pow(2,n),o-=l}return(i?-1:1)*s*Math.pow(2,o-n)},r.write=function(t,e,r,n,i,o){var s,a,u=8*o-i-1,l=(1<<u)-1,c=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,f=n?1:-1,o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(n=Math.pow(2,-s))<1&&(s--,n*=2),2<=(e+=1<=s+c?h/n:h*Math.pow(2,1-c))*n&&(s++,n/=2),l<=s+c?(a=0,s=l):1<=s+c?(a=(e*n-1)*Math.pow(2,i),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));8<=i;t[r+p]=255&a,p+=f,a/=256,i-=8);for(s=s<<i|a,u+=i;0<u;t[r+p]=255&s,p+=f,s/=256,u-=8);t[r+p-f]|=128*o}},{}],9:[function(t,e,r){"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){var r;e&&(t.super_=e,(r=function(){}).prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t)}},{}],10:[function(t,e,r){var n,i,e=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return(n=setTimeout)(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}var u,l=[],c=!1,h=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):h=-1,l.length)&&f()}function f(){if(!c){for(var t=a(p),e=(c=!0,l.length);e;){for(u=l,l=[];++h<e;)u&&u[h].run();h=-1,e=l.length}u=null,c=!1,!function(e){if(i===clearTimeout)return clearTimeout(e);if((i===s||!i)&&clearTimeout)return(i=clearTimeout)(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function y(){}e.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];l.push(new d(t,e)),1!==l.length||c||a(f)},d.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=y,e.addListener=y,e.once=y,e.off=y,e.removeListener=y,e.removeAllListeners=y,e.emit=y,e.prependListener=y,e.prependOnceListener=y,e.listeners=function(t){return[]},e.binding=function(t){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(t){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},{}],11:[function(t,e,r){var n=t("buffer"),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,r),r.Buffer=s),o(i,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");t=i(t);return void 0!==e?"string"==typeof r?t.fill(e,r):t.fill(e):t.fill(0),t},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},{buffer:6}],12:[function(F,t,k){!function(r){!function(){var a=void 0===k?this.sax={}:k;a.parser=function(t,e){return new s(t,e)},a.SAXParser=s,a.SAXStream=o,a.createStream=function(t,e){return new o(t,e)},a.MAX_BUFFER_LENGTH=65536;var n,u=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function s(t,e){if(!(this instanceof s))return new s(t,e);for(var r=this,n=r,i=0,o=u.length;i<o;i++)n[u[i]]="";r.q=r.c="",r.bufferCheckPosition=a.MAX_BUFFER_LENGTH,r.opt=e||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!t,r.noscript=!(!t&&!r.opt.noscript),r.state=E.BEGIN,r.strictEntities=r.opt.strictEntities,r.ENTITIES=r.strictEntities?Object.create(a.XML_ENTITIES):Object.create(a.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create(f)),r.trackPosition=!1!==r.opt.position,r.trackPosition&&(r.position=r.line=r.column=0),D(r,"onready")}a.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(t){function e(){}return e.prototype=t,new e}),Object.keys||(Object.keys=function(t){var e,r=[];for(e in t)t.hasOwnProperty(e)&&r.push(e);return r}),s.prototype={end:function(){L(this)},write:function(t){var e=this;if(this.error)throw this.error;if(e.closed)return x(e,"Cannot write after close. Assign an onready handler.");if(null===t)return L(e);"object"==typeof t&&(t=t.toString());var r,n,i=0,o="";for(;;){if(o=j(t,i++),!(e.c=o))break;switch(e.trackPosition&&(e.position++,"\n"===o?(e.line++,e.column=0):e.column++),e.state){case E.BEGIN:if(e.state=E.BEGIN_WHITESPACE,"\ufeff"===o)continue;R(e,o);continue;case E.BEGIN_WHITESPACE:R(e,o);continue;case E.TEXT:if(e.sawRoot&&!e.closedRoot){for(var s=i-1;o&&"<"!==o&&"&"!==o;)(o=j(t,i++))&&e.trackPosition&&(e.position++,"\n"===o?(e.line++,e.column=0):e.column++);e.textNode+=t.substring(s,i-1)}"<"!==o||e.sawRoot&&e.closedRoot&&!e.strict?(b(o)||e.sawRoot&&!e.closedRoot||S(e,"Text data outside of root node."),"&"===o?e.state=E.TEXT_ENTITY:e.textNode+=o):(e.state=E.OPEN_WAKA,e.startTagPosition=e.position);continue;case E.SCRIPT:"<"===o?e.state=E.SCRIPT_ENDING:e.script+=o;continue;case E.SCRIPT_ENDING:"/"===o?e.state=E.CLOSE_TAG:(e.script+="<"+o,e.state=E.SCRIPT);continue;case E.OPEN_WAKA:"!"===o?(e.state=E.SGML_DECL,e.sgmlDecl=""):b(o)||(v(d,o)?(e.state=E.OPEN_TAG,e.tagName=o):"/"===o?(e.state=E.CLOSE_TAG,e.tagName=""):"?"===o?(e.state=E.PROC_INST,e.procInstName=e.procInstBody=""):(S(e,"Unencoded <"),e.startTagPosition+1<e.position&&(s=e.position-e.startTagPosition,o=new Array(s).join(" ")+o),e.textNode+="<"+o,e.state=E.TEXT));continue;case E.SGML_DECL:(e.sgmlDecl+o).toUpperCase()===l?(N(e,"onopencdata"),e.state=E.CDATA,e.sgmlDecl="",e.cdata=""):e.sgmlDecl+o==="--"?(e.state=E.COMMENT,e.comment="",e.sgmlDecl=""):(e.sgmlDecl+o).toUpperCase()===c?(e.state=E.DOCTYPE,(e.doctype||e.sawRoot)&&S(e,"Inappropriately located doctype declaration"),e.doctype="",e.sgmlDecl=""):">"===o?(N(e,"onsgmldeclaration",e.sgmlDecl),e.sgmlDecl="",e.state=E.TEXT):(w(o)&&(e.state=E.SGML_DECL_QUOTED),e.sgmlDecl+=o);continue;case E.SGML_DECL_QUOTED:o===e.q&&(e.state=E.SGML_DECL,e.q=""),e.sgmlDecl+=o;continue;case E.DOCTYPE:">"===o?(e.state=E.TEXT,N(e,"ondoctype",e.doctype),e.doctype=!0):(e.doctype+=o,"["===o?e.state=E.DOCTYPE_DTD:w(o)&&(e.state=E.DOCTYPE_QUOTED,e.q=o));continue;case E.DOCTYPE_QUOTED:e.doctype+=o,o===e.q&&(e.q="",e.state=E.DOCTYPE);continue;case E.DOCTYPE_DTD:e.doctype+=o,"]"===o?e.state=E.DOCTYPE:w(o)&&(e.state=E.DOCTYPE_DTD_QUOTED,e.q=o);continue;case E.DOCTYPE_DTD_QUOTED:e.doctype+=o,o===e.q&&(e.state=E.DOCTYPE_DTD,e.q="");continue;case E.COMMENT:"-"===o?e.state=E.COMMENT_ENDING:e.comment+=o;continue;case E.COMMENT_ENDING:"-"===o?(e.state=E.COMMENT_ENDED,e.comment=I(e.opt,e.comment),e.comment&&N(e,"oncomment",e.comment),e.comment=""):(e.comment+="-"+o,e.state=E.COMMENT);continue;case E.COMMENT_ENDED:">"!==o?(S(e,"Malformed comment"),e.comment+="--"+o,e.state=E.COMMENT):e.state=E.TEXT;continue;case E.CDATA:"]"===o?e.state=E.CDATA_ENDING:e.cdata+=o;continue;case E.CDATA_ENDING:"]"===o?e.state=E.CDATA_ENDING_2:(e.cdata+="]"+o,e.state=E.CDATA);continue;case E.CDATA_ENDING_2:">"===o?(e.cdata&&N(e,"oncdata",e.cdata),N(e,"onclosecdata"),e.cdata="",e.state=E.TEXT):"]"===o?e.cdata+="]":(e.cdata+="]]"+o,e.state=E.CDATA);continue;case E.PROC_INST:"?"===o?e.state=E.PROC_INST_ENDING:b(o)?e.state=E.PROC_INST_BODY:e.procInstName+=o;continue;case E.PROC_INST_BODY:if(!e.procInstBody&&b(o))continue;"?"===o?e.state=E.PROC_INST_ENDING:e.procInstBody+=o;continue;case E.PROC_INST_ENDING:">"===o?(N(e,"onprocessinginstruction",{name:e.procInstName,body:e.procInstBody}),e.procInstName=e.procInstBody="",e.state=E.TEXT):(e.procInstBody+="?"+o,e.state=E.PROC_INST_BODY);continue;case E.OPEN_TAG:v(y,o)?e.tagName+=o:(function(t){t.strict||(t.tagName=t.tagName[t.looseCase]());var e=t.tags[t.tags.length-1]||t,r=t.tag={name:t.tagName,attributes:{}};t.opt.xmlns&&(r.ns=e.ns);t.attribList.length=0,N(t,"onopentagstart",r)}(e),">"===o?C(e):"/"===o?e.state=E.OPEN_TAG_SLASH:(b(o)||S(e,"Invalid character in tag name"),e.state=E.ATTRIB));continue;case E.OPEN_TAG_SLASH:">"===o?(C(e,!0),P(e)):(S(e,"Forward-slash in opening tag not followed by >"),e.state=E.ATTRIB);continue;case E.ATTRIB:if(b(o))continue;">"===o?C(e):"/"===o?e.state=E.OPEN_TAG_SLASH:v(d,o)?(e.attribName=o,e.attribValue="",e.state=E.ATTRIB_NAME):S(e,"Invalid attribute name");continue;case E.ATTRIB_NAME:"="===o?e.state=E.ATTRIB_VALUE:">"===o?(S(e,"Attribute without value"),e.attribValue=e.attribName,A(e),C(e)):b(o)?e.state=E.ATTRIB_NAME_SAW_WHITE:v(y,o)?e.attribName+=o:S(e,"Invalid attribute name");continue;case E.ATTRIB_NAME_SAW_WHITE:if("="===o)e.state=E.ATTRIB_VALUE;else{if(b(o))continue;S(e,"Attribute without value"),e.tag.attributes[e.attribName]="",e.attribValue="",N(e,"onattribute",{name:e.attribName,value:""}),e.attribName="",">"===o?C(e):v(d,o)?(e.attribName=o,e.state=E.ATTRIB_NAME):(S(e,"Invalid attribute name"),e.state=E.ATTRIB)}continue;case E.ATTRIB_VALUE:if(b(o))continue;w(o)?(e.q=o,e.state=E.ATTRIB_VALUE_QUOTED):(S(e,"Unquoted attribute value"),e.state=E.ATTRIB_VALUE_UNQUOTED,e.attribValue=o);continue;case E.ATTRIB_VALUE_QUOTED:if(o!==e.q){"&"===o?e.state=E.ATTRIB_VALUE_ENTITY_Q:e.attribValue+=o;continue}A(e),e.q="",e.state=E.ATTRIB_VALUE_CLOSED;continue;case E.ATTRIB_VALUE_CLOSED:b(o)?e.state=E.ATTRIB:">"===o?C(e):"/"===o?e.state=E.OPEN_TAG_SLASH:v(d,o)?(S(e,"No whitespace between attributes"),e.attribName=o,e.attribValue="",e.state=E.ATTRIB_NAME):S(e,"Invalid attribute name");continue;case E.ATTRIB_VALUE_UNQUOTED:if(!function(t){return">"===t||b(t)}(o)){"&"===o?e.state=E.ATTRIB_VALUE_ENTITY_U:e.attribValue+=o;continue}A(e),">"===o?C(e):e.state=E.ATTRIB;continue;case E.CLOSE_TAG:if(e.tagName)">"===o?P(e):v(y,o)?e.tagName+=o:e.script?(e.script+="</"+e.tagName,e.tagName="",e.state=E.SCRIPT):(b(o)||S(e,"Invalid tagname in closing tag"),e.state=E.CLOSE_TAG_SAW_WHITE);else{if(b(o))continue;!function(t,e){return!v(t,e)}(d,o)?e.tagName=o:e.script?(e.script+="</"+o,e.state=E.SCRIPT):S(e,"Invalid tagname in closing tag.")}continue;case E.CLOSE_TAG_SAW_WHITE:if(b(o))continue;">"===o?P(e):S(e,"Invalid characters in closing tag");continue;case E.TEXT_ENTITY:case E.ATTRIB_VALUE_ENTITY_Q:case E.ATTRIB_VALUE_ENTITY_U:switch(e.state){case E.TEXT_ENTITY:r=E.TEXT,n="textNode";break;case E.ATTRIB_VALUE_ENTITY_Q:r=E.ATTRIB_VALUE_QUOTED,n="attribValue";break;case E.ATTRIB_VALUE_ENTITY_U:r=E.ATTRIB_VALUE_UNQUOTED,n="attribValue"}";"===o?(e[n]+=function(t){var e,r=t.entity,n=r.toLowerCase(),i="";if(t.ENTITIES[r])return t.ENTITIES[r];if(t.ENTITIES[n])return t.ENTITIES[n];"#"===(r=n).charAt(0)&&(i="x"===r.charAt(1)?(r=r.slice(2),(e=parseInt(r,16)).toString(16)):(r=r.slice(1),(e=parseInt(r,10)).toString(10)));if(r=r.replace(/^0+/,""),isNaN(e)||i.toLowerCase()!==r)return S(t,"Invalid character entity"),"&"+t.entity+";";return String.fromCodePoint(e)}(e),e.entity="",e.state=r):v(e.entity.length?g:m,o)?e.entity+=o:(S(e,"Invalid character in entity name"),e[n]+="&"+e.entity+o,e.entity="",e.state=r);continue;default:throw new Error(e,"Unknown state: "+e.state)}}e.position>=e.bufferCheckPosition&&!function(t){for(var e=Math.max(a.MAX_BUFFER_LENGTH,10),r=0,n=0,i=u.length;n<i;n++){var o=t[u[n]].length;if(e<o)switch(u[n]){case"textNode":O(t);break;case"cdata":N(t,"oncdata",t.cdata),t.cdata="";break;case"script":N(t,"onscript",t.script),t.script="";break;default:x(t,"Max buffer length exceeded: "+u[n])}r=Math.max(r,o)}var s=a.MAX_BUFFER_LENGTH-r;t.bufferCheckPosition=s+t.position}(e);return e},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var t;O(t=this),""!==t.cdata&&(N(t,"oncdata",t.cdata),t.cdata=""),""!==t.script&&(N(t,"onscript",t.script),t.script="")}};try{n=F("stream").Stream}catch(t){n=function(){}}var i=a.EVENTS.filter(function(t){return"error"!==t&&"end"!==t});function o(t,e){if(!(this instanceof o))return new o(t,e);n.apply(this),this._parser=new s(t,e),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit("end")},this._parser.onerror=function(t){r.emit("error",t),r._parser.error=null},this._decoder=null,i.forEach(function(e){Object.defineProperty(r,"on"+e,{get:function(){return r._parser["on"+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser["on"+e]=t;r.on(e,t)},enumerable:!0,configurable:!1})})}(o.prototype=Object.create(n.prototype,{constructor:{value:o}})).write=function(t){var e;return"function"==typeof r&&"function"==typeof r.isBuffer&&r.isBuffer(t)&&(this._decoder||(e=F("string_decoder").StringDecoder,this._decoder=new e("utf8")),t=this._decoder.write(t)),this._parser.write(t.toString()),this.emit("data",t),!0},o.prototype.end=function(t){return t&&t.length&&this.write(t),this._parser.end(),!0},o.prototype.on=function(e,t){var r=this;return r._parser["on"+e]||-1===i.indexOf(e)||(r._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),r.emit.apply(r,t)}),n.prototype.on.call(r,e,t)};var l="[CDATA[",c="DOCTYPE",h="http://www.w3.org/XML/1998/namespace",p="http://www.w3.org/2000/xmlns/",f={xml:h,xmlns:p},d=/[:_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]/,y=/[:_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-]/,m=/[#:_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]/,g=/[#:_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 b(t){return" "===t||"\n"===t||"\r"===t||"\t"===t}function w(t){return'"'===t||"'"===t}function v(t,e){return t.test(e)}var t,_,T,E=0;for(t in a.STATE={BEGIN:E++,BEGIN_WHITESPACE:E++,TEXT:E++,TEXT_ENTITY:E++,OPEN_WAKA:E++,SGML_DECL:E++,SGML_DECL_QUOTED:E++,DOCTYPE:E++,DOCTYPE_QUOTED:E++,DOCTYPE_DTD:E++,DOCTYPE_DTD_QUOTED:E++,COMMENT_STARTING:E++,COMMENT:E++,COMMENT_ENDING:E++,COMMENT_ENDED:E++,CDATA:E++,CDATA_ENDING:E++,CDATA_ENDING_2:E++,PROC_INST:E++,PROC_INST_BODY:E++,PROC_INST_ENDING:E++,OPEN_TAG:E++,OPEN_TAG_SLASH:E++,ATTRIB:E++,ATTRIB_NAME:E++,ATTRIB_NAME_SAW_WHITE:E++,ATTRIB_VALUE:E++,ATTRIB_VALUE_QUOTED:E++,ATTRIB_VALUE_CLOSED:E++,ATTRIB_VALUE_UNQUOTED:E++,ATTRIB_VALUE_ENTITY_Q:E++,ATTRIB_VALUE_ENTITY_U:E++,CLOSE_TAG:E++,CLOSE_TAG_SAW_WHITE:E++,SCRIPT:E++,SCRIPT_ENDING:E++},a.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},a.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(a.ENTITIES).forEach(function(t){var e=a.ENTITIES[t],e="number"==typeof e?String.fromCharCode(e):e;a.ENTITIES[t]=e}),a.STATE)a.STATE[a.STATE[t]]=t;function D(t,e,r){t[e]&&t[e](r)}function N(t,e,r){t.textNode&&O(t),D(t,e,r)}function O(t){t.textNode=I(t.opt,t.textNode),t.textNode&&D(t,"ontext",t.textNode),t.textNode=""}function I(t,e){return t.trim&&(e=e.trim()),e=t.normalize?e.replace(/\s+/g," "):e}function x(t,e){return O(t),t.trackPosition&&(e+="\nLine: "+t.line+"\nColumn: "+t.column+"\nChar: "+t.c),e=new Error(e),t.error=e,D(t,"onerror",e),t}function L(t){return t.sawRoot&&!t.closedRoot&&S(t,"Unclosed root tag"),t.state!==E.BEGIN&&t.state!==E.BEGIN_WHITESPACE&&t.state!==E.TEXT&&x(t,"Unexpected end"),O(t),t.c="",t.closed=!0,D(t,"onend"),s.call(t,t.strict,t.opt),t}function S(t,e){if("object"!=typeof t||!(t instanceof s))throw new Error("bad call to strictFail");t.strict&&x(t,e)}function M(t,e){var r=t.indexOf(":")<0?["",t]:t.split(":"),n=r[0],r=r[1];return e&&"xmlns"===t&&(n="xmlns",r=""),{prefix:n,local:r}}function A(t){var e,r,n;t.strict||(t.attribName=t.attribName[t.looseCase]()),-1!==t.attribList.indexOf(t.attribName)||t.tag.attributes.hasOwnProperty(t.attribName)||(t.opt.xmlns?(r=(e=M(t.attribName,!0)).prefix,e=e.local,"xmlns"===r&&("xml"===e&&t.attribValue!==h?S(t,"xml: prefix must be bound to "+h+"\nActual: "+t.attribValue):"xmlns"===e&&t.attribValue!==p?S(t,"xmlns: prefix must be bound to "+p+"\nActual: "+t.attribValue):(r=t.tag,n=t.tags[t.tags.length-1]||t,r.ns===n.ns&&(r.ns=Object.create(n.ns)),r.ns[e]=t.attribValue)),t.attribList.push([t.attribName,t.attribValue])):(t.tag.attributes[t.attribName]=t.attribValue,N(t,"onattribute",{name:t.attribName,value:t.attribValue}))),t.attribName=t.attribValue=""}function C(e,t){if(e.opt.xmlns){var r=e.tag,n=M(e.tagName),n=(r.prefix=n.prefix,r.local=n.local,r.uri=r.ns[n.prefix]||"",r.prefix&&!r.uri&&(S(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),r.uri=n.prefix),e.tags[e.tags.length-1]||e);r.ns&&n.ns!==r.ns&&Object.keys(r.ns).forEach(function(t){N(e,"onopennamespace",{prefix:t,uri:r.ns[t]})});for(var i=0,o=e.attribList.length;i<o;i++){var s=e.attribList[i],a=s[0],s=s[1],u=M(a,!0),l=u.prefix,u=u.local,c=""!==l&&r.ns[l]||"",s={name:a,value:s,prefix:l,local:u,uri:c};l&&"xmlns"!==l&&!c&&(S(e,"Unbound namespace prefix: "+JSON.stringify(l)),s.uri=l),e.tag.attributes[a]=s,N(e,"onattribute",s)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),N(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=E.TEXT:e.state=E.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function P(r){if(r.tagName){if(r.script){if("script"!==r.tagName)return r.script+="</"+r.tagName+">",r.tagName="",void(r.state=E.SCRIPT);N(r,"onscript",r.script),r.script=""}for(var t=r.tags.length,e=r.tagName,n=e=r.strict?e:e[r.looseCase]();t--&&r.tags[t].name!==n;)S(r,"Unexpected close tag");if(t<0)S(r,"Unmatched closing tag: "+r.tagName),r.textNode+="</"+r.tagName+">";else{r.tagName=e;for(var i=r.tags.length;i-- >t;){var o,s=r.tag=r.tags.pop();r.tagName=r.tag.name,N(r,"onclosetag",r.tagName);for(o in s.ns)o,s.ns[o];var a=r.tags[r.tags.length-1]||r;r.opt.xmlns&&s.ns!==a.ns&&Object.keys(s.ns).forEach(function(t){var e=s.ns[t];N(r,"onclosenamespace",{prefix:t,uri:e})})}0===t&&(r.closedRoot=!0),r.tagName=r.attribValue=r.attribName="",r.attribList.length=0}}else S(r,"Weird empty close tag."),r.textNode+="</>";r.state=E.TEXT}function R(t,e){"<"===e?(t.state=E.OPEN_WAKA,t.startTagPosition=t.position):b(e)||(S(t,"Non-whitespace before first tag."),t.textNode=e,t.state=E.TEXT)}function j(t,e){var r="";return r=e<t.length?t.charAt(e):r}function e(){var t=[],e=-1,r=arguments.length;if(!r)return"";for(var n="";++e<r;){var i=Number(arguments[e]);if(!isFinite(i)||i<0||1114111<i||T(i)!==i)throw RangeError("Invalid code point: "+i);i<=65535?t.push(i):t.push(55296+((i-=65536)>>10),i%1024+56320),(e+1===r||16384<t.length)&&(n+=_.apply(null,t),t.length=0)}return n}E=a.STATE,String.fromCodePoint||(_=String.fromCharCode,T=Math.floor,Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:e,configurable:!0,writable:!0}):String.fromCodePoint=e)}.call(this)}.call(this,F("buffer").Buffer)},{buffer:6,stream:13,string_decoder:28}],13:[function(t,e,r){e.exports=n;var c=t("events").EventEmitter;function n(){c.call(this)}t("inherits")(n,c),n.Readable=t("readable-stream/lib/_stream_readable.js"),n.Writable=t("readable-stream/lib/_stream_writable.js"),n.Duplex=t("readable-stream/lib/_stream_duplex.js"),n.Transform=t("readable-stream/lib/_stream_transform.js"),n.PassThrough=t("readable-stream/lib/_stream_passthrough.js"),n.finished=t("readable-stream/lib/internal/streams/end-of-stream.js"),n.pipeline=t("readable-stream/lib/internal/streams/pipeline.js"),(n.Stream=n).prototype.pipe=function(e,t){var r=this;function n(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function u(t){if(l(),0===c.listenerCount(this,"error"))throw t}function l(){r.removeListener("data",n),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",a),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},{events:7,inherits:9,"readable-stream/lib/_stream_duplex.js":15,"readable-stream/lib/_stream_passthrough.js":16,"readable-stream/lib/_stream_readable.js":17,"readable-stream/lib/_stream_transform.js":18,"readable-stream/lib/_stream_writable.js":19,"readable-stream/lib/internal/streams/end-of-stream.js":23,"readable-stream/lib/internal/streams/pipeline.js":25}],14:[function(t,e,r){"use strict";var n={};function i(t,i,e){var r=function(n){var t,e;function r(t,e,r){return n.call(this,(t=t,e=e,r=r,"string"==typeof i?i:i(t,e,r)))||this}return e=n,(t=r).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e,r}(e=e||Error);r.prototype.name=e.name,r.prototype.code=t,n[t]=r}function u(t,e){var r;return Array.isArray(t)?(r=t.length,t=t.map(function(t){return String(t)}),2<r?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])):"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(t,e,r){var n,i,o,s,a;return"string"==typeof e&&(s="not ",e.substr(!o||o<0?0:+o,s.length)===s)?(n="must not be",e=e.replace(/^not /,"")):n="must be",o=t,s=" argument",(void 0===a||a>o.length)&&(a=o.length),o=(o.substring(a-s.length,a)===s?"The ".concat(t," "):(a=(i="number"!=typeof i?0:i)+(o=".").length>(a=t).length||-1===a.indexOf(o,i)?"argument":"property",'The "'.concat(t,'" ').concat(a," "))).concat(n," ").concat(u(e,"type")),o+=". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=n},{}],15:[function(c,h,t){!function(l){!function(){"use strict";var t=Object.keys||function(t){var e,r=[];for(e in t)r.push(e);return r},e=(h.exports=s,c("./_stream_readable")),r=c("./_stream_writable");c("inherits")(s,e);for(var n=t(r.prototype),i=0;i<n.length;i++){var o=n[i];s.prototype[o]||(s.prototype[o]=r.prototype[o])}function s(t){if(!(this instanceof s))return new s(t);e.call(this,t),r.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen)&&(this.allowHalfOpen=!1,this.once("end",a))}function a(){this._writableState.ended||l.nextTick(u,this)}function u(t){t.end()}Object.defineProperty(s.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(s.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(s.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(s.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}.call(this)}.call(this,c("_process"))},{"./_stream_readable":17,"./_stream_writable":19,_process:10,inherits:9}],16:[function(t,e,r){"use strict";e.exports=i;var n=t("./_stream_transform");function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}t("inherits")(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},{"./_stream_transform":18,inherits:9}],17:[function(B,X,t){!function(F,k){!function(){"use strict";function d(t,e){return t.listeners(e).length}(X.exports=v).ReadableState=w,B("events").EventEmitter;var n,i=B("./internal/streams/stream"),c=B("buffer").Buffer,h=(void 0!==k?k:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var o,t,r,e=B("util"),y=e&&e.debuglog?e.debuglog("stream"):function(){},s=B("./internal/streams/buffer_list"),e=B("./internal/streams/destroy"),a=B("./internal/streams/state").getHighWaterMark,u=B("../errors").codes,p=u.ERR_INVALID_ARG_TYPE,f=u.ERR_STREAM_PUSH_AFTER_EOF,l=u.ERR_METHOD_NOT_IMPLEMENTED,m=u.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,g=(B("inherits")(v,i),e.errorOrDestroy),b=["error","close","destroy","pause","resume"];function w(t,e,r){n=n||B("./_stream_duplex"),t=t||{},"boolean"!=typeof r&&(r=e instanceof n),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=a(this,t,"readableHighWaterMark",r),this.buffer=new s,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(o=o||B("string_decoder/").StringDecoder,this.decoder=new o(t.encoding),this.encoding=t.encoding)}function v(t){if(n=n||B("./_stream_duplex"),!(this instanceof v))return new v(t);var e=this instanceof n;this._readableState=new w(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy)&&(this._destroy=t.destroy),i.call(this)}function _(t,e,r,n,i){y("readableAddChunk",e);var o,s,a,u,l=t._readableState;if(null===e)l.reading=!1,s=t,a=l,y("onEofChunk"),a.ended||(a.decoder&&(u=a.decoder.end())&&u.length&&(a.buffer.push(u),a.length+=a.objectMode?1:u.length),a.ended=!0,a.sync?N(s):(a.needReadable=!1,a.emittedReadable||(a.emittedReadable=!0,O(s))));else if(o=i?o:function(t,e){var r;!function(t){return c.isBuffer(t)||t instanceof h}(e)&&"string"!=typeof e&&void 0!==e&&!t.objectMode&&(r=new p("chunk",["string","Buffer","Uint8Array"],e));return r}(l,e))g(t,o);else if(l.objectMode||e&&0<e.length)if("string"==typeof e||l.objectMode||Object.getPrototypeOf(e)===c.prototype||(u=e,e=c.from(u)),n)l.endEmitted?g(t,new m):T(t,l,e,!0);else if(l.ended)g(t,new f);else{if(l.destroyed)return!1;l.reading=!1,!l.decoder||r||(e=l.decoder.write(e),l.objectMode)||0!==e.length?T(t,l,e,!1):I(t,l)}else n||(l.reading=!1,I(t,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function T(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&N(t)),I(t,e)}Object.defineProperty(v.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=e.destroy,v.prototype._undestroy=e.undestroy,v.prototype._destroy=function(t,e){e(t)},v.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=c.from(t,e),e=""),r=!0),_(this,t,e,!1,r)},v.prototype.unshift=function(t){return _(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){for(var e=new(o=o||B("string_decoder/").StringDecoder)(t),r=(this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding,this._readableState.buffer.head),n="";null!==r;)n+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==n&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var E=1073741824;function D(t,e){var r;return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?(e.flowing&&e.length?e.buffer.head.data:e).length:(t>e.highWaterMark&&(e.highWaterMark=(E<=(r=t)?r=E:(r--,r=(r=(r=(r=(r|=r>>>1)|r>>>2)|r>>>4)|r>>>8)|r>>>16,r++),r)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function N(t){var e=t._readableState;y("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(y("emitReadable",e.flowing),e.emittedReadable=!0,F.nextTick(O,t))}function O(t){var e=t._readableState;y("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,A(t)}function I(t,e){e.readingMore||(e.readingMore=!0,F.nextTick(x,t,e))}function x(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(y("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function L(t){var e=t._readableState;e.readableListening=0<t.listenerCount("readable"),e.resumeScheduled&&!e.paused?e.flowing=!0:0<t.listenerCount("data")&&t.resume()}function S(t){y("readable nexttick read 0"),t.read(0)}function M(t,e){y("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),A(t),e.flowing&&!e.reading&&t.read(0)}function A(t){var e=t._readableState;for(y("flow",e.flowing);e.flowing&&null!==t.read(););}function C(t,e){var r;return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r)}function P(t){var e=t._readableState;y("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,F.nextTick(j,e,t))}function j(t,e){y("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy&&(!(t=e._writableState)||t.autoDestroy&&t.finished)&&e.destroy())}function R(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}v.prototype.read=function(t){y("read",t),t=parseInt(t,10);var e,r=this._readableState,n=t;return 0!==t&&(r.emittedReadable=!1),0===t&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:0<r.length)||r.ended)?(y("read: emitReadable",r.length,r.ended),(0===r.length&&r.ended?P:N)(this),null):0===(t=D(t,r))&&r.ended?(0===r.length&&P(this),null):(e=r.needReadable,y("need readable",e),(0===r.length||r.length-t<r.highWaterMark)&&y("length less than watermark",e=!0),r.ended||r.reading?y("reading or ended",e=!1):e&&(y("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(t=D(n,r))),null===(e=0<t?C(t,r):null)?(r.needReadable=r.length<=r.highWaterMark,t=0):(r.length-=t,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==t)&&r.ended&&P(this),null!==e&&this.emit("data",e),e)},v.prototype._read=function(t){g(this,new l("_read()"))},v.prototype.pipe=function(r,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=r;break;case 1:i.pipes=[i.pipes,r];break;default:i.pipes.push(r)}i.pipesCount+=1,y("pipe count=%d opts=%j",i.pipesCount,t);t=(!t||!1!==t.end)&&r!==F.stdout&&r!==F.stderr?s:f;function o(t,e){y("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,y("cleanup"),r.removeListener("close",h),r.removeListener("finish",p),r.removeListener("drain",a),r.removeListener("error",c),r.removeListener("unpipe",o),n.removeListener("end",s),n.removeListener("end",f),n.removeListener("data",l),u=!0,!i.awaitDrain||r._writableState&&!r._writableState.needDrain||a())}function s(){y("onend"),r.end()}i.endEmitted?F.nextTick(t):n.once("end",t),r.on("unpipe",o);e=n;var e,a=function(){var t=e._readableState;y("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&d(e,"data")&&(t.flowing=!0,A(e))},u=(r.on("drain",a),!1);function l(t){y("ondata");t=r.write(t);y("dest.write",t),!1===t&&((1===i.pipesCount&&i.pipes===r||1<i.pipesCount&&-1!==R(i.pipes,r))&&!u&&(y("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function c(t){y("onerror",t),f(),r.removeListener("error",c),0===d(r,"error")&&g(r,t)}function h(){r.removeListener("finish",p),f()}function p(){y("onfinish"),r.removeListener("close",h),f()}function f(){y("unpipe"),n.unpipe(r)}return n.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(r,"error",c),r.once("close",h),r.once("finish",p),r.emit("pipe",n),i.flowing||(y("pipe resume"),n.resume()),r},v.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0!==e.pipesCount)if(1===e.pipesCount)t&&t!==e.pipes||(t=t||e.pipes,e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r));else if(t){var n=R(e.pipes,t);-1!==n&&(e.pipes.splice(n,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r))}else{var i=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var s=0;s<o;s++)i[s].emit("unpipe",this,{hasUnpiped:!1})}return this},v.prototype.addListener=v.prototype.on=function(t,e){var e=i.prototype.on.call(this,t,e),r=this._readableState;return"data"===t?(r.readableListening=0<this.listenerCount("readable"),!1!==r.flowing&&this.resume()):"readable"!==t||r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,y("on readable",r.length,r.reading),r.length?N(this):r.reading||F.nextTick(S,this)),e},v.prototype.removeListener=function(t,e){e=i.prototype.removeListener.call(this,t,e);return"readable"===t&&F.nextTick(L,this),e},v.prototype.removeAllListeners=function(t){var e=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||F.nextTick(L,this),e},v.prototype.resume=function(){var t,e,r=this._readableState;return r.flowing||(y("resume"),r.flowing=!r.readableListening,t=this,(e=r).resumeScheduled)||(e.resumeScheduled=!0,F.nextTick(M,t,e)),r.paused=!1,this},v.prototype.pause=function(){return y("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(y("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},v.prototype.wrap=function(e){var t,r=this,n=this._readableState,i=!1;for(t in e.on("end",function(){var t;y("wrapped end"),n.decoder&&!n.ended&&(t=n.decoder.end())&&t.length&&r.push(t),r.push(null)}),e.on("data",function(t){y("wrapped data"),n.decoder&&(t=n.decoder.write(t)),n.objectMode&&null==t||(n.objectMode||t&&t.length)&&!r.push(t)&&(i=!0,e.pause())}),e)void 0===this[t]&&"function"==typeof e[t]&&(this[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){y("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(v.prototype[Symbol.asyncIterator]=function(){return(t=void 0===t?B("./internal/streams/async_iterator"):t)(this)}),Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(v.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(v.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),v._fromList=C,Object.defineProperty(v.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(v.from=function(t,e){return(r=void 0===r?B("./internal/streams/from"):r)(v,t,e)})}.call(this)}.call(this,B("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":14,"./_stream_duplex":15,"./internal/streams/async_iterator":20,"./internal/streams/buffer_list":21,"./internal/streams/destroy":22,"./internal/streams/from":24,"./internal/streams/state":26,"./internal/streams/stream":27,_process:10,buffer:6,events:7,inherits:9,"string_decoder/":28,util:5}],18:[function(t,e,r){"use strict";e.exports=u;var e=t("../errors").codes,n=e.ERR_METHOD_NOT_IMPLEMENTED,i=e.ERR_MULTIPLE_CALLBACK,o=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=e.ERR_TRANSFORM_WITH_LENGTH_0,a=t("./_stream_duplex");function u(t){if(!(this instanceof u))return new u(t);a.call(this,t),this._transformState={afterTransform:function(t,e){var r=this._transformState,n=(r.transforming=!1,r.writecb);if(null===n)return this.emit("error",new i);r.writechunk=null,(r.writecb=null)!=e&&this.push(e),n(t),(r=this._readableState).reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush)&&(this._flush=t.flush),this.on("prefinish",l)}function l(){var r=this;"function"!=typeof this._flush||this._readableState.destroyed?c(this,null,null):this._flush(function(t,e){c(r,t,e)})}function c(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new o;t.push(null)}t("inherits")(u,a),u.prototype.push=function(t,e){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,e)},u.prototype._transform=function(t,e,r){r(new n("_transform()"))},u.prototype._write=function(t,e,r){var n=this._transformState;n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming&&(r=this._readableState,n.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)},u.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},u.prototype._destroy=function(t,e){a.prototype._destroy.call(this,t,function(t){e(t)})}},{"../errors":14,"./_stream_duplex":15,inherits:9}],19:[function(S,M,t){!function(x,L){!function(){"use strict";function h(o){var s=this;this.next=null,this.entry=null,this.finish=function(){var t=s,e=o,r=void 0,n=t.entry;for(t.entry=null;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}}(M.exports=_).WritableState=v;var r,t={deprecate:S("util-deprecate")},n=S("./internal/streams/stream"),l=S("buffer").Buffer,c=(void 0!==L?L:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var i,e=S("./internal/streams/destroy"),o=S("./internal/streams/state").getHighWaterMark,s=S("../errors").codes,p=s.ERR_INVALID_ARG_TYPE,a=s.ERR_METHOD_NOT_IMPLEMENTED,f=s.ERR_MULTIPLE_CALLBACK,u=s.ERR_STREAM_CANNOT_PIPE,d=s.ERR_STREAM_DESTROYED,y=s.ERR_STREAM_NULL_VALUES,m=s.ERR_STREAM_WRITE_AFTER_END,g=s.ERR_UNKNOWN_ENCODING,b=e.errorOrDestroy;function w(){}function v(t,c,e){r=r||S("./_stream_duplex"),t=t||{},"boolean"!=typeof e&&(e=c instanceof r),this.objectMode=!!t.objectMode,e&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=o(this,t,"writableHighWaterMark",e),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;e=(this.destroyed=!1)===t.decodeStrings;this.decodeStrings=!e,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){var e=c,r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new f;var o,s,a,u,l=r;l.writing=!1,l.writecb=null,l.length-=l.writelen,l.writelen=0,t?(l=e,s=n,a=t,u=i,--(o=r).pendingcb,s?(x.nextTick(u,a),x.nextTick(I,l,o),l._writableState.errorEmitted=!0,b(l,a)):(u(a),l._writableState.errorEmitted=!0,b(l,a),I(l,o))):((t=N(r)||e.destroyed)||r.corked||r.bufferProcessing||!r.bufferedRequest||D(e,r),n?x.nextTick(E,e,r,t,i):E(e,r,t,i))},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new h(this)}S("inherits")(_,n),v.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e};try{Object.defineProperty(v.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}function _(t){var e=this instanceof(r=r||S("./_stream_duplex"));if(!e&&!i.call(_,this))return new _(t);this._writableState=new v(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final)&&(this._final=t.final),n.call(this)}function T(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new d("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function E(t,e,r,n){var i;r||(r=t,0===(i=e).length&&i.needDrain&&(i.needDrain=!1,r.emit("drain"))),e.pendingcb--,n(),I(t,e)}function D(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){for(var n=e.bufferedRequestCount,i=new Array(n),n=e.corkedRequestsFree,o=(n.entry=r,0),s=!0;r;)(i[o]=r).isBuf||(s=!1),r=r.next,o+=1;i.allBuffers=s,T(t,e,!0,e.length,i,"",n.finish),e.pendingcb++,e.lastBufferedRequest=null,n.next?(e.corkedRequestsFree=n.next,n.next=null):e.corkedRequestsFree=new h(e),e.bufferedRequestCount=0}else{for(;r;){var a=r.chunk,u=r.encoding,l=r.callback;if(T(t,e,!1,e.objectMode?1:a.length,a,u,l),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function N(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function O(e,r){e._final(function(t){r.pendingcb--,t&&b(e,t),r.prefinished=!0,e.emit("prefinish"),I(e,r)})}function I(t,e){var r,n,i=N(e);return i&&(r=t,(n=e).prefinished||n.finalCalled||("function"!=typeof r._final||n.destroyed?(n.prefinished=!0,r.emit("prefinish")):(n.pendingcb++,n.finalCalled=!0,x.nextTick(O,r,n))),0===e.pendingcb)&&(e.finished=!0,t.emit("finish"),e.autoDestroy)&&(!(r=t._readableState)||r.autoDestroy&&r.endEmitted)&&t.destroy(),i}"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(t){return!!i.call(this,t)||this===_&&t&&t._writableState instanceof v}})):i=function(t){return t instanceof this},_.prototype.pipe=function(){b(this,new u)},_.prototype.write=function(t,e,r){var n,i,o,s=this._writableState,a=!1,u=!s.objectMode&&(u=t,l.isBuffer(u)||u instanceof c);return u&&!l.isBuffer(t)&&(n=t,t=l.from(n)),"function"==typeof e&&(r=e,e=null),e=u?"buffer":e||s.defaultEncoding,"function"!=typeof r&&(r=w),s.ending?(n=this,i=r,o=new m,b(n,o),x.nextTick(i,o)):(u||function(t,e,r,n){var i;if(null===r?i=new y:"string"==typeof r||e.objectMode||(i=new p("chunk",["string","Buffer"],r)),!i)return 1;b(t,i),x.nextTick(n,i)}(this,s,t,r))&&(s.pendingcb++,a=function(t,e,r,n,i,o){r||(s=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r));return e}(e,n,i),n!==s&&(r=!0,i="buffer",n=s));var s=e.objectMode?1:n.length,a=(e.length+=s,e.length<e.highWaterMark);a||(e.needDrain=!0);{var u;e.writing||e.corked?(u=e.lastBufferedRequest,e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1):T(t,e,!1,s,n,i,o)}return a}(this,s,u,t,e,r)),a},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||D(this,t))},_.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase()))return this._writableState.defaultEncoding=t,this;throw new g(t)},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(t,e,r){r(new a("_write()"))},_.prototype._writev=null,_.prototype.end=function(t,e,r){var n=this._writableState;if("function"==typeof t?(r=t,e=t=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),!n.ending){t=this,e=n,n=r;e.ending=!0,I(t,e),n&&(e.finished?x.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}return this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),_.prototype.destroy=e.destroy,_.prototype._undestroy=e.undestroy,_.prototype._destroy=function(t,e){e(t)}}.call(this)}.call(this,S("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":14,"./_stream_duplex":15,"./internal/streams/destroy":22,"./internal/streams/state":26,"./internal/streams/stream":27,_process:10,buffer:6,inherits:9,"util-deprecate":30}],20:[function(n,m,t){!function(y){!function(){"use strict";var t;function r(t,e,r){(e=function(t){t=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);r=r.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==typeof t?t:String(t)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}var i=n("./end-of-stream"),o=Symbol("lastResolve"),s=Symbol("lastReject"),a=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),c=Symbol("handlePromise"),h=Symbol("stream");function p(t,e){return{value:t,done:e}}function f(t){var e,r=t[o];null!==r&&null!==(e=t[h].read())&&(t[l]=null,t[o]=null,t[s]=null,r(p(e,!1)))}var e=Object.getPrototypeOf(function(){}),d=Object.setPrototypeOf((r(t={get stream(){return this[h]},next:function(){var r=this,t=this[a];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(t,e){y.nextTick(function(){r[a]?e(r[a]):t(p(void 0,!0))})});var e,n,i,t=this[l];if(t)e=new Promise((n=t,i=this,function(t,e){n.then(function(){i[u]?t(p(void 0,!0)):i[c](t,e)},e)}));else{t=this[h].read();if(null!==t)return Promise.resolve(p(t,!1));e=new Promise(this[c])}return this[l]=e}},Symbol.asyncIterator,function(){return this}),r(t,"return",function(){var t=this;return new Promise(function(e,r){t[h].destroy(null,function(t){t?r(t):e(p(void 0,!0))})})}),t),e);m.exports=function(t){var e,n=Object.create(d,(r(e={},h,{value:t,writable:!0}),r(e,o,{value:null,writable:!0}),r(e,s,{value:null,writable:!0}),r(e,a,{value:null,writable:!0}),r(e,u,{value:t._readableState.endEmitted,writable:!0}),r(e,c,{value:function(t,e){var r=n[h].read();r?(n[l]=null,n[o]=null,n[s]=null,t(p(r,!1))):(n[o]=t,n[s]=e)},writable:!0}),e));return n[l]=null,i(t,function(t){var e;t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code?(null!==(e=n[s])&&(n[l]=null,n[o]=null,n[s]=null,e(t)),n[a]=t):(null!==(e=n[o])&&(n[l]=null,n[o]=null,e(p(void 0,!(n[s]=null)))),n[u]=!0)}),t.on("readable",function(t){y.nextTick(f,t)}.bind(null,n)),n}}.call(this)}.call(this,n("_process"))},{"./end-of-stream":23,_process:10}],21:[function(t,e,r){"use strict";function o(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function i(n){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?o(Object(i),!0).forEach(function(t){var e,r;e=n,r=i[t=t],(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))})}return n}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){t=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);r=r.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==typeof t?t:String(t)}var u=t("buffer").Buffer,l=t("util").inspect,c=l&&l.custom||"inspect";e.exports=function(){function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.head=null,this.tail=null,this.length=0}var e,r,n;return e=t,(r=[{key:"push",value:function(t){t={data:t,next:null};0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(t){t={data:t,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){var t;if(0!==this.length)return t=this.head.data,1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return u.alloc(0);for(var e,r,n=u.allocUnsafe(t>>>0),i=this.head,o=0;i;)e=i.data,r=o,u.prototype.copy.call(e,n,r),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0===(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=i.slice(o);break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=u.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0===(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r).data=i.slice(o);break}++n}return this.length-=n,e}},{key:c,value:function(t,e){return l(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},{buffer:6,util:5}],22:[function(t,e,r){!function(u){!function(){"use strict";function o(t,e){a(t,e),s(t)}function s(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function a(t,e){t.emit("error",e)}e.exports={destroy:function(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,u.nextTick(a,this,t)):u.nextTick(a,this,t)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?r._writableState?r._writableState.errorEmitted?u.nextTick(s,r):(r._writableState.errorEmitted=!0,u.nextTick(o,r,t)):u.nextTick(o,r,t):e?(u.nextTick(s,r),e(t)):u.nextTick(s,r)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}}.call(this)}.call(this,t("_process"))},{_process:10}],23:[function(t,e,r){"use strict";var g=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function b(){}e.exports=function t(e,r,n){var i,o,s,a,u,l,c,h,p,f,d,y,m;return"function"==typeof r?t(e,null,r):(i=n||b,o=!1,n=function(){if(!o){o=!0;for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];i.apply(this,e)}},s=(r=r||{}).readable||!1!==r.readable&&e.readable,a=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||c()},l=e._writableState&&e._writableState.finished,c=function(){l=!(a=!1),s||n.call(e)},h=e._readableState&&e._readableState.endEmitted,p=function(){h=!(s=!1),a||n.call(e)},f=function(t){n.call(e,t)},d=function(){var t;return s&&!h?(e._readableState&&e._readableState.ended||(t=new g),n.call(e,t)):a&&!l?(e._writableState&&e._writableState.ended||(t=new g),n.call(e,t)):void 0},y=function(){e.req.on("finish",c)},(m=e).setHeader&&"function"==typeof m.abort?(e.on("complete",c),e.on("abort",d),e.req?y():e.on("request",y)):a&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",p),e.on("finish",c),!1!==r.error&&e.on("error",f),e.on("close",d),function(){e.removeListener("complete",c),e.removeListener("abort",d),e.removeListener("request",y),e.req&&e.req.removeListener("finish",c),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("end",p),e.removeListener("error",f),e.removeListener("close",d)})}},{"../../../errors":14}],24:[function(t,e,r){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],25:[function(u,t,e){"use strict";var l;var r=u("../../../errors").codes,a=r.ERR_MISSING_ARGS,c=r.ERR_STREAM_DESTROYED;function h(t){if(t)throw t}function p(r,t,e,n){i=n,o=!1;var i,o,s=!(n=function(){o||(o=!0,i.apply(void 0,arguments))}),a=(r.on("close",function(){s=!0}),(l=void 0===l?u("./end-of-stream"):l)(r,{readable:t,writable:e},function(t){if(t)return n(t);s=!0,n()}),!1);return function(t){var e;if(!s&&!a)return a=!0,(e=r).setHeader&&"function"==typeof e.abort?r.abort():"function"==typeof r.destroy?r.destroy():void n(t||new c("pipe"))}}function f(t){t()}function d(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];var r,i,o=!(r=n).length||"function"!=typeof r[r.length-1]?h:r.pop();if((n=Array.isArray(n[0])?n[0]:n).length<2)throw new a("streams");var s=n.map(function(t,e){var r=e<n.length-1;return p(t,r,0<e,function(t){i=i||t,t&&s.forEach(f),r||(s.forEach(f),o(i))})});return n.reduce(d)}},{"../../../errors":14,"./end-of-stream":23}],26:[function(t,e,r){"use strict";var s=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(t,e,r,n){o=n,i=r;var i,o=null!=(e=e).highWaterMark?e.highWaterMark:o?e[i]:null;if(null==o)return t.objectMode?16:16384;if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new s(n?r:"highWaterMark",o);return Math.floor(o)}}},{"../../../errors":14}],27:[function(t,e,r){e.exports=t("events").EventEmitter},{events:7}],28:[function(t,e,r){"use strict";var n=t("safe-buffer").Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"==typeof e||n.isEncoding!==i&&i(t))return e||t;throw new Error("Unknown encoding: "+t)}function s(t){var e;switch(this.encoding=o(t),this.encoding){case"utf16le":this.text=l,this.end=c,e=4;break;case"utf8":this.fillLast=u,e=4;break;case"base64":this.text=h,this.end=p,e=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function u(t){var e,r=this.lastTotal-this.lastNeed,n=(e=this,128!=(192&(n=t)[0])?(e.lastNeed=0,"�"):1<e.lastNeed&&1<n.length?128!=(192&n[1])?(e.lastNeed=1,"�"):2<e.lastNeed&&2<n.length&&128!=(192&n[2])?(e.lastNeed=2,"�"):void 0:void 0);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,r,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1);e=t.toString("utf16le",e);if(e){var r=e.charCodeAt(e.length-1);if(55296<=r&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],e.slice(0,-1)}return e}function c(t){var e,t=t&&t.length?this.write(t):"";return this.lastNeed?(e=this.lastTotal-this.lastNeed,t+this.lastChar.toString("utf16le",0,e)):t}function h(t,e){var r=(t.length-e)%3;return 0==r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1==r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function p(t){t=t&&t.length?this.write(t):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}(r.StringDecoder=s).prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},s.prototype.end=function(t){t=t&&t.length?this.write(t):"";return this.lastNeed?t+"�":t},s.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(!(n<r)){var i=a(e[n]);if(0<=i)return 0<i&&(t.lastNeed=i-1),i;if(!(--n<r||-2===i)){if(0<=(i=a(e[n])))return 0<i&&(t.lastNeed=i-2),i;if(!(--n<r||-2===i)&&0<=(i=a(e[n])))return 0<i&&(2===i?i=0:t.lastNeed=i-3),i}}return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;r=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":11}],29:[function(u,t,l){!function(r,a){!function(){var n=u("process/browser.js").nextTick,t=Function.prototype.apply,i=Array.prototype.slice,o={},s=0;function e(t,e){this._id=t,this._clearFn=e}l.setTimeout=function(){return new e(t.call(setTimeout,window,arguments),clearTimeout)},l.setInterval=function(){return new e(t.call(setInterval,window,arguments),clearInterval)},l.clearTimeout=l.clearInterval=function(t){t.close()},e.prototype.unref=e.prototype.ref=function(){},e.prototype.close=function(){this._clearFn.call(window,this._id)},l.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},l.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},l._unrefActive=l.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},l.setImmediate="function"==typeof r?r:function(t){var e=s++,r=!(arguments.length<2)&&i.call(arguments,1);return o[e]=!0,n(function(){o[e]&&(r?t.apply(null,r):t.call(null),l.clearImmediate(e))}),e},l.clearImmediate="function"==typeof a?a:function(t){delete o[t]}}.call(this)}.call(this,u("timers").setImmediate,u("timers").clearImmediate)},{"process/browser.js":10,timers:29}],30:[function(t,r,e){!function(e){!function(){function n(t){try{if(!e.localStorage)return}catch(t){return}t=e.localStorage[t];return null!=t&&"true"===String(t).toLowerCase()}r.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],31:[function(t,e,r){!function(){"use strict";r.stripBOM=function(t){return"\ufeff"===t[0]?t.substring(1):t}}.call(this)},{}],32:[function(n,t,o){!function(){"use strict";var r,i,e,p,f,d={}.hasOwnProperty;function t(t){var e,r,n;for(e in this.options={},r=i[.2])d.call(r,e)&&(n=r[e],this.options[e]=n);for(e in t)d.call(t,e)&&(n=t[e],this.options[e]=n)}r=n("xmlbuilder"),i=n("./defaults").defaults,p=function(t){return"string"==typeof t&&(0<=t.indexOf("&")||0<=t.indexOf(">")||0<=t.indexOf("<"))},f=function(t){return"<![CDATA["+e(t)+"]]>"},e=function(t){return t.replace("]]>","]]]]><![CDATA[>")},o.Builder=(t.prototype.buildObject=function(t){var u,e,l,c=this.options.attrkey,h=this.options.charkey;return 1===Object.keys(t).length&&this.options.rootName===i[.2].rootName?t=t[e=Object.keys(t)[0]]:e=this.options.rootName,l=this,u=function(t,e){var r,n,i,o,s,a;if("object"!=typeof e)l.options.cdata&&p(e)?t.raw(f(e)):t.txt(e);else if(Array.isArray(e)){for(o in e)if(d.call(e,o))for(s in n=e[o])i=n[s],t=u(t.ele(s),i).up()}else for(s in e)if(d.call(e,s))if(n=e[s],s===c){if("object"==typeof n)for(r in n)a=n[r],t=t.att(r,a)}else if(s===h)t=l.options.cdata&&p(n)?t.raw(f(n)):t.txt(n);else if(Array.isArray(n))for(o in n)d.call(n,o)&&(t=("string"==typeof(i=n[o])?l.options.cdata&&p(i)?t.ele(s).raw(f(i)):t.ele(s,i):u(t.ele(s),i)).up());else t=("object"==typeof n?u(t.ele(s),n):"string"==typeof n&&l.options.cdata&&p(n)?t.ele(s).raw(f(n)):(null==n&&(n=""),t.ele(s,n.toString()))).up();return t},e=r.create(e,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),u(e,t).end(this.options.renderOpts)},t)}.call(this)},{"./defaults":33,xmlbuilder:69}],33:[function(t,e,r){!function(){r.defaults={.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:""},.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:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}.call(this)},{}],34:[function(t,e,y){!function(){"use strict";function o(t,e){return function(){return t.apply(e,arguments)}}var p={}.hasOwnProperty,u=t("sax"),s=t("events"),a=t("./bom"),l=t("./processors"),c=t("timers").setImmediate,h=t("./defaults").defaults,f=function(t){return"object"==typeof t&&null!=t&&0===Object.keys(t).length},d=function(t,e,r){for(var n=0,i=t.length;n<i;n++)e=(0,t[n])(e,r);return e};y.Parser=function(){var t,e=i,r=s;for(t in r)p.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t){var e,r,n;if(this.parseStringPromise=o(this.parseStringPromise,this),this.parseString=o(this.parseString,this),this.reset=o(this.reset,this),this.assignOrPush=o(this.assignOrPush,this),this.processAsync=o(this.processAsync,this),!(this instanceof y.Parser))return new y.Parser(t);for(e in this.options={},r=h[.2])p.call(r,e)&&(n=r[e],this.options[e]=n);for(e in t)p.call(t,e)&&(n=t[e],this.options[e]=n);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(l.normalize)),this.reset()}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,i.prototype.processAsync=function(){var e;try{return this.remaining.length<=this.options.chunkSize?(e=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(e),this.saxParser.close()):(e=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(e),c(this.processAsync))}catch(t){if(e=t,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(e)}},i.prototype.assignOrPush=function(t,e,r){return e in t?(t[e]instanceof Array||(t[e]=[t[e]]),t[e].push(r)):this.options.explicitArray?t[e]=[r]:t[e]=r},i.prototype.reset=function(){var s,l,e,c,r,t,a,h,n;return this.removeAllListeners(),this.saxParser=u.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(r=this,function(t){if(r.saxParser.resume(),!r.saxParser.errThrown)return r.saxParser.errThrown=!0,r.emit("error",t)}),this.saxParser.onend=(t=this,function(){if(!t.saxParser.ended)return t.saxParser.ended=!0,t.emit("end",t.resultObject)}),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,c=[],s=this.options.attrkey,l=this.options.charkey,this.saxParser.onopentag=(a=this,function(t){var e,r,n,i,o=Object.create(null);if(o[l]="",!a.options.ignoreAttrs)for(e in i=t.attributes)p.call(i,e)&&(s in o||a.options.mergeAttrs||(o[s]=Object.create(null)),r=a.options.attrValueProcessors?d(a.options.attrValueProcessors,t.attributes[e],e):t.attributes[e],n=a.options.attrNameProcessors?d(a.options.attrNameProcessors,e):e,a.options.mergeAttrs?a.assignOrPush(o,n,r):o[s][n]=r);return o["#name"]=a.options.tagNameProcessors?d(a.options.tagNameProcessors,t.name):t.name,a.options.xmlns&&(o[a.options.xmlnskey]={uri:t.uri,local:t.local}),c.push(o)}),this.saxParser.onclosetag=(h=this,function(){var t,e,n,r,i,o,s,a=c.pop(),u=a["#name"];if(h.options.explicitChildren&&h.options.preserveChildrenOrder||delete a["#name"],!0===a.cdata&&(i=a.cdata,delete a.cdata),o=c[c.length-1],a[l].match(/^\s*$/)&&!i?(t=a[l],delete a[l]):(h.options.trim&&(a[l]=a[l].trim()),h.options.normalize&&(a[l]=a[l].replace(/\s{2,}/g," ").trim()),a[l]=h.options.valueProcessors?d(h.options.valueProcessors,a[l],u):a[l],1===Object.keys(a).length&&l in a&&!h.EXPLICIT_CHARKEY&&(a=a[l])),f(a)&&(a="function"==typeof h.options.emptyTag?h.options.emptyTag():""!==h.options.emptyTag?h.options.emptyTag:t),null!=h.options.validator&&(s="/"+function(){for(var t=[],e=0,r=c.length;e<r;e++)n=c[e],t.push(n["#name"]);return t}().concat(u).join("/"),function(){try{a=h.options.validator(s,o&&o[u],a)}catch(t){return h.emit("error",t)}}()),h.options.explicitChildren&&!h.options.mergeAttrs&&"object"==typeof a)if(h.options.preserveChildrenOrder){if(o){for(e in o[h.options.childkey]=o[h.options.childkey]||[],r=Object.create(null),a)p.call(a,e)&&(r[e]=a[e]);o[h.options.childkey].push(r),delete a["#name"],1===Object.keys(a).length&&l in a&&!h.EXPLICIT_CHARKEY&&(a=a[l])}}else n=Object.create(null),h.options.attrkey in a&&(n[h.options.attrkey]=a[h.options.attrkey],delete a[h.options.attrkey]),!h.options.charsAsChildren&&h.options.charkey in a&&(n[h.options.charkey]=a[h.options.charkey],delete a[h.options.charkey]),0<Object.getOwnPropertyNames(a).length&&(n[h.options.childkey]=a),a=n;return 0<c.length?h.assignOrPush(o,u,a):(h.options.explicitRoot&&(i=a,(a=Object.create(null))[u]=i),h.resultObject=a,h.saxParser.ended=!0,h.emit("end",h.resultObject))}),e=function(t){var e,r=c[c.length-1];if(r)return r[l]+=t,n.options.explicitChildren&&n.options.preserveChildrenOrder&&n.options.charsAsChildren&&(n.options.includeWhiteChars||""!==t.replace(/\\n/g,"").trim())&&(r[n.options.childkey]=r[n.options.childkey]||[],(e={"#name":"__text__"})[l]=t,n.options.normalize&&(e[l]=e[l].replace(/\s{2,}/g," ").trim()),r[n.options.childkey].push(e)),r},(n=this).saxParser.ontext=e,this.saxParser.oncdata=function(t){t=e(t);if(t)return t.cdata=!0}},i.prototype.parseString=function(e,r){null!=r&&"function"==typeof r&&(this.on("end",function(t){return this.reset(),r(null,t)}),this.on("error",function(t){return this.reset(),r(t)}));try{return""===(e=e.toString()).trim()?(this.emit("end",null),!0):(e=a.stripBOM(e),this.options.async?(this.remaining=e,c(this.processAsync),this.saxParser):this.saxParser.write(e).close())}catch(t){if(e=t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",e),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw e}},i.prototype.parseStringPromise=function(t){return new Promise((e=this,function(r,n){return e.parseString(t,function(t,e){return t?n(t):r(e)})}));var e},i}(),y.parseString=function(t,e,r){var n,i;return null!=r?("function"==typeof r&&(n=r),"object"==typeof e&&(i=e)):("function"==typeof e&&(n=e),i={}),new y.Parser(i).parseString(t,n)},y.parseStringPromise=function(t,e){var r;return new y.Parser(r="object"==typeof e?e:r).parseStringPromise(t)}}.call(this)},{"./bom":31,"./defaults":33,"./processors":35,events:7,sax:12,timers:29}],35:[function(t,e,r){!function(){"use strict";var e=new RegExp(/(?!xmlns)^.*:/);r.normalize=function(t){return t.toLowerCase()},r.firstCharLowerCase=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},r.stripPrefix=function(t){return t.replace(e,"")},r.parseNumbers=function(t){return t=isNaN(t)?t:t%1==0?parseInt(t,10):parseFloat(t)},r.parseBooleans=function(t){return t=/^(?:true|false)$/i.test(t)?"true"===t.toLowerCase():t}}.call(this)},{}],36:[function(i,t,o){!function(){"use strict";var s={}.hasOwnProperty,t=i("./defaults"),e=i("./builder"),r=i("./parser"),n=i("./processors");o.defaults=t.defaults,o.processors=n,o.ValidationError=function(t){var e,r=o,n=t;for(e in n)s.call(n,e)&&(r[e]=n[e]);function i(){this.constructor=r}function o(t){this.message=t}return i.prototype=n.prototype,r.prototype=new i,r.__super__=n.prototype,o}(Error),o.Builder=e.Builder,o.Parser=r.Parser,o.parseString=r.parseString,o.parseStringPromise=r.parseStringPromise}.call(this)},{"./builder":32,"./defaults":33,"./parser":34,"./processors":35}],37:[function(t,e,r){!function(){e.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}.call(this)},{}],38:[function(t,e,r){!function(){e.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(this)},{}],39:[function(t,o,e){!function(){var s=[].slice,a={}.hasOwnProperty,u=function(t){return!!t&&"[object Function]"===Object.prototype.toString.call(t)},e=function(t){return!!t&&("function"==(t=typeof t)||"object"==t)},r=function(t){return u(Array.isArray)?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},t=function(t){if(r(t))return!t.length;for(var e in t)if(a.call(t,e))return!1;return!0},n=function(t){return e(t)&&(t=Object.getPrototypeOf(t))&&(t=t.constructor)&&"function"==typeof t&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},i=function(t){return u(t.valueOf)?t.valueOf():t};o.exports.assign=function(){var t,e,r,n,i=arguments[0],o=2<=arguments.length?s.call(arguments,1):[];if(u(Object.assign))Object.assign.apply(null,arguments);else for(t=0,r=o.length;t<r;t++)if(null!=(n=o[t]))for(e in n)a.call(n,e)&&(i[e]=n[e]);return i},o.exports.isFunction=u,o.exports.isObject=e,o.exports.isArray=r,o.exports.isEmpty=t,o.exports.isPlainObject=n,o.exports.getValue=i}.call(this)},{}],40:[function(t,e,r){!function(){e.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}.call(this)},{}],41:[function(e,r,t){!function(){var n;function t(t,e,r){if(this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==e)throw new Error("Missing attribute name. "+this.debugInfo(e));this.name=this.stringify.name(e),this.value=this.stringify.attValue(r),this.type=n.Attribute,this.isId=!1,this.schemaTypeInfo=null}n=e("./NodeType"),e("./XMLNode"),r.exports=(Object.defineProperty(t.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(t.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(t.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(t.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(t.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(t.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(t.prototype,"specified",{get:function(){return!0}}),t.prototype.clone=function(){return Object.create(this)},t.prototype.toString=function(t){return this.options.writer.attribute(this,this.options.writer.filterOptions(t))},t.prototype.debugInfo=function(t){return null==(t=t||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+t+"}, parent: <"+this.parent.name+">"},t.prototype.isEqualNode=function(t){return t.namespaceURI===this.namespaceURI&&t.prefix===this.prefix&&t.localName===this.localName&&t.value===this.value},t)}.call(this)},{"./NodeType":38,"./XMLNode":60}],42:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./NodeType"),a=t("./XMLCharacterData");e.exports=function(){var t,e=i,r=a;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t,e){if(i.__super__.constructor.call(this,t),null==e)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=s.CData,this.value=this.stringify.cdata(e)}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(t){return this.options.writer.cdata(this,this.options.writer.filterOptions(t))},i}()}.call(this)},{"./NodeType":38,"./XMLCharacterData":43}],43:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./XMLNode");e.exports=function(){var t,e=i,r=s;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t){i.__super__.constructor.call(this,t),this.value=""}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,Object.defineProperty(i.prototype,"data",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(i.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.substringData=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.appendData=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.insertData=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.deleteData=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.replaceData=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.isEqualNode=function(t){return!!i.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)&&t.data===this.data},i}()}.call(this)},{"./XMLNode":60}],44:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./NodeType"),a=t("./XMLCharacterData");e.exports=function(){var t,e=i,r=a;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t,e){if(i.__super__.constructor.call(this,t),null==e)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=s.Comment,this.value=this.stringify.comment(e)}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(t){return this.options.writer.comment(this,this.options.writer.filterOptions(t))},i}()}.call(this)},{"./NodeType":38,"./XMLCharacterData":43}],45:[function(n,i,t){!function(){var t,e;function r(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new t,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=Object.create(this.defaultParams)}t=n("./XMLDOMErrorHandler"),e=n("./XMLDOMStringList"),i.exports=(Object.defineProperty(r.prototype,"parameterNames",{get:function(){return new e(Object.keys(this.defaultParams))}}),r.prototype.getParameter=function(t){return this.params.hasOwnProperty(t)?this.params[t]:null},r.prototype.canSetParameter=function(t,e){return!0},r.prototype.setParameter=function(t,e){return null!=e?this.params[t]=e:delete this.params[t]},r)}.call(this)},{"./XMLDOMErrorHandler":46,"./XMLDOMStringList":48}],46:[function(t,e,r){!function(){function t(){}e.exports=(t.prototype.handleError=function(t){throw new Error(t)},t)}.call(this)},{}],47:[function(t,e,r){!function(){function t(){}e.exports=(t.prototype.hasFeature=function(t,e){return!0},t.prototype.createDocumentType=function(t,e,r){throw new Error("This DOM method is not implemented.")},t.prototype.createDocument=function(t,e,r){throw new Error("This DOM method is not implemented.")},t.prototype.createHTMLDocument=function(t){throw new Error("This DOM method is not implemented.")},t.prototype.getFeature=function(t,e){throw new Error("This DOM method is not implemented.")},t)}.call(this)},{}],48:[function(t,e,r){!function(){function t(t){this.arr=t||[]}e.exports=(Object.defineProperty(t.prototype,"length",{get:function(){return this.arr.length}}),t.prototype.item=function(t){return this.arr[t]||null},t.prototype.contains=function(t){return-1!==this.arr.indexOf(t)},t)}.call(this)},{}],49:[function(t,e,r){!function(){var i={}.hasOwnProperty,o=t("./XMLNode"),a=t("./NodeType");e.exports=function(){var t,e=s,r=o;for(t in r)i.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function s(t,e,r,n,i,o){if(s.__super__.constructor.call(this,t),null==e)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==r)throw new Error("Missing DTD attribute name. "+this.debugInfo(e));if(!n)throw new Error("Missing DTD attribute type. "+this.debugInfo(e));if(!i)throw new Error("Missing DTD attribute default. "+this.debugInfo(e));if(!(i=0!==i.indexOf("#")?"#"+i:i).match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(e));if(o&&!i.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(e));this.elementName=this.stringify.name(e),this.type=a.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(n),o&&(this.defaultValue=this.stringify.dtdAttDefault(o)),this.defaultValueType=i}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,s.prototype.toString=function(t){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(t))},s}()}.call(this)},{"./NodeType":38,"./XMLNode":60}],50:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./XMLNode"),a=t("./NodeType");e.exports=function(){var t,e=i,r=s;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t,e,r){if(i.__super__.constructor.call(this,t),null==e)throw new Error("Missing DTD element name. "+this.debugInfo());r=r||"(#PCDATA)",Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.name(e),this.type=a.ElementDeclaration,this.value=this.stringify.dtdElementValue(r)}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,i.prototype.toString=function(t){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(t))},i}()}.call(this)},{"./NodeType":38,"./XMLNode":60}],51:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./Utility").isObject,a=t("./XMLNode"),u=t("./NodeType");e.exports=function(){var t,e=i,r=a;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t,e,r,n){if(i.__super__.constructor.call(this,t),null==r)throw new Error("Missing DTD entity name. "+this.debugInfo(r));if(null==n)throw new Error("Missing DTD entity value. "+this.debugInfo(r));if(this.pe=!!e,this.name=this.stringify.name(r),this.type=u.EntityDeclaration,s(n)){if(!n.pubID&&!n.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(r));if(n.pubID&&!n.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(r));if(this.internal=!1,null!=n.pubID&&(this.pubID=this.stringify.dtdPubID(n.pubID)),null!=n.sysID&&(this.sysID=this.stringify.dtdSysID(n.sysID)),null!=n.nData&&(this.nData=this.stringify.dtdNData(n.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(r))}else this.value=this.stringify.dtdEntityValue(n),this.internal=!0}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,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.prototype.toString=function(t){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(t))},i}()}.call(this)},{"./NodeType":38,"./Utility":39,"./XMLNode":60}],52:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./XMLNode"),a=t("./NodeType");e.exports=function(){var t,e=i,r=s;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t,e,r){if(i.__super__.constructor.call(this,t),null==e)throw new Error("Missing DTD notation name. "+this.debugInfo(e));if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(e));this.name=this.stringify.name(e),this.type=a.NotationDeclaration,null!=r.pubID&&(this.pubID=this.stringify.dtdPubID(r.pubID)),null!=r.sysID&&(this.sysID=this.stringify.dtdSysID(r.sysID))}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,Object.defineProperty(i.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(i.prototype,"systemId",{get:function(){return this.sysID}}),i.prototype.toString=function(t){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(t))},i}()}.call(this)},{"./NodeType":38,"./XMLNode":60}],53:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./Utility").isObject,a=t("./XMLNode"),u=t("./NodeType");e.exports=function(){var t,e=i,r=a;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t,e,r,n){i.__super__.constructor.call(this,t),s(e)&&(e=(t=e).version,r=t.encoding,n=t.standalone),e=e||"1.0",this.type=u.Declaration,this.version=this.stringify.xmlVersion(e),null!=r&&(this.encoding=this.stringify.xmlEncoding(r)),null!=n&&(this.standalone=this.stringify.xmlStandalone(n))}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,i.prototype.toString=function(t){return this.options.writer.declaration(this,this.options.writer.filterOptions(t))},i}()}.call(this)},{"./NodeType":38,"./Utility":39,"./XMLNode":60}],54:[function(t,e,r){!function(){var i={}.hasOwnProperty,u=t("./Utility").isObject,o=t("./XMLNode"),l=t("./NodeType"),s=t("./XMLDTDAttList"),c=t("./XMLDTDEntity"),h=t("./XMLDTDElement"),p=t("./XMLDTDNotation"),f=t("./XMLNamedNodeMap");e.exports=function(){var t,e=a,r=o;for(t in r)i.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function a(t,e,r){var n,i,o,s;if(a.__super__.constructor.call(this,t),this.type=l.DocType,t.children)for(i=0,o=(s=t.children).length;i<o;i++)if((n=s[i]).type===l.Element){this.name=n.name;break}this.documentObject=t,u(e)&&(e=(t=e).pubID,r=t.sysID),null==r&&(r=(t=[e,r])[0],e=t[1]),null!=e&&(this.pubID=this.stringify.dtdPubID(e)),null!=r&&(this.sysID=this.stringify.dtdSysID(r))}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,Object.defineProperty(a.prototype,"entities",{get:function(){for(var t,e={},r=this.children,n=0,i=r.length;n<i;n++)(t=r[n]).type!==l.EntityDeclaration||t.pe||(e[t.name]=t);return new f(e)}}),Object.defineProperty(a.prototype,"notations",{get:function(){for(var t,e={},r=this.children,n=0,i=r.length;n<i;n++)(t=r[n]).type===l.NotationDeclaration&&(e[t.name]=t);return new f(e)}}),Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(a.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),a.prototype.element=function(t,e){t=new h(this,t,e);return this.children.push(t),this},a.prototype.attList=function(t,e,r,n,i){t=new s(this,t,e,r,n,i);return this.children.push(t),this},a.prototype.entity=function(t,e){t=new c(this,!1,t,e);return this.children.push(t),this},a.prototype.pEntity=function(t,e){t=new c(this,!0,t,e);return this.children.push(t),this},a.prototype.notation=function(t,e){t=new p(this,t,e);return this.children.push(t),this},a.prototype.toString=function(t){return this.options.writer.docType(this,this.options.writer.filterOptions(t))},a.prototype.ele=function(t,e){return this.element(t,e)},a.prototype.att=function(t,e,r,n,i){return this.attList(t,e,r,n,i)},a.prototype.ent=function(t,e){return this.entity(t,e)},a.prototype.pent=function(t,e){return this.pEntity(t,e)},a.prototype.not=function(t,e){return this.notation(t,e)},a.prototype.up=function(){return this.root()||this.documentObject},a.prototype.isEqualNode=function(t){return!!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)&&t.name===this.name&&t.publicId===this.publicId&&t.systemId===this.systemId},a}()}.call(this)},{"./NodeType":38,"./Utility":39,"./XMLDTDAttList":49,"./XMLDTDElement":50,"./XMLDTDEntity":51,"./XMLDTDNotation":52,"./XMLNamedNodeMap":59,"./XMLNode":60}],55:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./Utility").isPlainObject,a=t("./XMLDOMImplementation"),u=t("./XMLDOMConfiguration"),l=t("./XMLNode"),c=t("./NodeType"),h=t("./XMLStringifier"),p=t("./XMLStringWriter");e.exports=function(){var t,e=i,r=l;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t){i.__super__.constructor.call(this,null),this.name="#document",this.type=c.Document,this.documentURI=null,this.domConfig=new u,(t=t||{}).writer||(t.writer=new p),this.options=t,this.stringify=new h(t)}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,Object.defineProperty(i.prototype,"implementation",{value:new a}),Object.defineProperty(i.prototype,"doctype",{get:function(){for(var t,e=this.children,r=0,n=e.length;r<n;r++)if((t=e[r]).type===c.DocType)return t;return null}}),Object.defineProperty(i.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(i.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(i.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(i.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===c.Declaration?this.children[0].encoding:null}}),Object.defineProperty(i.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===c.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(i.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===c.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(i.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(i.prototype,"origin",{get:function(){return null}}),Object.defineProperty(i.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(i.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(i.prototype,"contentType",{get:function(){return null}}),i.prototype.end=function(t){var e={};return t?s(t)&&(e=t,t=this.options.writer):t=this.options.writer,t.document(this,t.filterOptions(e))},i.prototype.toString=function(t){return this.options.writer.document(this,this.options.writer.filterOptions(t))},i.prototype.createElement=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createTextNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createComment=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createCDATASection=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createProcessingInstruction=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createAttribute=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createEntityReference=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.importNode=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createElementNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createAttributeNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByTagNameNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementById=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.adoptNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.renameNode=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.getElementsByClassName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createEvent=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createNodeIterator=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.createTreeWalker=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},i}()}.call(this)},{"./NodeType":38,"./Utility":39,"./XMLDOMConfiguration":45,"./XMLDOMImplementation":47,"./XMLNode":60,"./XMLStringWriter":65,"./XMLStringifier":66}],56:[function(N,O,t){!function(){var l,o,i,e,r,s,n,a,u,c,h,p,f,d,y,m,g,b,w,v,_,T,t,E={}.hasOwnProperty;function D(t,e,r){var n;this.name="?xml",this.type=l.Document,n={},(t=t||{}).writer?T(t.writer)&&(n=t.writer,t.writer=new m):t.writer=new m,this.options=t,this.writer=t.writer,this.writerOptions=this.writer.filterOptions(n),this.stringify=new g(t),this.onDataCallback=e||function(){},this.onEndCallback=r||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}t=N("./Utility"),_=t.isObject,v=t.isFunction,T=t.isPlainObject,w=t.getValue,l=N("./NodeType"),p=N("./XMLDocument"),f=N("./XMLElement"),e=N("./XMLCData"),r=N("./XMLComment"),y=N("./XMLRaw"),b=N("./XMLText"),d=N("./XMLProcessingInstruction"),c=N("./XMLDeclaration"),h=N("./XMLDocType"),s=N("./XMLDTDAttList"),a=N("./XMLDTDEntity"),n=N("./XMLDTDElement"),u=N("./XMLDTDNotation"),i=N("./XMLAttribute"),g=N("./XMLStringifier"),m=N("./XMLStringWriter"),o=N("./WriterState"),O.exports=(D.prototype.createChildNode=function(t){var e,r,n,i,o,s,a,u;switch(t.type){case l.CData:this.cdata(t.value);break;case l.Comment:this.comment(t.value);break;case l.Element:for(r in n={},a=t.attribs)E.call(a,r)&&(e=a[r],n[r]=e.value);this.node(t.name,n);break;case l.Dummy:this.dummy();break;case l.Raw:this.raw(t.value);break;case l.Text:this.text(t.value);break;case l.ProcessingInstruction:this.instruction(t.target,t.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+t.constructor.name)}for(o=0,s=(u=t.children).length;o<s;o++)i=u[o],this.createChildNode(i),i.type===l.Element&&this.up();return this},D.prototype.dummy=function(){return this},D.prototype.node=function(t,e,r){var n;if(null==t)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(t));return this.openCurrent(),t=w(t),e=w(e=null==e?{}:e),_(e)||(r=(n=[e,r])[0],e=n[1]),this.currentNode=new f(this,t,e),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=r&&this.text(r),this},D.prototype.element=function(t,e,r){var n,i,o,s,a,u;if(this.currentNode&&this.currentNode.type===l.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(t)||_(t)||v(t))for(s=this.options.noValidation,this.options.noValidation=!0,(u=new p(this.options).element("TEMP_ROOT")).element(t),this.options.noValidation=s,i=0,o=(a=u.children).length;i<o;i++)n=a[i],this.createChildNode(n),n.type===l.Element&&this.up();else this.node(t,e,r);return this},D.prototype.attribute=function(t,e){var r,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(t));if(null!=t&&(t=w(t)),_(t))for(r in t)E.call(t,r)&&(n=t[r],this.attribute(r,n));else v(e)&&(e=e.apply()),this.options.keepNullAttributes&&null==e?this.currentNode.attribs[t]=new i(this,t,""):null!=e&&(this.currentNode.attribs[t]=new i(this,t,e));return this},D.prototype.text=function(t){return this.openCurrent(),t=new b(this,t),this.onData(this.writer.text(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.cdata=function(t){return this.openCurrent(),t=new e(this,t),this.onData(this.writer.cdata(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.comment=function(t){return this.openCurrent(),t=new r(this,t),this.onData(this.writer.comment(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.raw=function(t){return this.openCurrent(),t=new y(this,t),this.onData(this.writer.raw(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.instruction=function(t,e){var r,n,i,o;if(this.openCurrent(),null!=t&&(t=w(t)),null!=e&&(e=w(e)),Array.isArray(t))for(r=0,o=t.length;r<o;r++)n=t[r],this.instruction(n);else if(_(t))for(n in t)E.call(t,n)&&(i=t[n],this.instruction(n,i));else v(e)&&(e=e.apply()),e=new d(this,t,e),this.onData(this.writer.processingInstruction(e,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},D.prototype.declaration=function(t,e,r){if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return t=new c(this,t,e,r),this.onData(this.writer.declaration(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.doctype=function(t,e,r){if(this.openCurrent(),null==t)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new h(this,e,r),this.currentNode.rootNodeName=t,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},D.prototype.dtdElement=function(t,e){return this.openCurrent(),t=new n(this,t,e),this.onData(this.writer.dtdElement(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.attList=function(t,e,r,n,i){return this.openCurrent(),t=new s(this,t,e,r,n,i),this.onData(this.writer.dtdAttList(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.entity=function(t,e){return this.openCurrent(),t=new a(this,!1,t,e),this.onData(this.writer.dtdEntity(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.pEntity=function(t,e){return this.openCurrent(),t=new a(this,!0,t,e),this.onData(this.writer.dtdEntity(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.prototype.notation=function(t,e){return this.openCurrent(),t=new u(this,t,e),this.onData(this.writer.dtdNotation(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},D.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},D.prototype.end=function(){for(;0<=this.currentLevel;)this.up();return this.onEnd()},D.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},D.prototype.openNode=function(t){var e,r,n,i;if(!t.isOpen){if(this.root||0!==this.currentLevel||t.type!==l.Element||(this.root=t),r="",t.type===l.Element){for(n in this.writerOptions.state=o.OpenTag,r=this.writer.indent(t,this.writerOptions,this.currentLevel)+"<"+t.name,i=t.attribs)E.call(i,n)&&(e=i[n],r+=this.writer.attribute(e,this.writerOptions,this.currentLevel));r+=(t.children?">":"/>")+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=o.InsideTag}else this.writerOptions.state=o.OpenTag,r=this.writer.indent(t,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+t.rootNodeName,t.pubID&&t.sysID?r+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(r+=' SYSTEM "'+t.sysID+'"'),t.children?(r+=" [",this.writerOptions.state=o.InsideTag):(this.writerOptions.state=o.CloseTag,r+=">"),r+=this.writer.endline(t,this.writerOptions,this.currentLevel);return this.onData(r,this.currentLevel),t.isOpen=!0}},D.prototype.closeNode=function(t){var e;if(!t.isClosed)return e="",this.writerOptions.state=o.CloseTag,e=t.type===l.Element?this.writer.indent(t,this.writerOptions,this.currentLevel)+"</"+t.name+">"+this.writer.endline(t,this.writerOptions,this.currentLevel):this.writer.indent(t,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=o.None,this.onData(e,this.currentLevel),t.isClosed=!0},D.prototype.onData=function(t,e){return this.documentStarted=!0,this.onDataCallback(t,e+1)},D.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},D.prototype.debugInfo=function(t){return null==t?"":"node: <"+t+">"},D.prototype.ele=function(){return this.element.apply(this,arguments)},D.prototype.nod=function(t,e,r){return this.node(t,e,r)},D.prototype.txt=function(t){return this.text(t)},D.prototype.dat=function(t){return this.cdata(t)},D.prototype.com=function(t){return this.comment(t)},D.prototype.ins=function(t,e){return this.instruction(t,e)},D.prototype.dec=function(t,e,r){return this.declaration(t,e,r)},D.prototype.dtd=function(t,e,r){return this.doctype(t,e,r)},D.prototype.e=function(t,e,r){return this.element(t,e,r)},D.prototype.n=function(t,e,r){return this.node(t,e,r)},D.prototype.t=function(t){return this.text(t)},D.prototype.d=function(t){return this.cdata(t)},D.prototype.c=function(t){return this.comment(t)},D.prototype.r=function(t){return this.raw(t)},D.prototype.i=function(t,e){return this.instruction(t,e)},D.prototype.att=function(){return(this.currentNode&&this.currentNode.type===l.DocType?this.attList:this.attribute).apply(this,arguments)},D.prototype.a=function(){return(this.currentNode&&this.currentNode.type===l.DocType?this.attList:this.attribute).apply(this,arguments)},D.prototype.ent=function(t,e){return this.entity(t,e)},D.prototype.pent=function(t,e){return this.pEntity(t,e)},D.prototype.not=function(t,e){return this.notation(t,e)},D)}.call(this)},{"./NodeType":38,"./Utility":39,"./WriterState":40,"./XMLAttribute":41,"./XMLCData":42,"./XMLComment":44,"./XMLDTDAttList":49,"./XMLDTDElement":50,"./XMLDTDEntity":51,"./XMLDTDNotation":52,"./XMLDeclaration":53,"./XMLDocType":54,"./XMLDocument":55,"./XMLElement":58,"./XMLProcessingInstruction":62,"./XMLRaw":63,"./XMLStringWriter":65,"./XMLStringifier":66,"./XMLText":67}],57:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./XMLNode"),a=t("./NodeType");e.exports=function(){var t,e=i,r=s;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t){i.__super__.constructor.call(this,t),this.type=a.Dummy}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(t){return""},i}()}.call(this)},{"./NodeType":38,"./XMLNode":60}],58:[function(e,r,t){!function(){var i={}.hasOwnProperty,t=e("./Utility"),o=t.isObject,s=t.isFunction,u=t.getValue,l=e("./XMLNode"),c=e("./NodeType"),h=e("./XMLAttribute"),p=e("./XMLNamedNodeMap");r.exports=function(){var t,e=a,r=l;for(t in r)i.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function a(t,e,r){var n,i,o,s;if(a.__super__.constructor.call(this,t),null==e)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(e),this.type=c.Element,this.attribs={},(this.schemaTypeInfo=null)!=r&&this.attribute(r),t.type===c.Document&&(this.isRoot=!0,(this.documentObject=t).rootObject=this,t.children))for(i=0,o=(s=t.children).length;i<o;i++)if((n=s[i]).type===c.DocType){n.name=this.name;break}}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,Object.defineProperty(a.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(a.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(a.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(a.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new p(this.attribs)),this.attributeMap}}),a.prototype.clone=function(){var t,e,r,n=Object.create(this);for(e in n.isRoot&&(n.documentObject=null),n.attribs={},r=this.attribs)i.call(r,e)&&(t=r[e],n.attribs[e]=t.clone());return n.children=[],this.children.forEach(function(t){t=t.clone();return(t.parent=n).children.push(t)}),n},a.prototype.attribute=function(t,e){var r,n;if(null!=t&&(t=u(t)),o(t))for(r in t)i.call(t,r)&&(n=t[r],this.attribute(r,n));else s(e)&&(e=e.apply()),this.options.keepNullAttributes&&null==e?this.attribs[t]=new h(this,t,""):null!=e&&(this.attribs[t]=new h(this,t,e));return this},a.prototype.removeAttribute=function(t){var e,r,n;if(null==t)throw new Error("Missing attribute name. "+this.debugInfo());if(t=u(t),Array.isArray(t))for(r=0,n=t.length;r<n;r++)e=t[r],delete this.attribs[e];else delete this.attribs[t];return this},a.prototype.toString=function(t){return this.options.writer.element(this,this.options.writer.filterOptions(t))},a.prototype.att=function(t,e){return this.attribute(t,e)},a.prototype.a=function(t,e){return this.attribute(t,e)},a.prototype.getAttribute=function(t){return this.attribs.hasOwnProperty(t)?this.attribs[t].value:null},a.prototype.setAttribute=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNode=function(t){return this.attribs.hasOwnProperty(t)?this.attribs[t]:null},a.prototype.setAttributeNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNS=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNodeNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNodeNS=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasAttribute=function(t){return this.attribs.hasOwnProperty(t)},a.prototype.hasAttributeNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttribute=function(t,e){return this.attribs.hasOwnProperty(t)?this.attribs[t].isId:e},a.prototype.setIdAttributeNS=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttributeNode=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByClassName=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(t){var e,r,n;if(!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(t))return!1;if(t.namespaceURI!==this.namespaceURI)return!1;if(t.prefix!==this.prefix)return!1;if(t.localName!==this.localName)return!1;if(t.attribs.length!==this.attribs.length)return!1;for(e=r=0,n=this.attribs.length-1;0<=n?r<=n:n<=r;e=0<=n?++r:--r)if(!this.attribs[e].isEqualNode(t.attribs[e]))return!1;return!0},a}()}.call(this)},{"./NodeType":38,"./Utility":39,"./XMLAttribute":41,"./XMLNamedNodeMap":59,"./XMLNode":60}],59:[function(t,e,r){!function(){function t(t){this.nodes=t}e.exports=(Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.getNamedItem=function(t){return this.nodes[t]},t.prototype.setNamedItem=function(t){var e=this.nodes[t.nodeName];return this.nodes[t.nodeName]=t,e||null},t.prototype.removeNamedItem=function(t){var e=this.nodes[t];return delete this.nodes[t],e||null},t.prototype.item=function(t){return this.nodes[Object.keys(this.nodes)[t]]||null},t.prototype.getNamedItemNS=function(t,e){throw new Error("This DOM method is not implemented.")},t.prototype.setNamedItemNS=function(t){throw new Error("This DOM method is not implemented.")},t.prototype.removeNamedItemNS=function(t,e){throw new Error("This DOM method is not implemented.")},t)}.call(this)},{}],60:[function(w,v,t){!function(){var r,h,e,n,i,p,o,s,a,u,l,c,f,d,y,m,t,g={}.hasOwnProperty;function b(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,s||(s=w("./XMLElement"),e=w("./XMLCData"),n=w("./XMLComment"),i=w("./XMLDeclaration"),p=w("./XMLDocType"),l=w("./XMLRaw"),c=w("./XMLText"),u=w("./XMLProcessingInstruction"),o=w("./XMLDummy"),h=w("./NodeType"),a=w("./XMLNodeList"),w("./XMLNamedNodeMap"),r=w("./DocumentPosition"))}t=w("./Utility"),m=t.isObject,y=t.isFunction,d=t.isEmpty,f=t.getValue,r=a=h=o=u=c=l=p=i=n=e=s=null,v.exports=(Object.defineProperty(b.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(b.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(b.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(b.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(b.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new a(this.children)),this.childNodeList}}),Object.defineProperty(b.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(b.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(b.prototype,"previousSibling",{get:function(){var t=this.parent.children.indexOf(this);return this.parent.children[t-1]||null}}),Object.defineProperty(b.prototype,"nextSibling",{get:function(){var t=this.parent.children.indexOf(this);return this.parent.children[t+1]||null}}),Object.defineProperty(b.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(b.prototype,"textContent",{get:function(){var t,e,r,n,i;if(this.nodeType!==h.Element&&this.nodeType!==h.DocumentFragment)return null;for(i="",e=0,r=(n=this.children).length;e<r;e++)(t=n[e]).textContent&&(i+=t.textContent);return i},set:function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),b.prototype.setParent=function(t){var e,r,n,i,o;for((this.parent=t)&&(this.options=t.options,this.stringify=t.stringify),o=[],r=0,n=(i=this.children).length;r<n;r++)e=i[r],o.push(e.setParent(this));return o},b.prototype.element=function(t,e,r){var n,i,o,s,a,u,l,c,h,p=null;if(null===e&&null==r&&(e=(c=[{},null])[0],r=c[1]),e=f(e=null==e?{}:e),m(e)||(r=(c=[e,r])[0],e=c[1]),null!=t&&(t=f(t)),Array.isArray(t))for(o=0,u=t.length;o<u;o++)i=t[o],p=this.element(i);else if(y(t))p=this.element(t.apply());else if(m(t)){for(a in t)if(g.call(t,a))if(h=t[a],y(h)&&(h=h.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===a.indexOf(this.stringify.convertAttKey))p=this.attribute(a.substr(this.stringify.convertAttKey.length),h);else if(!this.options.separateArrayItems&&Array.isArray(h)&&d(h))p=this.dummy();else if(m(h)&&d(h))p=this.element(a);else if(this.options.keepNullNodes||null!=h)if(!this.options.separateArrayItems&&Array.isArray(h))for(s=0,l=h.length;s<l;s++)i=h[s],(n={})[a]=i,p=this.element(n);else m(h)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===a.indexOf(this.stringify.convertTextKey)?p=this.element(h):(p=this.element(a)).element(h):p=this.element(a,h);else p=this.dummy()}else p=this.options.keepNullNodes||null!==r?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===t.indexOf(this.stringify.convertTextKey)?this.text(r):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===t.indexOf(this.stringify.convertCDataKey)?this.cdata(r):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===t.indexOf(this.stringify.convertCommentKey)?this.comment(r):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===t.indexOf(this.stringify.convertRawKey)?this.raw(r):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===t.indexOf(this.stringify.convertPIKey)?this.instruction(t.substr(this.stringify.convertPIKey.length),r):this.node(t,e,r):this.dummy();if(null==p)throw new Error("Could not create any elements with: "+t+". "+this.debugInfo());return p},b.prototype.insertBefore=function(t,e,r){var n,i,o,s;if(null!=t&&t.type)return o=e,(i=t).setParent(this),o?(n=children.indexOf(o),s=children.splice(n),children.push(i),Array.prototype.push.apply(children,s)):children.push(i),i;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(t));return n=this.parent.children.indexOf(this),s=this.parent.children.splice(n),o=this.parent.element(t,e,r),Array.prototype.push.apply(this.parent.children,s),o},b.prototype.insertAfter=function(t,e,r){var n;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(t));return n=this.parent.children.indexOf(this),n=this.parent.children.splice(n+1),t=this.parent.element(t,e,r),Array.prototype.push.apply(this.parent.children,n),t},b.prototype.remove=function(){var t;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return t=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[t,t-t+1].concat([])),this.parent},b.prototype.node=function(t,e,r){var n;return null!=t&&(t=f(t)),e=f(e=e||{}),m(e)||(r=(n=[e,r])[0],e=n[1]),n=new s(this,t,e),null!=r&&n.text(r),this.children.push(n),n},b.prototype.text=function(t){return m(t)&&this.element(t),t=new c(this,t),this.children.push(t),this},b.prototype.cdata=function(t){t=new e(this,t);return this.children.push(t),this},b.prototype.comment=function(t){t=new n(this,t);return this.children.push(t),this},b.prototype.commentBefore=function(t){var e=this.parent.children.indexOf(this),e=this.parent.children.splice(e);this.parent.comment(t);return Array.prototype.push.apply(this.parent.children,e),this},b.prototype.commentAfter=function(t){var e=this.parent.children.indexOf(this),e=this.parent.children.splice(e+1);this.parent.comment(t);return Array.prototype.push.apply(this.parent.children,e),this},b.prototype.raw=function(t){t=new l(this,t);return this.children.push(t),this},b.prototype.dummy=function(){return new o(this)},b.prototype.instruction=function(t,e){var r,n,i,o;if(null!=t&&(t=f(t)),null!=e&&(e=f(e)),Array.isArray(t))for(i=0,o=t.length;i<o;i++)r=t[i],this.instruction(r);else if(m(t))for(r in t)g.call(t,r)&&(n=t[r],this.instruction(r,n));else y(e)&&(e=e.apply()),e=new u(this,t,e),this.children.push(e);return this},b.prototype.instructionBefore=function(t,e){var r=this.parent.children.indexOf(this),r=this.parent.children.splice(r);this.parent.instruction(t,e);return Array.prototype.push.apply(this.parent.children,r),this},b.prototype.instructionAfter=function(t,e){var r=this.parent.children.indexOf(this),r=this.parent.children.splice(r+1);this.parent.instruction(t,e);return Array.prototype.push.apply(this.parent.children,r),this},b.prototype.declaration=function(t,e,r){var n=this.document(),t=new i(n,t,e,r);return 0!==n.children.length&&n.children[0].type===h.Declaration?n.children[0]=t:n.children.unshift(t),n.root()||n},b.prototype.dtd=function(t,e){for(var r,n,i,o,s=this.document(),a=new p(s,t,e),u=s.children,l=r=0,c=u.length;r<c;l=++r)if(u[l].type===h.DocType)return s.children[l]=a;for(l=n=0,i=(o=s.children).length;n<i;l=++n)if(o[l].isRoot)return s.children.splice(l,0,a),a;return s.children.push(a),a},b.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},b.prototype.root=function(){for(var t=this;t;){if(t.type===h.Document)return t.rootObject;if(t.isRoot)return t;t=t.parent}},b.prototype.document=function(){for(var t=this;t;){if(t.type===h.Document)return t;t=t.parent}},b.prototype.end=function(t){return this.document().end(t)},b.prototype.prev=function(){var t=this.parent.children.indexOf(this);if(t<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[t-1]},b.prototype.next=function(){var t=this.parent.children.indexOf(this);if(-1===t||t===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[t+1]},b.prototype.importDocument=function(t){t=t.root().clone();return t.parent=this,t.isRoot=!1,this.children.push(t),this},b.prototype.debugInfo=function(t){var e;return null!=(t=t||this.name)||null!=(e=this.parent)&&e.name?null==t?"parent: <"+this.parent.name+">":null!=(e=this.parent)&&e.name?"node: <"+t+">, parent: <"+this.parent.name+">":"node: <"+t+">":""},b.prototype.ele=function(t,e,r){return this.element(t,e,r)},b.prototype.nod=function(t,e,r){return this.node(t,e,r)},b.prototype.txt=function(t){return this.text(t)},b.prototype.dat=function(t){return this.cdata(t)},b.prototype.com=function(t){return this.comment(t)},b.prototype.ins=function(t,e){return this.instruction(t,e)},b.prototype.doc=function(){return this.document()},b.prototype.dec=function(t,e,r){return this.declaration(t,e,r)},b.prototype.e=function(t,e,r){return this.element(t,e,r)},b.prototype.n=function(t,e,r){return this.node(t,e,r)},b.prototype.t=function(t){return this.text(t)},b.prototype.d=function(t){return this.cdata(t)},b.prototype.c=function(t){return this.comment(t)},b.prototype.r=function(t){return this.raw(t)},b.prototype.i=function(t,e){return this.instruction(t,e)},b.prototype.u=function(){return this.up()},b.prototype.importXMLBuilder=function(t){return this.importDocument(t)},b.prototype.replaceChild=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeChild=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.appendChild=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.hasChildNodes=function(){return 0!==this.children.length},b.prototype.cloneNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isSupported=function(t,e){return!0},b.prototype.hasAttributes=function(){return 0!==this.attribs.length},b.prototype.compareDocumentPosition=function(t){var e;return this===t?0:this.document()!==t.document()?(e=r.Disconnected|r.ImplementationSpecific,Math.random()<.5?e|=r.Preceding:e|=r.Following,e):this.isAncestor(t)?r.Contains|r.Preceding:this.isDescendant(t)?r.Contains|r.Following:this.isPreceding(t)?r.Preceding:r.Following},b.prototype.isSameNode=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupPrefix=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isDefaultNamespace=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupNamespaceURI=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(t){var e,r,n;if(t.nodeType!==this.nodeType)return!1;if(t.children.length!==this.children.length)return!1;for(e=r=0,n=this.children.length-1;0<=n?r<=n:n<=r;e=0<=n?++r:--r)if(!this.children[e].isEqualNode(t.children[e]))return!1;return!0},b.prototype.getFeature=function(t,e){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setUserData=function(t,e,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getUserData=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.contains=function(t){return!!t&&(t===this||this.isDescendant(t))},b.prototype.isDescendant=function(t){for(var e,r=this.children,n=0,i=r.length;n<i;n++){if(t===(e=r[n]))return!0;if(e.isDescendant(t))return!0}return!1},b.prototype.isAncestor=function(t){return t.isDescendant(this)},b.prototype.isPreceding=function(t){var t=this.treePosition(t),e=this.treePosition(this);return-1!==t&&-1!==e&&t<e},b.prototype.isFollowing=function(t){var t=this.treePosition(t),e=this.treePosition(this);return-1!==t&&-1!==e&&e<t},b.prototype.treePosition=function(e){var r=0,n=!1;return this.foreachTreeNode(this.document(),function(t){if(r++,!n&&t===e)return n=!0}),n?r:-1},b.prototype.foreachTreeNode=function(t,e){for(var r,n,i,o=0,s=(n=(t=t||this.document()).children).length;o<s;o++){if(i=e(r=n[o]))return i;if(i=this.foreachTreeNode(r,e))return i}},b)}.call(this)},{"./DocumentPosition":37,"./NodeType":38,"./Utility":39,"./XMLCData":42,"./XMLComment":44,"./XMLDeclaration":53,"./XMLDocType":54,"./XMLDummy":57,"./XMLElement":58,"./XMLNamedNodeMap":59,"./XMLNodeList":61,"./XMLProcessingInstruction":62,"./XMLRaw":63,"./XMLText":67}],61:[function(t,e,r){!function(){function t(t){this.nodes=t}e.exports=(Object.defineProperty(t.prototype,"length",{get:function(){return this.nodes.length||0}}),t.prototype.clone=function(){return this.nodes=null},t.prototype.item=function(t){return this.nodes[t]||null},t)}.call(this)},{}],62:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./NodeType"),a=t("./XMLCharacterData");e.exports=function(){var t,e=i,r=a;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t,e,r){if(i.__super__.constructor.call(this,t),null==e)throw new Error("Missing instruction target. "+this.debugInfo());this.type=s.ProcessingInstruction,this.target=this.stringify.insTarget(e),this.name=this.target,r&&(this.value=this.stringify.insValue(r))}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(t){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(t))},i.prototype.isEqualNode=function(t){return!!i.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)&&t.target===this.target},i}()}.call(this)},{"./NodeType":38,"./XMLCharacterData":43}],63:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./NodeType"),a=t("./XMLNode");e.exports=function(){var t,e=i,r=a;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t,e){if(i.__super__.constructor.call(this,t),null==e)throw new Error("Missing raw text. "+this.debugInfo());this.type=s.Raw,this.value=this.stringify.raw(e)}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(t){return this.options.writer.raw(this,this.options.writer.filterOptions(t))},i}()}.call(this)},{"./NodeType":38,"./XMLNode":60}],64:[function(t,e,r){!function(){var p={}.hasOwnProperty,f=t("./NodeType"),o=t("./XMLWriterBase"),d=t("./WriterState");e.exports=function(){var t,e=i,r=o;for(t in r)p.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t,e){this.stream=t,i.__super__.constructor.call(this,e)}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,i.prototype.endline=function(t,e,r){return t.isLastRootNode&&e.state===d.CloseTag?"":i.__super__.endline.call(this,t,e,r)},i.prototype.document=function(t,e){for(var r,n,i,o,s,a,u=t.children,l=n=0,c=u.length;n<c;l=++n)(r=u[l]).isLastRootNode=l===t.children.length-1;for(e=this.filterOptions(e),a=[],i=0,o=(s=t.children).length;i<o;i++)r=s[i],a.push(this.writeChildNode(r,e,0));return a},i.prototype.attribute=function(t,e,r){return this.stream.write(i.__super__.attribute.call(this,t,e,r))},i.prototype.cdata=function(t,e,r){return this.stream.write(i.__super__.cdata.call(this,t,e,r))},i.prototype.comment=function(t,e,r){return this.stream.write(i.__super__.comment.call(this,t,e,r))},i.prototype.declaration=function(t,e,r){return this.stream.write(i.__super__.declaration.call(this,t,e,r))},i.prototype.docType=function(t,e,r){var n,i,o,s;if(this.openNode(t,e,r=r||0),e.state=d.OpenTag,this.stream.write(this.indent(t,e,r)),this.stream.write("<!DOCTYPE "+t.root().name),t.pubID&&t.sysID?this.stream.write(' PUBLIC "'+t.pubID+'" "'+t.sysID+'"'):t.sysID&&this.stream.write(' SYSTEM "'+t.sysID+'"'),0<t.children.length){for(this.stream.write(" ["),this.stream.write(this.endline(t,e,r)),e.state=d.InsideTag,i=0,o=(s=t.children).length;i<o;i++)n=s[i],this.writeChildNode(n,e,r+1);e.state=d.CloseTag,this.stream.write("]")}return e.state=d.CloseTag,this.stream.write(e.spaceBeforeSlash+">"),this.stream.write(this.endline(t,e,r)),e.state=d.None,this.closeNode(t,e,r)},i.prototype.element=function(t,e,r){var n,i,o,s,a,u,l,c,h;for(l in this.openNode(t,e,r=r||0),e.state=d.OpenTag,this.stream.write(this.indent(t,e,r)+"<"+t.name),c=t.attribs)p.call(c,l)&&(n=c[l],this.attribute(n,e,r));if(s=0===(o=t.children.length)?null:t.children[0],0===o||t.children.every(function(t){return(t.type===f.Text||t.type===f.Raw)&&""===t.value}))e.allowEmpty?(this.stream.write(">"),e.state=d.CloseTag,this.stream.write("</"+t.name+">")):(e.state=d.CloseTag,this.stream.write(e.spaceBeforeSlash+"/>"));else if(!e.pretty||1!==o||s.type!==f.Text&&s.type!==f.Raw||null==s.value){for(this.stream.write(">"+this.endline(t,e,r)),e.state=d.InsideTag,a=0,u=(h=t.children).length;a<u;a++)i=h[a],this.writeChildNode(i,e,r+1);e.state=d.CloseTag,this.stream.write(this.indent(t,e,r)+"</"+t.name+">")}else this.stream.write(">"),e.state=d.InsideTag,e.suppressPrettyCount++,this.writeChildNode(s,e,r+1),e.suppressPrettyCount--,e.state=d.CloseTag,this.stream.write("</"+t.name+">");return this.stream.write(this.endline(t,e,r)),e.state=d.None,this.closeNode(t,e,r)},i.prototype.processingInstruction=function(t,e,r){return this.stream.write(i.__super__.processingInstruction.call(this,t,e,r))},i.prototype.raw=function(t,e,r){return this.stream.write(i.__super__.raw.call(this,t,e,r))},i.prototype.text=function(t,e,r){return this.stream.write(i.__super__.text.call(this,t,e,r))},i.prototype.dtdAttList=function(t,e,r){return this.stream.write(i.__super__.dtdAttList.call(this,t,e,r))},i.prototype.dtdElement=function(t,e,r){return this.stream.write(i.__super__.dtdElement.call(this,t,e,r))},i.prototype.dtdEntity=function(t,e,r){return this.stream.write(i.__super__.dtdEntity.call(this,t,e,r))},i.prototype.dtdNotation=function(t,e,r){return this.stream.write(i.__super__.dtdNotation.call(this,t,e,r))},i}()}.call(this)},{"./NodeType":38,"./WriterState":40,"./XMLWriterBase":68}],65:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./XMLWriterBase");e.exports=function(){var t,e=i,r=s;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t){i.__super__.constructor.call(this,t)}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,i.prototype.document=function(t,e){var r,n,i,o,s;for(e=this.filterOptions(e),o="",n=0,i=(s=t.children).length;n<i;n++)r=s[n],o+=this.writeChildNode(r,e,0);return o=e.pretty&&o.slice(-e.newline.length)===e.newline?o.slice(0,-e.newline.length):o},i}()}.call(this)},{"./XMLWriterBase":68}],66:[function(t,e,r){!function(){function i(t,e){return function(){return t.apply(e,arguments)}}var o={}.hasOwnProperty;function t(t){var e,r,n;for(e in this.assertLegalName=i(this.assertLegalName,this),this.assertLegalChar=i(this.assertLegalChar,this),this.options=t=t||{},this.options.version||(this.options.version="1.0"),r=t.stringify||{})o.call(r,e)&&(n=r[e],this[e]=n)}e.exports=(t.prototype.name=function(t){return this.options.noValidation?t:this.assertLegalName(""+t||"")},t.prototype.text=function(t){return this.options.noValidation?t:this.assertLegalChar(this.textEscape(""+t||""))},t.prototype.cdata=function(t){return this.options.noValidation?t:(t=(t=""+t||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(t))},t.prototype.comment=function(t){if(this.options.noValidation)return t;if((t=""+t||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+t);return this.assertLegalChar(t)},t.prototype.raw=function(t){return this.options.noValidation?t:""+t||""},t.prototype.attValue=function(t){return this.options.noValidation?t:this.assertLegalChar(this.attEscape(t=""+t||""))},t.prototype.insTarget=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.insValue=function(t){if(this.options.noValidation)return t;if((t=""+t||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+t);return this.assertLegalChar(t)},t.prototype.xmlVersion=function(t){if(this.options.noValidation)return t;if((t=""+t||"").match(/1\.[0-9]+/))return t;throw new Error("Invalid version number: "+t)},t.prototype.xmlEncoding=function(t){if(this.options.noValidation)return t;if((t=""+t||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))return this.assertLegalChar(t);throw new Error("Invalid encoding: "+t)},t.prototype.xmlStandalone=function(t){return this.options.noValidation?t:t?"yes":"no"},t.prototype.dtdPubID=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdSysID=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdElementValue=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdAttType=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdAttDefault=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdEntityValue=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.dtdNData=function(t){return this.options.noValidation?t:this.assertLegalChar(""+t||"")},t.prototype.convertAttKey="@",t.prototype.convertPIKey="?",t.prototype.convertTextKey="#text",t.prototype.convertCDataKey="#cdata",t.prototype.convertCommentKey="#comment",t.prototype.convertRawKey="#raw",t.prototype.assertLegalChar=function(t){var e;if(!this.options.noValidation)if("1.0"===this.options.version){if(e=t.match(/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+t+" at index "+e.index)}else if("1.1"===this.options.version&&(e=t.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)))throw new Error("Invalid character in string: "+t+" at index "+e.index);return t},t.prototype.assertLegalName=function(t){if(this.options.noValidation)return t;if(this.assertLegalChar(t),t.match(/^([: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])*$/))return t;throw new Error("Invalid character in name")},t.prototype.textEscape=function(t){var e;return this.options.noValidation?t:(e=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
"))},t.prototype.attEscape=function(t){var e;return this.options.noValidation?t:(e=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,t.replace(e,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
"))},t)}.call(this)},{}],67:[function(t,e,r){!function(){var o={}.hasOwnProperty,s=t("./NodeType"),a=t("./XMLCharacterData");e.exports=function(){var t,e=i,r=a;for(t in r)o.call(r,t)&&(e[t]=r[t]);function n(){this.constructor=e}function i(t,e){if(i.__super__.constructor.call(this,t),null==e)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=s.Text,this.value=this.stringify.text(e)}return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,Object.defineProperty(i.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(i.prototype,"wholeText",{get:function(){for(var t,e="",r=this.previousSibling;r;)e=r.data+e,r=r.previousSibling;for(e+=this.data,t=this.nextSibling;t;)e+=t.data,t=t.nextSibling;return e}}),i.prototype.clone=function(){return Object.create(this)},i.prototype.toString=function(t){return this.options.writer.text(this,this.options.writer.filterOptions(t))},i.prototype.splitText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i.prototype.replaceWholeText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},i}()}.call(this)},{"./NodeType":38,"./XMLCharacterData":43}],68:[function(e,r,t){!function(){var g,b,n,w={}.hasOwnProperty;function t(t){var e,r,n;for(e in r=(this.options=t=t||{}).writer||{})w.call(r,e)&&(n=r[e],this["_"+e]=this[e],this[e]=n)}n=e("./Utility").assign,g=e("./NodeType"),e("./XMLDeclaration"),e("./XMLDocType"),e("./XMLCData"),e("./XMLComment"),e("./XMLElement"),e("./XMLRaw"),e("./XMLText"),e("./XMLProcessingInstruction"),e("./XMLDummy"),e("./XMLDTDAttList"),e("./XMLDTDElement"),e("./XMLDTDEntity"),e("./XMLDTDNotation"),b=e("./WriterState"),r.exports=(t.prototype.filterOptions=function(t){var e,r;return t=n({},this.options,t=t||{}),(e={writer:this}).pretty=t.pretty||!1,e.allowEmpty=t.allowEmpty||!1,e.indent=null!=(r=t.indent)?r:" ",e.newline=null!=(r=t.newline)?r:"\n",e.offset=null!=(r=t.offset)?r:0,e.dontPrettyTextNodes=null!=(r=null!=(r=t.dontPrettyTextNodes)?r:t.dontprettytextnodes)?r:0,e.spaceBeforeSlash=null!=(r=null!=(r=t.spaceBeforeSlash)?r:t.spacebeforeslash)?r:"",!0===e.spaceBeforeSlash&&(e.spaceBeforeSlash=" "),e.suppressPrettyCount=0,e.user={},e.state=b.None,e},t.prototype.indent=function(t,e,r){return e.pretty&&!e.suppressPrettyCount&&e.pretty&&0<(r=(r||0)+e.offset+1)?new Array(r).join(e.indent):""},t.prototype.endline=function(t,e,r){return!e.pretty||e.suppressPrettyCount?"":e.newline},t.prototype.attribute=function(t,e,r){var n;return this.openAttribute(t,e,r),n=" "+t.name+'="'+t.value+'"',this.closeAttribute(t,e,r),n},t.prototype.cdata=function(t,e,r){var n;return this.openNode(t,e,r),e.state=b.OpenTag,n=this.indent(t,e,r)+"<![CDATA[",e.state=b.InsideTag,n+=t.value,e.state=b.CloseTag,n+="]]>"+this.endline(t,e,r),e.state=b.None,this.closeNode(t,e,r),n},t.prototype.comment=function(t,e,r){var n;return this.openNode(t,e,r),e.state=b.OpenTag,n=this.indent(t,e,r)+"\x3c!-- ",e.state=b.InsideTag,n+=t.value,e.state=b.CloseTag,n+=" --\x3e"+this.endline(t,e,r),e.state=b.None,this.closeNode(t,e,r),n},t.prototype.declaration=function(t,e,r){var n;return this.openNode(t,e,r),e.state=b.OpenTag,n=this.indent(t,e,r)+"<?xml",e.state=b.InsideTag,n+=' version="'+t.version+'"',null!=t.encoding&&(n+=' encoding="'+t.encoding+'"'),null!=t.standalone&&(n+=' standalone="'+t.standalone+'"'),e.state=b.CloseTag,n=(n+=e.spaceBeforeSlash+"?>")+this.endline(t,e,r),e.state=b.None,this.closeNode(t,e,r),n},t.prototype.docType=function(t,e,r){var n,i,o,s,a;if(this.openNode(t,e,r=r||0),e.state=b.OpenTag,s=this.indent(t,e,r),s+="<!DOCTYPE "+t.root().name,t.pubID&&t.sysID?s+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(s+=' SYSTEM "'+t.sysID+'"'),0<t.children.length){for(s=(s+=" [")+this.endline(t,e,r),e.state=b.InsideTag,i=0,o=(a=t.children).length;i<o;i++)n=a[i],s+=this.writeChildNode(n,e,r+1);e.state=b.CloseTag,s+="]"}return e.state=b.CloseTag,s=(s+=e.spaceBeforeSlash+">")+this.endline(t,e,r),e.state=b.None,this.closeNode(t,e,r),s},t.prototype.element=function(t,e,r){var n,i,o,s,a,u,l,c,h,p,f,d,y=!1,m="";for(h in this.openNode(t,e,r=r||0),e.state=b.OpenTag,m+=this.indent(t,e,r)+"<"+t.name,p=t.attribs)w.call(p,h)&&(n=p[h],m+=this.attribute(n,e,r));if(s=0===(o=t.children.length)?null:t.children[0],0===o||t.children.every(function(t){return(t.type===g.Text||t.type===g.Raw)&&""===t.value}))e.allowEmpty?(m+=">",e.state=b.CloseTag,m+="</"+t.name+">"+this.endline(t,e,r)):(e.state=b.CloseTag,m+=e.spaceBeforeSlash+"/>"+this.endline(t,e,r));else if(!e.pretty||1!==o||s.type!==g.Text&&s.type!==g.Raw||null==s.value){if(e.dontPrettyTextNodes)for(a=0,l=(f=t.children).length;a<l;a++)if(((i=f[a]).type===g.Text||i.type===g.Raw)&&null!=i.value){e.suppressPrettyCount++,y=!0;break}for(m+=">"+this.endline(t,e,r),e.state=b.InsideTag,u=0,c=(d=t.children).length;u<c;u++)i=d[u],m+=this.writeChildNode(i,e,r+1);e.state=b.CloseTag,m+=this.indent(t,e,r)+"</"+t.name+">",y&&e.suppressPrettyCount--,m+=this.endline(t,e,r),e.state=b.None}else m+=">",e.state=b.InsideTag,e.suppressPrettyCount++,y=!0,m+=this.writeChildNode(s,e,r+1),e.suppressPrettyCount--,y=!1,e.state=b.CloseTag,m+="</"+t.name+">"+this.endline(t,e,r);return this.closeNode(t,e,r),m},t.prototype.writeChildNode=function(t,e,r){switch(t.type){case g.CData:return this.cdata(t,e,r);case g.Comment:return this.comment(t,e,r);case g.Element:return this.element(t,e,r);case g.Raw:return this.raw(t,e,r);case g.Text:return this.text(t,e,r);case g.ProcessingInstruction:return this.processingInstruction(t,e,r);case g.Dummy:return"";case g.Declaration:return this.declaration(t,e,r);case g.DocType:return this.docType(t,e,r);case g.AttributeDeclaration:return this.dtdAttList(t,e,r);case g.ElementDeclaration:return this.dtdElement(t,e,r);case g.EntityDeclaration:return this.dtdEntity(t,e,r);case g.NotationDeclaration:return this.dtdNotation(t,e,r);default:throw new Error("Unknown XML node type: "+t.constructor.name)}},t.prototype.processingInstruction=function(t,e,r){var n;return this.openNode(t,e,r),e.state=b.OpenTag,n=this.indent(t,e,r)+"<?",e.state=b.InsideTag,n+=t.target,t.value&&(n+=" "+t.value),e.state=b.CloseTag,n=(n+=e.spaceBeforeSlash+"?>")+this.endline(t,e,r),e.state=b.None,this.closeNode(t,e,r),n},t.prototype.raw=function(t,e,r){var n;return this.openNode(t,e,r),e.state=b.OpenTag,n=this.indent(t,e,r),e.state=b.InsideTag,n+=t.value,e.state=b.CloseTag,n+=this.endline(t,e,r),e.state=b.None,this.closeNode(t,e,r),n},t.prototype.text=function(t,e,r){var n;return this.openNode(t,e,r),e.state=b.OpenTag,n=this.indent(t,e,r),e.state=b.InsideTag,n+=t.value,e.state=b.CloseTag,n+=this.endline(t,e,r),e.state=b.None,this.closeNode(t,e,r),n},t.prototype.dtdAttList=function(t,e,r){var n;return this.openNode(t,e,r),e.state=b.OpenTag,n=this.indent(t,e,r)+"<!ATTLIST",e.state=b.InsideTag,n+=" "+t.elementName+" "+t.attributeName+" "+t.attributeType,"#DEFAULT"!==t.defaultValueType&&(n+=" "+t.defaultValueType),t.defaultValue&&(n+=' "'+t.defaultValue+'"'),e.state=b.CloseTag,n+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=b.None,this.closeNode(t,e,r),n},t.prototype.dtdElement=function(t,e,r){var n;return this.openNode(t,e,r),e.state=b.OpenTag,n=this.indent(t,e,r)+"<!ELEMENT",e.state=b.InsideTag,n+=" "+t.name+" "+t.value,e.state=b.CloseTag,n+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=b.None,this.closeNode(t,e,r),n},t.prototype.dtdEntity=function(t,e,r){var n;return this.openNode(t,e,r),e.state=b.OpenTag,n=this.indent(t,e,r)+"<!ENTITY",e.state=b.InsideTag,t.pe&&(n+=" %"),n+=" "+t.name,t.value?n+=' "'+t.value+'"':(t.pubID&&t.sysID?n+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.sysID&&(n+=' SYSTEM "'+t.sysID+'"'),t.nData&&(n+=" NDATA "+t.nData)),e.state=b.CloseTag,n+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=b.None,this.closeNode(t,e,r),n},t.prototype.dtdNotation=function(t,e,r){var n;return this.openNode(t,e,r),e.state=b.OpenTag,n=this.indent(t,e,r)+"<!NOTATION",e.state=b.InsideTag,n+=" "+t.name,t.pubID&&t.sysID?n+=' PUBLIC "'+t.pubID+'" "'+t.sysID+'"':t.pubID?n+=' PUBLIC "'+t.pubID+'"':t.sysID&&(n+=' SYSTEM "'+t.sysID+'"'),e.state=b.CloseTag,n+=e.spaceBeforeSlash+">"+this.endline(t,e,r),e.state=b.None,this.closeNode(t,e,r),n},t.prototype.openNode=function(t,e,r){},t.prototype.closeNode=function(t,e,r){},t.prototype.openAttribute=function(t,e,r){},t.prototype.closeAttribute=function(t,e,r){},t)}.call(this)},{"./NodeType":38,"./Utility":39,"./WriterState":40,"./XMLCData":42,"./XMLComment":44,"./XMLDTDAttList":49,"./XMLDTDElement":50,"./XMLDTDEntity":51,"./XMLDTDNotation":52,"./XMLDeclaration":53,"./XMLDocType":54,"./XMLDummy":57,"./XMLElement":58,"./XMLProcessingInstruction":62,"./XMLRaw":63,"./XMLText":67}],69:[function(l,c,t){!function(){var t=l("./Utility"),i=t.assign,o=t.isFunction,t=l("./XMLDOMImplementation"),s=l("./XMLDocument"),a=l("./XMLDocumentCB"),e=l("./XMLStringWriter"),r=l("./XMLStreamWriter"),n=l("./NodeType"),u=l("./WriterState");c.exports.create=function(t,e,r,n){if(null==t)throw new Error("Root element needs a name.");return n=i({},e,r,n),r=(e=new s(n)).element(t),n.headless||(e.declaration(n),null==n.pubID&&null==n.sysID)||e.dtd(n),r},c.exports.begin=function(t,e,r){var n;return o(t)&&(e=(n=[t,e])[0],r=n[1],t={}),e?new a(t,e,r):new s(t)},c.exports.stringWriter=function(t){return new e(t)},c.exports.streamWriter=function(t,e){return new r(t,e)},c.exports.implementation=new t,c.exports.nodeType=n,c.exports.writerState=u}.call(this)},{"./NodeType":38,"./Utility":39,"./WriterState":40,"./XMLDOMImplementation":47,"./XMLDocument":55,"./XMLDocumentCB":56,"./XMLStreamWriter":64,"./XMLStringWriter":65}]},{},[1])(1)});