q.mode&&(27>q.mode||4!==M))&&c(z,z.output,z.next_out,H-z.avail_out))return q.mode=31,-4;B-=z.avail_in;H-=z.avail_out;z.total_in+=B;z.total_out+=H;q.total+=H;q.wrap&&H&&(z.adler=q.check=q.flags?w(q.check,G,H,z.next_out-H):p(q.check,G,H,z.next_out-H));z.data_type=q.bits+(q.last?64:0)+(12===q.mode?128:0)+(20===q.mode||15===q.mode?256:0);(0===B&&0===H||4===M)&&0===X&&(X=-5);return X};D.inflateEnd=function(z){if(!z||!z.state)return-2;var M=z.state;M.window&&(M.window=null);z.state=null;return 0};D.inflateGetHeader=
+ function(z,M){if(!z||!z.state)return-2;z=z.state;if(0===(z.wrap&2))return-2;z.head=M;M.done=!1;return 0};D.inflateSetDictionary=function(z,M){var f=M.length;if(!z||!z.state)return-2;var N=z.state;if(0!==N.wrap&&11!==N.mode)return-2;if(11===N.mode){var T=p(1,M,f,0);if(T!==N.check)return-3}if(c(z,M,f,f))return N.mode=31,-4;N.havedict=1;return 0};D.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":123,"./adler32":125,"./crc32":127,"./inffast":130,"./inftrees":132}],132:[function(x,
+ W,D){var n=x("../utils/common"),m=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],b=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];W.exports=function(a,c,t,p,w,r,E,K){var U=K.bits,O,z,M,f,N,
+ T,q=0,F=new n.Buf16(16);var G=new n.Buf16(16);var k,J=0;for(O=0;15>=O;O++)F[O]=0;for(z=0;zM&&(I=M);if(0===M)return w[r++]=20971520,w[r++]=20971520,K.bits=1,0;for(U=1;U=O;O++)if(f<<=1,f-=F[O],0>f)return-1;if(0O;O++)G[O+1]=G[O]+F[O];for(z=0;zR?(A=k[J+E[z]],h=S[q+E[z]]):(A=96,h=0);f=1<>G)+T]=d<<24|A<<16|h|0;while(0!==T);for(f=1<>=1;0!==f?(N&=f-1,N+=f):N=0;z++;if(0===--F[O]){if(O===M)break;O=c[t+E[z]]}if(O>I&&(N&X)!==B){0===G&&(G=I);Q+=U;p=O-G;for(f=1<=f)break;p++;f<<=1}H+=1<
>>8&255}function l(d,A,h){d.bi_valid>16-h?(d.bi_buf|=A<>16-d.bi_valid,d.bi_valid+=h-16):(d.bi_buf|=A<>>=1,h<<=1;while(0<--A);return h>>>1}function t(d,A,h){var v=Array(16),P=0,e;
+ for(e=1;15>=e;e++)v[e]=P=P+h[e-1]<<1;for(h=0;h<=A;h++)P=d[2*h+1],0!==P&&(d[2*h]=c(v[P]++,P))}function p(d){var A;for(A=0;286>A;A++)d.dyn_ltree[2*A]=0;for(A=0;30>A;A++)d.dyn_dtree[2*A]=0;for(A=0;19>A;A++)d.bl_tree[2*A]=0;d.dyn_ltree[512]=1;d.opt_len=d.static_len=0;d.last_lit=d.matches=0}function w(d){8P?I[P]:I[256+(P>>>7)];a(d,y,h);C=q[y];0!==C&&(P-=Q[y],l(d,P,C))}}while(vd.heap_len;){var L=d.heap[++d.heap_len]=2>C?++C:0;h[2*L]=1;d.depth[L]=0;d.opt_len--;P&&(d.static_len-=v[2*L+1])}A.max_code=C;for(y=d.heap_len>>1;1<=y;y--)E(d,h,y);L=e;do y=d.heap[1],d.heap[1]=d.heap[d.heap_len--],E(d,h,1),v=d.heap[1],d.heap[--d.heap_max]=y,d.heap[--d.heap_max]=
+ v,h[2*L]=h[2*y]+h[2*v],d.depth[L]=(d.depth[y]>=d.depth[v]?d.depth[y]:d.depth[v])+1,h[2*y+1]=h[2*v+1]=L,d.heap[1]=L++,E(d,h,1);while(2<=d.heap_len);d.heap[--d.heap_max]=d.heap[1];y=A.dyn_tree;L=A.max_code;v=A.stat_desc.static_tree;P=A.stat_desc.has_stree;e=A.stat_desc.extra_bits;var V=A.stat_desc.extra_base,Y=A.stat_desc.max_length,Z,ca=0;for(Z=0;15>=Z;Z++)d.bl_count[Z]=0;y[2*d.heap[d.heap_max]+1]=0;for(A=d.heap_max+1;573>A;A++){var fa=d.heap[A];Z=y[2*y[2*fa+1]+1]+1;Z>Y&&(Z=Y,ca++);y[2*fa+1]=Z;if(!(fa>
+ L)){d.bl_count[Z]++;var ha=0;fa>=V&&(ha=e[fa-V]);var la=y[2*fa];d.opt_len+=la*(Z+ha);P&&(d.static_len+=la*(v[2*fa+1]+ha))}}if(0!==ca){do{for(Z=Y-1;0===d.bl_count[Z];)Z--;d.bl_count[Z]--;d.bl_count[Z+1]+=2;d.bl_count[Y]--;ca-=2}while(0L||(y[2*v+1]!==Z&&(d.opt_len+=(Z-y[2*v+1])*y[2*v],y[2*v+1]=Z),fa--)}t(h,C,d.bl_count)}function O(d,A,h){var v,P=-1,e=A[1],y=0,C=7,L=4;0===e&&(C=138,L=3);A[2*(h+1)+1]=65535;for(v=0;v<=h;v++){var V=e;e=
+ A[2*(v+1)+1];++y=y?d.bl_tree[34]++:d.bl_tree[36]++,y=0,P=V,0===e?(C=138,L=3):V===e?(C=6,L=3):(C=7,L=4))}}function z(d,A,h){var v,P=-1,e=A[1],y=0,C=7,L=4;0===e&&(C=138,L=3);for(v=0;v<=h;v++){var V=e;e=A[2*(v+1)+1];if(!(++y=y?(a(d,17,d.bl_tree),l(d,y-3,3)):(a(d,18,d.bl_tree),l(d,y-11,7));
+ y=0;P=V;0===e?(C=138,L=3):V===e?(C=6,L=3):(C=7,L=4)}}}function M(d){var A=4093624447,h;for(h=0;31>=h;h++,A>>>=1)if(A&1&&0!==d.dyn_ltree[2*h])return 0;if(0!==d.dyn_ltree[18]||0!==d.dyn_ltree[20]||0!==d.dyn_ltree[26])return 1;for(h=32;256>h;h++)if(0!==d.dyn_ltree[2*h])return 1;return 0}function f(d,A,h,v){l(d,v?1:0,3);w(d);b(d,h);b(d,~h);N.arraySet(d.pending_buf,d.window,A,h,d.pending);d.pending+=h}var N=x("../utils/common"),T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],q=[0,0,0,0,1,
+ 1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=Array(576);n(k);var J=Array(60);n(J);var I=Array(512);n(I);var S=Array(256);n(S);var R=Array(29);n(R);var Q=Array(30);n(Q);var B,H,X,u=!1;D._tr_init=function(d){if(!u){var A,h,v,P=Array(16);for(v=h=0;28>v;v++)for(R[v]=h,A=0;A<1<v;v++)for(Q[v]=h,A=0;A<1<>=7;30>v;v++)for(Q[v]=h<<7,A=
+ 0;A<1<=A;A++)P[A]=0;for(A=0;143>=A;)k[2*A+1]=8,A++,P[8]++;for(;255>=A;)k[2*A+1]=9,A++,P[9]++;for(;279>=A;)k[2*A+1]=7,A++,P[7]++;for(;287>=A;)k[2*A+1]=8,A++,P[8]++;t(k,287,P);for(A=0;30>A;A++)J[2*A+1]=5,J[2*A]=c(A,5);B=new m(k,T,257,286,15);H=new m(J,q,0,30,15);X=new m([],F,0,19,7);u=!0}d.l_desc=new g(d.dyn_ltree,B);d.d_desc=new g(d.dyn_dtree,H);d.bl_desc=new g(d.bl_tree,X);d.bi_buf=0;d.bi_valid=0;p(d)};D._tr_stored_block=f;D._tr_flush_block=function(d,A,h,v){var P=
+ 0;if(0>>3;var y=d.static_len+3+7>>>3;y<=e&&(e=y)}else e=y=h+5;if(h+4<=e&&-1!==A)f(d,A,h,v);else if(4===d.strategy||y===e)l(d,2+(v?1:0),3),K(d,k,J);else{l(d,4+(v?1:0),3);A=d.l_desc.max_code+1;h=d.d_desc.max_code+1;P+=1;l(d,A-257,5);l(d,h-1,5);l(d,
+ P-4,4);for(e=0;e>>8&255;d.pending_buf[d.d_buf+2*d.last_lit+1]=A&255;d.pending_buf[d.l_buf+d.last_lit]=h&255;d.last_lit++;0===A?d.dyn_ltree[2*h]++:(d.matches++,A--,d.dyn_ltree[2*(S[h]+256+1)]++,d.dyn_dtree[2*(256>A?I[A]:I[256+(A>>>7)])]++);return d.last_lit===d.lit_bufsize-1};D._tr_align=function(d){l(d,2,3);a(d,256,
+ k);16===d.bi_valid?(b(d,d.bi_buf),d.bi_buf=0,d.bi_valid=0):8<=d.bi_valid&&(d.pending_buf[d.pending++]=d.bi_buf&255,d.bi_buf>>=8,d.bi_valid-=8)}},{"../utils/common":123}],135:[function(x,W,D){W.exports=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}},{}],136:[function(x,W,D){(function(n){function m(a,c){for(var t=0,p=a.length-1;0<=p;p--){var w=a[p];"."===w?
+ a.splice(p,1):".."===w?(a.splice(p,1),t++):t&&(a.splice(p,1),t--)}if(c)for(;t--;t)a.unshift("..");return a}function g(a,c){if(a.filter)return a.filter(c);for(var t=[],p=0;pU?[]:E.slice(K,U-K+1)}a=D.resolve(a).substr(1);c=D.resolve(c).substr(1);a=t(a.split("/"));c=t(c.split("/"));for(var p=Math.min(a.length,c.length),w=p,r=0;rc&&(c=a.length+c);return a.substr(c,t)}}).call(this,x("_process"))},{_process:138}],137:[function(x,W,D){(function(n){function m(g,b,l,a){if("function"!==typeof g)throw new TypeError('"callback" argument must be a function');
+ var c=arguments.length;switch(c){case 0:case 1:return n.nextTick(g);case 2:return n.nextTick(function(){g.call(null,b)});case 3:return n.nextTick(function(){g.call(null,b,l)});case 4:return n.nextTick(function(){g.call(null,b,l,a)});default:var t=Array(c-1);for(c=0;c=B||0===H.length&&H.ended)return 0;if(H.objectMode)return 1;if(B!==B)return H.flowing&&H.length?H.buffer.head.data.length:H.length;if(B>H.highWaterMark){var X=B;8388608<=X?X=8388608:(X--,X|=X>>>1,X|=X>>>2,X|=X>>>4,X|=X>>>8,X|=X>>>
+ 16,X++);H.highWaterMark=X}return B<=H.length?B:H.ended?H.length:(H.needReadable=!0,0)}function c(B){var H=B._readableState;H.needReadable=!1;H.emittedReadable||(S("emitReadable",H.flowing),H.emittedReadable=!0,H.sync?N(t,B):t(B))}function t(B){S("emit readable");B.emit("readable");K(B)}function p(B,H){for(var X=H.length;!H.reading&&!H.flowing&&!H.ended&&H.length=H.length)X=H.decoder?H.buffer.join(""):1===H.buffer.length?H.buffer.head.data:H.buffer.concat(H.length),H.buffer.clear();else{X=H.buffer;H=H.decoder;if(BA.length?A.length:B;d=h===A.length?d+A:d+A.slice(0,B);B-=h;if(0===B){h===A.length?(++u,X.head=H.next?H.next:X.tail=null):(X.head=H,
+ H.data=A.slice(h));break}++u}X.length-=u;X=d}else{H=k.allocUnsafe(B);u=X.head;d=1;u.data.copy(H);for(B-=u.data.length;u=u.next;){A=u.data;h=B>A.length?A.length:B;A.copy(H,H.length-B,0,h);B-=h;if(0===B){h===A.length?(++d,X.head=u.next?u.next:X.tail=null):(X.head=u,u.data=A.slice(h));break}++d}X.length-=d;X=H}H=X}X=H}return X}function O(B){var H=B._readableState;if(0=H.highWaterMark||H.ended))return S("read: emitReadable",H.length,H.ended),0===H.length&&H.ended?O(this):c(this),null;B=a(B,H);if(0===B&&H.ended)return 0===H.length&&O(this),null;var u=H.needReadable;S("need readable",u);if(0===H.length||H.length-B>>0);for(var b=this.head,l=0;b;)b.data.copy(g,l),l+=b.data.length,b=b.next;return g}},{buffer:77,"buffer-shims":76}],146:[function(x,W,D){W.exports=x("./lib/_stream_passthrough.js")},
+ {"./lib/_stream_passthrough.js":141}],147:[function(x,W,D){var n=x("_process");a:{try{var m=x("stream");break a}catch(g){}m=void 0}D=W.exports=x("./lib/_stream_readable.js");D.Stream=m||D;D.Readable=D;D.Writable=x("./lib/_stream_writable.js");D.Duplex=x("./lib/_stream_duplex.js");D.Transform=x("./lib/_stream_transform.js");D.PassThrough=x("./lib/_stream_passthrough.js");!n.browser&&"disable"===n.env.READABLE_STREAM&&m&&(W.exports=m)},{"./lib/_stream_duplex.js":140,"./lib/_stream_passthrough.js":141,
+ "./lib/_stream_readable.js":142,"./lib/_stream_transform.js":143,"./lib/_stream_writable.js":144,_process:138}],148:[function(x,W,D){W.exports=x("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":143}],149:[function(x,W,D){W.exports=x("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":144}],150:[function(x,W,D){(function(n){(function(m){function g(e,y){if(!(this instanceof g))return new g(e,y);for(var C=0,L=T.length;Ce.indexOf(":")?
+ ["",e]:e.split(":"),L=C[0];C=C[1];y&&"xmlns"===e&&(L="xmlns",C="");return{prefix:L,local:C}}function U(e){e.strict||(e.attribName=e.attribName[e.looseCase]());if(-1===e.attribList.indexOf(e.attribName)&&!e.tag.attributes.hasOwnProperty(e.attribName))if(e.opt.xmlns){var y=K(e.attribName,!0),C=y.local;if("xmlns"===y.prefix)if("xml"===C&&e.attribValue!==B)E(e,"xml: prefix must be bound to "+B+"\nActual: "+e.attribValue);else if("xmlns"===C&&e.attribValue!==H)E(e,"xmlns: prefix must be bound to "+H+"\nActual: "+
+ e.attribValue);else{y=e.tag;var L=e.tags[e.tags.length-1]||e;y.ns===L.ns&&(y.ns=Object.create(L.ns));y.ns[C]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,c(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}function O(e,y){if(e.opt.xmlns){var C=e.tag,L=K(e.tagName);C.prefix=L.prefix;C.local=L.local;C.uri=C.ns[L.prefix]||"";C.prefix&&!C.uri&&(E(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),
+ C.uri=L.prefix);L=e.tags[e.tags.length-1]||e;C.ns&&L.ns!==C.ns&&Object.keys(C.ns).forEach(function(la){c(e,"onopennamespace",{prefix:la,uri:C.ns[la]})});L=0;for(var V=e.attribList.length;L";e.tagName="";e.state=v.SCRIPT;return}c(e,"onscript",e.script);e.script=""}var y=e.tags.length,C=e.tagName;e.strict||(C=C[e.looseCase]());for(var L=C;y--;)if(e.tags[y].name!==L)E(e,"Unexpected close tag");
+ else break;if(0>y)E(e,"Unmatched closing tag: "+e.tagName),e.textNode+=""+e.tagName+">";else{e.tagName=C;for(C=e.tags.length;C-- >y;){var V=e.tag=e.tags.pop();e.tagName=e.tag.name;c(e,"onclosetag",e.tagName);for(var Y in V.ns);L=e.tags[e.tags.length-1]||e;e.opt.xmlns&&V.ns!==L.ns&&Object.keys(V.ns).forEach(function(Z){c(e,"onclosenamespace",{prefix:Z,uri:V.ns[Z]})})}0===y&&(e.closedRoot=!0);e.tagName=e.attribValue=e.attribName="";e.attribList.length=0}}else E(e,"Weird empty close tag."),e.textNode+=
+ ">";e.state=v.TEXT}function M(e){var y=e.entity,C=y.toLowerCase(),L="";if(e.ENTITIES[y])return e.ENTITIES[y];if(e.ENTITIES[C])return e.ENTITIES[C];y=C;if("#"===y.charAt(0))if("x"===y.charAt(1)){y=y.slice(2);var V=parseInt(y,16);L=V.toString(16)}else y=y.slice(1),V=parseInt(y,10),L=V.toString(10);y=y.replace(/^0+/,"");return L.toLowerCase()!==y?(E(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(V)}function f(e,y){"<"===y?(e.state=v.OPEN_WAKA,e.startTagPosition=e.position):a(G,
+ y)||(E(e,"Non-whitespace before first tag."),e.textNode=y,e.state=v.TEXT)}function N(e,y){var C="";y"===C?(c(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=v.TEXT):(a(I,C)&&(this.state=v.SGML_DECL_QUOTED),this.sgmlDecl+=C);continue;case v.SGML_DECL_QUOTED:C===this.q&&(this.state=v.SGML_DECL,this.q="");this.sgmlDecl+=C;continue;case v.DOCTYPE:">"===C?(this.state=v.TEXT,c(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=C,"["===C?this.state=v.DOCTYPE_DTD:
+ a(I,C)&&(this.state=v.DOCTYPE_QUOTED,this.q=C));continue;case v.DOCTYPE_QUOTED:this.doctype+=C;C===this.q&&(this.q="",this.state=v.DOCTYPE);continue;case v.DOCTYPE_DTD:this.doctype+=C;"]"===C?this.state=v.DOCTYPE:a(I,C)&&(this.state=v.DOCTYPE_DTD_QUOTED,this.q=C);continue;case v.DOCTYPE_DTD_QUOTED:this.doctype+=C;C===this.q&&(this.state=v.DOCTYPE_DTD,this.q="");continue;case v.COMMENT:"-"===C?this.state=v.COMMENT_ENDING:this.comment+=C;continue;case v.COMMENT_ENDING:"-"===C?(this.state=v.COMMENT_ENDED,
+ (this.comment=p(this.opt,this.comment))&&c(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+C,this.state=v.COMMENT);continue;case v.COMMENT_ENDED:">"!==C?(E(this,"Malformed comment"),this.comment+="--"+C,this.state=v.COMMENT):this.state=v.TEXT;continue;case v.CDATA:"]"===C?this.state=v.CDATA_ENDING:this.cdata+=C;continue;case v.CDATA_ENDING:"]"===C?this.state=v.CDATA_ENDING_2:(this.cdata+="]"+C,this.state=v.CDATA);continue;case v.CDATA_ENDING_2:">"===C?(this.cdata&&c(this,"oncdata",
+ this.cdata),c(this,"onclosecdata"),this.cdata="",this.state=v.TEXT):"]"===C?this.cdata+="]":(this.cdata+="]]"+C,this.state=v.CDATA);continue;case v.PROC_INST:"?"===C?this.state=v.PROC_INST_ENDING:a(G,C)?this.state=v.PROC_INST_BODY:this.procInstName+=C;continue;case v.PROC_INST_BODY:if(!this.procInstBody&&a(G,C))continue;else"?"===C?this.state=v.PROC_INST_ENDING:this.procInstBody+=C;continue;case v.PROC_INST_ENDING:">"===C?(c(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),
+ this.procInstName=this.procInstBody="",this.state=v.TEXT):(this.procInstBody+="?"+C,this.state=v.PROC_INST_BODY);continue;case v.OPEN_TAG:if(a(d,C))this.tagName+=C;else{this.strict||(this.tagName=this.tagName[this.looseCase]());L=this.tags[this.tags.length-1]||this;var V=this.tag={name:this.tagName,attributes:{}};this.opt.xmlns&&(V.ns=L.ns);this.attribList.length=0;">"===C?O(this):"/"===C?this.state=v.OPEN_TAG_SLASH:(a(G,C)||E(this,"Invalid character in tag name"),this.state=v.ATTRIB)}continue;case v.OPEN_TAG_SLASH:">"===
+ C?(O(this,!0),z(this)):(E(this,"Forward-slash in opening tag not followed by >"),this.state=v.ATTRIB);continue;case v.ATTRIB:if(a(G,C))continue;else">"===C?O(this):"/"===C?this.state=v.OPEN_TAG_SLASH:a(u,C)?(this.attribName=C,this.attribValue="",this.state=v.ATTRIB_NAME):E(this,"Invalid attribute name");continue;case v.ATTRIB_NAME:"="===C?this.state=v.ATTRIB_VALUE:">"===C?(E(this,"Attribute without value"),this.attribValue=this.attribName,U(this),O(this)):a(G,C)?this.state=v.ATTRIB_NAME_SAW_WHITE:
+ a(d,C)?this.attribName+=C:E(this,"Invalid attribute name");continue;case v.ATTRIB_NAME_SAW_WHITE:if("="===C)this.state=v.ATTRIB_VALUE;else if(a(G,C))continue;else E(this,"Attribute without value"),this.attribValue=this.tag.attributes[this.attribName]="",c(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===C?O(this):a(u,C)?(this.attribName=C,this.state=v.ATTRIB_NAME):(E(this,"Invalid attribute name"),this.state=v.ATTRIB);continue;case v.ATTRIB_VALUE:if(a(G,C))continue;else a(I,
+ C)?(this.q=C,this.state=v.ATTRIB_VALUE_QUOTED):(E(this,"Unquoted attribute value"),this.state=v.ATTRIB_VALUE_UNQUOTED,this.attribValue=C);continue;case v.ATTRIB_VALUE_QUOTED:if(C!==this.q){"&"===C?this.state=v.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=C;continue}U(this);this.q="";this.state=v.ATTRIB_VALUE_CLOSED;continue;case v.ATTRIB_VALUE_CLOSED:a(G,C)?this.state=v.ATTRIB:">"===C?O(this):"/"===C?this.state=v.OPEN_TAG_SLASH:a(u,C)?(E(this,"No whitespace between attributes"),this.attribName=C,this.attribValue=
+ "",this.state=v.ATTRIB_NAME):E(this,"Invalid attribute name");continue;case v.ATTRIB_VALUE_UNQUOTED:if(!a(S,C)){"&"===C?this.state=v.ATTRIB_VALUE_ENTITY_U:this.attribValue+=C;continue}U(this);">"===C?O(this):this.state=v.ATTRIB;continue;case v.CLOSE_TAG:if(this.tagName)">"===C?z(this):a(d,C)?this.tagName+=C:this.script?(this.script+=""+this.tagName,this.tagName="",this.state=v.SCRIPT):(a(G,C)||E(this,"Invalid tagname in closing tag"),this.state=v.CLOSE_TAG_SAW_WHITE);else if(a(G,C))continue;else a(u,
+ C)?this.tagName=C:this.script?(this.script+=""+C,this.state=v.SCRIPT):E(this,"Invalid tagname in closing tag.");continue;case v.CLOSE_TAG_SAW_WHITE:if(a(G,C))continue;">"===C?z(this):E(this,"Invalid characters in closing tag");continue;case v.TEXT_ENTITY:case v.ATTRIB_VALUE_ENTITY_Q:case v.ATTRIB_VALUE_ENTITY_U:switch(this.state){case v.TEXT_ENTITY:var Y=v.TEXT;var Z="textNode";break;case v.ATTRIB_VALUE_ENTITY_Q:Y=v.ATTRIB_VALUE_QUOTED;Z="attribValue";break;case v.ATTRIB_VALUE_ENTITY_U:Y=v.ATTRIB_VALUE_UNQUOTED,
+ Z="attribValue"}";"===C?(this[Z]+=M(this),this.entity="",this.state=Y):a(this.entity.length?h:A,C)?this.entity+=C:(E(this,"Invalid character in entity name"),this[Z]+="&"+this.entity+C,this.entity="",this.state=Y);continue;default:throw Error(this,"Unknown state: "+this.state);}}if(this.position>=this.bufferCheckPosition){e=Math.max(m.MAX_BUFFER_LENGTH,10);C=y=0;for(Y=T.length;Ce)switch(T[C]){case "textNode":t(this);break;case "cdata":c(this,"oncdata",this.cdata);
+ this.cdata="";break;case "script":c(this,"onscript",this.script);this.script="";break;default:w(this,"Max buffer length exceeded: "+T[C])}y=Math.max(y,Z)}this.bufferCheckPosition=m.MAX_BUFFER_LENGTH-y+this.position}return this},resume:function(){this.error=null;return this},close:function(){return this.write(null)},flush:function(){t(this);""!==this.cdata&&(c(this,"oncdata",this.cdata),this.cdata="");""!==this.script&&(c(this,"onscript",this.script),this.script="")}};try{var q=x("stream").Stream}catch(e){q=
+ function(){}}var F=m.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});b.prototype=Object.create(q.prototype,{constructor:{value:b}});b.prototype.write=function(e){"function"===typeof n&&"function"===typeof n.isBuffer&&n.isBuffer(e)&&(this._decoder||(this._decoder=new (x("string_decoder").StringDecoder)("utf8")),e=this._decoder.write(e));this._parser.write(e.toString());this.emit("data",e);return!0};b.prototype.end=function(e){e&&e.length&&this.write(e);this._parser.end();return!0};b.prototype.on=
+ function(e,y){var C=this;C._parser["on"+e]||-1===F.indexOf(e)||(C._parser["on"+e]=function(){var L=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);L.splice(0,0,e);C.emit.apply(C,L)});return q.prototype.on.call(C,e,y)};var G="\r\n\t ",k="0124356789",J="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I="'\"",S=G+">",R="[CDATA[",Q="DOCTYPE",B="http://www.w3.org/XML/1998/namespace",H="http://www.w3.org/2000/xmlns/",X={xml:B,xmlns:H};G=l(G);k=l(k);J=l(J);var u=/[:_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]/,
+ 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\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/,A=/[#:_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]/,h=/[#:_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-]/;
+ I=l(I);S=l(S);var v=0;m.STATE={BEGIN:v++,BEGIN_WHITESPACE:v++,TEXT:v++,TEXT_ENTITY:v++,OPEN_WAKA:v++,SGML_DECL:v++,SGML_DECL_QUOTED:v++,DOCTYPE:v++,DOCTYPE_QUOTED:v++,DOCTYPE_DTD:v++,DOCTYPE_DTD_QUOTED:v++,COMMENT_STARTING:v++,COMMENT:v++,COMMENT_ENDING:v++,COMMENT_ENDED:v++,CDATA:v++,CDATA_ENDING:v++,CDATA_ENDING_2:v++,PROC_INST:v++,PROC_INST_BODY:v++,PROC_INST_ENDING:v++,OPEN_TAG:v++,OPEN_TAG_SLASH:v++,ATTRIB:v++,ATTRIB_NAME:v++,ATTRIB_NAME_SAW_WHITE:v++,ATTRIB_VALUE:v++,ATTRIB_VALUE_QUOTED:v++,
+ ATTRIB_VALUE_CLOSED:v++,ATTRIB_VALUE_UNQUOTED:v++,ATTRIB_VALUE_ENTITY_Q:v++,ATTRIB_VALUE_ENTITY_U:v++,CLOSE_TAG:v++,CLOSE_TAG_SAW_WHITE:v++,SCRIPT:v++,SCRIPT_ENDING:v++};m.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"};m.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(m.ENTITIES).forEach(function(e){var y=m.ENTITIES[e];y="number"===typeof y?String.fromCharCode(y):y;m.ENTITIES[e]=y});for(var P in m.STATE)m.STATE[m.STATE[P]]=P;v=m.STATE;String.fromCodePoint||function(){var e=String.fromCharCode,y=Math.floor,
+ C=function(){var L=[],V=-1,Y=arguments.length;if(!Y)return"";for(var Z="";++Vca||1114111=ca)L.push(ca);else{ca-=65536;var fa=(ca>>10)+55296;ca=ca%1024+56320;L.push(fa,ca)}if(V+1===Y||16384=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;a.copy(this.charBuffer,this.charReceived,0,c);this.charReceived+=c;if(this.charReceived=t)this.charLength+=this.surrogateSize,c="";else{this.charReceived=this.charLength=0;if(0===a.length)return c;break}}this.detectIncompleteChar(a);var p=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,p),p-=this.charReceived);c+=a.toString(this.encoding,0,p);p=c.length-1;t=c.charCodeAt(p);return 55296<=t&&56319>=t?(t=this.surrogateSize,
+ this.charLength+=t,this.charReceived+=t,this.charBuffer.copy(this.charBuffer,t,0,t),a.copy(this.charBuffer,0,0,t),c.substring(0,p)):c};x.prototype.detectIncompleteChar=function(a){for(var c=3<=a.length?3:a.length;0>5){this.charLength=2;break}if(2>=c&&14==t>>4){this.charLength=3;break}if(3>=c&&30==t>>3){this.charLength=4;break}}this.charReceived=c};x.prototype.end=function(a){var c="";a&&a.length&&(c=this.write(a));this.charReceived&&(a=this.encoding,c+=this.charBuffer.slice(0,
+ this.charReceived).toString(a));return c}},{buffer:77}],153:[function(x,W,D){(function(){function n(e){return function(y,C,L,V){C=N(C,V,4);var Y=!I(y)&&f.keys(y),Z=(Y||y).length,ca=0arguments.length&&(L=y[Y?Y[ca]:ca],ca+=e);for(var fa=C,ha=L;0<=ca&&caL||null==C)return C;for(var V=1;VL&&(L=C)}else y=T(y,C),f.each(e,function(fa,ha,la){Y=y(fa,ha,la);if(Y>V||-Infinity===Y&&-Infinity===L)L=fa,V=Y});return L};f.min=function(e,y,C){var L=Infinity,V=Infinity,Y;if(null==y&&
+ null!=e){e=I(e)?e:f.values(e);for(var Z=0,ca=e.length;ZZ||void 0===Y)return 1;if(Y=C)throw Error("bindAll must be passed function names");for(y=1;y=la||la>y?(Z&&(clearTimeout(Z),Z=null),ca=ha,Y=e.apply(L,V),Z||(L=V=null)):Z||!1===C.trailing||(Z=setTimeout(fa,la));return Y}};f.debounce=function(e,y,C){var L,V,Y,Z,ca,fa=function(){var ha=f.now()-Z;ha--e)return y.apply(this,arguments)}};f.before=function(e,y){var C;return function(){0<--e&&(C=y.apply(this,arguments));1>=e&&(y=null);return C}};f.once=f.partial(f.before,2);var B=!{toString:null}.propertyIsEnumerable("toString"),H="valueOf isPrototypeOf toString propertyIsEnumerable hasOwnProperty toLocaleString".split(" ");
+ f.keys=function(e){if(!f.isObject(e))return[];if(U)return U(e);var y=[],C;for(C in e)f.has(e,C)&&y.push(C);B&&b(e,y);return y};f.allKeys=function(e){if(!f.isObject(e))return[];var y=[],C;for(C in e)y.push(C);B&&b(e,y);return y};f.values=function(e){for(var y=f.keys(e),C=y.length,L=Array(C),V=0;V":">",'"':""","'":"'","`":"`"};q=f.invert(K);G=function(e){var y=function(Y){return e[Y]},C="(?:"+f.keys(e).join("|")+")",L=RegExp(C),V=RegExp(C,"g");return function(Y){Y=null==Y?"":""+Y;return L.test(Y)?Y.replace(V,y):Y}};f.escape=G(K);f.unescape=
+ G(q);f.result=function(e,y,C){y=null==e?void 0:e[y];void 0===y&&(y=C);return f.isFunction(y)?y.call(e):y};var u=0;f.uniqueId=function(e){var y=++u+"";return e?e+y:y};f.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var d=/(.)^/,A={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},h=/\\|'|\r|\n|\u2028|\u2029/g,v=function(e){return"\\"+A[e]};f.template=function(e,y,C){!y&&C&&(y=C);y=f.defaults({},y,f.templateSettings);C=RegExp([(y.escape||
+ d).source,(y.interpolate||d).source,(y.evaluate||d).source].join("|")+"|$","g");var L=0,V="__p+='";e.replace(C,function(Z,ca,fa,ha,la){V+=e.slice(L,la).replace(h,v);L=la+Z.length;ca?V+="'+\n((__t=("+ca+"))==null?'':_.escape(__t))+\n'":fa?V+="'+\n((__t=("+fa+"))==null?'':__t)+\n'":ha&&(V+="';\n"+ha+"\n__p+='");return Z});V+="';\n";y.variable||(V="with(obj||{}){\n"+V+"}\n");V="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+V+"return __p;\n";try{var Y=new Function(y.variable||
+ "obj","_",V)}catch(Z){throw Z.source=V,Z;}C=function(Z){return Y.call(this,Z,f)};C.source="function("+(y.variable||"obj")+"){\n"+V+"}";return C};f.chain=function(e){e=f(e);e._chain=!0;return e};var P=function(e,y){return e._chain?f(y).chain():y};f.mixin=function(e){f.each(f.functions(e),function(y){var C=f[y]=e[y];f.prototype[y]=function(){var L=[this._wrapped];p.apply(L,arguments);return P(this,C.apply(f,L))}})};f.mixin(f);f.each("pop push reverse shift sort splice unshift".split(" "),function(e){var y=
+ c[e];f.prototype[e]=function(){var C=this._wrapped;y.apply(C,arguments);"shift"!==e&&"splice"!==e||0!==C.length||delete C[0];return P(this,C)}});f.each(["concat","join","slice"],function(e){var y=c[e];f.prototype[e]=function(){return P(this,y.apply(this._wrapped,arguments))}});f.prototype.value=function(){return this._wrapped};f.prototype.valueOf=f.prototype.toJSON=f.prototype.value;f.prototype.toString=function(){return""+this._wrapped}}).call(this)},{}],154:[function(x,W,D){(function(n){function m(g){try{if(!n.localStorage)return!1}catch(b){return!1}g=
+ n.localStorage[g];return null==g?!1:"true"===String(g).toLowerCase()}W.exports=function(g,b){if(m("noDeprecation"))return g;var l=!1;return function(){if(!l){if(m("throwDeprecation"))throw Error(b);m("traceDeprecation")?console.trace(b):console.warn(b);l=!0}return g.apply(this,arguments)}}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],155:[function(x,W,D){arguments[4][81][0].apply(D,arguments)},{dup:81}],156:[function(x,W,
+ D){W.exports=function(n){return n&&"object"===typeof n&&"function"===typeof n.copy&&"function"===typeof n.fill&&"function"===typeof n.readUInt8}},{}],157:[function(x,W,D){(function(n,m){function g(Q,B){var H={seen:[],stylize:l};3<=arguments.length&&(H.depth=arguments[2]);4<=arguments.length&&(H.colors=arguments[3]);U(B)?H.showHidden=B:B&&D._extend(H,B);M(H.showHidden)&&(H.showHidden=!1);M(H.depth)&&(H.depth=2);M(H.colors)&&(H.colors=!1);M(H.customInspect)&&(H.customInspect=!0);H.colors&&(H.stylize=
+ b);return c(H,Q,H.depth)}function b(Q,B){return(B=g.styles[B])?"\u001b["+g.colors[B][0]+"m"+Q+"\u001b["+g.colors[B][1]+"m":Q}function l(Q,B){return Q}function a(Q){var B={};Q.forEach(function(H,X){B[H]=!0});return B}function c(Q,B,H){if(Q.customInspect&&B&&F(B.inspect)&&B.inspect!==D.inspect&&(!B.constructor||B.constructor.prototype!==B)){var X=B.inspect(H,Q);z(X)||(X=c(Q,X,H));return X}if(X=t(Q,B))return X;var u=Object.keys(B),d=a(u);Q.showHidden&&(u=Object.getOwnPropertyNames(B));if(q(B)&&(0<=u.indexOf("message")||
+ 0<=u.indexOf("description")))return p(B);if(0===u.length){if(F(B))return Q.stylize("[Function"+(B.name?": "+B.name:"")+"]","special");if(f(B))return Q.stylize(RegExp.prototype.toString.call(B),"regexp");if(T(B))return Q.stylize(Date.prototype.toString.call(B),"date");if(q(B))return p(B)}X="";var A=!1,h=["{","}"];K(B)&&(A=!0,h=["[","]"]);F(B)&&(X=" [Function"+(B.name?": "+B.name:"")+"]");f(B)&&(X=" "+RegExp.prototype.toString.call(B));T(B)&&(X=" "+Date.prototype.toUTCString.call(B));q(B)&&(X=" "+p(B));
+ if(0===u.length&&(!A||0==B.length))return h[0]+X+h[1];if(0>H)return f(B)?Q.stylize(RegExp.prototype.toString.call(B),"regexp"):Q.stylize("[Object]","special");Q.seen.push(B);u=A?w(Q,B,H,d,u):u.map(function(v){return r(Q,B,H,d,v,A)});Q.seen.pop();return E(u,X,h)}function t(Q,B){if(M(B))return Q.stylize("undefined","undefined");if(z(B))return B="'"+JSON.stringify(B).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",Q.stylize(B,"string");if(O(B))return Q.stylize(""+B,"number");if(U(B))return Q.stylize(""+
+ B,"boolean");if(null===B)return Q.stylize("null","null")}function p(Q){return"["+Error.prototype.toString.call(Q)+"]"}function w(Q,B,H,X,u){for(var d=[],A=0,h=B.length;AQ.seen.indexOf(B.value)?(h=null===H?c(Q,B.value,null):c(Q,B.value,H-1),-1Q?"0"+Q.toString(10):Q.toString(10)}function k(){var Q=new Date,B=[G(Q.getHours()),
+ G(Q.getMinutes()),G(Q.getSeconds())].join(":");return[Q.getDate(),R[Q.getMonth()],B].join(" ")}var J=/%[sdj%]/g;D.format=function(Q){if(!z(Q)){for(var B=[],H=0;H=u)return A;switch(A){case "%s":return String(X[H++]);case "%d":return Number(X[H++]);case "%j":try{return JSON.stringify(X[H++])}catch(h){return"[Circular]"}default:return A}});for(var d=
+ X[H];H":null!=(b=this.parent)&&b.name?"attribute: {"+m+"}, parent: <"+this.parent.name+">":"attribute: {"+m+"}":""};return n}()}).call(this)},{}],160:[function(x,W,D){(function(){var n=function(b,l){function a(){this.constructor=b}for(var c in l)m.call(l,c)&&(b[c]=l[c]);a.prototype=l.prototype;b.prototype=new a;b.__super__=l.prototype;return b},m={}.hasOwnProperty;var g=x("./XMLNode");W.exports=function(b){function l(a,c){l.__super__.constructor.call(this,
+ a);if(null==c)throw Error("Missing CDATA text. "+this.debugInfo());this.text=this.stringify.cdata(c)}n(l,b);l.prototype.clone=function(){return Object.create(this)};l.prototype.toString=function(a){return this.options.writer.set(a).cdata(this)};return l}(g)}).call(this)},{"./XMLNode":171}],161:[function(x,W,D){(function(){var n=function(b,l){function a(){this.constructor=b}for(var c in l)m.call(l,c)&&(b[c]=l[c]);a.prototype=l.prototype;b.prototype=new a;b.__super__=l.prototype;return b},m={}.hasOwnProperty;
+ var g=x("./XMLNode");W.exports=function(b){function l(a,c){l.__super__.constructor.call(this,a);if(null==c)throw Error("Missing comment text. "+this.debugInfo());this.text=this.stringify.comment(c)}n(l,b);l.prototype.clone=function(){return Object.create(this)};l.prototype.toString=function(a){return this.options.writer.set(a).comment(this)};return l}(g)}).call(this)},{"./XMLNode":171}],162:[function(x,W,D){(function(){var n=function(b,l){function a(){this.constructor=b}for(var c in l)m.call(l,c)&&
+ (b[c]=l[c]);a.prototype=l.prototype;b.prototype=new a;b.__super__=l.prototype;return b},m={}.hasOwnProperty;var g=x("./XMLNode");W.exports=function(b){function l(a,c,t,p,w,r){l.__super__.constructor.call(this,a);if(null==c)throw Error("Missing DTD element name. "+this.debugInfo());if(null==t)throw Error("Missing DTD attribute name. "+this.debugInfo(c));if(!p)throw Error("Missing DTD attribute type. "+this.debugInfo(c));if(!w)throw Error("Missing DTD attribute default. "+this.debugInfo(c));0!==w.indexOf("#")&&
+ (w="#"+w);if(!w.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(r&&!w.match(/^(#FIXED|#DEFAULT)$/))throw Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.eleName(c);this.attributeName=this.stringify.attName(t);this.attributeType=this.stringify.dtdAttType(p);this.defaultValue=this.stringify.dtdAttDefault(r);this.defaultValueType=
+ w}n(l,b);l.prototype.toString=function(a){return this.options.writer.set(a).dtdAttList(this)};return l}(g)}).call(this)},{"./XMLNode":171}],163:[function(x,W,D){(function(){var n=function(b,l){function a(){this.constructor=b}for(var c in l)m.call(l,c)&&(b[c]=l[c]);a.prototype=l.prototype;b.prototype=new a;b.__super__=l.prototype;return b},m={}.hasOwnProperty;var g=x("./XMLNode");W.exports=function(b){function l(a,c,t){l.__super__.constructor.call(this,a);if(null==c)throw Error("Missing DTD element name. "+
+ this.debugInfo());t||(t="(#PCDATA)");Array.isArray(t)&&(t="("+t.join(",")+")");this.name=this.stringify.eleName(c);this.value=this.stringify.dtdElementValue(t)}n(l,b);l.prototype.toString=function(a){return this.options.writer.set(a).dtdElement(this)};return l}(g)}).call(this)},{"./XMLNode":171}],164:[function(x,W,D){(function(){var n=function(l,a){function c(){this.constructor=l}for(var t in a)m.call(a,t)&&(l[t]=a[t]);c.prototype=a.prototype;l.prototype=new c;l.__super__=a.prototype;return l},m=
+ {}.hasOwnProperty;var g=x("./Utility").isObject;var b=x("./XMLNode");W.exports=function(l){function a(c,t,p,w){a.__super__.constructor.call(this,c);if(null==p)throw Error("Missing DTD entity name. "+this.debugInfo(p));if(null==w)throw Error("Missing DTD entity value. "+this.debugInfo(p));this.pe=!!t;this.name=this.stringify.eleName(p);if(g(w)){if(!w.pubID&&!w.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(p));if(w.pubID&&!w.sysID)throw Error("System identifier is required for a public external entity. "+
+ this.debugInfo(p));null!=w.pubID&&(this.pubID=this.stringify.dtdPubID(w.pubID));null!=w.sysID&&(this.sysID=this.stringify.dtdSysID(w.sysID));null!=w.nData&&(this.nData=this.stringify.dtdNData(w.nData));if(this.pe&&this.nData)throw Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(p));}else this.value=this.stringify.dtdEntityValue(w)}n(a,l);a.prototype.toString=function(c){return this.options.writer.set(c).dtdEntity(this)};return a}(b)}).call(this)},{"./Utility":158,
+ "./XMLNode":171}],165:[function(x,W,D){(function(){var n=function(b,l){function a(){this.constructor=b}for(var c in l)m.call(l,c)&&(b[c]=l[c]);a.prototype=l.prototype;b.prototype=new a;b.__super__=l.prototype;return b},m={}.hasOwnProperty;var g=x("./XMLNode");W.exports=function(b){function l(a,c,t){l.__super__.constructor.call(this,a);if(null==c)throw Error("Missing DTD notation name. "+this.debugInfo(c));if(!t.pubID&&!t.sysID)throw Error("Public or system identifiers are required for an external entity. "+
+ this.debugInfo(c));this.name=this.stringify.eleName(c);null!=t.pubID&&(this.pubID=this.stringify.dtdPubID(t.pubID));null!=t.sysID&&(this.sysID=this.stringify.dtdSysID(t.sysID))}n(l,b);l.prototype.toString=function(a){return this.options.writer.set(a).dtdNotation(this)};return l}(g)}).call(this)},{"./XMLNode":171}],166:[function(x,W,D){(function(){var n=function(l,a){function c(){this.constructor=l}for(var t in a)m.call(a,t)&&(l[t]=a[t]);c.prototype=a.prototype;l.prototype=new c;l.__super__=a.prototype;
+ return l},m={}.hasOwnProperty;var g=x("./Utility").isObject;var b=x("./XMLNode");W.exports=function(l){function a(c,t,p,w){a.__super__.constructor.call(this,c);g(t)&&(c=t,t=c.version,p=c.encoding,w=c.standalone);t||(t="1.0");this.version=this.stringify.xmlVersion(t);null!=p&&(this.encoding=this.stringify.xmlEncoding(p));null!=w&&(this.standalone=this.stringify.xmlStandalone(w))}n(a,l);a.prototype.toString=function(c){return this.options.writer.set(c).declaration(this)};return a}(b)}).call(this)},
+ {"./Utility":158,"./XMLNode":171}],167:[function(x,W,D){(function(){var n=function(p,w){function r(){this.constructor=p}for(var E in w)m.call(w,E)&&(p[E]=w[E]);r.prototype=w.prototype;p.prototype=new r;p.__super__=w.prototype;return p},m={}.hasOwnProperty;var g=x("./Utility").isObject;var b=x("./XMLNode");var l=x("./XMLDTDAttList");var a=x("./XMLDTDEntity");var c=x("./XMLDTDElement");var t=x("./XMLDTDNotation");W.exports=function(p){function w(r,E,K){w.__super__.constructor.call(this,r);this.name=
+ "!DOCTYPE";this.documentObject=r;g(E)&&(K=E,E=K.pubID,K=K.sysID);null==K&&(E=[E,K],K=E[0],E=E[1]);null!=E&&(this.pubID=this.stringify.dtdPubID(E));null!=K&&(this.sysID=this.stringify.dtdSysID(K))}n(w,p);w.prototype.element=function(r,E){r=new c(this,r,E);this.children.push(r);return this};w.prototype.attList=function(r,E,K,U,O){r=new l(this,r,E,K,U,O);this.children.push(r);return this};w.prototype.entity=function(r,E){r=new a(this,!1,r,E);this.children.push(r);return this};w.prototype.pEntity=function(r,
+ E){r=new a(this,!0,r,E);this.children.push(r);return this};w.prototype.notation=function(r,E){r=new t(this,r,E);this.children.push(r);return this};w.prototype.toString=function(r){return this.options.writer.set(r).docType(this)};w.prototype.ele=function(r,E){return this.element(r,E)};w.prototype.att=function(r,E,K,U,O){return this.attList(r,E,K,U,O)};w.prototype.ent=function(r,E){return this.entity(r,E)};w.prototype.pent=function(r,E){return this.pEntity(r,E)};w.prototype.not=function(r,E){return this.notation(r,
+ E)};w.prototype.up=function(){return this.root()||this.documentObject};return w}(b)}).call(this)},{"./Utility":158,"./XMLDTDAttList":162,"./XMLDTDElement":163,"./XMLDTDEntity":164,"./XMLDTDNotation":165,"./XMLNode":171}],168:[function(x,W,D){(function(){var n=function(c,t){function p(){this.constructor=c}for(var w in t)m.call(t,w)&&(c[w]=t[w]);p.prototype=t.prototype;c.prototype=new p;c.__super__=t.prototype;return c},m={}.hasOwnProperty;var g=x("./Utility").isPlainObject;var b=x("./XMLNode");var l=
+ x("./XMLStringifier");var a=x("./XMLStringWriter");W.exports=function(c){function t(p){t.__super__.constructor.call(this,null);this.name="?xml";p||(p={});p.writer||(p.writer=new a);this.options=p;this.stringify=new l(p);this.isDocument=!0}n(t,c);t.prototype.end=function(p){p?g(p)&&(p=this.options.writer.set(p)):p=this.options.writer;return p.document(this)};t.prototype.toString=function(p){return this.options.writer.set(p).document(this)};return t}(b)}).call(this)},{"./Utility":158,"./XMLNode":171,
+ "./XMLStringWriter":175,"./XMLStringifier":176}],169:[function(x,W,D){(function(){var n={}.hasOwnProperty;var m=x("./Utility");var g=m.isObject;var b=m.isFunction;var l=m.isPlainObject;var a=m.getValue;var c=x("./XMLElement");var t=x("./XMLCData");var p=x("./XMLComment");var w=x("./XMLRaw");var r=x("./XMLText");var E=x("./XMLProcessingInstruction");var K=x("./XMLDeclaration");var U=x("./XMLDocType");var O=x("./XMLDTDAttList");var z=x("./XMLDTDEntity");var M=x("./XMLDTDElement");var f=x("./XMLDTDNotation");
+ var N=x("./XMLAttribute");var T=x("./XMLStringifier");var q=x("./XMLStringWriter");W.exports=function(){function F(G,k,J){this.name="?xml";G||(G={});if(!G.writer)G.writer=new q(G);else if(l(G.writer)){var I=G.writer;G.writer=new q(I)}this.options=G;this.writer=G.writer;this.stringify=new T(G);this.onDataCallback=k||function(){};this.onEndCallback=J||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentCompleted=this.documentStarted=!1;this.root=null}F.prototype.node=
+ function(G,k,J){if(null==G)throw Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw Error("Document can only have one root node. "+this.debugInfo(G));this.openCurrent();G=a(G);null==k&&(k={});k=a(k);g(k)||(k=[k,J],J=k[0],k=k[1]);this.currentNode=new c(this,G,k);this.currentNode.children=!1;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;null!=J&&this.text(J);return this};F.prototype.element=function(G,k,J){return this.currentNode&&this.currentNode instanceof
+ U?this.dtdElement.apply(this,arguments):this.node(G,k,J)};F.prototype.attribute=function(G,k){var J;if(!this.currentNode||this.currentNode.children)throw Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(G));null!=G&&(G=a(G));if(g(G))for(J in G)n.call(G,J)&&(k=G[J],this.attribute(J,k));else b(k)&&(k=k.apply()),this.options.skipNullAttributes&&null==k||(this.currentNode.attributes[G]=new N(this,G,k));return this};F.prototype.text=function(G){this.openCurrent();
+ G=new r(this,G);this.onData(this.writer.text(G,this.currentLevel+1),this.currentLevel+1);return this};F.prototype.cdata=function(G){this.openCurrent();G=new t(this,G);this.onData(this.writer.cdata(G,this.currentLevel+1),this.currentLevel+1);return this};F.prototype.comment=function(G){this.openCurrent();G=new p(this,G);this.onData(this.writer.comment(G,this.currentLevel+1),this.currentLevel+1);return this};F.prototype.raw=function(G){this.openCurrent();G=new w(this,G);this.onData(this.writer.raw(G,
+ this.currentLevel+1),this.currentLevel+1);return this};F.prototype.instruction=function(G,k){var J;this.openCurrent();null!=G&&(G=a(G));null!=k&&(k=a(k));if(Array.isArray(G))for(k=0,J=G.length;kthis.currentLevel)throw Error("The document node has no parent.");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--;return this};F.prototype.end=function(){for(;0<=this.currentLevel;)this.up();return this.onEnd()};F.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)};F.prototype.openNode=function(G){if(!G.isOpen)return!this.root&&0===this.currentLevel&&
+ G instanceof c&&(this.root=G),this.onData(this.writer.openNode(G,this.currentLevel),this.currentLevel),G.isOpen=!0};F.prototype.closeNode=function(G){if(!G.isClosed)return this.onData(this.writer.closeNode(G,this.currentLevel),this.currentLevel),G.isClosed=!0};F.prototype.onData=function(G,k){this.documentStarted=!0;return this.onDataCallback(G,k+1)};F.prototype.onEnd=function(){this.documentCompleted=!0;return this.onEndCallback()};F.prototype.debugInfo=function(G){return null==G?"":"node: <"+G+
+ ">"};F.prototype.ele=function(){return this.element.apply(this,arguments)};F.prototype.nod=function(G,k,J){return this.node(G,k,J)};F.prototype.txt=function(G){return this.text(G)};F.prototype.dat=function(G){return this.cdata(G)};F.prototype.com=function(G){return this.comment(G)};F.prototype.ins=function(G,k){return this.instruction(G,k)};F.prototype.dec=function(G,k,J){return this.declaration(G,k,J)};F.prototype.dtd=function(G,k,J){return this.doctype(G,k,J)};F.prototype.e=function(G,k,J){return this.element(G,
+ k,J)};F.prototype.n=function(G,k,J){return this.node(G,k,J)};F.prototype.t=function(G){return this.text(G)};F.prototype.d=function(G){return this.cdata(G)};F.prototype.c=function(G){return this.comment(G)};F.prototype.r=function(G){return this.raw(G)};F.prototype.i=function(G,k){return this.instruction(G,k)};F.prototype.att=function(){return this.currentNode&&this.currentNode instanceof U?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)};F.prototype.a=function(){return this.currentNode&&
+ this.currentNode instanceof U?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)};F.prototype.ent=function(G,k){return this.entity(G,k)};F.prototype.pent=function(G,k){return this.pEntity(G,k)};F.prototype.not=function(G,k){return this.notation(G,k)};return F}()}).call(this)},{"./Utility":158,"./XMLAttribute":159,"./XMLCData":160,"./XMLComment":161,"./XMLDTDAttList":162,"./XMLDTDElement":163,"./XMLDTDEntity":164,"./XMLDTDNotation":165,"./XMLDeclaration":166,"./XMLDocType":167,
+ "./XMLElement":170,"./XMLProcessingInstruction":172,"./XMLRaw":173,"./XMLStringWriter":175,"./XMLStringifier":176,"./XMLText":177}],170:[function(x,W,D){(function(){var n=function(t,p){function w(){this.constructor=t}for(var r in p)m.call(p,r)&&(t[r]=p[r]);w.prototype=p.prototype;t.prototype=new w;t.__super__=p.prototype;return t},m={}.hasOwnProperty;var g=x("./Utility");var b=g.isObject;var l=g.isFunction;var a=g.getValue;g=x("./XMLNode");var c=x("./XMLAttribute");W.exports=function(t){function p(w,
+ r,E){p.__super__.constructor.call(this,w);if(null==r)throw Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(r);this.attributes={};null!=E&&this.attribute(E);w.isDocument&&(this.isRoot=!0,this.documentObject=w,w.rootObject=this)}n(p,t);p.prototype.clone=function(){var w;var r=Object.create(this);r.isRoot&&(r.documentObject=null);r.attributes={};var E=this.attributes;for(w in E)if(m.call(E,w)){var K=E[w];r.attributes[w]=K.clone()}r.children=[];this.children.forEach(function(U){U=
+ U.clone();U.parent=r;return r.children.push(U)});return r};p.prototype.attribute=function(w,r){var E;null!=w&&(w=a(w));if(b(w))for(E in w)m.call(w,E)&&(r=w[E],this.attribute(E,r));else l(r)&&(r=r.apply()),this.options.skipNullAttributes&&null==r||(this.attributes[w]=new c(this,w,r));return this};p.prototype.removeAttribute=function(w){var r;if(null==w)throw Error("Missing attribute name. "+this.debugInfo());w=a(w);if(Array.isArray(w)){var E=0;for(r=w.length;Ez)throw Error("Already at the first node. "+this.debugInfo());return this.parent.children[z-1]};O.prototype.next=function(){var z=this.parent.children.indexOf(this);
+ if(-1===z||z===this.parent.children.length-1)throw Error("Already at the last node. "+this.debugInfo());return this.parent.children[z+1]};O.prototype.importDocument=function(z){z=z.root().clone();z.parent=this;z.isRoot=!1;this.children.push(z);return this};O.prototype.debugInfo=function(z){var M,f;z=z||this.name;return null!=z||null!=(M=this.parent)&&M.name?null==z?"parent: <"+this.parent.name+">":null!=(f=this.parent)&&f.name?"node: <"+z+">, parent: <"+this.parent.name+">":"node: <"+z+">":""};O.prototype.ele=
+ function(z,M,f){return this.element(z,M,f)};O.prototype.nod=function(z,M,f){return this.node(z,M,f)};O.prototype.txt=function(z){return this.text(z)};O.prototype.dat=function(z){return this.cdata(z)};O.prototype.com=function(z){return this.comment(z)};O.prototype.ins=function(z,M){return this.instruction(z,M)};O.prototype.doc=function(){return this.document()};O.prototype.dec=function(z,M,f){return this.declaration(z,M,f)};O.prototype.dtd=function(z,M){return this.doctype(z,M)};O.prototype.e=function(z,
+ M,f){return this.element(z,M,f)};O.prototype.n=function(z,M,f){return this.node(z,M,f)};O.prototype.t=function(z){return this.text(z)};O.prototype.d=function(z){return this.cdata(z)};O.prototype.c=function(z){return this.comment(z)};O.prototype.r=function(z){return this.raw(z)};O.prototype.i=function(z,M){return this.instruction(z,M)};O.prototype.u=function(){return this.up()};O.prototype.importXMLBuilder=function(z){return this.importDocument(z)};return O}()}).call(this)},{"./Utility":158,"./XMLCData":160,
+ "./XMLComment":161,"./XMLDeclaration":166,"./XMLDocType":167,"./XMLElement":170,"./XMLProcessingInstruction":172,"./XMLRaw":173,"./XMLText":177}],172:[function(x,W,D){(function(){var n=function(b,l){function a(){this.constructor=b}for(var c in l)m.call(l,c)&&(b[c]=l[c]);a.prototype=l.prototype;b.prototype=new a;b.__super__=l.prototype;return b},m={}.hasOwnProperty;var g=x("./XMLNode");W.exports=function(b){function l(a,c,t){l.__super__.constructor.call(this,a);if(null==c)throw Error("Missing instruction target. "+
+ this.debugInfo());this.target=this.stringify.insTarget(c);t&&(this.value=this.stringify.insValue(t))}n(l,b);l.prototype.clone=function(){return Object.create(this)};l.prototype.toString=function(a){return this.options.writer.set(a).processingInstruction(this)};return l}(g)}).call(this)},{"./XMLNode":171}],173:[function(x,W,D){(function(){var n=function(b,l){function a(){this.constructor=b}for(var c in l)m.call(l,c)&&(b[c]=l[c]);a.prototype=l.prototype;b.prototype=new a;b.__super__=l.prototype;return b},
+ m={}.hasOwnProperty;var g=x("./XMLNode");W.exports=function(b){function l(a,c){l.__super__.constructor.call(this,a);if(null==c)throw Error("Missing raw text. "+this.debugInfo());this.value=this.stringify.raw(c)}n(l,b);l.prototype.clone=function(){return Object.create(this)};l.prototype.toString=function(a){return this.options.writer.set(a).raw(this)};return l}(g)}).call(this)},{"./XMLNode":171}],174:[function(x,W,D){(function(){var n=function(z,M){function f(){this.constructor=z}for(var N in M)m.call(M,
+ N)&&(z[N]=M[N]);f.prototype=M.prototype;z.prototype=new f;z.__super__=M.prototype;return z},m={}.hasOwnProperty;var g=x("./XMLDeclaration");var b=x("./XMLDocType");var l=x("./XMLCData");var a=x("./XMLComment");var c=x("./XMLElement");var t=x("./XMLRaw");var p=x("./XMLText");var w=x("./XMLProcessingInstruction");var r=x("./XMLDTDAttList");var E=x("./XMLDTDElement");var K=x("./XMLDTDEntity");var U=x("./XMLDTDNotation");var O=x("./XMLWriterBase");W.exports=function(z){function M(f,N){M.__super__.constructor.call(this,
+ N);this.stream=f}n(M,z);M.prototype.document=function(f){var N;var T=f.children;var q=0;for(N=T.length;q");return this.stream.write(this.endline(f))};M.prototype.docType=function(f,N){var T;N||(N=0);this.stream.write(this.space(N));this.stream.write("");return this.stream.write(this.endline(f))};M.prototype.element=function(f,N){N||(N=0);var T=this.space(N);this.stream.write(T+"<"+f.name);var q=f.attributes;for(k in q)if(m.call(q,k)){var F=q[k];this.attribute(F)}if(0===f.children.length||f.children.every(function(J){return""===J.value}))this.allowEmpty?this.stream.write(">"+f.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&1===f.children.length&&
+ null!=f.children[0].value)this.stream.write(">"),this.stream.write(f.children[0].value),this.stream.write(""+f.name+">");else{this.stream.write(">"+this.newline);var G=f.children;var k=0;for(q=G.length;k")}return this.stream.write(this.endline(f))};M.prototype.processingInstruction=function(f,N){this.stream.write(this.space(N)+""+f.target);f.value&&this.stream.write(" "+f.value);return this.stream.write(this.spacebeforeslash+"?>"+this.endline(f))};M.prototype.raw=function(f,N){return this.stream.write(this.space(N)+f.value+this.endline(f))};M.prototype.text=function(f,N){return this.stream.write(this.space(N)+
+ f.value+this.endline(f))};M.prototype.dtdAttList=function(f,N){this.stream.write(this.space(N)+""+this.endline(f))};M.prototype.dtdElement=function(f,N){this.stream.write(this.space(N)+""+this.endline(f))};M.prototype.dtdEntity=function(f,N){this.stream.write(this.space(N)+""+this.endline(f))};M.prototype.dtdNotation=function(f,N){this.stream.write(this.space(N)+
+ ""+this.endline(f))};M.prototype.endline=function(f){return f.isLastRootNode?"":this.newline};return M}(O)}).call(this)},{"./XMLCData":160,"./XMLComment":161,"./XMLDTDAttList":162,"./XMLDTDElement":163,"./XMLDTDEntity":164,"./XMLDTDNotation":165,"./XMLDeclaration":166,
+ "./XMLDocType":167,"./XMLElement":170,"./XMLProcessingInstruction":172,"./XMLRaw":173,"./XMLText":177,"./XMLWriterBase":178}],175:[function(x,W,D){(function(){var n=function(z,M){function f(){this.constructor=z}for(var N in M)m.call(M,N)&&(z[N]=M[N]);f.prototype=M.prototype;z.prototype=new f;z.__super__=M.prototype;return z},m={}.hasOwnProperty;var g=x("./XMLDeclaration");var b=x("./XMLDocType");var l=x("./XMLCData");var a=x("./XMLComment");var c=x("./XMLElement");var t=x("./XMLRaw");var p=x("./XMLText");
+ var w=x("./XMLProcessingInstruction");var r=x("./XMLDTDAttList");var E=x("./XMLDTDElement");var K=x("./XMLDTDEntity");var U=x("./XMLDTDNotation");var O=x("./XMLWriterBase");W.exports=function(z){function M(f){M.__super__.constructor.call(this,f)}n(M,z);M.prototype.document=function(f){var N;this.textispresent=!1;var T="";var q=f.children;f=0;for(N=q.length;f";return N+=this.newline};M.prototype.docType=function(f,N){var T;N||(N=0);var q=this.space(N);q+="";return q+=this.newline};M.prototype.element=function(f,N){var T;N||(N=0);var q=!1;this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault);var F=this.space(N);var G=F+"<"+f.name;var k=f.attributes;for(T in k)if(m.call(k,T)){var J=k[T];G+=this.attribute(J)}if(0===f.children.length||f.children.every(function(S){return""===S.value}))G=this.allowEmpty?G+(">"+f.name+">"+this.newline):G+(this.spacebeforeslash+"/>"+
+ this.newline);else if(this.pretty&&1===f.children.length&&null!=f.children[0].value)G=G+">"+f.children[0].value,G+=""+f.name+">"+this.newline;else{if(this.dontprettytextnodes)for(k=f.children,J=0,T=k.length;J"+this.newline;k=f.children;J=0;for(T=k.length;J"+this.newline}return G};M.prototype.processingInstruction=
+ function(f,N){N=this.space(N)+""+f.target;f.value&&(N+=" "+f.value);return N+=this.spacebeforeslash+"?>"+this.newline};M.prototype.raw=function(f,N){return this.space(N)+f.value+this.newline};M.prototype.text=function(f,N){return this.space(N)+f.value+this.newline};M.prototype.dtdAttList=function(f,N){N=this.space(N)+""+this.newline};M.prototype.dtdElement=function(f,N){return this.space(N)+""+this.newline};M.prototype.dtdEntity=function(f,N){N=this.space(N)+""+this.newline};M.prototype.dtdNotation=function(f,
+ N){N=this.space(N)+""+this.newline};M.prototype.openNode=function(f,N){var T;N||(N=0);if(f instanceof c){var q=this.space(N)+"<"+f.name;var F=f.attributes;for(T in F)m.call(F,T)&&(N=F[T],q+=this.attribute(N));q+=(f.children?">":"/>")+this.newline}else q=this.space(N)+"")+this.newline;return q};M.prototype.closeNode=function(f,N){N||(N=0);switch(!1){case !(f instanceof c):return this.space(N)+""+f.name+">"+this.newline;case !(f instanceof b):return this.space(N)+"]>"+this.newline}};return M}(O)}).call(this)},{"./XMLCData":160,"./XMLComment":161,"./XMLDTDAttList":162,"./XMLDTDElement":163,"./XMLDTDEntity":164,"./XMLDTDNotation":165,"./XMLDeclaration":166,"./XMLDocType":167,
+ "./XMLElement":170,"./XMLProcessingInstruction":172,"./XMLRaw":173,"./XMLText":177,"./XMLWriterBase":178}],176:[function(x,W,D){(function(){var n=function(g,b){return function(){return g.apply(b,arguments)}},m={}.hasOwnProperty;W.exports=function(){function g(b){this.assertLegalChar=n(this.assertLegalChar,this);var l;b||(b={});this.noDoubleEncoding=b.noDoubleEncoding;b=b.stringify||{};for(l in b)if(m.call(b,l)){var a=b[l];this[l]=a}}g.prototype.eleName=function(b){return this.assertLegalChar(""+b||
+ "")};g.prototype.eleText=function(b){return this.assertLegalChar(this.elEscape(""+b||""))};g.prototype.cdata=function(b){b=(""+b||"").replace("]]\x3e","]]]]\x3e");return this.assertLegalChar(b)};g.prototype.comment=function(b){b=""+b||"";if(b.match(/--/))throw Error("Comment text cannot contain double-hypen: "+b);return this.assertLegalChar(b)};g.prototype.raw=function(b){return""+b||""};g.prototype.attName=function(b){return""+b||""};g.prototype.attValue=function(b){return this.attEscape(""+
+ b||"")};g.prototype.insTarget=function(b){return""+b||""};g.prototype.insValue=function(b){b=""+b||"";if(b.match(/\?>/))throw Error("Invalid processing instruction value: "+b);return b};g.prototype.xmlVersion=function(b){b=""+b||"";if(!b.match(/1\.[0-9]+/))throw Error("Invalid version number: "+b);return b};g.prototype.xmlEncoding=function(b){b=""+b||"";if(!b.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error("Invalid encoding: "+b);return b};g.prototype.xmlStandalone=function(b){return b?"yes":"no"};
+ g.prototype.dtdPubID=function(b){return""+b||""};g.prototype.dtdSysID=function(b){return""+b||""};g.prototype.dtdElementValue=function(b){return""+b||""};g.prototype.dtdAttType=function(b){return""+b||""};g.prototype.dtdAttDefault=function(b){return null!=b?""+b||"":b};g.prototype.dtdEntityValue=function(b){return""+b||""};g.prototype.dtdNData=function(b){return""+b||""};g.prototype.convertAttKey="@";g.prototype.convertPIKey="?";g.prototype.convertTextKey="#text";g.prototype.convertCDataKey="#cdata";
+ g.prototype.convertCommentKey="#comment";g.prototype.convertRawKey="#raw";g.prototype.assertLegalChar=function(b){var l;if(l=b.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw Error("Invalid character in string: "+b+" at index "+l.index);return b};g.prototype.elEscape=function(b){return b.replace(this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,"&").replace(/