/* * Support for source maps in V8 stack traces * https://github.com/evanw/node-source-map-support */ (this.define||function(K,O){this.sourceMapSupport=O()})("browser-source-map-support",function(K){(function g(r,m,e){function p(h,d){if(!m[h]){if(!r[h]){var l="function"==typeof require&&require;if(!d&&l)return l(h,!0);if(v)return v(h,!0);throw Error("Cannot find module '"+h+"'");}l=m[h]={exports:{}};r[h][0].call(l.exports,function(d){var c=r[h][1][d];return p(c?c:d)},l,l.exports,g,r,m,e)}return m[h].exports}for(var v="function"==typeof require&&require,A=0;A=a))return x?(x=f[n],n+1=c)){var b;a?(n+2>>0)): (n+1>>0);return b}}function h(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1=f.length))return f=v(f,n,a,!0),f&32768?-1*(65535-f+1):f}function d(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3= f.length))return f=A(f,n,a,!0),f&2147483648?-1*(4294967295-f+1):f}function l(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(n+3=d))for(c=0,d=Math.min(d-a,2);c>>8*(b?c:1-c)}function a(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3=d))for(c=0,d=Math.min(d-a,4);c>> 8*(b?c:3-c)&255}function b(f,n,a,b,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+1=f.length||(0<=n?c(f,n,a,b,d):c(f,65535+n+1,a,b,d))}function z(f,n,b,c,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+3=f.length||(0<=n?a(f,n,b,c,d):a(f,4294967295+n+1,b,c,d))}function D(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3=f.length||H.write(f,n,a,b,23,4)}function B(f,n,a,b,c){c||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof b,"missing or invalid endian"), q(void 0!==a&&null!==a,"missing offset"),q(a+7=f.length||H.write(f,n,a,b,52,8)}function E(f,a,b){if("number"!==typeof f)return b;f=~~f;if(f>=a)return a;if(0<=f)return f;f+=a;return 0<=f?f:0}function w(f){f=~~Math.ceil(+f);return 0>f?0:f}function y(f){return(Array.isArray||function(f){return"[object Array]"===Object.prototype.toString.call(f)})(f)}function G(f){return 16>f?"0"+f.toString(16):f.toString(16)} function t(f){for(var a=[],b=0;b=c)a.push(f.charCodeAt(b));else{var d=b;55296<=c&&57343>=c&&b++;c=encodeURIComponent(f.slice(d,b+1)).substr(1).split("%");for(d=0;d=a.length||d>=f.length);d++)a[d+b]=f[d];return d}function I(f){try{return decodeURIComponent(f)}catch(a){return String.fromCharCode(65533)}} function L(f,a){q("number"===typeof f,"cannot write a non-number as a number");q(0<=f,"specified a negative value for writing an unsigned value");q(f<=a,"value is larger than maximum value for type");q(Math.floor(f)===f,"value has a fractional component")}function M(f,a,b){q("number"===typeof f,"cannot write a non-number as a number");q(f<=a,"value larger than maximum allowed value");q(f>=b,"value smaller than minimum allowed value");q(Math.floor(f)===f,"value has a fractional component")}function N(f, a,b){q("number"===typeof f,"cannot write a non-number as a number");q(f<=a,"value larger than maximum allowed value");q(f>=b,"value smaller than minimum allowed value")}function q(f,a){if(!f)throw Error(a||"Failed assertion");}var J=g("base64-js"),H=g("ieee754");m.Buffer=e;m.SlowBuffer=e;m.INSPECT_MAX_BYTES=50;e.poolSize=8192;e._useTypedArrays=function(){try{var f=new ArrayBuffer(0),a=new Uint8Array(f);a.foo=function(){return 42};return 42===a.foo()&&"function"===typeof a.subarray}catch(b){return!1}}(); e.isEncoding=function(f){switch(String(f).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "raw":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}};e.isBuffer=function(f){return!(null===f||void 0===f||!f._isBuffer)};e.byteLength=function(f,a){var b;f+="";switch(a||"utf8"){case "hex":b=f.length/2;break;case "utf8":case "utf-8":b=t(f).length;break;case "ascii":case "binary":case "raw":b=f.length;break;case "base64":b=J.toByteArray(f).length; break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=2*f.length;break;default:throw Error("Unknown encoding");}return b};e.concat=function(f,a){q(y(f),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array.");if(0===f.length)return new e(0);if(1===f.length)return f[0];var b;if("number"!==typeof a)for(b=a=0;bd&&(b=d)):b=d;c=String(c||"utf8").toLowerCase();switch(c){case "hex":a=Number(a)||0;c=this.length-a;b?(b=Number(b),b>c&&(b=c)):b=c;c=f.length;q(0===c%2,"Invalid hex string");b>c/2&&(b=c/2);for(c=0;c>8,l%=256,d.push(l),d.push(c);f=e._charsWritten=C(d,this,a,b);break;default:throw Error("Unknown encoding");}return f};e.prototype.toString=function(f,a,b){f=String(f||"utf8").toLowerCase();a=Number(a)||0;b=void 0!==b?Number(b):b=this.length;if(b===a)return""; switch(f){case "hex":f=a;a=this.length;if(!f||0>f)f=0;if(!b||0>b||b>a)b=a;for(a="";f=this[c]?(f+=I(a)+String.fromCharCode(this[c]),a=""):a+="%"+this[c].toString(16);b=f+I(a);break;case "ascii":b=p(this,a,b);break;case "binary":b=p(this,a,b);break;case "base64":f=a;b=0===f&&b===this.length?J.fromByteArray(this):J.fromByteArray(this.slice(f,b));break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b= this.slice(a,b);f="";for(a=0;a=c,"sourceEnd < sourceStart"),q(0<=b&&bthis.length&&(d=this.length),a.length-bd||!e._useTypedArrays)for(var l=0;l=this.length))return this[a]};e.prototype.readUInt16LE=function(a,b){return v(this,a,!0,b)};e.prototype.readUInt16BE=function(a,b){return v(this,a,!1,b)};e.prototype.readUInt32LE=function(a,b){return A(this, a,!0,b)};e.prototype.readUInt32BE=function(a,b){return A(this,a,!1,b)};e.prototype.readInt8=function(a,b){b||(q(void 0!==a&&null!==a,"missing offset"),q(a=this.length))return this[a]&128?-1*(255-this[a]+1):this[a]};e.prototype.readInt16LE=function(a,b){return h(this,a,!0,b)};e.prototype.readInt16BE=function(a,b){return h(this,a,!1,b)};e.prototype.readInt32LE=function(a,b){return d(this,a,!0,b)};e.prototype.readInt32BE=function(a,b){return d(this, a,!1,b)};e.prototype.readFloatLE=function(a,b){return l(this,a,!0,b)};e.prototype.readFloatBE=function(a,b){return l(this,a,!1,b)};e.prototype.readDoubleLE=function(a,b){return k(this,a,!0,b)};e.prototype.readDoubleBE=function(a,b){return k(this,a,!1,b)};e.prototype.writeUInt8=function(a,b,c){c||(q(void 0!==a&&null!==a,"missing value"),q(void 0!==b&&null!==b,"missing offset"),q(b=this.length||(this[b]=a)};e.prototype.writeUInt16LE=function(a, b,d){c(this,a,b,!0,d)};e.prototype.writeUInt16BE=function(a,b,d){c(this,a,b,!1,d)};e.prototype.writeUInt32LE=function(b,c,d){a(this,b,c,!0,d)};e.prototype.writeUInt32BE=function(b,c,d){a(this,b,c,!1,d)};e.prototype.writeInt8=function(a,b,c){c||(q(void 0!==a&&null!==a,"missing value"),q(void 0!==b&&null!==b,"missing offset"),q(b=this.length||(0<=a?this.writeUInt8(a,b,c):this.writeUInt8(255+a+1,b,c))};e.prototype.writeInt16LE=function(a, c,d){b(this,a,c,!0,d)};e.prototype.writeInt16BE=function(a,c,d){b(this,a,c,!1,d)};e.prototype.writeInt32LE=function(a,b,c){z(this,a,b,!0,c)};e.prototype.writeInt32BE=function(a,b,c){z(this,a,b,!1,c)};e.prototype.writeFloatLE=function(a,b,c){D(this,a,b,!0,c)};e.prototype.writeFloatBE=function(a,b,c){D(this,a,b,!1,c)};e.prototype.writeDoubleLE=function(a,b,c){B(this,a,b,!0,c)};e.prototype.writeDoubleBE=function(a,b,c){B(this,a,b,!1,c)};e.prototype.fill=function(a,b,c){a||(a=0);b||(b=0);c||(c=this.length); "string"===typeof a&&(a=a.charCodeAt(0));q("number"===typeof a&&!isNaN(a),"value is not a number");q(c>=b,"end < start");if(c!==b&&0!==this.length)for(q(0<=b&&b"};e.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(e._useTypedArrays)return(new e(this)).buffer; for(var a=new Uint8Array(this.length),b=0,c=a.length;be)return-1;if(58>e)return e-48+52;if(91>e)return e-65;if(123>e)return e-97+26}var v="undefined"!==typeof Uint8Array? Uint8Array:Array;e.toByteArray=function(e){function h(c){a[b++]=c}var d,l,k,c,a;if(0>16),h((k&65280)>>8),h(k&255);2===c?(k=p(e.charAt(d))<<2|p(e.charAt(d+1))>>4,h(k&255)):1===c&&(k=p(e.charAt(d))<<10| p(e.charAt(d+1))<<4|p(e.charAt(d+2))>>2,h(k>>8&255),h(k&255));return a};e.fromByteArray=function(e){var h,d=e.length%3,l="",k,c;h=0;for(c=e.length-d;h>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(k>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(k>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(k& 63),l+=k;switch(d){case 1:k=e[e.length-1];l+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(k>>2);l+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(k<<4&63);l+="==";break;case 2:k=(e[e.length-2]<<8)+e[e.length-1],l+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(k>>10),l+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(k>>4&63),l+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(k<< 2&63),l+="="}return l}})("undefined"===typeof m?this.base64js={}:m)},{}],5:[function(g,r,m){m.read=function(e,p,v,g,h){var d;d=8*h-g-1;var l=(1<>1,c=-7;h=v?h-1:0;var a=v?-1:1,b=e[p+h];h+=a;v=b&(1<<-c)-1;b>>=-c;for(c+=d;0>=-c;for(c+=g;0>1,b= 23===h?Math.pow(2,-24)-Math.pow(2,-77):0;d=g?0:d-1;var z=g?1:-1,D=0>p||0===p&&0>1/p?1:0;p=Math.abs(p);isNaN(p)||Infinity===p?(p=isNaN(p)?1:0,g=c):(g=Math.floor(Math.log(p)/Math.LN2),1>p*(l=Math.pow(2,-g))&&(g--,l*=2),p=1<=g+a?p+b/l:p+b*Math.pow(2,1-a),2<=p*l&&(g++,l/=2),g+a>=c?(p=0,g=c):1<=g+a?(p=(p*l-1)*Math.pow(2,h),g+=a):(p=p*Math.pow(2,a-1)*Math.pow(2,h),g=0));for(;8<=h;e[v+d]=p&255,d+=z,p/=256,h-=8);g=g<c?[]:a.slice(b, c-b+1)}d=m.resolve(d).substr(1);e=m.resolve(e).substr(1);for(var c=k(d.split("/")),a=k(e.split("/")),b=Math.min(c.length,a.length),h=b,g=0;ge&&(e=d.length+e);return d.substr(e,k)}}).call(this,g("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6}],8:[function(g,r,m){m.SourceMapGenerator=g("./source-map/source-map-generator").SourceMapGenerator; m.SourceMapConsumer=g("./source-map/source-map-consumer").SourceMapConsumer;m.SourceNode=g("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":13,"./source-map/source-map-generator":14,"./source-map/source-node":15}],9:[function(g,r,m){if("function"!==typeof e)var e=g("amdefine")(r,g);e(function(e,g,m){function h(){this._array=[];this._set={}}var d=e("./util");h.fromArray=function(d,e){for(var c=new h,a=0,b=d.length;ad?(-d<<1)+1:(d<<1)+0;do d=k&31,k>>>=5,0=k)throw Error("Expected more digits in base 64 VLQ value.");g=h.decode(d.charAt(e++));b=!!(g&32);g&=31;c+=g<>1;return{value:1===(c&1)?-k:k,rest:d.slice(e)}}})}, {"./base64":11,amdefine:17}],11:[function(g,r,m){if("function"!==typeof e)var e=g("amdefine")(r,g);e(function(e,g,m){var h={},d={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(e,k){h[e]=k;d[k]=e});g.encode=function(e){if(e in d)return d[e];throw new TypeError("Must be between 0 and 63: "+e);};g.decode=function(d){if(d in h)return h[d];throw new TypeError("Not a valid base 64 digit: "+d);}})},{amdefine:17}],12:[function(g,r,m){if("function"!==typeof e)var e= g("amdefine")(r,g);e(function(e,g,m){function h(d,e,k,c,a){var b=Math.floor((e-d)/2)+d,g=a(k,c[b],!0);return 0===g?c[b]:0d?null:c[d]}g.search=function(d,e,k){return 0=a[c])throw new TypeError("Line must be greater than or equal to 1, got "+a[c]);if(0>a[d])throw new TypeError("Column must be greater than or equal to 0, got "+a[d]);return l.search(a,b,e)};h.prototype.originalPositionFor=function(a){a={generatedLine:d.getArg(a,"line"),generatedColumn:d.getArg(a,"column")};if(a=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn", d.compareByGeneratedPositions)){var b=d.getArg(a,"source",null);b&&this.sourceRoot&&(b=d.join(this.sourceRoot,b));return{source:b,line:d.getArg(a,"originalLine",null),column:d.getArg(a,"originalColumn",null),name:d.getArg(a,"name",null)}}return{source:null,line:null,column:null,name:null}};h.prototype.sourceContentFor=function(a){if(!this.sourcesContent)return null;this.sourceRoot&&(a=d.relative(this.sourceRoot,a));if(this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var b; if(this.sourceRoot&&(b=d.urlParse(this.sourceRoot))){var c=a.replace(/^file:\/\//,"");if("file"==b.scheme&&this._sources.has(c))return this.sourcesContent[this._sources.indexOf(c)];if((!b.path||"/"==b.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}throw Error('"'+a+'" is not in the SourceMap.');};h.prototype.generatedPositionFor=function(a){a={source:d.getArg(a,"source"),originalLine:d.getArg(a,"line"),originalColumn:d.getArg(a,"column")};this.sourceRoot&& (a.source=d.relative(this.sourceRoot,a.source));return(a=this._findMapping(a,this._originalMappings,"originalLine","originalColumn",d.compareByOriginalPositions))?{line:d.getArg(a,"generatedLine",null),column:d.getArg(a,"generatedColumn",null)}:{line:null,column:null}};h.GENERATED_ORDER=1;h.ORIGINAL_ORDER=2;h.prototype.eachMapping=function(a,b,c){b=b||null;switch(c||h.GENERATED_ORDER){case h.GENERATED_ORDER:c=this._generatedMappings;break;case h.ORIGINAL_ORDER:c=this._originalMappings;break;default:throw Error("Unknown order of iteration."); }var e=this.sourceRoot;c.map(function(a){var b=a.source;b&&e&&(b=d.join(e,b));return{source:b,generatedLine:a.generatedLine,generatedColumn:a.generatedColumn,originalLine:a.originalLine,originalColumn:a.originalColumn,name:a.name}}).forEach(a,b)};g.SourceMapConsumer=h})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(g,r,m){if("function"!==typeof e)var e=g("amdefine")(r,g);e(function(e,g,m){function h(c){this._file=l.getArg(c,"file");this._sourceRoot= l.getArg(c,"sourceRoot",null);this._sources=new k;this._names=new k;this._mappings=[];this._sourcesContents=null}var d=e("./base64-vlq"),l=e("./util"),k=e("./array-set").ArraySet;h.prototype._version=3;h.fromSourceMap=function(c){var a=c.sourceRoot,b=new h({file:c.file,sourceRoot:a});c.eachMapping(function(c){var d={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source&&(d.source=c.source,a&&(d.source=l.relative(a,d.source)),d.original={line:c.originalLine,column:c.originalColumn},c.name&& (d.name=c.name));b.addMapping(d)});c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&b.setSourceContent(a,d)});return b};h.prototype.addMapping=function(c){var a=l.getArg(c,"generated"),b=l.getArg(c,"original",null),d=l.getArg(c,"source",null);c=l.getArg(c,"name",null);this._validateMapping(a,b,d,c);d&&!this._sources.has(d)&&this._sources.add(d);c&&!this._names.has(c)&&this._names.add(c);this._mappings.push({generatedLine:a.line,generatedColumn:a.column,originalLine:null!=b&&b.line,originalColumn:null!= b&&b.column,source:d,name:c})};h.prototype.setSourceContent=function(c,a){var b=c;this._sourceRoot&&(b=l.relative(this._sourceRoot,b));null!==a?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[l.toSetString(b)]=a):(delete this._sourcesContents[l.toSetString(b)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};h.prototype.applySourceMap=function(c,a){a||(a=c.file);var b=this._sourceRoot;b&&(a=l.relative(b,a));var d=new k,e=new k;this._mappings.forEach(function(k){if(k.source=== a&&k.originalLine){var h=c.originalPositionFor({line:k.originalLine,column:k.originalColumn});null!==h.source&&(k.source=b?l.relative(b,h.source):h.source,k.originalLine=h.line,k.originalColumn=h.column,null!==h.name&&null!==k.name&&(k.name=h.name))}(h=k.source)&&!d.has(h)&&d.add(h);(k=k.name)&&!e.has(k)&&e.add(k)},this);this._sources=d;this._names=e;c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&(b&&(a=l.relative(b,a)),this.setSourceContent(a,d))},this)};h.prototype._validateMapping= function(c,a,b,d){if(!(c&&"line"in c&&"column"in c&&0d)-(c",a=this.getLineNumber(),null!=a&&(b+=":"+a,(a=this.getColumnNumber())&& (b+=":"+a)));a="";var c=this.getFunctionName(),d=!0,e=this.isConstructor();if(this.isToplevel()||e)e?a+="new "+(c||""):c?a+=c:(a+=b,d=!1);else{var e=this.getTypeName(),g=this.getMethodName();c?(e&&0!=c.indexOf(e)&&(a+=e+"."),a+=c,g&&c.indexOf("."+g)!=c.length-g.length-1&&(a+=" [as "+g+"]")):a+=e+"."+(g||"")}d&&(a+=" ("+b+")");return a}function a(a){var b={};Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(function(c){b[c]=/^(?:is|get)/.test(c)?function(){return a[c].call(a)}: a[c]});b.toString=c;return b}function b(b){var c=b.getFileName()||b.getScriptNameOrSourceURL();if(c){var d=b.getLineNumber(),e=b.getColumnNumber()-1;1!==d||r()||b.isEval()||(e-=62);var g=l({source:c,line:d,column:e});b=a(b);b.getFileName=function(){return g.source};b.getLineNumber=function(){return g.line};b.getColumnNumber=function(){return g.column+1};b.getScriptNameOrSourceURL=function(){return g.source};return b}var h=b.isEval()&&b.getEvalOrigin();h&&(h=k(h),b=a(b),b.getEvalOrigin=function(){return h}); return b}function z(a,c){t&&(F={},C={});return a+c.map(function(a){return"\n at "+b(a)}).join("")}function D(a){var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);if(b){a=b[1];var c=+b[2],b=+b[3],d=F[a];!d&&y.existsSync(a)&&(d=y.readFileSync(a,"utf8"));if(d&&(d=d.split(/(?:\r\n|\r|\n)/)[c-1]))return a+":"+c+"\n"+d+"\n"+Array(b).join(" ")+"^"}return null}function B(){var a=e.emit;e.emit=function(b){if("uncaughtException"===b){var c=arguments[1]&&arguments[1].stack,d=0