/** * importword 1.2v * The tinymce-plugins is used to import word * * https://github.com/Five-great/tinymce-plugins * * Copyright 2020, Five(Li Hailong) The Chengdu, China https://www.fivecc.cn/ * * Licensed under MIT */ (function(pa){"object"===typeof exports&&"undefined"!==typeof module?module.exports=pa():"function"===typeof define&&define.amd?define([],pa):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).mammoth=pa()})(function(){return function n(x,W,C){function m(l,a){if(!W[l]){if(!x[l]){var c="function"==typeof require&&require;if(!a&&c)return c(l,!0);if(g)return g(l,!0);a=Error("Cannot find module '"+l+"'");throw a.code="MODULE_NOT_FOUND",a;}a=W[l]= {exports:{}};x[l][0].call(a.exports,function(t){var p=x[l][1][t];return m(p?p:t)},a,a.exports,n,x,W,C)}return W[l].exports}for(var g="function"==typeof require&&require,b=0;b h1\" instead of mammoth.styleMapping(\"p[style-name='Title'] => h1\")");}},{"./document-to-html":3,"./docx/docx-reader":9,"./docx/style-map":14,"./images":20,"./options-reader":22,"./results":24,"./style-reader":25,"./transforms":29,"./underline":30,"./unzip":2,underscore:153}],22:[function(x,W,C){function n(l){return l?m.isString(l)?l.split("\n").map(function(a){return a.trim()}).filter(function(a){return""!== a&&"#"!==a.charAt(0)}):l:[]}C.readOptions=function(l){l=l||{};return m.extend({},b,l,{customStyleMap:n(l.styleMap),readStyleMap:function(){var a=this.customStyleMap;this.includeEmbeddedStyleMap&&(a=a.concat(n(this.embeddedStyleMap)));this.includeDefaultStyleMap&&(a=a.concat(g));return a}})};var m=x("underscore"),g=C._defaultStyleMap="p.Heading1 => h1:fresh;p.Heading2 => h2:fresh;p.Heading3 => h3:fresh;p.Heading4 => h4:fresh;p.Heading5 => h5:fresh;p.Heading6 => h6:fresh;p[style-name='Heading 1'] => h1:fresh;p[style-name='Heading 2'] => h2:fresh;p[style-name='Heading 3'] => h3:fresh;p[style-name='Heading 4'] => h4:fresh;p[style-name='Heading 5'] => h5:fresh;p[style-name='Heading 6'] => h6:fresh;p[style-name='heading 1'] => h1:fresh;p[style-name='heading 2'] => h2:fresh;p[style-name='heading 3'] => h3:fresh;p[style-name='heading 4'] => h4:fresh;p[style-name='heading 5'] => h5:fresh;p[style-name='heading 6'] => h6:fresh;r[style-name='Strong'] => strong;p[style-name='footnote text'] => p:fresh;r[style-name='footnote reference'] =>;p[style-name='endnote text'] => p:fresh;r[style-name='endnote reference'] =>;p[style-name='annotation text'] => p:fresh;r[style-name='annotation reference'] =>;p[style-name='Footnote'] => p:fresh;r[style-name='Footnote anchor'] =>;p[style-name='Endnote'] => p:fresh;r[style-name='Endnote anchor'] =>;p:unordered-list(1) => ul > li:fresh;p:unordered-list(2) => ul|ol > li > ul > li:fresh;p:unordered-list(3) => ul|ol > li > ul|ol > li > ul > li:fresh;p:unordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh;p:unordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ul > li:fresh;p:ordered-list(1) => ol > li:fresh;p:ordered-list(2) => ul|ol > li > ol > li:fresh;p:ordered-list(3) => ul|ol > li > ul|ol > li > ol > li:fresh;p:ordered-list(4) => ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh;p:ordered-list(5) => ul|ol > li > ul|ol > li > ul|ol > li > ul|ol > li > ol > li:fresh;r[style-name='Hyperlink'] =>;p[style-name='Normal'] => p:fresh".split(";"), b=C._standardOptions={transformDocument:function(l){return l},includeDefaultStyleMap:!0,includeEmbeddedStyleMap:!0}},{underscore:153}],23:[function(x,W,C){var n=x("underscore"),m=x("bluebird/js/release/promise")();C.defer=function(){var g,b,l=new m.Promise(function(a,c){g=a;b=c});return{resolve:g,reject:b,promise:l}};C.when=m.resolve;C.resolve=m.resolve;C.all=m.all;C.props=m.props;C.reject=m.reject;C.promisify=m.promisify;C.mapSeries=m.mapSeries;C.attempt=m.attempt;C.nfcall=function(g){var b=Array.prototype.slice.call(arguments, 1);return m.promisify(g).apply(null,b)};m.prototype.fail=m.prototype.caught;m.prototype.also=function(g){return this.then(function(b){b=n.extend({},b,g(b));return m.props(b)})}},{"bluebird/js/release/promise":60,underscore:153}],24:[function(x,W,C){function n(l,a){this.value=l;this.messages=a||[]}function m(l){var a=[];b.flatten(b.pluck(l,"messages"),!0).forEach(function(c){void 0===b.find(a,g.bind(null,c))&&a.push(c)});return a}function g(l,a){return l.type===a.type&&l.message===a.message}var b= x("underscore");C.Result=n;C.success=function(l){return new n(l,[])};C.warning=function(l){return{type:"warning",message:l}};C.error=function(l){return{type:"error",message:l.message,error:l}};n.prototype.map=function(l){return new n(l(this.value),this.messages)};n.prototype.flatMap=function(l){l=l(this.value);return new n(l.value,m([this,l]))};n.prototype.flatMapThen=function(l){var a=this;return l(this.value).then(function(c){return new n(c.value,m([a,c]))})};n.combine=function(l){var a=b.flatten(b.pluck(l, "value"));l=m(l);return new n(a,l)}},{underscore:153}],25:[function(x,W,C){function n(){function f(R){R=c.rules.firstOf.apply(c.rules.firstOf,["matcher suffix"].concat(R));R=c.rules.zeroOrMore(R);return c.rules.then(R,function(Q){var B={};Q.forEach(function(H){a.extend(B,H)});return B})}var N=c.rules.sequence,T=function(R,Q){return c.rules.then(c.rules.token("identifier",R),function(){return Q})},q=T("p",t.paragraph),F=T("r",t.run);q=c.rules.firstOf("p or r or table",q,F);F=c.rules.then(z,function(R){return{styleId:R}}); var G=c.rules.firstOf("style name matcher",c.rules.then(c.rules.sequence(c.rules.tokenOfType("equals"),c.rules.sequence.cut(),c.rules.sequence.capture(U)).head(),function(R){return{styleName:t.equalTo(R)}}),c.rules.then(c.rules.sequence(c.rules.tokenOfType("startsWith"),c.rules.sequence.cut(),c.rules.sequence.capture(U)).head(),function(R){return{styleName:t.startsWith(R)}}));G=c.rules.sequence(c.rules.tokenOfType("open-square-bracket"),c.rules.sequence.cut(),c.rules.token("identifier","style-name"), c.rules.sequence.capture(G),c.rules.tokenOfType("close-square-bracket")).head();var k=c.rules.firstOf("list type",T("ordered-list",{isOrdered:!0}),T("unordered-list",{isOrdered:!1}));k=N(c.rules.tokenOfType("colon"),N.capture(k),N.cut(),c.rules.tokenOfType("open-paren"),N.capture(K),c.rules.tokenOfType("close-paren")).map(function(R,Q){return{list:{isOrdered:R.isOrdered,levelIndex:Q-1}}});q=N(N.capture(q),N.capture(f([F,G,k]))).map(function(R,Q){return R(Q)});F=N(c.rules.token("identifier","table"), N.capture(f([F,G]))).map(function(R){return t.table(R)});G=T("b",t.bold);k=T("i",t.italic);var J=T("u",t.underline),I=T("strike",t.strikethrough),S=T("small-caps",t.smallCaps);T=T("comment-reference",t.commentReference);N=N(c.rules.token("identifier","br"),N.cut(),c.rules.tokenOfType("open-square-bracket"),c.rules.token("identifier","type"),c.rules.tokenOfType("equals"),N.capture(U),c.rules.tokenOfType("close-square-bracket")).map(function(R){switch(R){case "line":return t.lineBreak;case "page":return t.pageBreak; case "column":return t.columnBreak}});return c.rules.firstOf("element type",q,F,G,k,J,I,S,T,N)}function m(){var f=c.rules.sequence.capture,N=c.rules.tokenOfType("whitespace"),T=c.rules.then(c.rules.optional(c.rules.sequence(c.rules.tokenOfType("colon"),c.rules.token("identifier","fresh"))),function(G){return G.map(function(){return!0}).valueOrElse(!1)}),q=c.rules.then(c.rules.optional(c.rules.sequence(c.rules.tokenOfType("colon"),c.rules.token("identifier","separator"),c.rules.tokenOfType("open-paren"), f(U),c.rules.tokenOfType("close-paren")).head()),function(G){return G.valueOrElse("")}),F=c.rules.oneOrMoreWithSeparator(E,c.rules.tokenOfType("choice"));f=c.rules.sequence(f(F),f(c.rules.zeroOrMore(z)),f(T),f(q)).map(function(G,k,J,I){var S={},R={};0/},{name:"whitespace",regex:/\s+/},{name:"arrow",regex:/=>/},{name:"equals",regex:/=/},{name:"startsWith",regex:/\^=/},{name:"open-paren",regex:/\(/},{name:"close-paren",regex:/\)/}, {name:"open-square-bracket",regex:/\[/},{name:"close-square-bracket",regex:/\]/},{name:"string",regex:new RegExp(m+"'")},{name:"unterminated-string",regex:new RegExp(m)},{name:"integer",regex:/([0-9]+)/},{name:"choice",regex:/\|/},{name:"bang",regex:/(!)/}])).tokenise(g)};var m="'((?:\\\\.|[^'])*)"},{lop:107}],29:[function(x,W,C){function n(a,c){return m(function(t){return t.type===a?c(t):t})}function m(a){return function p(t){if(t.children){var v=l.map(t.children,p);t=l.extend(t,{children:v})}return a(t)}} function g(a){var c=[];b(a,function(t){c.push(t)});return c}function b(a,c){a.children&&a.children.forEach(function(t){b(t,c);c(t)})}var l=x("underscore");C.paragraph=function(a){return n("paragraph",a)};C.run=function(a){return n("run",a)};C._elements=m;C.getDescendantsOfType=function(a,c){return g(a).filter(function(t){return t.type===c})};C.getDescendants=g},{underscore:153}],30:[function(x,W,C){var n=x("./styles/html-paths"),m=x("./html");C.element=function(g){return function(b){return m.elementWithTag(n.element(g), [b])}}},{"./html":18,"./styles/html-paths":27}],31:[function(x,W,C){function n(){function a(){r=!1;if(!v&&(0===p.length||l[p[p.length-1]])&&!c()){E._append("\n");for(var K=0;K/g,">"))}).join("")}var c=[];return{asString:function(){return c.join("")},open:function(t,p){p=a(p);c.push(g.format("<%s%s>",t,p))},close:function(t){c.push(g.format("",t))},text:function(t){c.push(t.replace(/&/g,"&").replace(//g,">"))},selfClosing:function(t, p){p=a(p);c.push(g.format("<%s%s />",t,p))},_append:function(t){c.push(t)}}}var g=x("util"),b=x("underscore");C.writer=function(a){a=a||{};return a.prettyPrint?n():m()};var l={div:!0,p:!0,ul:!0,li:!0}},{underscore:153,util:157}],32:[function(x,W,C){var n=x("./html-writer"),m=x("./markdown-writer");C.writer=function(g){g=g||{};return"markdown"===g.outputFormat?m.writer():n.writer(g)}},{"./html-writer":31,"./markdown-writer":33}],33:[function(x,W,C){function n(a){return m(a,a)}function m(a,c){return function(){return{start:a, end:c}}}function g(a){return function(c,t){return{start:t?"\n":"",end:t?"":"\n",list:{isOrdered:a.isOrdered,indent:t?t.indent+1:0,count:0}}}}var b=x("underscore"),l={p:m("","\n\n"),br:m(""," \n"),ul:g({isOrdered:!1}),ol:g({isOrdered:!0}),li:function(a,c,t){c=c||{indent:0,isOrdered:!1,count:0};c.count++;t.hasClosed=!1;a=c.isOrdered?c.count+".":"-";return{start:Array(c.indent+1).join("\t")+a+" ",end:function(){if(!t.hasClosed)return t.hasClosed=!0,"\n"}}},strong:n("__"),em:n("*"),a:function(a){return(a= a.href||"")?{start:"[",end:"]("+a+")",anchorPosition:"before"}:{}},img:function(a){var c=a.src||"";a=a.alt||"";return c||a?{start:"!["+a+"]("+c+")"}:{}}};(function(){for(var a=1;6>=a;a++)l["h"+a]=m(Array(a+1).join("#")+" ","\n\n")})();C.writer=function(){function a(K,U){U=U||{};K=(l[K]||function(){return{}})(U,r,E);v.push({end:K.end,list:r});K.list&&(r=K.list);var O="before"===K.anchorPosition;O&&c(U);p.push(K.start||"");O||c(U)}function c(K){K.id&&p.push('')}function t(K){K= v.pop();r=K.list;K=b.isFunction(K.end)?K.end():K.end;p.push(K||"")}var p=[],v=[],r=null,E={};return{asString:function(){return p.join("")},open:a,close:t,text:function(K){p.push(K.replace(/\\/g,"\\\\").replace(/([`\*_\{\}\[\]\(\)#\+\-\.!])/g,"\\$1"))},selfClosing:function(K,U){a(K,U);t(K)}}}},{underscore:153}],34:[function(x,W,C){W=x("./nodes");C.Element=W.Element;C.element=W.element;C.text=W.text;C.readString=x("./reader").readString;C.writeString=x("./writer").writeString},{"./nodes":35,"./reader":36, "./writer":37}],35:[function(x,W,C){function n(l,a,c){this.type="element";this.name=l;this.attributes=a||{};this.children=c||[]}var m=x("underscore");C.Element=n;C.element=function(l,a,c){return new n(l,a,c)};C.text=function(l){return{type:"text",value:l}};var g={first:function(){return null},firstOrEmpty:function(){return g},attributes:{}};n.prototype.first=function(l){return m.find(this.children,function(a){return a.name===l})};n.prototype.firstOrEmpty=function(l){return this.first(l)||g};n.prototype.getElementsByTagName= function(l){var a=m.filter(this.children,function(c){return c.name===l});return m.extend(a,b)};n.prototype.text=function(){if(0===this.children.length)return"";if(1!==this.children.length||"text"!==this.children[0].type)throw Error("Not implemented");return this.children[0].value};var b={getElementsByTagName:function(l){return m.extend(m.flatten(this.map(function(a){return a.getElementsByTagName(l)},!0)),b)}}},{underscore:153}],36:[function(x,W,C){function n(c,t,p){return b.reduce(c,function(v,r, E){var K=p(r,E,c);v[K]=t(r,E,c);return v},{})}var m=x("../promises"),g=x("sax"),b=x("underscore"),l=x("./nodes"),a=l.Element;C.readString=function(c,t){function p(z){if(z.uri){var M=t[z.uri];return(M?M+":":"{"+z.uri+"}")+z.local}return z.local}t=t||{};var v=!1,r=g.parser(!0,{xmlns:!0,position:!1}),E={children:[]},K=E,U=[],O=m.defer();r.onopentag=function(z){var M=n(z.attributes,function(f){return f.value},p);z=new a(p(z),M);K.children.push(z);U.push(K);K=z};r.onclosetag=function(z){K=U.pop()};r.ontext= function(z){K!==E&&K.children.push(l.text(z))};r.onend=function(){v||(v=!0,O.resolve(E.children[0]))};r.onerror=function(z){v||(v=!0,O.reject(z))};r.write(c).close();return O.promise}},{"../promises":23,"./nodes":35,sax:150,underscore:153}],37:[function(x,W,C){function n(b,l){b.text(l.value)}var m=x("underscore"),g=x("xmlbuilder");C.writeString=function(b,l){function a(p){var v=/^\{(.*)\}(.*)$/.exec(p);return v?(p=c[v[1]],p+(""===p?"":":")+v[2]):p}var c=m.invert(l),t={element:function(p,v){var r= p.element(a(v.name),v.attributes);v.children.forEach(function(E){t[E.type](r,E)})},text:n};return function(p){var v=g.create(a(p.name),{version:"1.0",encoding:"UTF-8",standalone:!0});m.forEach(l,function(r,E){v.attribute("xmlns"+(""===E?"":":"+E),r)});p.children.forEach(function(r){t[r.type](v,r)});return v.end()}(b)}},{underscore:153,xmlbuilder:179}],38:[function(x,W,C){(function(n){var m=x("jszip"),g=x("./promises");C.openArrayBuffer=function(b){var l=new m(b);return{exists:function(a){return null!== l.file(a)},read:function(a,c){a=l.file(a).asUint8Array();a=new n(a);return c?g.when(a.toString(c)):g.when(a)},write:function(a,c){l.file(a,c)},toBuffer:function(){return l.generate({type:"nodebuffer"})}}};C.splitPath=function(b){var l=b.lastIndexOf("/");return-1===l?{dirname:"",basename:b}:{dirname:b.substring(0,l),basename:b.substring(l+1)}};C.joinPath=function(){var b=[];Array.prototype.filter.call(arguments,function(l){return l}).forEach(function(l){/^\//.test(l)?b=[l]:b.push(l)});return b.join("/")}}).call(this, x("buffer").Buffer)},{"./promises":23,buffer:77,jszip:92}],39:[function(x,W,C){function n(a){var c=a.length;if(0>18&63]+g[c>>12&63]+g[c>>6&63]+g[c&63]);return p.join("")}C.byteLength=function(a){return 3*a.length/4-n(a)};C.toByteArray=function(a){var c=a.length;var t=n(a);var p=new l(3*c/4-t);var v=0>16&255;p[r++]=E>>8&255;p[r++]=E&255}2===t?(E=b[a.charCodeAt(c)]<<2|b[a.charCodeAt(c+1)]>>4,p[r++]=E&255):1===t&&(E=b[a.charCodeAt(c)]<<10|b[a.charCodeAt(c+1)]<<4|b[a.charCodeAt(c+2)]>>2,p[r++]=E>>8&255,p[r++]=E&255);return p};C.fromByteArray=function(a){for(var c=a.length,t=c%3,p="",v=[],r=0,E=c-t;rE?E:r+16383));1===t?(a=a[c-1],p+= g[a>>2],p+=g[a<<4&63],p+="=="):2===t&&(a=(a[c-2]<<8)+a[c-1],p+=g[a>>10],p+=g[a>>4&63],p+=g[a<<2&63],p+="=");v.push(p);return v.join("")};var g=[],b=[],l="undefined"!==typeof Uint8Array?Uint8Array:Array;for(x=0;64>x;++x)g[x]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[x],b["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(x)]=x;b[45]=62;b[95]=63},{}],40:[function(x,W,C){W.exports=function(n){function m(b){b=new g(b);var l=b.promise();b.setHowMany(1); b.setUnwrap();b.init();return l}var g=n._SomePromiseArray;n.any=function(b){return m(b)};n.prototype.any=function(){return m(this)}}},{}],41:[function(x,W,C){(function(n){function m(){this._isTickUsed=this._customScheduler=!1;this._lateQueue=new t(16);this._normalQueue=new t(16);this._haveDrainedQueues=!1;this._trampolineEnabled=!0;var v=this;this.drainQueues=function(){v._drainQueues()};this._schedule=c}function g(v,r,E){this._lateQueue.push(v,r,E);this._queueTick()}function b(v,r,E){this._normalQueue.push(v, r,E);this._queueTick()}function l(v){this._normalQueue._pushOne(v);this._queueTick()}try{throw Error();}catch(v){var a=v}var c=x("./schedule"),t=x("./queue"),p=x("./util");m.prototype.setScheduler=function(v){var r=this._schedule;this._schedule=v;this._customScheduler=!0;return r};m.prototype.hasCustomScheduler=function(){return this._customScheduler};m.prototype.enableTrampoline=function(){this._trampolineEnabled=!0};m.prototype.disableTrampolineIfNecessary=function(){p.hasDevTools&&(this._trampolineEnabled= !1)};m.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};m.prototype.fatalError=function(v,r){r?(n.stderr.write("Fatal "+(v instanceof Error?v.stack:v)+"\n"),n.exit(2)):this.throwLater(v)};m.prototype.throwLater=function(v,r){1===arguments.length&&(r=v,v=function(){throw r;});if("undefined"!==typeof setTimeout)setTimeout(function(){v(r)},0);else try{this._schedule(function(){v(r)})}catch(E){throw Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n"); }};p.hasDevTools?(m.prototype.invokeLater=function(v,r,E){this._trampolineEnabled?g.call(this,v,r,E):this._schedule(function(){setTimeout(function(){v.call(r,E)},100)})},m.prototype.invoke=function(v,r,E){this._trampolineEnabled?b.call(this,v,r,E):this._schedule(function(){v.call(r,E)})},m.prototype.settlePromises=function(v){this._trampolineEnabled?l.call(this,v):this._schedule(function(){v._settlePromises()})}):(m.prototype.invokeLater=g,m.prototype.invoke=b,m.prototype.settlePromises=l);m.prototype._drainQueue= function(v){for(;0M&&(M=Math.max(0,M+z.length));return z[M]}var t=x("./util"),p=t.canEvaluate,v=t.isIdentifier,r=function(z){return(new Function("ensureMethod", " \n return function(obj) { \n 'use strict' \n var len = this.length; \n ensureMethod(obj, 'methodName'); \n switch(len) { \n case 1: return obj.methodName(this[0]); \n case 2: return obj.methodName(this[0], this[1]); \n case 3: return obj.methodName(this[0], this[1], this[2]); \n case 0: return obj.methodName(); \n default: \n return obj.methodName.apply(obj, this); \n } \n }; \n ".replace(/methodName/g, z)))(b)},E=function(z){return new Function("obj"," \n 'use strict'; \n return obj.propertyName; \n ".replace("propertyName",z))},K=function(z,M,f){var N=f[z];if("function"!==typeof N){if(!v(z))return null;N=M(z);f[z]=N;f[" size"]++;if(512M;++M)delete f[z[M]];f[" size"]=z.length-256}}return N}; var U=function(z){return K(z,r,n)};var O=function(z){return K(z,E,m)};g.prototype.call=function(z){for(var M=arguments.length,f=Array(Math.max(M-1,0)),N=1;N=this._branchesRemainingToCancel};n.prototype._cancelBy=function(p){if(p===this)return this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0;this._branchHasCancelled();return this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1};n.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&& this._cancel()};n.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),t.invoke(this._cancelPromises,this,void 0))};n.prototype._cancelPromises=function(){0ba.length?ba:ba.substr(0,38)+"...";return"(<"+aa+">, no stack trace)"}function F(){return"function"===typeof la}function G(aa){if(aa=aa.match(ha))return{fileName:aa[1],line:parseInt(aa[2],10)}}function k(aa){this._parent=aa;this._promisesCreated=0;aa=this._length= 1+(void 0===aa?0:aa._length);la(this,k);32aa)){var ba=[],ea={},da=0;for(aa=this;void 0!==aa;++da)ba.push(aa),aa=aa._parent; aa=this._length=da;for(da=aa-1;0<=da;--da){var ia=ba[da].stack;void 0===ea[ia]&&(ea[ia]=da)}for(da=0;daea||0>da||!ia||!ka||ia!==ka||ea>= da||(fa=function(oa){return X.test(oa)?!0:(oa=G(oa))&&oa.fileName===ia&&ea<=oa.line&&oa.line<=da?!0:!1})}},warn:O,deprecated:function(aa,ba){aa+=" is deprecated and will be removed in a future version.";ba&&(aa+=" Use "+ba+" instead.");return O(aa)},CapturedTrace:k,fireDomEvent:L,fireGlobalEvent:V}}}).call(this,x("_process"))},{"./errors":50,"./util":74,_process:138}],48:[function(x,W,C){W.exports=function(n){function m(){return this.value}function g(){throw this.reason;}n.prototype["return"]=n.prototype.thenReturn= function(b){b instanceof n&&b.suppressUnhandledRejections();return this._then(m,void 0,void 0,{value:b},void 0)};n.prototype["throw"]=n.prototype.thenThrow=function(b){return this._then(g,void 0,void 0,{reason:b},void 0)};n.prototype.catchThrow=function(b){if(1>=arguments.length)return this._then(void 0,g,void 0,{reason:b},void 0);var l=arguments[1];return this.caught(b,function(){throw l;})};n.prototype.catchReturn=function(b){if(1>=arguments.length)return b instanceof n&&b.suppressUnhandledRejections(), this._then(void 0,m,void 0,{value:b},void 0);var l=arguments[1];l instanceof n&&l.suppressUnhandledRejections();return this.caught(b,function(){return l})}}},{}],49:[function(x,W,C){W.exports=function(n,m){function g(){return l(this)}var b=n.reduce,l=n.all;n.prototype.each=function(a){return b(this,a,m,0)._then(g,void 0,void 0,this,void 0)};n.prototype.mapSeries=function(a){return b(this,a,m,m)};n.each=function(a,c){return b(a,c,m,0)._then(g,void 0,void 0,a,void 0)};n.mapSeries=function(a,c){return b(a, c,m,m)}}},{}],50:[function(x,W,C){function n(U,O){function z(M){if(!(this instanceof z))return new z(M);l(this,"message","string"===typeof M?M:O);l(this,"name",U);Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}b(z,Error);return z}function m(U){if(!(this instanceof m))return new m(U);l(this,"name","OperationalError");l(this,"message",U);this.cause=U;this.isOperational=!0;U instanceof Error?(l(this,"message",U.message),l(this,"stack",U.stack)):Error.captureStackTrace&& Error.captureStackTrace(this,this.constructor)}C=x("./es5");var g=C.freeze;x=x("./util");var b=x.inherits,l=x.notEnumerableProp;x=n("Warning","warning");var a=n("CancellationError","cancellation error"),c=n("TimeoutError","timeout error"),t=n("AggregateError","aggregate error");try{var p=TypeError;var v=RangeError}catch(U){p=n("TypeError","type error"),v=n("RangeError","range error")}for(var r="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "), E=0;EO;++O)E.push(r(O+1)),K.push(new Function("value","holder"," \n 'use strict'; \n holder.pIndex = value; \n holder.checkFulfillment(this); \n ".replace(/Index/g, O+1))),U.push(new Function("promise","holder"," \n 'use strict'; \n holder.pIndex = promise; \n ".replace(/Index/g,O+1)));var z=function(M){this._reject(M)}}n.join=function(){var M=arguments.length-1;if(0=M&&t){var N=new n(b);N._captureStackTrace();f=new E[M-1](f);for(var T=K, q=0;qO){if(z[-1*O-1]=U,1<=N&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(1<=N&&this._inFlight>=N)return z[O]=U,this._queue.push(O),!1;null!==f&&(f[O]=U);var T=this._promise,q=this._callback,F=T._boundValue();T._pushContext();U=r(q).call(F,U,O,M);q=T._popContext();a.checkForgottenReturns(U,q,null!==f?"Promise.filter":"Promise.map",T);if(U=== E)return this._reject(U.e),!0;T=b(U,this._promise);if(T instanceof n){T=T._target();U=T._bitField;if(0===(U&50397184))return 1<=N&&this._inFlight++,z[O]=T,T._proxy(this,-1*(O+1)),!1;if(0!==(U&33554432))U=T._value();else return 0!==(U&16777216)?this._reject(T._reason()):this._cancel(),!0}z[O]=U}return++this._totalResolved>=M?(null!==f?this._filter(z,f):this._resolve(z),!0):!1};c.prototype._drainQueue=function(){for(var U=this._queue,O=this._limit,z=this._values;0>>16)){if(B=== this)return B=c(),this._attachExtraTrace(B),this._reject(B);this._setFulfilled();this._rejectionHandler0=B;0<(H&65535)&&(0!==(H&134217728)?this._settlePromises():O.settlePromises(this))}};g.prototype._reject=function(B){var H=this._bitField;if(!((H&117506048)>>>16)){this._setRejected();this._fulfillmentHandler0=B;if(this._isFinal())return O.fatalError(B,r.isNode);0<(H&65535)?O.settlePromises(this):this._ensurePossibleRejectionHandled()}};g.prototype._fulfillPromises=function(B,H){for(var X=1;X=this._length?(this._resolve(this._values),!0):!1};c.prototype._promiseCancelled=function(){this._cancel();return!0};c.prototype._promiseRejected=function(v){this._totalResolved++;this._reject(v);return!0};c.prototype._resultCancelled=function(){if(!this._isResolved()){var v= this._values;this._cancel();if(v instanceof n)v.cancel();else for(var r=0;r=G;--k)F.push(k);for(k=q+1;3>=k;++k)F.push(k);return F};var N=function(q,F,G,k,J,I){G=Math.max(0,("number"=== typeof k.length?Math.max(Math.min(k.length,1024),0):0)-1);var S=f(G),R="string"===typeof q||F===t;q="string"===typeof q?"this != null ? this['"+q+"'] : fn":"fn";I="'use strict'; \n var ret = function (Parameters) { \n 'use strict'; \n var len = arguments.length; \n var promise = new Promise(INTERNAL); \n promise._captureStackTrace(); \n var nodeback = nodebackForPromise(promise, "+ I+"); \n var ret; \n var callback = tryCatch([GetFunctionCode]); \n switch(len) { \n [CodeForSwitchCase] \n } \n if (ret === errorObj) { \n promise._rejectCallback(maybeWrapAsError(ret.e), true, true);\n } \n if (!promise._isFateSealed()) promise._setAsyncGuaranteed(); \n return promise; \n }; \n notEnumerableProp(ret, '__isPromisified__', true); \n return ret; \n ".replace("[CodeForSwitchCase]", function(){for(var Q="",B=0;B=this._length){if(this._isMap){E=this._values;K=new v;for(var U=E.length/2|0,O=0;O>1};n.prototype.props=function(){return a(this)};n.props=function(E){return a(E)}}}, {"./es5":51,"./util":74}],64:[function(x,W,C){function n(m){this._capacity=m;this._front=this._length=0}n.prototype._willBeOverCapacity=function(m){return this._capacity=this._length?(this._resolve(this._values),!0):!1};b.prototype._promiseFulfilled=function(a,c){var t=new l; t._bitField=33554432;t._settledValueField=a;return this._promiseResolved(c,t)};b.prototype._promiseRejected=function(a,c){var t=new l;t._bitField=16777216;t._settledValueField=a;return this._promiseResolved(c,t)};n.settle=function(a){g.deprecated(".settle()",".reflect()");return(new b(a)).promise()};n.prototype.settle=function(){return n.settle(this)}}},{"./util":74}],69:[function(x,W,C){W.exports=function(n,m,g){function b(r){this.constructor$(r);this._howMany=0;this._initialized=this._unwrap=!1} function l(r,E){if((E|0)!==E||0>E)return g("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");r=new b(r);var K=r.promise();r.setHowMany(E);r.init();return K}var a=x("./util"),c=x("./errors").RangeError,t=x("./errors").AggregateError,p=a.isArray,v={};a.inherits(b,m);b.prototype._init=function(){if(this._initialized)if(0===this._howMany)this._resolve([]);else{this._init$(void 0,-5);var r=p(this._values);!this._isResolved()&&r&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}}; b.prototype.init=function(){this._initialized=!0;this._init()};b.prototype.setUnwrap=function(){this._unwrap=!0};b.prototype.howMany=function(){return this._howMany};b.prototype.setHowMany=function(r){this._howMany=r};b.prototype._promiseFulfilled=function(r){this._addFulfilled(r);return this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1};b.prototype._promiseRejected=function(r){this._addRejected(r); return this._checkOutcome()};b.prototype._promiseCancelled=function(){if(this._values instanceof n||null==this._values)return this._cancel();this._addRejected(v);return this._checkOutcome()};b.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var r=new t,E=this.length();E=G)return k._fulfill();var J=N[F++];var I=g(J);I!==J&&"function"===typeof J._isDisposable&&"function"===typeof J._getDisposer&&J._isDisposable()&& I._setDisposable(J._getDisposer());J=I;if(J instanceof n&&J._isDisposable()){try{J=g(J._getDisposer().tryDispose(T),N.promise)}catch(S){return c(S)}if(J instanceof n)return J._then(q,c,null,null,null)}q()}var F=0,G=N.length,k=new n(l);q();return k}function p(N,T,q){this._data=N;this._promise=T;this._context=q}function v(N,T,q){this.constructor$(N,T,q)}function r(N){return p.isDisposer(N)?(this.resources[this.index]._setDisposable(N),N.promise()):N}function E(N){this.length=N;this.promise=null;this[N- 1]=null}var K=x("./util"),U=x("./errors").TypeError,O=x("./util").inherits,z=K.errorObj,M=K.tryCatch,f={};p.prototype.data=function(){return this._data};p.prototype.promise=function(){return this._promise};p.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():f};p.prototype.tryDispose=function(N){var T=this.resource(),q=this._context;void 0!==q&&q._pushContext();N=T!==f?this.doDispose(T,N):null;void 0!==q&&q._popContext();this._promise._unsetDisposable();this._data= null;return N};p.isDisposer=function(N){return null!=N&&"function"===typeof N.resource&&"function"===typeof N.tryDispose};O(v,p);v.prototype.doDispose=function(N,T){return this.data().call(N,N,T)};E.prototype._resultCancelled=function(){for(var N=this.length,T=0;TN)return m("you must pass at least 2 arguments to Promise.using");var T=arguments[N-1];if("function"!==typeof T)return m("expecting a function but got "+ K.classString(T));var q=!0;if(2===N&&Array.isArray(arguments[0])){var F=arguments[0];N=F.length;q=!1}else F=arguments,N--;for(var G=new E(N),k=0;k l)throw new RangeError("size is too large");var p=c;void 0===p&&(t=void 0,p=0);c=new g(a);if("string"===typeof p){t=new g(p,t);p=t.length;for(var v=-1;++vl)throw new RangeError("size is too large");return new g(a)};C.from=function(a,c,t){if("function"===typeof g.from&&(!n.Uint8Array||Uint8Array.from!== g.from))return g.from(a,c,t);if("number"===typeof a)throw new TypeError('"value" argument must not be a number');if("string"===typeof a)return new g(a,c);if("undefined"!==typeof ArrayBuffer&&a instanceof ArrayBuffer){var p=c;if(1===arguments.length)return new g(a);"undefined"===typeof p&&(p=0);var v=t;"undefined"===typeof v&&(v=a.byteLength-p);if(p>=a.byteLength)throw new RangeError("'offset' is out of bounds");if(v>a.byteLength-p)throw new RangeError("'length' is out of bounds");return new g(a.slice(p, p+v))}if(g.isBuffer(a))return p=new g(a.length),a.copy(p,0,0,a.length),p;if(a){if(Array.isArray(a)||"undefined"!==typeof ArrayBuffer&&a.buffer instanceof ArrayBuffer||"length"in a)return new g(a);if("Buffer"===a.type&&Array.isArray(a.data))return new g(a.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");};C.allocUnsafeSlow=function(a){if("function"===typeof g.allocUnsafeSlow)return g.allocUnsafeSlow(a);if("number"!==typeof a)throw new TypeError("size must be a number"); if(a>=l)throw new RangeError("size is too large");return new b(a)}}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{buffer:77}],77:[function(x,W,C){(function(n){function m(){try{var u=new Uint8Array(1);u.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return 42===u.foo()&&"function"===typeof u.subarray&&0===u.subarray(1,1).byteLength}catch(d){return!1}}function g(u,d){if((b.TYPED_ARRAY_SUPPORT?2147483647:1073741823)< d)throw new RangeError("Invalid typed array length");b.TYPED_ARRAY_SUPPORT?(u=new Uint8Array(d),u.__proto__=b.prototype):(null===u&&(u=new b(d)),u.length=d);return u}function b(u,d,A){if(!(b.TYPED_ARRAY_SUPPORT||this instanceof b))return new b(u,d,A);if("number"===typeof u){if("string"===typeof d)throw Error("If encoding is specified then the first argument must be a string");return c(this,u)}return l(this,u,d,A)}function l(u,d,A,h){if("number"===typeof d)throw new TypeError('"value" argument must not be a number'); if("undefined"!==typeof ArrayBuffer&&d instanceof ArrayBuffer){d.byteLength;if(0>A||d.byteLengthu)throw new RangeError('"size" argument must not be negative');}function c(u,d){a(d);u=g(u,0>d?0:v(d)|0);if(!b.TYPED_ARRAY_SUPPORT)for(var A=0;Ad.length?0:v(d.length)|0;u=g(u,A);for(var h=0;h=(b.TYPED_ARRAY_SUPPORT?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ (b.TYPED_ARRAY_SUPPORT?2147483647:1073741823).toString(16)+" bytes");return u|0}function r(u,d){if(b.isBuffer(u))return u.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(u)||u instanceof ArrayBuffer))return u.byteLength;"string"!==typeof u&&(u=""+u);var A=u.length;if(0===A)return 0;for(var h=!1;;)switch(d){case "ascii":case "latin1":case "binary":return A;case "utf8":case "utf-8":case void 0:return J(u).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2* A;case "hex":return A>>>1;case "base64":return R.toByteArray(k(u)).length;default:if(h)return J(u).length;d=(""+d).toLowerCase();h=!0}}function E(u,d,A){var h=!1;if(void 0===d||0>d)d=0;if(d>this.length)return"";if(void 0===A||A>this.length)A=this.length;if(0>=A)return"";A>>>=0;d>>>=0;if(A<=d)return"";for(u||(u="utf8");;)switch(u){case "hex":u=d;d=A;A=this.length;if(!u||0>u)u=0;if(!d||0>d||d>A)d=A;h="";for(A=u;Ah?"0"+h.toString(16):h.toString(16),h=u+h;return h;case "utf8":case "utf-8":return z(this, d,A);case "ascii":u="";for(A=Math.min(this.length,A);dA&&(A=-2147483648);A=+A;isNaN(A)&&(A=w?0:u.length-1);0>A&&(A=u.length+A);if(A>=u.length){if(w)return-1;A=u.length-1}else if(0>A)if(w)A=0;else return-1;"string"===typeof d&&(d=b.from(d,h));if(b.isBuffer(d))return 0===d.length?-1:O(u,d,A,h,w);if("number"===typeof d)return d&=255,b.TYPED_ARRAY_SUPPORT&&"function"=== typeof Uint8Array.prototype.indexOf?w?Uint8Array.prototype.indexOf.call(u,d,A):Uint8Array.prototype.lastIndexOf.call(u,d,A):O(u,[d],A,h,w);throw new TypeError("val must be string, number or Buffer");}function O(u,d,A,h,w){function P(L,V){return 1===e?L[V]:L.readUInt16BE(V*e)}var e=1,y=u.length,D=d.length;if(void 0!==h&&(h=String(h).toLowerCase(),"ucs2"===h||"ucs-2"===h||"utf16le"===h||"utf-16le"===h)){if(2>u.length||2>d.length)return-1;e=2;y/=2;D/=2;A/=2}if(w)for(h=-1;Ay&&(A=y-D);0<=A;A--){y=!0;for(h=0;hw&&(P=w);break;case 2:var y=u[d+1];128===(y&192)&&(w=(w&31)<<6|y&63,127w||57343w&&(P=w))}null===P?(P=65533,e=1):65535>>10&1023|55296),P=56320|P&1023);h.push(P);d+=e}u=h.length;if(u<=H)h=String.fromCharCode.apply(String,h);else{A="";for(d=0;du)throw new RangeError("offset is not uint"); if(u+d>A)throw new RangeError("Trying to access beyond buffer length");}function f(u,d,A,h,w,P){if(!b.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>w||du.length)throw new RangeError("Index out of range");}function N(u,d,A,h){0>d&&(d=65535+d+1);for(var w=0,P=Math.min(u.length-A,2);w>>8*(h?w:1-w)}function T(u,d,A,h){0>d&&(d=4294967295+d+1);for(var w=0,P=Math.min(u.length- A,4);w>>8*(h?w:3-w)&255}function q(u,d,A,h,w,P){if(A+h>u.length)throw new RangeError("Index out of range");if(0>A)throw new RangeError("Index out of range");}function F(u,d,A,h,w){w||q(u,d,A,4,3.4028234663852886E38,-3.4028234663852886E38);Q.write(u,d,A,h,23,4);return A+4}function G(u,d,A,h,w){w||q(u,d,A,8,1.7976931348623157E308,-1.7976931348623157E308);Q.write(u,d,A,h,52,8);return A+8}function k(u){u=u.trim?u.trim():u.replace(/^\s+|\s+$/g,"");u=u.replace(X,"");if(2>u.length)return""; for(;0!==u.length%4;)u+="=";return u}function J(u,d){d=d||Infinity;for(var A,h=u.length,w=null,P=[],e=0;eA){if(!w){if(56319A){-1<(d-=3)&&P.push(239,191,189);w=A;continue}A=(w-55296<<10|A-56320)+65536}else w&&-1<(d-=3)&&P.push(239,191,189);w=null;if(128>A){if(0>--d)break;P.push(A)}else if(2048>A){if(0>(d-=2))break;P.push(A>>6|192,A&63| 128)}else if(65536>A){if(0>(d-=3))break;P.push(A>>12|224,A>>6&63|128,A&63|128)}else if(1114112>A){if(0>(d-=4))break;P.push(A>>18|240,A>>12&63|128,A>>6&63|128,A&63|128)}else throw Error("Invalid code point");}return P}function I(u){for(var d=[],A=0;A=d.length||w>=u.length);++w)d[w+A]=u[w];return w}var R=x("base64-js"),Q=x("ieee754"),B=x("isarray");C.Buffer=b;C.SlowBuffer=function(u){+u!=u&&(u=0);return b.alloc(+u)}; C.INSPECT_MAX_BYTES=50;b.TYPED_ARRAY_SUPPORT=void 0!==n.TYPED_ARRAY_SUPPORT?n.TYPED_ARRAY_SUPPORT:m();C.kMaxLength=b.TYPED_ARRAY_SUPPORT?2147483647:1073741823;b.poolSize=8192;b._augment=function(u){u.__proto__=b.prototype;return u};b.from=function(u,d,A){return l(null,u,d,A)};b.TYPED_ARRAY_SUPPORT&&(b.prototype.__proto__=Uint8Array.prototype,b.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&b[Symbol.species]===b&&Object.defineProperty(b,Symbol.species,{value:null,configurable:!0})); b.alloc=function(u,d,A){a(u);u=0>=u?g(null,u):void 0!==d?"string"===typeof A?g(null,u).fill(d,A):g(null,u).fill(d):g(null,u);return u};b.allocUnsafe=function(u){return c(null,u)};b.allocUnsafeSlow=function(u){return c(null,u)};b.isBuffer=function(u){return!(null==u||!u._isBuffer)};b.compare=function(u,d){if(!b.isBuffer(u)||!b.isBuffer(d))throw new TypeError("Arguments must be Buffers");if(u===d)return 0;for(var A=u.length,h=d.length,w=0,P=Math.min(A,h);wd&&(u+=" ... "));return""};b.prototype.compare=function(u,d,A,h,w){if(!b.isBuffer(u))throw new TypeError("Argument must be a Buffer");void 0===d&&(d=0);void 0===A&&(A=u?u.length:0);void 0===h&&(h=0);void 0===w&&(w=this.length);if(0>d||A>u.length||0>h||w>this.length)throw new RangeError("out of range index");if(h>=w&&d>=A)return 0;if(h>=w)return-1; if(d>=A)return 1;d>>>=0;A>>>=0;h>>>=0;w>>>=0;if(this===u)return 0;var P=w-h,e=A-d,y=Math.min(P,e);h=this.slice(h,w);u=u.slice(d,A);for(d=0;dw)A=w;if(0A||0>d)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");h||(h="utf8");for(w=!1;;)switch(h){case "hex":a:{d=Number(d)||0;h=this.length-d;A?(A=Number(A),A>h&&(A=h)):A=h;h=u.length;if(0!==h%2)throw new TypeError("Invalid hex string"); A>h/2&&(A=h/2);for(h=0;h(w-=2));++e){var y=h.charCodeAt(e);u=y>>8;y%=256;P.push(y);P.push(u)}return S(P, this,d,A);default:if(w)throw new TypeError("Unknown encoding: "+h);h=(""+h).toLowerCase();w=!0}};b.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var H=4096;b.prototype.slice=function(u,d){var A=this.length;u=~~u;d=void 0===d?A:~~d;0>u?(u+=A,0>u&&(u=0)):u>A&&(u=A);0>d?(d+=A,0>d&&(d=0)):d>A&&(d=A);d=128*h&&(A-=Math.pow(2,8*d));return A};b.prototype.readIntBE=function(u,d,A){u|=0;d|=0;A||M(u, d,this.length);A=d;for(var h=1,w=this[u+--A];0=128*h&&(w-=Math.pow(2,8*d));return w};b.prototype.readInt8=function(u,d){d||M(u,1,this.length);return this[u]&128?-1*(255-this[u]+1):this[u]};b.prototype.readInt16LE=function(u,d){d||M(u,2,this.length);u=this[u]|this[u+1]<<8;return u&32768?u|4294901760:u};b.prototype.readInt16BE=function(u,d){d||M(u,2,this.length);u=this[u+1]|this[u]<<8;return u&32768?u|4294901760:u};b.prototype.readInt32LE=function(u,d){d||M(u,4,this.length); return this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24};b.prototype.readInt32BE=function(u,d){d||M(u,4,this.length);return this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]};b.prototype.readFloatLE=function(u,d){d||M(u,4,this.length);return Q.read(this,u,!0,23,4)};b.prototype.readFloatBE=function(u,d){d||M(u,4,this.length);return Q.read(this,u,!1,23,4)};b.prototype.readDoubleLE=function(u,d){d||M(u,8,this.length);return Q.read(this,u,!0,52,8)};b.prototype.readDoubleBE=function(u,d){d||M(u,8,this.length); return Q.read(this,u,!1,52,8)};b.prototype.writeUIntLE=function(u,d,A,h){u=+u;d|=0;A|=0;h||f(this,u,d,A,Math.pow(2,8*A)-1,0);h=1;var w=0;for(this[d]=u&255;++w>>8):N(this,u,d,!0);return d+2};b.prototype.writeUInt16BE=function(u,d,A){u=+u;d|=0;A||f(this,u,d,2,65535,0);b.TYPED_ARRAY_SUPPORT?(this[d]=u>>>8,this[d+1]=u&255):N(this,u,d,!1);return d+2};b.prototype.writeUInt32LE=function(u,d,A){u=+u;d|=0;A||f(this,u,d,4,4294967295,0);b.TYPED_ARRAY_SUPPORT?(this[d+3]=u>>>24,this[d+2]=u>>>16,this[d+1]=u>>>8,this[d]=u&255): T(this,u,d,!0);return d+4};b.prototype.writeUInt32BE=function(u,d,A){u=+u;d|=0;A||f(this,u,d,4,4294967295,0);b.TYPED_ARRAY_SUPPORT?(this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255):T(this,u,d,!1);return d+4};b.prototype.writeIntLE=function(u,d,A,h){u=+u;d|=0;h||(h=Math.pow(2,8*A-1),f(this,u,d,A,h-1,-h));h=0;var w=1,P=0;for(this[d]=u&255;++hu&&0===P&&0!==this[d+h-1]&&(P=1),this[d+h]=(u/w>>0)-P&255;return d+A};b.prototype.writeIntBE=function(u,d,A,h){u=+u;d|=0;h||(h= Math.pow(2,8*A-1),f(this,u,d,A,h-1,-h));h=A-1;var w=1,P=0;for(this[d+h]=u&255;0<=--h&&(w*=256);)0>u&&0===P&&0!==this[d+h+1]&&(P=1),this[d+h]=(u/w>>0)-P&255;return d+A};b.prototype.writeInt8=function(u,d,A){u=+u;d|=0;A||f(this,u,d,1,127,-128);b.TYPED_ARRAY_SUPPORT||(u=Math.floor(u));0>u&&(u=255+u+1);this[d]=u&255;return d+1};b.prototype.writeInt16LE=function(u,d,A){u=+u;d|=0;A||f(this,u,d,2,32767,-32768);b.TYPED_ARRAY_SUPPORT?(this[d]=u&255,this[d+1]=u>>>8):N(this,u,d,!0);return d+2};b.prototype.writeInt16BE= function(u,d,A){u=+u;d|=0;A||f(this,u,d,2,32767,-32768);b.TYPED_ARRAY_SUPPORT?(this[d]=u>>>8,this[d+1]=u&255):N(this,u,d,!1);return d+2};b.prototype.writeInt32LE=function(u,d,A){u=+u;d|=0;A||f(this,u,d,4,2147483647,-2147483648);b.TYPED_ARRAY_SUPPORT?(this[d]=u&255,this[d+1]=u>>>8,this[d+2]=u>>>16,this[d+3]=u>>>24):T(this,u,d,!0);return d+4};b.prototype.writeInt32BE=function(u,d,A){u=+u;d|=0;A||f(this,u,d,4,2147483647,-2147483648);0>u&&(u=4294967295+u+1);b.TYPED_ARRAY_SUPPORT?(this[d]=u>>>24,this[d+ 1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255):T(this,u,d,!1);return d+4};b.prototype.writeFloatLE=function(u,d,A){return F(this,u,d,!0,A)};b.prototype.writeFloatBE=function(u,d,A){return F(this,u,d,!1,A)};b.prototype.writeDoubleLE=function(u,d,A){return G(this,u,d,!0,A)};b.prototype.writeDoubleBE=function(u,d,A){return G(this,u,d,!1,A)};b.prototype.copy=function(u,d,A,h){A||(A=0);h||0===h||(h=this.length);d>=u.length&&(d=u.length);d||(d=0);0d)throw new RangeError("targetStart out of bounds");if(0>A||A>=this.length)throw new RangeError("sourceStart out of bounds");if(0>h)throw new RangeError("sourceEnd out of bounds");h>this.length&&(h=this.length);u.length-dw||!b.TYPED_ARRAY_SUPPORT)for(h=0;hw&&(u=w)}if(void 0!==h&&"string"!==typeof h)throw new TypeError("encoding must be a string");if("string"===typeof h&&!b.isEncoding(h))throw new TypeError("Unknown encoding: "+h);}else"number"===typeof u&&(u&=255);if(0>d||this.length>>=0;A=void 0===A?this.length:A>>>0;u||(u=0);if("number"=== typeof u)for(h=d;hb||isNaN(b))throw TypeError("n must be a positive number");this._maxListeners=b;return this};n.prototype.emit=function(b){var l;this._events||(this._events={});if("error"===b&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){var a= arguments[1];if(a instanceof Error)throw a;var c=Error('Uncaught, unspecified "error" event. ('+a+")");c.context=a;throw c;}c=this._events[b];if(void 0===c)return!1;if(m(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),c.apply(this,a)}else if(g(c)){a=Array.prototype.slice.call(arguments,1);var t=c.slice();c=t.length;for(l=0;ll&&(this._events[b].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", this._events[b].length),"function"===typeof console.trace&&console.trace());return this};n.prototype.on=n.prototype.addListener;n.prototype.once=function(b,l){function a(){this.removeListener(b,a);c||(c=!0,l.apply(this,arguments))}if(!m(l))throw TypeError("listener must be a function");var c=!1;a.listener=l;this.on(b,a);return this};n.prototype.removeListener=function(b,l){if(!m(l))throw TypeError("listener must be a function");if(!this._events||!this._events[b])return this;var a=this._events[b]; var c=a.length;var t=-1;if(a===l||m(a.listener)&&a.listener===l)delete this._events[b],this._events.removeListener&&this.emit("removeListener",b,l);else if(g(a)){for(;0t)return this;1===a.length?(a.length=0,delete this._events[b]):a.splice(t,1);this._events.removeListener&&this.emit("removeListener",b,l)}return this};n.prototype.removeAllListeners=function(b){if(!this._events)return this;if(!this._events.removeListener)return 0=== arguments.length?this._events={}:this._events[b]&&delete this._events[b],this;if(0===arguments.length){for(l in this._events)"removeListener"!==l&&this.removeAllListeners(l);this.removeAllListeners("removeListener");this._events={};return this}var l=this._events[b];if(m(l))this.removeListener(b,l);else if(l)for(;l.length;)this.removeListener(b,l[l.length-1]);delete this._events[b];return this};n.prototype.listeners=function(b){return this._events&&this._events[b]?m(this._events[b])?[this._events[b]]: this._events[b].slice():[]};n.prototype.listenerCount=function(b){if(this._events){b=this._events[b];if(m(b))return 1;if(b)return b.length}return 0};n.listenerCount=function(b,l){return b.listenerCount(l)}},{}],80:[function(x,W,C){C.read=function(n,m,g,b,l){var a=8*l-b-1;var c=(1<>1,p=-7;l=g?l-1:0;var v=g?-1:1,r=n[m+l];l+=v;g=r&(1<<-p)-1;r>>=-p;for(p+=a;0>=-p;for(p+=b;0>1,r=23===l?Math.pow(2,-24)-Math.pow(2,-77):0;a=b?0:a-1;var E=b?1:-1,K=0>m||0===m&&0>1/m?1:0;m=Math.abs(m);isNaN(m)||Infinity===m?(m=isNaN(m)?1:0,b=p):(b=Math.floor(Math.log(m)/Math.LN2),1>m*(c=Math.pow(2,-b))&&(b--,c*=2),m=1<=b+v?m+r/c:m+r*Math.pow(2,1-v),2<=m*c&&(b++,c/=2),b+v>=p?(m=0,b=p):1<=b+v?(m=(m*c-1)*Math.pow(2,l),b+=v):(m=m*Math.pow(2,v-1)*Math.pow(2,l),b=0));for(;8<= l;n[g+a]=m&255,a+=E,m/=256,l-=8);b=b<>2,g=(g&3)<<4|b>>4,c=(b&15)<<2|l>>6,t=l&63,isNaN(b)?c=t=64:isNaN(l)&& (t=64),m=m+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(t);return m};C.decode=function(n,m){m="";var g=0;for(n=n.replace(/[^A-Za-z0-9\+\/=]/g,"");g>4;l=(l&15)<<4|a>>2;var t=(a&3)<<6|c;m+=String.fromCharCode(b);64!=a&&(m+=String.fromCharCode(l));64!=c&&(m+=String.fromCharCode(t))}return m}},{}],85:[function(x,W,C){function n(){this.crc32=this.uncompressedSize= this.compressedSize=0;this.compressedContent=this.compressionMethod=null}n.prototype={getContent:function(){return null},getCompressedContent:function(){return null}};W.exports=n},{}],86:[function(x,W,C){C.STORE={magic:"\x00\x00",compress:function(n,m){return n},uncompress:function(n){return n},compressInputType:null,uncompressInputType:null};C.DEFLATE=x("./flate")},{"./flate":91}],87:[function(x,W,C){var n=x("./utils"),m=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035, 249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705, 3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311, 2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245, 2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498, 2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918E3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552, 615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];W.exports=function(g,b){if("undefined"===typeof g||!g.length)return 0;var l="string"!==n.getTypeOf(g);"undefined"==typeof b&&(b=0);b^=-1;for(var a=0,c=g.length;a>>8^t}return b^-1}},{"./utils":104}],88:[function(x,W,C){function n(g){this.data=null;this.index=this.length=0}var m=x("./utils");n.prototype= {checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.lengthg)throw Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?");},setIndex:function(g){this.checkIndex(g);this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(g){},readInt:function(g){var b=0,l;this.checkOffset(g);for(l=this.index+g-1;l>=this.index;l--)b=(b<<8)+this.byteAt(l);this.index+=g;return b},readString:function(g){return m.transformTo("string", this.readData(g))},readData:function(g){},lastIndexOfSignature:function(g){},readDate:function(){var g=this.readInt(4);return new Date((g>>25&127)+1980,(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(g&31)<<1)}};W.exports=n},{"./utils":104}],89:[function(x,W,C){C.base64=!1;C.binary=!1;C.dir=!1;C.createFolders=!1;C.date=null;C.compression=null;C.compressionOptions=null;C.comment=null;C.unixPermissions=null;C.dosPermissions=null},{}],90:[function(x,W,C){var n=x("./utils");C.string2binary=function(m){return n.string2binary(m)}; C.string2Uint8Array=function(m){return n.transformTo("uint8array",m)};C.uint8Array2String=function(m){return n.transformTo("string",m)};C.string2Blob=function(m){m=n.transformTo("arraybuffer",m);return n.arrayBuffer2Blob(m)};C.arrayBuffer2Blob=function(m){return n.arrayBuffer2Blob(m)};C.transformTo=function(m,g){return n.transformTo(m,g)};C.getTypeOf=function(m){return n.getTypeOf(m)};C.checkSupport=function(m){return n.checkSupport(m)};C.MAX_VALUE_16BITS=n.MAX_VALUE_16BITS;C.MAX_VALUE_32BITS=n.MAX_VALUE_32BITS; C.pretty=function(m){return n.pretty(m)};C.findCompression=function(m){return n.findCompression(m)};C.isRegExp=function(m){return n.isRegExp(m)}},{"./utils":104}],91:[function(x,W,C){W="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Uint32Array;var n=x("pako");C.uncompressInputType=W?"uint8array":"array";C.compressInputType=W?"uint8array":"array";C.magic="\b\x00";C.compress=function(m,g){return n.deflateRaw(m,{level:g.level||-1})};C.uncompress=function(m){return n.inflateRaw(m)}}, {pako:120}],92:[function(x,W,C){function n(g,b){if(!(this instanceof n))return new n(g,b);this.files={};this.comment=null;this.root="";g&&this.load(g,b);this.clone=function(){var l=new n,a;for(a in this)"function"!==typeof this[a]&&(l[a]=this[a]);return l}}var m=x("./base64");n.prototype=x("./object");n.prototype.load=x("./load");n.support=x("./support");n.defaults=x("./defaults");n.utils=x("./deprecatedPublicUtils");n.base64={encode:function(g){return m.encode(g)},decode:function(g){return m.decode(g)}}; n.compressions=x("./compressions");W.exports=n},{"./base64":84,"./compressions":86,"./defaults":89,"./deprecatedPublicUtils":90,"./load":93,"./object":96,"./support":100}],93:[function(x,W,C){var n=x("./base64"),m=x("./zipEntries");W.exports=function(g,b){var l;b=b||{};b.base64&&(g=n.decode(g));var a=new m(g,b);g=a.files;for(l=0;l>>=8;return J},f=function(){var G={},k,J;for(k=0;kx;x++)b[x]=252<=x?6:248<=x?5:240<=x?4:224<=x?3:192<=x?2:1;b[254]=b[254]=1;var l=function(a){var c,t,p=a.length,v=Array(2*p);for(c=t=0;cr)v[t++]= r;else{var E=b[r];if(4r?v[t++]=r:(r-=65536,v[t++]=55296|r>>10&1023,v[t++]=56320|r&1023)}}}v.length!==t&&(v.subarray?v=v.subarray(0,t):v.length=t);return n.applyFromCharCode(v)};C.utf8encode=function(a){if(m.nodebuffer)return g(a,"utf-8");var c,t,p=a.length,v=0;for(c=0;cr?1:2048>r?2:65536>r?3:4}var K=m.uint8array?new Uint8Array(v):Array(v);for(c=t=0;tr?K[t++]=r:(2048>r?K[t++]=192|r>>>6:(65536>r?K[t++]=224|r>>>12:(K[t++]=240|r>>>18,K[t++]=128|r>>>12&63),K[t++]=128|r>>>6&63),K[t++]=128|r&63);return K};C.utf8decode=function(a){if(m.nodebuffer)return n.transformTo("nodebuffer",a).toString("utf-8");a=n.transformTo(m.uint8array? "uint8array":"array",a);for(var c=[],t=0,p=a.length;ta.length&&(r=a.length);for(v=r-1;0<=v&&128===(a[v]&192);)v--;v=0>v?r:0===v?r:v+b[a[v]]>r?v:r;m.uint8array?c.push(l(a.subarray(t,v))):c.push(l(a.slice(t,v)));t=v}return c.join("")}},{"./nodeBuffer":94,"./support":100,"./utils":104}],104:[function(x,W,C){function n(p){return p}function m(p,v){for(var r=0;rE?"0":"")+E.toString(16).toUpperCase()}return v};C.findCompression=function(p){for(var v in a)if(a.hasOwnProperty(v)&&a[v].magic===p)return a[v];return null};C.isRegExp=function(p){return"[object RegExp]"===Object.prototype.toString.call(p)}},{"./compressions":86,"./nodeBuffer":94,"./support":100}],105:[function(x,W, C){function n(v,r){this.files=[];this.loadOptions=r;v&&this.load(v)}var m=x("./stringReader"),g=x("./nodeBufferReader"),b=x("./uint8ArrayReader"),l=x("./utils"),a=x("./signature"),c=x("./zipEntry"),t=x("./support"),p=x("./object");n.prototype={checkSignature:function(v){var r=this.reader.readString(4);if(r!==v)throw Error("Corrupted zip or bug : unexpected signature ("+l.pretty(r)+", expected "+l.pretty(v)+")");},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2);this.diskWithCentralDirStart= this.reader.readInt(2);this.centralDirRecordsOnThisDisk=this.reader.readInt(2);this.centralDirRecords=this.reader.readInt(2);this.centralDirSize=this.reader.readInt(4);this.centralDirOffset=this.reader.readInt(4);this.zipCommentLength=this.reader.readInt(2);this.zipComment=this.reader.readString(this.zipCommentLength);this.zipComment=p.utf8decode(this.zipComment)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8);this.versionMadeBy=this.reader.readString(2);this.versionNeeded= this.reader.readInt(2);this.diskNumber=this.reader.readInt(4);this.diskWithCentralDirStart=this.reader.readInt(4);this.centralDirRecordsOnThisDisk=this.reader.readInt(8);this.centralDirRecords=this.reader.readInt(8);this.centralDirSize=this.reader.readInt(8);this.centralDirOffset=this.reader.readInt(8);this.zip64ExtensibleData={};for(var v=this.zip64EndOfCentralSize-44,r,E,K;0>8;this.dir=this.externalFileAttributes&16?!0:!1;0===a&&(this.dosPermissions=this.externalFileAttributes& 63);3===a&&(this.unixPermissions=this.externalFileAttributes>>16&65535);this.dir||"/"!==this.fileName.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(a){this.extraFields[1]&&(a=new m(this.extraFields[1].value),this.uncompressedSize===g.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===g.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===g.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===g.MAX_VALUE_32BITS&& (this.diskNumberStart=a.readInt(4)))},readExtraFields:function(a){var c=a.index;for(this.extraFields=this.extraFields||{};a.indexm.length)throw Error("Failure must have errors");return new n({status:"failure",remaining:g,errors:m})},error:function(m,g){if(1>m.length)throw Error("Failure must have errors");return new n({status:"error",remaining:g,errors:m})},success:function(m,g,b){return new n({status:"success",value:m,source:b,remaining:g,errors:[]})},cut:function(m){return new n({status:"cut",remaining:m,errors:[]})}}; var n=function(m){this._value=m.value;this._status=m.status;this._hasValue=void 0!==m.value;this._remaining=m.remaining;this._source=m.source;this._errors=m.errors};n.prototype.map=function(m){return this._hasValue?new n({value:m(this._value,this._source),status:this._status,remaining:this._remaining,source:this._source,errors:this._errors}):this};n.prototype.changeRemaining=function(m){return new n({value:this._value,status:this._status,remaining:m,source:this._source,errors:this._errors})};n.prototype.isSuccess= function(){return"success"===this._status||"cut"===this._status};n.prototype.isFailure=function(){return"failure"===this._status};n.prototype.isError=function(){return"error"===this._status};n.prototype.isCut=function(){return"cut"===this._status};n.prototype.value=function(){return this._value};n.prototype.remaining=function(){return this._remaining};n.prototype.source=function(){return this._source};n.prototype.errors=function(){return this._errors}},{}],116:[function(x,W,C){var n=x("./Token"), m=x("./StringSource");C.RegexTokeniser=function(g){g=g.map(function(b){return{name:b.name,regex:new RegExp(b.regex.source,"g")}});return{tokenise:function(b,l){l=new m(b,l);var a=0;for(var c=[];ap)){t=new n(g[r].name,E[1],v.range(p,a));break a}}a=p+1;t=new n("unrecognisedCharacter",t.substring(p,a),v.range(p,a))}c.push(t)}c.push(new n("end",null,l.range(b.length, b.length)));return c}}}},{"./StringSource":108,"./Token":109}],117:[function(x,W,C){function n(E){return l.success(null,E)}function m(E,K){var U=E.head();K=U?a.error({expected:K,actual:r(U),location:U.source}):a.error({expected:K,actual:"end of tokens"});return l.failure([K],E)}var g=x("underscore"),b=x("option"),l=x("./parsing-results"),a=x("./errors"),c=x("./lazy-iterators");C.token=function(E,K){var U=void 0!==K;return function(O){var z=O.head();return!z||z.name!==E||U&&z.value!==K?(z=r({name:E, value:K}),m(O,z)):l.success(z.value,O.tail(),z.source)}};C.tokenOfType=function(E){return C.token(E)};C.firstOf=function(E,K){g.isArray(K)||(K=Array.prototype.slice.call(arguments,1));return function(U){return c.fromArray(K).map(function(O){return O(U)}).filter(function(O){return O.isSuccess()||O.isError()}).first()||m(U,E)}};C.then=function(E,K){return function(U){U=E(U);U.map||console.log(U);return U.map(K)}};C.sequence=function(){function E(O){return O.isCaptured}var K=Array.prototype.slice.call(arguments, 0),U=function(O){var z=g.foldl(K,function(f,N){var T=f.result;f=f.hasCut;if(!T.isSuccess())return{result:T,hasCut:f};var q=N(T.remaining());return q.isCut()?{result:T,hasCut:!0}:q.isSuccess()?(N=N.isCaptured?T.value().withValue(N,q.value()):T.value(),T=q.remaining(),q=O.to(T),{result:l.success(N,T,q),hasCut:f}):f?{result:l.error(q.errors(),q.remaining()),hasCut:f}:{result:q,hasCut:f}},{result:l.success(new t,O),hasCut:!1}).result,M=O.to(z.remaining());return z.map(function(f){return f.withValue(C.sequence.source, M)})};U.head=function(){var O=g.find(K,E);return C.then(U,C.sequence.extract(O))};U.map=function(O){return C.then(U,function(z){return O.apply(this,z.toArray())})};return U};var t=function(E,K){this._values=E||{};this._valuesArray=K||[]};t.prototype.withValue=function(E,K){if(E.captureName&&E.captureName in this._values)throw Error('Cannot add second value for capture "'+E.captureName+'"');var U=g.clone(this._values);U[E.captureName]=K;E=this._valuesArray.concat([K]);return new t(U,E)};t.prototype.get= function(E){if(E.captureName in this._values)return this._values[E.captureName];throw Error('No value for capture "'+E.captureName+'"');};t.prototype.toArray=function(){return this._valuesArray};C.sequence.capture=function(E,K){var U=function(){return E.apply(this,arguments)};U.captureName=K;U.isCaptured=!0;return U};C.sequence.extract=function(E){return function(K){return K.get(E)}};C.sequence.applyValues=function(E){var K=Array.prototype.slice.call(arguments,1);return function(U){var O=K.map(function(z){return U.get(z)}); return E.apply(this,O)}};C.sequence.source={captureName:"\u2603source\u2603"};C.sequence.cut=function(){return function(E){return l.cut(E)}};C.optional=function(E){return function(K){var U=E(K);return U.isSuccess()?U.map(b.some):U.isFailure()?l.success(b.none,K):U}};C.zeroOrMoreWithSeparator=function(E,K){return v(E,K,!1)};C.oneOrMoreWithSeparator=function(E,K){return v(E,K,!0)};var p=C.zeroOrMore=function(E){return function(K){for(var U=[],O;(O=E(K))&&O.isSuccess();)K=O.remaining(),U.push(O.value()); return O.isError()?O:l.success(U,K)}};C.oneOrMore=function(E){return C.oneOrMoreWithSeparator(E,n)};var v=function(E,K,U){return function(O){var z=E(O);return z.isSuccess()?(O=C.sequence.capture(E,"main"),O=p(C.then(C.sequence(K,O),C.sequence.extract(O)))(z.remaining()),l.success([z.value()].concat(O.value()),O.remaining())):U||z.isError()?z:l.success([],O)}};C.leftAssociative=function(E,K,U){K=U?[{func:U,rule:K}]:K;K=K.map(function(z){return C.then(z.rule,function(M){return function(f,N){return z.func(f, M,N)}})});var O=C.firstOf.apply(null,["rules"].concat(K));return function(z){var M=E(z);if(!M.isSuccess())return M;for(var f=O(M.remaining());f.isSuccess();){var N=f.remaining(),T=z.to(f.remaining());f=f.value();M=l.success(f(M.value(),T),N,T);f=O(M.remaining())}return f.isError()?f:M}};C.leftAssociative.firstOf=function(){return Array.prototype.slice.call(arguments,0)};C.nonConsuming=function(E){return function(K){return E(K).changeRemaining(K)}};var r=function(E){return E.value?E.name+' "'+E.value+ '"':E.name}},{"./errors":112,"./lazy-iterators":113,"./parsing-results":115,option:119,underscore:118}],118:[function(x,W,C){(function(){var n=this,m=n._,g={},b=Array.prototype,l=Object.prototype,a=b.push,c=b.slice,t=b.concat,p=l.toString,v=l.hasOwnProperty,r=b.forEach,E=b.map,K=b.reduce,U=b.reduceRight,O=b.filter,z=b.every,M=b.some,f=b.indexOf,N=b.lastIndexOf;l=Array.isArray;var T=Object.keys,q=Function.prototype.bind,F=function(h){if(h instanceof F)return h;if(!(this instanceof F))return new F(h); this._wrapped=h};"undefined"!==typeof C?("undefined"!==typeof W&&W.exports&&(C=W.exports=F),C._=F):n._=F;F.VERSION="1.4.4";var G=F.each=F.forEach=function(h,w,P){if(null!=h)if(r&&h.forEach===r)h.forEach(w,P);else if(h.length===+h.length)for(var e=0,y=h.length;eh.length)return Math.max.apply(Math,h);if(!w&&F.isEmpty(h))return-Infinity; var e={computed:-Infinity,value:-Infinity};G(h,function(y,D,L){D=w?w.call(P,y,D,L):y;D>=e.computed&&(e={value:y,computed:D})});return e.value};F.min=function(h,w,P){if(!w&&F.isArray(h)&&h[0]===+h[0]&&65535>h.length)return Math.min.apply(Math,h);if(!w&&F.isEmpty(h))return Infinity;var e={computed:Infinity,value:Infinity};G(h,function(y,D,L){D=w?w.call(P,y,D,L):y;DV||void 0===L)return 1;if(L>>1;P.call(e,h[L])P?Math.max(0,y+P):P;else return e=F.sortedIndex(h,w),h[e]===w?e:-1; if(f&&h.indexOf===f)return h.indexOf(w,P);for(;e=arguments.length&&(w=h||0,h=0);P=arguments[2]||1;for(var e=Math.max(Math.ceil((w-h)/P),0),y=0,D=Array(e);y=Z?(clearTimeout(y),y=null,L=Y,D=h.apply(P,e)):y||(y=setTimeout(V,Z));return D}};F.debounce=function(h,w,P){var e,y;return function(){var D=this,L=arguments,V=P&&!e;clearTimeout(e); e=setTimeout(function(){e=null;P||(y=h.apply(D,L))},w);V&&(y=h.apply(D,L));return y}};F.once=function(h){var w=!1,P;return function(){if(w)return P;w=!0;P=h.apply(this,arguments);h=null;return P}};F.wrap=function(h,w){return function(){var P=[h];a.apply(P,arguments);return w.apply(this,P)}};F.compose=function(){var h=arguments;return function(){for(var w=arguments,P=h.length-1;0<=P;P--)w=[h[P].apply(this,w)];return w[0]}};F.after=function(h,w){return 0>=h?w():function(){if(1>--h)return w.apply(this, arguments)}};F.keys=T||function(h){if(h!==Object(h))throw new TypeError("Invalid object");var w=[],P;for(P in h)F.has(h,P)&&(w[w.length]=P);return w};F.values=function(h){var w=[],P;for(P in h)F.has(h,P)&&w.push(h[P]);return w};F.pairs=function(h){var w=[],P;for(P in h)F.has(h,P)&&w.push([P,h[P]]);return w};F.invert=function(h){var w={},P;for(P in h)F.has(h,P)&&(w[h[P]]=P);return w};F.functions=F.methods=function(h){var w=[],P;for(P in h)F.isFunction(h[P])&&w.push(P);return w.sort()};F.extend=function(h){G(c.call(arguments, 1),function(w){if(w)for(var P in w)h[P]=w[P]});return h};F.pick=function(h){var w={},P=t.apply(b,c.call(arguments,1));G(P,function(e){e in h&&(w[e]=h[e])});return w};F.omit=function(h){var w={},P=t.apply(b,c.call(arguments,1)),e;for(e in h)F.contains(P,e)||(w[e]=h[e]);return w};F.defaults=function(h){G(c.call(arguments,1),function(w){if(w)for(var P in w)null==h[P]&&(h[P]=w[P])});return h};F.clone=function(h){return F.isObject(h)?F.isArray(h)?h.slice():F.extend({},h):h};F.tap=function(h,w){w(h);return h}; var R=function(h,w,P,e){if(h===w)return 0!==h||1/h==1/w;if(null==h||null==w)return h===w;h instanceof F&&(h=h._wrapped);w instanceof F&&(w=w._wrapped);var y=p.call(h);if(y!=p.call(w))return!1;switch(y){case "[object String]":return h==String(w);case "[object Number]":return h!=+h?w!=+w:0==h?1/h==1/w:h==+w;case "[object Date]":case "[object Boolean]":return+h==+w;case "[object RegExp]":return h.source==w.source&&h.global==w.global&&h.multiline==w.multiline&&h.ignoreCase==w.ignoreCase}if("object"!= typeof h||"object"!=typeof w)return!1;for(var D=P.length;D--;)if(P[D]==h)return e[D]==w;P.push(h);e.push(w);D=0;var L=!0;if("[object Array]"==y){if(D=h.length,L=D==w.length)for(;D--&&(L=R(h[D],w[D],P,e)););}else{y=h.constructor;var V=w.constructor;if(y!==V&&!(F.isFunction(y)&&y instanceof y&&F.isFunction(V)&&V instanceof V))return!1;for(var Y in h)if(F.has(h,Y)&&(D++,!(L=F.has(w,Y)&&R(h[Y],w[Y],P,e))))break;if(L){for(Y in w)if(F.has(w,Y)&&!D--)break;L=!D}}P.pop();e.pop();return L};F.isEqual=function(h, w){return R(h,w,[],[])};F.isEmpty=function(h){if(null==h)return!0;if(F.isArray(h)||F.isString(h))return 0===h.length;for(var w in h)if(F.has(h,w))return!1;return!0};F.isElement=function(h){return!(!h||1!==h.nodeType)};F.isArray=l||function(h){return"[object Array]"==p.call(h)};F.isObject=function(h){return h===Object(h)};G("Arguments Function String Number Date RegExp".split(" "),function(h){F["is"+h]=function(w){return p.call(w)=="[object "+h+"]"}});F.isArguments(arguments)||(F.isArguments=function(h){return!(!h|| !F.has(h,"callee"))});"function"!==typeof/./&&(F.isFunction=function(h){return"function"===typeof h});F.isFinite=function(h){return isFinite(h)&&!isNaN(parseFloat(h))};F.isNaN=function(h){return F.isNumber(h)&&h!=+h};F.isBoolean=function(h){return!0===h||!1===h||"[object Boolean]"==p.call(h)};F.isNull=function(h){return null===h};F.isUndefined=function(h){return void 0===h};F.has=function(h,w){return v.call(h,w)};F.noConflict=function(){n._=m;return this};F.identity=function(h){return h};F.times= function(h,w,P){for(var e=Array(h),y=0;y":">",'"':""","'":"'","/":"/"}};Q.unescape=F.invert(Q.escape);var B={escape:new RegExp("["+F.keys(Q.escape).join("")+"]","g"),unescape:new RegExp("("+F.keys(Q.unescape).join("|")+")","g")};F.each(["escape","unescape"],function(h){F[h]=function(w){return null==w?"":(""+w).replace(B[h], function(P){return Q[h][P]})}});F.result=function(h,w){if(null==h)return null;w=h[w];return F.isFunction(w)?w.call(h):w};F.mixin=function(h){G(F.functions(h),function(w){var P=F[w]=h[w];F.prototype[w]=function(){var e=[this._wrapped];a.apply(e,arguments);return A.call(this,P.apply(F,e))}})};var H=0;F.uniqueId=function(h){var w=++H+"";return h?h+w:w};F.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var X=/(.)^/,u={"'":"'","\\":"\\","\r":"r","\n":"n", "\t":"t","\u2028":"u2028","\u2029":"u2029"},d=/\\|'|\r|\n|\t|\u2028|\u2029/g;F.template=function(h,w,P){P=F.defaults({},P,F.templateSettings);var e=new RegExp([(P.escape||X).source,(P.interpolate||X).source,(P.evaluate||X).source].join("|")+"|$","g"),y=0,D="__p+='";h.replace(e,function(V,Y,Z,ca,fa){D+=h.slice(y,fa).replace(d,function(ha){return"\\"+u[ha]});Y&&(D+="'+\n((__t=("+Y+"))==null?'':_.escape(__t))+\n'");Z&&(D+="'+\n((__t=("+Z+"))==null?'':__t)+\n'");ca&&(D+="';\n"+ca+"\n__p+='");y=fa+V.length; return V});D+="';\n";P.variable||(D="with(obj||{}){\n"+D+"}\n");D="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+D+"return __p;\n";try{var L=new Function(P.variable||"obj","_",D)}catch(V){throw V.source=D,V;}if(w)return L(w,F);w=function(V){return L.call(this,V,F)};w.source="function("+(P.variable||"obj")+"){\n"+D+"}";return w};F.chain=function(h){return F(h).chain()};var A=function(h){return this._chain?F(h).chain():h};F.mixin(F);G("pop push reverse shift sort splice unshift".split(" "), function(h){var w=b[h];F.prototype[h]=function(){var P=this._wrapped;w.apply(P,arguments);"shift"!=h&&"splice"!=h||0!==P.length||delete P[0];return A.call(this,P)}});G(["concat","join","slice"],function(h){var w=b[h];F.prototype[h]=function(){return A.call(this,w.apply(this._wrapped,arguments))}});F.extend(F.prototype,{chain:function(){this._chain=!0;return this},value:function(){return this._wrapped}})}).call(this)},{}],119:[function(x,W,C){function n(g){return"function"==typeof g?g():g}C.none=Object.create({value:function(){throw Error("Called value on none"); },isNone:function(){return!0},isSome:function(){return!1},map:function(){return C.none},flatMap:function(){return C.none},toArray:function(){return[]},orElse:n,valueOrElse:n});C.some=function(g){return new m(g)};var m=function(g){this._value=g};m.prototype.value=function(){return this._value};m.prototype.isNone=function(){return!1};m.prototype.isSome=function(){return!0};m.prototype.map=function(g){return new m(g(this._value))};m.prototype.flatMap=function(g){return g(this._value)};m.prototype.toArray= function(){return[this._value]};m.prototype.orElse=function(g){return this};m.prototype.valueOrElse=function(g){return this._value};C.isOption=function(g){return g===C.none||g instanceof m};C.fromNullable=function(g){return null==g?C.none:new m(g)}},{}],120:[function(x,W,C){C=x("./lib/utils/common").assign;var n=x("./lib/deflate"),m=x("./lib/inflate");x=x("./lib/zlib/constants");var g={};C(g,n,m,x);W.exports=g},{"./lib/deflate":121,"./lib/inflate":122,"./lib/utils/common":123,"./lib/zlib/constants":126}], 121:[function(x,W,C){function n(p){if(!(this instanceof n))return new n(p);p=this.options=b.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},p||{});p.raw&&0p.windowBits&&(p.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new c;this.strm.avail_out=0;var v=g.deflateInit2(this.strm,p.level,p.method,p.windowBits,p.memLevel,p.strategy);if(0!==v)throw Error(a[v]);p.header&& g.deflateSetHeader(this.strm,p.header);if(p.dictionary){p="string"===typeof p.dictionary?l.string2buf(p.dictionary):"[object ArrayBuffer]"===t.call(p.dictionary)?new Uint8Array(p.dictionary):p.dictionary;v=g.deflateSetDictionary(this.strm,p);if(0!==v)throw Error(a[v]);this._dict_set=!0}}function m(p,v){v=new n(v);v.push(p,!0);if(v.err)throw v.msg;return v.result}var g=x("./zlib/deflate"),b=x("./utils/common"),l=x("./utils/strings"),a=x("./zlib/messages"),c=x("./zlib/zstream"),t=Object.prototype.toString; n.prototype.push=function(p,v){var r=this.strm,E=this.options.chunkSize;if(this.ended)return!1;v=v===~~v?v:!0===v?4:0;"string"===typeof p?r.input=l.string2buf(p):"[object ArrayBuffer]"===t.call(p)?r.input=new Uint8Array(p):r.input=p;r.next_in=0;r.avail_in=r.input.length;do{0===r.avail_out&&(r.output=new b.Buf8(E),r.next_out=0,r.avail_out=E);p=g.deflate(r,v);if(1!==p&&0!==p)return this.onEnd(p),this.ended=!0,!1;if(0===r.avail_out||0===r.avail_in&&(4===v||2===v))if("string"===this.options.to)this.onData(l.buf2binstring(b.shrinkBuf(r.output, r.next_out)));else this.onData(b.shrinkBuf(r.output,r.next_out))}while((0E.windowBits&&(E.windowBits=-E.windowBits,0===E.windowBits&&(E.windowBits=-15));!(0<=E.windowBits&&16>E.windowBits)|| r&&r.windowBits||(E.windowBits+=32);15E.windowBits&&0===(E.windowBits&15)&&(E.windowBits|=15);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new t;this.strm.avail_out=0;r=g.inflateInit2(this.strm,E.windowBits);if(r!==a.Z_OK)throw Error(c[r]);this.header=new p;g.inflateGetHeader(this.strm,this.header)}function m(r,E){E=new n(E);E.push(r,!0);if(E.err)throw E.msg;return E.result}var g=x("./zlib/inflate"),b=x("./utils/common"),l=x("./utils/strings"),a=x("./zlib/constants"), c=x("./zlib/messages"),t=x("./zlib/zstream"),p=x("./zlib/gzheader"),v=Object.prototype.toString;n.prototype.push=function(r,E){var K=this.strm,U=this.options.chunkSize,O=this.options.dictionary,z=!1;if(this.ended)return!1;E=E===~~E?E:!0===E?a.Z_FINISH:a.Z_NO_FLUSH;"string"===typeof r?K.input=l.binstring2buf(r):"[object ArrayBuffer]"===v.call(r)?K.input=new Uint8Array(r):K.input=r;K.next_in=0;K.avail_in=K.input.length;do{0===K.avail_out&&(K.output=new b.Buf8(U),K.next_out=0,K.avail_out=U);r=g.inflate(K, a.Z_NO_FLUSH);r===a.Z_NEED_DICT&&O&&(r="string"===typeof O?l.string2buf(O):"[object ArrayBuffer]"===v.call(O)?new Uint8Array(O):O,r=g.inflateSetDictionary(this.strm,r));r===a.Z_BUF_ERROR&&!0===z&&(r=a.Z_OK,z=!1);if(r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;if(K.next_out&&(0===K.avail_out||r===a.Z_STREAM_END||0===K.avail_in&&(E===a.Z_FINISH||E===a.Z_SYNC_FLUSH)))if("string"===this.options.to){var M=l.utf8border(K.output,K.next_out);var f=K.next_out-M;var N=l.buf2string(K.output, M);K.next_out=f;K.avail_out=U-f;f&&b.arraySet(K.output,K.output,M,f,0);this.onData(N)}else this.onData(b.shrinkBuf(K.output,K.next_out));0===K.avail_in&&0===K.avail_out&&(z=!0)}while((0c&&(a.subarray&& b||!a.subarray&&g))return String.fromCharCode.apply(null,m.shrinkBuf(a,c));for(var t="",p=0;px;x++)l[x]=252<=x?6:248<=x?5:240<=x?4:224<=x?3:192<=x?2:1;l[254]=l[254]=1;C.string2buf=function(a){var c,t,p=a.length,v=0;for(c=0;cr?1:2048>r?2:65536>r?3:4}var K=new m.Buf8(v);for(c=t=0;tr?K[t++]=r:(2048>r?K[t++]=192|r>>>6:(65536>r?K[t++]=224|r>>>12:(K[t++]=240|r>>>18,K[t++]=128|r>>>12&63),K[t++]=128|r>>>6&63),K[t++]=128|r&63);return K};C.buf2binstring=function(a){return n(a,a.length)};C.binstring2buf= function(a){for(var c=new m.Buf8(a.length),t=0,p=c.length;tr)v[t++]=r;else{var E=l[r];if(4r?v[t++]=r:(r-=65536,v[t++]=55296|r>>10&1023,v[t++]=56320|r&1023)}}}return n(v,t)};C.utf8border=function(a,c){var t;c=c||a.length;c>a.length&&(c=a.length);for(t=c-1;0<= t&&128===(a[t]&192);)t--;return 0>t||0===t?c:t+l[a[t]]>c?t:c}},{"./common":123}],125:[function(x,W,C){W.exports=function(n,m,g,b){var l=n&65535|0;n=n>>>16&65535|0;for(var a;0!==g;){a=2E3b;b++){m=b;for(var l=0;8>l;l++)m=m&1?3988292384^m>>>1:m>>>1;g[b]=m}return g}();W.exports=function(m,g,b,l){b=l+b;for(m^=-1;l>>8^n[(m^g[l])&255];return m^-1}},{}],128:[function(x,W,C){function n(k,J){k.msg=F[J];return J}function m(k){for(var J=k.length;0<= --J;)k[J]=0}function g(k){var J=k.state,I=J.pending;I>k.avail_out&&(I=k.avail_out);0!==I&&(f.arraySet(k.output,J.pending_buf,J.pending_out,I,k.next_out),k.next_out+=I,J.pending_out+=I,k.total_out+=I,k.avail_out-=I,J.pending-=I,0===J.pending&&(J.pending_out=0))}function b(k,J){N._tr_flush_block(k,0<=k.block_start?k.block_start:-1,k.strstart-k.block_start,J);k.block_start=k.strstart;g(k.strm)}function l(k,J){k.pending_buf[k.pending++]=J}function a(k,J){k.pending_buf[k.pending++]=J>>>8&255;k.pending_buf[k.pending++]= J&255}function c(k,J){var I=k.max_chain_length,S=k.strstart,R=k.prev_length,Q=k.nice_match,B=k.strstart>k.w_size-262?k.strstart-(k.w_size-262):0,H=k.window,X=k.w_mask,u=k.prev,d=k.strstart+258,A=H[S+R-1],h=H[S+R];k.prev_length>=k.good_match&&(I>>=2);Q>k.lookahead&&(Q=k.lookahead);do{var w=J;if(H[w+R]===h&&H[w+R-1]===A&&H[w]===H[S]&&H[++w]===H[S+1]){S+=2;for(w++;H[++S]===H[++w]&&H[++S]===H[++w]&&H[++S]===H[++w]&&H[++S]===H[++w]&&H[++S]===H[++w]&&H[++S]===H[++w]&&H[++S]===H[++w]&&H[++S]===H[++w]&&S< d;);w=258-(d-S);S=d-258;if(w>R){k.match_start=J;R=w;if(w>=Q)break;A=H[S+R-1];h=H[S+R]}}}while((J=u[J&X])>B&&0!==--I);return R<=k.lookahead?R:k.lookahead}function t(k){var J=k.w_size,I;do{var S=k.window_size-k.lookahead-k.strstart;if(k.strstart>=J+(J-262)){f.arraySet(k.window,k.window,J,J,0);k.match_start-=J;k.strstart-=J;k.block_start-=J;var R=I=k.hash_size;do{var Q=k.head[--R];k.head[R]=Q>=J?Q-J:0}while(--I);R=I=J;do Q=k.prev[--R],k.prev[R]=Q>=J?Q-J:0;while(--I);S+=J}if(0===k.strm.avail_in)break; R=k.strm;I=k.window;Q=k.strstart+k.lookahead;var B=R.avail_in;B>S&&(B=S);0===B?I=0:(R.avail_in-=B,f.arraySet(I,R.input,R.next_in,B,Q),1===R.state.wrap?R.adler=T(R.adler,I,B,Q):2===R.state.wrap&&(R.adler=q(R.adler,I,B,Q)),R.next_in+=B,R.total_in+=B,I=B);k.lookahead+=I;if(3<=k.lookahead+k.insert)for(S=k.strstart-k.insert,k.ins_h=k.window[S],k.ins_h=(k.ins_h<k.lookahead+k.insert););}while(262>k.lookahead&&0!==k.strm.avail_in)}function p(k,J){for(var I;;){if(262>k.lookahead){t(k);if(262>k.lookahead&&0===J)return 1;if(0===k.lookahead)break}I=0;3<=k.lookahead&&(k.ins_h=(k.ins_h<k.strstart?k.strstart:2;return 4===J?(b(k,!0),0===k.strm.avail_out?3:4):k.last_lit&&(b(k,!1),0===k.strm.avail_out)?1:2}function v(k,J){for(var I,S;;){if(262>k.lookahead){t(k);if(262>k.lookahead&&0===J)return 1;if(0===k.lookahead)break}I=0;3<=k.lookahead&&(k.ins_h=(k.ins_h<=k.match_length&&(1===k.strategy||3===k.match_length&&4096k.strstart?k.strstart: 2;return 4===J?(b(k,!0),0===k.strm.avail_out?3:4):k.last_lit&&(b(k,!1),0===k.strm.avail_out)?1:2}function r(k,J){for(var I,S,R,Q=k.window;;){if(258>=k.lookahead){t(k);if(258>=k.lookahead&&0===J)return 1;if(0===k.lookahead)break}k.match_length=0;if(3<=k.lookahead&&0 k.lookahead&&(k.match_length=k.lookahead)}3<=k.match_length?(I=N._tr_tally(k,1,k.match_length-3),k.lookahead-=k.match_length,k.strstart+=k.match_length,k.match_length=0):(I=N._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++);if(I&&(b(k,!1),0===k.strm.avail_out))return 1}k.insert=0;return 4===J?(b(k,!0),0===k.strm.avail_out?3:4):k.last_lit&&(b(k,!1),0===k.strm.avail_out)?1:2}function E(k,J){for(var I;;){if(0===k.lookahead&&(t(k),0===k.lookahead)){if(0===J)return 1;break}k.match_length= 0;I=N._tr_tally(k,0,k.window[k.strstart]);k.lookahead--;k.strstart++;if(I&&(b(k,!1),0===k.strm.avail_out))return 1}k.insert=0;return 4===J?(b(k,!0),0===k.strm.avail_out?3:4):k.last_lit&&(b(k,!1),0===k.strm.avail_out)?1:2}function K(k,J,I,S,R){this.good_length=k;this.max_lazy=J;this.nice_length=I;this.max_chain=S;this.func=R}function U(){this.strm=null;this.status=0;this.pending_buf=null;this.wrap=this.pending=this.pending_out=this.pending_buf_size=0;this.gzhead=null;this.gzindex=0;this.method=8;this.last_flush= -1;this.w_mask=this.w_bits=this.w_size=0;this.window=null;this.window_size=0;this.head=this.prev=null;this.nice_match=this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=this.block_start=this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new f.Buf16(1146);this.dyn_dtree=new f.Buf16(122);this.bl_tree=new f.Buf16(78); m(this.dyn_ltree);m(this.dyn_dtree);m(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new f.Buf16(16);this.heap=new f.Buf16(573);m(this.heap);this.heap_max=this.heap_len=0;this.depth=new f.Buf16(573);m(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0}function O(k){if(!k||!k.state)return n(k,-2);k.total_in=k.total_out=0;k.data_type=2;var J=k.state;J.pending=0;J.pending_out=0;0>J.wrap&& (J.wrap=-J.wrap);J.status=J.wrap?42:113;k.adler=2===J.wrap?0:1;J.last_flush=0;N._tr_init(J);return 0}function z(k){var J=O(k);0===J&&(k=k.state,k.window_size=2*k.w_size,m(k.head),k.max_lazy_match=G[k.level].max_lazy,k.good_match=G[k.level].good_length,k.nice_match=G[k.level].nice_length,k.max_chain_length=G[k.level].max_chain,k.strstart=0,k.block_start=0,k.lookahead=0,k.insert=0,k.match_length=k.prev_length=2,k.match_available=0,k.ins_h=0);return J}function M(k,J,I,S,R,Q){if(!k)return-2;var B=1;-1=== J&&(J=6);0>S?(B=0,S=-S):15R||9S||15J||9Q||4k.pending_buf_size-5&&(I=k.pending_buf_size-5);;){if(1>=k.lookahead){t(k);if(0===k.lookahead&&0===J)return 1;if(0===k.lookahead)break}k.strstart+=k.lookahead;k.lookahead=0;var S=k.block_start+I;if(0===k.strstart||k.strstart>=S)if(k.lookahead=k.strstart-S,k.strstart= S,b(k,!1),0===k.strm.avail_out)return 1;if(k.strstart-k.block_start>=k.w_size-262&&(b(k,!1),0===k.strm.avail_out))return 1}k.insert=0;if(4===J)return b(k,!0),0===k.strm.avail_out?3:4;k.strstart>k.block_start&&b(k,!1);return 1}),new K(4,4,8,4,p),new K(4,5,16,8,p),new K(4,6,32,32,p),new K(4,4,16,16,v),new K(8,16,32,32,v),new K(8,16,128,128,v),new K(8,32,128,256,v),new K(32,128,258,1024,v),new K(32,258,258,4096,v)];C.deflateInit=function(k,J){return M(k,J,8,15,8,0)};C.deflateInit2=M;C.deflateReset=z; C.deflateResetKeep=O;C.deflateSetHeader=function(k,J){if(!k||!k.state||2!==k.state.wrap)return-2;k.state.gzhead=J;return 0};C.deflate=function(k,J){if(!k||!k.state||5J)return k?n(k,-2):-2;var I=k.state;if(!k.output||!k.input&&0!==k.avail_in||666===I.status&&4!==J)return n(k,0===k.avail_out?-5:-2);I.strm=k;var S=I.last_flush;I.last_flush=J;if(42===I.status)if(2===I.wrap)k.adler=0,l(I,31),l(I,139),l(I,8),I.gzhead?(l(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name? 8:0)+(I.gzhead.comment?16:0)),l(I,I.gzhead.time&255),l(I,I.gzhead.time>>8&255),l(I,I.gzhead.time>>16&255),l(I,I.gzhead.time>>24&255),l(I,9===I.level?2:2<=I.strategy||2>I.level?4:0),l(I,I.gzhead.os&255),I.gzhead.extra&&I.gzhead.extra.length&&(l(I,I.gzhead.extra.length&255),l(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(k.adler=q(k.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(l(I,0),l(I,0),l(I,0),l(I,0),l(I,0),l(I,9===I.level?2:2<=I.strategy||2>I.level?4:0),l(I,3),I.status=113);else{var R= 8+(I.w_bits-8<<4)<<8;R|=(2<=I.strategy||2>I.level?0:6>I.level?1:6===I.level?2:3)<<6;0!==I.strstart&&(R|=32);I.status=113;a(I,R+(31-R%31));0!==I.strstart&&(a(I,k.adler>>>16),a(I,k.adler&65535));k.adler=1}if(69===I.status)if(I.gzhead.extra){for(R=I.pending;I.gzindex<(I.gzhead.extra.length&65535)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>R&&(k.adler=q(k.adler,I.pending_buf,I.pending-R,R)),g(k),R=I.pending,I.pending!==I.pending_buf_size));)l(I,I.gzhead.extra[I.gzindex]&255),I.gzindex++; I.gzhead.hcrc&&I.pending>R&&(k.adler=q(k.adler,I.pending_buf,I.pending-R,R));I.gzindex===I.gzhead.extra.length&&(I.gzindex=0,I.status=73)}else I.status=73;if(73===I.status)if(I.gzhead.name){R=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>R&&(k.adler=q(k.adler,I.pending_buf,I.pending-R,R)),g(k),R=I.pending,I.pending===I.pending_buf_size)){var Q=1;break}Q=I.gzindex R&&(k.adler=q(k.adler,I.pending_buf,I.pending-R,R));0===Q&&(I.gzindex=0,I.status=91)}else I.status=91;if(91===I.status)if(I.gzhead.comment){R=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>R&&(k.adler=q(k.adler,I.pending_buf,I.pending-R,R)),g(k),R=I.pending,I.pending===I.pending_buf_size)){Q=1;break}Q=I.gzindexR&&(k.adler=q(k.adler,I.pending_buf,I.pending- R,R));0===Q&&(I.status=103)}else I.status=103;103===I.status&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&g(k),I.pending+2<=I.pending_buf_size&&(l(I,k.adler&255),l(I,k.adler>>8&255),k.adler=0,I.status=113)):I.status=113);if(0!==I.pending){if(g(k),0===k.avail_out)return I.last_flush=-1,0}else if(0===k.avail_in&&(J<<1)-(4=I.wrap)return 1;2===I.wrap?(l(I,k.adler&255),l(I,k.adler>>8&255),l(I,k.adler>>16&255),l(I,k.adler>>24&255),l(I,k.total_in&255),l(I,k.total_in>>8&255), l(I,k.total_in>>16&255),l(I,k.total_in>>24&255)):(a(I,k.adler>>>16),a(I,k.adler&65535));g(k);0=S.w_size){0===R&&(m(S.head),S.strstart=0,S.block_start=0,S.insert=0);var Q=new f.Buf8(S.w_size);f.arraySet(Q,J,I-S.w_size,S.w_size,0);J=Q;I=S.w_size}Q=k.avail_in;var B=k.next_in;var H=k.input;k.avail_in=I;k.next_in=0;k.input=J;for(t(S);3<=S.lookahead;){J=S.strstart;I=S.lookahead-2;do S.ins_h=(S.ins_h<z&&(O+=l[b++]<>>24;O>>>=F;z-=F;F=q>>>16&255;if(0===F)t[c++]=q&65535;else if(F&16){var G=q&65535;if(F&= 15)z>>=F,z-=F;15>z&&(O+=l[b++]<>>24;O>>>=F;z-=F;F=q>>>16&255;if(F&16){q&=65535;F&=15;zv){n.msg="invalid distance too far back";g.mode=30;break a}O>>>=F;z-=F;F=c-m;if(q>F){F=q-F;if(F>E&&g.sane){n.msg="invalid distance too far back";g.mode=30;break a}var k=0;var J=U;if(0===K){if(k+=r-F,F>3;b-=G;z-=G<<3;n.next_in=b;n.next_out=c;n.avail_in=b>>24&255)+(z>>>8&65280)+((z&65280)<<8)+((z&255)<<24)}function m(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head= null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new t.Buf16(320);this.work=new t.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function g(z){if(!z||!z.state)return-2;var M=z.state;z.total_in=z.total_out=M.total=0;z.msg="";M.wrap&&(z.adler=M.wrap&1);M.mode=1;M.last=0;M.havedict= 0;M.dmax=32768;M.head=null;M.hold=0;M.bits=0;M.lencode=M.lendyn=new t.Buf32(852);M.distcode=M.distdyn=new t.Buf32(592);M.sane=1;M.back=-1;return 0}function b(z){if(!z||!z.state)return-2;var M=z.state;M.wsize=0;M.whave=0;M.wnext=0;return g(z)}function l(z,M){if(!z||!z.state)return-2;var f=z.state;if(0>M){var N=0;M=-M}else N=(M>>4)+1,48>M&&(M&=15);if(M&&(8>M||15=T.wsize?(t.arraySet(T.window,M,f-T.wsize,T.wsize,0),T.wnext=0,T.whave=T.wsize):(z=T.wsize-T.wnext,z>N&&(z=N),t.arraySet(T.window,M,f-N,z,T.wnext),(N-=z)?(t.arraySet(T.window,M,f-N,N,0),T.wnext=N,T.whave=T.wsize):(T.wnext+=z,T.wnext===T.wsize&&(T.wnext=0),T.whaveQ;){if(0===S)break a;S--;R+=I[J++]<>>8&255;q.check=v(q.check,N,2,0);Q=R=0;q.mode=2;break}q.flags=0;q.head&&(q.head.done=!1);if(!(q.wrap&1)||(((R&255)<<8)+(R>>8))%31){z.msg="incorrect header check";q.mode=30;break}if(8!==(R&15)){z.msg="unknown compression method";q.mode=30;break}R>>>=4;Q-=4;var u=(R&15)+8;if(0===q.wbits)q.wbits=u;else if(u> q.wbits){z.msg="invalid window size";q.mode=30;break}q.dmax=1<Q;){if(0===S)break a;S--;R+=I[J++]<>8&1);q.flags&512&&(N[0]=R&255,N[1]=R>>>8&255,q.check=v(q.check,N,2,0));Q=R=0;q.mode=3;case 3:for(;32>Q;){if(0===S)break a;S--;R+=I[J++]<>>8&255,N[2]=R>>>16&255,N[3]=R>>>24&255,q.check=v(q.check,N,4,0));Q=R=0;q.mode=4;case 4:for(;16>Q;){if(0===S)break a;S--;R+=I[J++]<>8);q.flags&512&&(N[0]=R&255,N[1]=R>>>8&255,q.check=v(q.check,N,2,0));Q=R=0;q.mode=5;case 5:if(q.flags&1024){for(;16>Q;){if(0===S)break a;S--;R+=I[J++]<>>8&255,q.check=v(q.check,N,2,0));Q=R=0}else q.head&&(q.head.extra= null);q.mode=6;case 6:if(q.flags&1024){var d=q.length;d>S&&(d=S);d&&(q.head&&(u=q.head.extra_len-q.length,q.head.extra||(q.head.extra=Array(q.head.extra_len)),t.arraySet(q.head.extra,I,J,d,u)),q.flags&512&&(q.check=v(q.check,I,d,J)),S-=d,J+=d,q.length-=d);if(q.length)break a}q.length=0;q.mode=7;case 7:if(q.flags&2048){if(0===S)break a;d=0;do u=I[J+d++],q.head&&u&&65536>q.length&&(q.head.name+=String.fromCharCode(u));while(u&&dq.length&&(q.head.comment+=String.fromCharCode(u));while(u&&dQ;){if(0===S)break a;S--;R+=I[J++]<>9&1,q.head.done=!0);z.adler=q.check= 0;q.mode=12;break;case 10:for(;32>Q;){if(0===S)break a;S--;R+=I[J++]<>>=Q&7;Q-=Q&7;q.mode=27;break}for(;3>Q;){if(0===S)break a;S--;R+=I[J++]<>>=1;--Q;switch(R&3){case 0:q.mode=14;break;case 1:u=q;if(K){U=new t.Buf32(512);O=new t.Buf32(32);for(d=0;144> d;)u.lens[d++]=8;for(;256>d;)u.lens[d++]=9;for(;280>d;)u.lens[d++]=7;for(;288>d;)u.lens[d++]=8;E(1,u.lens,0,288,U,0,u.work,{bits:9});for(d=0;32>d;)u.lens[d++]=5;E(2,u.lens,0,32,O,0,u.work,{bits:5});K=!1}u.lencode=U;u.lenbits=9;u.distcode=O;u.distbits=5;q.mode=20;if(6===M){R>>>=2;Q-=2;break a}break;case 2:q.mode=17;break;case 3:z.msg="invalid block type",q.mode=30}R>>>=2;Q-=2;break;case 14:R>>>=Q&7;for(Q-=Q&7;32>Q;){if(0===S)break a;S--;R+=I[J++]<>>16^65535)){z.msg="invalid stored block lengths"; q.mode=30;break}q.length=R&65535;Q=R=0;q.mode=15;if(6===M)break a;case 15:q.mode=16;case 16:if(d=q.length){d>S&&(d=S);d>k&&(d=k);if(0===d)break a;t.arraySet(G,I,J,d,F);S-=d;J+=d;k-=d;F+=d;q.length-=d;break}q.mode=12;break;case 17:for(;14>Q;){if(0===S)break a;S--;R+=I[J++]<>>=5;Q-=5;q.ndist=(R&31)+1;R>>>=5;Q-=5;q.ncode=(R&15)+4;R>>>=4;Q-=4;if(286 Q;){if(0===S)break a;S--;R+=I[J++]<>>=3;Q-=3}for(;19>q.have;)q.lens[T[q.have++]]=0;q.lencode=q.lendyn;q.lenbits=7;d={bits:q.lenbits};X=E(0,q.lens,0,19,q.lencode,0,q.work,d);q.lenbits=d.bits;if(X){z.msg="invalid code lengths set";q.mode=30;break}q.have=0;q.mode=19;case 19:for(;q.have>>24;A&=65535;if(d<=Q)break;if(0===S)break a;S--;R+=I[J++]<A)R>>>=d,Q-=d,q.lens[q.have++]=A;else{if(16=== A){for(u=d+2;Q>>=d;Q-=d;if(0===q.have){z.msg="invalid bit length repeat";q.mode=30;break}u=q.lens[q.have-1];d=3+(R&3);R>>>=2;Q-=2}else if(17===A){for(u=d+3;Q>>=d;Q-=d;u=0;d=3+(R&7);R>>>=3;Q-=3}else{for(u=d+7;Q>>=d;Q-=d;u=0;d=11+(R&127);R>>>=7;Q-=7}if(q.have+d>q.nlen+q.ndist){z.msg="invalid bit length repeat";q.mode=30;break}for(;d--;)q.lens[q.have++]=u}}if(30=== q.mode)break;if(0===q.lens[256]){z.msg="invalid code -- missing end-of-block";q.mode=30;break}q.lenbits=9;d={bits:q.lenbits};X=E(1,q.lens,0,q.nlen,q.lencode,0,q.work,d);q.lenbits=d.bits;if(X){z.msg="invalid literal/lengths set";q.mode=30;break}q.distbits=6;q.distcode=q.distdyn;d={bits:q.distbits};X=E(2,q.lens,q.nlen,q.ndist,q.distcode,0,q.work,d);q.distbits=d.bits;if(X){z.msg="invalid distances set";q.mode=30;break}q.mode=20;if(6===M)break a;case 20:q.mode=21;case 21:if(6<=S&&258<=k){z.next_out=F; z.avail_out=k;z.next_in=J;z.avail_in=S;q.hold=R;q.bits=Q;r(z,H);F=z.next_out;G=z.output;k=z.avail_out;J=z.next_in;I=z.input;S=z.avail_in;R=q.hold;Q=q.bits;12===q.mode&&(q.back=-1);break}for(q.back=0;;){A=q.lencode[R&(1<>>24;u=A>>>16&255;A&=65535;if(d<=Q)break;if(0===S)break a;S--;R+=I[J++]<>h)];d=A>>>24;u=A>>>16&255;A&=65535;if(h+d<=Q)break;if(0===S)break a;S--;R+=I[J++]<>>=h;Q-=h;q.back+= h}R>>>=d;Q-=d;q.back+=d;q.length=A;if(0===u){q.mode=26;break}if(u&32){q.back=-1;q.mode=12;break}if(u&64){z.msg="invalid literal/length code";q.mode=30;break}q.extra=u&15;q.mode=22;case 22:if(q.extra){for(u=q.extra;Q>>=q.extra;Q-=q.extra;q.back+=q.extra}q.was=q.length;q.mode=23;case 23:for(;;){A=q.distcode[R&(1<>>24;u=A>>>16&255;A&=65535;if(d<=Q)break;if(0===S)break a;S--;R+=I[J++]<>h)];d=A>>>24;u=A>>>16&255;A&=65535;if(h+d<=Q)break;if(0===S)break a;S--;R+=I[J++]<>>=h;Q-=h;q.back+=h}R>>>=d;Q-=d;q.back+=d;if(u&64){z.msg="invalid distance code";q.mode=30;break}q.offset=A;q.extra=u&15;q.mode=24;case 24:if(q.extra){for(u=q.extra;Q>>=q.extra;Q-=q.extra;q.back+=q.extra}if(q.offset>q.dmax){z.msg="invalid distance too far back";q.mode=30;break}q.mode=25; case 25:if(0===k)break a;d=H-k;if(q.offset>d){d=q.offset-d;if(d>q.whave&&q.sane){z.msg="invalid distance too far back";q.mode=30;break}d>q.wnext?(d-=q.wnext,u=q.wsize-d):u=q.wnext-d;d>q.length&&(d=q.length);h=q.window}else h=G,u=F-q.offset,d=q.length;d>k&&(d=k);k-=d;q.length-=d;do G[F++]=h[u++];while(--d);0===q.length&&(q.mode=21);break;case 26:if(0===k)break a;G[F++]=q.length;k--;q.mode=21;break;case 27:if(q.wrap){for(;32>Q;){if(0===S)break a;S--;R|=I[J++]<Q;){if(0===S)break a;S--;R+=I[J++]<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?v(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};C.inflateEnd=function(z){if(!z||!z.state)return-2;var M=z.state;M.window&&(M.window=null);z.state=null;return 0};C.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};C.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};C.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":123,"./adler32":125,"./crc32":127,"./inffast":130,"./inftrees":132}],132:[function(x, W,C){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,v,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 v[r++]=20971520,v[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 w=Array(16),P=0,e; for(e=1;15>=e;e++)w[e]=P=P+h[e-1]<<1;for(h=0;h<=A;h++)P=d[2*h+1],0!==P&&(d[2*h]=c(w[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 v(d){8P?I[P]:I[256+(P>>>7)];a(d,y,h);D=q[y];0!==D&&(P-=Q[y],l(d,P,D))}}while(wd.heap_len;){var L=d.heap[++d.heap_len]=2>D?++D:0;h[2*L]=1;d.depth[L]=0;d.opt_len--;P&&(d.static_len-=w[2*L+1])}A.max_code=D;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),w=d.heap[1],d.heap[--d.heap_max]=y,d.heap[--d.heap_max]= w,h[2*L]=h[2*y]+h[2*w],d.depth[L]=(d.depth[y]>=d.depth[w]?d.depth[y]:d.depth[w])+1,h[2*y+1]=h[2*w+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;w=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*(w[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*w+1]!==Z&&(d.opt_len+=(Z-y[2*w+1])*y[2*w],y[2*w+1]=Z),fa--)}t(h,D,d.bl_count)}function O(d,A,h){var w,P=-1,e=A[1],y=0,D=7,L=4;0===e&&(D=138,L=3);A[2*(h+1)+1]=65535;for(w=0;w<=h;w++){var V=e;e= A[2*(w+1)+1];++y=y?d.bl_tree[34]++:d.bl_tree[36]++,y=0,P=V,0===e?(D=138,L=3):V===e?(D=6,L=3):(D=7,L=4))}}function z(d,A,h){var w,P=-1,e=A[1],y=0,D=7,L=4;0===e&&(D=138,L=3);for(w=0;w<=h;w++){var V=e;e=A[2*(w+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?(D=138,L=3):V===e?(D=6,L=3):(D=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,w){l(d,w?1:0,3);v(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;C._tr_init=function(d){if(!u){var A,h,w,P=Array(16);for(w=h=0;28>w;w++)for(R[w]=h,A=0;A<1<w;w++)for(Q[w]=h,A=0;A<1<>=7;30>w;w++)for(Q[w]=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)};C._tr_stored_block=f;C._tr_flush_block=function(d,A,h,w){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,w);else if(4===d.strategy||y===e)l(d,2+(w?1:0),3),K(d,k,J);else{l(d,4+(w?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};C._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,C){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,C){(function(n){function m(a,c){for(var t=0,p=a.length-1;0<=p;p--){var v=a[p];"."===v? a.splice(p,1):".."===v?(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=C.resolve(a).substr(1);c=C.resolve(c).substr(1);a=t(a.split("/"));c=t(c.split("/"));for(var p=Math.min(a.length,c.length),v=p,r=0;rc&&(c=a.length+c);return a.substr(c,t)}}).call(this,x("_process"))},{_process:138}],137:[function(x,W,C){(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,C){W.exports=x("./lib/_stream_passthrough.js")}, {"./lib/_stream_passthrough.js":141}],147:[function(x,W,C){var n=x("_process");a:{try{var m=x("stream");break a}catch(g){}m=void 0}C=W.exports=x("./lib/_stream_readable.js");C.Stream=m||C;C.Readable=C;C.Writable=x("./lib/_stream_writable.js");C.Duplex=x("./lib/_stream_duplex.js");C.Transform=x("./lib/_stream_transform.js");C.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,C){W.exports=x("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":143}],149:[function(x,W,C){W.exports=x("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":144}],150:[function(x,W,C){(function(n){(function(m){function g(e,y){if(!(this instanceof g))return new g(e,y);for(var D=0,L=T.length;De.indexOf(":")? ["",e]:e.split(":"),L=D[0];D=D[1];y&&"xmlns"===e&&(L="xmlns",D="");return{prefix:L,local:D}}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),D=y.local;if("xmlns"===y.prefix)if("xml"===D&&e.attribValue!==B)E(e,"xml: prefix must be bound to "+B+"\nActual: "+e.attribValue);else if("xmlns"===D&&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[D]=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 D=e.tag,L=K(e.tagName);D.prefix=L.prefix;D.local=L.local;D.uri=D.ns[L.prefix]||"";D.prefix&&!D.uri&&(E(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)), D.uri=L.prefix);L=e.tags[e.tags.length-1]||e;D.ns&&L.ns!==D.ns&&Object.keys(D.ns).forEach(function(la){c(e,"onopennamespace",{prefix:la,uri:D.ns[la]})});L=0;for(var V=e.attribList.length;L";e.tagName="";e.state=w.SCRIPT;return}c(e,"onscript",e.script);e.script=""}var y=e.tags.length,D=e.tagName;e.strict||(D=D[e.looseCase]());for(var L=D;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+="";else{e.tagName=D;for(D=e.tags.length;D-- >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=w.TEXT}function M(e){var y=e.entity,D=y.toLowerCase(),L="";if(e.ENTITIES[y])return e.ENTITIES[y];if(e.ENTITIES[D])return e.ENTITIES[D];y=D;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=w.OPEN_WAKA,e.startTagPosition=e.position):a(G, y)||(E(e,"Non-whitespace before first tag."),e.textNode=y,e.state=w.TEXT)}function N(e,y){var D="";y"===D?(c(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=w.TEXT):(a(I,D)&&(this.state=w.SGML_DECL_QUOTED),this.sgmlDecl+=D);continue;case w.SGML_DECL_QUOTED:D===this.q&&(this.state=w.SGML_DECL,this.q="");this.sgmlDecl+=D;continue;case w.DOCTYPE:">"===D?(this.state=w.TEXT,c(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=D,"["===D?this.state=w.DOCTYPE_DTD: a(I,D)&&(this.state=w.DOCTYPE_QUOTED,this.q=D));continue;case w.DOCTYPE_QUOTED:this.doctype+=D;D===this.q&&(this.q="",this.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:this.doctype+=D;"]"===D?this.state=w.DOCTYPE:a(I,D)&&(this.state=w.DOCTYPE_DTD_QUOTED,this.q=D);continue;case w.DOCTYPE_DTD_QUOTED:this.doctype+=D;D===this.q&&(this.state=w.DOCTYPE_DTD,this.q="");continue;case w.COMMENT:"-"===D?this.state=w.COMMENT_ENDING:this.comment+=D;continue;case w.COMMENT_ENDING:"-"===D?(this.state=w.COMMENT_ENDED, (this.comment=p(this.opt,this.comment))&&c(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+D,this.state=w.COMMENT);continue;case w.COMMENT_ENDED:">"!==D?(E(this,"Malformed comment"),this.comment+="--"+D,this.state=w.COMMENT):this.state=w.TEXT;continue;case w.CDATA:"]"===D?this.state=w.CDATA_ENDING:this.cdata+=D;continue;case w.CDATA_ENDING:"]"===D?this.state=w.CDATA_ENDING_2:(this.cdata+="]"+D,this.state=w.CDATA);continue;case w.CDATA_ENDING_2:">"===D?(this.cdata&&c(this,"oncdata", this.cdata),c(this,"onclosecdata"),this.cdata="",this.state=w.TEXT):"]"===D?this.cdata+="]":(this.cdata+="]]"+D,this.state=w.CDATA);continue;case w.PROC_INST:"?"===D?this.state=w.PROC_INST_ENDING:a(G,D)?this.state=w.PROC_INST_BODY:this.procInstName+=D;continue;case w.PROC_INST_BODY:if(!this.procInstBody&&a(G,D))continue;else"?"===D?this.state=w.PROC_INST_ENDING:this.procInstBody+=D;continue;case w.PROC_INST_ENDING:">"===D?(c(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}), this.procInstName=this.procInstBody="",this.state=w.TEXT):(this.procInstBody+="?"+D,this.state=w.PROC_INST_BODY);continue;case w.OPEN_TAG:if(a(d,D))this.tagName+=D;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;">"===D?O(this):"/"===D?this.state=w.OPEN_TAG_SLASH:(a(G,D)||E(this,"Invalid character in tag name"),this.state=w.ATTRIB)}continue;case w.OPEN_TAG_SLASH:">"=== D?(O(this,!0),z(this)):(E(this,"Forward-slash in opening tag not followed by >"),this.state=w.ATTRIB);continue;case w.ATTRIB:if(a(G,D))continue;else">"===D?O(this):"/"===D?this.state=w.OPEN_TAG_SLASH:a(u,D)?(this.attribName=D,this.attribValue="",this.state=w.ATTRIB_NAME):E(this,"Invalid attribute name");continue;case w.ATTRIB_NAME:"="===D?this.state=w.ATTRIB_VALUE:">"===D?(E(this,"Attribute without value"),this.attribValue=this.attribName,U(this),O(this)):a(G,D)?this.state=w.ATTRIB_NAME_SAW_WHITE: a(d,D)?this.attribName+=D:E(this,"Invalid attribute name");continue;case w.ATTRIB_NAME_SAW_WHITE:if("="===D)this.state=w.ATTRIB_VALUE;else if(a(G,D))continue;else E(this,"Attribute without value"),this.attribValue=this.tag.attributes[this.attribName]="",c(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===D?O(this):a(u,D)?(this.attribName=D,this.state=w.ATTRIB_NAME):(E(this,"Invalid attribute name"),this.state=w.ATTRIB);continue;case w.ATTRIB_VALUE:if(a(G,D))continue;else a(I, D)?(this.q=D,this.state=w.ATTRIB_VALUE_QUOTED):(E(this,"Unquoted attribute value"),this.state=w.ATTRIB_VALUE_UNQUOTED,this.attribValue=D);continue;case w.ATTRIB_VALUE_QUOTED:if(D!==this.q){"&"===D?this.state=w.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=D;continue}U(this);this.q="";this.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:a(G,D)?this.state=w.ATTRIB:">"===D?O(this):"/"===D?this.state=w.OPEN_TAG_SLASH:a(u,D)?(E(this,"No whitespace between attributes"),this.attribName=D,this.attribValue= "",this.state=w.ATTRIB_NAME):E(this,"Invalid attribute name");continue;case w.ATTRIB_VALUE_UNQUOTED:if(!a(S,D)){"&"===D?this.state=w.ATTRIB_VALUE_ENTITY_U:this.attribValue+=D;continue}U(this);">"===D?O(this):this.state=w.ATTRIB;continue;case w.CLOSE_TAG:if(this.tagName)">"===D?z(this):a(d,D)?this.tagName+=D:this.script?(this.script+=""===D?z(this):E(this,"Invalid characters in closing tag");continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:switch(this.state){case w.TEXT_ENTITY:var Y=w.TEXT;var Z="textNode";break;case w.ATTRIB_VALUE_ENTITY_Q:Y=w.ATTRIB_VALUE_QUOTED;Z="attribValue";break;case w.ATTRIB_VALUE_ENTITY_U:Y=w.ATTRIB_VALUE_UNQUOTED, Z="attribValue"}";"===D?(this[Z]+=M(this),this.entity="",this.state=Y):a(this.entity.length?h:A,D)?this.entity+=D:(E(this,"Invalid character in entity name"),this[Z]+="&"+this.entity+D,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);D=y=0;for(Y=T.length;De)switch(T[D]){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:v(this,"Max buffer length exceeded: "+T[D])}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 D=this;D._parser["on"+e]||-1===F.indexOf(e)||(D._parser["on"+e]=function(){var L=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);L.splice(0,0,e);D.emit.apply(D,L)});return q.prototype.on.call(D,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 w=0;m.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++, ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++};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;w=m.STATE;String.fromCodePoint||function(){var e=String.fromCharCode,y=Math.floor, D=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,C){(function(){function n(e){return function(y,D,L,V){D=N(D,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=D,ha=L;0<=ca&&caL||null==D)return D;for(var V=1;VL&&(L=D)}else y=T(y,D),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,D){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=D)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===D.trailing||(Z=setTimeout(fa,la));return Y}};f.debounce=function(e,y,D){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 D;return function(){0<--e&&(D=y.apply(this,arguments));1>=e&&(y=null);return D}};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=[],D;for(D in e)f.has(e,D)&&y.push(D);B&&b(e,y);return y};f.allKeys=function(e){if(!f.isObject(e))return[];var y=[],D;for(D in e)y.push(D);B&&b(e,y);return y};f.values=function(e){for(var y=f.keys(e),D=y.length,L=Array(D),V=0;V":">",'"':""","'":"'","`":"`"};q=f.invert(K);G=function(e){var y=function(Y){return e[Y]},D="(?:"+f.keys(e).join("|")+")",L=RegExp(D),V=RegExp(D,"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,D){y=null==e?void 0:e[y];void 0===y&&(y=D);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,w=function(e){return"\\"+A[e]};f.template=function(e,y,D){!y&&D&&(y=D);y=f.defaults({},y,f.templateSettings);D=RegExp([(y.escape|| d).source,(y.interpolate||d).source,(y.evaluate||d).source].join("|")+"|$","g");var L=0,V="__p+='";e.replace(D,function(Z,ca,fa,ha,la){V+=e.slice(L,la).replace(h,w);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;}D=function(Z){return Y.call(this,Z,f)};D.source="function("+(y.variable||"obj")+"){\n"+V+"}";return D};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 D=f[y]=e[y];f.prototype[y]=function(){var L=[this._wrapped];p.apply(L,arguments);return P(this,D.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 D=this._wrapped;y.apply(D,arguments);"shift"!==e&&"splice"!==e||0!==D.length||delete D[0];return P(this,D)}});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,C){(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,C){arguments[4][81][0].apply(C,arguments)},{dup:81}],156:[function(x,W, C){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,C){(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&&C._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!==C.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?v(Q,B,H,d,u):u.map(function(w){return r(Q,B,H,d,w,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 v(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;C.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,C){(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,C){(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,C){(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,v,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(!v)throw Error("Missing DTD attribute default. "+this.debugInfo(c));0!==v.indexOf("#")&& (v="#"+v);if(!v.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(r&&!v.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= v}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,C){(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,C){(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,v){a.__super__.constructor.call(this,c);if(null==p)throw Error("Missing DTD entity name. "+this.debugInfo(p));if(null==v)throw Error("Missing DTD entity value. "+this.debugInfo(p));this.pe=!!t;this.name=this.stringify.eleName(p);if(g(v)){if(!v.pubID&&!v.sysID)throw Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(p));if(v.pubID&&!v.sysID)throw Error("System identifier is required for a public external entity. "+ this.debugInfo(p));null!=v.pubID&&(this.pubID=this.stringify.dtdPubID(v.pubID));null!=v.sysID&&(this.sysID=this.stringify.dtdSysID(v.sysID));null!=v.nData&&(this.nData=this.stringify.dtdNData(v.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(v)}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,C){(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,C){(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,v){a.__super__.constructor.call(this,c);g(t)&&(c=t,t=c.version,p=c.encoding,v=c.standalone);t||(t="1.0");this.version=this.stringify.xmlVersion(t);null!=p&&(this.encoding=this.stringify.xmlEncoding(p));null!=v&&(this.standalone=this.stringify.xmlStandalone(v))}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,C){(function(){var n=function(p,v){function r(){this.constructor=p}for(var E in v)m.call(v,E)&&(p[E]=v[E]);r.prototype=v.prototype;p.prototype=new r;p.__super__=v.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 v(r,E,K){v.__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(v,p);v.prototype.element=function(r,E){r=new c(this,r,E);this.children.push(r);return this};v.prototype.attList=function(r,E,K,U,O){r=new l(this,r,E,K,U,O);this.children.push(r);return this};v.prototype.entity=function(r,E){r=new a(this,!1,r,E);this.children.push(r);return this};v.prototype.pEntity=function(r, E){r=new a(this,!0,r,E);this.children.push(r);return this};v.prototype.notation=function(r,E){r=new t(this,r,E);this.children.push(r);return this};v.prototype.toString=function(r){return this.options.writer.set(r).docType(this)};v.prototype.ele=function(r,E){return this.element(r,E)};v.prototype.att=function(r,E,K,U,O){return this.attList(r,E,K,U,O)};v.prototype.ent=function(r,E){return this.entity(r,E)};v.prototype.pent=function(r,E){return this.pEntity(r,E)};v.prototype.not=function(r,E){return this.notation(r, E)};v.prototype.up=function(){return this.root()||this.documentObject};return v}(b)}).call(this)},{"./Utility":158,"./XMLDTDAttList":162,"./XMLDTDElement":163,"./XMLDTDEntity":164,"./XMLDTDNotation":165,"./XMLNode":171}],168:[function(x,W,C){(function(){var n=function(c,t){function p(){this.constructor=c}for(var v in t)m.call(t,v)&&(c[v]=t[v]);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,C){(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 v=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 v(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,C){(function(){var n=function(t,p){function v(){this.constructor=t}for(var r in p)m.call(p,r)&&(t[r]=p[r]);v.prototype=p.prototype;t.prototype=new v;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(v, r,E){p.__super__.constructor.call(this,v);if(null==r)throw Error("Missing element name. "+this.debugInfo());this.name=this.stringify.eleName(r);this.attributes={};null!=E&&this.attribute(E);v.isDocument&&(this.isRoot=!0,this.documentObject=v,v.rootObject=this)}n(p,t);p.prototype.clone=function(){var v;var r=Object.create(this);r.isRoot&&(r.documentObject=null);r.attributes={};var E=this.attributes;for(v in E)if(m.call(E,v)){var K=E[v];r.attributes[v]=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(v,r){var E;null!=v&&(v=a(v));if(b(v))for(E in v)m.call(v,E)&&(r=v[E],this.attribute(E,r));else l(r)&&(r=r.apply()),this.options.skipNullAttributes&&null==r||(this.attributes[v]=new c(this,v,r));return this};p.prototype.removeAttribute=function(v){var r;if(null==v)throw Error("Missing attribute name. "+this.debugInfo());v=a(v);if(Array.isArray(v)){var E=0;for(r=v.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,C){(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,C){(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,C){(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 v=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(">"):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("");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)+""+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,C){(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 v=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+(">"+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+=""+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)+""+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)+""+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,C){(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(//g,">").replace(/\r/g," ")};g.prototype.attEscape=function(b){return b.replace(this.noDoubleEncoding? /(?!&\S+;)&/g:/&/g,"&").replace(/'); c.ui.registry.addButton("importword",{icon:"importword",tooltip:"\u5bfc\u5165Word",onAction:function(){u()}});return{getMetadata:function(){return{name:"\u5bfc\u5165Word",url:"https://github.com/Five-great/tinymce-plugins"}}}});