work around a new V8 change breaking stuff by manually forwarding relevant member functions in the CallSite wrapper instead of using the prototype chain and by copy/pasting the toString() CallSite implementation (fixes #35)
This commit is contained in:
parent
636b1b28e4
commit
3b154ff43e
@ -2,86 +2,88 @@
|
||||
* Support for source maps in V8 stack traces
|
||||
* https://github.com/evanw/node-source-map-support
|
||||
*/
|
||||
(this.define||function(H,N){this.sourceMapSupport=N()})("browser-source-map-support",function(H){(function k(s,l,e){function q(g,c){if(!l[g]){if(!s[g]){var f="function"==typeof require&&require;if(!c&&f)return f(g,!0);if(t)return t(g,!0);throw Error("Cannot find module '"+g+"'");}f=l[g]={exports:{}};s[g][0].call(f.exports,function(c){var a=s[g][1][c];return q(a?a:c)},f,f.exports,k,s,l,e)}return l[g].exports}for(var t="function"==typeof require&&require,E=0;E<e.length;E++)q(e[E]);return q})({1:[function(k,
|
||||
s,l){H=k("./source-map-support")},{"./source-map-support":18}],2:[function(k,s,l){},{}],3:[function(k,s,l){function e(h,n,K){if(!(this instanceof e))return new e(h,n,K);var b=typeof h;if("base64"===n&&"string"===b)for(h=h.trim?h.trim():h.replace(/^\s+|\s+$/g,"");0!==h.length%4;)h+="=";var a;if("number"===b)a=v(h);else if("string"===b)a=e.byteLength(h,n);else if("object"===b)a=v(h.length);else throw Error("First argument needs to be a number, array or string.");var d;e._useTypedArrays?d=e._augment(new Uint8Array(a)):
|
||||
(d=this,d.length=a,d._isBuffer=!0);if(e._useTypedArrays&&"number"===typeof h.byteLength)d._set(h);else{var c=h;if(x(c)||e.isBuffer(c)||c&&"object"===typeof c&&"number"===typeof c.length)for(n=0;n<a;n++)e.isBuffer(h)?d[n]=h.readUInt8(n):d[n]=h[n];else if("string"===b)d.write(h,0,n);else if("number"===b&&!e._useTypedArrays&&!K)for(n=0;n<a;n++)d[n]=0}return d}function q(h,n,b){var a="";for(b=Math.min(h.length,b);n<b;n++)a+=String.fromCharCode(h[n]);return a}function t(h,n,b,a){a||(p("boolean"===typeof b,
|
||||
"missing or invalid endian"),p(void 0!==n&&null!==n,"missing offset"),p(n+1<h.length,"Trying to read beyond buffer length"));a=h.length;if(!(n>=a))return b?(b=h[n],n+1<a&&(b|=h[n+1]<<8)):(b=h[n]<<8,n+1<a&&(b|=h[n+1])),b}function E(h,n,b,a){a||(p("boolean"===typeof b,"missing or invalid endian"),p(void 0!==n&&null!==n,"missing offset"),p(n+3<h.length,"Trying to read beyond buffer length"));a=h.length;if(!(n>=a)){var d;b?(n+2<a&&(d=h[n+2]<<16),n+1<a&&(d|=h[n+1]<<8),d|=h[n],n+3<a&&(d+=h[n+3]<<24>>>0)):
|
||||
(n+1<a&&(d=h[n+1]<<16),n+2<a&&(d|=h[n+2]<<8),n+3<a&&(d|=h[n+3]),d+=h[n]<<24>>>0);return d}}function g(h,n,b,a){a||(p("boolean"===typeof b,"missing or invalid endian"),p(void 0!==n&&null!==n,"missing offset"),p(n+1<h.length,"Trying to read beyond buffer length"));if(!(n>=h.length))return h=t(h,n,b,!0),h&32768?-1*(65535-h+1):h}function c(h,n,b,a){a||(p("boolean"===typeof b,"missing or invalid endian"),p(void 0!==n&&null!==n,"missing offset"),p(n+3<h.length,"Trying to read beyond buffer length"));if(!(n>=
|
||||
h.length))return h=E(h,n,b,!0),h&2147483648?-1*(4294967295-h+1):h}function f(h,n,b,a){a||(p("boolean"===typeof b,"missing or invalid endian"),p(n+3<h.length,"Trying to read beyond buffer length"));return F.read(h,n,b,23,4)}function m(h,n,b,a){a||(p("boolean"===typeof b,"missing or invalid endian"),p(n+7<h.length,"Trying to read beyond buffer length"));return F.read(h,n,b,52,8)}function a(h,n,b,a,d){d||(p(void 0!==n&&null!==n,"missing value"),p("boolean"===typeof a,"missing or invalid endian"),p(void 0!==
|
||||
b&&null!==b,"missing offset"),p(b+1<h.length,"trying to write beyond buffer length"),I(n,65535));var c=h.length;if(!(b>=c))for(d=0,c=Math.min(c-b,2);d<c;d++)h[b+d]=(n&255<<8*(a?d:1-d))>>>8*(a?d:1-d)}function b(h,n,b,a,d){d||(p(void 0!==n&&null!==n,"missing value"),p("boolean"===typeof a,"missing or invalid endian"),p(void 0!==b&&null!==b,"missing offset"),p(b+3<h.length,"trying to write beyond buffer length"),I(n,4294967295));var c=h.length;if(!(b>=c))for(d=0,c=Math.min(c-b,4);d<c;d++)h[b+d]=n>>>
|
||||
8*(a?d:3-d)&255}function d(h,n,b,d,c){c||(p(void 0!==n&&null!==n,"missing value"),p("boolean"===typeof d,"missing or invalid endian"),p(void 0!==b&&null!==b,"missing offset"),p(b+1<h.length,"Trying to write beyond buffer length"),J(n,32767,-32768));b>=h.length||(0<=n?a(h,n,b,d,c):a(h,65535+n+1,b,d,c))}function z(h,n,a,d,c){c||(p(void 0!==n&&null!==n,"missing value"),p("boolean"===typeof d,"missing or invalid endian"),p(void 0!==a&&null!==a,"missing offset"),p(a+3<h.length,"Trying to write beyond buffer length"),
|
||||
J(n,2147483647,-2147483648));a>=h.length||(0<=n?b(h,n,a,d,c):b(h,4294967295+n+1,a,d,c))}function D(h,b,a,d,c){c||(p(void 0!==b&&null!==b,"missing value"),p("boolean"===typeof d,"missing or invalid endian"),p(void 0!==a&&null!==a,"missing offset"),p(a+3<h.length,"Trying to write beyond buffer length"),L(b,3.4028234663852886E38,-3.4028234663852886E38));a>=h.length||F.write(h,b,a,d,23,4)}function A(h,b,a,d,c){c||(p(void 0!==b&&null!==b,"missing value"),p("boolean"===typeof d,"missing or invalid endian"),
|
||||
p(void 0!==a&&null!==a,"missing offset"),p(a+7<h.length,"Trying to write beyond buffer length"),L(b,1.7976931348623157E308,-1.7976931348623157E308));a>=h.length||F.write(h,b,a,d,52,8)}function B(h,b,a){if("number"!==typeof h)return a;h=~~h;if(h>=b)return b;if(0<=h)return h;h+=b;return 0<=h?h:0}function v(h){h=~~Math.ceil(+h);return 0>h?0:h}function x(h){return(Array.isArray||function(h){return"[object Array]"===Object.prototype.toString.call(h)})(h)}function C(h){return 16>h?"0"+h.toString(16):h.toString(16)}
|
||||
function r(h){for(var b=[],a=0;a<h.length;a++){var d=h.charCodeAt(a);if(127>=d)b.push(h.charCodeAt(a));else{var c=a;55296<=d&&57343>=d&&a++;d=encodeURIComponent(h.slice(c,a+1)).substr(1).split("%");for(c=0;c<d.length;c++)b.push(parseInt(d[c],16))}}return b}function w(h){for(var b=[],a=0;a<h.length;a++)b.push(h.charCodeAt(a)&255);return b}function y(h,b,a,d){for(var c=0;c<d&&!(c+a>=b.length||c>=h.length);c++)b[c+a]=h[c];return c}function M(h){try{return decodeURIComponent(h)}catch(b){return String.fromCharCode(65533)}}
|
||||
function I(h,b){p("number"===typeof h,"cannot write a non-number as a number");p(0<=h,"specified a negative value for writing an unsigned value");p(h<=b,"value is larger than maximum value for type");p(Math.floor(h)===h,"value has a fractional component")}function J(h,b,a){p("number"===typeof h,"cannot write a non-number as a number");p(h<=b,"value larger than maximum allowed value");p(h>=a,"value smaller than minimum allowed value");p(Math.floor(h)===h,"value has a fractional component")}function L(h,
|
||||
b,a){p("number"===typeof h,"cannot write a non-number as a number");p(h<=b,"value larger than maximum allowed value");p(h>=a,"value smaller than minimum allowed value")}function p(h,b){if(!h)throw Error(b||"Failed assertion");}var G=k("base64-js"),F=k("ieee754");l.Buffer=e;l.SlowBuffer=e;l.INSPECT_MAX_BYTES=50;e.poolSize=8192;e._useTypedArrays=function(){try{var h=new ArrayBuffer(0),b=new Uint8Array(h);b.foo=function(){return 42};return 42===b.foo()&&"function"===typeof b.subarray}catch(a){return!1}}();
|
||||
e.isEncoding=function(h){switch(String(h).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(h){return!(null===h||void 0===h||!h._isBuffer)};e.byteLength=function(h,b){var a;h+="";switch(b||"utf8"){case "hex":a=h.length/2;break;case "utf8":case "utf-8":a=r(h).length;break;case "ascii":case "binary":case "raw":a=h.length;break;case "base64":a=G.toByteArray(h).length;
|
||||
break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":a=2*h.length;break;default:throw Error("Unknown encoding");}return a};e.concat=function(h,b){p(x(h),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array.");if(0===h.length)return new e(0);if(1===h.length)return h[0];var a;if("number"!==typeof b)for(a=b=0;a<h.length;a++)b+=h[a].length;var d=new e(b),c=0;for(a=0;a<h.length;a++){var f=h[a];f.copy(d,c);c+=f.length}return d};e.prototype.write=function(h,b,a,d){if(isFinite(b))isFinite(a)||
|
||||
(d=a,a=void 0);else{var c=d;d=b;b=a;a=c}b=Number(b)||0;c=this.length-b;a?(a=Number(a),a>c&&(a=c)):a=c;d=String(d||"utf8").toLowerCase();switch(d){case "hex":b=Number(b)||0;d=this.length-b;a?(a=Number(a),a>d&&(a=d)):a=d;d=h.length;p(0===d%2,"Invalid hex string");a>d/2&&(a=d/2);for(d=0;d<a;d++)c=parseInt(h.substr(2*d,2),16),p(!isNaN(c),"Invalid hex string"),this[b+d]=c;e._charsWritten=2*d;h=d;break;case "utf8":case "utf-8":h=e._charsWritten=y(r(h),this,b,a);break;case "ascii":h=e._charsWritten=y(w(h),
|
||||
this,b,a);break;case "binary":h=e._charsWritten=y(w(h),this,b,a);break;case "base64":h=e._charsWritten=y(G.toByteArray(h),this,b,a);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":for(var f,c=[],m=0;m<h.length;m++)f=h.charCodeAt(m),d=f>>8,f%=256,c.push(f),c.push(d);h=e._charsWritten=y(c,this,b,a);break;default:throw Error("Unknown encoding");}return h};e.prototype.toString=function(h,a,b){h=String(h||"utf8").toLowerCase();a=Number(a)||0;b=void 0!==b?Number(b):b=this.length;if(b===a)return"";
|
||||
switch(h){case "hex":h=a;a=this.length;if(!h||0>h)h=0;if(!b||0>b||b>a)b=a;for(a="";h<b;h++)a+=C(this[h]);b=a;break;case "utf8":case "utf-8":var d=a;a=h="";for(b=Math.min(this.length,b);d<b;d++)127>=this[d]?(h+=M(a)+String.fromCharCode(this[d]),a=""):a+="%"+this[d].toString(16);b=h+M(a);break;case "ascii":b=q(this,a,b);break;case "binary":b=q(this,a,b);break;case "base64":h=a;b=0===h&&b===this.length?G.fromByteArray(this):G.fromByteArray(this.slice(h,b));break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":b=
|
||||
this.slice(a,b);h="";for(a=0;a<b.length;a+=2)h+=String.fromCharCode(b[a]+256*b[a+1]);b=h;break;default:throw Error("Unknown encoding");}return b};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};e.prototype.copy=function(a,b,d,c){d||(d=0);c||0===c||(c=this.length);b||(b=0);if(c!==d&&0!==a.length&&0!==this.length)if(p(c>=d,"sourceEnd < sourceStart"),p(0<=b&&b<a.length,"targetStart out of bounds"),p(0<=d&&d<this.length,"sourceStart out of bounds"),
|
||||
p(0<=c&&c<=this.length,"sourceEnd out of bounds"),c>this.length&&(c=this.length),a.length-b<c-d&&(c=a.length-b+d),c-=d,100>c||!e._useTypedArrays)for(var f=0;f<c;f++)a[f+b]=this[f+d];else a._set(this.subarray(d,d+c),b)};e.prototype.slice=function(b,a){var d=this.length;b=B(b,d,0);a=B(a,d,d);if(e._useTypedArrays)return e._augment(this.subarray(b,a));for(var d=a-b,c=new e(d,void 0,!0),f=0;f<d;f++)c[f]=this[f+b];return c};e.prototype.get=function(b){console.log(".get() is deprecated. Access using array indexes instead.");
|
||||
return this.readUInt8(b)};e.prototype.set=function(b,a){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(b,a)};e.prototype.readUInt8=function(b,a){a||(p(void 0!==b&&null!==b,"missing offset"),p(b<this.length,"Trying to read beyond buffer length"));if(!(b>=this.length))return this[b]};e.prototype.readUInt16LE=function(b,a){return t(this,b,!0,a)};e.prototype.readUInt16BE=function(b,a){return t(this,b,!1,a)};e.prototype.readUInt32LE=function(b,a){return E(this,
|
||||
b,!0,a)};e.prototype.readUInt32BE=function(b,a){return E(this,b,!1,a)};e.prototype.readInt8=function(b,a){a||(p(void 0!==b&&null!==b,"missing offset"),p(b<this.length,"Trying to read beyond buffer length"));if(!(b>=this.length))return this[b]&128?-1*(255-this[b]+1):this[b]};e.prototype.readInt16LE=function(b,a){return g(this,b,!0,a)};e.prototype.readInt16BE=function(b,a){return g(this,b,!1,a)};e.prototype.readInt32LE=function(b,a){return c(this,b,!0,a)};e.prototype.readInt32BE=function(b,a){return c(this,
|
||||
b,!1,a)};e.prototype.readFloatLE=function(b,a){return f(this,b,!0,a)};e.prototype.readFloatBE=function(b,a){return f(this,b,!1,a)};e.prototype.readDoubleLE=function(b,a){return m(this,b,!0,a)};e.prototype.readDoubleBE=function(b,a){return m(this,b,!1,a)};e.prototype.writeUInt8=function(b,a,d){d||(p(void 0!==b&&null!==b,"missing value"),p(void 0!==a&&null!==a,"missing offset"),p(a<this.length,"trying to write beyond buffer length"),I(b,255));a>=this.length||(this[a]=b)};e.prototype.writeUInt16LE=function(b,
|
||||
d,c){a(this,b,d,!0,c)};e.prototype.writeUInt16BE=function(b,d,c){a(this,b,d,!1,c)};e.prototype.writeUInt32LE=function(a,d,c){b(this,a,d,!0,c)};e.prototype.writeUInt32BE=function(a,d,c){b(this,a,d,!1,c)};e.prototype.writeInt8=function(b,a,d){d||(p(void 0!==b&&null!==b,"missing value"),p(void 0!==a&&null!==a,"missing offset"),p(a<this.length,"Trying to write beyond buffer length"),J(b,127,-128));a>=this.length||(0<=b?this.writeUInt8(b,a,d):this.writeUInt8(255+b+1,a,d))};e.prototype.writeInt16LE=function(b,
|
||||
a,c){d(this,b,a,!0,c)};e.prototype.writeInt16BE=function(b,a,c){d(this,b,a,!1,c)};e.prototype.writeInt32LE=function(b,a,d){z(this,b,a,!0,d)};e.prototype.writeInt32BE=function(b,a,d){z(this,b,a,!1,d)};e.prototype.writeFloatLE=function(b,a,d){D(this,b,a,!0,d)};e.prototype.writeFloatBE=function(b,a,d){D(this,b,a,!1,d)};e.prototype.writeDoubleLE=function(b,a,d){A(this,b,a,!0,d)};e.prototype.writeDoubleBE=function(b,a,d){A(this,b,a,!1,d)};e.prototype.fill=function(b,a,d){b||(b=0);a||(a=0);d||(d=this.length);
|
||||
"string"===typeof b&&(b=b.charCodeAt(0));p("number"===typeof b&&!isNaN(b),"value is not a number");p(d>=a,"end < start");if(d!==a&&0!==this.length)for(p(0<=a&&a<this.length,"start out of bounds"),p(0<=d&&d<=this.length,"end out of bounds");a<d;a++)this[a]=b};e.prototype.inspect=function(){for(var b=[],a=this.length,d=0;d<a;d++)if(b[d]=C(this[d]),d===l.INSPECT_MAX_BYTES){b[d+1]="...";break}return"<Buffer "+b.join(" ")+">"};e.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(e._useTypedArrays)return(new e(this)).buffer;
|
||||
for(var b=new Uint8Array(this.length),a=0,d=b.length;a<d;a+=1)b[a]=this[a];return b.buffer}throw Error("Buffer.toArrayBuffer not supported in this browser");};var u=e.prototype;e._augment=function(b){b._isBuffer=!0;b._get=b.get;b._set=b.set;b.get=u.get;b.set=u.set;b.write=u.write;b.toString=u.toString;b.toLocaleString=u.toString;b.toJSON=u.toJSON;b.copy=u.copy;b.slice=u.slice;b.readUInt8=u.readUInt8;b.readUInt16LE=u.readUInt16LE;b.readUInt16BE=u.readUInt16BE;b.readUInt32LE=u.readUInt32LE;b.readUInt32BE=
|
||||
u.readUInt32BE;b.readInt8=u.readInt8;b.readInt16LE=u.readInt16LE;b.readInt16BE=u.readInt16BE;b.readInt32LE=u.readInt32LE;b.readInt32BE=u.readInt32BE;b.readFloatLE=u.readFloatLE;b.readFloatBE=u.readFloatBE;b.readDoubleLE=u.readDoubleLE;b.readDoubleBE=u.readDoubleBE;b.writeUInt8=u.writeUInt8;b.writeUInt16LE=u.writeUInt16LE;b.writeUInt16BE=u.writeUInt16BE;b.writeUInt32LE=u.writeUInt32LE;b.writeUInt32BE=u.writeUInt32BE;b.writeInt8=u.writeInt8;b.writeInt16LE=u.writeInt16LE;b.writeInt16BE=u.writeInt16BE;
|
||||
b.writeInt32LE=u.writeInt32LE;b.writeInt32BE=u.writeInt32BE;b.writeFloatLE=u.writeFloatLE;b.writeFloatBE=u.writeFloatBE;b.writeDoubleLE=u.writeDoubleLE;b.writeDoubleBE=u.writeDoubleBE;b.fill=u.fill;b.inspect=u.inspect;b.toArrayBuffer=u.toArrayBuffer;return b}},{"base64-js":4,ieee754:5}],4:[function(k,s,l){(function(e){function q(a){a=a.charCodeAt(0);if(a===k)return 62;if(a===g)return 63;if(a<c)return-1;if(a<c+10)return a-c+52;if(a<m+26)return a-m;if(a<f+26)return a-f+26}var t="undefined"!==typeof Uint8Array?
|
||||
Uint8Array:Array,k=43,g=47,c=48,f=97,m=65;e.toByteArray=function(a){function b(b){g[e++]=b}var d,c,f,m,g;if(0<a.length%4)throw Error("Invalid string. Length must be a multiple of 4");d=a.length;m="="===a.charAt(d-2)?2:"="===a.charAt(d-1)?1:0;g=new t(3*a.length/4-m);c=0<m?a.length-4:a.length;var e=0;for(d=0;d<c;d+=4)f=q(a.charAt(d))<<18|q(a.charAt(d+1))<<12|q(a.charAt(d+2))<<6|q(a.charAt(d+3)),b((f&16711680)>>16),b((f&65280)>>8),b(f&255);2===m?(f=q(a.charAt(d))<<2|q(a.charAt(d+1))>>4,b(f&255)):1===
|
||||
m&&(f=q(a.charAt(d))<<10|q(a.charAt(d+1))<<4|q(a.charAt(d+2))>>2,b(f>>8&255),b(f&255));return g};e.fromByteArray=function(a){var b,d=a.length%3,c="",f,m;b=0;for(m=a.length-d;b<m;b+=3)f=(a[b]<<16)+(a[b+1]<<8)+a[b+2],f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f&
|
||||
63),c+=f;switch(d){case 1:f=a[a.length-1];c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>2);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f<<4&63);c+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>10),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>4&63),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f<<
|
||||
2&63),c+="="}return c}})("undefined"===typeof l?this.base64js={}:l)},{}],5:[function(k,s,l){l.read=function(e,q,t,k,g){var c;c=8*g-k-1;var f=(1<<c)-1,m=f>>1,a=-7;g=t?g-1:0;var b=t?-1:1,d=e[q+g];g+=b;t=d&(1<<-a)-1;d>>=-a;for(a+=c;0<a;t=256*t+e[q+g],g+=b,a-=8);c=t&(1<<-a)-1;t>>=-a;for(a+=k;0<a;c=256*c+e[q+g],g+=b,a-=8);if(0===t)t=1-m;else{if(t===f)return c?NaN:Infinity*(d?-1:1);c+=Math.pow(2,k);t-=m}return(d?-1:1)*c*Math.pow(2,t-k)};l.write=function(e,q,t,k,g,c){var f,m=8*c-g-1,a=(1<<m)-1,b=a>>1,d=
|
||||
23===g?Math.pow(2,-24)-Math.pow(2,-77):0;c=k?0:c-1;var z=k?1:-1,D=0>q||0===q&&0>1/q?1:0;q=Math.abs(q);isNaN(q)||Infinity===q?(q=isNaN(q)?1:0,k=a):(k=Math.floor(Math.log(q)/Math.LN2),1>q*(f=Math.pow(2,-k))&&(k--,f*=2),q=1<=k+b?q+d/f:q+d*Math.pow(2,1-b),2<=q*f&&(k++,f/=2),k+b>=a?(q=0,k=a):1<=k+b?(q=(q*f-1)*Math.pow(2,g),k+=b):(q=q*Math.pow(2,b-1)*Math.pow(2,g),k=0));for(;8<=g;e[t+c]=q&255,c+=z,q/=256,g-=8);k=k<<g|q;for(m+=g;0<m;e[t+c]=k&255,c+=z,k/=256,m-=8);e[t+c-z]|=128*D}},{}],6:[function(k,s,l){function e(){}
|
||||
k=s.exports={};k.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(e){return window.setImmediate(e)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var e=[];window.addEventListener("message",function(k){var l=k.source;l!==window&&null!==l||"process-tick"!==k.data||(k.stopPropagation(),0<e.length&&e.shift()())},!0);return function(k){e.push(k);window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}();k.title="browser";
|
||||
k.browser=!0;k.env={};k.argv=[];k.on=e;k.once=e;k.off=e;k.emit=e;k.binding=function(e){throw Error("process.binding is not supported");};k.cwd=function(){return"/"};k.chdir=function(e){throw Error("process.chdir is not supported");}},{}],7:[function(k,s,l){(function(e){function k(c,f){for(var m=0,a=c.length-1;0<=a;a--){var b=c[a];"."===b?c.splice(a,1):".."===b?(c.splice(a,1),m++):m&&(c.splice(a,1),m--)}if(f)for(;m--;m)c.unshift("..");return c}function t(c,f){if(c.filter)return c.filter(f);for(var m=
|
||||
[],a=0;a<c.length;a++)f(c[a],a,c)&&m.push(c[a]);return m}var s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;l.resolve=function(){for(var c="",f=!1,m=arguments.length-1;-1<=m&&!f;m--){var a=0<=m?arguments[m]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(c=a+"/"+c,f="/"===a.charAt(0))}c=k(t(c.split("/"),function(b){return!!b}),!f).join("/");return(f?"/":"")+c||"."};l.normalize=function(c){var f=l.isAbsolute(c),m="/"===g(c,-1);
|
||||
(c=k(t(c.split("/"),function(a){return!!a}),!f).join("/"))||f||(c=".");c&&m&&(c+="/");return(f?"/":"")+c};l.isAbsolute=function(c){return"/"===c.charAt(0)};l.join=function(){var c=Array.prototype.slice.call(arguments,0);return l.normalize(t(c,function(c,m){if("string"!==typeof c)throw new TypeError("Arguments to path.join must be strings");return c}).join("/"))};l.relative=function(c,f){function m(b){for(var a=0;a<b.length&&""===b[a];a++);for(var d=b.length-1;0<=d&&""===b[d];d--);return a>d?[]:b.slice(a,
|
||||
d-a+1)}c=l.resolve(c).substr(1);f=l.resolve(f).substr(1);for(var a=m(c.split("/")),b=m(f.split("/")),d=Math.min(a.length,b.length),e=d,g=0;g<d;g++)if(a[g]!==b[g]){e=g;break}d=[];for(g=e;g<a.length;g++)d.push("..");d=d.concat(b.slice(e));return d.join("/")};l.sep="/";l.delimiter=":";l.dirname=function(c){var f=s.exec(c).slice(1);c=f[0];f=f[1];if(!c&&!f)return".";f&&(f=f.substr(0,f.length-1));return c+f};l.basename=function(c,f){var m=s.exec(c).slice(1)[2];f&&m.substr(-1*f.length)===f&&(m=m.substr(0,
|
||||
m.length-f.length));return m};l.extname=function(c){return s.exec(c).slice(1)[3]};var g="b"==="ab".substr(-1)?function(c,f,m){return c.substr(f,m)}:function(c,f,m){0>f&&(f=c.length+f);return c.substr(f,m)}}).call(this,k("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(k,s,l){l.SourceMapGenerator=k("./source-map/source-map-generator").SourceMapGenerator;
|
||||
l.SourceMapConsumer=k("./source-map/source-map-consumer").SourceMapConsumer;l.SourceNode=k("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":13,"./source-map/source-map-generator":14,"./source-map/source-node":15}],9:[function(k,s,l){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,l){function g(){this._array=[];this._set={}}var c=e("./util");g.fromArray=function(c,m){for(var a=new g,b=0,d=c.length;b<d;b++)a.add(c[b],m);return a};g.prototype.add=function(f,
|
||||
m){var a=this.has(f),b=this._array.length;a&&!m||this._array.push(f);a||(this._set[c.toSetString(f)]=b)};g.prototype.has=function(f){return Object.prototype.hasOwnProperty.call(this._set,c.toSetString(f))};g.prototype.indexOf=function(f){if(this.has(f))return this._set[c.toSetString(f)];throw Error('"'+f+'" is not in the set.');};g.prototype.at=function(c){if(0<=c&&c<this._array.length)return this._array[c];throw Error("No element indexed by "+c);};g.prototype.toArray=function(){return this._array.slice()};
|
||||
k.ArraySet=g})},{"./util":16,amdefine:17}],10:[function(k,s,l){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,l){var g=e("./base64");k.encode=function(c){var f="",e=0>c?(-c<<1)+1:(c<<1)+0;do c=e&31,e>>>=5,0<e&&(c|=32),f+=g.encode(c);while(0<e);return f};k.decode=function(c){var f=0,e=c.length,a=0,b=0,d,k;do{if(f>=e)throw Error("Expected more digits in base 64 VLQ value.");k=g.decode(c.charAt(f++));d=!!(k&32);k&=31;a+=k<<b;b+=5}while(d);e=a>>1;return{value:1===(a&1)?-e:e,rest:c.slice(f)}}})},
|
||||
{"./base64":11,amdefine:17}],11:[function(k,s,l){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,l){var g={},c={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(f,e){g[f]=e;c[e]=f});k.encode=function(f){if(f in c)return c[f];throw new TypeError("Must be between 0 and 63: "+f);};k.decode=function(c){if(c in g)return g[c];throw new TypeError("Not a valid base 64 digit: "+c);}})},{amdefine:17}],12:[function(k,s,l){if("function"!==typeof e)var e=
|
||||
k("amdefine")(s,k);e(function(e,k,l){function g(c,f,e,a,b){var d=Math.floor((f-c)/2)+c,k=b(e,a[d],!0);return 0===k?a[d]:0<k?1<f-d?g(d,f,e,a,b):a[d]:1<d-c?g(c,d,e,a,b):0>c?null:a[c]}k.search=function(c,f,e){return 0<f.length?g(-1,f.length,c,f,e):null}})},{amdefine:17}],13:[function(k,s,l){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,l){function g(b){var a=b;"string"===typeof b&&(a=JSON.parse(b.replace(/^\)\]\}'/,"")));b=c.getArg(a,"version");var f=c.getArg(a,"sources"),e=c.getArg(a,
|
||||
"names",[]),g=c.getArg(a,"sourceRoot",null),k=c.getArg(a,"sourcesContent",null),v=c.getArg(a,"mappings"),a=c.getArg(a,"file",null);if(b!=this._version)throw Error("Unsupported version: "+b);this._names=m.fromArray(e,!0);this._sources=m.fromArray(f,!0);this.sourceRoot=g;this.sourcesContent=k;this._mappings=v;this.file=a}var c=e("./util"),f=e("./binary-search"),m=e("./array-set").ArraySet,a=e("./base64-vlq");g.fromSourceMap=function(b){var a=Object.create(g.prototype);a._names=m.fromArray(b._names.toArray(),
|
||||
!0);a._sources=m.fromArray(b._sources.toArray(),!0);a.sourceRoot=b._sourceRoot;a.sourcesContent=b._generateSourcesContent(a._sources.toArray(),a.sourceRoot);a.file=b._file;a.__generatedMappings=b._mappings.slice().sort(c.compareByGeneratedPositions);a.__originalMappings=b._mappings.slice().sort(c.compareByOriginalPositions);return a};g.prototype._version=3;Object.defineProperty(g.prototype,"sources",{get:function(){return this._sources.toArray().map(function(b){return this.sourceRoot?c.join(this.sourceRoot,
|
||||
b):b},this)}});g.prototype.__generatedMappings=null;Object.defineProperty(g.prototype,"_generatedMappings",{get:function(){this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot));return this.__generatedMappings}});g.prototype.__originalMappings=null;Object.defineProperty(g.prototype,"_originalMappings",{get:function(){this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,
|
||||
this.sourceRoot));return this.__originalMappings}});g.prototype._parseMappings=function(b,d){for(var f=1,e=0,g=0,m=0,k=0,x=0,l=/^[,;]/,r=b,w;0<r.length;)if(";"===r.charAt(0))f++,r=r.slice(1),e=0;else if(","===r.charAt(0))r=r.slice(1);else{w={};w.generatedLine=f;r=a.decode(r);w.generatedColumn=e+r.value;e=w.generatedColumn;r=r.rest;if(0<r.length&&!l.test(r.charAt(0))){r=a.decode(r);w.source=this._sources.at(k+r.value);k+=r.value;r=r.rest;if(0===r.length||l.test(r.charAt(0)))throw Error("Found a source, but no line and column");
|
||||
r=a.decode(r);w.originalLine=g+r.value;g=w.originalLine;w.originalLine+=1;r=r.rest;if(0===r.length||l.test(r.charAt(0)))throw Error("Found a source and line, but no column");r=a.decode(r);w.originalColumn=m+r.value;m=w.originalColumn;r=r.rest;0<r.length&&!l.test(r.charAt(0))&&(r=a.decode(r),w.name=this._names.at(x+r.value),x+=r.value,r=r.rest)}this.__generatedMappings.push(w);"number"===typeof w.originalLine&&this.__originalMappings.push(w)}this.__generatedMappings.sort(c.compareByGeneratedPositions);
|
||||
this.__originalMappings.sort(c.compareByOriginalPositions)};g.prototype._findMapping=function(b,a,c,e,g){if(0>=b[c])throw new TypeError("Line must be greater than or equal to 1, got "+b[c]);if(0>b[e])throw new TypeError("Column must be greater than or equal to 0, got "+b[e]);return f.search(b,a,g)};g.prototype.originalPositionFor=function(b){b={generatedLine:c.getArg(b,"line"),generatedColumn:c.getArg(b,"column")};if(b=this._findMapping(b,this._generatedMappings,"generatedLine","generatedColumn",
|
||||
c.compareByGeneratedPositions)){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}};g.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 f=b.replace(/^file:\/\//,"");if("file"==a.scheme&&this._sources.has(f))return this.sourcesContent[this._sources.indexOf(f)];if((!a.path||"/"==a.path)&&this._sources.has("/"+b))return this.sourcesContent[this._sources.indexOf("/"+b)]}throw Error('"'+b+'" is not in the SourceMap.');};g.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",c.compareByOriginalPositions))?{line:c.getArg(b,"generatedLine",null),column:c.getArg(b,"generatedColumn",null)}:{line:null,column:null}};g.GENERATED_ORDER=1;g.ORIGINAL_ORDER=2;g.prototype.eachMapping=function(b,a,f){a=a||null;switch(f||g.GENERATED_ORDER){case g.GENERATED_ORDER:f=this._generatedMappings;break;case g.ORIGINAL_ORDER:f=this._originalMappings;break;default:throw Error("Unknown order of iteration.");
|
||||
}var e=this.sourceRoot;f.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,a)};k.SourceMapConsumer=g})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(k,s,l){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,l){function g(a){this._file=f.getArg(a,"file");this._sourceRoot=
|
||||
f.getArg(a,"sourceRoot",null);this._sources=new m;this._names=new m;this._mappings=[];this._sourcesContents=null}var c=e("./base64-vlq"),f=e("./util"),m=e("./array-set").ArraySet;g.prototype._version=3;g.fromSourceMap=function(a){var b=a.sourceRoot,d=new g({file:a.file,sourceRoot:b});a.eachMapping(function(a){var c={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source&&(c.source=a.source,b&&(c.source=f.relative(b,c.source)),c.original={line:a.originalLine,column:a.originalColumn},a.name&&
|
||||
(c.name=a.name));d.addMapping(c)});a.sources.forEach(function(b){var c=a.sourceContentFor(b);c&&d.setSourceContent(b,c)});return d};g.prototype.addMapping=function(a){var b=f.getArg(a,"generated"),d=f.getArg(a,"original",null),c=f.getArg(a,"source",null);a=f.getArg(a,"name",null);this._validateMapping(b,d,c,a);c&&!this._sources.has(c)&&this._sources.add(c);a&&!this._names.has(a)&&this._names.add(a);this._mappings.push({generatedLine:b.line,generatedColumn:b.column,originalLine:null!=d&&d.line,originalColumn:null!=
|
||||
d&&d.column,source:c,name:a})};g.prototype.setSourceContent=function(a,b){var d=a;this._sourceRoot&&(d=f.relative(this._sourceRoot,d));null!==b?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[f.toSetString(d)]=b):(delete this._sourcesContents[f.toSetString(d)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};g.prototype.applySourceMap=function(a,b){b||(b=a.file);var d=this._sourceRoot;d&&(b=f.relative(d,b));var c=new m,e=new m;this._mappings.forEach(function(g){if(g.source===
|
||||
b&&g.originalLine){var k=a.originalPositionFor({line:g.originalLine,column:g.originalColumn});null!==k.source&&(g.source=d?f.relative(d,k.source):k.source,g.originalLine=k.line,g.originalColumn=k.column,null!==k.name&&null!==g.name&&(g.name=k.name))}(k=g.source)&&!c.has(k)&&c.add(k);(g=g.name)&&!e.has(g)&&e.add(g)},this);this._sources=c;this._names=e;a.sources.forEach(function(b){var c=a.sourceContentFor(b);c&&(d&&(b=f.relative(d,b)),this.setSourceContent(b,c))},this)};g.prototype._validateMapping=
|
||||
function(a,b,d,c){if(!(a&&"line"in a&&"column"in a&&0<a.line&&0<=a.column&&!b&&!d&&!c||a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&0<a.line&&0<=a.column&&0<b.line&&0<=b.column&&d))throw Error("Invalid mapping: "+JSON.stringify({generated:a,source:d,original:b,name:c}));};g.prototype._serializeMappings=function(){var a=0,b=1,d=0,e=0,g=0,k=0,m="",v;this._mappings.sort(f.compareByGeneratedPositions);for(var x=0,l=this._mappings.length;x<l;x++){v=this._mappings[x];if(v.generatedLine!==b)for(a=
|
||||
0;v.generatedLine!==b;)m+=";",b++;else if(0<x){if(!f.compareByGeneratedPositions(v,this._mappings[x-1]))continue;m+=","}m+=c.encode(v.generatedColumn-a);a=v.generatedColumn;v.source&&(m+=c.encode(this._sources.indexOf(v.source)-k),k=this._sources.indexOf(v.source),m+=c.encode(v.originalLine-1-e),e=v.originalLine-1,m+=c.encode(v.originalColumn-d),d=v.originalColumn,v.name&&(m+=c.encode(this._names.indexOf(v.name)-g),g=this._names.indexOf(v.name)))}return m};g.prototype._generateSourcesContent=function(a,
|
||||
b){return a.map(function(a){if(!this._sourcesContents)return null;b&&(a=f.relative(b,a));a=f.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,a)?this._sourcesContents[a]:null},this)};g.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=this._generateSourcesContent(a.sources,
|
||||
a.sourceRoot));return a};g.prototype.toString=function(){return JSON.stringify(this)};k.SourceMapGenerator=g})},{"./array-set":9,"./base64-vlq":10,"./util":16,amdefine:17}],15:[function(k,s,l){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,l){function g(c,a,b,d,e){this.children=[];this.sourceContents={};this.line=void 0===c?null:c;this.column=void 0===a?null:a;this.source=void 0===b?null:b;this.name=void 0===e?null:e;null!=d&&this.add(d)}var c=e("./source-map-generator").SourceMapGenerator,
|
||||
f=e("./util");g.fromStringWithSourceMap=function(c,a){function b(b,a){null===b||void 0===b.source?d.add(a):d.add(new g(b.originalLine,b.originalColumn,b.source,a,b.name))}var d=new g,e=c.split("\n"),f=1,k=0,l=null;a.eachMapping(function(a){if(null===l){for(;f<a.generatedLine;)d.add(e.shift()+"\n"),f++;if(k<a.generatedColumn){var c=e[0];d.add(c.substr(0,a.generatedColumn));e[0]=c.substr(a.generatedColumn);k=a.generatedColumn}}else{if(f<a.generatedLine){var g="";do g+=e.shift()+"\n",f++,k=0;while(f<
|
||||
a.generatedLine);k<a.generatedColumn&&(c=e[0],g+=c.substr(0,a.generatedColumn),e[0]=c.substr(a.generatedColumn),k=a.generatedColumn)}else c=e[0],g=c.substr(0,a.generatedColumn-k),e[0]=c.substr(a.generatedColumn-k),k=a.generatedColumn;b(l,g)}l=a},this);b(l,e.join("\n"));a.sources.forEach(function(b){var c=a.sourceContentFor(b);c&&d.setSourceContent(b,c)});return d};g.prototype.add=function(c){if(Array.isArray(c))c.forEach(function(a){this.add(a)},this);else if(c instanceof g||"string"===typeof c)c&&
|
||||
this.children.push(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this};g.prototype.prepend=function(c){if(Array.isArray(c))for(var a=c.length-1;0<=a;a--)this.prepend(c[a]);else if(c instanceof g||"string"===typeof c)this.children.unshift(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this};g.prototype.walk=function(c){for(var a,b=0,d=this.children.length;b<d;b++)a=
|
||||
this.children[b],a instanceof g?a.walk(c):""!==a&&c(a,{source:this.source,line:this.line,column:this.column,name:this.name})};g.prototype.join=function(c){var a,b,d=this.children.length;if(0<d){a=[];for(b=0;b<d-1;b++)a.push(this.children[b]),a.push(c);a.push(this.children[b]);this.children=a}return this};g.prototype.replaceRight=function(c,a){var b=this.children[this.children.length-1];b instanceof g?b.replaceRight(c,a):"string"===typeof b?this.children[this.children.length-1]=b.replace(c,a):this.children.push("".replace(c,
|
||||
a));return this};g.prototype.setSourceContent=function(c,a){this.sourceContents[f.toSetString(c)]=a};g.prototype.walkSourceContents=function(c){for(var a=0,b=this.children.length;a<b;a++)this.children[a]instanceof g&&this.children[a].walkSourceContents(c);for(var d=Object.keys(this.sourceContents),a=0,b=d.length;a<b;a++)c(f.fromSetString(d[a]),this.sourceContents[d[a]])};g.prototype.toString=function(){var c="";this.walk(function(a){c+=a});return c};g.prototype.toStringWithSourceMap=function(e){var a=
|
||||
"",b=1,d=0,f=new c(e),g=!1,k=null,l=null,v=null,x=null;this.walk(function(c,e){a+=c;null!==e.source&&null!==e.line&&null!==e.column?(k===e.source&&l===e.line&&v===e.column&&x===e.name||f.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:b,column:d},name:e.name}),k=e.source,l=e.line,v=e.column,x=e.name,g=!0):g&&(f.addMapping({generated:{line:b,column:d}}),k=null,g=!1);c.split("").forEach(function(a){"\n"===a?(b++,d=0):d++})});this.walkSourceContents(function(b,a){f.setSourceContent(b,
|
||||
a)});return{code:a,map:f}};k.SourceNode=g})},{"./source-map-generator":14,"./util":16,amdefine:17}],16:[function(k,s,l){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,l){function g(b){return(b=b.match(m))?{scheme:b[1],auth:b[3],host:b[4],port:b[6],path:b[7]}:null}function c(b){var a=b.scheme+"://";b.auth&&(a+=b.auth+"@");b.host&&(a+=b.host);b.port&&(a+=":"+b.port);b.path&&(a+=b.path);return a}function f(a,c){var e=a||"",f=c||"";return(e>f)-(e<f)}k.getArg=function(a,c,e){if(c in a)return a[c];
|
||||
if(3===arguments.length)return e;throw Error('"'+c+'" is a required argument.');};var m=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/,a=/^data:.+\,.+/;k.urlParse=g;k.urlGenerate=c;k.join=function(b,d){var e;return d.match(m)||d.match(a)?d:"/"===d.charAt(0)&&(e=g(b))?(e.path=d,c(e)):b.replace(/\/$/,"")+"/"+d};k.toSetString=function(a){return"$"+a};k.fromSetString=function(a){return a.substr(1)};k.relative=function(a,c){a=a.replace(/\/$/,"");var e=g(a);return"/"==c.charAt(0)&&e&&"/"==e.path?
|
||||
c.slice(1):0===c.indexOf(a+"/")?c.substr(a.length+1):c};k.compareByOriginalPositions=function(a,c,e){var g;return(g=f(a.source,c.source))||(g=a.originalLine-c.originalLine)||(g=a.originalColumn-c.originalColumn)||e||(g=f(a.name,c.name))?g:(g=a.generatedLine-c.generatedLine)?g:a.generatedColumn-c.generatedColumn};k.compareByGeneratedPositions=function(a,c,e){var g;return(g=a.generatedLine-c.generatedLine)||(g=a.generatedColumn-c.generatedColumn)||e||(g=f(a.source,c.source))||(g=a.originalLine-c.originalLine)?
|
||||
g:(g=a.originalColumn-c.originalColumn)?g:f(a.name,c.name)}})},{amdefine:17}],17:[function(k,s,l){(function(e,l){s.exports=function(t,s){function g(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,f;for(e=0;d[e];e+=1)if(f=d[e],"."===f)d.splice(e,1),e-=1;else if(".."===f)if(1!==e||".."!==d[2]&&".."!==d[0])0<e&&(d.splice(e-1,2),e-=2);else break;a=c.join("/")}return a}function c(a){return function(b){return g(b,a)}}function f(a){function b(c){d[a]=
|
||||
c}b.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");};return b}function m(a,b,c){var e,f,g;if(a)f=d[a]={},g={id:a,uri:l,exports:f},e=A(s,f,g,a);else{if(z)throw Error("amdefine with no module ID cannot be called more than once per file.");z=!0;f=t.exports;g=t;e=A(s,f,g,t.id)}b&&(b=b.map(function(a){return e(a)}));b="function"===typeof c?c.apply(g.exports,b):c;void 0!==b&&(g.exports=b,a&&(d[a]=g.exports))}function a(a,c,d){Array.isArray(a)?(d=c,c=a,a=void 0):"string"!==
|
||||
typeof a&&(d=a,a=c=void 0);c&&!Array.isArray(c)&&(d=c,c=void 0);c||(c=["require","exports","module"]);a?b[a]=[a,c,d]:m(a,c,d)}var b={},d={},z=!1,D=k("path"),A,B;A=function(a,b,c,d){function f(g,k){if("string"===typeof g)return B(a,b,c,g,d);g=g.map(function(e){return B(a,b,c,e,d)});e.nextTick(function(){k.apply(null,g)})}f.toUrl=function(a){return 0===a.indexOf(".")?g(a,D.dirname(c.filename)):a};return f};s=s||function(){return t.require.apply(t,arguments)};B=function(a,e,k,l,w){var y=l.indexOf("!"),
|
||||
q=l;if(-1===y){l=g(l,w);if("require"===l)return A(a,e,k,w);if("exports"===l)return e;if("module"===l)return k;if(d.hasOwnProperty(l))return d[l];if(b[l])return m.apply(null,b[l]),d[l];if(a)return a(q);throw Error("No module with ID: "+l);}q=l.substring(0,y);l=l.substring(y+1,l.length);y=B(a,e,k,q,w);l=y.normalize?y.normalize(l,c(w)):g(l,w);d[l]||y.load(l,A(a,e,k,w),f(l),{});return d[l]};a.require=function(a){if(d[a])return d[a];if(b[a])return m.apply(null,b[a]),d[a]};a.amd={};return a}}).call(this,
|
||||
k("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,path:7}],18:[function(k,s,l){(function(e,q){function t(){return"undefined"!==typeof window}function s(a){if(a in C)return C[a];try{if(t()){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);var c=4===b.readyState?b.responseText:null}else c=
|
||||
B.readFileSync(a,"utf8")}catch(d){c=null}return C[a]=c}function g(a,b){if(!a)return b;var c=A.dirname(a),d=/^\w+:\/\/[^\/]*/.exec(c),d=d?d[0]:"";return d+A.resolve(c.slice(d.length),b)}function c(a){var b;a:{if(t()&&(b=new XMLHttpRequest,b.open("GET",a,!1),b.send(null),b=b.getResponseHeader("SourceMap")||b.getResponseHeader("X-SourceMap")))break a;b=s(a);b=(b=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(b))?b[1]:null}if(!b)return null;"data:application/json;base64,"==b.slice(0,29).toLowerCase()?(a=
|
||||
(new q(b.slice(29),"base64")).toString(),b=null):(b=g(a,b),a=s(b,"utf8"));return a?{url:b,map:a}:null}function f(a){var b=r[a.source];if(!b){var d=c(a.source);d&&(b=r[a.source]={url:d.url,map:new D(d.map)},b.map.sourcesContent&&b.map.sources.forEach(function(a,c){var d=b.map.sourcesContent[c];if(d){var e=g(b.url,a);C[e]=d}}))}return b&&(d=b.map.originalPositionFor(a),null!==d.source)?(d.source=g(b.url,d.source),d):a}function m(a){var b=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(a);return b?(a=
|
||||
f({source:b[2],line:b[3],column:b[4]-1}),"eval at "+b[1]+" ("+a.source+":"+a.line+":"+(a.column+1)+")"):(b=/^eval at ([^(]+) \((.+)\)$/.exec(a))?"eval at "+b[1]+" ("+m(b[2])+")":a}function a(a){var b=a.getFileName()||a.getScriptNameOrSourceURL();if(b){var c=f({source:b,line:a.getLineNumber(),column:a.getColumnNumber()-1});return{__proto__:a,getFileName:function(){return c.source},getLineNumber:function(){return c.line},getColumnNumber:function(){return c.column+1},getScriptNameOrSourceURL:function(){return c.source}}}var d=
|
||||
a.isEval()&&a.getEvalOrigin();return d?(d=m(d),{__proto__:a,getEvalOrigin:function(){return d}}):a}function b(b,c){x&&(C={},r={});return b+c.map(function(b){return"\n at "+a(b)}).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=C[a];!d&&B.existsSync(a)&&(d=B.readFileSync(a,"utf8"));if(d&&(d=d.split(/(?:\r\n|\r|\n)/)[c-1]))return"\n"+a+":"+c+"\n"+d+"\n"+Array(b).join(" ")+"^"}return null}function z(a){if(a&&a.stack){var b=d(a);null!==
|
||||
b&&console.log(b);console.log(a.stack)}else console.log("Uncaught exception:",a);e.exit(1)}var D=k("source-map").SourceMapConsumer,A=k("path"),B=k("fs"),v=!1,x=!1,C={},r={};l.wrapCallSite=a;l.getErrorSource=d;l.mapSourcePosition=f;l.retrieveSourceMap=c;l.install=function(a){if(!v){v=!0;Error.prepareStackTrace=b;a=a||{};var d="handleUncaughtExceptions"in a?a.handleUncaughtExceptions:!0;x="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1;a.retrieveFile&&(s=a.retrieveFile);a.retrieveSourceMap&&
|
||||
(c=a.retrieveSourceMap);if(d&&!t())e.on("uncaughtException",z)}}}).call(this,k("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),k("buffer").Buffer)},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,buffer:3,fs:2,path:7,"source-map":8}]},{},[1]);return H});
|
||||
(this.define||function(J,N){this.sourceMapSupport=N()})("browser-source-map-support",function(J){(function h(r,m,e){function p(g,d){if(!m[g]){if(!r[g]){var k="function"==typeof require&&require;if(!d&&k)return k(g,!0);if(u)return u(g,!0);throw Error("Cannot find module '"+g+"'");}k=m[g]={exports:{}};r[g][0].call(k.exports,function(d){var c=r[g][1][d];return p(c?c:d)},k,k.exports,h,r,m,e)}return m[g].exports}for(var u="function"==typeof require&&require,z=0;z<e.length;z++)p(e[z]);return p})({1:[function(h,
|
||||
r,m){J=h("./source-map-support")},{"./source-map-support":18}],2:[function(h,r,m){},{}],3:[function(h,r,m){function e(f,n,w){if(!(this instanceof e))return new e(f,n,w);var a=typeof f;if("base64"===n&&"string"===a)for(f=f.trim?f.trim():f.replace(/^\s+|\s+$/g,"");0!==f.length%4;)f+="=";var b;if("number"===a)b=v(f);else if("string"===a)b=e.byteLength(f,n);else if("object"===a)b=v(f.length);else throw Error("First argument needs to be a number, array or string.");var c;e._useTypedArrays?c=e._augment(new Uint8Array(b)):
|
||||
(c=this,c.length=b,c._isBuffer=!0);if(e._useTypedArrays&&"number"===typeof f.byteLength)c._set(f);else{var d=f;if(x(d)||e.isBuffer(d)||d&&"object"===typeof d&&"number"===typeof d.length)for(n=0;n<b;n++)e.isBuffer(f)?c[n]=f.readUInt8(n):c[n]=f[n];else if("string"===a)c.write(f,0,n);else if("number"===a&&!e._useTypedArrays&&!w)for(n=0;n<b;n++)c[n]=0}return c}function p(f,n,w){var a="";for(w=Math.min(f.length,w);n<w;n++)a+=String.fromCharCode(f[n]);return a}function u(f,n,w,a){a||(q("boolean"===typeof w,
|
||||
"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));a=f.length;if(!(n>=a))return w?(w=f[n],n+1<a&&(w|=f[n+1]<<8)):(w=f[n]<<8,n+1<a&&(w|=f[n+1])),w}function z(f,n,a,c){c||(q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));c=f.length;if(!(n>=c)){var b;a?(n+2<c&&(b=f[n+2]<<16),n+1<c&&(b|=f[n+1]<<8),b|=f[n],n+3<c&&(b+=f[n+3]<<24>>>0)):
|
||||
(n+1<c&&(b=f[n+1]<<16),n+2<c&&(b|=f[n+2]<<8),n+3<c&&(b|=f[n+3]),b+=f[n]<<24>>>0);return b}}function g(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,"Trying to read beyond buffer length"));if(!(n>=f.length))return f=u(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,"Trying to read beyond buffer length"));if(!(n>=
|
||||
f.length))return f=z(f,n,a,!0),f&2147483648?-1*(4294967295-f+1):f}function k(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(n+3<f.length,"Trying to read beyond buffer length"));return H.read(f,n,a,23,4)}function l(f,n,a,b){b||(q("boolean"===typeof a,"missing or invalid endian"),q(n+7<f.length,"Trying to read beyond buffer length"));return H.read(f,n,a,52,8)}function c(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+1<f.length,"trying to write beyond buffer length"),K(n,65535));var d=f.length;if(!(a>=d))for(c=0,d=Math.min(d-a,2);c<d;c++)f[a+c]=(n&255<<8*(b?c:1-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<f.length,"trying to write beyond buffer length"),K(n,4294967295));var d=f.length;if(!(a>=d))for(c=0,d=Math.min(d-a,4);c<d;c++)f[a+c]=n>>>
|
||||
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,"Trying to write beyond buffer length"),L(n,32767,-32768));a>=f.length||(0<=n?c(f,n,a,b,d):c(f,65535+n+1,a,b,d))}function y(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,"Trying to write beyond buffer length"),
|
||||
L(n,2147483647,-2147483648));b>=f.length||(0<=n?a(f,n,b,c,d):a(f,4294967295+n+1,b,c,d))}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+3<f.length,"Trying to write beyond buffer length"),M(n,3.4028234663852886E38,-3.4028234663852886E38));a>=f.length||H.write(f,n,a,b,23,4)}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+7<f.length,"Trying to write beyond buffer length"),M(n,1.7976931348623157E308,-1.7976931348623157E308));a>=f.length||H.write(f,n,a,b,52,8)}function C(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 v(f){f=~~Math.ceil(+f);return 0>f?0:f}function x(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 s(f){for(var a=[],b=0;b<f.length;b++){var c=f.charCodeAt(b);if(127>=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<c.length;d++)a.push(parseInt(c[d],16))}}return a}function D(f){for(var a=[],b=0;b<f.length;b++)a.push(f.charCodeAt(b)&255);return a}function E(f,a,b,c){for(var d=0;d<c&&!(d+b>=a.length||d>=f.length);d++)a[d+b]=f[d];return d}function F(f){try{return decodeURIComponent(f)}catch(a){return String.fromCharCode(65533)}}
|
||||
function K(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 L(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 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")}function q(f,a){if(!f)throw Error(a||"Failed assertion");}var I=h("base64-js"),H=h("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=s(f).length;break;case "ascii":case "binary":case "raw":b=f.length;break;case "base64":b=I.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(x(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;b<f.length;b++)a+=f[b].length;var c=new e(a),d=0;for(b=0;b<f.length;b++){var k=f[b];k.copy(c,d);d+=k.length}return c};e.prototype.write=function(f,a,b,c){if(isFinite(a))isFinite(b)||
|
||||
(c=b,b=void 0);else{var d=c;c=a;a=b;b=d}a=Number(a)||0;d=this.length-a;b?(b=Number(b),b>d&&(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<b;c++)d=parseInt(f.substr(2*c,2),16),q(!isNaN(d),"Invalid hex string"),this[a+c]=d;e._charsWritten=2*c;f=c;break;case "utf8":case "utf-8":f=e._charsWritten=E(s(f),this,a,b);break;case "ascii":f=e._charsWritten=E(D(f),
|
||||
this,a,b);break;case "binary":f=e._charsWritten=E(D(f),this,a,b);break;case "base64":f=e._charsWritten=E(I.toByteArray(f),this,a,b);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":for(var k,d=[],l=0;l<f.length;l++)k=f.charCodeAt(l),c=k>>8,k%=256,d.push(k),d.push(c);f=e._charsWritten=E(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<b;f++)a+=G(this[f]);b=a;break;case "utf8":case "utf-8":var c=a;a=f="";for(b=Math.min(this.length,b);c<b;c++)127>=this[c]?(f+=F(a)+String.fromCharCode(this[c]),a=""):a+="%"+this[c].toString(16);b=f+F(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?I.fromByteArray(this):I.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<b.length;a+=2)f+=String.fromCharCode(b[a]+256*b[a+1]);b=f;break;default:throw Error("Unknown encoding");}return b};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};e.prototype.copy=function(a,b,c,d){c||(c=0);d||0===d||(d=this.length);b||(b=0);if(d!==c&&0!==a.length&&0!==this.length)if(q(d>=c,"sourceEnd < sourceStart"),q(0<=b&&b<a.length,"targetStart out of bounds"),q(0<=c&&c<this.length,"sourceStart out of bounds"),
|
||||
q(0<=d&&d<=this.length,"sourceEnd out of bounds"),d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c),d-=c,100>d||!e._useTypedArrays)for(var k=0;k<d;k++)a[k+b]=this[k+c];else a._set(this.subarray(c,c+d),b)};e.prototype.slice=function(a,b){var c=this.length;a=C(a,c,0);b=C(b,c,c);if(e._useTypedArrays)return e._augment(this.subarray(a,b));for(var c=b-a,d=new e(c,void 0,!0),k=0;k<c;k++)d[k]=this[k+a];return d};e.prototype.get=function(a){console.log(".get() is deprecated. Access using array indexes instead.");
|
||||
return this.readUInt8(a)};e.prototype.set=function(a,b){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(a,b)};e.prototype.readUInt8=function(a,b){b||(q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this[a]};e.prototype.readUInt16LE=function(a,b){return u(this,a,!0,b)};e.prototype.readUInt16BE=function(a,b){return u(this,a,!1,b)};e.prototype.readUInt32LE=function(a,b){return z(this,
|
||||
a,!0,b)};e.prototype.readUInt32BE=function(a,b){return z(this,a,!1,b)};e.prototype.readInt8=function(a,b){b||(q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this[a]&128?-1*(255-this[a]+1):this[a]};e.prototype.readInt16LE=function(a,b){return g(this,a,!0,b)};e.prototype.readInt16BE=function(a,b){return g(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 k(this,a,!0,b)};e.prototype.readFloatBE=function(a,b){return k(this,a,!1,b)};e.prototype.readDoubleLE=function(a,b){return l(this,a,!0,b)};e.prototype.readDoubleBE=function(a,b){return l(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,"trying to write beyond buffer length"),K(a,255));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,"Trying to write beyond buffer length"),L(a,127,-128));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){y(this,a,b,!0,c)};e.prototype.writeInt32BE=function(a,b,c){y(this,a,b,!1,c)};e.prototype.writeFloatLE=function(a,b,c){B(this,a,b,!0,c)};e.prototype.writeFloatBE=function(a,b,c){B(this,a,b,!1,c)};e.prototype.writeDoubleLE=function(a,b,c){A(this,a,b,!0,c)};e.prototype.writeDoubleBE=function(a,b,c){A(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<this.length,"start out of bounds"),q(0<=c&&c<=this.length,"end out of bounds");b<c;b++)this[b]=a};e.prototype.inspect=function(){for(var a=[],b=this.length,c=0;c<b;c++)if(a[c]=G(this[c]),c===m.INSPECT_MAX_BYTES){a[c+1]="...";break}return"<Buffer "+a.join(" ")+">"};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;b<c;b+=1)a[b]=this[b];return a.buffer}throw Error("Buffer.toArrayBuffer not supported in this browser");};var t=e.prototype;e._augment=function(a){a._isBuffer=!0;a._get=a.get;a._set=a.set;a.get=t.get;a.set=t.set;a.write=t.write;a.toString=t.toString;a.toLocaleString=t.toString;a.toJSON=t.toJSON;a.copy=t.copy;a.slice=t.slice;a.readUInt8=t.readUInt8;a.readUInt16LE=t.readUInt16LE;a.readUInt16BE=t.readUInt16BE;a.readUInt32LE=t.readUInt32LE;a.readUInt32BE=
|
||||
t.readUInt32BE;a.readInt8=t.readInt8;a.readInt16LE=t.readInt16LE;a.readInt16BE=t.readInt16BE;a.readInt32LE=t.readInt32LE;a.readInt32BE=t.readInt32BE;a.readFloatLE=t.readFloatLE;a.readFloatBE=t.readFloatBE;a.readDoubleLE=t.readDoubleLE;a.readDoubleBE=t.readDoubleBE;a.writeUInt8=t.writeUInt8;a.writeUInt16LE=t.writeUInt16LE;a.writeUInt16BE=t.writeUInt16BE;a.writeUInt32LE=t.writeUInt32LE;a.writeUInt32BE=t.writeUInt32BE;a.writeInt8=t.writeInt8;a.writeInt16LE=t.writeInt16LE;a.writeInt16BE=t.writeInt16BE;
|
||||
a.writeInt32LE=t.writeInt32LE;a.writeInt32BE=t.writeInt32BE;a.writeFloatLE=t.writeFloatLE;a.writeFloatBE=t.writeFloatBE;a.writeDoubleLE=t.writeDoubleLE;a.writeDoubleBE=t.writeDoubleBE;a.fill=t.fill;a.inspect=t.inspect;a.toArrayBuffer=t.toArrayBuffer;return a}},{"base64-js":4,ieee754:5}],4:[function(h,r,m){(function(e){function p(e){e=e.charCodeAt(0);if(43===e)return 62;if(47===e)return 63;if(48>e)return-1;if(58>e)return e-48+52;if(91>e)return e-65;if(123>e)return e-97+26}var u="undefined"!==typeof Uint8Array?
|
||||
Uint8Array:Array;e.toByteArray=function(e){function g(c){a[b++]=c}var d,k,l,c,a;if(0<e.length%4)throw Error("Invalid string. Length must be a multiple of 4");d=e.length;c="="===e.charAt(d-2)?2:"="===e.charAt(d-1)?1:0;a=new u(3*e.length/4-c);k=0<c?e.length-4:e.length;var b=0;for(d=0;d<k;d+=4)l=p(e.charAt(d))<<18|p(e.charAt(d+1))<<12|p(e.charAt(d+2))<<6|p(e.charAt(d+3)),g((l&16711680)>>16),g((l&65280)>>8),g(l&255);2===c?(l=p(e.charAt(d))<<2|p(e.charAt(d+1))>>4,g(l&255)):1===c&&(l=p(e.charAt(d))<<10|
|
||||
p(e.charAt(d+1))<<4|p(e.charAt(d+2))>>2,g(l>>8&255),g(l&255));return a};e.fromByteArray=function(e){var g,d=e.length%3,k="",l,c;g=0;for(c=e.length-d;g<c;g+=3)l=(e[g]<<16)+(e[g+1]<<8)+e[g+2],l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l&
|
||||
63),k+=l;switch(d){case 1:l=e[e.length-1];k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>2);k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l<<4&63);k+="==";break;case 2:l=(e[e.length-2]<<8)+e[e.length-1],k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>10),k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l>>4&63),k+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(l<<
|
||||
2&63),k+="="}return k}})("undefined"===typeof m?this.base64js={}:m)},{}],5:[function(h,r,m){m.read=function(e,p,u,h,g){var d;d=8*g-h-1;var k=(1<<d)-1,l=k>>1,c=-7;g=u?g-1:0;var a=u?-1:1,b=e[p+g];g+=a;u=b&(1<<-c)-1;b>>=-c;for(c+=d;0<c;u=256*u+e[p+g],g+=a,c-=8);d=u&(1<<-c)-1;u>>=-c;for(c+=h;0<c;d=256*d+e[p+g],g+=a,c-=8);if(0===u)u=1-l;else{if(u===k)return d?NaN:Infinity*(b?-1:1);d+=Math.pow(2,h);u-=l}return(b?-1:1)*d*Math.pow(2,u-h)};m.write=function(e,p,u,h,g,d){var k,l=8*d-g-1,c=(1<<l)-1,a=c>>1,b=
|
||||
23===g?Math.pow(2,-24)-Math.pow(2,-77):0;d=h?0:d-1;var y=h?1:-1,B=0>p||0===p&&0>1/p?1:0;p=Math.abs(p);isNaN(p)||Infinity===p?(p=isNaN(p)?1:0,h=c):(h=Math.floor(Math.log(p)/Math.LN2),1>p*(k=Math.pow(2,-h))&&(h--,k*=2),p=1<=h+a?p+b/k:p+b*Math.pow(2,1-a),2<=p*k&&(h++,k/=2),h+a>=c?(p=0,h=c):1<=h+a?(p=(p*k-1)*Math.pow(2,g),h+=a):(p=p*Math.pow(2,a-1)*Math.pow(2,g),h=0));for(;8<=g;e[u+d]=p&255,d+=y,p/=256,g-=8);h=h<<g|p;for(l+=g;0<l;e[u+d]=h&255,d+=y,h/=256,l-=8);e[u+d-y]|=128*B}},{}],6:[function(h,r,m){function e(){}
|
||||
h=r.exports={};h.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(e){return window.setImmediate(e)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var e=[];window.addEventListener("message",function(h){var m=h.source;m!==window&&null!==m||"process-tick"!==h.data||(h.stopPropagation(),0<e.length&&e.shift()())},!0);return function(h){e.push(h);window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}();h.title="browser";
|
||||
h.browser=!0;h.env={};h.argv=[];h.on=e;h.once=e;h.off=e;h.emit=e;h.binding=function(e){throw Error("process.binding is not supported");};h.cwd=function(){return"/"};h.chdir=function(e){throw Error("process.chdir is not supported");}},{}],7:[function(h,r,m){(function(e){function h(d,k){for(var e=0,c=d.length-1;0<=c;c--){var a=d[c];"."===a?d.splice(c,1):".."===a?(d.splice(c,1),e++):e&&(d.splice(c,1),e--)}if(k)for(;e--;e)d.unshift("..");return d}function u(d,k){if(d.filter)return d.filter(k);for(var e=
|
||||
[],c=0;c<d.length;c++)k(d[c],c,d)&&e.push(d[c]);return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;m.resolve=function(){for(var d="",k=!1,l=arguments.length-1;-1<=l&&!k;l--){var c=0<=l?arguments[l]:e.cwd();if("string"!==typeof c)throw new TypeError("Arguments to path.resolve must be strings");c&&(d=c+"/"+d,k="/"===c.charAt(0))}d=h(u(d.split("/"),function(a){return!!a}),!k).join("/");return(k?"/":"")+d||"."};m.normalize=function(d){var e=m.isAbsolute(d),l="/"===g(d,-1);
|
||||
(d=h(u(d.split("/"),function(c){return!!c}),!e).join("/"))||e||(d=".");d&&l&&(d+="/");return(e?"/":"")+d};m.isAbsolute=function(d){return"/"===d.charAt(0)};m.join=function(){var d=Array.prototype.slice.call(arguments,0);return m.normalize(u(d,function(d,e){if("string"!==typeof d)throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))};m.relative=function(d,e){function l(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)}d=m.resolve(d).substr(1);e=m.resolve(e).substr(1);for(var c=l(d.split("/")),a=l(e.split("/")),b=Math.min(c.length,a.length),g=b,h=0;h<b;h++)if(c[h]!==a[h]){g=h;break}b=[];for(h=g;h<c.length;h++)b.push("..");b=b.concat(a.slice(g));return b.join("/")};m.sep="/";m.delimiter=":";m.dirname=function(d){var e=r.exec(d).slice(1);d=e[0];e=e[1];if(!d&&!e)return".";e&&(e=e.substr(0,e.length-1));return d+e};m.basename=function(d,e){var l=r.exec(d).slice(1)[2];e&&l.substr(-1*e.length)===e&&(l=l.substr(0,
|
||||
l.length-e.length));return l};m.extname=function(d){return r.exec(d).slice(1)[3]};var g="b"==="ab".substr(-1)?function(d,e,l){return d.substr(e,l)}:function(d,e,l){0>e&&(e=d.length+e);return d.substr(e,l)}}).call(this,h("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(h,r,m){m.SourceMapGenerator=h("./source-map/source-map-generator").SourceMapGenerator;
|
||||
m.SourceMapConsumer=h("./source-map/source-map-consumer").SourceMapConsumer;m.SourceNode=h("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":13,"./source-map/source-map-generator":14,"./source-map/source-node":15}],9:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(){this._array=[];this._set={}}var d=e("./util");g.fromArray=function(d,e){for(var c=new g,a=0,b=d.length;a<b;a++)c.add(d[a],e);return c};g.prototype.add=function(e,
|
||||
l){var c=this.has(e),a=this._array.length;c&&!l||this._array.push(e);c||(this._set[d.toSetString(e)]=a)};g.prototype.has=function(e){return Object.prototype.hasOwnProperty.call(this._set,d.toSetString(e))};g.prototype.indexOf=function(e){if(this.has(e))return this._set[d.toSetString(e)];throw Error('"'+e+'" is not in the set.');};g.prototype.at=function(d){if(0<=d&&d<this._array.length)return this._array[d];throw Error("No element indexed by "+d);};g.prototype.toArray=function(){return this._array.slice()};
|
||||
h.ArraySet=g})},{"./util":16,amdefine:17}],10:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){var g=e("./base64");h.encode=function(d){var e="",l=0>d?(-d<<1)+1:(d<<1)+0;do d=l&31,l>>>=5,0<l&&(d|=32),e+=g.encode(d);while(0<l);return e};h.decode=function(d){var e=0,l=d.length,c=0,a=0,b,h;do{if(e>=l)throw Error("Expected more digits in base 64 VLQ value.");h=g.decode(d.charAt(e++));b=!!(h&32);h&=31;c+=h<<a;a+=5}while(b);l=c>>1;return{value:1===(c&1)?-l:l,rest:d.slice(e)}}})},
|
||||
{"./base64":11,amdefine:17}],11:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){var g={},d={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(e,l){g[e]=l;d[l]=e});h.encode=function(e){if(e in d)return d[e];throw new TypeError("Must be between 0 and 63: "+e);};h.decode=function(d){if(d in g)return g[d];throw new TypeError("Not a valid base 64 digit: "+d);}})},{amdefine:17}],12:[function(h,r,m){if("function"!==typeof e)var e=
|
||||
h("amdefine")(r,h);e(function(e,h,m){function g(d,e,l,c,a){var b=Math.floor((e-d)/2)+d,h=a(l,c[b],!0);return 0===h?c[b]:0<h?1<e-b?g(b,e,l,c,a):c[b]:1<b-d?g(d,b,l,c,a):0>d?null:c[d]}h.search=function(d,e,l){return 0<e.length?g(-1,e.length,d,e,l):null}})},{amdefine:17}],13:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(a){var b=a;"string"===typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));a=d.getArg(b,"version");var c=d.getArg(b,"sources"),e=d.getArg(b,
|
||||
"names",[]),g=d.getArg(b,"sourceRoot",null),h=d.getArg(b,"sourcesContent",null),k=d.getArg(b,"mappings"),b=d.getArg(b,"file",null);if(a!=this._version)throw Error("Unsupported version: "+a);this._names=l.fromArray(e,!0);this._sources=l.fromArray(c,!0);this.sourceRoot=g;this.sourcesContent=h;this._mappings=k;this.file=b}var d=e("./util"),k=e("./binary-search"),l=e("./array-set").ArraySet,c=e("./base64-vlq");g.fromSourceMap=function(a){var b=Object.create(g.prototype);b._names=l.fromArray(a._names.toArray(),
|
||||
!0);b._sources=l.fromArray(a._sources.toArray(),!0);b.sourceRoot=a._sourceRoot;b.sourcesContent=a._generateSourcesContent(b._sources.toArray(),b.sourceRoot);b.file=a._file;b.__generatedMappings=a._mappings.slice().sort(d.compareByGeneratedPositions);b.__originalMappings=a._mappings.slice().sort(d.compareByOriginalPositions);return b};g.prototype._version=3;Object.defineProperty(g.prototype,"sources",{get:function(){return this._sources.toArray().map(function(a){return this.sourceRoot?d.join(this.sourceRoot,
|
||||
a):a},this)}});g.prototype.__generatedMappings=null;Object.defineProperty(g.prototype,"_generatedMappings",{get:function(){this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot));return this.__generatedMappings}});g.prototype.__originalMappings=null;Object.defineProperty(g.prototype,"_originalMappings",{get:function(){this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,
|
||||
this.sourceRoot));return this.__originalMappings}});g.prototype._parseMappings=function(a,b){for(var e=1,g=0,l=0,h=0,k=0,x=0,m=/^[,;]/,s=a,p;0<s.length;)if(";"===s.charAt(0))e++,s=s.slice(1),g=0;else if(","===s.charAt(0))s=s.slice(1);else{p={};p.generatedLine=e;s=c.decode(s);p.generatedColumn=g+s.value;g=p.generatedColumn;s=s.rest;if(0<s.length&&!m.test(s.charAt(0))){s=c.decode(s);p.source=this._sources.at(k+s.value);k+=s.value;s=s.rest;if(0===s.length||m.test(s.charAt(0)))throw Error("Found a source, but no line and column");
|
||||
s=c.decode(s);p.originalLine=l+s.value;l=p.originalLine;p.originalLine+=1;s=s.rest;if(0===s.length||m.test(s.charAt(0)))throw Error("Found a source and line, but no column");s=c.decode(s);p.originalColumn=h+s.value;h=p.originalColumn;s=s.rest;0<s.length&&!m.test(s.charAt(0))&&(s=c.decode(s),p.name=this._names.at(x+s.value),x+=s.value,s=s.rest)}this.__generatedMappings.push(p);"number"===typeof p.originalLine&&this.__originalMappings.push(p)}this.__generatedMappings.sort(d.compareByGeneratedPositions);
|
||||
this.__originalMappings.sort(d.compareByOriginalPositions)};g.prototype._findMapping=function(a,b,c,d,e){if(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 k.search(a,b,e)};g.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}};g.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.');};g.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}};g.GENERATED_ORDER=1;g.ORIGINAL_ORDER=2;g.prototype.eachMapping=function(a,b,c){b=b||null;switch(c||g.GENERATED_ORDER){case g.GENERATED_ORDER:c=this._generatedMappings;break;case g.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)};h.SourceMapConsumer=g})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(c){this._file=k.getArg(c,"file");this._sourceRoot=
|
||||
k.getArg(c,"sourceRoot",null);this._sources=new l;this._names=new l;this._mappings=[];this._sourcesContents=null}var d=e("./base64-vlq"),k=e("./util"),l=e("./array-set").ArraySet;g.prototype._version=3;g.fromSourceMap=function(c){var a=c.sourceRoot,b=new g({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=k.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};g.prototype.addMapping=function(c){var a=k.getArg(c,"generated"),b=k.getArg(c,"original",null),d=k.getArg(c,"source",null);c=k.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})};g.prototype.setSourceContent=function(c,a){var b=c;this._sourceRoot&&(b=k.relative(this._sourceRoot,b));null!==a?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[k.toSetString(b)]=a):(delete this._sourcesContents[k.toSetString(b)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};g.prototype.applySourceMap=function(c,a){a||(a=c.file);var b=this._sourceRoot;b&&(a=k.relative(b,a));var d=new l,e=new l;this._mappings.forEach(function(g){if(g.source===
|
||||
a&&g.originalLine){var l=c.originalPositionFor({line:g.originalLine,column:g.originalColumn});null!==l.source&&(g.source=b?k.relative(b,l.source):l.source,g.originalLine=l.line,g.originalColumn=l.column,null!==l.name&&null!==g.name&&(g.name=l.name))}(l=g.source)&&!d.has(l)&&d.add(l);(g=g.name)&&!e.has(g)&&e.add(g)},this);this._sources=d;this._names=e;c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&(b&&(a=k.relative(b,a)),this.setSourceContent(a,d))},this)};g.prototype._validateMapping=
|
||||
function(c,a,b,d){if(!(c&&"line"in c&&"column"in c&&0<c.line&&0<=c.column&&!a&&!b&&!d||c&&"line"in c&&"column"in c&&a&&"line"in a&&"column"in a&&0<c.line&&0<=c.column&&0<a.line&&0<=a.column&&b))throw Error("Invalid mapping: "+JSON.stringify({generated:c,source:b,original:a,name:d}));};g.prototype._serializeMappings=function(){var c=0,a=1,b=0,e=0,g=0,l=0,h="",v;this._mappings.sort(k.compareByGeneratedPositions);for(var x=0,p=this._mappings.length;x<p;x++){v=this._mappings[x];if(v.generatedLine!==a)for(c=
|
||||
0;v.generatedLine!==a;)h+=";",a++;else if(0<x){if(!k.compareByGeneratedPositions(v,this._mappings[x-1]))continue;h+=","}h+=d.encode(v.generatedColumn-c);c=v.generatedColumn;v.source&&(h+=d.encode(this._sources.indexOf(v.source)-l),l=this._sources.indexOf(v.source),h+=d.encode(v.originalLine-1-e),e=v.originalLine-1,h+=d.encode(v.originalColumn-b),b=v.originalColumn,v.name&&(h+=d.encode(this._names.indexOf(v.name)-g),g=this._names.indexOf(v.name)))}return h};g.prototype._generateSourcesContent=function(c,
|
||||
a){return c.map(function(b){if(!this._sourcesContents)return null;a&&(b=k.relative(a,b));b=k.toSetString(b);return Object.prototype.hasOwnProperty.call(this._sourcesContents,b)?this._sourcesContents[b]:null},this)};g.prototype.toJSON=function(){var c={version:this._version,file:this._file,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};this._sourceRoot&&(c.sourceRoot=this._sourceRoot);this._sourcesContents&&(c.sourcesContent=this._generateSourcesContent(c.sources,
|
||||
c.sourceRoot));return c};g.prototype.toString=function(){return JSON.stringify(this)};h.SourceMapGenerator=g})},{"./array-set":9,"./base64-vlq":10,"./util":16,amdefine:17}],15:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(d,c,a,b,e){this.children=[];this.sourceContents={};this.line=void 0===d?null:d;this.column=void 0===c?null:c;this.source=void 0===a?null:a;this.name=void 0===e?null:e;null!=b&&this.add(b)}var d=e("./source-map-generator").SourceMapGenerator,
|
||||
k=e("./util");g.fromStringWithSourceMap=function(d,c){function a(a,c){null===a||void 0===a.source?b.add(c):b.add(new g(a.originalLine,a.originalColumn,a.source,c,a.name))}var b=new g,e=d.split("\n"),h=1,k=0,p=null;c.eachMapping(function(c){if(null===p){for(;h<c.generatedLine;)b.add(e.shift()+"\n"),h++;if(k<c.generatedColumn){var d=e[0];b.add(d.substr(0,c.generatedColumn));e[0]=d.substr(c.generatedColumn);k=c.generatedColumn}}else{if(h<c.generatedLine){var g="";do g+=e.shift()+"\n",h++,k=0;while(h<
|
||||
c.generatedLine);k<c.generatedColumn&&(d=e[0],g+=d.substr(0,c.generatedColumn),e[0]=d.substr(c.generatedColumn),k=c.generatedColumn)}else d=e[0],g=d.substr(0,c.generatedColumn-k),e[0]=d.substr(c.generatedColumn-k),k=c.generatedColumn;a(p,g)}p=c},this);a(p,e.join("\n"));c.sources.forEach(function(a){var d=c.sourceContentFor(a);d&&b.setSourceContent(a,d)});return b};g.prototype.add=function(d){if(Array.isArray(d))d.forEach(function(c){this.add(c)},this);else if(d instanceof g||"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};g.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 g||"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};g.prototype.walk=function(d){for(var c,a=0,b=this.children.length;a<b;a++)c=
|
||||
this.children[a],c instanceof g?c.walk(d):""!==c&&d(c,{source:this.source,line:this.line,column:this.column,name:this.name})};g.prototype.join=function(d){var c,a,b=this.children.length;if(0<b){c=[];for(a=0;a<b-1;a++)c.push(this.children[a]),c.push(d);c.push(this.children[a]);this.children=c}return this};g.prototype.replaceRight=function(d,c){var a=this.children[this.children.length-1];a instanceof g?a.replaceRight(d,c):"string"===typeof a?this.children[this.children.length-1]=a.replace(d,c):this.children.push("".replace(d,
|
||||
c));return this};g.prototype.setSourceContent=function(d,c){this.sourceContents[k.toSetString(d)]=c};g.prototype.walkSourceContents=function(d){for(var c=0,a=this.children.length;c<a;c++)this.children[c]instanceof g&&this.children[c].walkSourceContents(d);for(var b=Object.keys(this.sourceContents),c=0,a=b.length;c<a;c++)d(k.fromSetString(b[c]),this.sourceContents[b[c]])};g.prototype.toString=function(){var d="";this.walk(function(c){d+=c});return d};g.prototype.toStringWithSourceMap=function(e){var c=
|
||||
"",a=1,b=0,g=new d(e),h=!1,k=null,p=null,v=null,m=null;this.walk(function(d,e){c+=d;null!==e.source&&null!==e.line&&null!==e.column?(k===e.source&&p===e.line&&v===e.column&&m===e.name||g.addMapping({source:e.source,original:{line:e.line,column:e.column},generated:{line:a,column:b},name:e.name}),k=e.source,p=e.line,v=e.column,m=e.name,h=!0):h&&(g.addMapping({generated:{line:a,column:b}}),k=null,h=!1);d.split("").forEach(function(c){"\n"===c?(a++,b=0):b++})});this.walkSourceContents(function(a,b){g.setSourceContent(a,
|
||||
b)});return{code:c,map:g}};h.SourceNode=g})},{"./source-map-generator":14,"./util":16,amdefine:17}],16:[function(h,r,m){if("function"!==typeof e)var e=h("amdefine")(r,h);e(function(e,h,m){function g(a){return(a=a.match(l))?{scheme:a[1],auth:a[3],host:a[4],port:a[6],path:a[7]}:null}function d(a){var b=a.scheme+"://";a.auth&&(b+=a.auth+"@");a.host&&(b+=a.host);a.port&&(b+=":"+a.port);a.path&&(b+=a.path);return b}function k(a,b){var c=a||"",d=b||"";return(c>d)-(c<d)}h.getArg=function(a,b,c){if(b in a)return a[b];
|
||||
if(3===arguments.length)return c;throw Error('"'+b+'" is a required argument.');};var l=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/,c=/^data:.+\,.+/;h.urlParse=g;h.urlGenerate=d;h.join=function(a,b){var e;return b.match(l)||b.match(c)?b:"/"===b.charAt(0)&&(e=g(a))?(e.path=b,d(e)):a.replace(/\/$/,"")+"/"+b};h.toSetString=function(a){return"$"+a};h.fromSetString=function(a){return a.substr(1)};h.relative=function(a,b){a=a.replace(/\/$/,"");var c=g(a);return"/"==b.charAt(0)&&c&&"/"==c.path?
|
||||
b.slice(1):0===b.indexOf(a+"/")?b.substr(a.length+1):b};h.compareByOriginalPositions=function(a,b,c){var d;return(d=k(a.source,b.source))||(d=a.originalLine-b.originalLine)||(d=a.originalColumn-b.originalColumn)||c||(d=k(a.name,b.name))?d:(d=a.generatedLine-b.generatedLine)?d:a.generatedColumn-b.generatedColumn};h.compareByGeneratedPositions=function(a,b,c){var d;return(d=a.generatedLine-b.generatedLine)||(d=a.generatedColumn-b.generatedColumn)||c||(d=k(a.source,b.source))||(d=a.originalLine-b.originalLine)?
|
||||
d:(d=a.originalColumn-b.originalColumn)?d:k(a.name,b.name)}})},{amdefine:17}],17:[function(h,r,m){(function(e,p){r.exports=function(m,r){function g(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 d(a){return function(b){return g(b,a)}}function k(a){function c(d){b[a]=
|
||||
d}c.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");};return c}function l(a,c,d){var e,g,h;if(a)g=b[a]={},h={id:a,uri:p,exports:g},e=A(r,g,h,a);else{if(y)throw Error("amdefine with no module ID cannot be called more than once per file.");y=!0;g=m.exports;h=m;e=A(r,g,h,m.id)}c&&(c=c.map(function(a){return e(a)}));c="function"===typeof d?d.apply(h.exports,c):d;void 0!==c&&(h.exports=c,a&&(b[a]=h.exports))}function c(b,c,d){Array.isArray(b)?(d=c,c=b,b=void 0):"string"!==
|
||||
typeof b&&(d=b,b=c=void 0);c&&!Array.isArray(c)&&(d=c,c=void 0);c||(c=["require","exports","module"]);b?a[b]=[b,c,d]:l(b,c,d)}var a={},b={},y=!1,B=h("path"),A,C;A=function(a,b,c,d){function h(g,k){if("string"===typeof g)return C(a,b,c,g,d);g=g.map(function(e){return C(a,b,c,e,d)});e.nextTick(function(){k.apply(null,g)})}h.toUrl=function(a){return 0===a.indexOf(".")?g(a,B.dirname(c.filename)):a};return h};r=r||function(){return m.require.apply(m,arguments)};C=function(c,e,h,m,p){var r=m.indexOf("!"),
|
||||
F=m;if(-1===r){m=g(m,p);if("require"===m)return A(c,e,h,p);if("exports"===m)return e;if("module"===m)return h;if(b.hasOwnProperty(m))return b[m];if(a[m])return l.apply(null,a[m]),b[m];if(c)return c(F);throw Error("No module with ID: "+m);}F=m.substring(0,r);m=m.substring(r+1,m.length);r=C(c,e,h,F,p);m=r.normalize?r.normalize(m,d(p)):g(m,p);b[m]||r.load(m,A(c,e,h,p),k(m),{});return b[m]};c.require=function(c){if(b[c])return b[c];if(a[c])return l.apply(null,a[c]),b[c]};c.amd={};return c}}).call(this,
|
||||
h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,path:7}],18:[function(h,r,m){(function(e,p){function r(){return"undefined"!==typeof window}function z(a){if(a in D)return D[a];try{if(r()){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);var c=4===b.readyState?b.responseText:null}else c=
|
||||
x.readFileSync(a,"utf8")}catch(d){c=null}return D[a]=c}function g(a,b){if(!a)return b;var c=v.dirname(a),d=/^\w+:\/\/[^\/]*/.exec(c),d=d?d[0]:"";return d+v.resolve(c.slice(d.length),b)}function d(a){var b;a:{if(r()&&(b=new XMLHttpRequest,b.open("GET",a,!1),b.send(null),b=b.getResponseHeader("SourceMap")||b.getResponseHeader("X-SourceMap")))break a;b=z(a);b=(b=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(b))?b[1]:null}if(!b)return null;"data:application/json;base64,"==b.slice(0,29).toLowerCase()?(a=
|
||||
(new p(b.slice(29),"base64")).toString(),b=null):(b=g(a,b),a=z(b,"utf8"));return a?{url:b,map:a}:null}function k(a){var b=E[a.source];if(!b){var c=d(a.source);c&&(b=E[a.source]={url:c.url,map:new C(c.map)},b.map.sourcesContent&&b.map.sources.forEach(function(a,c){var d=b.map.sourcesContent[c];if(d){var e=g(b.url,a);D[e]=d}}))}return b&&(c=b.map.originalPositionFor(a),null!==c.source)?(c.source=g(b.url,c.source),c):a}function l(a){var b=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(a);return b?(a=
|
||||
k({source:b[2],line:b[3],column:b[4]-1}),"eval at "+b[1]+" ("+a.source+":"+a.line+":"+(a.column+1)+")"):(b=/^eval at ([^(]+) \((.+)\)$/.exec(a))?"eval at "+b[1]+" ("+l(b[2])+")":a}function c(){var a,b="";this.isNative()?b="native":(a=this.getScriptNameOrSourceURL(),!a&&this.isEval()&&(b=this.getEvalOrigin(),b+=", "),b=a?b+a:b+"<anonymous>",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||"<anonymous>"):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||"<anonymous>")}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=k({source:c,line:b.getLineNumber(),column:b.getColumnNumber()-1});b=a(b);b.getFileName=function(){return d.source};b.getLineNumber=function(){return d.line};b.getColumnNumber=function(){return d.column+1};b.getScriptNameOrSourceURL=function(){return d.source};return b}var e=b.isEval()&&b.getEvalOrigin();e&&(e=l(e),b=a(b),b.getEvalOrigin=function(){return e});return b}function y(a,c){s&&(D={},E={});return a+c.map(function(a){return"\n at "+b(a)}).join("")}function B(a){var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);
|
||||
if(b){a=b[1];var c=+b[2],b=+b[3],d=D[a];!d&&x.existsSync(a)&&(d=x.readFileSync(a,"utf8"));if(d&&(d=d.split(/(?:\r\n|\r|\n)/)[c-1]))return"\n"+a+":"+c+"\n"+d+"\n"+Array(b).join(" ")+"^"}return null}function A(a){if(a&&a.stack){var b=B(a);null!==b&&console.log(b);console.log(a.stack)}else console.log("Uncaught exception:",a);e.exit(1)}var C=h("source-map").SourceMapConsumer,v=h("path"),x=h("fs"),G=!1,s=!1,D={},E={};m.wrapCallSite=b;m.getErrorSource=B;m.mapSourcePosition=k;m.retrieveSourceMap=d;m.install=
|
||||
function(a){if(!G){G=!0;Error.prepareStackTrace=y;a=a||{};var b="handleUncaughtExceptions"in a?a.handleUncaughtExceptions:!0;s="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1;a.retrieveFile&&(z=a.retrieveFile);a.retrieveSourceMap&&(d=a.retrieveSourceMap);if(b&&!r())e.on("uncaughtException",A)}}}).call(this,h("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),h("buffer").Buffer)},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,
|
||||
buffer:3,fs:2,path:7,"source-map":8}]},{},[1]);return J});
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "source-map-support",
|
||||
"description": "Fixes stack traces for files with source maps",
|
||||
"version": "0.2.7",
|
||||
"version": "0.2.8",
|
||||
"main": "./source-map-support.js",
|
||||
"scripts": {
|
||||
"test": "node_modules/mocha/bin/mocha"
|
||||
|
@ -178,6 +178,84 @@ function mapEvalOrigin(origin) {
|
||||
return origin;
|
||||
}
|
||||
|
||||
// This is copied almost verbatim from the V8 source code at
|
||||
// https://code.google.com/p/v8/source/browse/trunk/src/messages.js. The
|
||||
// implementation of wrapCallSite() used to just forward to the actual source
|
||||
// code of CallSite.prototype.toString but unfortunately a new release of V8
|
||||
// did something to the prototype chain and broke the shim. The only fix I
|
||||
// could find was copy/paste.
|
||||
function CallSiteToString() {
|
||||
var fileName;
|
||||
var fileLocation = "";
|
||||
if (this.isNative()) {
|
||||
fileLocation = "native";
|
||||
} else {
|
||||
fileName = this.getScriptNameOrSourceURL();
|
||||
if (!fileName && this.isEval()) {
|
||||
fileLocation = this.getEvalOrigin();
|
||||
fileLocation += ", "; // Expecting source position to follow.
|
||||
}
|
||||
|
||||
if (fileName) {
|
||||
fileLocation += fileName;
|
||||
} else {
|
||||
// Source code does not originate from a file and is not native, but we
|
||||
// can still get the source position inside the source string, e.g. in
|
||||
// an eval string.
|
||||
fileLocation += "<anonymous>";
|
||||
}
|
||||
var lineNumber = this.getLineNumber();
|
||||
if (lineNumber != null) {
|
||||
fileLocation += ":" + lineNumber;
|
||||
var columnNumber = this.getColumnNumber();
|
||||
if (columnNumber) {
|
||||
fileLocation += ":" + columnNumber;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var line = "";
|
||||
var functionName = this.getFunctionName();
|
||||
var addSuffix = true;
|
||||
var isConstructor = this.isConstructor();
|
||||
var isMethodCall = !(this.isToplevel() || isConstructor);
|
||||
if (isMethodCall) {
|
||||
var typeName = this.getTypeName();
|
||||
var methodName = this.getMethodName();
|
||||
if (functionName) {
|
||||
if (typeName && functionName.indexOf(typeName) != 0) {
|
||||
line += typeName + ".";
|
||||
}
|
||||
line += functionName;
|
||||
if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) {
|
||||
line += " [as " + methodName + "]";
|
||||
}
|
||||
} else {
|
||||
line += typeName + "." + (methodName || "<anonymous>");
|
||||
}
|
||||
} else if (isConstructor) {
|
||||
line += "new " + (functionName || "<anonymous>");
|
||||
} else if (functionName) {
|
||||
line += functionName;
|
||||
} else {
|
||||
line += fileLocation;
|
||||
addSuffix = false;
|
||||
}
|
||||
if (addSuffix) {
|
||||
line += " (" + fileLocation + ")";
|
||||
}
|
||||
return line;
|
||||
}
|
||||
|
||||
function cloneCallSite(frame) {
|
||||
var object = {};
|
||||
Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) {
|
||||
object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name];
|
||||
});
|
||||
object.toString = CallSiteToString;
|
||||
return object;
|
||||
}
|
||||
|
||||
function wrapCallSite(frame) {
|
||||
// Most call sites will return the source file from getFileName(), but code
|
||||
// passed to eval() ending in "//# sourceURL=..." will return the source file
|
||||
@ -189,23 +267,21 @@ function wrapCallSite(frame) {
|
||||
line: frame.getLineNumber(),
|
||||
column: frame.getColumnNumber() - 1
|
||||
});
|
||||
return {
|
||||
__proto__: frame,
|
||||
getFileName: function() { return position.source; },
|
||||
getLineNumber: function() { return position.line; },
|
||||
getColumnNumber: function() { return position.column + 1; },
|
||||
getScriptNameOrSourceURL: function() { return position.source; }
|
||||
};
|
||||
frame = cloneCallSite(frame);
|
||||
frame.getFileName = function() { return position.source; };
|
||||
frame.getLineNumber = function() { return position.line; };
|
||||
frame.getColumnNumber = function() { return position.column + 1; };
|
||||
frame.getScriptNameOrSourceURL = function() { return position.source; };
|
||||
return frame;
|
||||
}
|
||||
|
||||
// Code called using eval() needs special handling
|
||||
var origin = frame.isEval() && frame.getEvalOrigin();
|
||||
if (origin) {
|
||||
origin = mapEvalOrigin(origin);
|
||||
return {
|
||||
__proto__: frame,
|
||||
getEvalOrigin: function() { return origin; }
|
||||
};
|
||||
frame = cloneCallSite(frame);
|
||||
frame.getEvalOrigin = function() { return origin; };
|
||||
return frame;
|
||||
}
|
||||
|
||||
// If we get here then we were unable to change the source position
|
||||
|
Loading…
Reference in New Issue
Block a user