/* * Support for source maps in V8 stack traces * https://github.com/evanw/node-source-map-support */ (this.define||function(M,N){this.sourceMapSupport=N()})("browser-source-map-support",function(M){(function k(y,g,v){function C(b,m){if(!g[b]){if(!y[b]){var f="function"==typeof require&&require;if(!m&&f)return f(b,!0);if(E)return E(b,!0);throw Error("Cannot find module '"+b+"'");}f=g[b]={exports:{}};y[b][0].call(f.exports,function(e){var a=y[b][1][e];return C(a?a:e)},f,f.exports,k,y,g,v)}return g[b].exports}for(var E="function"==typeof require&&require,p=0;ph;++h)a.hasOwnProperty(h)&&(r? e=b(e,a[h],h,a):(e=a[h],r=!0));return e};"b"!=="ab".substr(-1)?g.substr=function(a,b,d){0>b&&(b=a.length+b);return a.substr(b,d)}:g.substr=function(a,b,d){return a.substr(b,d)};g.trim=function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")};g.bind=function(){var a=Array.prototype.slice.call(arguments),b=a.shift();if(b.bind)return b.bind.apply(b,a);var d=a.shift();return function(){b.apply(d,a.concat([Array.prototype.slice.call(arguments)]))}};g.create="function"===typeof Object.create?Object.create: C;var a="function"===typeof Object.keys?Object.keys:p,d="function"===typeof Object.getOwnPropertyNames?Object.getOwnPropertyNames:b;if(Error().hasOwnProperty("description")){var n=function(a,b){"[object Error]"===f.call(a)&&(b=g.filter(b,function(a){return"description"!==a&&"number"!==a&&"message"!==a}));return b};g.keys=function(b){return n(b,a(b))};g.getOwnPropertyNames=function(a){return n(a,d(a))}}else g.keys=a,g.getOwnPropertyNames=d;if("function"===typeof Object.getOwnPropertyDescriptor)try{Object.getOwnPropertyDescriptor({a:1}, "a"),g.getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor}catch(l){g.getOwnPropertyDescriptor=function(a,b){try{return Object.getOwnPropertyDescriptor(a,b)}catch(d){return m(a,b)}}}else g.getOwnPropertyDescriptor=m},{}],3:[function(k,y,g){},{}],4:[function(k,y,g){function v(b,f){for(var e=0,a=b.length-1;0<=a;a--){var d=b[a];"."===d?b.splice(a,1):".."===d?(b.splice(a,1),e++):e&&(b.splice(a,1),e--)}if(f)for(;e--;e)b.unshift("..");return b}var C=k("__browserify_process"),E=k("util"),p=k("_shims"), b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;g.resolve=function(){for(var b="",f=!1,e=arguments.length-1;-1<=e&&!f;e--){var a=0<=e?arguments[e]:C.cwd();if(!E.isString(a))throw new TypeError("Arguments to path.resolve must be strings");a&&(b=a+"/"+b,f="/"===a.charAt(0))}b=v(p.filter(b.split("/"),function(a){return!!a}),!f).join("/");return(f?"/":"")+b||"."};g.normalize=function(b){var f=g.isAbsolute(b),e="/"===p.substr(b,-1);(b=v(p.filter(b.split("/"),function(a){return!!a}),!f).join("/"))|| f||(b=".");b&&e&&(b+="/");return(f?"/":"")+b};g.isAbsolute=function(b){return"/"===b.charAt(0)};g.join=function(){var b=Array.prototype.slice.call(arguments,0);return g.normalize(p.filter(b,function(b,e){if(!E.isString(b))throw new TypeError("Arguments to path.join must be strings");return b}).join("/"))};g.relative=function(b,f){function e(a){for(var b=0;bd?[]:a.slice(b,d-b+1)}b=g.resolve(b).substr(1);f=g.resolve(f).substr(1); for(var a=e(b.split("/")),d=e(f.split("/")),n=Math.min(a.length,d.length),l=n,w=0;wn)return A(l)?t.stylize(RegExp.prototype.toString.call(l), "regexp"):t.stylize("[Object]","special");t.seen.push(l);s=x?f(t,l,n,z,s):s.map(function(c){return e(t,l,n,z,c,x)});t.seen.pop();return a(s,q,B)}function m(c,a){if(u(a))return c.stylize("undefined","undefined");if(w(a)){var b="'"+JSON.stringify(a).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c.stylize(b,"string")}if(l(a))return c.stylize(""+a,"number");if(n(a))return c.stylize(""+a,"boolean");if(null===a)return c.stylize("null","null")}function f(c,a,b,d,h){for(var z=[], x=0,B=a.length;xD.indexOf(c.seen,a.value)?(B=null===d? b(c,a.value,null):b(c,a.value,d-1),-1c?"0"+c.toString(10):c.toString(10)}function G(){var c=new Date,a=[t(c.getHours()),t(c.getMinutes()),t(c.getSeconds())].join(":");return[c.getDate(),H[c.getMonth()],a].join(" ")}var D=k("_shims"),I=/%[sdj%]/g;g.format=function(c){if(!w(c)){for(var a=[],b=0;b=h)return z;switch(z){case "%s":return String(d[b++]);case "%d":return Number(d[b++]);case "%j":try{return JSON.stringify(d[b++])}catch(c){return"[Circular]"}default:return z}}),z=d[b];b>1,w=-7;a=f?0:a-1;var u=f?1:-1,g=b[m+a];a+=u;f=g&(1<<-w)-1;g>>=-w;for(w+=d;0>=-w;for(w+=e;0>1,g=23===a?Math.pow(2,-24)- Math.pow(2,-77):0;d=e?d-1:0;var q=e?-1:1,r=0>m||0===m&&0>1/m?1:0;m=Math.abs(m);isNaN(m)||Infinity===m?(m=isNaN(m)?1:0,e=w):(e=Math.floor(Math.log(m)/Math.LN2),1>m*(n=Math.pow(2,-e))&&(e--,n*=2),m=1<=e+u?m+g/n:m+g*Math.pow(2,1-u),2<=m*n&&(e++,n/=2),e+u>=w?(m=0,e=w):1<=e+u?(m=(m*n-1)*Math.pow(2,a),e+=u):(m=m*Math.pow(2,u-1)*Math.pow(2,a),e=0));for(;8<=a;b[f+d]=m&255,d+=q,m/=256,a-=8);e=e<=a)return a;if(0<=c)return c;c+=a;return 0<=c?c:0}function f(c){c=~~Math.ceil(+c);return 0>c?0:c}function e(c){return(Array.isArray||function(c){return"[object Array]"=={}.toString.apply(c)})(c)} function a(c){return 16>c?"0"+c.toString(16):c.toString(16)}function d(c){for(var a=[],b=0;b=c.charCodeAt(b))a.push(c.charCodeAt(b));else for(var d=encodeURIComponent(c.charAt(b)).substr(1).split("%"),h=0;h=a.length||h>=c.length);)a[h+b]=c[h],h++;return h}function w(c){try{return decodeURIComponent(c)}catch(a){return String.fromCharCode(65533)}} function u(c,a,b,d){var h=0;d||(s.ok("boolean"===typeof b,"missing or invalid endian"),s.ok(void 0!==a&&null!==a,"missing offset"),s.ok(a+1=c.length)return 0;b?(h=c[a]<<8,a+1=c.length)return 0; b?(a+1>>0):(a+2>>0));return h}function q(c,a,b,d){d||(s.ok("boolean"===typeof b,"missing or invalid endian"),s.ok(void 0!==a&&null!==a,"missing offset"),s.ok(a+1>>8*(d?1-h:h)}function D(c,a,b,d,h){h||(s.ok(void 0!==a&&null!==a,"missing value"),s.ok("boolean"===typeof d,"missing or invalid endian"),s.ok(void 0!==b&&null!==b,"missing offset"),s.ok(b+3>>8*(d?3-h:h)&255}function y(c,a,b){s.ok("number"==typeof c,"cannot write a non-number as a number");s.ok(c<=a,"value larger than maximum allowed value"); s.ok(c>=b,"value smaller than minimum allowed value");s.ok(Math.floor(c)===c,"value has a fractional component")}function H(c,a,b){s.ok("number"==typeof c,"cannot write a non-number as a number");s.ok(c<=a,"value larger than maximum allowed value");s.ok(c>=b,"value smaller than minimum allowed value")}function J(c,a,b,d,h){h||(s.ok(void 0!==a&&null!==a,"missing value"),s.ok("boolean"===typeof d,"missing or invalid endian"),s.ok(void 0!==b&&null!==b,"missing offset"),s.ok(b+1c||c>=this.length)throw Error("oob");return this[c]};b.prototype.set=function(c,a){if(0>c||c>=this.length)throw Error("oob");return this[c]=a};b.byteLength=function(c,a){switch(a||"utf8"){case "hex":return c.length/2;case "utf8":case "utf-8":return d(c).length;case "ascii":case "binary":return c.length;case "base64":return n(c).length;default:throw Error("Unknown encoding");}};b.prototype.utf8Write= function(c,a,h){return b._charsWritten=l(d(c),this,a,h)};b.prototype.asciiWrite=function(c,a,d){for(var h=b,e=[],r=0;r=c[d]?(a+=w(b)+String.fromCharCode(c[d]),b=""):b+="%"+c[d].toString(16),d++;return a+w(b)};b.prototype.asciiSlice=function(){for(var c=Array.prototype.slice.apply(this,arguments),a="",b=0;b"};b.prototype.hexSlice= function(c,b){var d=this.length;if(!c||0>c)c=0;if(!b||0>b||b>d)b=d;for(var d="",h=c;hh&&(d=h)):d=h;h=c.length;if(h%2)throw Error("Invalid hex string");d>h/2&&(d=h/2);for(h=0;hh&&(b=h)):b=h;d=String(d|| "utf8").toLowerCase();switch(d){case "hex":return this.hexWrite(c,a,b);case "utf8":case "utf-8":return this.utf8Write(c,a,b);case "ascii":return this.asciiWrite(c,a,b);case "binary":return this.binaryWrite(c,a,b);case "base64":return this.base64Write(c,a,b);case "ucs2":case "ucs-2":return this.ucs2Write(c,a,b);default:throw Error("Unknown encoding");}};b.prototype.slice=function(c,a){var d=this.length;c=m(c,d,0);a=m(a,d,d);return new b(this,a-c,+c)};b.prototype.copy=function(c,a,b,d){b||(b=0);if(void 0=== d||isNaN(d))d=this.length;a||(a=0);if(da||a>=c.length)throw Error("targetStart out of bounds");if(0>b||b>=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);c.length-aa||a>=this.length)throw Error("start out of bounds");if(0>b||b>this.length)throw Error("end out of bounds");for(;a=this.length))return this[c]};b.prototype.readUInt16LE=function(c,a){return u(this,c,!1,a)};b.prototype.readUInt16BE=function(c,a){return u(this,c,!0,a)};b.prototype.readUInt32LE=function(c,a){return A(this,c,!1,a)};b.prototype.readUInt32BE=function(c,a){return A(this,c,!0,a)};b.prototype.readInt8=function(c,a){var b;a||(s.ok(void 0!==c&&null!==c,"missing offset"),s.ok(c=this.length))return(b=this[c]&128)?-1*(255-this[c]+1):this[c]};b.prototype.readInt16LE=function(c,a){return q(this,c,!1,a)};b.prototype.readInt16BE=function(c,a){return q(this,c,!0,a)};b.prototype.readInt32LE=function(c,a){return r(this,c,!1,a)};b.prototype.readInt32BE=function(c,a){return r(this,c,!0,a)};b.prototype.readFloatLE=function(c,a){return h(this,c,!1,a)};b.prototype.readFloatBE=function(c,a){return h(this,c,!0,a)};b.prototype.readDoubleLE=function(a,b){return c(this,a,!1,b)};b.prototype.readDoubleBE= function(a,b){return c(this,a,!0,b)};b.prototype.writeUInt8=function(c,a,b){b||(s.ok(void 0!==c&&null!==c,"missing value"),s.ok(void 0!==a&&null!==a,"missing offset"),s.ok(a>16),n.push((a&65280)>>8),n.push(a&255);2===d?(a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[f])<< 2|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[f+1])>>4,n.push(a&255)):1===d&&(a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[f])<<10|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[f+1])<<4|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[f+2])>>2,n.push(a>>8&255),n.push(a&255));return n};k.exports.fromByteArray=function(b){var f,e=b.length%3,a="",d,n;f=0;for(n=b.length-e;f>18&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d>>12&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d>>6&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d&63];switch(e){case 1:d=b[b.length-1];a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d>>2];a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d<< 4&63];a+="==";break;case 2:d=(b[b.length-2]<<8)+b[b.length-1],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d>>10],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d>>4&63],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[d<<2&63],a+="="}return a}})()},{}],5:[function(g,k,p){function b(a){return"[object Array]"===n.call(a)}function m(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}function f(a){return"object"!=typeof a&&"function"!=typeof a||null===a}function e(a){if(f(a))throw new TypeError("Object.keys called on a non-object");var b=[],c;for(c in a)l.call(a,c)&&b.push(c);return b}function a(a){if(f(a))throw new TypeError("Object.getOwnPropertyNames called on a non-object");var b=e(a);p.isArray(a)&&-1===p.indexOf(a, "length")&&b.push("length");return b}function d(a,b){return{value:a[b]}}var n=Object.prototype.toString,l=Object.prototype.hasOwnProperty;p.isArray="function"===typeof Array.isArray?Array.isArray:b;p.indexOf=function(a,b){if(a.indexOf)return a.indexOf(b);for(var c=0;cl;++l)a.hasOwnProperty(l)&&(e?d=b(d,a[l],l,a):(d=a[l],e=!0));return d};"b"!=="ab".substr(-1)?p.substr=function(a,b,c){0>b&&(b=a.length+b);return a.substr(b,c)}:p.substr=function(a,b,c){return a.substr(b,c)};p.trim=function(a){return a.trim? a.trim():a.replace(/^\s+|\s+$/g,"")};p.bind=function(){var a=Array.prototype.slice.call(arguments),b=a.shift();if(b.bind)return b.bind.apply(b,a);var c=a.shift();return function(){b.apply(c,a.concat([Array.prototype.slice.call(arguments)]))}};p.create="function"===typeof Object.create?Object.create:m;var w="function"===typeof Object.keys?Object.keys:e,u="function"===typeof Object.getOwnPropertyNames?Object.getOwnPropertyNames:a;if(Error().hasOwnProperty("description")){var A=function(a,b){"[object Error]"=== n.call(a)&&(b=p.filter(b,function(c){return"description"!==c&&"number"!==c&&"message"!==c}));return b};p.keys=function(a){return A(a,w(a))};p.getOwnPropertyNames=function(a){return A(a,u(a))}}else p.keys=w,p.getOwnPropertyNames=u;if("function"===typeof Object.getOwnPropertyDescriptor)try{Object.getOwnPropertyDescriptor({a:1},"a"),p.getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor}catch(q){p.getOwnPropertyDescriptor=function(a,b){try{return Object.getOwnPropertyDescriptor(a,b)}catch(c){return d(a, b)}}}else p.getOwnPropertyDescriptor=d},{}],6:[function(g,k,p){function b(a,c){return u.isUndefined(c)?""+c:u.isNumber(c)&&(isNaN(c)||!isFinite(c))||u.isFunction(c)||u.isRegExp(c)?c.toString():c}function m(a,c){return u.isString(a)?a.lengthf)return c(h)?b.stylize(RegExp.prototype.toString.call(h),"regexp"):b.stylize("[Object]","special");b.seen.push(h);t=g?n(b,h,f,m,t):t.map(function(a){return l(b,h,f,m,a,g)});b.seen.pop();return w(t,q,k)}function d(a,c){if(h(c))return a.stylize("undefined","undefined");if(r(c)){var b="'"+JSON.stringify(c).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(b,"string")}if(q(c))return a.stylize(""+c,"number");if(A(c))return a.stylize(""+c,"boolean");if(null=== c)return a.stylize("null","null")}function n(a,c,b,d,e){for(var h=[],f=0,q=c.length;fF.indexOf(c.seen,b.value)?(n=null===d?a(c,b.value,null):a(c,b.value,d-1),-1a?"0"+a.toString(10):a.toString(10)}function J(){var a=new Date,c=[H(a.getHours()),H(a.getMinutes()),H(a.getSeconds())].join(":");return[a.getDate(),L[a.getMonth()],c].join(" ")}var F=g("_shims"),K=/%[sdj%]/g; p.format=function(a){if(!r(a)){for(var c=[],d=0;d=h)return a;switch(a){case "%s":return String(e[d++]);case "%d":return Number(e[d++]);case "%j":try{return JSON.stringify(e[d++])}catch(c){return"[Circular]"}default:return a}}),l=e[d];dg?(-g<<1)+1:(g<<1)+0;do g=e&31,e>>>=5,0=e)throw Error("Expected more digits in base 64 VLQ value.");l=b.decode(g.charAt(f++));n=!!(l&32);l&=31;a+=l<>1;return{value:1===(a&1)?-e:e,rest:g.slice(f)}}})}, {"./base64":11,amdefine:17}],11:[function(k,y,g){if("function"!==typeof v)var v=k("amdefine")(y,k);v(function(g,k,p){var b={},m={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(f,e){b[f]=e;m[e]=f});k.encode=function(b){if(b in m)return m[b];throw new TypeError("Must be between 0 and 63: "+b);};k.decode=function(f){if(f in b)return b[f];throw new TypeError("Not a valid base 64 digit: "+f);}})},{amdefine:17}],12:[function(k,y,g){if("function"!==typeof v)var v= k("amdefine")(y,k);v(function(g,k,p){function b(g,f,e,a,d){var n=Math.floor((f-g)/2)+g,l=d(e,a[n]);return 0===l?a[n]:0g?null:a[g]}k.search=function(g,f,e){return 0b.source)return 1;if(a.source=a[e])throw new TypeError("Line must be greater than or equal to 1, got "+ a[e]);if(0>a[g])throw new TypeError("Column must be greater than or equal to 0, got "+a[g]);return f.search(a,b,m)};b.prototype.originalPositionFor=function(a){a={generatedLine:m.getArg(a,"line"),generatedColumn:m.getArg(a,"column")};if(a=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn",this._compareGeneratedPositions)){var b=m.getArg(a,"source",null);b&&this.sourceRoot&&(b=m.join(this.sourceRoot,b));return{source:b,line:m.getArg(a,"originalLine",null),column:m.getArg(a, "originalColumn",null),name:m.getArg(a,"name",null)}}return{source:null,line:null,column:null,name:null}};b.prototype.sourceContentFor=function(a){if(!this.sourcesContent)return null;this.sourceRoot&&(a=m.relative(this.sourceRoot,a));if(this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var b;if(this.sourceRoot&&(b=m.urlParse(this.sourceRoot))){var e=a.replace(/^file:\/\//,"");if("file"==b.scheme&&this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];if((!b.path|| "/"==b.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}throw Error('"'+a+'" is not in the SourceMap.');};b.prototype.generatedPositionFor=function(a){a={source:m.getArg(a,"source"),originalLine:m.getArg(a,"line"),originalColumn:m.getArg(a,"column")};this.sourceRoot&&(a.source=m.relative(this.sourceRoot,a.source));return(a=this._findMapping(a,this._originalMappings,"originalLine","originalColumn",this._compareOriginalPositions))?{line:m.getArg(a,"generatedLine", null),column:m.getArg(a,"generatedColumn",null)}:{line:null,column:null}};b.GENERATED_ORDER=1;b.ORIGINAL_ORDER=2;b.prototype.eachMapping=function(a,e,l){e=e||null;switch(l||b.GENERATED_ORDER){case b.GENERATED_ORDER:l=this._generatedMappings;break;case b.ORIGINAL_ORDER:l=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var f=this.sourceRoot;l.map(function(a){var b=a.source;b&&f&&(b=m.join(f,b));return{source:b,generatedLine:a.generatedLine,generatedColumn:a.generatedColumn, originalLine:a.originalLine,originalColumn:a.originalColumn,name:a.name}}).forEach(a,e)};k.SourceMapConsumer=b})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(k,y,g){if("function"!==typeof v)var v=k("amdefine")(y,k);v(function(g,k,p){function b(a){this._file=d.getArg(a,"file");this._sourceRoot=d.getArg(a,"sourceRoot",null);this._sources=new n;this._names=new n;this._mappings=[];this._sourcesContents=null}function m(a,b){var d=(a&&a.line)-(b&&b.line); return d?d:(a&&a.column)-(b&&b.column)}function f(a,b){a=a||"";b=b||"";return(a>b)-(a