diff --git a/dist/msgpack.min.js b/dist/msgpack.min.js index 6dec722..a7e764d 100644 --- a/dist/msgpack.min.js +++ b/dist/msgpack.min.js @@ -1 +1 @@ -!function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).msgpack=t()}(function(){return function n(i,o,f){function u(r,t){if(!o[r]){if(!i[r]){var e="function"==typeof require&&require;if(!t&&e)return e(r,!0);if(a)return a(r,!0);throw(t=new Error("Cannot find module '"+r+"'")).code="MODULE_NOT_FOUND",t}e=o[r]={exports:{}},i[r][0].call(e.exports,function(t){return u(i[r][1][t]||t)},e,e.exports,n,i,o,f)}return o[r].exports}for(var a="function"==typeof require&&require,t=0;t>>10),56320+(1023&f))):o+=String.fromCharCode(f);return o},e.write=function(t,r){var e=this,n=r||(r|=0),i=t.length,o=0,f=0;for(;f>>6:(o<55296||57343>>12:(o=65536+(o-55296<<10|t.charCodeAt(f++)-56320),e[n++]=240|o>>>18,e[n++]=128|o>>>12&63),e[n++]=128|o>>>6&63),e[n++]=128|63&o);return n-r}},{}],4:[function(t,r,e){var n=t("./bufferish");function i(t){return new Array(t)}(e=r.exports=i(0)).alloc=i,e.concat=n.concat,e.from=function(t){if(!n.isBuffer(t)&&n.isView(t))t=n.Uint8Array.from(t);else if(n.isArrayBuffer(t))t=new Uint8Array(t);else{if("string"==typeof t)return n.from.call(e,t);if("number"==typeof t)throw new TypeError('"value" argument must not be a number')}return Array.prototype.slice.call(t)}},{"./bufferish":8}],5:[function(t,r,e){var n=t("./bufferish"),Buffer=n.global;function i(t){return new Buffer(t)}(e=r.exports=n.hasBuffer?Buffer.alloc?Buffer.alloc(0):i(0):[]).alloc=n.hasBuffer&&Buffer.alloc||i,e.concat=n.concat,e.from=function(t){if(!n.isBuffer(t)&&n.isView(t))t=n.Uint8Array.from(t);else if(n.isArrayBuffer(t))t=new Uint8Array(t);else{if("string"==typeof t)return n.from.call(e,t);if("number"==typeof t)throw new TypeError('"value" argument must not be a number')}return Buffer.from&&1!==Buffer.from.length?Buffer.from(t):new Buffer(t)}},{"./bufferish":8}],6:[function(t,r,e){var n,f=t("./buffer-lite"),u=(e.copy=o,e.slice=s,e.toString=function(t,r,e){return(!i&&u.isBuffer(this)?this:f).toString.apply(this,arguments)},e.write=(n="write",function(){return(this[n]||f[n]).apply(this,arguments)}),t("./bufferish")),e=u.global,i=u.hasBuffer&&"TYPED_ARRAY_SUPPORT"in e,a=i&&!e.TYPED_ARRAY_SUPPORT;function o(t,r,e,n){var i=u.isBuffer(this),o=u.isBuffer(t);return i&&o?this.copy(t,r,e,n):a||i||o||!u.isView(this)||!u.isView(t)?f.copy.call(this,t,r,e,n):(i=e||null!=n?s.call(this,e,n):this,t.set(i,r),i.length)}function s(t,r){var e=this.slice||!a&&this.subarray;return e?e.call(this,t,r):(e=u.alloc.call(this,r-t),o.call(this,e,0,t,r),e)}},{"./buffer-lite":3,"./bufferish":8}],7:[function(t,r,n){var i=t("./bufferish");function e(t){return new Uint8Array(t)}(n=r.exports=i.hasArrayBuffer?e(0):[]).alloc=e,n.concat=i.concat,n.from=function(t){if(i.isView(t)){var r=t.byteOffset,e=t.byteLength;(t=t.buffer).byteLength!==e&&(t.slice?t=t.slice(r,r+e):(t=new Uint8Array(t)).byteLength!==e&&(t=Array.prototype.slice.call(t,r,r+e)))}else{if("string"==typeof t)return i.from.call(n,t);if("number"==typeof t)throw new TypeError('"value" argument must not be a number')}return new Uint8Array(t)}},{"./bufferish":8}],8:[function(t,r,o){var Buffer=o.global=t("./buffer-global"),e=o.hasBuffer=Buffer&&!!Buffer.isBuffer,n=o.hasArrayBuffer="undefined"!=typeof ArrayBuffer,i=o.isArray=t("isarray"),f=(o.isArrayBuffer=n?function(t){return t instanceof ArrayBuffer||p(t)}:y,o.isBuffer=e?Buffer.isBuffer:y),u=o.isView=n?ArrayBuffer.isView||g("ArrayBuffer","buffer"):y,a=(o.alloc=l,o.concat=function(t,r){r||(r=0,Array.prototype.forEach.call(t,function(t){r+=t.length}));var e=this!==o&&this||t[0],n=l.call(e,r),i=0;return Array.prototype.forEach.call(t,function(t){i+=h.copy.call(t,n,i)}),n},o.from=function(t){return"string"==typeof t?function(t){var r=3*t.length,e=l.call(this,r),t=h.write.call(e,t);r!==t&&(e=h.slice.call(e,0,t));return e}.call(this,t):d(this).from(t)},o.Array=t("./bufferish-array")),s=o.Buffer=t("./bufferish-buffer"),c=o.Uint8Array=t("./bufferish-uint8array"),h=o.prototype=t("./bufferish-proto");function l(t){return d(this).alloc(t)}var p=g("ArrayBuffer");function d(t){return f(t)?s:u(t)?c:i(t)?a:e?s:n?c:a}function y(){return!1}function g(r,e){return r="[object "+r+"]",function(t){return null!=t&&{}.toString.call(e?t[e]:t)===r}}},{"./buffer-global":2,"./bufferish-array":4,"./bufferish-buffer":5,"./bufferish-proto":6,"./bufferish-uint8array":7,isarray:35}],9:[function(t,r,e){var n=t("isarray"),i=(e.createCodec=f,e.install=function(t){for(var r in t)o.prototype[r]=function(t,r){return t&&r?function(){return t.apply(this,arguments),r.apply(this,arguments)}:t||r}(o.prototype[r],t[r])},e.filter=function(t){return n(t)?function(r){return r=r.slice(),function(t){return r.reduce(e,t)};function e(t,r){return r(t)}}(t):t},t("./bufferish"));function o(t){if(!(this instanceof o))return new o(t);this.options=t,this.init()}function f(t){return new o(t)}o.prototype.init=function(){var t=this.options;return t&&t.uint8array&&(this.bufferish=i.Uint8Array),this},e.preset=f({preset:!0})},{"./bufferish":8,isarray:35}],10:[function(t,r,e){t("./read-core"),t("./write-core"),e.codec={preset:t("./codec-base").preset}},{"./codec-base":9,"./read-core":22,"./write-core":25}],11:[function(t,r,e){e.DecodeBuffer=n;e=t("./read-core").preset;function n(t){if(!(this instanceof n))return new n(t);t&&(this.options=t).codec&&(t=this.codec=t.codec).bufferish&&(this.bufferish=t.bufferish)}t("./flex-buffer").FlexDecoder.mixin(n.prototype),n.prototype.codec=e,n.prototype.fetch=function(){return this.codec.decode(this)}},{"./flex-buffer":21,"./read-core":22}],12:[function(t,r,e){e.decode=function(t,r){r=new n(r);return r.write(t),r.read()};var n=t("./decode-buffer").DecodeBuffer},{"./decode-buffer":11}],13:[function(t,r,e){e.Decoder=i;var e=t("event-lite"),n=t("./decode-buffer").DecodeBuffer;function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}i.prototype=new n,e.mixin(i.prototype),i.prototype.decode=function(t){arguments.length&&this.write(t),this.flush()},i.prototype.push=function(t){this.emit("data",t)},i.prototype.end=function(t){this.decode(t),this.emit("end")}},{"./decode-buffer":11,"event-lite":32}],14:[function(t,r,e){e.EncodeBuffer=n;e=t("./write-core").preset;function n(t){if(!(this instanceof n))return new n(t);t&&(this.options=t).codec&&(t=this.codec=t.codec).bufferish&&(this.bufferish=t.bufferish)}t("./flex-buffer").FlexEncoder.mixin(n.prototype),n.prototype.codec=e,n.prototype.write=function(t){this.codec.encode(this,t)}},{"./flex-buffer":21,"./write-core":25}],15:[function(t,r,e){e.encode=function(t,r){r=new n(r);return r.write(t),r.read()};var n=t("./encode-buffer").EncodeBuffer},{"./encode-buffer":14}],16:[function(t,r,e){e.Encoder=i;var e=t("event-lite"),n=t("./encode-buffer").EncodeBuffer;function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}i.prototype=new n,e.mixin(i.prototype),i.prototype.encode=function(t){this.write(t),this.emit("data",this.read())},i.prototype.end=function(t){arguments.length&&this.encode(t),this.flush(),this.emit("end")}},{"./encode-buffer":14,"event-lite":32}],17:[function(t,r,e){e.ExtBuffer=function t(r,e){if(!(this instanceof t))return new t(r,e);this.buffer=n.from(r);this.type=e};var n=t("./bufferish")},{"./bufferish":8}],18:[function(r,t,e){e.setExtPackers=function(t){t.addExtPacker(14,Error,[c,u]),t.addExtPacker(1,EvalError,[c,u]),t.addExtPacker(2,RangeError,[c,u]),t.addExtPacker(3,ReferenceError,[c,u]),t.addExtPacker(4,SyntaxError,[c,u]),t.addExtPacker(5,TypeError,[c,u]),t.addExtPacker(6,URIError,[c,u]),t.addExtPacker(10,RegExp,[s,u]),t.addExtPacker(11,Boolean,[a,u]),t.addExtPacker(12,String,[a,u]),t.addExtPacker(13,Date,[Number,u]),t.addExtPacker(15,Number,[a,u]),"undefined"!=typeof Uint8Array&&(t.addExtPacker(17,Int8Array,o),t.addExtPacker(18,Uint8Array,o),t.addExtPacker(19,Int16Array,o),t.addExtPacker(20,Uint16Array,o),t.addExtPacker(21,Int32Array,o),t.addExtPacker(22,Uint32Array,o),t.addExtPacker(23,Float32Array,o),"undefined"!=typeof Float64Array&&t.addExtPacker(24,Float64Array,o),"undefined"!=typeof Uint8ClampedArray&&t.addExtPacker(25,Uint8ClampedArray,o),t.addExtPacker(26,ArrayBuffer,o),t.addExtPacker(29,DataView,o));i.hasBuffer&&t.addExtPacker(27,Buffer,i.from)};var n,i=r("./bufferish"),Buffer=i.global,o=i.Uint8Array.from,f={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1};function u(t){return(n=n||r("./encode").encode)(t)}function a(t){return t.valueOf()}function s(t){(t=RegExp.prototype.toString.call(t).split("/")).shift();var r=[t.pop()];return r.unshift(t.join("/")),r}function c(t){var r,e={};for(r in f)e[r]=t[r];return e}},{"./bufferish":8,"./encode":15}],19:[function(r,t,e){e.setExtUnpackers=function(t){t.addExtUnpacker(14,[f,a(Error)]),t.addExtUnpacker(1,[f,a(EvalError)]),t.addExtUnpacker(2,[f,a(RangeError)]),t.addExtUnpacker(3,[f,a(ReferenceError)]),t.addExtUnpacker(4,[f,a(SyntaxError)]),t.addExtUnpacker(5,[f,a(TypeError)]),t.addExtUnpacker(6,[f,a(URIError)]),t.addExtUnpacker(10,[f,u]),t.addExtUnpacker(11,[f,s(Boolean)]),t.addExtUnpacker(12,[f,s(String)]),t.addExtUnpacker(13,[f,s(Date)]),t.addExtUnpacker(15,[f,s(Number)]),"undefined"!=typeof Uint8Array&&(t.addExtUnpacker(17,s(Int8Array)),t.addExtUnpacker(18,s(Uint8Array)),t.addExtUnpacker(19,[c,s(Int16Array)]),t.addExtUnpacker(20,[c,s(Uint16Array)]),t.addExtUnpacker(21,[c,s(Int32Array)]),t.addExtUnpacker(22,[c,s(Uint32Array)]),t.addExtUnpacker(23,[c,s(Float32Array)]),"undefined"!=typeof Float64Array&&t.addExtUnpacker(24,[c,s(Float64Array)]),"undefined"!=typeof Uint8ClampedArray&&t.addExtUnpacker(25,s(Uint8ClampedArray)),t.addExtUnpacker(26,c),t.addExtUnpacker(29,[c,s(DataView)]));i.hasBuffer&&t.addExtUnpacker(27,i.from)};var n,i=r("./bufferish"),o=(i.global,{name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1});function f(t){return(n=n||r("./decode").decode)(t)}function u(t){return RegExp.apply(null,t)}function a(n){return function(t){var r,e=new n;for(r in o)e[r]=t[r];return e}}function s(r){return function(t){return new r(t)}}function c(t){return new Uint8Array(t).buffer}},{"./bufferish":8,"./decode":12}],20:[function(t,r,e){t("./read-core"),t("./write-core"),e.createCodec=t("./codec-base").createCodec},{"./codec-base":9,"./read-core":22,"./write-core":25}],21:[function(t,r,e){e.FlexDecoder=o,e.FlexEncoder=f;var n=t("./bufferish"),i="BUFFER_SHORTAGE";function o(){if(!(this instanceof o))return new o}function f(){if(!(this instanceof f))return new f}function u(){throw new Error("method not implemented: write()")}function a(){throw new Error("method not implemented: fetch()")}function s(){return this.buffers&&this.buffers.length?(this.flush(),this.pull()):this.fetch()}function c(t){(this.buffers||(this.buffers=[])).push(t)}function h(){return(this.buffers||(this.buffers=[])).shift()}function l(e){return function(t){for(var r in e)t[r]=e[r];return t}}o.mixin=l({bufferish:n,write:function(t){var r=this.offset?n.prototype.slice.call(this.buffer,this.offset):this.buffer;this.buffer=r?t?this.bufferish.concat([r,t]):r:t,this.offset=0},fetch:a,flush:function(){for(;this.offsetthis.buffer.length)throw new Error(i);return this.offset=t,r},offset:0}),o.mixin(o.prototype),f.mixin=l({bufferish:n,write:u,fetch:function(){var t=this.start;{var r;if(tthis.minBufferSize?(this.flush(),this.push(t)):(r=this.reserve(r),n.prototype.copy.call(t,this.buffer,r))},maxBufferSize:65536,minBufferSize:2048,offset:0,start:0}),f.mixin(f.prototype)},{"./bufferish":8}],22:[function(t,r,e){var n=t("./ext-buffer").ExtBuffer,i=t("./ext-unpacker"),o=t("./read-format").readUint8,f=t("./read-token"),u=t("./codec-base");function a(t){var n=f.getReadToken(t);return function(t){var r=o(t),e=n[r];if(e)return e(t);throw new Error("Invalid type: "+(r&&"0x"+r.toString(16)))}}function s(){var t=this.options;return this.decode=a(t),t&&t.preset&&i.setExtUnpackers(this),this}u.install({addExtUnpacker:function(t,r){(this.extUnpackers||(this.extUnpackers=[]))[t]=u.filter(r)},getExtUnpacker:function(r){return(this.extUnpackers||(this.extUnpackers=[]))[r]||function(t){return new n(t,r)}},init:s}),e.preset=s.call(u.preset)},{"./codec-base":9,"./ext-buffer":17,"./ext-unpacker":19,"./read-format":23,"./read-token":24}],23:[function(t,r,e){var n=t("ieee754"),i=t("int64-buffer"),o=i.Uint64BE,f=i.Int64BE,a=(e.getReadFormat=function(t){var r=a.hasArrayBuffer&&t&&t.binarraybuffer,e=t&&t.int64;return{map:u&&t&&t.usemap?d:p,array:y,str:g,bin:r?w:b,ext:v,uint8:E,uint16:m,uint32:B,uint64:R(8,e?_:P),int8:A,int16:x,int32:U,int64:R(8,e?T:k),float32:R(4,S),float64:R(8,I)}},e.readUint8=E,t("./bufferish")),s=t("./bufferish-proto"),u="undefined"!=typeof Map,c=!0,h="BUFFER_SHORTAGE";function l(t,r){if(r>t.buffer.length-t.offset)throw new Error(h)}function p(t,r){l(t,2*r);for(var e={},n=new Array(r),i=new Array(r),o=t.codec.decode,f=0;f>>8,t[e]=r}}function d(n){return function(t,r){var e=t.reserve(5),t=t.buffer;t[e++]=n,t[e++]=r>>>24,t[e++]=r>>>16,t[e++]=r>>>8,t[e]=r}}function y(n,i,o,f){return function(t,r){var e=t.reserve(i+1);t.buffer[e++]=n,o.call(t.buffer,r,e,f)}}function g(t,r){new o(this,r,t)}function b(t,r){new f(this,r,t)}function w(t,r){n.write(this,t,r,!1,23,4)}function v(t,r){n.write(this,t,r,!1,52,8)}e.getWriteToken=function(t){return(t&&t.uint8array?function(){var t=h();return t[202]=y(202,4,w),t[203]=y(203,8,v),t}:s||a.hasBuffer&&t&&t.safe?function(){var t=u.slice();return t[196]=y(196,1,Buffer.prototype.writeUInt8),t[197]=y(197,2,Buffer.prototype.writeUInt16BE),t[198]=y(198,4,Buffer.prototype.writeUInt32BE),t[199]=y(199,1,Buffer.prototype.writeUInt8),t[200]=y(200,2,Buffer.prototype.writeUInt16BE),t[201]=y(201,4,Buffer.prototype.writeUInt32BE),t[202]=y(202,4,Buffer.prototype.writeFloatBE),t[203]=y(203,8,Buffer.prototype.writeDoubleBE),t[204]=y(204,1,Buffer.prototype.writeUInt8),t[205]=y(205,2,Buffer.prototype.writeUInt16BE),t[206]=y(206,4,Buffer.prototype.writeUInt32BE),t[207]=y(207,8,g),t[208]=y(208,1,Buffer.prototype.writeInt8),t[209]=y(209,2,Buffer.prototype.writeInt16BE),t[210]=y(210,4,Buffer.prototype.writeInt32BE),t[211]=y(211,8,b),t[217]=y(217,1,Buffer.prototype.writeUInt8),t[218]=y(218,2,Buffer.prototype.writeUInt16BE),t[219]=y(219,4,Buffer.prototype.writeUInt32BE),t[220]=y(220,2,Buffer.prototype.writeUInt16BE),t[221]=y(221,4,Buffer.prototype.writeUInt32BE),t[222]=y(222,2,Buffer.prototype.writeUInt16BE),t[223]=y(223,4,Buffer.prototype.writeUInt32BE),t}:h)()}},{"./bufferish":8,"./write-uint8":28,ieee754:33,"int64-buffer":34}],27:[function(t,r,e){var b=t("isarray"),n=t("int64-buffer"),w=n.Uint64BE,v=n.Int64BE,f=t("./bufferish"),a=t("./bufferish-proto"),u=t("./write-token"),E=t("./write-uint8").uint8,A=t("./ext-buffer").ExtBuffer,s="undefined"!=typeof Uint8Array,c="undefined"!=typeof Map,m=[];m[1]=212,m[2]=213,m[4]=214,m[8]=215,m[16]=216,e.getWriteType=function(t){var l=u.getWriteToken(t),r=t&&t.useraw,e=s&&t&&t.binarraybuffer,p=e?f.isArrayBuffer:f.isBuffer,d=e?function(t,r){i(t,new Uint8Array(r))}:i,y=c&&t&&t.usemap?function(n,t){if(!(t instanceof Map))return o(n,t);var r=t.size,i=(l[r<16?128+r:r<=65535?222:223](n,r),n.codec.encode);t.forEach(function(t,r,e){i(n,r),i(n,t)})}:o;return{boolean:function(t,r){l[r?195:194](t,r)},function:g,number:function(t,r){var e=0|r;r!==e?0<=r&&r<=4294967295&&Math.floor(r)===r?l[206](t,r):l[203](t,r):l[-32<=e&&e<=127?255&e:0<=e?e<=255?204:e<=65535?205:206:-128<=e?208:-32768<=e?209:210](t,e)},object:r?function(t,r){if(p(r))return function(t,r){var e=r.length;l[e<32?160+e:e<=65535?218:219](t,e),t.send(r)}(t,r);n(t,r)}:n,string:function(u){return function(t,r){var e=r.length,n=5+3*e,n=(t.offset=t.reserve(n),t.buffer),i=u(e),o=t.offset+i,r=(e=a.write.call(n,r,o),u(e));{var f;i!==r&&(i=o+r-i,f=o+e,a.copy.call(n,n,i,o,f))}l[1===r?160+e:r<=3?215+r:219](t,e),t.offset+=e}}(r?function(t){return t<32?1:t<=65535?3:5}:function(t){return t<32?1:t<=255?2:t<=65535?3:5}),symbol:g,undefined:g};function n(t,r){if(null===r)return g(t,r);if(p(r))return d(t,r);if(b(r))for(var e=t,n=r,i=n.length,o=(l[i<16?144+i:i<=65535?220:221](e,i),e.codec.encode),f=0;f>16&255,o[f++]=r>>8&255,o[f++]=255&r;2===n&&(r=a[t.charCodeAt(e)]<<2|a[t.charCodeAt(e+1)]>>4,o[f++]=255&r);1===n&&(r=a[t.charCodeAt(e)]<<10|a[t.charCodeAt(e+1)]<<4|a[t.charCodeAt(e+2)]>>2,o[f++]=r>>8&255,o[f++]=255&r);return o},e.fromByteArray=function(t){for(var r,e=t.length,n=e%3,i=[],o=0,f=e-n;o>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}(n));return i.join("")}(t,o,f>2]+u[r<<4&63]+"==")):2==n&&(r=(t[e-2]<<8)+t[e-1],i.push(u[r>>10]+u[r>>4&63]+u[r<<2&63]+"="));return i.join("")};for(var u=[],a=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i>>1;case"base64":return _(t).length;default:if(n)return k(t).length;r=(""+r).toLowerCase(),n=!0}}function r(t,r,e){var n,i=!1;if((r=void 0===r||r<0?0:r)>this.length)return"";if((e=void 0===e||e>this.length?this.length:e)<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":var o=this,f=r,u=e,a=o.length;(!u||u<0||a=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=Buffer.from(r,n)),Buffer.isBuffer(r))return 0===r.length?-1:d(t,r,e,n,i);if("number"==typeof r)return r&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(i?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,r,e):d(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function d(t,r,e,n,i){var o=1,f=t.length,u=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;f/=o=2,u/=2,e/=2}function a(t,r){return 1===o?t[r]:t.readUInt16BE(r*o)}if(i)for(var s=-1,c=e;c>8,i.push(e%256),i.push(n);return i}(r,t.length-e),t,e,n)}function U(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}var l=n,p=l.length;if(p<=w)return String.fromCharCode.apply(String,l);for(var d="",y=0;yr)&&(t+=" ... "),""},Buffer.prototype.compare=function(t,r,e,n,i){if(!Buffer.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),(r=void 0===r?0:r)<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&e<=r)return 0;if(i<=n)return-1;if(e<=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),f=(e>>>=0)-(r>>>=0),u=Math.min(o,f),a=this.slice(n,i),s=t.slice(r,e),c=0;cthis.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var o,f,u,a=!1;;)switch(n){case"hex":var s=this,c=t,h=r,l=e,p=(h=Number(h)||0,s.length-h);if((!l||p<(l=Number(l)))&&(l=p),(p=c.length)%2!=0)throw new TypeError("Invalid hex string");p/2t.length)throw new RangeError("Index out of range")}function E(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i>>8*(n?i:1-i)}function A(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i>>8*(n?i:3-i)&255}function m(t,r,e,n){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function x(t,r,e,n,i){return i||m(t,0,e,4),o.write(t,r,e,n,23,4),e+4}function R(t,r,e,n,i){return i||m(t,0,e,8),o.write(t,r,e,n,52,8),e+8}Buffer.prototype.slice=function(t,r){var e=this.length;if((t=~~t)<0?(t+=e)<0&&(t=0):e>>8):E(this,t,r,!0),r+2},Buffer.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):E(this,t,r,!1),r+2},Buffer.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):A(this,t,r,!0),r+4},Buffer.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):A(this,t,r,!1),r+4},Buffer.prototype.writeIntLE=function(t,r,e,n){t=+t,r|=0,n||v(this,t,r,e,(n=Math.pow(2,8*e-1))-1,-n);var i=0,o=1,f=0;for(this[r]=255&t;++i>0)-f&255;return r+e},Buffer.prototype.writeIntBE=function(t,r,e,n){t=+t,r|=0,n||v(this,t,r,e,(n=Math.pow(2,8*e-1))-1,-n);var i=e-1,o=1,f=0;for(this[r+i]=255&t;0<=--i&&(o*=256);)t<0&&0===f&&0!==this[r+i+1]&&(f=1),this[r+i]=(t/o>>0)-f&255;return r+e},Buffer.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&(t=t<0?255+t+1:t),r+1},Buffer.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):E(this,t,r,!0),r+2},Buffer.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):E(this,t,r,!1),r+2},Buffer.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):A(this,t,r,!0),r+4},Buffer.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):A(this,t,r,!1),r+4},Buffer.prototype.writeFloatLE=function(t,r,e){return x(this,t,r,!0,e)},Buffer.prototype.writeFloatBE=function(t,r,e){return x(this,t,r,!1,e)},Buffer.prototype.writeDoubleLE=function(t,r,e){return R(this,t,r,!0,e)},Buffer.prototype.writeDoubleBE=function(t,r,e){return R(this,t,r,!1,e)},Buffer.prototype.copy=function(t,r,e,n){if(e=e||0,n||0===n||(n=this.length),r>=t.length&&(r=t.length),(n=0=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length);var i,o=(n=t.length-r>>=0,e=void 0===e?this.length:e>>>0,"number"==typeof(t=t||0))for(u=r;u>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function _(t){return B.toByteArray(function(t){var r;if((t=((r=t).trim?r.trim():r.replace(/^\s+|\s+$/g,"")).replace(P,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function T(t,r,e,n){for(var i=0;i=r.length||i>=t.length);++i)r[i+e]=t[i];return i}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},S("buffer").Buffer)},{"base64-js":29,buffer:30,ieee754:33,isarray:31}],31:[function(t,r,e){var n={}.toString;r.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],32:[function(t,r,e){function n(t){for(var r in a)t[r]=a[r];return t}function i(t,r){var e,n=this;if(arguments.length){if(r){if(e=o(n,t,!0)){if(!(e=e.filter(function(t){return t!==r&&t.originalListener!==r})).length)return i.call(n,t);n[u][t]=e}}else if((e=n[u])&&(delete e[t],!Object.keys(e).length))return i.call(n)}else delete n[u];return n}function o(t,r,e){if(!e||t[u])return(e=t[u]||(t[u]={}))[r]||(e[r]=[])}var f,u,a;f=function t(){if(!(this instanceof t))return new t},void 0!==r&&(r.exports=f),u="listeners",a={on:function(t,r){return o(this,t).push(r),this},once:function(t,r){var e=this;return n.originalListener=r,o(e,t).push(n),e;function n(){i.call(e,t,n),r.apply(this,arguments)}},off:i,emit:function(t,r){var e=this,t=o(e,t,!0);if(!t)return!1;var n=arguments.length;{var i;1===n?t.forEach(function(t){t.call(e)}):2===n?t.forEach(function(t){t.call(e,r)}):(i=Array.prototype.slice.call(arguments,1),t.forEach(function(t){t.apply(e,i)}))}return!!t.length}},n(f.prototype),f.mixin=n},{}],33:[function(t,r,e){e.read=function(t,r,e,n,i){var o,f,u=8*i-n-1,a=(1<>1,c=-7,h=e?i-1:0,l=e?-1:1,i=t[r+h];for(h+=l,o=i&(1<<-c)-1,i>>=-c,c+=u;0>=-c,c+=n;0>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:o-1,p=n?1:-1,o=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,f=s):(f=Math.floor(Math.log(r)/Math.LN2),r*(n=Math.pow(2,-f))<1&&(f--,n*=2),2<=(r+=1<=f+c?h/n:h*Math.pow(2,1-c))*n&&(f++,n/=2),s<=f+c?(u=0,f=s):1<=f+c?(u=(r*n-1)*Math.pow(2,i),f+=c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),f=0));8<=i;t[e+l]=255&u,l+=p,u/=256,i-=8);for(f=f<>=8),t[r+i]=255&(e>>=8),t[r+n]=255&(e>>=8)}function c(t,r){return 16777216*t[r+n]+(t[r+i]<<16)+(t[r+o]<<8)+t[r+f]}}function l(t){var r=this.buffer,e=this.offset;return v=null,!1!==t&&n(r)?8===r.length?r:r.slice(e,e+8):T(r,e)}function R(t){var r=this.buffer,e=this.offset;return v=A,!1!==t&&A.isBuffer(r)?8===r.length?r:r.slice(e,e+8):A.from(P.call(this,t))}function P(t){var r=this.buffer,e=this.offset,n=r.buffer;return v=m,!1!==t&&!r.offset&&n instanceof x?8===n.byteLength?n:n.slice(e,e+8):(_(t=new m(8),0,r,e),t.buffer)}function k(t,r){var e=t&&t.length;return r|=0,e&&r+8<=e&&"string"!=typeof t[r]}function _(t,r,e,n){r|=0,n|=0;for(var i=0;i<8;i++)t[r++]=255&e[n++]}function T(t,r){return Array.prototype.slice.call(t,r,r+8)}function S(t,r,e){for(var n=r+8;r>>10),56320+(1023&f))):o+=String.fromCharCode(f);return o},e.write=function(t,r){var e=this,n=r||(r|=0),i=t.length,o=0,f=0;for(;f>>6:(o<55296||57343>>12:(o=65536+(o-55296<<10|t.charCodeAt(f++)-56320),e[n++]=240|o>>>18,e[n++]=128|o>>>12&63),e[n++]=128|o>>>6&63),e[n++]=128|63&o);return n-r}},{}],4:[function(t,r,e){var n=t("./bufferish");function i(t){return new Array(t)}(e=r.exports=i(0)).alloc=i,e.concat=n.concat,e.from=function(t){if(!n.isBuffer(t)&&n.isView(t))t=n.Uint8Array.from(t);else if(n.isArrayBuffer(t))t=new Uint8Array(t);else{if("string"==typeof t)return n.from.call(e,t);if("number"==typeof t)throw new TypeError('"value" argument must not be a number')}return Array.prototype.slice.call(t)}},{"./bufferish":8}],5:[function(t,r,e){var n=t("./bufferish"),Buffer=n.global;function i(t){return new Buffer(t)}(e=r.exports=n.hasBuffer?Buffer.alloc?Buffer.alloc(0):i(0):[]).alloc=n.hasBuffer&&Buffer.alloc||i,e.concat=n.concat,e.from=function(t){if(!n.isBuffer(t)&&n.isView(t))t=n.Uint8Array.from(t);else if(n.isArrayBuffer(t))t=new Uint8Array(t);else{if("string"==typeof t)return n.from.call(e,t);if("number"==typeof t)throw new TypeError('"value" argument must not be a number')}return Buffer.from&&1!==Buffer.from.length?Buffer.from(t):new Buffer(t)}},{"./bufferish":8}],6:[function(t,r,e){var n,f=t("./buffer-lite"),u=(e.copy=o,e.slice=s,e.toString=function(t,r,e){return(!i&&u.isBuffer(this)?this:f).toString.apply(this,arguments)},e.write=(n="write",function(){return(this[n]||f[n]).apply(this,arguments)}),t("./bufferish")),e=u.global,i=u.hasBuffer&&"TYPED_ARRAY_SUPPORT"in e,a=i&&!e.TYPED_ARRAY_SUPPORT;function o(t,r,e,n){var i=u.isBuffer(this),o=u.isBuffer(t);return i&&o?this.copy(t,r,e,n):a||i||o||!u.isView(this)||!u.isView(t)?f.copy.call(this,t,r,e,n):(i=e||null!=n?s.call(this,e,n):this,t.set(i,r),i.length)}function s(t,r){var e=this.slice||!a&&this.subarray;return e?e.call(this,t,r):(e=u.alloc.call(this,r-t),o.call(this,e,0,t,r),e)}},{"./buffer-lite":3,"./bufferish":8}],7:[function(t,r,n){var i=t("./bufferish");function e(t){return new Uint8Array(t)}(n=r.exports=i.hasArrayBuffer?e(0):[]).alloc=e,n.concat=i.concat,n.from=function(t){if(i.isView(t)){var r=t.byteOffset,e=t.byteLength;(t=t.buffer).byteLength!==e&&(t.slice?t=t.slice(r,r+e):(t=new Uint8Array(t)).byteLength!==e&&(t=Array.prototype.slice.call(t,r,r+e)))}else{if("string"==typeof t)return i.from.call(n,t);if("number"==typeof t)throw new TypeError('"value" argument must not be a number')}return new Uint8Array(t)}},{"./bufferish":8}],8:[function(t,r,o){var Buffer=o.global=t("./buffer-global"),e=o.hasBuffer=Buffer&&!!Buffer.isBuffer,n=o.hasArrayBuffer="undefined"!=typeof ArrayBuffer,i=o.isArray=t("isarray"),f=(o.isArrayBuffer=n?function(t){return t instanceof ArrayBuffer||p(t)}:y,o.isBuffer=e?Buffer.isBuffer:y),u=o.isView=n?ArrayBuffer.isView||g("ArrayBuffer","buffer"):y,a=(o.alloc=l,o.concat=function(t,r){r||(r=0,Array.prototype.forEach.call(t,function(t){r+=t.length}));var e=this!==o&&this||t[0],n=l.call(e,r),i=0;return Array.prototype.forEach.call(t,function(t){i+=h.copy.call(t,n,i)}),n},o.from=function(t){return"string"==typeof t?function(t){var r=3*t.length,e=l.call(this,r),t=h.write.call(e,t);r!==t&&(e=h.slice.call(e,0,t));return e}.call(this,t):d(this).from(t)},o.Array=t("./bufferish-array")),s=o.Buffer=t("./bufferish-buffer"),c=o.Uint8Array=t("./bufferish-uint8array"),h=o.prototype=t("./bufferish-proto");function l(t){return d(this).alloc(t)}var p=g("ArrayBuffer");function d(t){return f(t)?s:u(t)?c:i(t)?a:e?s:n?c:a}function y(){return!1}function g(r,e){return r="[object "+r+"]",function(t){return null!=t&&{}.toString.call(e?t[e]:t)===r}}},{"./buffer-global":2,"./bufferish-array":4,"./bufferish-buffer":5,"./bufferish-proto":6,"./bufferish-uint8array":7,isarray:35}],9:[function(t,r,e){var n=t("isarray"),i=(e.createCodec=f,e.install=function(t){for(var r in t)o.prototype[r]=function(t,r){return t&&r?function(){return t.apply(this,arguments),r.apply(this,arguments)}:t||r}(o.prototype[r],t[r])},e.filter=function(t){return n(t)?function(r){return r=r.slice(),function(t){return r.reduce(e,t)};function e(t,r){return r(t)}}(t):t},t("./bufferish"));function o(t){if(!(this instanceof o))return new o(t);this.options=t,this.init()}function f(t){return new o(t)}o.prototype.init=function(){var t=this.options;return t&&t.uint8array&&(this.bufferish=i.Uint8Array),this},e.preset=f({preset:!0})},{"./bufferish":8,isarray:35}],10:[function(t,r,e){t("./read-core"),t("./write-core"),e.codec={preset:t("./codec-base").preset}},{"./codec-base":9,"./read-core":22,"./write-core":25}],11:[function(t,r,e){e.DecodeBuffer=n;e=t("./read-core").preset;function n(t){if(!(this instanceof n))return new n(t);t&&(this.options=t).codec&&(t=this.codec=t.codec).bufferish&&(this.bufferish=t.bufferish)}t("./flex-buffer").FlexDecoder.mixin(n.prototype),n.prototype.codec=e,n.prototype.fetch=function(){return this.codec.decode(this)}},{"./flex-buffer":21,"./read-core":22}],12:[function(t,r,e){e.decode=function(t,r){r=new n(r);return r.write(t),r.read()};var n=t("./decode-buffer").DecodeBuffer},{"./decode-buffer":11}],13:[function(t,r,e){e.Decoder=i;var e=t("event-lite"),n=t("./decode-buffer").DecodeBuffer;function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}i.prototype=new n,e.mixin(i.prototype),i.prototype.decode=function(t){arguments.length&&this.write(t),this.flush()},i.prototype.push=function(t){this.emit("data",t)},i.prototype.end=function(t){this.decode(t),this.emit("end")}},{"./decode-buffer":11,"event-lite":32}],14:[function(t,r,e){e.EncodeBuffer=n;e=t("./write-core").preset;function n(t){if(!(this instanceof n))return new n(t);t&&(this.options=t).codec&&(t=this.codec=t.codec).bufferish&&(this.bufferish=t.bufferish)}t("./flex-buffer").FlexEncoder.mixin(n.prototype),n.prototype.codec=e,n.prototype.write=function(t){this.codec.encode(this,t)}},{"./flex-buffer":21,"./write-core":25}],15:[function(t,r,e){e.encode=function(t,r){r=new n(r);return r.write(t),r.read()};var n=t("./encode-buffer").EncodeBuffer},{"./encode-buffer":14}],16:[function(t,r,e){e.Encoder=i;var e=t("event-lite"),n=t("./encode-buffer").EncodeBuffer;function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}i.prototype=new n,e.mixin(i.prototype),i.prototype.encode=function(t){this.write(t),this.emit("data",this.read())},i.prototype.end=function(t){arguments.length&&this.encode(t),this.flush(),this.emit("end")}},{"./encode-buffer":14,"event-lite":32}],17:[function(t,r,e){e.ExtBuffer=function t(r,e){if(!(this instanceof t))return new t(r,e);this.buffer=n.from(r);this.type=e};var n=t("./bufferish")},{"./bufferish":8}],18:[function(r,t,e){e.setExtPackers=function(t){t.addExtPacker(14,Error,[c,u]),t.addExtPacker(1,EvalError,[c,u]),t.addExtPacker(2,RangeError,[c,u]),t.addExtPacker(3,ReferenceError,[c,u]),t.addExtPacker(4,SyntaxError,[c,u]),t.addExtPacker(5,TypeError,[c,u]),t.addExtPacker(6,URIError,[c,u]),t.addExtPacker(10,RegExp,[s,u]),t.addExtPacker(11,Boolean,[a,u]),t.addExtPacker(12,String,[a,u]),t.addExtPacker(13,Date,[Number,u]),t.addExtPacker(15,Number,[a,u]),"undefined"!=typeof Uint8Array&&(t.addExtPacker(17,Int8Array,o),t.addExtPacker(18,Uint8Array,o),t.addExtPacker(19,Int16Array,o),t.addExtPacker(20,Uint16Array,o),t.addExtPacker(21,Int32Array,o),t.addExtPacker(22,Uint32Array,o),t.addExtPacker(23,Float32Array,o),"undefined"!=typeof Float64Array&&t.addExtPacker(24,Float64Array,o),"undefined"!=typeof Uint8ClampedArray&&t.addExtPacker(25,Uint8ClampedArray,o),t.addExtPacker(26,ArrayBuffer,o),t.addExtPacker(29,DataView,o));i.hasBuffer&&t.addExtPacker(27,Buffer,i.from)};var n,i=r("./bufferish"),Buffer=i.global,o=i.Uint8Array.from,f={name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1};function u(t){return(n=n||r("./encode").encode)(t)}function a(t){return t.valueOf()}function s(t){(t=RegExp.prototype.toString.call(t).split("/")).shift();var r=[t.pop()];return r.unshift(t.join("/")),r}function c(t){var r,e={};for(r in f)e[r]=t[r];return e}},{"./bufferish":8,"./encode":15}],19:[function(r,t,e){e.setExtUnpackers=function(t){t.addExtUnpacker(14,[f,a(Error)]),t.addExtUnpacker(1,[f,a(EvalError)]),t.addExtUnpacker(2,[f,a(RangeError)]),t.addExtUnpacker(3,[f,a(ReferenceError)]),t.addExtUnpacker(4,[f,a(SyntaxError)]),t.addExtUnpacker(5,[f,a(TypeError)]),t.addExtUnpacker(6,[f,a(URIError)]),t.addExtUnpacker(10,[f,u]),t.addExtUnpacker(11,[f,s(Boolean)]),t.addExtUnpacker(12,[f,s(String)]),t.addExtUnpacker(13,[f,s(Date)]),t.addExtUnpacker(15,[f,s(Number)]),"undefined"!=typeof Uint8Array&&(t.addExtUnpacker(17,s(Int8Array)),t.addExtUnpacker(18,s(Uint8Array)),t.addExtUnpacker(19,[c,s(Int16Array)]),t.addExtUnpacker(20,[c,s(Uint16Array)]),t.addExtUnpacker(21,[c,s(Int32Array)]),t.addExtUnpacker(22,[c,s(Uint32Array)]),t.addExtUnpacker(23,[c,s(Float32Array)]),"undefined"!=typeof Float64Array&&t.addExtUnpacker(24,[c,s(Float64Array)]),"undefined"!=typeof Uint8ClampedArray&&t.addExtUnpacker(25,s(Uint8ClampedArray)),t.addExtUnpacker(26,c),t.addExtUnpacker(29,[c,s(DataView)]));i.hasBuffer&&t.addExtUnpacker(27,i.from)};var n,i=r("./bufferish"),o=(i.global,{name:1,message:1,stack:1,columnNumber:1,fileName:1,lineNumber:1});function f(t){return(n=n||r("./decode").decode)(t)}function u(t){return RegExp.apply(null,t)}function a(n){return function(t){var r,e=new n;for(r in o)e[r]=t[r];return e}}function s(r){return function(t){return new r(t)}}function c(t){return new Uint8Array(t).buffer}},{"./bufferish":8,"./decode":12}],20:[function(t,r,e){t("./read-core"),t("./write-core"),e.createCodec=t("./codec-base").createCodec},{"./codec-base":9,"./read-core":22,"./write-core":25}],21:[function(t,r,e){e.FlexDecoder=o,e.FlexEncoder=f;var n=t("./bufferish"),i="BUFFER_SHORTAGE";function o(){if(!(this instanceof o))return new o}function f(){if(!(this instanceof f))return new f}function u(){throw new Error("method not implemented: write()")}function a(){throw new Error("method not implemented: fetch()")}function s(){return this.buffers&&this.buffers.length?(this.flush(),this.pull()):this.fetch()}function c(t){(this.buffers||(this.buffers=[])).push(t)}function h(){return(this.buffers||(this.buffers=[])).shift()}function l(e){return function(t){for(var r in e)t[r]=e[r];return t}}o.mixin=l({bufferish:n,write:function(t){var r=this.offset?n.prototype.slice.call(this.buffer,this.offset):this.buffer;this.buffer=r?t?this.bufferish.concat([r,t]):r:t,this.offset=0},fetch:a,flush:function(){for(;this.offsetthis.buffer.length)throw new Error(i);return this.offset=t,r},offset:0}),o.mixin(o.prototype),f.mixin=l({bufferish:n,write:u,fetch:function(){var t=this.start;{var r;if(tthis.minBufferSize?(this.flush(),this.push(t)):(r=this.reserve(r),n.prototype.copy.call(t,this.buffer,r))},maxBufferSize:65536,minBufferSize:2048,offset:0,start:0}),f.mixin(f.prototype)},{"./bufferish":8}],22:[function(t,r,e){var n=t("./ext-buffer").ExtBuffer,i=t("./ext-unpacker"),o=t("./read-format").readUint8,f=t("./read-token"),u=t("./codec-base");function a(t){var n=f.getReadToken(t);return function(t){var r=o(t),e=n[r];if(e)return e(t);throw new Error("Invalid type: "+(r&&"0x"+r.toString(16)))}}function s(){var t=this.options;return this.decode=a(t),t&&t.preset&&i.setExtUnpackers(this),this}u.install({addExtUnpacker:function(t,r){(this.extUnpackers||(this.extUnpackers=[]))[t]=u.filter(r)},getExtUnpacker:function(r){return(this.extUnpackers||(this.extUnpackers=[]))[r]||function(t){return new n(t,r)}},init:s}),e.preset=s.call(u.preset)},{"./codec-base":9,"./ext-buffer":17,"./ext-unpacker":19,"./read-format":23,"./read-token":24}],23:[function(t,r,e){var n=t("ieee754"),i=t("int64-buffer"),o=i.Uint64BE,f=i.Int64BE,a=(e.getReadFormat=function(t){var r=a.hasArrayBuffer&&t&&t.binarraybuffer,e=t&&t.int64;return{map:u&&t&&t.usemap?d:p,array:y,str:g,bin:r?w:b,ext:v,uint8:E,uint16:m,uint32:B,uint64:R(8,e?_:P),int8:A,int16:x,int32:U,int64:R(8,e?T:k),float32:R(4,S),float64:R(8,I)}},e.readUint8=E,t("./bufferish")),s=t("./bufferish-proto"),u="undefined"!=typeof Map,c=!0,h="BUFFER_SHORTAGE";function l(t,r){if(r>t.buffer.length-t.offset)throw new Error(h)}function p(t,r){l(t,2*r);for(var e={},n=new Array(r),i=new Array(r),o=t.codec.decode,f=0;f>>8,t[e]=r}}function d(n){return function(t,r){var e=t.reserve(5),t=t.buffer;t[e++]=n,t[e++]=r>>>24,t[e++]=r>>>16,t[e++]=r>>>8,t[e]=r}}function y(n,i,o,f){return function(t,r){var e=t.reserve(i+1);t.buffer[e++]=n,o.call(t.buffer,r,e,f)}}function g(t,r){new o(this,r,t)}function b(t,r){new f(this,r,t)}function w(t,r){n.write(this,t,r,!1,23,4)}function v(t,r){n.write(this,t,r,!1,52,8)}e.getWriteToken=function(t){return(t&&t.uint8array?function(){var t=h();return t[202]=y(202,4,w),t[203]=y(203,8,v),t}:s||a.hasBuffer&&t&&t.safe?function(){var t=u.slice();return t[196]=y(196,1,Buffer.prototype.writeUInt8),t[197]=y(197,2,Buffer.prototype.writeUInt16BE),t[198]=y(198,4,Buffer.prototype.writeUInt32BE),t[199]=y(199,1,Buffer.prototype.writeUInt8),t[200]=y(200,2,Buffer.prototype.writeUInt16BE),t[201]=y(201,4,Buffer.prototype.writeUInt32BE),t[202]=y(202,4,Buffer.prototype.writeFloatBE),t[203]=y(203,8,Buffer.prototype.writeDoubleBE),t[204]=y(204,1,Buffer.prototype.writeUInt8),t[205]=y(205,2,Buffer.prototype.writeUInt16BE),t[206]=y(206,4,Buffer.prototype.writeUInt32BE),t[207]=y(207,8,g),t[208]=y(208,1,Buffer.prototype.writeInt8),t[209]=y(209,2,Buffer.prototype.writeInt16BE),t[210]=y(210,4,Buffer.prototype.writeInt32BE),t[211]=y(211,8,b),t[217]=y(217,1,Buffer.prototype.writeUInt8),t[218]=y(218,2,Buffer.prototype.writeUInt16BE),t[219]=y(219,4,Buffer.prototype.writeUInt32BE),t[220]=y(220,2,Buffer.prototype.writeUInt16BE),t[221]=y(221,4,Buffer.prototype.writeUInt32BE),t[222]=y(222,2,Buffer.prototype.writeUInt16BE),t[223]=y(223,4,Buffer.prototype.writeUInt32BE),t}:h)()}},{"./bufferish":8,"./write-uint8":28,ieee754:33,"int64-buffer":34}],27:[function(t,r,e){var b=t("isarray"),n=t("int64-buffer"),w=n.Uint64BE,v=n.Int64BE,f=t("./bufferish"),a=t("./bufferish-proto"),u=t("./write-token"),E=t("./write-uint8").uint8,A=t("./ext-buffer").ExtBuffer,s="undefined"!=typeof Uint8Array,c="undefined"!=typeof Map,m=[];m[1]=212,m[2]=213,m[4]=214,m[8]=215,m[16]=216,e.getWriteType=function(t){var l=u.getWriteToken(t),r=t&&t.useraw,e=s&&t&&t.binarraybuffer,p=e?f.isArrayBuffer:f.isBuffer,d=e?function(t,r){i(t,new Uint8Array(r))}:i,y=c&&t&&t.usemap?function(n,t){if(!(t instanceof Map))return o(n,t);var r=t.size,i=(l[r<16?128+r:r<=65535?222:223](n,r),n.codec.encode);t.forEach(function(t,r,e){i(n,r),i(n,t)})}:o;return{boolean:function(t,r){l[r?195:194](t,r)},function:g,number:function(t,r){var e=0|r;r!==e?0<=r&&r<=4294967295&&Math.floor(r)===r?l[206](t,r):l[203](t,r):l[-32<=e&&e<=127?255&e:0<=e?e<=255?204:e<=65535?205:206:-128<=e?208:-32768<=e?209:210](t,e)},object:r?function(t,r){if(p(r))return function(t,r){var e=r.length;l[e<32?160+e:e<=65535?218:219](t,e),t.send(r)}(t,r);n(t,r)}:n,string:function(u){return function(t,r){var e=r.length,n=5+3*e,n=(t.offset=t.reserve(n),t.buffer),i=u(e),o=t.offset+i,r=(e=a.write.call(n,r,o),u(e));{var f;i!==r&&(i=o+r-i,f=o+e,a.copy.call(n,n,i,o,f))}l[1===r?160+e:r<=3?215+r:219](t,e),t.offset+=e}}(r?function(t){return t<32?1:t<=65535?3:5}:function(t){return t<32?1:t<=255?2:t<=65535?3:5}),symbol:g,undefined:g};function n(t,r){if(null===r)return g(t,r);if(p(r))return d(t,r);if(b(r))for(var e=t,n=r,i=n.length,o=(l[i<16?144+i:i<=65535?220:221](e,i),e.codec.encode),f=0;f>16&255,o[f++]=r>>8&255,o[f++]=255&r;2===n&&(r=a[t.charCodeAt(e)]<<2|a[t.charCodeAt(e+1)]>>4,o[f++]=255&r);1===n&&(r=a[t.charCodeAt(e)]<<10|a[t.charCodeAt(e+1)]<<4|a[t.charCodeAt(e+2)]>>2,o[f++]=r>>8&255,o[f++]=255&r);return o},e.fromByteArray=function(t){for(var r,e=t.length,n=e%3,i=[],o=0,f=e-n;o>18&63]+u[t>>12&63]+u[t>>6&63]+u[63&t]}(n));return i.join("")}(t,o,f>2]+u[r<<4&63]+"==")):2==n&&(r=(t[e-2]<<8)+t[e-1],i.push(u[r>>10]+u[r>>4&63]+u[r<<2&63]+"="));return i.join("")};for(var u=[],a=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i>>1;case"base64":return _(t).length;default:if(n)return k(t).length;r=(""+r).toLowerCase(),n=!0}}function r(t,r,e){var n,i=!1;if((r=void 0===r||r<0?0:r)>this.length)return"";if((e=void 0===e||e>this.length?this.length:e)<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":var o=this,f=r,u=e,a=o.length;(!u||u<0||a=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=Buffer.from(r,n)),Buffer.isBuffer(r))return 0===r.length?-1:d(t,r,e,n,i);if("number"==typeof r)return r&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(i?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,r,e):d(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function d(t,r,e,n,i){var o=1,f=t.length,u=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;f/=o=2,u/=2,e/=2}function a(t,r){return 1===o?t[r]:t.readUInt16BE(r*o)}if(i)for(var s=-1,c=e;c>8,i.push(e%256),i.push(n);return i}(r,t.length-e),t,e,n)}function U(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}var l=n,p=l.length;if(p<=w)return String.fromCharCode.apply(String,l);for(var d="",y=0;yr)&&(t+=" ... "),""},Buffer.prototype.compare=function(t,r,e,n,i){if(!Buffer.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),(r=void 0===r?0:r)<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&e<=r)return 0;if(i<=n)return-1;if(e<=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),f=(e>>>=0)-(r>>>=0),u=Math.min(o,f),a=this.slice(n,i),s=t.slice(r,e),c=0;cthis.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var o,f,u,a=!1;;)switch(n){case"hex":var s=this,c=t,h=r,l=e,p=(h=Number(h)||0,s.length-h);if((!l||p<(l=Number(l)))&&(l=p),(p=c.length)%2!=0)throw new TypeError("Invalid hex string");p/2t.length)throw new RangeError("Index out of range")}function E(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i>>8*(n?i:1-i)}function A(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i>>8*(n?i:3-i)&255}function m(t,r,e,n){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function x(t,r,e,n,i){return i||m(t,0,e,4),o.write(t,r,e,n,23,4),e+4}function R(t,r,e,n,i){return i||m(t,0,e,8),o.write(t,r,e,n,52,8),e+8}Buffer.prototype.slice=function(t,r){var e=this.length;if((t=~~t)<0?(t+=e)<0&&(t=0):e>>8):E(this,t,r,!0),r+2},Buffer.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):E(this,t,r,!1),r+2},Buffer.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):A(this,t,r,!0),r+4},Buffer.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):A(this,t,r,!1),r+4},Buffer.prototype.writeIntLE=function(t,r,e,n){t=+t,r|=0,n||v(this,t,r,e,(n=Math.pow(2,8*e-1))-1,-n);var i=0,o=1,f=0;for(this[r]=255&t;++i>0)-f&255;return r+e},Buffer.prototype.writeIntBE=function(t,r,e,n){t=+t,r|=0,n||v(this,t,r,e,(n=Math.pow(2,8*e-1))-1,-n);var i=e-1,o=1,f=0;for(this[r+i]=255&t;0<=--i&&(o*=256);)t<0&&0===f&&0!==this[r+i+1]&&(f=1),this[r+i]=(t/o>>0)-f&255;return r+e},Buffer.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&(t=t<0?255+t+1:t),r+1},Buffer.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):E(this,t,r,!0),r+2},Buffer.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):E(this,t,r,!1),r+2},Buffer.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):A(this,t,r,!0),r+4},Buffer.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||v(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Buffer.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):A(this,t,r,!1),r+4},Buffer.prototype.writeFloatLE=function(t,r,e){return x(this,t,r,!0,e)},Buffer.prototype.writeFloatBE=function(t,r,e){return x(this,t,r,!1,e)},Buffer.prototype.writeDoubleLE=function(t,r,e){return R(this,t,r,!0,e)},Buffer.prototype.writeDoubleBE=function(t,r,e){return R(this,t,r,!1,e)},Buffer.prototype.copy=function(t,r,e,n){if(e=e||0,n||0===n||(n=this.length),r>=t.length&&(r=t.length),(n=0=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length);var i,o=(n=t.length-r>>=0,e=void 0===e?this.length:e>>>0,"number"==typeof(t=t||0))for(u=r;u>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function _(t){return B.toByteArray(function(t){var r;if((t=((r=t).trim?r.trim():r.replace(/^\s+|\s+$/g,"")).replace(P,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function T(t,r,e,n){for(var i=0;i=r.length||i>=t.length);++i)r[i+e]=t[i];return i}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},S("buffer").Buffer)},{"base64-js":29,buffer:30,ieee754:33,isarray:31}],31:[function(t,r,e){var n={}.toString;r.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},{}],32:[function(t,r,e){function n(t){for(var r in a)t[r]=a[r];return t}function i(t,r){var e,n=this;if(arguments.length){if(r){if(e=o(n,t,!0)){if(!(e=e.filter(function(t){return t!==r&&t.originalListener!==r})).length)return i.call(n,t);n[u][t]=e}}else if((e=n[u])&&(delete e[t],!Object.keys(e).length))return i.call(n)}else delete n[u];return n}function o(t,r,e){if(!e||t[u])return(e=t[u]||(t[u]={}))[r]||(e[r]=[])}var f,u,a;f=function t(){if(!(this instanceof t))return new t},void 0!==r&&(r.exports=f),u="listeners",a={on:function(t,r){return o(this,t).push(r),this},once:function(t,r){var e=this;return n.originalListener=r,o(e,t).push(n),e;function n(){i.call(e,t,n),r.apply(this,arguments)}},off:i,emit:function(t,r){var e=this,t=o(e,t,!0);if(!t)return!1;var n=arguments.length;{var i;1===n?t.forEach(function(t){t.call(e)}):2===n?t.forEach(function(t){t.call(e,r)}):(i=Array.prototype.slice.call(arguments,1),t.forEach(function(t){t.apply(e,i)}))}return!!t.length}},n(f.prototype),f.mixin=n},{}],33:[function(t,r,e){e.read=function(t,r,e,n,i){var o,f,u=8*i-n-1,a=(1<>1,c=-7,h=e?i-1:0,l=e?-1:1,i=t[r+h];for(h+=l,o=i&(1<<-c)-1,i>>=-c,c+=u;0>=-c,c+=n;0>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:o-1,p=n?1:-1,o=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,f=s):(f=Math.floor(Math.log(r)/Math.LN2),r*(n=Math.pow(2,-f))<1&&(f--,n*=2),2<=(r+=1<=f+c?h/n:h*Math.pow(2,1-c))*n&&(f++,n/=2),s<=f+c?(u=0,f=s):1<=f+c?(u=(r*n-1)*Math.pow(2,i),f+=c):(u=r*Math.pow(2,c-1)*Math.pow(2,i),f=0));8<=i;t[e+l]=255&u,l+=p,u/=256,i-=8);for(f=f<>=8),t[r+i]=255&(e>>=8),t[r+n]=255&(e>>=8)}function c(t,r){return 16777216*t[r+n]+(t[r+i]<<16)+(t[r+o]<<8)+t[r+f]}}function l(t){var r=this.buffer,e=this.offset;return v=null,!1!==t&&n(r)?8===r.length?r:r.slice(e,e+8):T(r,e)}function R(t){var r=this.buffer,e=this.offset;return v=A,!1!==t&&A.isBuffer(r)?8===r.length?r:r.slice(e,e+8):A.from(P.call(this,t))}function P(t){var r=this.buffer,e=this.offset,n=r.buffer;return v=m,!1!==t&&!r.offset&&n instanceof x?8===n.byteLength?n:n.slice(e,e+8):(_(t=new m(8),0,r,e),t.buffer)}function k(t,r){var e=t&&t.length;return r|=0,e&&r+8<=e&&"string"!=typeof t[r]}function _(t,r,e,n){r|=0,n|=0;for(var i=0;i<8;i++)t[r++]=255&e[n++]}function T(t,r){return Array.prototype.slice.call(t,r,r+8)}function S(t,r,e){for(var n=r+8;r