swallow SJAX errors during in-browser translation

This commit is contained in:
Evan Wallace 2013-08-03 07:25:01 -07:00
parent a08c8cfe97
commit bbe8c603ab
2 changed files with 97 additions and 97 deletions

View File

@ -5,119 +5,119 @@
(function(h,u,p){function f(e,a){if(!u[e]){if(!h[e]){var c="function"==typeof require&&require;if(!a&&c)return c(e,!0);if(D)return D(e,!0);throw Error("Cannot find module '"+e+"'");}c=u[e]={exports:{}};h[e][0].call(c.exports,function(a){var d=h[e][1][a];return f(d?d:a)},c,c.exports)}return u[e].exports}for(var D="function"==typeof require&&require,k=0;k<p.length;k++)f(p[k]);return f})({1:[function(h,u,p){h("./source-map-support").install()},{"./source-map-support":12}],2:[function(h,u,p){p.SourceMapGenerator=
h("./source-map/source-map-generator").SourceMapGenerator;p.SourceMapConsumer=h("./source-map/source-map-consumer").SourceMapConsumer;p.SourceNode=h("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":7,"./source-map/source-map-generator":8,"./source-map/source-node":9}],3:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(){this._array=[];this._set={}}var c=f("./util");a.fromArray=function(c){for(var d=new a,g=0,b=c.length;g<b;g++)d.add(c[g]);
return d};a.prototype.add=function(a){var d=this._array.length;this._array.push(a);this.has(a)||(this._set[c.toSetString(a)]=d)};a.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this._set,c.toSetString(a))};a.prototype.indexOf=function(a){if(this.has(a))return this._set[c.toSetString(a)];throw Error('"'+a+'" is not in the set.');};a.prototype.at=function(a){if(0<=a&&a<this._array.length)return this._array[a];throw Error("No element indexed by "+a);};a.prototype.toArray=function(){return this._array.slice()};
k.ArraySet=a})},{"./util":10,amdefine:11}],4:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){var a=f("./base64");k.encode=function(c){var e="",d=0>c?(-c<<1)+1:(c<<1)+0;do c=d&31,d>>>=5,0<d&&(c|=32),e+=a.encode(c);while(0<d);return e};k.decode=function(c){var e=0,d=c.length,g=0,b=0,v,s;do{if(e>=d)throw Error("Expected more digits in base 64 VLQ value.");s=a.decode(c.charAt(e++));v=!!(s&32);s&=31;g+=s<<b;b+=5}while(v);d=g>>1;return{value:1===(g&1)?-d:d,rest:c.slice(e)}}})},
k.ArraySet=a})},{"./util":10,amdefine:11}],4:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){var a=f("./base64");k.encode=function(c){var e="",d=0>c?(-c<<1)+1:(c<<1)+0;do c=d&31,d>>>=5,0<d&&(c|=32),e+=a.encode(c);while(0<d);return e};k.decode=function(c){var e=0,d=c.length,g=0,b=0,w,t;do{if(e>=d)throw Error("Expected more digits in base 64 VLQ value.");t=a.decode(c.charAt(e++));w=!!(t&32);t&=31;g+=t<<b;b+=5}while(w);d=g>>1;return{value:1===(g&1)?-d:d,rest:c.slice(e)}}})},
{"./base64":5,amdefine:11}],5:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){var a={},c={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(e,d){a[e]=d;c[d]=e});k.encode=function(a){if(a in c)return c[a];throw new TypeError("Must be between 0 and 63: "+a);};k.decode=function(c){if(c in a)return a[c];throw new TypeError("Not a valid base 64 digit: "+c);}})},{amdefine:11}],6:[function(h,u,p){if("function"!==typeof f)var f=
h("amdefine")(u,h);f(function(f,k,e){function a(c,e,d,g,b){var v=Math.floor((e-c)/2)+c,s=b(d,g[v]);return 0===s?g[v]:0<s?1<e-v?a(v,e,d,g,b):g[v]:1<v-c?a(c,v,d,g,b):0>c?null:g[c]}k.search=function(c,e,d){return 0<e.length?a(-1,e.length,c,e,d):null}})},{amdefine:11}],7:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(b){var a=b;"string"===typeof b&&(a=JSON.parse(b.replace(/^\)\]\}'/,"")));b=c.getArg(a,"version");var g=c.getArg(a,"sources"),e=c.getArg(a,
"names"),m=c.getArg(a,"sourceRoot",null),f=c.getArg(a,"sourcesContent",null),q=c.getArg(a,"mappings"),a=c.getArg(a,"file");if(b!==this._version)throw Error("Unsupported version: "+b);this._names=d.fromArray(e);this._sources=d.fromArray(g);this.sourceRoot=m;this.sourcesContent=f;this.file=a;this._generatedMappings=[];this._originalMappings=[];this._parseMappings(q,m)}var c=f("./util"),m=f("./binary-search"),d=f("./array-set").ArraySet,g=f("./base64-vlq");a.prototype._version=3;Object.defineProperty(a.prototype,
"sources",{get:function(){return this._sources.toArray().map(function(b){return this.sourceRoot?c.join(this.sourceRoot,b):b},this)}});a.prototype._parseMappings=function(b,a){for(var d=1,c=0,e=0,m=0,q=0,r=0,t=/^[,;]/,n=b,f;0<n.length;)if(";"===n.charAt(0))d++,n=n.slice(1),c=0;else if(","===n.charAt(0))n=n.slice(1);else{f={};f.generatedLine=d;n=g.decode(n);f.generatedColumn=c+n.value;c=f.generatedColumn;n=n.rest;if(0<n.length&&!t.test(n.charAt(0))){n=g.decode(n);f.source=this._sources.at(q+n.value);
q+=n.value;n=n.rest;if(0===n.length||t.test(n.charAt(0)))throw Error("Found a source, but no line and column");n=g.decode(n);f.originalLine=e+n.value;e=f.originalLine;f.originalLine+=1;n=n.rest;if(0===n.length||t.test(n.charAt(0)))throw Error("Found a source and line, but no column");n=g.decode(n);f.originalColumn=m+n.value;m=f.originalColumn;n=n.rest;0<n.length&&!t.test(n.charAt(0))&&(n=g.decode(n),f.name=this._names.at(r+n.value),r+=n.value,n=n.rest)}this._generatedMappings.push(f);"number"===typeof f.originalLine&&
h("amdefine")(u,h);f(function(f,k,e){function a(c,e,d,g,b){var w=Math.floor((e-c)/2)+c,t=b(d,g[w]);return 0===t?g[w]:0<t?1<e-w?a(w,e,d,g,b):g[w]:1<w-c?a(c,w,d,g,b):0>c?null:g[c]}k.search=function(c,e,d){return 0<e.length?a(-1,e.length,c,e,d):null}})},{amdefine:11}],7:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(b){var a=b;"string"===typeof b&&(a=JSON.parse(b.replace(/^\)\]\}'/,"")));b=c.getArg(a,"version");var g=c.getArg(a,"sources"),e=c.getArg(a,
"names"),n=c.getArg(a,"sourceRoot",null),f=c.getArg(a,"sourcesContent",null),r=c.getArg(a,"mappings"),a=c.getArg(a,"file");if(b!==this._version)throw Error("Unsupported version: "+b);this._names=d.fromArray(e);this._sources=d.fromArray(g);this.sourceRoot=n;this.sourcesContent=f;this.file=a;this._generatedMappings=[];this._originalMappings=[];this._parseMappings(r,n)}var c=f("./util"),n=f("./binary-search"),d=f("./array-set").ArraySet,g=f("./base64-vlq");a.prototype._version=3;Object.defineProperty(a.prototype,
"sources",{get:function(){return this._sources.toArray().map(function(b){return this.sourceRoot?c.join(this.sourceRoot,b):b},this)}});a.prototype._parseMappings=function(b,a){for(var d=1,c=0,e=0,n=0,r=0,s=0,v=/^[,;]/,m=b,f;0<m.length;)if(";"===m.charAt(0))d++,m=m.slice(1),c=0;else if(","===m.charAt(0))m=m.slice(1);else{f={};f.generatedLine=d;m=g.decode(m);f.generatedColumn=c+m.value;c=f.generatedColumn;m=m.rest;if(0<m.length&&!v.test(m.charAt(0))){m=g.decode(m);f.source=this._sources.at(r+m.value);
r+=m.value;m=m.rest;if(0===m.length||v.test(m.charAt(0)))throw Error("Found a source, but no line and column");m=g.decode(m);f.originalLine=e+m.value;e=f.originalLine;f.originalLine+=1;m=m.rest;if(0===m.length||v.test(m.charAt(0)))throw Error("Found a source and line, but no column");m=g.decode(m);f.originalColumn=n+m.value;n=f.originalColumn;m=m.rest;0<m.length&&!v.test(m.charAt(0))&&(m=g.decode(m),f.name=this._names.at(s+m.value),s+=m.value,m=m.rest)}this._generatedMappings.push(f);"number"===typeof f.originalLine&&
this._originalMappings.push(f)}this._originalMappings.sort(this._compareOriginalPositions)};a.prototype._compareOriginalPositions=function(b,a){if(b.source>a.source)return 1;if(b.source<a.source)return-1;var d=b.originalLine-a.originalLine;return 0===d?b.originalColumn-a.originalColumn:d};a.prototype._compareGeneratedPositions=function(b,a){var d=b.generatedLine-a.generatedLine;return 0===d?b.generatedColumn-a.generatedColumn:d};a.prototype._findMapping=function(b,a,d,c,g){if(0>=b[d])throw new TypeError("Line must be greater than or equal to 1, got "+
b[d]);if(0>b[c])throw new TypeError("Column must be greater than or equal to 0, got "+b[c]);return m.search(b,a,g)};a.prototype.originalPositionFor=function(b){b={generatedLine:c.getArg(b,"line"),generatedColumn:c.getArg(b,"column")};if(b=this._findMapping(b,this._generatedMappings,"generatedLine","generatedColumn",this._compareGeneratedPositions)){var a=c.getArg(b,"source",null);a&&this.sourceRoot&&(a=c.join(this.sourceRoot,a));return{source:a,line:c.getArg(b,"originalLine",null),column:c.getArg(b,
b[d]);if(0>b[c])throw new TypeError("Column must be greater than or equal to 0, got "+b[c]);return n.search(b,a,g)};a.prototype.originalPositionFor=function(b){b={generatedLine:c.getArg(b,"line"),generatedColumn:c.getArg(b,"column")};if(b=this._findMapping(b,this._generatedMappings,"generatedLine","generatedColumn",this._compareGeneratedPositions)){var a=c.getArg(b,"source",null);a&&this.sourceRoot&&(a=c.join(this.sourceRoot,a));return{source:a,line:c.getArg(b,"originalLine",null),column:c.getArg(b,
"originalColumn",null),name:c.getArg(b,"name",null)}}return{source:null,line:null,column:null,name:null}};a.prototype.sourceContentFor=function(b){if(!this.sourcesContent)return null;this.sourceRoot&&(b=c.relative(this.sourceRoot,b));if(this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];var a;if(this.sourceRoot&&(a=c.urlParse(this.sourceRoot))){var d=b.replace(/^file:\/\//,"");if("file"==a.scheme&&this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];if((!a.path||
"/"==a.path)&&this._sources.has("/"+b))return this.sourcesContent[this._sources.indexOf("/"+b)]}throw Error('"'+b+'" is not in the SourceMap.');};a.prototype.generatedPositionFor=function(b){b={source:c.getArg(b,"source"),originalLine:c.getArg(b,"line"),originalColumn:c.getArg(b,"column")};this.sourceRoot&&(b.source=c.relative(this.sourceRoot,b.source));return(b=this._findMapping(b,this._originalMappings,"originalLine","originalColumn",this._compareOriginalPositions))?{line:c.getArg(b,"generatedLine",
null),column:c.getArg(b,"generatedColumn",null)}:{line:null,column:null}};a.GENERATED_ORDER=1;a.ORIGINAL_ORDER=2;a.prototype.eachMapping=function(b,d,g){d=d||null;switch(g||a.GENERATED_ORDER){case a.GENERATED_ORDER:g=this._generatedMappings;break;case a.ORIGINAL_ORDER:g=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var e=this.sourceRoot;g.map(function(b){var a=b.source;a&&e&&(a=c.join(e,a));return{source:a,generatedLine:b.generatedLine,generatedColumn:b.generatedColumn,
originalLine:b.originalLine,originalColumn:b.originalColumn,name:b.name}}).forEach(b,d)};k.SourceMapConsumer=a})},{"./array-set":3,"./base64-vlq":4,"./binary-search":6,"./util":10,amdefine:11}],8:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(a){this._file=b.getArg(a,"file");this._sourceRoot=b.getArg(a,"sourceRoot",null);this._sources=new v;this._names=new v;this._mappings=[];this._sourcesContents=null}function c(b,a){var d=(b&&b.line)-(a&&a.line);
return d?d:(b&&b.column)-(a&&a.column)}function m(b,a){b=b||"";a=a||"";return(b>a)-(b<a)}function d(b,a){return c(b.generated,a.generated)||c(b.original,a.original)||m(b.source,a.source)||m(b.name,a.name)}var g=f("./base64-vlq"),b=f("./util"),v=f("./array-set").ArraySet;a.prototype._version=3;a.fromSourceMap=function(d){var c=d.sourceRoot,g=new a({file:d.file,sourceRoot:c});d.eachMapping(function(a){var d={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source&&(d.source=a.source,c&&
originalLine:b.originalLine,originalColumn:b.originalColumn,name:b.name}}).forEach(b,d)};k.SourceMapConsumer=a})},{"./array-set":3,"./base64-vlq":4,"./binary-search":6,"./util":10,amdefine:11}],8:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(a){this._file=b.getArg(a,"file");this._sourceRoot=b.getArg(a,"sourceRoot",null);this._sources=new w;this._names=new w;this._mappings=[];this._sourcesContents=null}function c(b,a){var d=(b&&b.line)-(a&&a.line);
return d?d:(b&&b.column)-(a&&a.column)}function n(b,a){b=b||"";a=a||"";return(b>a)-(b<a)}function d(b,a){return c(b.generated,a.generated)||c(b.original,a.original)||n(b.source,a.source)||n(b.name,a.name)}var g=f("./base64-vlq"),b=f("./util"),w=f("./array-set").ArraySet;a.prototype._version=3;a.fromSourceMap=function(d){var c=d.sourceRoot,g=new a({file:d.file,sourceRoot:c});d.eachMapping(function(a){var d={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source&&(d.source=a.source,c&&
(d.source=b.relative(c,d.source)),d.original={line:a.originalLine,column:a.originalColumn},a.name&&(d.name=a.name));g.addMapping(d)});d.sources.forEach(function(b){var a=d.sourceContentFor(b);a&&g.setSourceContent(b,a)});return g};a.prototype.addMapping=function(a){var d=b.getArg(a,"generated"),c=b.getArg(a,"original",null),g=b.getArg(a,"source",null);a=b.getArg(a,"name",null);this._validateMapping(d,c,g,a);g&&!this._sources.has(g)&&this._sources.add(g);a&&!this._names.has(a)&&this._names.add(a);
this._mappings.push({generated:d,original:c,source:g,name:a})};a.prototype.setSourceContent=function(a,d){var c=a;this._sourceRoot&&(c=b.relative(this._sourceRoot,c));null!==d?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[b.toSetString(c)]=d):(delete this._sourcesContents[b.toSetString(c)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};a.prototype.applySourceMap=function(a,d){d||(d=a.file);var c=this._sourceRoot;c&&(d=b.relative(c,d));var g=
new v,e=new v;this._mappings.forEach(function(r){if(r.source===d&&r.original){var t=a.originalPositionFor({line:r.original.line,column:r.original.column});null!==t.source&&(r.source=c?b.relative(c,t.source):t.source,r.original.line=t.line,r.original.column=t.column,null!==t.name&&null!==r.name&&(r.name=t.name))}(t=r.source)&&!g.has(t)&&g.add(t);(r=r.name)&&!e.has(r)&&e.add(r)},this);this._sources=g;this._names=e;a.sources.forEach(function(d){var t=a.sourceContentFor(d);t&&(c&&(d=b.relative(c,d)),
this.setSourceContent(d,t))},this)};a.prototype._validateMapping=function(b,a,d,c){if(!(b&&"line"in b&&"column"in b&&0<b.line&&0<=b.column&&!a&&!d&&!c||b&&"line"in b&&"column"in b&&a&&"line"in a&&"column"in a&&0<b.line&&0<=b.column&&0<a.line&&0<=a.column&&d))throw Error("Invalid mapping.");};a.prototype._serializeMappings=function(){var b=0,a=1,c=0,e=0,m=0,r=0,t="",n;this._mappings.sort(d);for(var v=0,f=this._mappings.length;v<f;v++){n=this._mappings[v];if(n.generated.line!==a)for(b=0;n.generated.line!==
a;)t+=";",a++;else if(0<v){if(!d(n,this._mappings[v-1]))continue;t+=","}t+=g.encode(n.generated.column-b);b=n.generated.column;n.source&&n.original&&(t+=g.encode(this._sources.indexOf(n.source)-r),r=this._sources.indexOf(n.source),t+=g.encode(n.original.line-1-e),e=n.original.line-1,t+=g.encode(n.original.column-c),c=n.original.column,n.name&&(t+=g.encode(this._names.indexOf(n.name)-m),m=this._names.indexOf(n.name)))}return t};a.prototype.toJSON=function(){var a={version:this._version,file:this._file,
new w,e=new w;this._mappings.forEach(function(s){if(s.source===d&&s.original){var v=a.originalPositionFor({line:s.original.line,column:s.original.column});null!==v.source&&(s.source=c?b.relative(c,v.source):v.source,s.original.line=v.line,s.original.column=v.column,null!==v.name&&null!==s.name&&(s.name=v.name))}(v=s.source)&&!g.has(v)&&g.add(v);(s=s.name)&&!e.has(s)&&e.add(s)},this);this._sources=g;this._names=e;a.sources.forEach(function(d){var g=a.sourceContentFor(d);g&&(c&&(d=b.relative(c,d)),
this.setSourceContent(d,g))},this)};a.prototype._validateMapping=function(b,a,d,c){if(!(b&&"line"in b&&"column"in b&&0<b.line&&0<=b.column&&!a&&!d&&!c||b&&"line"in b&&"column"in b&&a&&"line"in a&&"column"in a&&0<b.line&&0<=b.column&&0<a.line&&0<=a.column&&d))throw Error("Invalid mapping.");};a.prototype._serializeMappings=function(){var b=0,a=1,c=0,e=0,n=0,s=0,v="",m;this._mappings.sort(d);for(var w=0,f=this._mappings.length;w<f;w++){m=this._mappings[w];if(m.generated.line!==a)for(b=0;m.generated.line!==
a;)v+=";",a++;else if(0<w){if(!d(m,this._mappings[w-1]))continue;v+=","}v+=g.encode(m.generated.column-b);b=m.generated.column;m.source&&m.original&&(v+=g.encode(this._sources.indexOf(m.source)-s),s=this._sources.indexOf(m.source),v+=g.encode(m.original.line-1-e),e=m.original.line-1,v+=g.encode(m.original.column-c),c=m.original.column,m.name&&(v+=g.encode(this._names.indexOf(m.name)-n),n=this._names.indexOf(m.name)))}return v};a.prototype.toJSON=function(){var a={version:this._version,file:this._file,
sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};this._sourceRoot&&(a.sourceRoot=this._sourceRoot);this._sourcesContents&&(a.sourcesContent=a.sources.map(function(d){a.sourceRoot&&(d=b.relative(a.sourceRoot,d));return Object.prototype.hasOwnProperty.call(this._sourcesContents,b.toSetString(d))?this._sourcesContents[b.toSetString(d)]:null},this));return a};a.prototype.toString=function(){return JSON.stringify(this)};k.SourceMapGenerator=a})},{"./array-set":3,
"./base64-vlq":4,"./util":10,amdefine:11}],9:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(a,c,b,e,m){this.children=[];this.sourceContents={};this.line=void 0===a?null:a;this.column=void 0===c?null:c;this.source=void 0===b?null:b;this.name=void 0===m?null:m;null!=e&&this.add(e)}var c=f("./source-map-generator").SourceMapGenerator,m=f("./util");a.fromStringWithSourceMap=function(d,c){function b(b,d){null===b||void 0===b.source?e.add(d):e.add(new a(b.originalLine,
b.originalColumn,b.source,d,b.name))}var e=new a,m=d.split("\n"),f=1,k=0,h=null;c.eachMapping(function(a){if(null===h){for(;f<a.generatedLine;)e.add(m.shift()+"\n"),f++;if(k<a.generatedColumn){var d=m[0];e.add(d.substr(0,a.generatedColumn));m[0]=d.substr(a.generatedColumn);k=a.generatedColumn}}else{if(f<a.generatedLine){var c="";do c+=m.shift()+"\n",f++,k=0;while(f<a.generatedLine);k<a.generatedColumn&&(d=m[0],c+=d.substr(0,a.generatedColumn),m[0]=d.substr(a.generatedColumn),k=a.generatedColumn)}else d=
m[0],c=d.substr(0,a.generatedColumn-k),m[0]=d.substr(a.generatedColumn-k),k=a.generatedColumn;b(h,c)}h=a},this);b(h,m.join("\n"));c.sources.forEach(function(a){var b=c.sourceContentFor(a);b&&e.setSourceContent(a,b)});return e};a.prototype.add=function(d){if(Array.isArray(d))d.forEach(function(a){this.add(a)},this);else if(d instanceof a||"string"===typeof d)d&&this.children.push(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};
"./base64-vlq":4,"./util":10,amdefine:11}],9:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(a,c,b,e,n){this.children=[];this.sourceContents={};this.line=void 0===a?null:a;this.column=void 0===c?null:c;this.source=void 0===b?null:b;this.name=void 0===n?null:n;null!=e&&this.add(e)}var c=f("./source-map-generator").SourceMapGenerator,n=f("./util");a.fromStringWithSourceMap=function(d,c){function b(b,d){null===b||void 0===b.source?e.add(d):e.add(new a(b.originalLine,
b.originalColumn,b.source,d,b.name))}var e=new a,n=d.split("\n"),f=1,k=0,h=null;c.eachMapping(function(a){if(null===h){for(;f<a.generatedLine;)e.add(n.shift()+"\n"),f++;if(k<a.generatedColumn){var d=n[0];e.add(d.substr(0,a.generatedColumn));n[0]=d.substr(a.generatedColumn);k=a.generatedColumn}}else{if(f<a.generatedLine){var c="";do c+=n.shift()+"\n",f++,k=0;while(f<a.generatedLine);k<a.generatedColumn&&(d=n[0],c+=d.substr(0,a.generatedColumn),n[0]=d.substr(a.generatedColumn),k=a.generatedColumn)}else d=
n[0],c=d.substr(0,a.generatedColumn-k),n[0]=d.substr(a.generatedColumn-k),k=a.generatedColumn;b(h,c)}h=a},this);b(h,n.join("\n"));c.sources.forEach(function(a){var b=c.sourceContentFor(a);b&&e.setSourceContent(a,b)});return e};a.prototype.add=function(d){if(Array.isArray(d))d.forEach(function(a){this.add(a)},this);else if(d instanceof a||"string"===typeof d)d&&this.children.push(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};
a.prototype.prepend=function(d){if(Array.isArray(d))for(var c=d.length-1;0<=c;c--)this.prepend(d[c]);else if(d instanceof a||"string"===typeof d)this.children.unshift(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};a.prototype.walk=function(d){this.children.forEach(function(c){c instanceof a?c.walk(d):""!==c&&d(c,{source:this.source,line:this.line,column:this.column,name:this.name})},this)};a.prototype.join=function(a){var c,
b,e=this.children.length;if(0<e){c=[];for(b=0;b<e-1;b++)c.push(this.children[b]),c.push(a);c.push(this.children[b]);this.children=c}return this};a.prototype.replaceRight=function(d,c){var b=this.children[this.children.length-1];b instanceof a?b.replaceRight(d,c):"string"===typeof b?this.children[this.children.length-1]=b.replace(d,c):this.children.push("".replace(d,c));return this};a.prototype.setSourceContent=function(a,c){this.sourceContents[m.toSetString(a)]=c};a.prototype.walkSourceContents=function(d){this.children.forEach(function(c){c instanceof
a&&c.walkSourceContents(d)},this);Object.keys(this.sourceContents).forEach(function(a){d(m.fromSetString(a),this.sourceContents[a])},this)};a.prototype.toString=function(){var a="";this.walk(function(c){a+=c});return a};a.prototype.toStringWithSourceMap=function(a){var e="",b=1,m=0,f=new c(a),k=!1;this.walk(function(a,d){e+=a;null!==d.source&&null!==d.line&&null!==d.column?(f.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:b,column:m},name:d.name}),k=!0):k&&(f.addMapping({generated:{line:b,
column:m}}),k=!1);a.split("").forEach(function(a){"\n"===a?(b++,m=0):m++})});this.walkSourceContents(function(a,b){f.setSourceContent(a,b)});return{code:e,map:f}};k.SourceNode=a})},{"./source-map-generator":8,"./util":10,amdefine:11}],10:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(a){return(a=a.match(m))?{scheme:a[1],auth:a[3],host:a[4],port:a[6],path:a[7]}:null}function c(a){var c=a.scheme+"://";a.auth&&(c+=a.auth+"@");a.host&&(c+=a.host);a.port&&
(c+=":"+a.port);a.path&&(c+=a.path);return c}k.getArg=function(a,c,b){if(c in a)return a[c];if(3===arguments.length)return b;throw Error('"'+c+'" is a required argument.');};var m=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/;k.urlParse=a;k.urlGenerate=c;k.join=function(d,e){var b;return e.match(m)?e:"/"===e.charAt(0)&&(b=a(d))?(b.path=e,c(b)):d.replace(/\/$/,"")+"/"+e};k.toSetString=function(a){return"$"+a};k.fromSetString=function(a){return a.substr(1)};k.relative=function(c,e){c=c.replace(/\/$/,
"");var b=a(c);return"/"==e.charAt(0)&&b&&"/"==b.path?e.slice(1):0===e.indexOf(c+"/")?e.substr(c.length+1):e}})},{amdefine:11}],11:[function(h,u,p){(function(f,D){var k=h("path");u.exports=function(e,a){function c(a,b){var c;if(a&&"."===a.charAt(0)&&b){c=b.split("/");c=c.slice(0,c.length-1);var d=c=c.concat(a.split("/")),e,m;for(e=0;d[e];e+=1)if(m=d[e],"."===m)d.splice(e,1),e-=1;else if(".."===m)if(1!==e||".."!==d[2]&&".."!==d[0])0<e&&(d.splice(e-1,2),e-=2);else break;a=c.join("/")}return a}function m(a){return function(b){return c(b,
a)}}function d(a){function b(c){s[a]=c}b.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");};return b}function g(b,c,d){var m,g,f;if(b)g=s[b]={},f={id:b,uri:D,exports:g},m=h(a,g,f,b);else{if(y)throw Error("amdefine with no module ID cannot be called more than once per file.");y=!0;g=e.exports;f=e;m=h(a,g,f,e.id)}c&&(c=c.map(function(a){return m(a)}));c="function"===typeof d?d.apply(e.exports,c):d;void 0!==c&&(f.exports=c,b&&(s[b]=f.exports))}function b(a,b,c){Array.isArray(a)?
(c=b,b=a,a=void 0):"string"!==typeof a&&(c=a,a=b=void 0);b&&!Array.isArray(b)&&(c=b,b=void 0);b||(b=["require","exports","module"]);a?v[a]=[a,b,c]:g(a,b,c)}var v={},s={},y=!1,h,z;h=function(a,b,d,e){function m(c,g){if("string"===typeof c)return z(a,b,d,c,e);c=c.map(function(c){return z(a,b,d,c,e)});f.nextTick(function(){g.apply(null,c)})}m.toUrl=function(a){return 0===a.indexOf(".")?c(a,k.dirname(d.filename)):a};return m};a=a||function(){return e.require.apply(e,arguments)};z=function(a,b,e,n,f){var k=
n.indexOf("!"),y=n;if(-1===k){n=c(n,f);if("require"===n)return h(a,b,e,f);if("exports"===n)return b;if("module"===n)return e;if(s.hasOwnProperty(n))return s[n];if(v[n])return g.apply(null,v[n]),s[n];if(a)return a(y);throw Error("No module with ID: "+n);}y=n.substring(0,k);n=n.substring(k+1,n.length);k=z(a,b,e,y,f);n=k.normalize?k.normalize(n,m(f)):c(n,f);s[n]||k.load(n,h(a,b,e,f),d(n),{});return s[n]};b.require=function(a){if(s[a])return s[a];if(v[a])return g.apply(null,v[a]),s[a]};b.amd={};return b}})(h("__browserify_process"),
"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{__browserify_process:16,path:14}],12:[function(h,u,p){(function(f,D){function k(a){if(a in y)return y[a];if("undefined"!==typeof window){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);b=4===b.readyState?b.responseText:null}else try{b=v.readFileSync(a,"utf8")}catch(c){b=null}return y[a]=b}function e(a,c){var d=/^\w+:\/\/[^\/]*/.exec(a),d=d?d[0]:"";return d+b.resolve(a.slice(d.length),c)}function a(b){var c=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(b);
return c?(b=q({source:c[2],line:c[3],column:c[4]}),"eval at "+c[1]+" ("+b.source+":"+b.line+":"+b.column+")"):(c=/^eval at ([^(]+) \((.+)\)$/.exec(b))?"eval at "+c[1]+" ("+a(c[2])+")":b}function c(b){var c=b.getFileName()||b.getScriptNameOrSourceURL();if(c){var d=q({source:c,line:b.getLineNumber(),column:b.getColumnNumber()});return{__proto__:b,getFileName:function(){return d.source},getLineNumber:function(){return d.line},getColumnNumber:function(){return d.column},getScriptNameOrSourceURL:function(){return d.source}}}var e=
b.isEval()&&b.getEvalOrigin();return e?(e=a(e),{__proto__:b,getEvalOrigin:function(){return e}}):b}function m(a,b){s&&(y={},w={});return a+b.map(function(a){return"\n at "+c(a)}).join("")}function d(a){a&&a.stack||(console.log("Uncaught exception:",a),f.exit());var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);if(b&&(b=q({source:b[1],line:b[2],column:b[3]}),v.existsSync(b.source))){var c=v.readFileSync(b.source,"utf8").split(/(?:\r\n|\r|\n)/)[b.line-1];c&&(console.log("\n"+b.source+":"+
b.line),console.log(c),console.log(Array(+b.column).join(" ")+"^"))}console.log(a.stack);f.exit()}var g=h("source-map").SourceMapConsumer,b=h("path"),v=h("fs"),s=!1,y={},w={},z=function(a){var c=k(a),c=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(c);if(!c)return null;c=c[1];"data:application/json;base64,"==c.slice(0,29).toLowerCase()?a=(new D(c.slice(29),"base64")).toString():(a=b.dirname(a),c=e(a,c),a=k(c,"utf8"));return a?{url:c,map:a}:null},q=p.mapSourcePosition=function(a){var c=w[a.source];if(!c){var d=
z(a.source);d&&(c=w[a.source]={url:d.url,map:new g(d.map)})}return c&&(d=c.map.originalPositionFor(a),null!==d.source)?(c.url&&(d.source=e(b.dirname(c.url),d.source)),d):a};p.install=function(a){Error.prepareStackTrace=m;a=a||{};var b="handleUncaughtExceptions"in a?a.handleUncaughtExceptions:!0;s="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1;a.retrieveSourceMap&&(z=a.retrieveSourceMap);if(b&&"undefined"===typeof window)f.on("uncaughtException",d)}})(h("__browserify_process"),
b,e=this.children.length;if(0<e){c=[];for(b=0;b<e-1;b++)c.push(this.children[b]),c.push(a);c.push(this.children[b]);this.children=c}return this};a.prototype.replaceRight=function(d,c){var b=this.children[this.children.length-1];b instanceof a?b.replaceRight(d,c):"string"===typeof b?this.children[this.children.length-1]=b.replace(d,c):this.children.push("".replace(d,c));return this};a.prototype.setSourceContent=function(a,c){this.sourceContents[n.toSetString(a)]=c};a.prototype.walkSourceContents=function(d){this.children.forEach(function(c){c instanceof
a&&c.walkSourceContents(d)},this);Object.keys(this.sourceContents).forEach(function(a){d(n.fromSetString(a),this.sourceContents[a])},this)};a.prototype.toString=function(){var a="";this.walk(function(c){a+=c});return a};a.prototype.toStringWithSourceMap=function(a){var e="",b=1,n=0,f=new c(a),k=!1;this.walk(function(a,d){e+=a;null!==d.source&&null!==d.line&&null!==d.column?(f.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:b,column:n},name:d.name}),k=!0):k&&(f.addMapping({generated:{line:b,
column:n}}),k=!1);a.split("").forEach(function(a){"\n"===a?(b++,n=0):n++})});this.walkSourceContents(function(a,b){f.setSourceContent(a,b)});return{code:e,map:f}};k.SourceNode=a})},{"./source-map-generator":8,"./util":10,amdefine:11}],10:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(a){return(a=a.match(n))?{scheme:a[1],auth:a[3],host:a[4],port:a[6],path:a[7]}:null}function c(a){var c=a.scheme+"://";a.auth&&(c+=a.auth+"@");a.host&&(c+=a.host);a.port&&
(c+=":"+a.port);a.path&&(c+=a.path);return c}k.getArg=function(a,c,b){if(c in a)return a[c];if(3===arguments.length)return b;throw Error('"'+c+'" is a required argument.');};var n=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/;k.urlParse=a;k.urlGenerate=c;k.join=function(d,e){var b;return e.match(n)?e:"/"===e.charAt(0)&&(b=a(d))?(b.path=e,c(b)):d.replace(/\/$/,"")+"/"+e};k.toSetString=function(a){return"$"+a};k.fromSetString=function(a){return a.substr(1)};k.relative=function(c,e){c=c.replace(/\/$/,
"");var b=a(c);return"/"==e.charAt(0)&&b&&"/"==b.path?e.slice(1):0===e.indexOf(c+"/")?e.substr(c.length+1):e}})},{amdefine:11}],11:[function(h,u,p){(function(f,D){var k=h("path");u.exports=function(e,a){function c(a,b){var c;if(a&&"."===a.charAt(0)&&b){c=b.split("/");c=c.slice(0,c.length-1);var d=c=c.concat(a.split("/")),e,g;for(e=0;d[e];e+=1)if(g=d[e],"."===g)d.splice(e,1),e-=1;else if(".."===g)if(1!==e||".."!==d[2]&&".."!==d[0])0<e&&(d.splice(e-1,2),e-=2);else break;a=c.join("/")}return a}function n(a){return function(b){return c(b,
a)}}function d(a){function b(c){t[a]=c}b.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");};return b}function g(b,c,d){var g,n,f;if(b)n=t[b]={},f={id:b,uri:D,exports:n},g=h(a,n,f,b);else{if(q)throw Error("amdefine with no module ID cannot be called more than once per file.");q=!0;n=e.exports;f=e;g=h(a,n,f,e.id)}c&&(c=c.map(function(a){return g(a)}));c="function"===typeof d?d.apply(e.exports,c):d;void 0!==c&&(f.exports=c,b&&(t[b]=f.exports))}function b(a,b,c){Array.isArray(a)?
(c=b,b=a,a=void 0):"string"!==typeof a&&(c=a,a=b=void 0);b&&!Array.isArray(b)&&(c=b,b=void 0);b||(b=["require","exports","module"]);a?w[a]=[a,b,c]:g(a,b,c)}var w={},t={},q=!1,h,z;h=function(a,b,d,e){function g(c,n){if("string"===typeof c)return z(a,b,d,c,e);c=c.map(function(c){return z(a,b,d,c,e)});f.nextTick(function(){n.apply(null,c)})}g.toUrl=function(a){return 0===a.indexOf(".")?c(a,k.dirname(d.filename)):a};return g};a=a||function(){return e.require.apply(e,arguments)};z=function(a,b,e,m,f){var k=
m.indexOf("!"),q=m;if(-1===k){m=c(m,f);if("require"===m)return h(a,b,e,f);if("exports"===m)return b;if("module"===m)return e;if(t.hasOwnProperty(m))return t[m];if(w[m])return g.apply(null,w[m]),t[m];if(a)return a(q);throw Error("No module with ID: "+m);}q=m.substring(0,k);m=m.substring(k+1,m.length);k=z(a,b,e,q,f);m=k.normalize?k.normalize(m,n(f)):c(m,f);t[m]||k.load(m,h(a,b,e,f),d(m),{});return t[m]};b.require=function(a){if(t[a])return t[a];if(w[a])return g.apply(null,w[a]),t[a]};b.amd={};return b}})(h("__browserify_process"),
"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{__browserify_process:16,path:14}],12:[function(h,u,p){(function(f,D){function k(a){if(a in q)return q[a];try{if("undefined"!==typeof window){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);var c=4===b.readyState?b.responseText:null}else c=w.readFileSync(a,"utf8")}catch(d){c=null}return q[a]=c}function e(a,c){var d=/^\w+:\/\/[^\/]*/.exec(a),d=d?d[0]:"";return d+b.resolve(a.slice(d.length),c)}function a(b){var c=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(b);
return c?(b=r({source:c[2],line:c[3],column:c[4]}),"eval at "+c[1]+" ("+b.source+":"+b.line+":"+b.column+")"):(c=/^eval at ([^(]+) \((.+)\)$/.exec(b))?"eval at "+c[1]+" ("+a(c[2])+")":b}function c(b){var c=b.getFileName()||b.getScriptNameOrSourceURL();if(c){var d=r({source:c,line:b.getLineNumber(),column:b.getColumnNumber()});return{__proto__:b,getFileName:function(){return d.source},getLineNumber:function(){return d.line},getColumnNumber:function(){return d.column},getScriptNameOrSourceURL:function(){return d.source}}}var e=
b.isEval()&&b.getEvalOrigin();return e?(e=a(e),{__proto__:b,getEvalOrigin:function(){return e}}):b}function n(a,b){t&&(q={},x={});return a+b.map(function(a){return"\n at "+c(a)}).join("")}function d(a){a&&a.stack||(console.log("Uncaught exception:",a),f.exit());var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);if(b&&(b=r({source:b[1],line:b[2],column:b[3]}),w.existsSync(b.source))){var c=w.readFileSync(b.source,"utf8").split(/(?:\r\n|\r|\n)/)[b.line-1];c&&(console.log("\n"+b.source+":"+
b.line),console.log(c),console.log(Array(+b.column).join(" ")+"^"))}console.log(a.stack);f.exit()}var g=h("source-map").SourceMapConsumer,b=h("path"),w=h("fs"),t=!1,q={},x={},z=function(a){var c=k(a),c=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(c);if(!c)return null;c=c[1];"data:application/json;base64,"==c.slice(0,29).toLowerCase()?a=(new D(c.slice(29),"base64")).toString():(a=b.dirname(a),c=e(a,c),a=k(c,"utf8"));return a?{url:c,map:a}:null},r=p.mapSourcePosition=function(a){var c=x[a.source];if(!c){var d=
z(a.source);d&&(c=x[a.source]={url:d.url,map:new g(d.map)})}return c&&(d=c.map.originalPositionFor(a),null!==d.source)?(c.url&&(d.source=e(b.dirname(c.url),d.source)),d):a};p.install=function(a){Error.prepareStackTrace=n;a=a||{};var b="handleUncaughtExceptions"in a?a.handleUncaughtExceptions:!0;t="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1;a.retrieveSourceMap&&(z=a.retrieveSourceMap);if(b&&"undefined"===typeof window)f.on("uncaughtException",d)}})(h("__browserify_process"),
h("__browserify_Buffer").Buffer)},{__browserify_Buffer:15,__browserify_process:16,fs:13,path:14,"source-map":2}],13:[function(h,u,p){},{}],14:[function(h,u,p){(function(f){function h(a,c){for(var e=[],d=0;d<a.length;d++)c(a[d],d,a)&&e.push(a[d]);return e}function k(a,c){for(var e=0,d=a.length;0<=d;d--){var g=a[d];"."==g?a.splice(d,1):".."===g?(a.splice(d,1),e++):e&&(a.splice(d,1),e--)}if(c)for(;e--;e)a.unshift("..");return a}var e=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;p.resolve=function(){for(var a=
"",c=!1,e=arguments.length;-1<=e&&!c;e--){var d=0<=e?arguments[e]:f.cwd();"string"===typeof d&&d&&(a=d+"/"+a,c="/"===d.charAt(0))}a=k(h(a.split("/"),function(a){return!!a}),!c).join("/");return(c?"/":"")+a||"."};p.normalize=function(a){var c="/"===a.charAt(0),e="/"===a.slice(-1);(a=k(h(a.split("/"),function(a){return!!a}),!c).join("/"))||c||(a=".");a&&e&&(a+="/");return(c?"/":"")+a};p.join=function(){var a=Array.prototype.slice.call(arguments,0);return p.normalize(h(a,function(a,e){return a&&"string"===
typeof a}).join("/"))};p.dirname=function(a){return(a=e.exec(a)[1]||"")?1===a.length?a:a.substring(0,a.length-1):"."};p.basename=function(a,c){var m=e.exec(a)[2]||"";c&&m.substr(-1*c.length)===c&&(m=m.substr(0,m.length-c.length));return m};p.extname=function(a){return e.exec(a)[3]||""};p.relative=function(a,c){function e(a){for(var b=0;b<a.length&&""===a[b];b++);for(var c=a.length-1;0<=c&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=p.resolve(a).substr(1);c=p.resolve(c).substr(1);for(var d=e(a.split("/")),
g=e(c.split("/")),b=Math.min(d.length,g.length),f=b,s=0;s<b;s++)if(d[s]!==g[s]){f=s;break}b=[];for(s=f;s<d.length;s++)b.push("..");b=b.concat(g.slice(f));return b.join("/")}})(h("__browserify_process"))},{__browserify_process:16}],15:[function(h,u,p){h=function(f,h,k,e){function a(c){if(!k[c]){if(!h[c]){if(f)return f(c);throw Error("Cannot find module '"+c+"'");}var d=k[c]={exports:{}};h[c][0](function(d){var b=h[c][1][d];return a(b?b:d)},d,d.exports)}return k[c].exports}for(var c=0;c<e.length;c++)a(e[c]);
return a}("undefined"!==typeof h&&h,{1:[function(f,h,k){function e(a){if(Object.keys)return Object.keys(a);var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b}function a(a,b){return void 0===b?""+b:"number"===typeof b&&(isNaN(b)||!isFinite(b))||"function"===typeof b||b instanceof RegExp?b.toString():b}function c(a,b){return"string"==typeof a?a.length<b?a:a.slice(0,b):a}function m(a,b,c,d,e){throw new q.AssertionError({message:c,actual:a,expected:b,operator:d,stackStartFunction:e});
}function d(a,b){a||m(a,!0,b,"==",q.ok)}function g(a,b){if(a===b)return!0;if(w.isBuffer(a)&&w.isBuffer(b)){if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0}return a instanceof Date&&b instanceof Date?a.getTime()===b.getTime():"object"!=typeof a&&"object"!=typeof b?a==b:v(a,b)}function b(a){return"[object Arguments]"==Object.prototype.toString.call(a)}function v(a,c){if(null===a||void 0===a||(null===c||void 0===c)||a.prototype!==c.prototype)return!1;if(b(a)){if(!b(c))return!1;
a=z.call(a);c=z.call(c);return g(a,c)}try{var d=e(a),m=e(c),f}catch(s){return!1}if(d.length!=m.length)return!1;d.sort();m.sort();for(f=d.length-1;0<=f;f--)if(d[f]!=m[f])return!1;for(f=d.length-1;0<=f;f--)if(m=d[f],!g(a[m],c[m]))return!1;return!0}function s(a,b){return a&&b?b instanceof RegExp?b.test(a):a instanceof b||!0===b.call({},a)?!0:!1:!1}function y(a,b,c,d){var e;"string"===typeof c&&(d=c,c=null);try{b()}catch(g){e=g}d=(c&&c.name?" ("+c.name+").":".")+(d?" "+d:".");a&&!e&&m("Missing expected exception"+
d);!a&&s(e,c)&&m("Got unwanted exception"+d);if(a&&e&&c&&!s(e,c)||!a&&e)throw e;}k=f("util");var w=f("buffer").Buffer,z=Array.prototype.slice,q=h.exports=d;q.AssertionError=function(a){this.name="AssertionError";this.message=a.message;this.actual=a.actual;this.expected=a.expected;this.operator=a.operator;a=a.stackStartFunction||m;Error.captureStackTrace&&Error.captureStackTrace(this,a)};k.inherits(q.AssertionError,Error);q.AssertionError.prototype.toString=function(){return this.message?[this.name+
":",this.message].join(" "):[this.name+":",c(JSON.stringify(this.actual,a),128),this.operator,c(JSON.stringify(this.expected,a),128)].join(" ")};q.AssertionError.__proto__=Error.prototype;q.fail=m;q.ok=d;q.equal=function(a,b,c){a!=b&&m(a,b,c,"==",q.equal)};q.notEqual=function(a,b,c){a==b&&m(a,b,c,"!=",q.notEqual)};q.deepEqual=function(a,b,c){g(a,b)||m(a,b,c,"deepEqual",q.deepEqual)};q.notDeepEqual=function(a,b,c){g(a,b)&&m(a,b,c,"notDeepEqual",q.notDeepEqual)};q.strictEqual=function(a,b,c){a!==b&&
m(a,b,c,"===",q.strictEqual)};q.notStrictEqual=function(a,b,c){a===b&&m(a,b,c,"!==",q.notStrictEqual)};q["throws"]=function(a,b,c){y.apply(this,[!0].concat(z.call(arguments)))};q.doesNotThrow=function(a,b,c){y.apply(this,[!1].concat(z.call(arguments)))};q.ifError=function(a){if(a)throw a;}},{util:2,buffer:3}],2:[function(f,h,k){function e(a){return a instanceof Array||Array.isArray(a)||a&&a!==Object.prototype&&e(a.__proto__)}function a(a){return a instanceof RegExp||"object"===typeof a&&"[object RegExp]"===
typeof a}).join("/"))};p.dirname=function(a){return(a=e.exec(a)[1]||"")?1===a.length?a:a.substring(0,a.length-1):"."};p.basename=function(a,c){var n=e.exec(a)[2]||"";c&&n.substr(-1*c.length)===c&&(n=n.substr(0,n.length-c.length));return n};p.extname=function(a){return e.exec(a)[3]||""};p.relative=function(a,c){function e(a){for(var b=0;b<a.length&&""===a[b];b++);for(var c=a.length-1;0<=c&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=p.resolve(a).substr(1);c=p.resolve(c).substr(1);for(var d=e(a.split("/")),
g=e(c.split("/")),b=Math.min(d.length,g.length),f=b,t=0;t<b;t++)if(d[t]!==g[t]){f=t;break}b=[];for(t=f;t<d.length;t++)b.push("..");b=b.concat(g.slice(f));return b.join("/")}})(h("__browserify_process"))},{__browserify_process:16}],15:[function(h,u,p){h=function(f,h,k,e){function a(c){if(!k[c]){if(!h[c]){if(f)return f(c);throw Error("Cannot find module '"+c+"'");}var d=k[c]={exports:{}};h[c][0](function(d){var b=h[c][1][d];return a(b?b:d)},d,d.exports)}return k[c].exports}for(var c=0;c<e.length;c++)a(e[c]);
return a}("undefined"!==typeof h&&h,{1:[function(f,h,k){function e(a){if(Object.keys)return Object.keys(a);var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b}function a(a,b){return void 0===b?""+b:"number"===typeof b&&(isNaN(b)||!isFinite(b))||"function"===typeof b||b instanceof RegExp?b.toString():b}function c(a,b){return"string"==typeof a?a.length<b?a:a.slice(0,b):a}function n(a,b,c,d,e){throw new r.AssertionError({message:c,actual:a,expected:b,operator:d,stackStartFunction:e});
}function d(a,b){a||n(a,!0,b,"==",r.ok)}function g(a,b){if(a===b)return!0;if(x.isBuffer(a)&&x.isBuffer(b)){if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0}return a instanceof Date&&b instanceof Date?a.getTime()===b.getTime():"object"!=typeof a&&"object"!=typeof b?a==b:w(a,b)}function b(a){return"[object Arguments]"==Object.prototype.toString.call(a)}function w(a,c){if(null===a||void 0===a||(null===c||void 0===c)||a.prototype!==c.prototype)return!1;if(b(a)){if(!b(c))return!1;
a=z.call(a);c=z.call(c);return g(a,c)}try{var d=e(a),n=e(c),f}catch(t){return!1}if(d.length!=n.length)return!1;d.sort();n.sort();for(f=d.length-1;0<=f;f--)if(d[f]!=n[f])return!1;for(f=d.length-1;0<=f;f--)if(n=d[f],!g(a[n],c[n]))return!1;return!0}function t(a,b){return a&&b?b instanceof RegExp?b.test(a):a instanceof b||!0===b.call({},a)?!0:!1:!1}function q(a,b,c,d){var e;"string"===typeof c&&(d=c,c=null);try{b()}catch(g){e=g}d=(c&&c.name?" ("+c.name+").":".")+(d?" "+d:".");a&&!e&&n("Missing expected exception"+
d);!a&&t(e,c)&&n("Got unwanted exception"+d);if(a&&e&&c&&!t(e,c)||!a&&e)throw e;}k=f("util");var x=f("buffer").Buffer,z=Array.prototype.slice,r=h.exports=d;r.AssertionError=function(a){this.name="AssertionError";this.message=a.message;this.actual=a.actual;this.expected=a.expected;this.operator=a.operator;a=a.stackStartFunction||n;Error.captureStackTrace&&Error.captureStackTrace(this,a)};k.inherits(r.AssertionError,Error);r.AssertionError.prototype.toString=function(){return this.message?[this.name+
":",this.message].join(" "):[this.name+":",c(JSON.stringify(this.actual,a),128),this.operator,c(JSON.stringify(this.expected,a),128)].join(" ")};r.AssertionError.__proto__=Error.prototype;r.fail=n;r.ok=d;r.equal=function(a,b,c){a!=b&&n(a,b,c,"==",r.equal)};r.notEqual=function(a,b,c){a==b&&n(a,b,c,"!=",r.notEqual)};r.deepEqual=function(a,b,c){g(a,b)||n(a,b,c,"deepEqual",r.deepEqual)};r.notDeepEqual=function(a,b,c){g(a,b)&&n(a,b,c,"notDeepEqual",r.notDeepEqual)};r.strictEqual=function(a,b,c){a!==b&&
n(a,b,c,"===",r.strictEqual)};r.notStrictEqual=function(a,b,c){a===b&&n(a,b,c,"!==",r.notStrictEqual)};r["throws"]=function(a,b,c){q.apply(this,[!0].concat(z.call(arguments)))};r.doesNotThrow=function(a,b,c){q.apply(this,[!1].concat(z.call(arguments)))};r.ifError=function(a){if(a)throw a;}},{util:2,buffer:3}],2:[function(f,h,k){function e(a){return a instanceof Array||Array.isArray(a)||a&&a!==Object.prototype&&e(a.__proto__)}function a(a){return a instanceof RegExp||"object"===typeof a&&"[object RegExp]"===
Object.prototype.toString.call(a)}function c(a){if(a instanceof Date)return!0;if("object"!==typeof a)return!1;var b=Date.prototype&&d(Date.prototype);a=a.__proto__&&d(a.__proto__);return JSON.stringify(a)===JSON.stringify(b)}f("events");k.isArray=e;k.isDate=function(a){return"[object Date]"===Object.prototype.toString.call(a)};k.isRegExp=function(a){return"[object RegExp]"===Object.prototype.toString.call(a)};k.print=function(){};k.puts=function(){};k.debug=function(){};k.inspect=function(b,g,f,h){function z(b,
f){if(b&&"function"===typeof b.inspect&&b!==k&&(!b.constructor||b.constructor.prototype!==b))return b.inspect(f);switch(typeof b){case "undefined":return r("undefined","undefined");case "string":var h="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r(h,"string");case "number":return r(""+b,"number");case "boolean":return r(""+b,"boolean")}if(null===b)return r("null","null");var v=m(b),y=g?d(b):v;if("function"===typeof b&&0===y.length)return a(b)?r(""+
b,"regexp"):r("[Function"+(b.name?": "+b.name:"")+"]","special");if(c(b)&&0===y.length)return r(b.toUTCString(),"date");var w,p;e(b)?(p="Array",h=["[","]"]):(p="Object",h=["{","}"]);"function"===typeof b?(w=b.name?": "+b.name:"",w=a(b)?" "+b:" [Function"+w+"]"):w="";c(b)&&(w=" "+b.toUTCString());if(0===y.length)return h[0]+w+h[1];if(0>f)return a(b)?r(""+b,"regexp"):r("[Object]","special");q.push(b);y=y.map(function(a){var c,B;b.__lookupGetter__&&(b.__lookupGetter__(a)?B=b.__lookupSetter__(a)?r("[Getter/Setter]",
"special"):r("[Getter]","special"):b.__lookupSetter__(a)&&(B=r("[Setter]","special")));0>v.indexOf(a)&&(c="["+a+"]");B||(0>q.indexOf(b[a])?(B=null===f?z(b[a]):z(b[a],f-1),-1<B.indexOf("\n")&&(B=e(b)?B.split("\n").map(function(B){return" "+B}).join("\n").substr(2):"\n"+B.split("\n").map(function(B){return" "+B}).join("\n"))):B=r("[Circular]","special"));if("undefined"===typeof c){if("Array"===p&&a.match(/^\d+$/))return B;c=JSON.stringify(""+a);c.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.substr(1,
c.length-2),c=r(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=r(c,"string"))}return c+": "+B});q.pop();var D=0;return y=50<y.reduce(function(a,b){D++;0<=b.indexOf("\n")&&D++;return a+b.length+1},0)?h[0]+(""===w?"":w+"\n ")+" "+y.join(",\n ")+" "+h[1]:h[0]+w+" "+y.join(", ")+" "+h[1]}var q=[],r=function(a,b){var c={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,
39],red:[31,39],yellow:[33,39]},d={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[b];return d?"\u001b["+c[d][0]+"m"+a+"\u001b["+c[d][1]+"m":a};h||(r=function(a,b){return a});return z(b,"undefined"===typeof f?2:f)};k.log=function(a){};k.pump=null;var m=Object.keys||function(a){var b=[],c;for(c in a)b.push(c);return b},d=Object.getOwnPropertyNames||function(a){var b=[],c;for(c in a)Object.hasOwnProperty.call(a,c)&&b.push(c);
f){if(b&&"function"===typeof b.inspect&&b!==k&&(!b.constructor||b.constructor.prototype!==b))return b.inspect(f);switch(typeof b){case "undefined":return s("undefined","undefined");case "string":var h="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return s(h,"string");case "number":return s(""+b,"number");case "boolean":return s(""+b,"boolean")}if(null===b)return s("null","null");var w=n(b),q=g?d(b):w;if("function"===typeof b&&0===q.length)return a(b)?s(""+
b,"regexp"):s("[Function"+(b.name?": "+b.name:"")+"]","special");if(c(b)&&0===q.length)return s(b.toUTCString(),"date");var x,p;e(b)?(p="Array",h=["[","]"]):(p="Object",h=["{","}"]);"function"===typeof b?(x=b.name?": "+b.name:"",x=a(b)?" "+b:" [Function"+x+"]"):x="";c(b)&&(x=" "+b.toUTCString());if(0===q.length)return h[0]+x+h[1];if(0>f)return a(b)?s(""+b,"regexp"):s("[Object]","special");r.push(b);q=q.map(function(a){var c,B;b.__lookupGetter__&&(b.__lookupGetter__(a)?B=b.__lookupSetter__(a)?s("[Getter/Setter]",
"special"):s("[Getter]","special"):b.__lookupSetter__(a)&&(B=s("[Setter]","special")));0>w.indexOf(a)&&(c="["+a+"]");B||(0>r.indexOf(b[a])?(B=null===f?z(b[a]):z(b[a],f-1),-1<B.indexOf("\n")&&(B=e(b)?B.split("\n").map(function(B){return" "+B}).join("\n").substr(2):"\n"+B.split("\n").map(function(B){return" "+B}).join("\n"))):B=s("[Circular]","special"));if("undefined"===typeof c){if("Array"===p&&a.match(/^\d+$/))return B;c=JSON.stringify(""+a);c.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.substr(1,
c.length-2),c=s(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=s(c,"string"))}return c+": "+B});r.pop();var D=0;return q=50<q.reduce(function(a,b){D++;0<=b.indexOf("\n")&&D++;return a+b.length+1},0)?h[0]+(""===x?"":x+"\n ")+" "+q.join(",\n ")+" "+h[1]:h[0]+x+" "+q.join(", ")+" "+h[1]}var r=[],s=function(a,b){var c={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,
39],red:[31,39],yellow:[33,39]},d={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[b];return d?"\u001b["+c[d][0]+"m"+a+"\u001b["+c[d][1]+"m":a};h||(s=function(a,b){return a});return z(b,"undefined"===typeof f?2:f)};k.log=function(a){};k.pump=null;var n=Object.keys||function(a){var b=[],c;for(c in a)b.push(c);return b},d=Object.getOwnPropertyNames||function(a){var b=[],c;for(c in a)Object.hasOwnProperty.call(a,c)&&b.push(c);
return b},g=Object.create||function(a,b){var c;if(null===a)c={__proto__:null};else{if("object"!==typeof a)throw new TypeError("typeof prototype["+typeof a+"] != 'object'");c=function(){};c.prototype=a;c=new c;c.__proto__=a}"undefined"!==typeof b&&Object.defineProperties&&Object.defineProperties(c,b);return c};k.inherits=function(a,b){a.super_=b;a.prototype=g(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})};var b=/%[sdj%]/g;k.format=function(a){if("string"!==typeof a){for(var c=
[],d=0;d<arguments.length;d++)c.push(k.inspect(arguments[d]));return c.join(" ")}for(var d=1,e=arguments,g=e.length,c=String(a).replace(b,function(a){if("%%"===a)return"%";if(d>=g)return a;switch(a){case "%s":return String(e[d++]);case "%d":return Number(e[d++]);case "%j":return JSON.stringify(e[d++]);default:return a}}),m=e[d];d<g;m=e[++d])c=null===m||"object"!==typeof m?c+(" "+m):c+(" "+k.inspect(m));return c}},{events:4}],5:[function(f,h,k){k.readIEEE754=function(e,a,c,m,d){var g;g=8*d-m-1;var b=
(1<<g)-1,f=b>>1,k=-7;d=c?0:d-1;var h=c?1:-1,w=e[a+d];d+=h;c=w&(1<<-k)-1;w>>=-k;for(k+=g;0<k;c=256*c+e[a+d],d+=h,k-=8);g=c&(1<<-k)-1;c>>=-k;for(k+=m;0<k;g=256*g+e[a+d],d+=h,k-=8);if(0===c)c=1-f;else{if(c===b)return g?NaN:Infinity*(w?-1:1);g+=Math.pow(2,m);c-=f}return(w?-1:1)*g*Math.pow(2,c-m)};k.writeIEEE754=function(e,a,c,m,d,g){var b,f=8*g-d-1,k=(1<<f)-1,h=k>>1,w=23===d?Math.pow(2,-24)-Math.pow(2,-77):0;g=m?g-1:0;var p=m?-1:1,q=0>a||0===a&&0>1/a?1:0;a=Math.abs(a);isNaN(a)||Infinity===a?(a=isNaN(a)?
1:0,m=k):(m=Math.floor(Math.log(a)/Math.LN2),1>a*(b=Math.pow(2,-m))&&(m--,b*=2),a=1<=m+h?a+w/b:a+w*Math.pow(2,1-h),2<=a*b&&(m++,b/=2),m+h>=k?(a=0,m=k):1<=m+h?(a=(a*b-1)*Math.pow(2,d),m+=h):(a=a*Math.pow(2,h-1)*Math.pow(2,d),m=0));for(;8<=d;e[c+g]=a&255,g+=p,a/=256,d-=8);m=m<<d|a;for(f+=d;0<f;e[c+g]=m&255,g+=p,m/=256,f-=8);e[c+g-p]|=128*q}},{}],6:[function(f,h,k){f=h.exports={};f.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(a){return window.setImmediate(a)};
[],d=0;d<arguments.length;d++)c.push(k.inspect(arguments[d]));return c.join(" ")}for(var d=1,e=arguments,g=e.length,c=String(a).replace(b,function(a){if("%%"===a)return"%";if(d>=g)return a;switch(a){case "%s":return String(e[d++]);case "%d":return Number(e[d++]);case "%j":return JSON.stringify(e[d++]);default:return a}}),f=e[d];d<g;f=e[++d])c=null===f||"object"!==typeof f?c+(" "+f):c+(" "+k.inspect(f));return c}},{events:4}],5:[function(f,h,k){k.readIEEE754=function(e,a,c,f,d){var g;g=8*d-f-1;var b=
(1<<g)-1,k=b>>1,h=-7;d=c?0:d-1;var q=c?1:-1,x=e[a+d];d+=q;c=x&(1<<-h)-1;x>>=-h;for(h+=g;0<h;c=256*c+e[a+d],d+=q,h-=8);g=c&(1<<-h)-1;c>>=-h;for(h+=f;0<h;g=256*g+e[a+d],d+=q,h-=8);if(0===c)c=1-k;else{if(c===b)return g?NaN:Infinity*(x?-1:1);g+=Math.pow(2,f);c-=k}return(x?-1:1)*g*Math.pow(2,c-f)};k.writeIEEE754=function(e,a,c,f,d,g){var b,h=8*g-d-1,k=(1<<h)-1,q=k>>1,x=23===d?Math.pow(2,-24)-Math.pow(2,-77):0;g=f?g-1:0;var p=f?-1:1,r=0>a||0===a&&0>1/a?1:0;a=Math.abs(a);isNaN(a)||Infinity===a?(a=isNaN(a)?
1:0,f=k):(f=Math.floor(Math.log(a)/Math.LN2),1>a*(b=Math.pow(2,-f))&&(f--,b*=2),a=1<=f+q?a+x/b:a+x*Math.pow(2,1-q),2<=a*b&&(f++,b/=2),f+q>=k?(a=0,f=k):1<=f+q?(a=(a*b-1)*Math.pow(2,d),f+=q):(a=a*Math.pow(2,q-1)*Math.pow(2,d),f=0));for(;8<=d;e[c+g]=a&255,g+=p,a/=256,d-=8);f=f<<d|a;for(h+=d;0<h;e[c+g]=f&255,g+=p,f/=256,h-=8);e[c+g-p]|=128*r}},{}],6:[function(f,h,k){f=h.exports={};f.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(a){return window.setImmediate(a)};
if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var e=[];window.addEventListener("message",function(a){a.source===window&&"process-tick"===a.data&&(a.stopPropagation(),0<e.length&&e.shift()())},!0);return function(a){e.push(a);window.postMessage("process-tick","*")}}return function(a){setTimeout(a,0)}}();f.title="browser";f.browser=!0;f.env={};f.argv=[];f.binding=function(e){throw Error("process.binding is not supported");};f.cwd=function(){return"/"};f.chdir=function(e){throw Error("process.chdir is not supported");
}},{}],4:[function(f,h,k){(function(e){e.EventEmitter||(e.EventEmitter=function(){});e=k.EventEmitter=e.EventEmitter;var a="function"===typeof Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)};e.prototype.setMaxListeners=function(a){this._events||(this._events={});this._events.maxListeners=a};e.prototype.emit=function(c){if("error"===c&&(!this._events||!this._events.error||a(this._events.error)&&!this._events.error.length)){if(arguments[1]instanceof
Error)throw arguments[1];throw Error("Uncaught, unspecified 'error' event.");}if(!this._events)return!1;var e=this._events[c];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var d=Array.prototype.slice.call(arguments,1);e.apply(this,d)}return!0}if(a(e)){for(var d=Array.prototype.slice.call(arguments,1),e=e.slice(),g=0,b=e.length;g<b;g++)e[g].apply(this,d);return!0}return!1};
Error)throw arguments[1];throw Error("Uncaught, unspecified 'error' event.");}if(!this._events)return!1;var e=this._events[c];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var d=Array.prototype.slice.call(arguments,1);e.apply(this,d)}return!0}if(a(e)){for(var d=Array.prototype.slice.call(arguments,1),e=e.slice(),f=0,b=e.length;f<b;f++)e[f].apply(this,d);return!0}return!1};
e.prototype.addListener=function(c,e){if("function"!==typeof e)throw Error("addListener only takes instances of Function");this._events||(this._events={});this.emit("newListener",c,e);if(this._events[c])if(a(this._events[c])){if(!this._events[c].warned){var d;(d=void 0!==this._events.maxListeners?this._events.maxListeners:10)&&(0<d&&this._events[c].length>d)&&(this._events[c].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",
this._events[c].length),console.trace())}this._events[c].push(e)}else this._events[c]=[this._events[c],e];else this._events[c]=e;return this};e.prototype.on=e.prototype.addListener;e.prototype.once=function(a,e){var d=this;d.on(a,function b(){d.removeListener(a,b);e.apply(this,arguments)});return this};e.prototype.removeListener=function(c,e){if("function"!==typeof e)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[c])return this;var d=this._events[c];
if(a(d)){var g;a:if(d.indexOf)g=d.indexOf(e);else{for(g=0;g<d.length;g++)if(e===d[g])break a;g=-1}if(0>g)return this;d.splice(g,1);0==d.length&&delete this._events[c]}else this._events[c]===e&&delete this._events[c];return this};e.prototype.removeAllListeners=function(a){if(0===arguments.length)return this._events={},this;a&&(this._events&&this._events[a])&&(this._events[a]=null);return this};e.prototype.listeners=function(c){this._events||(this._events={});this._events[c]||(this._events[c]=[]);a(this._events[c])||
(this._events[c]=[this._events[c]]);return this._events[c]}})(f("__browserify_process"))},{__browserify_process:6}],"buffer-browserify":[function(f,h,k){h.exports=f("q9TxCC")},{}],q9TxCC:[function(f,h,k){function e(a){this.length=a}function a(a){return 16>a?"0"+a.toString(16):a.toString(16)}function c(a){for(var b=[],x=0;x<a.length;x++)if(127>=a.charCodeAt(x))b.push(a.charCodeAt(x));else for(var c=encodeURIComponent(a.charAt(x)).substr(1).split("%"),d=0;d<c.length;d++)b.push(parseInt(c[d],16));return b}
function m(a,b,x,c){for(var d=0;d<c&&!(d+x>=b.length||d>=a.length);)b[d+x]=a[d],d++;return d}function d(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}function g(a){a=~~Math.ceil(+a);return 0>a?0:a}function b(a,C,x){if(!(this instanceof b))return new b(a,C,x);if("number"===typeof x)this.length=g(C),this.parent=a,this.offset=x;else{switch(x=typeof a){case "number":this.length=g(a);break;case "string":this.length=b.byteLength(a,C);break;case "object":this.length=g(a.length);
break;default:throw Error("First argument needs to be a number, array or string.");}if(this.length>b.poolSize)this.parent=new e(this.length),this.offset=0;else{if(!A||A.length-A.used<this.length)A=new e(b.poolSize),A.used=0;this.parent=A;this.offset=A.used;A.used+=this.length}if(Array.isArray(a)||b.isBuffer(a)||a&&"object"===typeof a&&"number"===typeof a.length)for(C=0;C<this.length;C++)this.parent[C+this.offset]=a instanceof b?a.readUInt8(C):a[C];else"string"==x&&(this.length=this.write(a,0,C))}}
function v(a,b,x,c){var d=0;c||(l.ok("boolean"===typeof x,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+1<a.length,"Trying to read beyond buffer length"));if(b>=a.length)return 0;x?(d=a.parent[a.offset+b]<<8,b+1<a.length&&(d|=a.parent[a.offset+b+1])):(d=a.parent[a.offset+b],b+1<a.length&&(d|=a.parent[a.offset+b+1]<<8));return d}function s(a,b,x,c){var d=0;c||(l.ok("boolean"===typeof x,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+
3<a.length,"Trying to read beyond buffer length"));if(b>=a.length)return 0;x?(b+1<a.length&&(d=a.parent[a.offset+b+1]<<16),b+2<a.length&&(d|=a.parent[a.offset+b+2]<<8),b+3<a.length&&(d|=a.parent[a.offset+b+3]),d+=a.parent[a.offset+b]<<24>>>0):(b+2<a.length&&(d=a.parent[a.offset+b+2]<<16),b+1<a.length&&(d|=a.parent[a.offset+b+1]<<8),d|=a.parent[a.offset+b],b+3<a.length&&(d+=a.parent[a.offset+b+3]<<24>>>0));return d}function p(a,b,x,c){c||(l.ok("boolean"===typeof x,"missing or invalid endian"),l.ok(void 0!==
b&&null!==b,"missing offset"),l.ok(b+1<a.length,"Trying to read beyond buffer length"));a=v(a,b,x,c);return a&32768?-1*(65535-a+1):a}function w(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));a=s(a,b,c,d);return a&2147483648?-1*(4294967295-a+1):a}function u(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));
return f("./buffer_ieee754").readIEEE754(a,b,c,23,4)}function q(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(b+7<a.length,"Trying to read beyond buffer length"));return f("./buffer_ieee754").readIEEE754(a,b,c,52,8)}function r(a,b){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(0<=a,"specified a negative value for writing an unsigned value");l.ok(a<=b,"value is larger than maximum value for type");l.ok(Math.floor(a)===a,"value has a fractional component")}
function t(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+1<a.length,"trying to write beyond buffer length"),r(b,65535));for(e=0;e<Math.min(a.length-c,2);e++)a.parent[a.offset+c+e]=(b&255<<8*(d?1-e:e))>>>8*(d?1-e:e)}function n(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),
l.ok(c+3<a.length,"trying to write beyond buffer length"),r(b,4294967295));for(e=0;e<Math.min(a.length-c,4);e++)a.parent[a.offset+c+e]=b>>>8*(d?3-e:e)&255}function E(a,b,c){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(a<=b,"value larger than maximum allowed value");l.ok(a>=c,"value smaller than minimum allowed value");l.ok(Math.floor(a)===a,"value has a fractional component")}function F(a,b,c){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(a<=b,"value larger than maximum allowed value");
l.ok(a>=c,"value smaller than minimum allowed value")}function G(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+1<a.length,"Trying to write beyond buffer length"),E(b,32767,-32768));0<=b?t(a,b,c,d,e):t(a,65535+b+1,c,d,e)}function H(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),
l.ok(c+3<a.length,"Trying to write beyond buffer length"),E(b,2147483647,-2147483648));0<=b?n(a,b,c,d,e):n(a,4294967295+b+1,c,d,e)}function I(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+3<a.length,"Trying to write beyond buffer length"),F(b,3.4028234663852886E38,-3.4028234663852886E38));f("./buffer_ieee754").writeIEEE754(a,b,c,d,23,4)}function J(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==
if(a(d)){var f;a:if(d.indexOf)f=d.indexOf(e);else{for(f=0;f<d.length;f++)if(e===d[f])break a;f=-1}if(0>f)return this;d.splice(f,1);0==d.length&&delete this._events[c]}else this._events[c]===e&&delete this._events[c];return this};e.prototype.removeAllListeners=function(a){if(0===arguments.length)return this._events={},this;a&&(this._events&&this._events[a])&&(this._events[a]=null);return this};e.prototype.listeners=function(c){this._events||(this._events={});this._events[c]||(this._events[c]=[]);a(this._events[c])||
(this._events[c]=[this._events[c]]);return this._events[c]}})(f("__browserify_process"))},{__browserify_process:6}],"buffer-browserify":[function(f,h,k){h.exports=f("q9TxCC")},{}],q9TxCC:[function(f,h,k){function e(a){this.length=a}function a(a){return 16>a?"0"+a.toString(16):a.toString(16)}function c(a){for(var b=[],y=0;y<a.length;y++)if(127>=a.charCodeAt(y))b.push(a.charCodeAt(y));else for(var c=encodeURIComponent(a.charAt(y)).substr(1).split("%"),d=0;d<c.length;d++)b.push(parseInt(c[d],16));return b}
function n(a,b,y,c){for(var d=0;d<c&&!(d+y>=b.length||d>=a.length);)b[d+y]=a[d],d++;return d}function d(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}function g(a){a=~~Math.ceil(+a);return 0>a?0:a}function b(a,C,y){if(!(this instanceof b))return new b(a,C,y);if("number"===typeof y)this.length=g(C),this.parent=a,this.offset=y;else{switch(y=typeof a){case "number":this.length=g(a);break;case "string":this.length=b.byteLength(a,C);break;case "object":this.length=g(a.length);
break;default:throw Error("First argument needs to be a number, array or string.");}if(this.length>b.poolSize)this.parent=new e(this.length),this.offset=0;else{if(!A||A.length-A.used<this.length)A=new e(b.poolSize),A.used=0;this.parent=A;this.offset=A.used;A.used+=this.length}if(Array.isArray(a)||b.isBuffer(a)||a&&"object"===typeof a&&"number"===typeof a.length)for(C=0;C<this.length;C++)this.parent[C+this.offset]=a instanceof b?a.readUInt8(C):a[C];else"string"==y&&(this.length=this.write(a,0,C))}}
function w(a,b,y,c){var d=0;c||(l.ok("boolean"===typeof y,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+1<a.length,"Trying to read beyond buffer length"));if(b>=a.length)return 0;y?(d=a.parent[a.offset+b]<<8,b+1<a.length&&(d|=a.parent[a.offset+b+1])):(d=a.parent[a.offset+b],b+1<a.length&&(d|=a.parent[a.offset+b+1]<<8));return d}function t(a,b,y,c){var d=0;c||(l.ok("boolean"===typeof y,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+
3<a.length,"Trying to read beyond buffer length"));if(b>=a.length)return 0;y?(b+1<a.length&&(d=a.parent[a.offset+b+1]<<16),b+2<a.length&&(d|=a.parent[a.offset+b+2]<<8),b+3<a.length&&(d|=a.parent[a.offset+b+3]),d+=a.parent[a.offset+b]<<24>>>0):(b+2<a.length&&(d=a.parent[a.offset+b+2]<<16),b+1<a.length&&(d|=a.parent[a.offset+b+1]<<8),d|=a.parent[a.offset+b],b+3<a.length&&(d+=a.parent[a.offset+b+3]<<24>>>0));return d}function q(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==
b&&null!==b,"missing offset"),l.ok(b+1<a.length,"Trying to read beyond buffer length"));a=w(a,b,c,d);return a&32768?-1*(65535-a+1):a}function p(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));a=t(a,b,c,d);return a&2147483648?-1*(4294967295-a+1):a}function u(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));
return f("./buffer_ieee754").readIEEE754(a,b,c,23,4)}function r(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(b+7<a.length,"Trying to read beyond buffer length"));return f("./buffer_ieee754").readIEEE754(a,b,c,52,8)}function s(a,b){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(0<=a,"specified a negative value for writing an unsigned value");l.ok(a<=b,"value is larger than maximum value for type");l.ok(Math.floor(a)===a,"value has a fractional component")}
function v(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+1<a.length,"trying to write beyond buffer length"),s(b,65535));for(e=0;e<Math.min(a.length-c,2);e++)a.parent[a.offset+c+e]=(b&255<<8*(d?1-e:e))>>>8*(d?1-e:e)}function m(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),
l.ok(c+3<a.length,"trying to write beyond buffer length"),s(b,4294967295));for(e=0;e<Math.min(a.length-c,4);e++)a.parent[a.offset+c+e]=b>>>8*(d?3-e:e)&255}function E(a,b,c){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(a<=b,"value larger than maximum allowed value");l.ok(a>=c,"value smaller than minimum allowed value");l.ok(Math.floor(a)===a,"value has a fractional component")}function F(a,b,c){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(a<=b,"value larger than maximum allowed value");
l.ok(a>=c,"value smaller than minimum allowed value")}function G(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+1<a.length,"Trying to write beyond buffer length"),E(b,32767,-32768));0<=b?v(a,b,c,d,e):v(a,65535+b+1,c,d,e)}function H(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),
l.ok(c+3<a.length,"Trying to write beyond buffer length"),E(b,2147483647,-2147483648));0<=b?m(a,b,c,d,e):m(a,4294967295+b+1,c,d,e)}function I(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+3<a.length,"Trying to write beyond buffer length"),F(b,3.4028234663852886E38,-3.4028234663852886E38));f("./buffer_ieee754").writeIEEE754(a,b,c,d,23,4)}function J(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==
b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+7<a.length,"Trying to write beyond buffer length"),F(b,1.7976931348623157E308,-1.7976931348623157E308));f("./buffer_ieee754").writeIEEE754(a,b,c,d,52,8)}var l=f("assert");k.INSPECT_MAX_BYTES=50;e.byteLength=function(a,b){switch(b||"utf8"){case "hex":return a.length/2;case "utf8":case "utf-8":return c(a).length;case "ascii":case "binary":return a.length;case "base64":return f("base64-js").toByteArray(a).length;
default:throw Error("Unknown encoding");}};e.prototype.utf8Write=function(a,b,x){return e._charsWritten=m(c(a),this,b,x)};e.prototype.asciiWrite=function(a,b,c){for(var d=[],g=0;g<a.length;g++)d.push(a.charCodeAt(g)&255);return e._charsWritten=m(d,this,b,c)};e.prototype.binaryWrite=e.prototype.asciiWrite;e.prototype.base64Write=function(a,b,c){return e._charsWritten=m(f("base64-js").toByteArray(a),this,b,c)};e.prototype.base64Slice=function(a,b){var c=Array.prototype.slice.apply(this,arguments);return f("base64-js").fromByteArray(c)};
default:throw Error("Unknown encoding");}};e.prototype.utf8Write=function(a,b,y){return e._charsWritten=n(c(a),this,b,y)};e.prototype.asciiWrite=function(a,b,c){for(var d=[],f=0;f<a.length;f++)d.push(a.charCodeAt(f)&255);return e._charsWritten=n(d,this,b,c)};e.prototype.binaryWrite=e.prototype.asciiWrite;e.prototype.base64Write=function(a,b,c){return e._charsWritten=n(f("base64-js").toByteArray(a),this,b,c)};e.prototype.base64Slice=function(a,b){var c=Array.prototype.slice.apply(this,arguments);return f("base64-js").fromByteArray(c)};
e.prototype.utf8Slice=function(){for(var a=Array.prototype.slice.apply(this,arguments),b="",c="",e=0;e<a.length;)127>=a[e]?(b+=d(c)+String.fromCharCode(a[e]),c=""):c+="%"+a[e].toString(16),e++;return b+d(c)};e.prototype.asciiSlice=function(){for(var a=Array.prototype.slice.apply(this,arguments),b="",c=0;c<a.length;c++)b+=String.fromCharCode(a[c]);return b};e.prototype.binarySlice=e.prototype.asciiSlice;e.prototype.inspect=function(){for(var b=[],c=this.length,d=0;d<c;d++)if(b[d]=a(this[d]),d==k.INSPECT_MAX_BYTES){b[d+
1]="...";break}return"<SlowBuffer "+b.join(" ")+">"};e.prototype.hexSlice=function(b,c){var d=this.length;if(!b||0>b)b=0;if(!c||0>c||c>d)c=d;for(var d="",e=b;e<c;e++)d+=a(this[e]);return d};e.prototype.toString=function(a,b,c){a=String(a||"utf8").toLowerCase();b=+b||0;"undefined"==typeof c&&(c=this.length);if(+c==b)return"";switch(a){case "hex":return this.hexSlice(b,c);case "utf8":case "utf-8":return this.utf8Slice(b,c);case "ascii":return this.asciiSlice(b,c);case "binary":return this.binarySlice(b,
c);case "base64":return this.base64Slice(b,c);case "ucs2":case "ucs-2":return this.ucs2Slice(b,c);default:throw Error("Unknown encoding");}};e.prototype.hexWrite=function(a,b,c){b=+b||0;var d=this.length-b;c?(c=+c,c>d&&(c=d)):c=d;d=a.length;if(d%2)throw Error("Invalid hex string");c>d/2&&(c=d/2);for(d=0;d<c;d++){var g=parseInt(a.substr(2*d,2),16);if(isNaN(g))throw Error("Invalid hex string");this[b+d]=g}e._charsWritten=2*d;return d};e.prototype.write=function(a,b,c,d){if(isFinite(b))isFinite(c)||
c);case "base64":return this.base64Slice(b,c);case "ucs2":case "ucs-2":return this.ucs2Slice(b,c);default:throw Error("Unknown encoding");}};e.prototype.hexWrite=function(a,b,c){b=+b||0;var d=this.length-b;c?(c=+c,c>d&&(c=d)):c=d;d=a.length;if(d%2)throw Error("Invalid hex string");c>d/2&&(c=d/2);for(d=0;d<c;d++){var f=parseInt(a.substr(2*d,2),16);if(isNaN(f))throw Error("Invalid hex string");this[b+d]=f}e._charsWritten=2*d;return d};e.prototype.write=function(a,b,c,d){if(isFinite(b))isFinite(c)||
(d=c,c=void 0);else{var e=d;d=b;b=c;c=e}b=+b||0;e=this.length-b;c?(c=+c,c>e&&(c=e)):c=e;d=String(d||"utf8").toLowerCase();switch(d){case "hex":return this.hexWrite(a,b,c);case "utf8":case "utf-8":return this.utf8Write(a,b,c);case "ascii":return this.asciiWrite(a,b,c);case "binary":return this.binaryWrite(a,b,c);case "base64":return this.base64Write(a,b,c);case "ucs2":case "ucs-2":return this.ucs2Write(a,b,c);default:throw Error("Unknown encoding");}};e.prototype.slice=function(a,c){void 0===c&&(c=
this.length);if(c>this.length)throw Error("oob");if(a>c)throw Error("oob");return new b(this,c-a,+a)};e.prototype.copy=function(a,b,c,d){for(var e=[];c<d;c++)l.ok("undefined"!==typeof this[c],"copying undefined buffer bytes!"),e.push(this[c]);for(c=b;c<b+e.length;c++)a[c]=e[c-b]};e.prototype.fill=function(a,b,c){if(c>this.length)throw Error("oob");if(b>c)throw Error("oob");for(;b<c;b++)this[b]=a};k.SlowBuffer=e;k.Buffer=b;b.poolSize=8192;var A;b.isBuffer=function(a){return a instanceof b||a instanceof
e};b.concat=function(a,c){if(!Array.isArray(a))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===a.length)return new b(0);if(1===a.length)return a[0];if("number"!==typeof c)for(var d=c=0;d<a.length;d++){var e=a[d];c+=e.length}for(var g=new b(c),f=0,d=0;d<a.length;d++)e=a[d],e.copy(g,f),f+=e.length;return g};b.prototype.inspect=function(){for(var b=[],c=this.length,d=0;d<c;d++)if(b[d]=a(this.parent[d+this.offset]),d==k.INSPECT_MAX_BYTES){b[d+1]="...";
break}return"<Buffer "+b.join(" ")+">"};b.prototype.get=function(a){if(0>a||a>=this.length)throw Error("oob");return this.parent[this.offset+a]};b.prototype.set=function(a,b){if(0>a||a>=this.length)throw Error("oob");return this.parent[this.offset+a]=b};b.prototype.write=function(a,c,d,g){if(isFinite(c))isFinite(d)||(g=d,d=void 0);else{var f=g;g=c;c=d;d=f}c=+c||0;f=this.length-c;d?(d=+d,d>f&&(d=f)):d=f;g=String(g||"utf8").toLowerCase();switch(g){case "hex":a=this.parent.hexWrite(a,this.offset+c,d);
e};b.concat=function(a,c){if(!Array.isArray(a))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===a.length)return new b(0);if(1===a.length)return a[0];if("number"!==typeof c)for(var d=c=0;d<a.length;d++){var e=a[d];c+=e.length}for(var f=new b(c),g=0,d=0;d<a.length;d++)e=a[d],e.copy(f,g),g+=e.length;return f};b.prototype.inspect=function(){for(var b=[],c=this.length,d=0;d<c;d++)if(b[d]=a(this.parent[d+this.offset]),d==k.INSPECT_MAX_BYTES){b[d+1]="...";
break}return"<Buffer "+b.join(" ")+">"};b.prototype.get=function(a){if(0>a||a>=this.length)throw Error("oob");return this.parent[this.offset+a]};b.prototype.set=function(a,b){if(0>a||a>=this.length)throw Error("oob");return this.parent[this.offset+a]=b};b.prototype.write=function(a,c,d,f){if(isFinite(c))isFinite(d)||(f=d,d=void 0);else{var g=f;f=c;c=d;d=g}c=+c||0;g=this.length-c;d?(d=+d,d>g&&(d=g)):d=g;f=String(f||"utf8").toLowerCase();switch(f){case "hex":a=this.parent.hexWrite(a,this.offset+c,d);
break;case "utf8":case "utf-8":a=this.parent.utf8Write(a,this.offset+c,d);break;case "ascii":a=this.parent.asciiWrite(a,this.offset+c,d);break;case "binary":a=this.parent.binaryWrite(a,this.offset+c,d);break;case "base64":a=this.parent.base64Write(a,this.offset+c,d);break;case "ucs2":case "ucs-2":a=this.parent.ucs2Write(a,this.offset+c,d);break;default:throw Error("Unknown encoding");}b._charsWritten=e._charsWritten;return a};b.prototype.toString=function(a,b,c){a=String(a||"utf8").toLowerCase();
"undefined"==typeof b||0>b?b=0:b>this.length&&(b=this.length);"undefined"==typeof c||c>this.length?c=this.length:0>c&&(c=0);b+=this.offset;c+=this.offset;switch(a){case "hex":return this.parent.hexSlice(b,c);case "utf8":case "utf-8":return this.parent.utf8Slice(b,c);case "ascii":return this.parent.asciiSlice(b,c);case "binary":return this.parent.binarySlice(b,c);case "base64":return this.parent.base64Slice(b,c);case "ucs2":case "ucs-2":return this.parent.ucs2Slice(b,c);default:throw Error("Unknown encoding");
}};b.byteLength=e.byteLength;b.prototype.fill=function(a,b,c){a||(a=0);b||(b=0);c||(c=this.length);"string"===typeof a&&(a=a.charCodeAt(0));if("number"!==typeof a||isNaN(a))throw Error("value is not a number");if(c<b)throw Error("end < start");if(c===b||0==this.length)return 0;if(0>b||b>=this.length)throw Error("start out of bounds");if(0>c||c>this.length)throw Error("end out of bounds");return this.parent.fill(a,b+this.offset,c+this.offset)};b.prototype.copy=function(a,b,c,d){c||(c=0);d||(d=this.length);
b||(b=0);if(d<c)throw Error("sourceEnd < sourceStart");if(d===c||0==a.length||0==this.length)return 0;if(0>b||b>=a.length)throw Error("targetStart out of bounds");if(0>c||c>=this.length)throw Error("sourceStart out of bounds");if(0>d||d>this.length)throw Error("sourceEnd out of bounds");d>this.length&&(d=this.length);a.length-b<d-c&&(d=a.length-b+c);return this.parent.copy(a.parent,b+a.offset,c+this.offset,d+this.offset)};b.prototype.slice=function(a,c){void 0===c&&(c=this.length);if(c>this.length)throw Error("oob");
if(a>c)throw Error("oob");return new b(this.parent,c-a,+a+this.offset)};b.prototype.utf8Slice=function(a,b){return this.toString("utf8",a,b)};b.prototype.binarySlice=function(a,b){return this.toString("binary",a,b)};b.prototype.asciiSlice=function(a,b){return this.toString("ascii",a,b)};b.prototype.utf8Write=function(a,b){return this.write(a,b,"utf8")};b.prototype.binaryWrite=function(a,b){return this.write(a,b,"binary")};b.prototype.asciiWrite=function(a,b){return this.write(a,b,"ascii")};b.prototype.readUInt8=
function(a,b){b||(l.ok(void 0!==a&&null!==a,"missing offset"),l.ok(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this.parent[this.offset+a]};b.prototype.readUInt16LE=function(a,b){return v(this,a,!1,b)};b.prototype.readUInt16BE=function(a,b){return v(this,a,!0,b)};b.prototype.readUInt32LE=function(a,b){return s(this,a,!1,b)};b.prototype.readUInt32BE=function(a,b){return s(this,a,!0,b)};b.prototype.readInt8=function(a,b){var c;b||(l.ok(void 0!==a&&null!==a,"missing offset"),
l.ok(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return(c=this.parent[this.offset+a]&128)?-1*(255-this.parent[this.offset+a]+1):this.parent[this.offset+a]};b.prototype.readInt16LE=function(a,b){return p(this,a,!1,b)};b.prototype.readInt16BE=function(a,b){return p(this,a,!0,b)};b.prototype.readInt32LE=function(a,b){return w(this,a,!1,b)};b.prototype.readInt32BE=function(a,b){return w(this,a,!0,b)};b.prototype.readFloatLE=function(a,b){return u(this,a,!1,b)};b.prototype.readFloatBE=
function(a,b){return u(this,a,!0,b)};b.prototype.readDoubleLE=function(a,b){return q(this,a,!1,b)};b.prototype.readDoubleBE=function(a,b){return q(this,a,!0,b)};b.prototype.writeUInt8=function(a,b,c){c||(l.ok(void 0!==a&&null!==a,"missing value"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b<this.length,"trying to write beyond buffer length"),r(a,255));b<this.length&&(this.parent[this.offset+b]=a)};b.prototype.writeUInt16LE=function(a,b,c){t(this,a,b,!1,c)};b.prototype.writeUInt16BE=function(a,
b,c){t(this,a,b,!0,c)};b.prototype.writeUInt32LE=function(a,b,c){n(this,a,b,!1,c)};b.prototype.writeUInt32BE=function(a,b,c){n(this,a,b,!0,c)};b.prototype.writeInt8=function(a,b,c){c||(l.ok(void 0!==a&&null!==a,"missing value"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b<this.length,"Trying to write beyond buffer length"),E(a,127,-128));0<=a?this.writeUInt8(a,b,c):this.writeUInt8(255+a+1,b,c)};b.prototype.writeInt16LE=function(a,b,c){G(this,a,b,!1,c)};b.prototype.writeInt16BE=function(a,b,
function(a,b){b||(l.ok(void 0!==a&&null!==a,"missing offset"),l.ok(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this.parent[this.offset+a]};b.prototype.readUInt16LE=function(a,b){return w(this,a,!1,b)};b.prototype.readUInt16BE=function(a,b){return w(this,a,!0,b)};b.prototype.readUInt32LE=function(a,b){return t(this,a,!1,b)};b.prototype.readUInt32BE=function(a,b){return t(this,a,!0,b)};b.prototype.readInt8=function(a,b){var c;b||(l.ok(void 0!==a&&null!==a,"missing offset"),
l.ok(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return(c=this.parent[this.offset+a]&128)?-1*(255-this.parent[this.offset+a]+1):this.parent[this.offset+a]};b.prototype.readInt16LE=function(a,b){return q(this,a,!1,b)};b.prototype.readInt16BE=function(a,b){return q(this,a,!0,b)};b.prototype.readInt32LE=function(a,b){return p(this,a,!1,b)};b.prototype.readInt32BE=function(a,b){return p(this,a,!0,b)};b.prototype.readFloatLE=function(a,b){return u(this,a,!1,b)};b.prototype.readFloatBE=
function(a,b){return u(this,a,!0,b)};b.prototype.readDoubleLE=function(a,b){return r(this,a,!1,b)};b.prototype.readDoubleBE=function(a,b){return r(this,a,!0,b)};b.prototype.writeUInt8=function(a,b,c){c||(l.ok(void 0!==a&&null!==a,"missing value"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b<this.length,"trying to write beyond buffer length"),s(a,255));b<this.length&&(this.parent[this.offset+b]=a)};b.prototype.writeUInt16LE=function(a,b,c){v(this,a,b,!1,c)};b.prototype.writeUInt16BE=function(a,
b,c){v(this,a,b,!0,c)};b.prototype.writeUInt32LE=function(a,b,c){m(this,a,b,!1,c)};b.prototype.writeUInt32BE=function(a,b,c){m(this,a,b,!0,c)};b.prototype.writeInt8=function(a,b,c){c||(l.ok(void 0!==a&&null!==a,"missing value"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b<this.length,"Trying to write beyond buffer length"),E(a,127,-128));0<=a?this.writeUInt8(a,b,c):this.writeUInt8(255+a+1,b,c)};b.prototype.writeInt16LE=function(a,b,c){G(this,a,b,!1,c)};b.prototype.writeInt16BE=function(a,b,
c){G(this,a,b,!0,c)};b.prototype.writeInt32LE=function(a,b,c){H(this,a,b,!1,c)};b.prototype.writeInt32BE=function(a,b,c){H(this,a,b,!0,c)};b.prototype.writeFloatLE=function(a,b,c){I(this,a,b,!1,c)};b.prototype.writeFloatBE=function(a,b,c){I(this,a,b,!0,c)};b.prototype.writeDoubleLE=function(a,b,c){J(this,a,b,!1,c)};b.prototype.writeDoubleBE=function(a,b,c){J(this,a,b,!0,c)};e.prototype.readUInt8=b.prototype.readUInt8;e.prototype.readUInt16LE=b.prototype.readUInt16LE;e.prototype.readUInt16BE=b.prototype.readUInt16BE;
e.prototype.readUInt32LE=b.prototype.readUInt32LE;e.prototype.readUInt32BE=b.prototype.readUInt32BE;e.prototype.readInt8=b.prototype.readInt8;e.prototype.readInt16LE=b.prototype.readInt16LE;e.prototype.readInt16BE=b.prototype.readInt16BE;e.prototype.readInt32LE=b.prototype.readInt32LE;e.prototype.readInt32BE=b.prototype.readInt32BE;e.prototype.readFloatLE=b.prototype.readFloatLE;e.prototype.readFloatBE=b.prototype.readFloatBE;e.prototype.readDoubleLE=b.prototype.readDoubleLE;e.prototype.readDoubleBE=
b.prototype.readDoubleBE;e.prototype.writeUInt8=b.prototype.writeUInt8;e.prototype.writeUInt16LE=b.prototype.writeUInt16LE;e.prototype.writeUInt16BE=b.prototype.writeUInt16BE;e.prototype.writeUInt32LE=b.prototype.writeUInt32LE;e.prototype.writeUInt32BE=b.prototype.writeUInt32BE;e.prototype.writeInt8=b.prototype.writeInt8;e.prototype.writeInt16LE=b.prototype.writeInt16LE;e.prototype.writeInt16BE=b.prototype.writeInt16BE;e.prototype.writeInt32LE=b.prototype.writeInt32LE;e.prototype.writeInt32BE=b.prototype.writeInt32BE;
e.prototype.writeFloatLE=b.prototype.writeFloatLE;e.prototype.writeFloatBE=b.prototype.writeFloatBE;e.prototype.writeDoubleLE=b.prototype.writeDoubleLE;e.prototype.writeDoubleBE=b.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":5,"base64-js":7}],7:[function(f,h,k){(function(e){h.exports.toByteArray=function(a){var c,e,d,g,b;if(0<a.length%4)throw"Invalid string. Length must be a multiple of 4";g=a.indexOf("=");g=0<g?a.length-g:0;b=[];e=0<g?a.length-4:a.length;for(c=0;c<e;c+=4)d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c])<<
18|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+1])<<12|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+2])<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+3]),b.push((d&16711680)>>16),b.push((d&65280)>>8),b.push(d&255);2===g?(d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c])<<2|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+1])>>4,b.push(d&
255)):1===g&&(d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c])<<10|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+1])<<4|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+2])>>2,b.push(d>>8&255),b.push(d&255));return b};h.exports.fromByteArray=function(a){var c,e=a.length%3,d="",g,b;c=0;for(b=a.length-e;c<b;c+=3)g=(a[c]<<16)+(a[c+1]<<8)+a[c+2],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g>>
18&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g>>12&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g>>6&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g&63];switch(e){case 1:g=a[a.length-1];d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g>>2];d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g<<4&63];d+="==";break;case 2:g=(a[a.length-2]<<8)+a[a.length-1],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g>>
10],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g>>4&63],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[g<<2&63],d+="="}return d}})()},{}],8:[function(f,h,k){k.readIEEE754=function(e,a,c,f,d){var g;g=8*d-f-1;var b=(1<<g)-1,k=b>>1,h=-7;d=c?0:d-1;var p=c?1:-1,w=e[a+d];d+=p;c=w&(1<<-h)-1;w>>=-h;for(h+=g;0<h;c=256*c+e[a+d],d+=p,h-=8);g=c&(1<<-h)-1;c>>=-h;for(h+=f;0<h;g=256*g+e[a+d],d+=p,h-=8);if(0===c)c=1-k;else{if(c===b)return g?NaN:Infinity*(w?-1:1);
g+=Math.pow(2,f);c-=k}return(w?-1:1)*g*Math.pow(2,c-f)};k.writeIEEE754=function(e,a,c,f,d,g){var b,h=8*g-d-1,k=(1<<h)-1,p=k>>1,w=23===d?Math.pow(2,-24)-Math.pow(2,-77):0;g=f?g-1:0;var u=f?-1:1,q=0>a||0===a&&0>1/a?1:0;a=Math.abs(a);isNaN(a)||Infinity===a?(a=isNaN(a)?1:0,f=k):(f=Math.floor(Math.log(a)/Math.LN2),1>a*(b=Math.pow(2,-f))&&(f--,b*=2),a=1<=f+p?a+w/b:a+w*Math.pow(2,1-p),2<=a*b&&(f++,b/=2),f+p>=k?(a=0,f=k):1<=f+p?(a=(a*b-1)*Math.pow(2,d),f+=p):(a=a*Math.pow(2,p-1)*Math.pow(2,d),f=0));for(;8<=
d;e[c+g]=a&255,g+=u,a/=256,d-=8);f=f<<d|a;for(h+=d;0<h;e[c+g]=f&255,g+=u,f/=256,h-=8);e[c+g-u]|=128*q}},{}],3:[function(f,h,k){function e(a){this.length=a}function a(a){return 16>a?"0"+a.toString(16):a.toString(16)}function c(a){for(var b=[],c=0;c<a.length;c++)if(127>=a.charCodeAt(c))b.push(a.charCodeAt(c));else for(var d=encodeURIComponent(a.charAt(c)).substr(1).split("%"),e=0;e<d.length;e++)b.push(parseInt(d[e],16));return b}function m(a,b,c,d){for(var e=0;e<d&&!(e+c>=b.length||e>=a.length);)b[e+
e.prototype.writeFloatLE=b.prototype.writeFloatLE;e.prototype.writeFloatBE=b.prototype.writeFloatBE;e.prototype.writeDoubleLE=b.prototype.writeDoubleLE;e.prototype.writeDoubleBE=b.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":5,"base64-js":7}],7:[function(f,h,k){(function(e){h.exports.toByteArray=function(a){var c,e,d,f,b;if(0<a.length%4)throw"Invalid string. Length must be a multiple of 4";f=a.indexOf("=");f=0<f?a.length-f:0;b=[];e=0<f?a.length-4:a.length;for(c=0;c<e;c+=4)d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c])<<
18|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+1])<<12|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+2])<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+3]),b.push((d&16711680)>>16),b.push((d&65280)>>8),b.push(d&255);2===f?(d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c])<<2|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+1])>>4,b.push(d&
255)):1===f&&(d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c])<<10|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+1])<<4|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+2])>>2,b.push(d>>8&255),b.push(d&255));return b};h.exports.fromByteArray=function(a){var c,e=a.length%3,d="",f,b;c=0;for(b=a.length-e;c<b;c+=3)f=(a[c]<<16)+(a[c+1]<<8)+a[c+2],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>
18&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>12&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>6&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f&63];switch(e){case 1:f=a[a.length-1];d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>2];d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f<<4&63];d+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>
10],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>4&63],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f<<2&63],d+="="}return d}})()},{}],8:[function(f,h,k){k.readIEEE754=function(e,a,c,f,d){var g;g=8*d-f-1;var b=(1<<g)-1,h=b>>1,k=-7;d=c?0:d-1;var q=c?1:-1,p=e[a+d];d+=q;c=p&(1<<-k)-1;p>>=-k;for(k+=g;0<k;c=256*c+e[a+d],d+=q,k-=8);g=c&(1<<-k)-1;c>>=-k;for(k+=f;0<k;g=256*g+e[a+d],d+=q,k-=8);if(0===c)c=1-h;else{if(c===b)return g?NaN:Infinity*(p?-1:1);
g+=Math.pow(2,f);c-=h}return(p?-1:1)*g*Math.pow(2,c-f)};k.writeIEEE754=function(e,a,c,f,d,g){var b,h=8*g-d-1,k=(1<<h)-1,q=k>>1,p=23===d?Math.pow(2,-24)-Math.pow(2,-77):0;g=f?g-1:0;var u=f?-1:1,r=0>a||0===a&&0>1/a?1:0;a=Math.abs(a);isNaN(a)||Infinity===a?(a=isNaN(a)?1:0,f=k):(f=Math.floor(Math.log(a)/Math.LN2),1>a*(b=Math.pow(2,-f))&&(f--,b*=2),a=1<=f+q?a+p/b:a+p*Math.pow(2,1-q),2<=a*b&&(f++,b/=2),f+q>=k?(a=0,f=k):1<=f+q?(a=(a*b-1)*Math.pow(2,d),f+=q):(a=a*Math.pow(2,q-1)*Math.pow(2,d),f=0));for(;8<=
d;e[c+g]=a&255,g+=u,a/=256,d-=8);f=f<<d|a;for(h+=d;0<h;e[c+g]=f&255,g+=u,f/=256,h-=8);e[c+g-u]|=128*r}},{}],3:[function(f,h,k){function e(a){this.length=a}function a(a){return 16>a?"0"+a.toString(16):a.toString(16)}function c(a){for(var b=[],c=0;c<a.length;c++)if(127>=a.charCodeAt(c))b.push(a.charCodeAt(c));else for(var d=encodeURIComponent(a.charAt(c)).substr(1).split("%"),e=0;e<d.length;e++)b.push(parseInt(d[e],16));return b}function n(a,b,c,d){for(var e=0;e<d&&!(e+c>=b.length||e>=a.length);)b[e+
c]=a[e],e++;return e}function d(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}function g(a){a=~~Math.ceil(+a);return 0>a?0:a}function b(a,c,d){if(!(this instanceof b))return new b(a,c,d);if("number"===typeof d)this.length=g(c),this.parent=a,this.offset=d;else{switch(d=typeof a){case "number":this.length=g(a);break;case "string":this.length=b.byteLength(a,c);break;case "object":this.length=g(a.length);break;default:throw Error("First argument needs to be a number, array or string.");
}if(this.length>b.poolSize)this.parent=new e(this.length),this.offset=0;else{if(!A||A.length-A.used<this.length)A=new e(b.poolSize),A.used=0;this.parent=A;this.offset=A.used;A.used+=this.length}if(Array.isArray(a)||b.isBuffer(a)||a&&"object"===typeof a&&"number"===typeof a.length)for(c=0;c<this.length;c++)this.parent[c+this.offset]=a[c];else"string"==d&&(this.length=this.write(a,0,c))}}function p(a,b,c,d){var e=0;d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,
"missing offset"),l.ok(b+1<a.length,"Trying to read beyond buffer length"));c?(e=a.parent[a.offset+b]<<8,e|=a.parent[a.offset+b+1]):(e=a.parent[a.offset+b],e|=a.parent[a.offset+b+1]<<8);return e}function s(a,b,c,d){var e=0;d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));c?(e=a.parent[a.offset+b+1]<<16,e|=a.parent[a.offset+b+2]<<8,e|=a.parent[a.offset+b+3],e+=a.parent[a.offset+b]<<24>>>
0):(e=a.parent[a.offset+b+2]<<16,e|=a.parent[a.offset+b+1]<<8,e|=a.parent[a.offset+b],e+=a.parent[a.offset+b+3]<<24>>>0);return e}function u(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+1<a.length,"Trying to read beyond buffer length"));a=p(a,b,c,d);return a&32768?-1*(65535-a+1):a}function w(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));
a=s(a,b,c,d);return a&2147483648?-1*(4294967295-a+1):a}function z(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));return f("./buffer_ieee754").readIEEE754(a,b,c,23,4)}function q(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(b+7<a.length,"Trying to read beyond buffer length"));return f("./buffer_ieee754").readIEEE754(a,b,c,52,8)}function r(a,b){l.ok("number"==typeof a,"cannot write a non-number as a number");
l.ok(0<=a,"specified a negative value for writing an unsigned value");l.ok(a<=b,"value is larger than maximum value for type");l.ok(Math.floor(a)===a,"value has a fractional component")}function t(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+1<a.length,"trying to write beyond buffer length"),r(b,65535));d?(a.parent[a.offset+c]=(b&65280)>>>8,a.parent[a.offset+c+1]=b&255):(a.parent[a.offset+
c+1]=(b&65280)>>>8,a.parent[a.offset+c]=b&255)}function n(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+3<a.length,"trying to write beyond buffer length"),r(b,4294967295));d?(a.parent[a.offset+c]=b>>>24&255,a.parent[a.offset+c+1]=b>>>16&255,a.parent[a.offset+c+2]=b>>>8&255,a.parent[a.offset+c+3]=b&255):(a.parent[a.offset+c+3]=b>>>24&255,a.parent[a.offset+c+2]=b>>>16&255,a.parent[a.offset+
"missing offset"),l.ok(b+1<a.length,"Trying to read beyond buffer length"));c?(e=a.parent[a.offset+b]<<8,e|=a.parent[a.offset+b+1]):(e=a.parent[a.offset+b],e|=a.parent[a.offset+b+1]<<8);return e}function t(a,b,c,d){var e=0;d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));c?(e=a.parent[a.offset+b+1]<<16,e|=a.parent[a.offset+b+2]<<8,e|=a.parent[a.offset+b+3],e+=a.parent[a.offset+b]<<24>>>
0):(e=a.parent[a.offset+b+2]<<16,e|=a.parent[a.offset+b+1]<<8,e|=a.parent[a.offset+b],e+=a.parent[a.offset+b+3]<<24>>>0);return e}function q(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+1<a.length,"Trying to read beyond buffer length"));a=p(a,b,c,d);return a&32768?-1*(65535-a+1):a}function u(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));
a=t(a,b,c,d);return a&2147483648?-1*(4294967295-a+1):a}function z(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));return f("./buffer_ieee754").readIEEE754(a,b,c,23,4)}function r(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(b+7<a.length,"Trying to read beyond buffer length"));return f("./buffer_ieee754").readIEEE754(a,b,c,52,8)}function s(a,b){l.ok("number"==typeof a,"cannot write a non-number as a number");
l.ok(0<=a,"specified a negative value for writing an unsigned value");l.ok(a<=b,"value is larger than maximum value for type");l.ok(Math.floor(a)===a,"value has a fractional component")}function v(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+1<a.length,"trying to write beyond buffer length"),s(b,65535));d?(a.parent[a.offset+c]=(b&65280)>>>8,a.parent[a.offset+c+1]=b&255):(a.parent[a.offset+
c+1]=(b&65280)>>>8,a.parent[a.offset+c]=b&255)}function m(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+3<a.length,"trying to write beyond buffer length"),s(b,4294967295));d?(a.parent[a.offset+c]=b>>>24&255,a.parent[a.offset+c+1]=b>>>16&255,a.parent[a.offset+c+2]=b>>>8&255,a.parent[a.offset+c+3]=b&255):(a.parent[a.offset+c+3]=b>>>24&255,a.parent[a.offset+c+2]=b>>>16&255,a.parent[a.offset+
c+1]=b>>>8&255,a.parent[a.offset+c]=b&255)}function E(a,b,c){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(a<=b,"value larger than maximum allowed value");l.ok(a>=c,"value smaller than minimum allowed value");l.ok(Math.floor(a)===a,"value has a fractional component")}function F(a,b,c){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(a<=b,"value larger than maximum allowed value");l.ok(a>=c,"value smaller than minimum allowed value")}function G(a,b,c,d,
e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+1<a.length,"Trying to write beyond buffer length"),E(b,32767,-32768));0<=b?t(a,b,c,d,e):t(a,65535+b+1,c,d,e)}function H(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+3<a.length,"Trying to write beyond buffer length"),E(b,2147483647,
-2147483648));0<=b?n(a,b,c,d,e):n(a,4294967295+b+1,c,d,e)}function I(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+3<a.length,"Trying to write beyond buffer length"),F(b,3.4028234663852886E38,-3.4028234663852886E38));f("./buffer_ieee754").writeIEEE754(a,b,c,d,23,4)}function J(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),
e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+1<a.length,"Trying to write beyond buffer length"),E(b,32767,-32768));0<=b?v(a,b,c,d,e):v(a,65535+b+1,c,d,e)}function H(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+3<a.length,"Trying to write beyond buffer length"),E(b,2147483647,
-2147483648));0<=b?m(a,b,c,d,e):m(a,4294967295+b+1,c,d,e)}function I(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+3<a.length,"Trying to write beyond buffer length"),F(b,3.4028234663852886E38,-3.4028234663852886E38));f("./buffer_ieee754").writeIEEE754(a,b,c,d,23,4)}function J(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),
l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+7<a.length,"Trying to write beyond buffer length"),F(b,1.7976931348623157E308,-1.7976931348623157E308));f("./buffer_ieee754").writeIEEE754(a,b,c,d,52,8)}var l=f("assert");k.INSPECT_MAX_BYTES=50;e.byteLength=function(a,b){switch(b||"utf8"){case "hex":return a.length/2;case "utf8":case "utf-8":return c(a).length;case "ascii":return a.length;case "base64":return f("base64-js").toByteArray(a).length;default:throw Error("Unknown encoding");}};e.prototype.utf8Write=
function(a,b,d){return e._charsWritten=m(c(a),this,b,d)};e.prototype.asciiWrite=function(a,b,c){for(var d=[],f=0;f<a.length;f++)d.push(a.charCodeAt(f)&255);return e._charsWritten=m(d,this,b,c)};e.prototype.base64Write=function(a,b,c){return e._charsWritten=m(f("base64-js").toByteArray(a),this,b,c)};e.prototype.base64Slice=function(a,b){var c=Array.prototype.slice.apply(this,arguments);return f("base64-js").fromByteArray(c)};e.prototype.utf8Slice=function(){for(var a=Array.prototype.slice.apply(this,
function(a,b,d){return e._charsWritten=n(c(a),this,b,d)};e.prototype.asciiWrite=function(a,b,c){for(var d=[],f=0;f<a.length;f++)d.push(a.charCodeAt(f)&255);return e._charsWritten=n(d,this,b,c)};e.prototype.base64Write=function(a,b,c){return e._charsWritten=n(f("base64-js").toByteArray(a),this,b,c)};e.prototype.base64Slice=function(a,b){var c=Array.prototype.slice.apply(this,arguments);return f("base64-js").fromByteArray(c)};e.prototype.utf8Slice=function(){for(var a=Array.prototype.slice.apply(this,
arguments),b="",c="",e=0;e<a.length;)127>=a[e]?(b+=d(c)+String.fromCharCode(a[e]),c=""):c+="%"+a[e].toString(16),e++;return b+d(c)};e.prototype.asciiSlice=function(){for(var a=Array.prototype.slice.apply(this,arguments),b="",c=0;c<a.length;c++)b+=String.fromCharCode(a[c]);return b};e.prototype.inspect=function(){for(var b=[],c=this.length,d=0;d<c;d++)if(b[d]=a(this[d]),d==k.INSPECT_MAX_BYTES){b[d+1]="...";break}return"<SlowBuffer "+b.join(" ")+">"};e.prototype.hexSlice=function(b,c){var d=this.length;
if(!b||0>b)b=0;if(!c||0>c||c>d)c=d;for(var d="",e=b;e<c;e++)d+=a(this[e]);return d};e.prototype.toString=function(a,b,c){a=String(a||"utf8").toLowerCase();b=+b||0;"undefined"==typeof c&&(c=this.length);if(+c==b)return"";switch(a){case "hex":return this.hexSlice(b,c);case "utf8":case "utf-8":return this.utf8Slice(b,c);case "ascii":return this.asciiSlice(b,c);case "binary":return this.binarySlice(b,c);case "base64":return this.base64Slice(b,c);case "ucs2":case "ucs-2":return this.ucs2Slice(b,c);default:throw Error("Unknown encoding");
}};e.prototype.hexWrite=function(a,b,c){b=+b||0;var d=this.length-b;c?(c=+c,c>d&&(c=d)):c=d;d=a.length;if(d%2)throw Error("Invalid hex string");c>d/2&&(c=d/2);for(d=0;d<c;d++){var f=parseInt(a.substr(2*d,2),16);if(isNaN(f))throw Error("Invalid hex string");this[b+d]=f}e._charsWritten=2*d;return d};e.prototype.write=function(a,b,c,d){if(isFinite(b))isFinite(c)||(d=c,c=void 0);else{var e=d;d=b;b=c;c=e}b=+b||0;e=this.length-b;c?(c=+c,c>e&&(c=e)):c=e;d=String(d||"utf8").toLowerCase();switch(d){case "hex":return this.hexWrite(a,
@ -129,10 +129,10 @@ this.offset+c,d);break;default:throw Error("Unknown encoding");}b._charsWritten=
c);case "base64":return this.parent.base64Slice(b,c);case "ucs2":case "ucs-2":return this.parent.ucs2Slice(b,c);default:throw Error("Unknown encoding");}};b.byteLength=e.byteLength;b.prototype.fill=function(a,b,c){a||(a=0);b||(b=0);c||(c=this.length);"string"===typeof a&&(a=a.charCodeAt(0));if("number"!==typeof a||isNaN(a))throw Error("value is not a number");if(c<b)throw Error("end < start");if(c===b||0==this.length)return 0;if(0>b||b>=this.length)throw Error("start out of bounds");if(0>c||c>this.length)throw Error("end out of bounds");
return this.parent.fill(a,b+this.offset,c+this.offset)};b.prototype.copy=function(a,b,c,d){c||(c=0);d||(d=this.length);b||(b=0);if(d<c)throw Error("sourceEnd < sourceStart");if(d===c||0==a.length||0==this.length)return 0;if(0>b||b>=a.length)throw Error("targetStart out of bounds");if(0>c||c>=this.length)throw Error("sourceStart out of bounds");if(0>d||d>this.length)throw Error("sourceEnd out of bounds");d>this.length&&(d=this.length);a.length-b<d-c&&(d=a.length-b+c);return this.parent.copy(a.parent,
b+a.offset,c+this.offset,d+this.offset)};b.prototype.slice=function(a,c){void 0===c&&(c=this.length);if(c>this.length)throw Error("oob");if(a>c)throw Error("oob");return new b(this.parent,c-a,+a+this.offset)};b.prototype.utf8Slice=function(a,b){return this.toString("utf8",a,b)};b.prototype.binarySlice=function(a,b){return this.toString("binary",a,b)};b.prototype.asciiSlice=function(a,b){return this.toString("ascii",a,b)};b.prototype.utf8Write=function(a,b){return this.write(a,b,"utf8")};b.prototype.binaryWrite=
function(a,b){return this.write(a,b,"binary")};b.prototype.asciiWrite=function(a,b){return this.write(a,b,"ascii")};b.prototype.readUInt8=function(a,b){b||(l.ok(void 0!==a&&null!==a,"missing offset"),l.ok(a<this.length,"Trying to read beyond buffer length"));return this.parent[this.offset+a]};b.prototype.readUInt16LE=function(a,b){return p(this,a,!1,b)};b.prototype.readUInt16BE=function(a,b){return p(this,a,!0,b)};b.prototype.readUInt32LE=function(a,b){return s(this,a,!1,b)};b.prototype.readUInt32BE=
function(a,b){return s(this,a,!0,b)};b.prototype.readInt8=function(a,b){b||(l.ok(void 0!==a&&null!==a,"missing offset"),l.ok(a<this.length,"Trying to read beyond buffer length"));return this.parent[this.offset+a]&128?-1*(255-this.parent[this.offset+a]+1):this.parent[this.offset+a]};b.prototype.readInt16LE=function(a,b){return u(this,a,!1,b)};b.prototype.readInt16BE=function(a,b){return u(this,a,!0,b)};b.prototype.readInt32LE=function(a,b){return w(this,a,!1,b)};b.prototype.readInt32BE=function(a,
b){return w(this,a,!0,b)};b.prototype.readFloatLE=function(a,b){return z(this,a,!1,b)};b.prototype.readFloatBE=function(a,b){return z(this,a,!0,b)};b.prototype.readDoubleLE=function(a,b){return q(this,a,!1,b)};b.prototype.readDoubleBE=function(a,b){return q(this,a,!0,b)};b.prototype.writeUInt8=function(a,b,c){c||(l.ok(void 0!==a&&null!==a,"missing value"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b<this.length,"trying to write beyond buffer length"),r(a,255));this.parent[this.offset+b]=a};
b.prototype.writeUInt16LE=function(a,b,c){t(this,a,b,!1,c)};b.prototype.writeUInt16BE=function(a,b,c){t(this,a,b,!0,c)};b.prototype.writeUInt32LE=function(a,b,c){n(this,a,b,!1,c)};b.prototype.writeUInt32BE=function(a,b,c){n(this,a,b,!0,c)};b.prototype.writeInt8=function(a,b,c){c||(l.ok(void 0!==a&&null!==a,"missing value"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b<this.length,"Trying to write beyond buffer length"),E(a,127,-128));0<=a?this.writeUInt8(a,b,c):this.writeUInt8(255+a+1,b,c)};
function(a,b){return this.write(a,b,"binary")};b.prototype.asciiWrite=function(a,b){return this.write(a,b,"ascii")};b.prototype.readUInt8=function(a,b){b||(l.ok(void 0!==a&&null!==a,"missing offset"),l.ok(a<this.length,"Trying to read beyond buffer length"));return this.parent[this.offset+a]};b.prototype.readUInt16LE=function(a,b){return p(this,a,!1,b)};b.prototype.readUInt16BE=function(a,b){return p(this,a,!0,b)};b.prototype.readUInt32LE=function(a,b){return t(this,a,!1,b)};b.prototype.readUInt32BE=
function(a,b){return t(this,a,!0,b)};b.prototype.readInt8=function(a,b){b||(l.ok(void 0!==a&&null!==a,"missing offset"),l.ok(a<this.length,"Trying to read beyond buffer length"));return this.parent[this.offset+a]&128?-1*(255-this.parent[this.offset+a]+1):this.parent[this.offset+a]};b.prototype.readInt16LE=function(a,b){return q(this,a,!1,b)};b.prototype.readInt16BE=function(a,b){return q(this,a,!0,b)};b.prototype.readInt32LE=function(a,b){return u(this,a,!1,b)};b.prototype.readInt32BE=function(a,
b){return u(this,a,!0,b)};b.prototype.readFloatLE=function(a,b){return z(this,a,!1,b)};b.prototype.readFloatBE=function(a,b){return z(this,a,!0,b)};b.prototype.readDoubleLE=function(a,b){return r(this,a,!1,b)};b.prototype.readDoubleBE=function(a,b){return r(this,a,!0,b)};b.prototype.writeUInt8=function(a,b,c){c||(l.ok(void 0!==a&&null!==a,"missing value"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b<this.length,"trying to write beyond buffer length"),s(a,255));this.parent[this.offset+b]=a};
b.prototype.writeUInt16LE=function(a,b,c){v(this,a,b,!1,c)};b.prototype.writeUInt16BE=function(a,b,c){v(this,a,b,!0,c)};b.prototype.writeUInt32LE=function(a,b,c){m(this,a,b,!1,c)};b.prototype.writeUInt32BE=function(a,b,c){m(this,a,b,!0,c)};b.prototype.writeInt8=function(a,b,c){c||(l.ok(void 0!==a&&null!==a,"missing value"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b<this.length,"Trying to write beyond buffer length"),E(a,127,-128));0<=a?this.writeUInt8(a,b,c):this.writeUInt8(255+a+1,b,c)};
b.prototype.writeInt16LE=function(a,b,c){G(this,a,b,!1,c)};b.prototype.writeInt16BE=function(a,b,c){G(this,a,b,!0,c)};b.prototype.writeInt32LE=function(a,b,c){H(this,a,b,!1,c)};b.prototype.writeInt32BE=function(a,b,c){H(this,a,b,!0,c)};b.prototype.writeFloatLE=function(a,b,c){I(this,a,b,!1,c)};b.prototype.writeFloatBE=function(a,b,c){I(this,a,b,!0,c)};b.prototype.writeDoubleLE=function(a,b,c){J(this,a,b,!1,c)};b.prototype.writeDoubleBE=function(a,b,c){J(this,a,b,!0,c)};e.prototype.readUInt8=b.prototype.readUInt8;
e.prototype.readUInt16LE=b.prototype.readUInt16LE;e.prototype.readUInt16BE=b.prototype.readUInt16BE;e.prototype.readUInt32LE=b.prototype.readUInt32LE;e.prototype.readUInt32BE=b.prototype.readUInt32BE;e.prototype.readInt8=b.prototype.readInt8;e.prototype.readInt16LE=b.prototype.readInt16LE;e.prototype.readInt16BE=b.prototype.readInt16BE;e.prototype.readInt32LE=b.prototype.readInt32LE;e.prototype.readInt32BE=b.prototype.readInt32BE;e.prototype.readFloatLE=b.prototype.readFloatLE;e.prototype.readFloatBE=
b.prototype.readFloatBE;e.prototype.readDoubleLE=b.prototype.readDoubleLE;e.prototype.readDoubleBE=b.prototype.readDoubleBE;e.prototype.writeUInt8=b.prototype.writeUInt8;e.prototype.writeUInt16LE=b.prototype.writeUInt16LE;e.prototype.writeUInt16BE=b.prototype.writeUInt16BE;e.prototype.writeUInt32LE=b.prototype.writeUInt32LE;e.prototype.writeUInt32BE=b.prototype.writeUInt32BE;e.prototype.writeInt8=b.prototype.writeInt8;e.prototype.writeInt16LE=b.prototype.writeInt16LE;e.prototype.writeInt16BE=b.prototype.writeInt16BE;

View File

@ -20,21 +20,21 @@ function retrieveFile(path) {
return fileContentsCache[path];
}
// Use SJAX if we are in the browser
if (isInBrowser()) {
var xhr = new XMLHttpRequest();
xhr.open('GET', path, false);
xhr.send(null);
var contents = xhr.readyState === 4 ? xhr.responseText : null;
}
// Otherwise, use the filesystem
else {
try {
var contents = fs.readFileSync(path, 'utf8');
} catch (e) {
var contents = null;
try {
// Use SJAX if we are in the browser
if (isInBrowser()) {
var xhr = new XMLHttpRequest();
xhr.open('GET', path, false);
xhr.send(null);
var contents = xhr.readyState === 4 ? xhr.responseText : null;
}
// Otherwise, use the filesystem
else {
var contents = fs.readFileSync(path, 'utf8');
}
} catch (e) {
var contents = null;
}
return fileContentsCache[path] = contents;