From af7ccc7ec6c3cc529750cda88eb0f41274b555a0 Mon Sep 17 00:00:00 2001 From: Caleb Sander Date: Wed, 27 Sep 2017 11:36:34 -0700 Subject: [PATCH] Fixed nested pausing --- compiled/download.js | 4 +- compiled/upload-download.js | 4 +- compiled/upload.js | 4 +- dist/lib/appendable-stream.d.ts | 18 +++++- dist/lib/appendable-stream.js | 46 +++++++++++---- dist/lib/appendable.d.ts | 21 ++++++- dist/lib/growable-buffer.d.ts | 23 ++++++-- dist/lib/growable-buffer.js | 38 +++++++++---- ...b_appendable_stream_.appendablestream.html | 53 ++++++++++++----- .../_lib_growable_buffer_.growablebuffer.html | 57 ++++++++++--------- .../_lib_appendable_.appendablebuffer.html | 29 ++++++---- lib/appendable-stream.ts | 48 +++++++++++----- lib/appendable.ts | 21 ++++++- lib/growable-buffer.ts | 41 ++++++++----- test/appendable-stream/appendable-stream.ts | 55 +++++++++++------- test/growable-buffer/misc-functions.ts | 51 ++++++++++++++--- test/value-bytes/choice.ts | 25 ++++++++ 17 files changed, 388 insertions(+), 150 deletions(-) diff --git a/compiled/download.js b/compiled/download.js index 9eeebff..7084e10 100644 --- a/compiled/download.js +++ b/compiled/download.js @@ -1,7 +1,7 @@ -!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=110)}([function(e,t,r){"use strict";function n(e,t){t instanceof Array||(t=[t]);for(const r of t)if(e instanceof r||void 0!==e&&null!==e&&e.constructor===r)return;throw new TypeError(l.inspect(e)+" is not an instance of "+t.map(({name:e})=>e).join(" or "))}function i(e){if(n(e,Number),!Number.isSafeInteger(e))throw new RangeError(l.inspect(e)+" is not an integer")}function o(e,t,r,n){if(t=r){const i=String(t)+" is not in ["+String(e)+","+String(r)+")";throw n?new RangeError(n+" ("+i+")"):new RangeError(i)}}function a(e){throw new Error(e)}function s(e,t){e||a(t||"Assertion failed")}function u(e,t){const r=()=>new RangeError("Expected "+l.inspect(t)+" but got "+l.inspect(e));if(t){let n=!0;switch(t.constructor){case Object:if(!e||e.constructor!==Object)throw r();for(const n in t)if({}.hasOwnProperty.call(t,n))try{u(e[n],t[n])}catch(e){throw r()}break;case Array:if(!e||e.constructor!==Array)throw r();try{u(e.length,t.length)}catch(e){throw r()}for(let n=0;nr,t.NOT_LONG_ENOUGH);let o;const a=new Uint8Array(e)[r];switch(a){case 0:case 255:o=Boolean(a);break;default:throw new Error("0x"+n(a.toString(16),2)+" is an invalid Boolean value")}return{value:o,length:1}},t.readBooleans=function({buffer:e,offset:r,count:n}){const a=new Array(n),s=o.modEight(a.length),u=o.dividedByEight(a.length);let f;f=s?u+1:u,i.default(e.byteLength>=r+f,t.NOT_LONG_ENOUGH);const l=new Uint8Array(e,r);for(let e=0;er,t.NOT_LONG_ENOUGH);const n=new Uint8Array(e,r),o=a.getByteCount(n[0]);return i.default(e.byteLength>=r+o,t.NOT_LONG_ENOUGH),{value:a.readValueBuffer(n.slice(0,o).buffer),length:o}},t.readLong=function(e,r){i.default(e.byteLength>=r+8,t.NOT_LONG_ENOUGH);const n=new DataView(e,r),o=n.getInt32(0),a=n.getUint32(4);return{value:s.add(s.mul(String(o),s.LONG_UPPER_SHIFT),String(a)),length:8}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4);class i extends n.default{}t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=new Map;{let e=0,t=1;for(;e<=Number.MAX_SAFE_INTEGER;)e+=function(e){const t=7*e;return Math.pow(2,t)}(t),i.set(t,e),t++}const o=new Map,a=new Map;{let e=-256;for(const t of i.keys())a.set(t,255&e),o.set(t-1,t),e>>=1}t.makeValueBuffer=function(e){n.default.integer(e),n.default(e>=0,String(e)+" is negative");const t=(()=>{for(const[t,r]of i)if(e=0;r--)o[r]=255&e,e=Math.floor(e/256)}return o[0]|=a.get(t),o.buffer},t.getByteCount=function(e){const t=Math.clz32(~e<<24),r=o.get(t);return n.default(void 0!==r,"Invalid number of bytes"),r},t.readValueBuffer=function(e){n.default.instanceOf(e,ArrayBuffer);const t=e.byteLength;n.default(t>0,"Empty flex int buffer");const r=new Uint8Array(e),o=(()=>{let e=r[0]^a.get(t);for(let n=1;n{if(e&&e.constructor===String){const t=Number(e);if(!isNaN(t)||"NaN"===e)return t}})},function(e,t,r){"use strict";(function(e){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function g(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return B(this,t,r);case"ascii":return L(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:w(e,t,r,n,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,n,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}var f;if(i){var l=-1;for(f=r;fs&&(r=s-u),f=r;f>=0;f--){for(var c=!0,h=0;hi&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=r){var u,f,l,c;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(u=e[i+1]))&&(c=(31&o)<<6|63&u)>127&&(a=c);break;case 3:u=e[i+1],f=e[i+2],128==(192&u)&&128==(192&f)&&(c=(15&o)<<12|(63&u)<<6|63&f)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:u=e[i+1],f=e[i+2],l=e[i+3],128==(192&u)&&128==(192&f)&&128==(192&l)&&(c=(15&o)<<18|(63&u)<<12|(63&f)<<6|63&l)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return x(n)}function x(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function k(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function I(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,i){return i||j(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(e,t,r,n,23,4),r+4}function V(e,t,r,n,i){return i||j(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(e,t,r,n,52,8),r+8}function D(e){if((e=q(e).replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function z(e){return $.toByteArray(D(e))}function W(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function X(e){return e!==e}/*! +!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=110)}([function(e,t,r){"use strict";function n(e,t){t instanceof Array||(t=[t]);for(const r of t)if(e instanceof r||void 0!==e&&null!==e&&e.constructor===r)return;throw new TypeError(l.inspect(e)+" is not an instance of "+t.map(({name:e})=>e).join(" or "))}function i(e){if(n(e,Number),!Number.isSafeInteger(e))throw new RangeError(l.inspect(e)+" is not an integer")}function o(e,t,r,n){if(t=r){const i=String(t)+" is not in ["+String(e)+","+String(r)+")";throw n?new RangeError(n+" ("+i+")"):new RangeError(i)}}function a(e){throw new Error(e)}function s(e,t){e||a(t||"Assertion failed")}function u(e,t){const r=()=>new RangeError("Expected "+l.inspect(t)+" but got "+l.inspect(e));if(t){let n=!0;switch(t.constructor){case Object:if(!e||e.constructor!==Object)throw r();for(const n in t)if({}.hasOwnProperty.call(t,n))try{u(e[n],t[n])}catch(e){throw r()}break;case Array:if(!e||e.constructor!==Array)throw r();try{u(e.length,t.length)}catch(e){throw r()}for(let n=0;nr,t.NOT_LONG_ENOUGH);let o;const a=new Uint8Array(e)[r];switch(a){case 0:case 255:o=Boolean(a);break;default:throw new Error("0x"+n(a.toString(16),2)+" is an invalid Boolean value")}return{value:o,length:1}},t.readBooleans=function({buffer:e,offset:r,count:n}){const a=new Array(n),s=o.modEight(a.length),u=o.dividedByEight(a.length);let f;f=s?u+1:u,i.default(e.byteLength>=r+f,t.NOT_LONG_ENOUGH);const l=new Uint8Array(e,r);for(let e=0;er,t.NOT_LONG_ENOUGH);const n=new Uint8Array(e,r),o=a.getByteCount(n[0]);return i.default(e.byteLength>=r+o,t.NOT_LONG_ENOUGH),{value:a.readValueBuffer(n.slice(0,o).buffer),length:o}},t.readLong=function(e,r){i.default(e.byteLength>=r+8,t.NOT_LONG_ENOUGH);const n=new DataView(e,r),o=n.getInt32(0),a=n.getUint32(4);return{value:s.add(s.mul(String(o),s.LONG_UPPER_SHIFT),String(a)),length:8}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4);class i extends n.default{}t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=new Map;{let e=0,t=1;for(;e<=Number.MAX_SAFE_INTEGER;)e+=function(e){const t=7*e;return Math.pow(2,t)}(t),i.set(t,e),t++}const o=new Map,a=new Map;{let e=-256;for(const t of i.keys())a.set(t,255&e),o.set(t-1,t),e>>=1}t.makeValueBuffer=function(e){n.default.integer(e),n.default(e>=0,String(e)+" is negative");const t=(()=>{for(const[t,r]of i)if(e=0;r--)o[r]=255&e,e=Math.floor(e/256)}return o[0]|=a.get(t),o.buffer},t.getByteCount=function(e){const t=Math.clz32(~e<<24),r=o.get(t);return n.default(void 0!==r,"Invalid number of bytes"),r},t.readValueBuffer=function(e){n.default.instanceOf(e,ArrayBuffer);const t=e.byteLength;n.default(t>0,"Empty flex int buffer");const r=new Uint8Array(e),o=(()=>{let e=r[0]^a.get(t);for(let n=1;n{if(e&&e.constructor===String){const t=Number(e);if(!isNaN(t)||"NaN"===e)return t}})},function(e,t,r){"use strict";(function(e){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function g(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return B(this,t,r);case"ascii":return L(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function w(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}var f;if(i){var l=-1;for(f=r;fs&&(r=s-u),f=r;f>=0;f--){for(var c=!0,h=0;hi&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=r){var u,f,l,c;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(u=e[i+1]))&&(c=(31&o)<<6|63&u)>127&&(a=c);break;case 3:u=e[i+1],f=e[i+2],128==(192&u)&&128==(192&f)&&(c=(15&o)<<12|(63&u)<<6|63&f)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:u=e[i+1],f=e[i+2],l=e[i+3],128==(192&u)&&128==(192&f)&&128==(192&l)&&(c=(15&o)<<18|(63&u)<<12|(63&f)<<6|63&l)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return x(n)}function x(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function k(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function I(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function j(e,t,r,n,i){return i||C(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(e,t,r,n,23,4),r+4}function V(e,t,r,n,i){return i||C(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(e,t,r,n,52,8),r+8}function D(e){if((e=q(e).replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function z(e){return $.toByteArray(D(e))}function W(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function X(e){return e!==e}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var $=r(20),K=r(50),J=r(32);t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:()=>42},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,r){return a(null,e,t,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,r){return u(null,e,t,r)},o.allocUnsafe=function(e){return f(null,e)},o.allocUnsafeSlow=function(e){return f(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},o.prototype.compare=function(e,t,r,n,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,s=r-t,u=Math.min(a,s),f=this.slice(n,i),l=e.slice(t,r),c=0;ci)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return O(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),K.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),K.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),K.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),K.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||N(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return V(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return V(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=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),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a"}if(t instanceof Function)return"Function "+t.name;if(o.get(t))return"[Circular]";if(o.set(t,1),t instanceof Set){let e="Set {";const r=t.values();let i=r.next();for(;!i.done;)e+=n(i.value,o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"}"}if(t instanceof Map){let e="Map {";const r=t.entries();let i=r.next();for(;!i.done;)e+=n(i.value[0],o),e+=" => ",e+=n(i.value[1],o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"}"}if(t instanceof Array){let e="[";const r=t[Symbol.iterator]();let i=r.next();for(;!i.done;)e+=n(i.value,o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"]"}if(t.constructor===Object){let e="{";for(const r in t)({}).hasOwnProperty.call(t,r)&&("{"!==e&&(e+=", "),e+=r+": "+n(t[r],o));return o.set(t,o.get(t)-1),e+"}"}const{name:a}=t.constructor,s=(a?a+" ":"")+n(r(t),o);return o.set(t,o.get(t)-1),s}Object.defineProperty(t,"__esModule",{value:!0});const i=new Set([String,Number,Boolean,Date]);t.inspect=function(e){return n(e,new Map)}}).call(t,r(7).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(25),o=4096;t.toString=function(e){n.default.instanceOf(e,Uint8Array);const t=[];for(let r=0;r239?4:n>223?3:n>191?2:1;if(r+o<=e.length){let t,a,s,u;switch(o){case 1:n<128&&(i=n);break;case 2:128==(192&(t=e[r+1]))&&(u=(31&n)<<6|63&t)>127&&(i=u);break;case 3:t=e[r+1],a=e[r+2],128==(192&t)&&128==(192&a)&&(u=(15&n)<<12|(63&t)<<6|63&a)>2047&&(u<55296||u>57343)&&(i=u);break;case 4:t=e[r+1],a=e[r+2],s=e[r+3],128==(192&t)&&128==(192&a)&&128==(192&s)&&(u=(15&n)<<18|(63&t)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(i=u)}}void 0===i?(i=65533,o=1):i>65535&&(i-=65536,t.push(i>>>10&1023|55296),i=56320|1023&i),t.push(i),r+=o}let r="";for(let e=0;e>6).add(128|63&e):e<55296||e>=57344?t.add(224|e>>12).add(128|e>>6&63).add(128|63&e):(e=65536+((1023&e)<<10|1023&e),t.add(240|e>>18).add(128|e>>12&63).add(128|e>>6&63).add(128|63&e))}return t.toBuffer()},t.toBinaryString=function(e){n.default.instanceOf(e,ArrayBuffer);let t="";const r=new Uint8Array(e);for(let e=0;e1)for(var r=1;r=10;)s-=10,i++;0===s?o++:(n=String(s)+T(n,o),o=0)}return i>0&&(n=String(i)+T(n,o)),n}function o(e,t){if(B(e),B(t),v(e)&&v(t))return i(e,t);if(y(e)&&y(t))return b(i(m(e),m(t)));if(d(m(e),m(t))){var r=e;e=t,t=r}var o=n(m(e),m(t));return v(e)?o:b(o)}function a(e,t){return B(e),B(t),o(e,b(t))}function s(e,t){x(e),L(t);for(var r="",n=A(e),i=0,o=0,a=0;a=10;)s-=10,i++;0===s?o++:(r=String(s)+T(r,o),o=0)}return i>0&&(r=String(i)+T(r,o)),0===r.length?"0":r}function u(e,t){x(e),x(t);for(var r="0",n=A(t),o=0;o0;)e+="0",t--;return e}function E(e,t){return B(e),L(t),t>=A(e)?"0":e.charAt(e.length-t-1)}function A(e){return y(e)?e.length-1:e.length}function B(e){U(e,"string")}function x(e){B(e),M(e,v,"isPositive")}function L(e){U(e,"number")}function R(e){if(U(e,"number"),e<0)throw new Error("Expected a positive number: "+e)}function M(e,t,r){if(!t.call(null,e))throw new Error("Condition "+r+" failed for value "+e)}function U(e,t){if(typeof e!==t)throw new Error("Not a "+t+": "+e)}Object.defineProperty(t,"__esModule",{value:!0}),t.subPositive=n,t.add=o,t.sub=a,t.timesDigit=s,t.mulPositive=u,t.mul=f,t.quotientRemainderPositive=l,t.div=function(e,t,r=!1){B(e),B(t);var n=l(m(e),m(t))[0];return w(e,t)||(n=b(n)),!r||c(f(n,t),e)||w(e,t)||(n=a(n,"1")),n},t.eq=c,t.lt=d,t.ge=p,t.gt=g,t.isNegative=y,t.isPositive=v,t.abs=m,t.negate=b;var P=/^(-?)0*([1-9][0-9]*)$/,N=/^0+$/;t.normalize=_,t.LONG_UPPER_SHIFT="4294967296",t.BYTE_SHIFT="256"},function(e,t,r){(t=e.exports=r(37)).Stream=t,t.Readable=t,t.Writable=r(24),t.Duplex=r(8),t.Transform=r(41),t.PassThrough=r(63)},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(t,r(7).Buffer)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;ae.namet.name?1:0)}static get _value(){return 81}addToBuffer(e){if(super.addToBuffer(e)){e.add(this.fields.length);for(const t of this.fields){const{nameBuffer:r}=t;e.add(r.byteLength).addAll(r),t.type.addToBuffer(e)}return!0}return!1}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Object);for(const r of this.fields){const i=t[r.name];try{r.type.writeValue(e,i)}catch(e){throw n.default(void 0!==i,'Value for field "'+r.name+'" missing'),e}}}consumeValue(e,t,r){let n=0;const i=r||o.makeBaseValue(this);for(const r of this.fields){const o=r.type.consumeValue(e,t+n);i[r.name]=o.value,n+=o.length}return{value:i,length:n}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.fields.length!==t.fields.length)return!1;for(let e=0;e0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function o(e,t,r){for(var n,o=[],a=t;a0?f-4:f;var l=0;for(t=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i="",s=[],u=0,f=r-n;uf?f:u+16383));return 1===n?(t=e[r-1],i+=a[t>>2],i+=a[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=a[t>>10],i+=a[t>>4&63],i+=a[t<<2&63],i+="="),s.push(i),s.join("")};for(var a=[],s=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=f.length;l0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var r,i,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],a=r.length,i=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(s=a;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],n(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return a(e,t,r)}var o=r(7),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=i),n(a,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,i){function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){B(t,e)}}function a(e){return N.from(e)}function s(e){return N.isBuffer(e)||e instanceof k}function u(){}function f(e,t){L=L||r(8),e=e||{},this.objectMode=!!e.objectMode,t instanceof L&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){m(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function l(e){if(L=L||r(8),!(j.call(l,this)||this instanceof L))return new l(e);this._writableState=new f(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),P.call(this)}function c(e,t){var r=new Error("write after end");e.emit("error",r),x(t,r)}function h(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),x(n,o),i=!1),i}function d(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=N.from(t,r)),t}function p(e,t,r,n,i,o){if(!r){var a=d(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1?n:x;l.WritableState=f;var M=r(16);M.inherits=r(17);var U={deprecate:r(62)},P=r(38),N=r(23).Buffer,k=i.Uint8Array||function(){},I=r(39);M.inherits(l,P),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:U.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var j;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value(e){return!!j.call(this,e)||e&&e._writableState instanceof f}})):j=function(e){return e instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=s(e)&&!n.objectMode;return o&&!N.isBuffer(e)&&(e=a(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=u),n.ended?c(this,r):(o||h(this,n,e,r))&&(n.pendingcb++,i=p(this,n,o,e,t,r)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},l.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},l.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||A(this,n,r)},Object.defineProperty(l.prototype,"destroyed",{get(){return void 0!==this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}}),l.prototype.destroy=I.destroy,l.prototype._undestroy=I.undestroy,l.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,r(11),r(60).setImmediate,r(5))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=10;class o{constructor(e=i){try{n.default.integer(e),n.default(e>=0)}catch(t){throw new RangeError(String(e)+" is not a valid buffer length")}this.buffer=new ArrayBuffer(e),this.size=0,this.commitedSize=null}get length(){return this.size}grow(e){if(n.default.integer(e),e>this.buffer.byteLength){const t=new ArrayBuffer(e<<1);new Uint8Array(t).set(new Uint8Array(this.buffer).subarray(0,this.size)),this.buffer=t}return this}add(e){return n.default.integer(e),n.default.between(0,e,256,"Not a byte: "+String(e)),this.addAll(new Uint8Array([e]).buffer)}addAll(e){n.default.instanceOf(e,ArrayBuffer);const t=this.size,r=this.size+e.byteLength;return this.grow(r),this.size=r,new Uint8Array(this.buffer).set(new Uint8Array(e),t),this}get rawBuffer(){return this.buffer}toBuffer(){let e;return e=null===this.commitedSize?this.size:this.commitedSize,this.buffer.slice(0,e)}pause(){return n.default(null===this.commitedSize,"Already paused"),this.commitedSize=this.size,this}resume(){return n.default(null!==this.commitedSize,"Was not paused"),this.commitedSize=null,this}reset(){if(null===this.commitedSize)throw new Error("Was not paused");return this.size=this.commitedSize,this}}t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(2),s=r(4);class u extends a.default{constructor(e,t){super(),n.default.instanceOf(e,s.default),n.default.instanceOf(t,s.default),this.keyType=e,this.valueType=t}static get _value(){return 84}addToBuffer(e){return!!super.addToBuffer(e)&&(this.keyType.addToBuffer(e),this.valueType.addToBuffer(e),!0)}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Map),e.addAll(i.makeValueBuffer(t.size));for(const[r,n]of t)this.keyType.writeValue(e,r),this.valueType.writeValue(e,n)}consumeValue(e,t,r){const n=o.readFlexInt(e,t);let{length:i}=n;const a=r||o.makeBaseValue(this);for(let r=0;r>>3},t.modEight=function(e){return 7&e},t.timesEight=function(e){return e<<3}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3);t.default=(({type:e,buffer:t,value:r,length:i})=>{t.addAll(n.makeValueBuffer(i));for(const n of r)e.writeValue(t,n)})},function(e,t,r){(function(e){function r(){if(void 0!==o)return o;if(e.XMLHttpRequest){o=new e.XMLHttpRequest;try{o.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){o=null}}else o=null;return o}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}t.fetch=i(e.fetch)&&i(e.ReadableStream),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var o,a=void 0!==e.ArrayBuffer,s=a&&i(e.ArrayBuffer.prototype.slice);t.arraybuffer=t.fetch||a&&n("arraybuffer"),t.msstream=!t.fetch&&s&&n("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&a&&n("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&i(r().overrideMimeType),t.vbArray=i(e.VBArray),o=null}).call(t,r(5))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";(function(t,n){function i(e){return j.from(e)}function o(e){return j.isBuffer(e)||e instanceof C}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?N(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function s(e,t){P=P||r(8),e=e||{},this.objectMode=!!e.objectMode,t instanceof P&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(G||(G=r(40).StringDecoder),this.decoder=new G(e.encoding),this.encoding=e.encoding)}function u(e){if(P=P||r(8),!(this instanceof u))return new u(e);this._readableState=new s(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),I.call(this)}function f(e,t,r,n,o){var a=e._readableState;if(null===t)a.reading=!1,g(e,a);else{var s;o||(s=c(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===j.prototype||(t=i(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):l(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?l(e,a,t,!1):m(e,a)):l(e,a,t,!1))):n||(a.reading=!1)}return h(a)}function l(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&y(e)),m(e,t)}function c(e,t){var r;return o(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function h(e){return!e.ended&&(e.needReadable||e.length=z?e=z:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function p(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=d(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function g(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,y(e)}}function y(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(q("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?U(v,e):v(e))}function v(e){q("emit readable"),e.emit("readable"),S(e)}function m(e,t){t.readingMore||(t.readingMore=!0,U(w,e,t))}function w(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=A(e,t.buffer,t.decoder),r}function A(e,t,r){var n;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}function x(e,t){var r=j.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}function L(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,U(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return q("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):y(this),null;if(0===(e=p(e,t))&&t.ended)return 0===t.length&&L(this),null;var n=t.needReadable;q("need readable",n),(0===t.length||t.length-e0?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(e,t){function r(e,t){q("onunpipe"),e===h&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function i(){q("onend"),e.end()}function o(){q("cleanup"),e.removeListener("close",f),e.removeListener("finish",l),e.removeListener("drain",g),e.removeListener("error",u),e.removeListener("unpipe",r),h.removeListener("end",i),h.removeListener("end",c),h.removeListener("data",s),y=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||g()}function s(t){q("ondata"),v=!1,!1!==e.write(t)||v||((1===d.pipesCount&&d.pipes===e||d.pipesCount>1&&-1!==M(d.pipes,e))&&!y&&(q("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,v=!0),h.pause())}function u(t){q("onerror",t),c(),e.removeListener("error",u),0===k(e,"error")&&e.emit("error",t)}function f(){e.removeListener("finish",l),c()}function l(){q("onfinish"),e.removeListener("close",f),c()}function c(){q("unpipe"),h.unpipe(e)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=e;break;case 1:d.pipes=[d.pipes,e];break;default:d.pipes.push(e)}d.pipesCount+=1,q("pipe count=%d opts=%j",d.pipesCount,t);var p=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?i:c;d.endEmitted?U(p):h.once("end",p),e.on("unpipe",r);var g=b(h);e.on("drain",g);var y=!1,v=!1;return h.on("data",s),a(e,"error",u),e.once("close",f),e.once("finish",l),e.emit("pipe",h),d.flowing||(q("pipe resume"),h.resume()),e},u.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived);var n=(t+=e.toString(this.encoding,0,n)).length-1,i=t.charCodeAt(n);if(i>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,n)}return t},f.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},f.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},function(e,t,r){"use strict";function n(e){this.afterTransform=function(t,r){return i(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&e.push(r),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length{n.default.instanceOf(t,String),n.default(!(i.gt(t,"9223372036854775807")||i.lt(t,"-9223372036854775808")),"Value out of range");const r=i.div(t,i.LONG_UPPER_SHIFT,!0),o=i.sub(t,i.mul(r,i.LONG_UPPER_SHIFT)),a=new ArrayBuffer(8),s=new DataView(a);s.setInt32(0,Number(r)),s.setUint32(4,Number(o)),e.addAll(a)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MILLIS_PER_DAY=864e5;const n=6e4;t.toUTC=function(e){return e.getTime()-e.getTimezoneOffset()*n},t.fromUTC=function(e){const t=new Date(e);return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2);class i extends n.default{}t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(33);t.default=((e,t)=>{n.default.instanceOf(t,Array);e:for(let r=0;;r++){let o=0;for(let a=0;a<8;a++){const s=i.timesEight(r)|a;if(s===t.length){a&&e.add(o);break e}const u=t[s];n.default.instanceOf(u,Boolean),u&&(o|=1<<7-a)}e.add(o)}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(51);t.ByteType=n.default;var i=r(80);t.ShortType=i.default;var o=r(81);t.IntType=o.default;var a=r(82);t.LongType=a.default;var s=r(83);t.BigIntType=s.default;var u=r(84);t.FlexIntType=u.default;var f=r(85);t.UnsignedByteType=f.default;var l=r(86);t.UnsignedShortType=l.default;var c=r(87);t.UnsignedIntType=c.default;var h=r(88);t.UnsignedLongType=h.default;var d=r(89);t.BigUnsignedIntType=d.default;var p=r(90);t.FlexUnsignedIntType=p.default;var g=r(91);t.DateType=g.default;var y=r(92);t.DayType=y.default;var v=r(93);t.TimeType=v.default;var m=r(94);t.FloatType=m.default;var w=r(95);t.DoubleType=w.default;var b=r(96);t.BooleanType=b.default;var _=r(97);t.BooleanTupleType=_.default;var O=r(98);t.BooleanArrayType=O.default;var T=r(99);t.CharType=T.default;var S=r(100);t.StringType=S.default;var E=r(101);t.OctetsType=E.default;var A=r(28);t.TupleType=A.default;var B=r(19);t.StructType=B.default;var x=r(21);t.ArrayType=x.default;var L=r(27);t.SetType=L.default;var R=r(26);t.MapType=R.default;var M=r(102);t.EnumType=M.default;var U=r(103);t.ChoiceType=U.default;var P=r(104);t.NamedChoiceType=P.default;var N=r(105);t.RecursiveType=N.default;var k=r(106);t.OptionalType=k.default;var I=r(107);t.PointerType=I.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REPEATED_TYPE=255},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new Map;t.get=function(e){const t=n.get(e);if(t)return t;{const t={[e]:class{}}[e];return n.set(e,t),t}}},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,l=-7,c=r?i-1:0,h=r?-1:1,d=e[t+c];for(c+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+c],c+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+c],c+=h,l-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,f=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+c>=1?h/u:h*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=l?(s=0,a=l):a+c>=1?(s=(t*u-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,f-=8);e[r+d-p]|=128*g}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(12);class s extends a.default{static get _value(){return 1}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(-128,t,128,"Value out of range"),e.addAll(new Int8Array([t]).buffer)}consumeValue(e,t){return n.default(e.byteLength>t,i.NOT_LONG_ENOUGH),{value:new Int8Array(e)[t],length:1}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=(e,t)=>e>>>t|e<<32-t;t.default=(e=>{const t=e.byteLength,r=8*t;n.default(r===new Uint32Array([0|r])[0],"Bit length does not fit in a 32-bit integer");const a=t+(64-(t+72&63))+8,s=new ArrayBuffer(a),u=new Uint8Array(s);u.set(new Uint8Array(e)),u[t]=128,new DataView(s).setUint32(a-4,r);const f=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);for(let e=0;e>>3,i=t[e-2],a=o(i,17)^o(i,19)^i>>>10;t[e]=t[e-16]+n+t[e-7]+a}const n=f.slice();for(let e=0;e<64;e++){const r=n[0],a=n[1],s=n[2],u=n[4],f=n[5],l=n[6],c=o(u,6)^o(u,11)^o(u,25),h=u&f^~u&l,d=n[7]+c+h+i[e]+t[e],p=(o(r,2)^o(r,13)^o(r,22))+(r&a^r&s^a&s);n[7]=l,n[6]=f,n[5]=u,n[4]=n[3]+d,n[3]=s,n[2]=a,n[1]=r,n[0]=d+p}for(let e=0;e<8;e++)f[e]+=n[e]}const l=new ArrayBuffer(32),c=new DataView(l);for(let e=0;e<8;e++)c.setUint32(e<<2,f[e]);return l})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(20),i=new ArrayBuffer(2);new DataView(i).setUint16(0,12),t.VERSION_STRING=n.fromByteArray(new Uint8Array(i))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const n=r(55),i=r(74),o=r(0),a=r(25),s=[i.Writable,i.Duplex,n.OutgoingMessage];class u{constructor(e){o.default.instanceOf(e,s),this.outStream=e,this.writtenBytes=0,this.paused=null}add(e){return o.default.integer(e),o.default.between(0,e,256,"Not a byte: "+String(e)),this.addAll(new Uint8Array([e]).buffer)}addAll(t){return o.default.instanceOf(t,ArrayBuffer),this.paused?this.paused.addAll(t):this.outStream.write(e.from(t)),this.writtenBytes+=t.byteLength,this}end(){this.outStream.end()}get length(){return this.writtenBytes}pause(){return o.default(null===this.paused,"Already paused"),this.paused=new a.default,this}resume(){if(!this.paused)throw new Error("Was not paused");const{length:t}=this.paused;return this.outStream.write(e.from(this.paused.rawBuffer,0,t)),this.paused=null,this}reset(){if(!this.paused)throw new Error("Was not paused");return this.writtenBytes-=this.paused.length,this.paused=new a.default,this}}t.default=u}).call(t,r(7).Buffer)},function(e,t,r){(function(e){var n=r(56),i=r(65),o=r(66),a=r(67),s=t;s.request=function(t,r){t="string"==typeof t?a.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",s=t.protocol||o,u=t.hostname||t.host,f=t.port,l=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?s+"//"+u:"")+(f?":"+f:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var c=new n(t);return r&&c.on("response",r),c},s.get=function(e,t){var r=s.request(e,t);return r.end(),r},s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.STATUS_CODES=o,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(t,r(5))},function(e,t,r){(function(t,n,i){function o(e,t){return s.fetch&&t?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&e?"arraybuffer":s.vbArray&&e?"text:vbarray":"text"}function a(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}var s=r(35),u=r(36),f=r(57),l=r(15),c=r(64),h=f.IncomingMessage,d=f.readyStates,p=e.exports=function(e){var r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var n,i=!0;if("disable-fetch"===e.mode||"timeout"in e)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!s.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=o(n,i),r.on("finish",function(){r._onFinish()})};u(p,l.Writable),p.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===g.indexOf(n)&&(r._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var r=e._opts,o=e._headers,a=null;"GET"!==r.method&&"HEAD"!==r.method&&(a=s.blobConstructor?new n.Blob(e._body.map(function(e){return c(e)}),{type:(o["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(o).forEach(function(e){var t=o[e].name,r=o[e].value;Array.isArray(r)?r.forEach(function(e){u.push([t,e])}):u.push([t,r])}),"fetch"===e._mode)n.fetch(e._opts.url,{method:e._opts.method,headers:u,body:a||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)});else{var f=e._xhr=new n.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!r.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"timeout"in r&&(f.timeout=r.timeout,f.ontimeout=function(){e.emit("timeout")}),u.forEach(function(e){f.setRequestHeader(e[0],e[1])}),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(a)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}}}},p.prototype._onXHRProgress=function(){var e=this;a(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new h(e._xhr,e._fetchResponse,e._mode),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,r){this._body.push(e),r()},p.prototype.abort=p.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},p.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(n,e,t,r)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(t,r(7).Buffer,r(5),r(11))},function(e,t,r){(function(e,n,i){var o=r(35),a=r(36),s=r(15),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=t.IncomingMessage=function(t,r,i){var a=this;if(s.Readable.call(a),a._mode=i,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){e.nextTick(function(){a.emit("close")})}),"fetch"===i){a._fetchResponse=r,a.url=r.url,a.statusCode=r.status,a.statusMessage=r.statusText,r.headers.forEach(function(e,t){a.headers[t.toLowerCase()]=e,a.rawHeaders.push(t,e)});var u=r.body.getReader();function f(){u.read().then(function(e){a._destroyed||(e.done?a.push(null):(a.push(new n(e.value)),f()))}).catch(function(e){a.emit("error",e)})}f()}else if(a._xhr=t,a._pos=0,a.url=t.responseURL,a.statusCode=t.status,a.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===a.headers[r]&&(a.headers[r]=[]),a.headers[r].push(t[2])):void 0!==a.headers[r]?a.headers[r]+=", "+t[2]:a.headers[r]=t[2],a.rawHeaders.push(t[1],t[2])}}),a._charset="x-user-defined",!o.overrideMimeType){var l=a.rawHeaders["mime-type"];if(l){var c=l.match(/;\s*charset=([^;])(;|$)/);c&&(a._charset=c[1].toLowerCase())}a._charset||(a._charset="utf-8")}};a(f,s.Readable),f.prototype._read=function(){},f.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==r){e.push(new n(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new n(o.length),s=0;se._pos&&(e.push(new n(new Uint8Array(f.result.slice(e._pos)))),e._pos=f.result.byteLength)},f.onload=function(){e.push(null)},f.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(t,r(11),r(7).Buffer,r(5))},function(e,t){},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){e.copy(t,r)}var o=r(23).Buffer;e.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),r=this.head,n=0;r;)i(r.data,t,n),n+=r.data.length,r=r.next;return t},e}()},function(e,t,r){function n(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new n(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new n(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(61),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,r){(function(e,t){!function(e,r){"use strict";function n(e){delete u[e]}function i(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}function o(e){if(f)setTimeout(o,0,e);else{var t=u[e];if(t){f=!0;try{i(t)}finally{n(e),f=!1}}}}if(!e.setImmediate){var a,s=1,u={},f=!1,l=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?a=function(e){t.nextTick(function(){o(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&o(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),a=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){o(e.data)},a=function(t){e.port2.postMessage(t)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var e=l.documentElement;a=function(t){var r=l.createElement("script");r.onreadystatechange=function(){o(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():a=function(e){setTimeout(o,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),h=["'"].concat(c),d=["%","/","?",";","#"].concat(h),p=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(71);n.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=-1!==n&&n127?N+="x":N+=P[k];if(!N.match(g)){var j=M.slice(0,A),C=M.slice(A+1),V=P.match(y);V&&(j.push(V[1]),C.unshift(V[2])),C.length&&(c="/"+C.join(".")+c),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=o.toASCII(this.hostname));var D=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+D,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==c[0]&&(c="/"+c))}if(!v[T])for(var A=0,U=h.length;A0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!O.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=O.slice(-1)[0],A=(r.host||e.host||O.length>1)&&("."===E||".."===E)||""===E,B=0,x=O.length;x>=0;x--)"."===(E=O[x])?O.splice(x,1):".."===E?(O.splice(x,1),B++):B&&(O.splice(x,1),B--);if(!b&&!_)for(;B--;B)O.unshift("..");!b||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),A&&"/"!==O.join("/").substr(-1)&&O.push("");var L=""===O[0]||O[0]&&"/"===O[0].charAt(0);if(S){r.hostname=r.host=L?"":O.length?O.shift():"";var R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");R&&(r.auth=R.shift(),r.host=r.hostname=R.shift())}return(b=b||r.host&&O.length)&&!L&&O.unshift(""),O.length?r.pathname=O.join("/"):(r.pathname=null,r.path=null),a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;!function(o){function a(e){throw new RangeError(R[e])}function s(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function u(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+s((e=e.replace(L,".")).split("."),t).join(".")}function f(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=P((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=P(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:w}function h(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,r){var n=0;for(e=r?U(e/T):e>>1,e+=U(e/t);e>M*_>>1;n+=w)e=U(e/M);return U(n+(M+1)*e/(e+O))}function p(e){var t,r,n,i,o,s,u,f,h,p,g=[],y=e.length,v=0,O=E,T=S;for((r=e.lastIndexOf(A))<0&&(r=0),n=0;n=128&&a("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=y&&a("invalid-input"),((f=c(e.charCodeAt(i++)))>=w||f>U((m-v)/s))&&a("overflow"),v+=f*s,h=u<=T?b:u>=T+_?_:u-T,!(fU(m/(p=w-h))&&a("overflow"),s*=p;T=d(v-o,t=g.length+1,0==o),U(v/t)>m-O&&a("overflow"),O+=U(v/t),v%=t,g.splice(v++,0,O)}return l(g)}function g(e){var t,r,n,i,o,s,u,l,c,p,g,y,v,O,T,B=[];for(y=(e=f(e)).length,t=E,r=0,o=S,s=0;s=t&&gU((m-r)/(v=n+1))&&a("overflow"),r+=(u-t)*v,t=u,s=0;sm&&a("overflow"),g==t){for(l=r,c=w;p=c<=o?b:c>=o+_?_:c-o,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=w-b,U=Math.floor,P=String.fromCharCode;v={version:"1.4.1",ucs2:{decode:f,encode:l},decode:p,encode:g,toASCII(e){return u(e,function(e){return x.test(e)?"xn--"+g(e):e})},toUnicode(e){return u(e,function(e){return B.test(e)?p(e.slice(4).toLowerCase()):e})}},void 0!==(i=function(){return v}.call(t,r,t,e))&&(e.exports=i)}()}).call(t,r(69)(e),r(5))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";e.exports={isString(e){return"string"==typeof e},isObject(e){return"object"==typeof e&&null!==e},isNull(e){return null===e},isNullOrUndefined(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(72),t.encode=t.stringify=r(73)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var l=0;l=0?(c=g.substr(0,y),h=g.substr(y+1)):(c=g,h=""),d=decodeURIComponent(c),p=decodeURIComponent(h),n(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n=t+2,i.NOT_LONG_ENOUGH),{value:new DataView(e).getInt16(t),length:2}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(12);class s extends a.default{static get _value(){return 3}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(-2147483648,t,2147483648,"Value out of range");const i=new ArrayBuffer(4);new DataView(i).setInt32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getInt32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1),i=r(43),o=r(12);class a extends o.default{static get _value(){return 4}writeValue(e,t){this.isBuffer(e),i.default(e,t)}consumeValue(e,t){return n.readLong(e,t)}}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(14),s=r(12);class u extends s.default{static get _value(){return 5}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),t=a.normalize(t);const r=[];if(!a.eq(t,"0")){for(;a.gt(t,"127")||a.lt(t,"-128");){const e=a.div(t,a.BYTE_SHIFT,!0),n=a.sub(t,a.mul(e,a.BYTE_SHIFT));r.push(Number(n)),t=e}r.push(Number(t))}const o=new Uint8Array(r.length);for(let e=r.length-1,t=0;e>=0;e--,t++)o[t]=r[e];e.addAll(i.makeValueBuffer(r.length)).addAll(o.buffer)}consumeValue(e,t){const r=o.readFlexInt(e,t),i=r.value;let{length:s}=r;n.default(e.byteLength>=t+s+i,o.NOT_LONG_ENOUGH);const u=new Uint8Array(e,t+s);let f;if(i){f=String(u[0]<<24>>24);for(let e=1;et,i.NOT_LONG_ENOUGH),{value:new Uint8Array(e)[t],length:1}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(13);class s extends a.default{static get _value(){return 18}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(0,t,65536,"Value out of range");const i=new ArrayBuffer(2);new DataView(i).setUint16(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+2,i.NOT_LONG_ENOUGH),{value:new DataView(e).getUint16(t),length:2}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(13);class s extends a.default{static get _value(){return 19}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(0,t,4294967296,"Value out of range");const i=new ArrayBuffer(4);new DataView(i).setUint32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getUint32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(14),a=r(13),s="18446744073709551615";class u extends a.default{static get _value(){return 20}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(!(o.gt(t,s)||o.lt(t,"0")),"Value out of range");const r=o.div(t,o.LONG_UPPER_SHIFT),i=o.sub(t,o.mul(r,o.LONG_UPPER_SHIFT)),a=new ArrayBuffer(8),u=new DataView(a);u.setUint32(0,Number(r)),u.setUint32(4,Number(i)),e.addAll(a)}consumeValue(e,t){n.default(e.byteLength>=t+8,i.NOT_LONG_ENOUGH);const r=new DataView(e,t),a=r.getUint32(0),s=r.getUint32(4);return{value:o.add(o.mul(String(a),o.LONG_UPPER_SHIFT),String(s)),length:8}}}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(14),s=r(13);class u extends s.default{static get _value(){return 21}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(!a.isNegative(t),"Value out of range");const r=[];if(!a.eq(t,"0")){for(;a.ge(t,a.BYTE_SHIFT);){const[e,n]=a.quotientRemainderPositive(t,a.BYTE_SHIFT);r.push(Number(n)),t=e}r.push(Number(t))}const o=new Uint8Array(r.length);for(let e=r.length-1,t=0;e>=0;e--,t++)o[t]=r[e];e.addAll(i.makeValueBuffer(r.length)).addAll(o.buffer)}consumeValue(e,t){const r=o.readFlexInt(e,t),i=r.value;let{length:s}=r;n.default(e.byteLength>=t+s+i,o.NOT_LONG_ENOUGH);const u=new Uint8Array(e,t+s);let f="0";for(let e=0;e>8),s.setUint8(2,o),e.addAll(a)}consumeValue(e,t){n.default(e.byteLength>=t+3,o.NOT_LONG_ENOUGH);const r=new DataView(e,t),a=r.getInt16(0)<<8|r.getUint8(2);return{value:i.fromUTC(a*i.MILLIS_PER_DAY),length:3}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(44),o=r(1),a=r(29);class s extends a.default{static get _value(){return 28}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Date);const r=new ArrayBuffer(4);new DataView(r).setUint32(0,t.getTime()%i.MILLIS_PER_DAY),e.addAll(r)}consumeValue(e,t){return n.default(e.byteLength>=t+4,o.NOT_LONG_ENOUGH),{value:new Date(new DataView(e).getUint32(t)),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(45);class s extends a.default{static get _value(){return 32}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.instanceOf(t,Number);const i=new ArrayBuffer(4);new DataView(i).setFloat32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getFloat32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(45);class s extends a.default{static get _value(){return 33}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.instanceOf(t,Number);const i=new ArrayBuffer(8);new DataView(i).setFloat64(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+8,i.NOT_LONG_ENOUGH),{value:new DataView(e).getFloat64(t),length:8}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(2);class a extends o.default{static get _value(){return 48}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Boolean),e.add(t?255:0)}consumeValue(e,t){return i.readBooleanByte(e,t)}}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(46),a=r(2);class s extends a.default{static get _value(){return 49}constructor(e){super(),n.default.byteUnsignedInteger(e),this.length=e}addToBuffer(e){return!!super.addToBuffer(e)&&(e.add(this.length),!0)}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Array),n.default(t.length===this.length,"Length does not match: expected "+String(this.length)+" but got "+String(t.length)),o.default(e,t)}consumeValue(e,t){return i.readBooleans({buffer:e,offset:t,count:this.length})}equals(e){return super.equals(e)&&e.length===this.length}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(46),s=r(2);class u extends s.default{static get _value(){return 50}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Array),e.addAll(i.makeValueBuffer(t.length)),a.default(e,t)}consumeValue(e,t){const r=o.readFlexInt(e,t);let{length:n}=r;const i=o.readBooleans({buffer:e,offset:t+n,count:r.value}),{value:a}=i;return n+=i.length,{value:a,length:n}}}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(2);class s extends a.default{static get _value(){return 64}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(1===t.length,"String must contain only 1 character"),e.addAll(i.fromString(t))}consumeValue(e,t){n.default(e.byteLength>t,o.NOT_LONG_ENOUGH);const[r]=i.toString(new Uint8Array(e,t).subarray(0,4));return{value:r,length:i.fromString(r).byteLength}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(2);class s extends a.default{static get _value(){return 65}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),e.addAll(i.fromString(t)).add(0)}consumeValue(e,t){const r=new Uint8Array(e,t);let a=0;for(;n.default(r.length>a,o.NOT_LONG_ENOUGH),r[a];a++);const s=i.toString(r.subarray(0,a));return a++,{value:s,length:a}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(2);class s extends a.default{static get _value(){return 66}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,ArrayBuffer),e.addAll(i.makeValueBuffer(t.byteLength)).addAll(t)}consumeValue(e,t){const r=o.readFlexInt(e,t),{length:i}=r,a=i+r.value;return n.default(e.byteLength>=t+a,o.NOT_LONG_ENOUGH),{value:e.slice(t+i,t+a),length:a}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(9),s=r(2),u=r(4);class f extends u.default{constructor({type:e,values:t}){super(),n.default.instanceOf(e,s.default),n.default.instanceOf(t,Array);try{n.default.byteUnsignedInteger(t.length)}catch(e){n.default.fail(String(t.length)+" values is too many")}const r=new Map;for(let o=0;ot,o.NOT_LONG_ENOUGH);const r=new Uint8Array(e)[t],{values:i}=this;return n.default(r in i,"Index "+String(r)+" is invalid"),{value:i[r],length:1}}equals(e){if(!super.equals(e))return!1;const t=e;if(!this.type.equals(t.type))return!1;if(this.values.length!==t.values.length)return!1;const r=t.valueIndices.keys();for(const e of this.valueIndices.keys())if(r.next().value!==e)return!1;return!0}}t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(9),a=r(2),s=r(4);class u extends a.default{constructor(e){super(),n.default.instanceOf(e,Array);try{n.default.byteUnsignedInteger(e.length)}catch(t){n.default.fail(String(e.length)+" types is too many")}for(const t of e)n.default.instanceOf(t,s.default);this.types=e}static get _value(){return 86}addToBuffer(e){if(super.addToBuffer(e)){e.add(this.types.length);for(const t of this.types)t.addToBuffer(e);return!0}return!1}writeValue(e,t){this.isBuffer(e),e.pause();let r=!1;for(let n=0;nt,i.NOT_LONG_ENOUGH);const o=new Uint8Array(e)[t],{value:a,length:s}=this.types[o].consumeValue(e,t+r);return r+=s,{value:a,length:r}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.types.length!==t.types.length)return!1;for(let e=0;et,a.NOT_LONG_ENOUGH);const i=new Uint8Array(e)[t],s=this.indexConstructors.get(i);if(void 0===s)throw new Error("Constructor index "+String(i)+" is invalid");const u=o.get(s.name),{value:f,length:l}=this.constructorTypes[i].type.consumeValue(e,t+r,new u);return r+=l,{value:f,length:r}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.constructorTypes.length!==t.constructorTypes.length)return!1;for(let e=0;e=0,"Offset is negative: "+String(t));const r=new Uint8Array(e);i.default(e.byteLength>t,u.NOT_LONG_ENOUGH);const h=r[t];let y,v=1;const m=d.get(h);if(m)return{value:new m,length:v};switch(h){case c.BooleanTupleType._value:{i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const n=r[t+v];v++,y=new c.BooleanTupleType(n);break}case c.TupleType._value:{const o=n(e,t+v);v+=o.length,i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const a=r[t+v];v++,y=new c.TupleType({type:o.value,length:a});break}case c.StructType._value:{i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const a=r[t+v];v++;const s={};for(let f=0;ft+v,u.NOT_LONG_ENOUGH);const a=r[t+v],f=t+ ++v,l=f+a;i.default(e.byteLength>=l,u.NOT_LONG_ENOUGH);const c=o.toString(r.subarray(f,l));v+=a;const h=n(e,l);s[c]=h.value,v+=h.length}y=new c.StructType(s);break}case c.ArrayType._value:{const r=n(e,t+v);v+=r.length,y=new c.ArrayType(r.value);break}case c.SetType._value:{const r=n(e,t+v);v+=r.length,y=new c.SetType(r.value);break}case c.MapType._value:{const r=n(e,t+v),i=n(e,t+(v+=r.length));v+=i.length,y=new c.MapType(r.value,i.value);break}case c.EnumType._value:{const o=n(e,t+v),a=o.value;v+=o.length,i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const s=r[t+v];v++;const f=new Array(s);for(let r=0;rt+v,u.NOT_LONG_ENOUGH);const o=r[t+v];v++;const a=new Array(o);for(let r=0;rt+v,u.NOT_LONG_ENOUGH);const a=r[t+v];v++;const l=new Map;for(let h=0;ht+v,u.NOT_LONG_ENOUGH);const a=r[t+v],h=t+ ++v,d=h+a;i.default(e.byteLength>=d,u.NOT_LONG_ENOUGH);const p=o.toString(r.subarray(h,d));v+=a;const g=n(e,d);if(!(g.value instanceof c.StructType))throw new Error("Not a StructType: "+f.inspect(g.value));l.set(s.get(p),g.value),v+=g.length}y=new c.NamedChoiceType(l);break}case c.RecursiveType._value:{const r=u.readFlexInt(e,t+v),i=r.value;v+=r.length;let o,a=g.get(e);if(a?o=a.get(i):(a=new Map,g.set(e,a)),void 0===o){do{o="read-type";for(let e=0;e{if(!t.ok)throw new Error("Received status of "+String(t.status));const r=t.headers.get("sig");return i&&i.sig===r?t.arrayBuffer().then(e=>{const t=i.type.readValue(e);return Promise.resolve(t)}):t.arrayBuffer().then(t=>{const i=a._consumeType(t,0),o=i.value,u=o.readValue(t,i.length);return s[e]={sig:r,type:o},n(),Promise.resolve(u)})})},function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(31)),window.sb=t}]); \ No newline at end of file +var $=r(20),K=r(50),J=r(32);t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:()=>42},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,r){return a(null,e,t,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,r){return u(null,e,t,r)},o.allocUnsafe=function(e){return f(null,e)},o.allocUnsafeSlow=function(e){return f(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},o.prototype.compare=function(e,t,r,n,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,s=r-t,u=Math.min(a,s),f=this.slice(n,i),l=e.slice(t,r),c=0;ci)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return O(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),K.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),K.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),K.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),K.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||N(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return j(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return j(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return V(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return V(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=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),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a"}if(t instanceof Function)return"Function "+t.name;if(o.get(t))return"[Circular]";if(o.set(t,1),t instanceof Set){let e="Set {";const r=t.values();let i=r.next();for(;!i.done;)e+=n(i.value,o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"}"}if(t instanceof Map){let e="Map {";const r=t.entries();let i=r.next();for(;!i.done;)e+=n(i.value[0],o),e+=" => ",e+=n(i.value[1],o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"}"}if(t instanceof Array){let e="[";const r=t[Symbol.iterator]();let i=r.next();for(;!i.done;)e+=n(i.value,o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"]"}if(t.constructor===Object){let e="{";for(const r in t)({}).hasOwnProperty.call(t,r)&&("{"!==e&&(e+=", "),e+=r+": "+n(t[r],o));return o.set(t,o.get(t)-1),e+"}"}const{name:a}=t.constructor,s=(a?a+" ":"")+n(r(t),o);return o.set(t,o.get(t)-1),s}Object.defineProperty(t,"__esModule",{value:!0});const i=new Set([String,Number,Boolean,Date]);t.inspect=function(e){return n(e,new Map)}}).call(t,r(7).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(25),o=4096;t.toString=function(e){n.default.instanceOf(e,Uint8Array);const t=[];for(let r=0;r239?4:n>223?3:n>191?2:1;if(r+o<=e.length){let t,a,s,u;switch(o){case 1:n<128&&(i=n);break;case 2:128==(192&(t=e[r+1]))&&(u=(31&n)<<6|63&t)>127&&(i=u);break;case 3:t=e[r+1],a=e[r+2],128==(192&t)&&128==(192&a)&&(u=(15&n)<<12|(63&t)<<6|63&a)>2047&&(u<55296||u>57343)&&(i=u);break;case 4:t=e[r+1],a=e[r+2],s=e[r+3],128==(192&t)&&128==(192&a)&&128==(192&s)&&(u=(15&n)<<18|(63&t)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(i=u)}}void 0===i?(i=65533,o=1):i>65535&&(i-=65536,t.push(i>>>10&1023|55296),i=56320|1023&i),t.push(i),r+=o}let r="";for(let e=0;e>6).add(128|63&e):e<55296||e>=57344?t.add(224|e>>12).add(128|e>>6&63).add(128|63&e):(e=65536+((1023&e)<<10|1023&e),t.add(240|e>>18).add(128|e>>12&63).add(128|e>>6&63).add(128|63&e))}return t.toBuffer()},t.toBinaryString=function(e){n.default.instanceOf(e,ArrayBuffer);let t="";const r=new Uint8Array(e);for(let e=0;e1)for(var r=1;r=10;)s-=10,i++;0===s?o++:(n=String(s)+T(n,o),o=0)}return i>0&&(n=String(i)+T(n,o)),n}function o(e,t){if(B(e),B(t),v(e)&&v(t))return i(e,t);if(y(e)&&y(t))return b(i(w(e),w(t)));if(d(w(e),w(t))){var r=e;e=t,t=r}var o=n(w(e),w(t));return v(e)?o:b(o)}function a(e,t){return B(e),B(t),o(e,b(t))}function s(e,t){x(e),L(t);for(var r="",n=A(e),i=0,o=0,a=0;a=10;)s-=10,i++;0===s?o++:(r=String(s)+T(r,o),o=0)}return i>0&&(r=String(i)+T(r,o)),0===r.length?"0":r}function u(e,t){x(e),x(t);for(var r="0",n=A(t),o=0;o0;)e+="0",t--;return e}function E(e,t){return B(e),L(t),t>=A(e)?"0":e.charAt(e.length-t-1)}function A(e){return y(e)?e.length-1:e.length}function B(e){P(e,"string")}function x(e){B(e),M(e,v,"isPositive")}function L(e){P(e,"number")}function R(e){if(P(e,"number"),e<0)throw new Error("Expected a positive number: "+e)}function M(e,t,r){if(!t.call(null,e))throw new Error("Condition "+r+" failed for value "+e)}function P(e,t){if(typeof e!==t)throw new Error("Not a "+t+": "+e)}Object.defineProperty(t,"__esModule",{value:!0}),t.subPositive=n,t.add=o,t.sub=a,t.timesDigit=s,t.mulPositive=u,t.mul=f,t.quotientRemainderPositive=l,t.div=function(e,t,r=!1){B(e),B(t);var n=l(w(e),w(t))[0];return m(e,t)||(n=b(n)),!r||c(f(n,t),e)||m(e,t)||(n=a(n,"1")),n},t.eq=c,t.lt=d,t.ge=p,t.gt=g,t.isNegative=y,t.isPositive=v,t.abs=w,t.negate=b;var U=/^(-?)0*([1-9][0-9]*)$/,N=/^0+$/;t.normalize=_,t.LONG_UPPER_SHIFT="4294967296",t.BYTE_SHIFT="256"},function(e,t,r){(t=e.exports=r(37)).Stream=t,t.Readable=t,t.Writable=r(24),t.Duplex=r(8),t.Transform=r(41),t.PassThrough=r(63)},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(t,r(7).Buffer)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;ae.namet.name?1:0)}static get _value(){return 81}addToBuffer(e){if(super.addToBuffer(e)){e.add(this.fields.length);for(const t of this.fields){const{nameBuffer:r}=t;e.add(r.byteLength).addAll(r),t.type.addToBuffer(e)}return!0}return!1}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Object);for(const r of this.fields){const i=t[r.name];try{r.type.writeValue(e,i)}catch(e){throw n.default(void 0!==i,'Value for field "'+r.name+'" missing'),e}}}consumeValue(e,t,r){let n=0;const i=r||o.makeBaseValue(this);for(const r of this.fields){const o=r.type.consumeValue(e,t+n);i[r.name]=o.value,n+=o.length}return{value:i,length:n}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.fields.length!==t.fields.length)return!1;for(let e=0;e0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function o(e,t,r){for(var n,o=[],a=t;a0?f-4:f;var l=0;for(t=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i="",s=[],u=0,f=r-n;uf?f:u+16383));return 1===n?(t=e[r-1],i+=a[t>>2],i+=a[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=a[t>>10],i+=a[t>>4&63],i+=a[t<<2&63],i+="="),s.push(i),s.join("")};for(var a=[],s=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=f.length;l0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var r,i,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],a=r.length,i=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(s=a;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],n(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return a(e,t,r)}var o=r(7),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=i),n(a,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,i){function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){B(t,e)}}function a(e){return N.from(e)}function s(e){return N.isBuffer(e)||e instanceof k}function u(){}function f(e,t){L=L||r(8),e=e||{},this.objectMode=!!e.objectMode,t instanceof L&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){w(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function l(e){if(L=L||r(8),!(C.call(l,this)||this instanceof L))return new l(e);this._writableState=new f(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),U.call(this)}function c(e,t){var r=new Error("write after end");e.emit("error",r),x(t,r)}function h(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),x(n,o),i=!1),i}function d(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=N.from(t,r)),t}function p(e,t,r,n,i,o){if(!r){var a=d(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1?n:x;l.WritableState=f;var M=r(16);M.inherits=r(17);var P={deprecate:r(62)},U=r(38),N=r(23).Buffer,k=i.Uint8Array||function(){},I=r(39);M.inherits(l,U),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:P.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var C;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(C=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value(e){return!!C.call(this,e)||e&&e._writableState instanceof f}})):C=function(e){return e instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=s(e)&&!n.objectMode;return o&&!N.isBuffer(e)&&(e=a(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=u),n.ended?c(this,r):(o||h(this,n,e,r))&&(n.pendingcb++,i=p(this,n,o,e,t,r)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},l.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},l.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||A(this,n,r)},Object.defineProperty(l.prototype,"destroyed",{get(){return void 0!==this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}}),l.prototype.destroy=I.destroy,l.prototype._undestroy=I.undestroy,l.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,r(11),r(60).setImmediate,r(5))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=10;class o{constructor(e=i){try{n.default.integer(e),n.default(e>=0)}catch(t){throw new RangeError(String(e)+" is not a valid buffer length")}this.buffer=new ArrayBuffer(e),this.size=0,this.pausePoints=[]}get length(){return this.size}grow(e){if(n.default.integer(e),e>this.buffer.byteLength){const t=new ArrayBuffer(e<<1);new Uint8Array(t).set(new Uint8Array(this.buffer).subarray(0,this.size)),this.buffer=t}return this}add(e){return n.default.integer(e),n.default.between(0,e,256,"Not a byte: "+String(e)),this.addAll(new Uint8Array([e]).buffer)}addAll(e){n.default.instanceOf(e,ArrayBuffer);const t=this.size,r=this.size+e.byteLength;return this.grow(r),this.size=r,new Uint8Array(this.buffer).set(new Uint8Array(e),t),this}get rawBuffer(){return this.buffer}toBuffer(){let e;return this.pausePoints.length?[e]=this.pausePoints:e=this.size,this.buffer.slice(0,e)}pause(){return this.pausePoints.push(this.size),this}resume(){if(void 0===this.pausePoints.pop())throw new Error("Was not paused");return this}reset(){if(!this.pausePoints.length)throw new Error("Was not paused");const e=this.pausePoints[this.pausePoints.length-1];return this.size=e,this}}t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(2),s=r(4);class u extends a.default{constructor(e,t){super(),n.default.instanceOf(e,s.default),n.default.instanceOf(t,s.default),this.keyType=e,this.valueType=t}static get _value(){return 84}addToBuffer(e){return!!super.addToBuffer(e)&&(this.keyType.addToBuffer(e),this.valueType.addToBuffer(e),!0)}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Map),e.addAll(i.makeValueBuffer(t.size));for(const[r,n]of t)this.keyType.writeValue(e,r),this.valueType.writeValue(e,n)}consumeValue(e,t,r){const n=o.readFlexInt(e,t);let{length:i}=n;const a=r||o.makeBaseValue(this);for(let r=0;r>>3},t.modEight=function(e){return 7&e},t.timesEight=function(e){return e<<3}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3);t.default=(({type:e,buffer:t,value:r,length:i})=>{t.addAll(n.makeValueBuffer(i));for(const n of r)e.writeValue(t,n)})},function(e,t,r){(function(e){function r(){if(void 0!==o)return o;if(e.XMLHttpRequest){o=new e.XMLHttpRequest;try{o.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){o=null}}else o=null;return o}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}t.fetch=i(e.fetch)&&i(e.ReadableStream),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var o,a=void 0!==e.ArrayBuffer,s=a&&i(e.ArrayBuffer.prototype.slice);t.arraybuffer=t.fetch||a&&n("arraybuffer"),t.msstream=!t.fetch&&s&&n("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&a&&n("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&i(r().overrideMimeType),t.vbArray=i(e.VBArray),o=null}).call(t,r(5))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";(function(t,n){function i(e){return C.from(e)}function o(e){return C.isBuffer(e)||e instanceof j}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?N(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function s(e,t){U=U||r(8),e=e||{},this.objectMode=!!e.objectMode,t instanceof U&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(G||(G=r(40).StringDecoder),this.decoder=new G(e.encoding),this.encoding=e.encoding)}function u(e){if(U=U||r(8),!(this instanceof u))return new u(e);this._readableState=new s(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),I.call(this)}function f(e,t,r,n,o){var a=e._readableState;if(null===t)a.reading=!1,g(e,a);else{var s;o||(s=c(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===C.prototype||(t=i(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):l(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?l(e,a,t,!1):w(e,a)):l(e,a,t,!1))):n||(a.reading=!1)}return h(a)}function l(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&y(e)),w(e,t)}function c(e,t){var r;return o(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function h(e){return!e.ended&&(e.needReadable||e.length=z?e=z:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function p(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=d(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function g(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,y(e)}}function y(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(q("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?P(v,e):v(e))}function v(e){q("emit readable"),e.emit("readable"),S(e)}function w(e,t){t.readingMore||(t.readingMore=!0,P(m,e,t))}function m(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=A(e,t.buffer,t.decoder),r}function A(e,t,r){var n;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}function x(e,t){var r=C.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}function L(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,P(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return q("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):y(this),null;if(0===(e=p(e,t))&&t.ended)return 0===t.length&&L(this),null;var n=t.needReadable;q("need readable",n),(0===t.length||t.length-e0?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(e,t){function r(e,t){q("onunpipe"),e===h&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function i(){q("onend"),e.end()}function o(){q("cleanup"),e.removeListener("close",f),e.removeListener("finish",l),e.removeListener("drain",g),e.removeListener("error",u),e.removeListener("unpipe",r),h.removeListener("end",i),h.removeListener("end",c),h.removeListener("data",s),y=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||g()}function s(t){q("ondata"),v=!1,!1!==e.write(t)||v||((1===d.pipesCount&&d.pipes===e||d.pipesCount>1&&-1!==M(d.pipes,e))&&!y&&(q("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,v=!0),h.pause())}function u(t){q("onerror",t),c(),e.removeListener("error",u),0===k(e,"error")&&e.emit("error",t)}function f(){e.removeListener("finish",l),c()}function l(){q("onfinish"),e.removeListener("close",f),c()}function c(){q("unpipe"),h.unpipe(e)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=e;break;case 1:d.pipes=[d.pipes,e];break;default:d.pipes.push(e)}d.pipesCount+=1,q("pipe count=%d opts=%j",d.pipesCount,t);var p=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?i:c;d.endEmitted?P(p):h.once("end",p),e.on("unpipe",r);var g=b(h);e.on("drain",g);var y=!1,v=!1;return h.on("data",s),a(e,"error",u),e.once("close",f),e.once("finish",l),e.emit("pipe",h),d.flowing||(q("pipe resume"),h.resume()),e},u.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived);var n=(t+=e.toString(this.encoding,0,n)).length-1,i=t.charCodeAt(n);if(i>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,n)}return t},f.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},f.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},function(e,t,r){"use strict";function n(e){this.afterTransform=function(t,r){return i(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&e.push(r),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length{n.default.instanceOf(t,String),n.default(!(i.gt(t,"9223372036854775807")||i.lt(t,"-9223372036854775808")),"Value out of range");const r=i.div(t,i.LONG_UPPER_SHIFT,!0),o=i.sub(t,i.mul(r,i.LONG_UPPER_SHIFT)),a=new ArrayBuffer(8),s=new DataView(a);s.setInt32(0,Number(r)),s.setUint32(4,Number(o)),e.addAll(a)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MILLIS_PER_DAY=864e5;const n=6e4;t.toUTC=function(e){return e.getTime()-e.getTimezoneOffset()*n},t.fromUTC=function(e){const t=new Date(e);return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2);class i extends n.default{}t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(33);t.default=((e,t)=>{n.default.instanceOf(t,Array);e:for(let r=0;;r++){let o=0;for(let a=0;a<8;a++){const s=i.timesEight(r)|a;if(s===t.length){a&&e.add(o);break e}const u=t[s];n.default.instanceOf(u,Boolean),u&&(o|=1<<7-a)}e.add(o)}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(51);t.ByteType=n.default;var i=r(80);t.ShortType=i.default;var o=r(81);t.IntType=o.default;var a=r(82);t.LongType=a.default;var s=r(83);t.BigIntType=s.default;var u=r(84);t.FlexIntType=u.default;var f=r(85);t.UnsignedByteType=f.default;var l=r(86);t.UnsignedShortType=l.default;var c=r(87);t.UnsignedIntType=c.default;var h=r(88);t.UnsignedLongType=h.default;var d=r(89);t.BigUnsignedIntType=d.default;var p=r(90);t.FlexUnsignedIntType=p.default;var g=r(91);t.DateType=g.default;var y=r(92);t.DayType=y.default;var v=r(93);t.TimeType=v.default;var w=r(94);t.FloatType=w.default;var m=r(95);t.DoubleType=m.default;var b=r(96);t.BooleanType=b.default;var _=r(97);t.BooleanTupleType=_.default;var O=r(98);t.BooleanArrayType=O.default;var T=r(99);t.CharType=T.default;var S=r(100);t.StringType=S.default;var E=r(101);t.OctetsType=E.default;var A=r(28);t.TupleType=A.default;var B=r(19);t.StructType=B.default;var x=r(21);t.ArrayType=x.default;var L=r(27);t.SetType=L.default;var R=r(26);t.MapType=R.default;var M=r(102);t.EnumType=M.default;var P=r(103);t.ChoiceType=P.default;var U=r(104);t.NamedChoiceType=U.default;var N=r(105);t.RecursiveType=N.default;var k=r(106);t.OptionalType=k.default;var I=r(107);t.PointerType=I.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REPEATED_TYPE=255},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new Map;t.get=function(e){const t=n.get(e);if(t)return t;{const t={[e]:class{}}[e];return n.set(e,t),t}}},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,l=-7,c=r?i-1:0,h=r?-1:1,d=e[t+c];for(c+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+c],c+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+c],c+=h,l-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,f=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+c>=1?h/u:h*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=l?(s=0,a=l):a+c>=1?(s=(t*u-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,f-=8);e[r+d-p]|=128*g}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(12);class s extends a.default{static get _value(){return 1}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(-128,t,128,"Value out of range"),e.addAll(new Int8Array([t]).buffer)}consumeValue(e,t){return n.default(e.byteLength>t,i.NOT_LONG_ENOUGH),{value:new Int8Array(e)[t],length:1}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=(e,t)=>e>>>t|e<<32-t;t.default=(e=>{const t=e.byteLength,r=8*t;n.default(r===new Uint32Array([0|r])[0],"Bit length does not fit in a 32-bit integer");const a=t+(64-(t+72&63))+8,s=new ArrayBuffer(a),u=new Uint8Array(s);u.set(new Uint8Array(e)),u[t]=128,new DataView(s).setUint32(a-4,r);const f=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);for(let e=0;e>>3,i=t[e-2],a=o(i,17)^o(i,19)^i>>>10;t[e]=t[e-16]+n+t[e-7]+a}const n=f.slice();for(let e=0;e<64;e++){const r=n[0],a=n[1],s=n[2],u=n[4],f=n[5],l=n[6],c=o(u,6)^o(u,11)^o(u,25),h=u&f^~u&l,d=n[7]+c+h+i[e]+t[e],p=(o(r,2)^o(r,13)^o(r,22))+(r&a^r&s^a&s);n[7]=l,n[6]=f,n[5]=u,n[4]=n[3]+d,n[3]=s,n[2]=a,n[1]=r,n[0]=d+p}for(let e=0;e<8;e++)f[e]+=n[e]}const l=new ArrayBuffer(32),c=new DataView(l);for(let e=0;e<8;e++)c.setUint32(e<<2,f[e]);return l})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(20),i=new ArrayBuffer(2);new DataView(i).setUint16(0,12),t.VERSION_STRING=n.fromByteArray(new Uint8Array(i))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const n=r(55),i=r(74),o=r(0),a=r(25),s=[i.Writable,i.Duplex,n.OutgoingMessage];class u{constructor(e){o.default.instanceOf(e,s),this.outStream=e,this.writtenBytes=0,this.pauseCount=0,this.paused=new a.default}add(e){return o.default.integer(e),o.default.between(0,e,256,"Not a byte: "+String(e)),this.addAll(new Uint8Array([e]).buffer)}addAll(t){return o.default.instanceOf(t,ArrayBuffer),this.pauseCount?this.paused.addAll(t):this.outStream.write(e.from(t)),this.writtenBytes+=t.byteLength,this}end(){this.outStream.end()}get length(){return this.writtenBytes}pause(){return this.paused.pause(),this.pauseCount++,this}resume(){if(!this.pauseCount)throw new Error("Was not paused");return--this.pauseCount?this.paused.resume():(this.outStream.write(e.from(this.paused.rawBuffer,0,this.paused.length)),this.paused=new a.default),this}reset(){if(!this.pauseCount)throw new Error("Was not paused");const e=this.paused.length;this.paused.reset();const t=this.paused.length;return this.writtenBytes-=e-t,this}}t.default=u}).call(t,r(7).Buffer)},function(e,t,r){(function(e){var n=r(56),i=r(65),o=r(66),a=r(67),s=t;s.request=function(t,r){t="string"==typeof t?a.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",s=t.protocol||o,u=t.hostname||t.host,f=t.port,l=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?s+"//"+u:"")+(f?":"+f:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var c=new n(t);return r&&c.on("response",r),c},s.get=function(e,t){var r=s.request(e,t);return r.end(),r},s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.STATUS_CODES=o,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(t,r(5))},function(e,t,r){(function(t,n,i){function o(e,t){return s.fetch&&t?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&e?"arraybuffer":s.vbArray&&e?"text:vbarray":"text"}function a(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}var s=r(35),u=r(36),f=r(57),l=r(15),c=r(64),h=f.IncomingMessage,d=f.readyStates,p=e.exports=function(e){var r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var n,i=!0;if("disable-fetch"===e.mode||"timeout"in e)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!s.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=o(n,i),r.on("finish",function(){r._onFinish()})};u(p,l.Writable),p.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===g.indexOf(n)&&(r._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var r=e._opts,o=e._headers,a=null;"GET"!==r.method&&"HEAD"!==r.method&&(a=s.blobConstructor?new n.Blob(e._body.map(function(e){return c(e)}),{type:(o["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(o).forEach(function(e){var t=o[e].name,r=o[e].value;Array.isArray(r)?r.forEach(function(e){u.push([t,e])}):u.push([t,r])}),"fetch"===e._mode)n.fetch(e._opts.url,{method:e._opts.method,headers:u,body:a||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)});else{var f=e._xhr=new n.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!r.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"timeout"in r&&(f.timeout=r.timeout,f.ontimeout=function(){e.emit("timeout")}),u.forEach(function(e){f.setRequestHeader(e[0],e[1])}),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(a)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}}}},p.prototype._onXHRProgress=function(){var e=this;a(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new h(e._xhr,e._fetchResponse,e._mode),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,r){this._body.push(e),r()},p.prototype.abort=p.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},p.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(n,e,t,r)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(t,r(7).Buffer,r(5),r(11))},function(e,t,r){(function(e,n,i){var o=r(35),a=r(36),s=r(15),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=t.IncomingMessage=function(t,r,i){var a=this;if(s.Readable.call(a),a._mode=i,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){e.nextTick(function(){a.emit("close")})}),"fetch"===i){a._fetchResponse=r,a.url=r.url,a.statusCode=r.status,a.statusMessage=r.statusText,r.headers.forEach(function(e,t){a.headers[t.toLowerCase()]=e,a.rawHeaders.push(t,e)});var u=r.body.getReader();function f(){u.read().then(function(e){a._destroyed||(e.done?a.push(null):(a.push(new n(e.value)),f()))}).catch(function(e){a.emit("error",e)})}f()}else if(a._xhr=t,a._pos=0,a.url=t.responseURL,a.statusCode=t.status,a.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===a.headers[r]&&(a.headers[r]=[]),a.headers[r].push(t[2])):void 0!==a.headers[r]?a.headers[r]+=", "+t[2]:a.headers[r]=t[2],a.rawHeaders.push(t[1],t[2])}}),a._charset="x-user-defined",!o.overrideMimeType){var l=a.rawHeaders["mime-type"];if(l){var c=l.match(/;\s*charset=([^;])(;|$)/);c&&(a._charset=c[1].toLowerCase())}a._charset||(a._charset="utf-8")}};a(f,s.Readable),f.prototype._read=function(){},f.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==r){e.push(new n(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new n(o.length),s=0;se._pos&&(e.push(new n(new Uint8Array(f.result.slice(e._pos)))),e._pos=f.result.byteLength)},f.onload=function(){e.push(null)},f.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(t,r(11),r(7).Buffer,r(5))},function(e,t){},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){e.copy(t,r)}var o=r(23).Buffer;e.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),r=this.head,n=0;r;)i(r.data,t,n),n+=r.data.length,r=r.next;return t},e}()},function(e,t,r){function n(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new n(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new n(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(61),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,r){(function(e,t){!function(e,r){"use strict";function n(e){delete u[e]}function i(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}function o(e){if(f)setTimeout(o,0,e);else{var t=u[e];if(t){f=!0;try{i(t)}finally{n(e),f=!1}}}}if(!e.setImmediate){var a,s=1,u={},f=!1,l=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?a=function(e){t.nextTick(function(){o(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&o(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),a=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){o(e.data)},a=function(t){e.port2.postMessage(t)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var e=l.documentElement;a=function(t){var r=l.createElement("script");r.onreadystatechange=function(){o(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():a=function(e){setTimeout(o,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),h=["'"].concat(c),d=["%","/","?",";","#"].concat(h),p=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(71);n.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=-1!==n&&n127?N+="x":N+=U[k];if(!N.match(g)){var C=M.slice(0,A),j=M.slice(A+1),V=U.match(y);V&&(C.push(V[1]),j.unshift(V[2])),j.length&&(c="/"+j.join(".")+c),this.hostname=C.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=o.toASCII(this.hostname));var D=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+D,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==c[0]&&(c="/"+c))}if(!v[T])for(var A=0,P=h.length;A0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!O.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=O.slice(-1)[0],A=(r.host||e.host||O.length>1)&&("."===E||".."===E)||""===E,B=0,x=O.length;x>=0;x--)"."===(E=O[x])?O.splice(x,1):".."===E?(O.splice(x,1),B++):B&&(O.splice(x,1),B--);if(!b&&!_)for(;B--;B)O.unshift("..");!b||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),A&&"/"!==O.join("/").substr(-1)&&O.push("");var L=""===O[0]||O[0]&&"/"===O[0].charAt(0);if(S){r.hostname=r.host=L?"":O.length?O.shift():"";var R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");R&&(r.auth=R.shift(),r.host=r.hostname=R.shift())}return(b=b||r.host&&O.length)&&!L&&O.unshift(""),O.length?r.pathname=O.join("/"):(r.pathname=null,r.path=null),a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;!function(o){function a(e){throw new RangeError(R[e])}function s(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function u(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+s((e=e.replace(L,".")).split("."),t).join(".")}function f(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=U((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=U(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:m}function h(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,r){var n=0;for(e=r?P(e/T):e>>1,e+=P(e/t);e>M*_>>1;n+=m)e=P(e/M);return P(n+(M+1)*e/(e+O))}function p(e){var t,r,n,i,o,s,u,f,h,p,g=[],y=e.length,v=0,O=E,T=S;for((r=e.lastIndexOf(A))<0&&(r=0),n=0;n=128&&a("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=y&&a("invalid-input"),((f=c(e.charCodeAt(i++)))>=m||f>P((w-v)/s))&&a("overflow"),v+=f*s,h=u<=T?b:u>=T+_?_:u-T,!(fP(w/(p=m-h))&&a("overflow"),s*=p;T=d(v-o,t=g.length+1,0==o),P(v/t)>w-O&&a("overflow"),O+=P(v/t),v%=t,g.splice(v++,0,O)}return l(g)}function g(e){var t,r,n,i,o,s,u,l,c,p,g,y,v,O,T,B=[];for(y=(e=f(e)).length,t=E,r=0,o=S,s=0;s=t&&gP((w-r)/(v=n+1))&&a("overflow"),r+=(u-t)*v,t=u,s=0;sw&&a("overflow"),g==t){for(l=r,c=m;p=c<=o?b:c>=o+_?_:c-o,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=m-b,P=Math.floor,U=String.fromCharCode;v={version:"1.4.1",ucs2:{decode:f,encode:l},decode:p,encode:g,toASCII(e){return u(e,function(e){return x.test(e)?"xn--"+g(e):e})},toUnicode(e){return u(e,function(e){return B.test(e)?p(e.slice(4).toLowerCase()):e})}},void 0!==(i=function(){return v}.call(t,r,t,e))&&(e.exports=i)}()}).call(t,r(69)(e),r(5))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";e.exports={isString(e){return"string"==typeof e},isObject(e){return"object"==typeof e&&null!==e},isNull(e){return null===e},isNullOrUndefined(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(72),t.encode=t.stringify=r(73)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var l=0;l=0?(c=g.substr(0,y),h=g.substr(y+1)):(c=g,h=""),d=decodeURIComponent(c),p=decodeURIComponent(h),n(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n=t+2,i.NOT_LONG_ENOUGH),{value:new DataView(e).getInt16(t),length:2}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(12);class s extends a.default{static get _value(){return 3}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(-2147483648,t,2147483648,"Value out of range");const i=new ArrayBuffer(4);new DataView(i).setInt32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getInt32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1),i=r(43),o=r(12);class a extends o.default{static get _value(){return 4}writeValue(e,t){this.isBuffer(e),i.default(e,t)}consumeValue(e,t){return n.readLong(e,t)}}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(14),s=r(12);class u extends s.default{static get _value(){return 5}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),t=a.normalize(t);const r=[];if(!a.eq(t,"0")){for(;a.gt(t,"127")||a.lt(t,"-128");){const e=a.div(t,a.BYTE_SHIFT,!0),n=a.sub(t,a.mul(e,a.BYTE_SHIFT));r.push(Number(n)),t=e}r.push(Number(t))}const o=new Uint8Array(r.length);for(let e=r.length-1,t=0;e>=0;e--,t++)o[t]=r[e];e.addAll(i.makeValueBuffer(r.length)).addAll(o.buffer)}consumeValue(e,t){const r=o.readFlexInt(e,t),i=r.value;let{length:s}=r;n.default(e.byteLength>=t+s+i,o.NOT_LONG_ENOUGH);const u=new Uint8Array(e,t+s);let f;if(i){f=String(u[0]<<24>>24);for(let e=1;et,i.NOT_LONG_ENOUGH),{value:new Uint8Array(e)[t],length:1}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(13);class s extends a.default{static get _value(){return 18}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(0,t,65536,"Value out of range");const i=new ArrayBuffer(2);new DataView(i).setUint16(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+2,i.NOT_LONG_ENOUGH),{value:new DataView(e).getUint16(t),length:2}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(13);class s extends a.default{static get _value(){return 19}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(0,t,4294967296,"Value out of range");const i=new ArrayBuffer(4);new DataView(i).setUint32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getUint32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(14),a=r(13),s="18446744073709551615";class u extends a.default{static get _value(){return 20}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(!(o.gt(t,s)||o.lt(t,"0")),"Value out of range");const r=o.div(t,o.LONG_UPPER_SHIFT),i=o.sub(t,o.mul(r,o.LONG_UPPER_SHIFT)),a=new ArrayBuffer(8),u=new DataView(a);u.setUint32(0,Number(r)),u.setUint32(4,Number(i)),e.addAll(a)}consumeValue(e,t){n.default(e.byteLength>=t+8,i.NOT_LONG_ENOUGH);const r=new DataView(e,t),a=r.getUint32(0),s=r.getUint32(4);return{value:o.add(o.mul(String(a),o.LONG_UPPER_SHIFT),String(s)),length:8}}}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(14),s=r(13);class u extends s.default{static get _value(){return 21}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(!a.isNegative(t),"Value out of range");const r=[];if(!a.eq(t,"0")){for(;a.ge(t,a.BYTE_SHIFT);){const[e,n]=a.quotientRemainderPositive(t,a.BYTE_SHIFT);r.push(Number(n)),t=e}r.push(Number(t))}const o=new Uint8Array(r.length);for(let e=r.length-1,t=0;e>=0;e--,t++)o[t]=r[e];e.addAll(i.makeValueBuffer(r.length)).addAll(o.buffer)}consumeValue(e,t){const r=o.readFlexInt(e,t),i=r.value;let{length:s}=r;n.default(e.byteLength>=t+s+i,o.NOT_LONG_ENOUGH);const u=new Uint8Array(e,t+s);let f="0";for(let e=0;e>8),s.setUint8(2,o),e.addAll(a)}consumeValue(e,t){n.default(e.byteLength>=t+3,o.NOT_LONG_ENOUGH);const r=new DataView(e,t),a=r.getInt16(0)<<8|r.getUint8(2);return{value:i.fromUTC(a*i.MILLIS_PER_DAY),length:3}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(44),o=r(1),a=r(29);class s extends a.default{static get _value(){return 28}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Date);const r=new ArrayBuffer(4);new DataView(r).setUint32(0,t.getTime()%i.MILLIS_PER_DAY),e.addAll(r)}consumeValue(e,t){return n.default(e.byteLength>=t+4,o.NOT_LONG_ENOUGH),{value:new Date(new DataView(e).getUint32(t)),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(45);class s extends a.default{static get _value(){return 32}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.instanceOf(t,Number);const i=new ArrayBuffer(4);new DataView(i).setFloat32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getFloat32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(45);class s extends a.default{static get _value(){return 33}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.instanceOf(t,Number);const i=new ArrayBuffer(8);new DataView(i).setFloat64(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+8,i.NOT_LONG_ENOUGH),{value:new DataView(e).getFloat64(t),length:8}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(2);class a extends o.default{static get _value(){return 48}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Boolean),e.add(t?255:0)}consumeValue(e,t){return i.readBooleanByte(e,t)}}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(46),a=r(2);class s extends a.default{static get _value(){return 49}constructor(e){super(),n.default.byteUnsignedInteger(e),this.length=e}addToBuffer(e){return!!super.addToBuffer(e)&&(e.add(this.length),!0)}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Array),n.default(t.length===this.length,"Length does not match: expected "+String(this.length)+" but got "+String(t.length)),o.default(e,t)}consumeValue(e,t){return i.readBooleans({buffer:e,offset:t,count:this.length})}equals(e){return super.equals(e)&&e.length===this.length}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(46),s=r(2);class u extends s.default{static get _value(){return 50}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Array),e.addAll(i.makeValueBuffer(t.length)),a.default(e,t)}consumeValue(e,t){const r=o.readFlexInt(e,t);let{length:n}=r;const i=o.readBooleans({buffer:e,offset:t+n,count:r.value}),{value:a}=i;return n+=i.length,{value:a,length:n}}}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(2);class s extends a.default{static get _value(){return 64}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(1===t.length,"String must contain only 1 character"),e.addAll(i.fromString(t))}consumeValue(e,t){n.default(e.byteLength>t,o.NOT_LONG_ENOUGH);const[r]=i.toString(new Uint8Array(e,t).subarray(0,4));return{value:r,length:i.fromString(r).byteLength}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(2);class s extends a.default{static get _value(){return 65}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),e.addAll(i.fromString(t)).add(0)}consumeValue(e,t){const r=new Uint8Array(e,t);let a=0;for(;n.default(r.length>a,o.NOT_LONG_ENOUGH),r[a];a++);const s=i.toString(r.subarray(0,a));return a++,{value:s,length:a}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(2);class s extends a.default{static get _value(){return 66}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,ArrayBuffer),e.addAll(i.makeValueBuffer(t.byteLength)).addAll(t)}consumeValue(e,t){const r=o.readFlexInt(e,t),{length:i}=r,a=i+r.value;return n.default(e.byteLength>=t+a,o.NOT_LONG_ENOUGH),{value:e.slice(t+i,t+a),length:a}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(9),s=r(2),u=r(4);class f extends u.default{constructor({type:e,values:t}){super(),n.default.instanceOf(e,s.default),n.default.instanceOf(t,Array);try{n.default.byteUnsignedInteger(t.length)}catch(e){n.default.fail(String(t.length)+" values is too many")}const r=new Map;for(let o=0;ot,o.NOT_LONG_ENOUGH);const r=new Uint8Array(e)[t],{values:i}=this;return n.default(r in i,"Index "+String(r)+" is invalid"),{value:i[r],length:1}}equals(e){if(!super.equals(e))return!1;const t=e;if(!this.type.equals(t.type))return!1;if(this.values.length!==t.values.length)return!1;const r=t.valueIndices.keys();for(const e of this.valueIndices.keys())if(r.next().value!==e)return!1;return!0}}t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(9),a=r(2),s=r(4);class u extends a.default{constructor(e){super(),n.default.instanceOf(e,Array);try{n.default.byteUnsignedInteger(e.length)}catch(t){n.default.fail(String(e.length)+" types is too many")}for(const t of e)n.default.instanceOf(t,s.default);this.types=e}static get _value(){return 86}addToBuffer(e){if(super.addToBuffer(e)){e.add(this.types.length);for(const t of this.types)t.addToBuffer(e);return!0}return!1}writeValue(e,t){this.isBuffer(e),e.pause();let r=!1;for(let n=0;nt,i.NOT_LONG_ENOUGH);const o=new Uint8Array(e)[t],{value:a,length:s}=this.types[o].consumeValue(e,t+r);return r+=s,{value:a,length:r}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.types.length!==t.types.length)return!1;for(let e=0;et,a.NOT_LONG_ENOUGH);const i=new Uint8Array(e)[t],s=this.indexConstructors.get(i);if(void 0===s)throw new Error("Constructor index "+String(i)+" is invalid");const u=o.get(s.name),{value:f,length:l}=this.constructorTypes[i].type.consumeValue(e,t+r,new u);return r+=l,{value:f,length:r}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.constructorTypes.length!==t.constructorTypes.length)return!1;for(let e=0;e=0,"Offset is negative: "+String(t));const r=new Uint8Array(e);i.default(e.byteLength>t,u.NOT_LONG_ENOUGH);const h=r[t];let y,v=1;const w=d.get(h);if(w)return{value:new w,length:v};switch(h){case c.BooleanTupleType._value:{i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const n=r[t+v];v++,y=new c.BooleanTupleType(n);break}case c.TupleType._value:{const o=n(e,t+v);v+=o.length,i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const a=r[t+v];v++,y=new c.TupleType({type:o.value,length:a});break}case c.StructType._value:{i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const a=r[t+v];v++;const s={};for(let f=0;ft+v,u.NOT_LONG_ENOUGH);const a=r[t+v],f=t+ ++v,l=f+a;i.default(e.byteLength>=l,u.NOT_LONG_ENOUGH);const c=o.toString(r.subarray(f,l));v+=a;const h=n(e,l);s[c]=h.value,v+=h.length}y=new c.StructType(s);break}case c.ArrayType._value:{const r=n(e,t+v);v+=r.length,y=new c.ArrayType(r.value);break}case c.SetType._value:{const r=n(e,t+v);v+=r.length,y=new c.SetType(r.value);break}case c.MapType._value:{const r=n(e,t+v),i=n(e,t+(v+=r.length));v+=i.length,y=new c.MapType(r.value,i.value);break}case c.EnumType._value:{const o=n(e,t+v),a=o.value;v+=o.length,i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const s=r[t+v];v++;const f=new Array(s);for(let r=0;rt+v,u.NOT_LONG_ENOUGH);const o=r[t+v];v++;const a=new Array(o);for(let r=0;rt+v,u.NOT_LONG_ENOUGH);const a=r[t+v];v++;const l=new Map;for(let h=0;ht+v,u.NOT_LONG_ENOUGH);const a=r[t+v],h=t+ ++v,d=h+a;i.default(e.byteLength>=d,u.NOT_LONG_ENOUGH);const p=o.toString(r.subarray(h,d));v+=a;const g=n(e,d);if(!(g.value instanceof c.StructType))throw new Error("Not a StructType: "+f.inspect(g.value));l.set(s.get(p),g.value),v+=g.length}y=new c.NamedChoiceType(l);break}case c.RecursiveType._value:{const r=u.readFlexInt(e,t+v),i=r.value;v+=r.length;let o,a=g.get(e);if(a?o=a.get(i):(a=new Map,g.set(e,a)),void 0===o){do{o="read-type";for(let e=0;e{if(!t.ok)throw new Error("Received status of "+String(t.status));const r=t.headers.get("sig");return i&&i.sig===r?t.arrayBuffer().then(e=>{const t=i.type.readValue(e);return Promise.resolve(t)}):t.arrayBuffer().then(t=>{const i=a._consumeType(t,0),o=i.value,u=o.readValue(t,i.length);return s[e]={sig:r,type:o},n(),Promise.resolve(u)})})},function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(31)),window.sb=t}]); \ No newline at end of file diff --git a/compiled/upload-download.js b/compiled/upload-download.js index d06e425..79bf220 100644 --- a/compiled/upload-download.js +++ b/compiled/upload-download.js @@ -1,7 +1,7 @@ -!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=111)}([function(e,t,r){"use strict";function n(e,t){t instanceof Array||(t=[t]);for(const r of t)if(e instanceof r||void 0!==e&&null!==e&&e.constructor===r)return;throw new TypeError(l.inspect(e)+" is not an instance of "+t.map(({name:e})=>e).join(" or "))}function i(e){if(n(e,Number),!Number.isSafeInteger(e))throw new RangeError(l.inspect(e)+" is not an integer")}function o(e,t,r,n){if(t=r){const i=String(t)+" is not in ["+String(e)+","+String(r)+")";throw n?new RangeError(n+" ("+i+")"):new RangeError(i)}}function a(e){throw new Error(e)}function s(e,t){e||a(t||"Assertion failed")}function u(e,t){const r=()=>new RangeError("Expected "+l.inspect(t)+" but got "+l.inspect(e));if(t){let n=!0;switch(t.constructor){case Object:if(!e||e.constructor!==Object)throw r();for(const n in t)if({}.hasOwnProperty.call(t,n))try{u(e[n],t[n])}catch(e){throw r()}break;case Array:if(!e||e.constructor!==Array)throw r();try{u(e.length,t.length)}catch(e){throw r()}for(let n=0;nr,t.NOT_LONG_ENOUGH);let o;const a=new Uint8Array(e)[r];switch(a){case 0:case 255:o=Boolean(a);break;default:throw new Error("0x"+n(a.toString(16),2)+" is an invalid Boolean value")}return{value:o,length:1}},t.readBooleans=function({buffer:e,offset:r,count:n}){const a=new Array(n),s=o.modEight(a.length),u=o.dividedByEight(a.length);let f;f=s?u+1:u,i.default(e.byteLength>=r+f,t.NOT_LONG_ENOUGH);const l=new Uint8Array(e,r);for(let e=0;er,t.NOT_LONG_ENOUGH);const n=new Uint8Array(e,r),o=a.getByteCount(n[0]);return i.default(e.byteLength>=r+o,t.NOT_LONG_ENOUGH),{value:a.readValueBuffer(n.slice(0,o).buffer),length:o}},t.readLong=function(e,r){i.default(e.byteLength>=r+8,t.NOT_LONG_ENOUGH);const n=new DataView(e,r),o=n.getInt32(0),a=n.getUint32(4);return{value:s.add(s.mul(String(o),s.LONG_UPPER_SHIFT),String(a)),length:8}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4);class i extends n.default{}t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=new Map;{let e=0,t=1;for(;e<=Number.MAX_SAFE_INTEGER;)e+=function(e){const t=7*e;return Math.pow(2,t)}(t),i.set(t,e),t++}const o=new Map,a=new Map;{let e=-256;for(const t of i.keys())a.set(t,255&e),o.set(t-1,t),e>>=1}t.makeValueBuffer=function(e){n.default.integer(e),n.default(e>=0,String(e)+" is negative");const t=(()=>{for(const[t,r]of i)if(e=0;r--)o[r]=255&e,e=Math.floor(e/256)}return o[0]|=a.get(t),o.buffer},t.getByteCount=function(e){const t=Math.clz32(~e<<24),r=o.get(t);return n.default(void 0!==r,"Invalid number of bytes"),r},t.readValueBuffer=function(e){n.default.instanceOf(e,ArrayBuffer);const t=e.byteLength;n.default(t>0,"Empty flex int buffer");const r=new Uint8Array(e),o=(()=>{let e=r[0]^a.get(t);for(let n=1;n{if(e&&e.constructor===String){const t=Number(e);if(!isNaN(t)||"NaN"===e)return t}})},function(e,t,r){"use strict";(function(e){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function g(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return B(this,t,r);case"ascii":return L(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:w(e,t,r,n,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,n,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}var f;if(i){var l=-1;for(f=r;fs&&(r=s-u),f=r;f>=0;f--){for(var c=!0,h=0;hi&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=r){var u,f,l,c;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(u=e[i+1]))&&(c=(31&o)<<6|63&u)>127&&(a=c);break;case 3:u=e[i+1],f=e[i+2],128==(192&u)&&128==(192&f)&&(c=(15&o)<<12|(63&u)<<6|63&f)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:u=e[i+1],f=e[i+2],l=e[i+3],128==(192&u)&&128==(192&f)&&128==(192&l)&&(c=(15&o)<<18|(63&u)<<12|(63&f)<<6|63&l)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return x(n)}function x(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function k(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function I(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,i){return i||j(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(e,t,r,n,23,4),r+4}function V(e,t,r,n,i){return i||j(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(e,t,r,n,52,8),r+8}function D(e){if((e=q(e).replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function z(e){return $.toByteArray(D(e))}function W(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function X(e){return e!==e}/*! +!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=111)}([function(e,t,r){"use strict";function n(e,t){t instanceof Array||(t=[t]);for(const r of t)if(e instanceof r||void 0!==e&&null!==e&&e.constructor===r)return;throw new TypeError(l.inspect(e)+" is not an instance of "+t.map(({name:e})=>e).join(" or "))}function i(e){if(n(e,Number),!Number.isSafeInteger(e))throw new RangeError(l.inspect(e)+" is not an integer")}function o(e,t,r,n){if(t=r){const i=String(t)+" is not in ["+String(e)+","+String(r)+")";throw n?new RangeError(n+" ("+i+")"):new RangeError(i)}}function a(e){throw new Error(e)}function s(e,t){e||a(t||"Assertion failed")}function u(e,t){const r=()=>new RangeError("Expected "+l.inspect(t)+" but got "+l.inspect(e));if(t){let n=!0;switch(t.constructor){case Object:if(!e||e.constructor!==Object)throw r();for(const n in t)if({}.hasOwnProperty.call(t,n))try{u(e[n],t[n])}catch(e){throw r()}break;case Array:if(!e||e.constructor!==Array)throw r();try{u(e.length,t.length)}catch(e){throw r()}for(let n=0;nr,t.NOT_LONG_ENOUGH);let o;const a=new Uint8Array(e)[r];switch(a){case 0:case 255:o=Boolean(a);break;default:throw new Error("0x"+n(a.toString(16),2)+" is an invalid Boolean value")}return{value:o,length:1}},t.readBooleans=function({buffer:e,offset:r,count:n}){const a=new Array(n),s=o.modEight(a.length),u=o.dividedByEight(a.length);let f;f=s?u+1:u,i.default(e.byteLength>=r+f,t.NOT_LONG_ENOUGH);const l=new Uint8Array(e,r);for(let e=0;er,t.NOT_LONG_ENOUGH);const n=new Uint8Array(e,r),o=a.getByteCount(n[0]);return i.default(e.byteLength>=r+o,t.NOT_LONG_ENOUGH),{value:a.readValueBuffer(n.slice(0,o).buffer),length:o}},t.readLong=function(e,r){i.default(e.byteLength>=r+8,t.NOT_LONG_ENOUGH);const n=new DataView(e,r),o=n.getInt32(0),a=n.getUint32(4);return{value:s.add(s.mul(String(o),s.LONG_UPPER_SHIFT),String(a)),length:8}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4);class i extends n.default{}t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=new Map;{let e=0,t=1;for(;e<=Number.MAX_SAFE_INTEGER;)e+=function(e){const t=7*e;return Math.pow(2,t)}(t),i.set(t,e),t++}const o=new Map,a=new Map;{let e=-256;for(const t of i.keys())a.set(t,255&e),o.set(t-1,t),e>>=1}t.makeValueBuffer=function(e){n.default.integer(e),n.default(e>=0,String(e)+" is negative");const t=(()=>{for(const[t,r]of i)if(e=0;r--)o[r]=255&e,e=Math.floor(e/256)}return o[0]|=a.get(t),o.buffer},t.getByteCount=function(e){const t=Math.clz32(~e<<24),r=o.get(t);return n.default(void 0!==r,"Invalid number of bytes"),r},t.readValueBuffer=function(e){n.default.instanceOf(e,ArrayBuffer);const t=e.byteLength;n.default(t>0,"Empty flex int buffer");const r=new Uint8Array(e),o=(()=>{let e=r[0]^a.get(t);for(let n=1;n{if(e&&e.constructor===String){const t=Number(e);if(!isNaN(t)||"NaN"===e)return t}})},function(e,t,r){"use strict";(function(e){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function g(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,r);case"utf8":case"utf-8":return B(this,t,r);case"ascii":return L(this,t,r);case"latin1":case"binary":return R(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function w(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}var f;if(i){var l=-1;for(f=r;fs&&(r=s-u),f=r;f>=0;f--){for(var c=!0,h=0;hi&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=r){var u,f,l,c;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(u=e[i+1]))&&(c=(31&o)<<6|63&u)>127&&(a=c);break;case 3:u=e[i+1],f=e[i+2],128==(192&u)&&128==(192&f)&&(c=(15&o)<<12|(63&u)<<6|63&f)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:u=e[i+1],f=e[i+2],l=e[i+3],128==(192&u)&&128==(192&f)&&128==(192&l)&&(c=(15&o)<<18|(63&u)<<12|(63&f)<<6|63&l)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return x(n)}function x(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function k(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function I(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,i){return i||j(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(e,t,r,n,23,4),r+4}function V(e,t,r,n,i){return i||j(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(e,t,r,n,52,8),r+8}function D(e){if((e=q(e).replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function G(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function z(e){return $.toByteArray(D(e))}function W(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function X(e){return e!==e}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var $=r(20),K=r(50),J=r(32);t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:()=>42},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,r){return a(null,e,t,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,r){return u(null,e,t,r)},o.allocUnsafe=function(e){return f(null,e)},o.allocUnsafeSlow=function(e){return f(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},o.prototype.compare=function(e,t,r,n,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,s=r-t,u=Math.min(a,s),f=this.slice(n,i),l=e.slice(t,r),c=0;ci)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return O(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),K.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),K.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),K.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),K.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||N(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return V(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return V(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=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),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a"}if(t instanceof Function)return"Function "+t.name;if(o.get(t))return"[Circular]";if(o.set(t,1),t instanceof Set){let e="Set {";const r=t.values();let i=r.next();for(;!i.done;)e+=n(i.value,o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"}"}if(t instanceof Map){let e="Map {";const r=t.entries();let i=r.next();for(;!i.done;)e+=n(i.value[0],o),e+=" => ",e+=n(i.value[1],o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"}"}if(t instanceof Array){let e="[";const r=t[Symbol.iterator]();let i=r.next();for(;!i.done;)e+=n(i.value,o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"]"}if(t.constructor===Object){let e="{";for(const r in t)({}).hasOwnProperty.call(t,r)&&("{"!==e&&(e+=", "),e+=r+": "+n(t[r],o));return o.set(t,o.get(t)-1),e+"}"}const{name:a}=t.constructor,s=(a?a+" ":"")+n(r(t),o);return o.set(t,o.get(t)-1),s}Object.defineProperty(t,"__esModule",{value:!0});const i=new Set([String,Number,Boolean,Date]);t.inspect=function(e){return n(e,new Map)}}).call(t,r(7).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(25),o=4096;t.toString=function(e){n.default.instanceOf(e,Uint8Array);const t=[];for(let r=0;r239?4:n>223?3:n>191?2:1;if(r+o<=e.length){let t,a,s,u;switch(o){case 1:n<128&&(i=n);break;case 2:128==(192&(t=e[r+1]))&&(u=(31&n)<<6|63&t)>127&&(i=u);break;case 3:t=e[r+1],a=e[r+2],128==(192&t)&&128==(192&a)&&(u=(15&n)<<12|(63&t)<<6|63&a)>2047&&(u<55296||u>57343)&&(i=u);break;case 4:t=e[r+1],a=e[r+2],s=e[r+3],128==(192&t)&&128==(192&a)&&128==(192&s)&&(u=(15&n)<<18|(63&t)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(i=u)}}void 0===i?(i=65533,o=1):i>65535&&(i-=65536,t.push(i>>>10&1023|55296),i=56320|1023&i),t.push(i),r+=o}let r="";for(let e=0;e>6).add(128|63&e):e<55296||e>=57344?t.add(224|e>>12).add(128|e>>6&63).add(128|63&e):(e=65536+((1023&e)<<10|1023&e),t.add(240|e>>18).add(128|e>>12&63).add(128|e>>6&63).add(128|63&e))}return t.toBuffer()},t.toBinaryString=function(e){n.default.instanceOf(e,ArrayBuffer);let t="";const r=new Uint8Array(e);for(let e=0;e1)for(var r=1;r=10;)s-=10,i++;0===s?o++:(n=String(s)+T(n,o),o=0)}return i>0&&(n=String(i)+T(n,o)),n}function o(e,t){if(B(e),B(t),v(e)&&v(t))return i(e,t);if(y(e)&&y(t))return b(i(m(e),m(t)));if(d(m(e),m(t))){var r=e;e=t,t=r}var o=n(m(e),m(t));return v(e)?o:b(o)}function a(e,t){return B(e),B(t),o(e,b(t))}function s(e,t){x(e),L(t);for(var r="",n=A(e),i=0,o=0,a=0;a=10;)s-=10,i++;0===s?o++:(r=String(s)+T(r,o),o=0)}return i>0&&(r=String(i)+T(r,o)),0===r.length?"0":r}function u(e,t){x(e),x(t);for(var r="0",n=A(t),o=0;o0;)e+="0",t--;return e}function E(e,t){return B(e),L(t),t>=A(e)?"0":e.charAt(e.length-t-1)}function A(e){return y(e)?e.length-1:e.length}function B(e){U(e,"string")}function x(e){B(e),M(e,v,"isPositive")}function L(e){U(e,"number")}function R(e){if(U(e,"number"),e<0)throw new Error("Expected a positive number: "+e)}function M(e,t,r){if(!t.call(null,e))throw new Error("Condition "+r+" failed for value "+e)}function U(e,t){if(typeof e!==t)throw new Error("Not a "+t+": "+e)}Object.defineProperty(t,"__esModule",{value:!0}),t.subPositive=n,t.add=o,t.sub=a,t.timesDigit=s,t.mulPositive=u,t.mul=f,t.quotientRemainderPositive=l,t.div=function(e,t,r=!1){B(e),B(t);var n=l(m(e),m(t))[0];return w(e,t)||(n=b(n)),!r||c(f(n,t),e)||w(e,t)||(n=a(n,"1")),n},t.eq=c,t.lt=d,t.ge=p,t.gt=g,t.isNegative=y,t.isPositive=v,t.abs=m,t.negate=b;var P=/^(-?)0*([1-9][0-9]*)$/,N=/^0+$/;t.normalize=_,t.LONG_UPPER_SHIFT="4294967296",t.BYTE_SHIFT="256"},function(e,t,r){(t=e.exports=r(37)).Stream=t,t.Readable=t,t.Writable=r(24),t.Duplex=r(8),t.Transform=r(41),t.PassThrough=r(63)},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(t,r(7).Buffer)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;ae.namet.name?1:0)}static get _value(){return 81}addToBuffer(e){if(super.addToBuffer(e)){e.add(this.fields.length);for(const t of this.fields){const{nameBuffer:r}=t;e.add(r.byteLength).addAll(r),t.type.addToBuffer(e)}return!0}return!1}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Object);for(const r of this.fields){const i=t[r.name];try{r.type.writeValue(e,i)}catch(e){throw n.default(void 0!==i,'Value for field "'+r.name+'" missing'),e}}}consumeValue(e,t,r){let n=0;const i=r||o.makeBaseValue(this);for(const r of this.fields){const o=r.type.consumeValue(e,t+n);i[r.name]=o.value,n+=o.length}return{value:i,length:n}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.fields.length!==t.fields.length)return!1;for(let e=0;e0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function o(e,t,r){for(var n,o=[],a=t;a0?f-4:f;var l=0;for(t=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i="",s=[],u=0,f=r-n;uf?f:u+16383));return 1===n?(t=e[r-1],i+=a[t>>2],i+=a[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=a[t>>10],i+=a[t>>4&63],i+=a[t<<2&63],i+="="),s.push(i),s.join("")};for(var a=[],s=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=f.length;l0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var r,i,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],a=r.length,i=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(s=a;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],n(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return a(e,t,r)}var o=r(7),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=i),n(a,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,i){function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){B(t,e)}}function a(e){return N.from(e)}function s(e){return N.isBuffer(e)||e instanceof k}function u(){}function f(e,t){L=L||r(8),e=e||{},this.objectMode=!!e.objectMode,t instanceof L&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){m(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function l(e){if(L=L||r(8),!(j.call(l,this)||this instanceof L))return new l(e);this._writableState=new f(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),P.call(this)}function c(e,t){var r=new Error("write after end");e.emit("error",r),x(t,r)}function h(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),x(n,o),i=!1),i}function d(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=N.from(t,r)),t}function p(e,t,r,n,i,o){if(!r){var a=d(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1?n:x;l.WritableState=f;var M=r(16);M.inherits=r(17);var U={deprecate:r(62)},P=r(38),N=r(23).Buffer,k=i.Uint8Array||function(){},I=r(39);M.inherits(l,P),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:U.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var j;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value(e){return!!j.call(this,e)||e&&e._writableState instanceof f}})):j=function(e){return e instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=s(e)&&!n.objectMode;return o&&!N.isBuffer(e)&&(e=a(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=u),n.ended?c(this,r):(o||h(this,n,e,r))&&(n.pendingcb++,i=p(this,n,o,e,t,r)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},l.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},l.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||A(this,n,r)},Object.defineProperty(l.prototype,"destroyed",{get(){return void 0!==this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}}),l.prototype.destroy=I.destroy,l.prototype._undestroy=I.undestroy,l.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,r(11),r(60).setImmediate,r(5))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=10;class o{constructor(e=i){try{n.default.integer(e),n.default(e>=0)}catch(t){throw new RangeError(String(e)+" is not a valid buffer length")}this.buffer=new ArrayBuffer(e),this.size=0,this.commitedSize=null}get length(){return this.size}grow(e){if(n.default.integer(e),e>this.buffer.byteLength){const t=new ArrayBuffer(e<<1);new Uint8Array(t).set(new Uint8Array(this.buffer).subarray(0,this.size)),this.buffer=t}return this}add(e){return n.default.integer(e),n.default.between(0,e,256,"Not a byte: "+String(e)),this.addAll(new Uint8Array([e]).buffer)}addAll(e){n.default.instanceOf(e,ArrayBuffer);const t=this.size,r=this.size+e.byteLength;return this.grow(r),this.size=r,new Uint8Array(this.buffer).set(new Uint8Array(e),t),this}get rawBuffer(){return this.buffer}toBuffer(){let e;return e=null===this.commitedSize?this.size:this.commitedSize,this.buffer.slice(0,e)}pause(){return n.default(null===this.commitedSize,"Already paused"),this.commitedSize=this.size,this}resume(){return n.default(null!==this.commitedSize,"Was not paused"),this.commitedSize=null,this}reset(){if(null===this.commitedSize)throw new Error("Was not paused");return this.size=this.commitedSize,this}}t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(2),s=r(4);class u extends a.default{constructor(e,t){super(),n.default.instanceOf(e,s.default),n.default.instanceOf(t,s.default),this.keyType=e,this.valueType=t}static get _value(){return 84}addToBuffer(e){return!!super.addToBuffer(e)&&(this.keyType.addToBuffer(e),this.valueType.addToBuffer(e),!0)}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Map),e.addAll(i.makeValueBuffer(t.size));for(const[r,n]of t)this.keyType.writeValue(e,r),this.valueType.writeValue(e,n)}consumeValue(e,t,r){const n=o.readFlexInt(e,t);let{length:i}=n;const a=r||o.makeBaseValue(this);for(let r=0;r>>3},t.modEight=function(e){return 7&e},t.timesEight=function(e){return e<<3}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3);t.default=(({type:e,buffer:t,value:r,length:i})=>{t.addAll(n.makeValueBuffer(i));for(const n of r)e.writeValue(t,n)})},function(e,t,r){(function(e){function r(){if(void 0!==o)return o;if(e.XMLHttpRequest){o=new e.XMLHttpRequest;try{o.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){o=null}}else o=null;return o}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}t.fetch=i(e.fetch)&&i(e.ReadableStream),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var o,a=void 0!==e.ArrayBuffer,s=a&&i(e.ArrayBuffer.prototype.slice);t.arraybuffer=t.fetch||a&&n("arraybuffer"),t.msstream=!t.fetch&&s&&n("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&a&&n("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&i(r().overrideMimeType),t.vbArray=i(e.VBArray),o=null}).call(t,r(5))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";(function(t,n){function i(e){return j.from(e)}function o(e){return j.isBuffer(e)||e instanceof C}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?N(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function s(e,t){P=P||r(8),e=e||{},this.objectMode=!!e.objectMode,t instanceof P&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(G||(G=r(40).StringDecoder),this.decoder=new G(e.encoding),this.encoding=e.encoding)}function u(e){if(P=P||r(8),!(this instanceof u))return new u(e);this._readableState=new s(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),I.call(this)}function f(e,t,r,n,o){var a=e._readableState;if(null===t)a.reading=!1,g(e,a);else{var s;o||(s=c(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===j.prototype||(t=i(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):l(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?l(e,a,t,!1):m(e,a)):l(e,a,t,!1))):n||(a.reading=!1)}return h(a)}function l(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&y(e)),m(e,t)}function c(e,t){var r;return o(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function h(e){return!e.ended&&(e.needReadable||e.length=z?e=z:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function p(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=d(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function g(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,y(e)}}function y(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(q("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?U(v,e):v(e))}function v(e){q("emit readable"),e.emit("readable"),S(e)}function m(e,t){t.readingMore||(t.readingMore=!0,U(w,e,t))}function w(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=A(e,t.buffer,t.decoder),r}function A(e,t,r){var n;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}function x(e,t){var r=j.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}function L(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,U(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return q("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):y(this),null;if(0===(e=p(e,t))&&t.ended)return 0===t.length&&L(this),null;var n=t.needReadable;q("need readable",n),(0===t.length||t.length-e0?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(e,t){function r(e,t){q("onunpipe"),e===h&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function i(){q("onend"),e.end()}function o(){q("cleanup"),e.removeListener("close",f),e.removeListener("finish",l),e.removeListener("drain",g),e.removeListener("error",u),e.removeListener("unpipe",r),h.removeListener("end",i),h.removeListener("end",c),h.removeListener("data",s),y=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||g()}function s(t){q("ondata"),v=!1,!1!==e.write(t)||v||((1===d.pipesCount&&d.pipes===e||d.pipesCount>1&&-1!==M(d.pipes,e))&&!y&&(q("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,v=!0),h.pause())}function u(t){q("onerror",t),c(),e.removeListener("error",u),0===k(e,"error")&&e.emit("error",t)}function f(){e.removeListener("finish",l),c()}function l(){q("onfinish"),e.removeListener("close",f),c()}function c(){q("unpipe"),h.unpipe(e)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=e;break;case 1:d.pipes=[d.pipes,e];break;default:d.pipes.push(e)}d.pipesCount+=1,q("pipe count=%d opts=%j",d.pipesCount,t);var p=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?i:c;d.endEmitted?U(p):h.once("end",p),e.on("unpipe",r);var g=b(h);e.on("drain",g);var y=!1,v=!1;return h.on("data",s),a(e,"error",u),e.once("close",f),e.once("finish",l),e.emit("pipe",h),d.flowing||(q("pipe resume"),h.resume()),e},u.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived);var n=(t+=e.toString(this.encoding,0,n)).length-1,i=t.charCodeAt(n);if(i>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,n)}return t},f.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},f.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},function(e,t,r){"use strict";function n(e){this.afterTransform=function(t,r){return i(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&e.push(r),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length{n.default.instanceOf(t,String),n.default(!(i.gt(t,"9223372036854775807")||i.lt(t,"-9223372036854775808")),"Value out of range");const r=i.div(t,i.LONG_UPPER_SHIFT,!0),o=i.sub(t,i.mul(r,i.LONG_UPPER_SHIFT)),a=new ArrayBuffer(8),s=new DataView(a);s.setInt32(0,Number(r)),s.setUint32(4,Number(o)),e.addAll(a)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MILLIS_PER_DAY=864e5;const n=6e4;t.toUTC=function(e){return e.getTime()-e.getTimezoneOffset()*n},t.fromUTC=function(e){const t=new Date(e);return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2);class i extends n.default{}t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(33);t.default=((e,t)=>{n.default.instanceOf(t,Array);e:for(let r=0;;r++){let o=0;for(let a=0;a<8;a++){const s=i.timesEight(r)|a;if(s===t.length){a&&e.add(o);break e}const u=t[s];n.default.instanceOf(u,Boolean),u&&(o|=1<<7-a)}e.add(o)}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(51);t.ByteType=n.default;var i=r(80);t.ShortType=i.default;var o=r(81);t.IntType=o.default;var a=r(82);t.LongType=a.default;var s=r(83);t.BigIntType=s.default;var u=r(84);t.FlexIntType=u.default;var f=r(85);t.UnsignedByteType=f.default;var l=r(86);t.UnsignedShortType=l.default;var c=r(87);t.UnsignedIntType=c.default;var h=r(88);t.UnsignedLongType=h.default;var d=r(89);t.BigUnsignedIntType=d.default;var p=r(90);t.FlexUnsignedIntType=p.default;var g=r(91);t.DateType=g.default;var y=r(92);t.DayType=y.default;var v=r(93);t.TimeType=v.default;var m=r(94);t.FloatType=m.default;var w=r(95);t.DoubleType=w.default;var b=r(96);t.BooleanType=b.default;var _=r(97);t.BooleanTupleType=_.default;var O=r(98);t.BooleanArrayType=O.default;var T=r(99);t.CharType=T.default;var S=r(100);t.StringType=S.default;var E=r(101);t.OctetsType=E.default;var A=r(28);t.TupleType=A.default;var B=r(19);t.StructType=B.default;var x=r(21);t.ArrayType=x.default;var L=r(27);t.SetType=L.default;var R=r(26);t.MapType=R.default;var M=r(102);t.EnumType=M.default;var U=r(103);t.ChoiceType=U.default;var P=r(104);t.NamedChoiceType=P.default;var N=r(105);t.RecursiveType=N.default;var k=r(106);t.OptionalType=k.default;var I=r(107);t.PointerType=I.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REPEATED_TYPE=255},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new Map;t.get=function(e){const t=n.get(e);if(t)return t;{const t={[e]:class{}}[e];return n.set(e,t),t}}},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,l=-7,c=r?i-1:0,h=r?-1:1,d=e[t+c];for(c+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+c],c+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+c],c+=h,l-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,f=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+c>=1?h/u:h*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=l?(s=0,a=l):a+c>=1?(s=(t*u-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,f-=8);e[r+d-p]|=128*g}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(12);class s extends a.default{static get _value(){return 1}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(-128,t,128,"Value out of range"),e.addAll(new Int8Array([t]).buffer)}consumeValue(e,t){return n.default(e.byteLength>t,i.NOT_LONG_ENOUGH),{value:new Int8Array(e)[t],length:1}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=(e,t)=>e>>>t|e<<32-t;t.default=(e=>{const t=e.byteLength,r=8*t;n.default(r===new Uint32Array([0|r])[0],"Bit length does not fit in a 32-bit integer");const a=t+(64-(t+72&63))+8,s=new ArrayBuffer(a),u=new Uint8Array(s);u.set(new Uint8Array(e)),u[t]=128,new DataView(s).setUint32(a-4,r);const f=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);for(let e=0;e>>3,i=t[e-2],a=o(i,17)^o(i,19)^i>>>10;t[e]=t[e-16]+n+t[e-7]+a}const n=f.slice();for(let e=0;e<64;e++){const r=n[0],a=n[1],s=n[2],u=n[4],f=n[5],l=n[6],c=o(u,6)^o(u,11)^o(u,25),h=u&f^~u&l,d=n[7]+c+h+i[e]+t[e],p=(o(r,2)^o(r,13)^o(r,22))+(r&a^r&s^a&s);n[7]=l,n[6]=f,n[5]=u,n[4]=n[3]+d,n[3]=s,n[2]=a,n[1]=r,n[0]=d+p}for(let e=0;e<8;e++)f[e]+=n[e]}const l=new ArrayBuffer(32),c=new DataView(l);for(let e=0;e<8;e++)c.setUint32(e<<2,f[e]);return l})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(20),i=new ArrayBuffer(2);new DataView(i).setUint16(0,12),t.VERSION_STRING=n.fromByteArray(new Uint8Array(i))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const n=r(55),i=r(74),o=r(0),a=r(25),s=[i.Writable,i.Duplex,n.OutgoingMessage];class u{constructor(e){o.default.instanceOf(e,s),this.outStream=e,this.writtenBytes=0,this.paused=null}add(e){return o.default.integer(e),o.default.between(0,e,256,"Not a byte: "+String(e)),this.addAll(new Uint8Array([e]).buffer)}addAll(t){return o.default.instanceOf(t,ArrayBuffer),this.paused?this.paused.addAll(t):this.outStream.write(e.from(t)),this.writtenBytes+=t.byteLength,this}end(){this.outStream.end()}get length(){return this.writtenBytes}pause(){return o.default(null===this.paused,"Already paused"),this.paused=new a.default,this}resume(){if(!this.paused)throw new Error("Was not paused");const{length:t}=this.paused;return this.outStream.write(e.from(this.paused.rawBuffer,0,t)),this.paused=null,this}reset(){if(!this.paused)throw new Error("Was not paused");return this.writtenBytes-=this.paused.length,this.paused=new a.default,this}}t.default=u}).call(t,r(7).Buffer)},function(e,t,r){(function(e){var n=r(56),i=r(65),o=r(66),a=r(67),s=t;s.request=function(t,r){t="string"==typeof t?a.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",s=t.protocol||o,u=t.hostname||t.host,f=t.port,l=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?s+"//"+u:"")+(f?":"+f:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var c=new n(t);return r&&c.on("response",r),c},s.get=function(e,t){var r=s.request(e,t);return r.end(),r},s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.STATUS_CODES=o,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(t,r(5))},function(e,t,r){(function(t,n,i){function o(e,t){return s.fetch&&t?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&e?"arraybuffer":s.vbArray&&e?"text:vbarray":"text"}function a(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}var s=r(35),u=r(36),f=r(57),l=r(15),c=r(64),h=f.IncomingMessage,d=f.readyStates,p=e.exports=function(e){var r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var n,i=!0;if("disable-fetch"===e.mode||"timeout"in e)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!s.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=o(n,i),r.on("finish",function(){r._onFinish()})};u(p,l.Writable),p.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===g.indexOf(n)&&(r._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var r=e._opts,o=e._headers,a=null;"GET"!==r.method&&"HEAD"!==r.method&&(a=s.blobConstructor?new n.Blob(e._body.map(function(e){return c(e)}),{type:(o["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(o).forEach(function(e){var t=o[e].name,r=o[e].value;Array.isArray(r)?r.forEach(function(e){u.push([t,e])}):u.push([t,r])}),"fetch"===e._mode)n.fetch(e._opts.url,{method:e._opts.method,headers:u,body:a||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)});else{var f=e._xhr=new n.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!r.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"timeout"in r&&(f.timeout=r.timeout,f.ontimeout=function(){e.emit("timeout")}),u.forEach(function(e){f.setRequestHeader(e[0],e[1])}),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(a)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}}}},p.prototype._onXHRProgress=function(){var e=this;a(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new h(e._xhr,e._fetchResponse,e._mode),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,r){this._body.push(e),r()},p.prototype.abort=p.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},p.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(n,e,t,r)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(t,r(7).Buffer,r(5),r(11))},function(e,t,r){(function(e,n,i){var o=r(35),a=r(36),s=r(15),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=t.IncomingMessage=function(t,r,i){var a=this;if(s.Readable.call(a),a._mode=i,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){e.nextTick(function(){a.emit("close")})}),"fetch"===i){a._fetchResponse=r,a.url=r.url,a.statusCode=r.status,a.statusMessage=r.statusText,r.headers.forEach(function(e,t){a.headers[t.toLowerCase()]=e,a.rawHeaders.push(t,e)});var u=r.body.getReader();function f(){u.read().then(function(e){a._destroyed||(e.done?a.push(null):(a.push(new n(e.value)),f()))}).catch(function(e){a.emit("error",e)})}f()}else if(a._xhr=t,a._pos=0,a.url=t.responseURL,a.statusCode=t.status,a.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===a.headers[r]&&(a.headers[r]=[]),a.headers[r].push(t[2])):void 0!==a.headers[r]?a.headers[r]+=", "+t[2]:a.headers[r]=t[2],a.rawHeaders.push(t[1],t[2])}}),a._charset="x-user-defined",!o.overrideMimeType){var l=a.rawHeaders["mime-type"];if(l){var c=l.match(/;\s*charset=([^;])(;|$)/);c&&(a._charset=c[1].toLowerCase())}a._charset||(a._charset="utf-8")}};a(f,s.Readable),f.prototype._read=function(){},f.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==r){e.push(new n(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new n(o.length),s=0;se._pos&&(e.push(new n(new Uint8Array(f.result.slice(e._pos)))),e._pos=f.result.byteLength)},f.onload=function(){e.push(null)},f.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(t,r(11),r(7).Buffer,r(5))},function(e,t){},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){e.copy(t,r)}var o=r(23).Buffer;e.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),r=this.head,n=0;r;)i(r.data,t,n),n+=r.data.length,r=r.next;return t},e}()},function(e,t,r){function n(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new n(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new n(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(61),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,r){(function(e,t){!function(e,r){"use strict";function n(e){delete u[e]}function i(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}function o(e){if(f)setTimeout(o,0,e);else{var t=u[e];if(t){f=!0;try{i(t)}finally{n(e),f=!1}}}}if(!e.setImmediate){var a,s=1,u={},f=!1,l=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?a=function(e){t.nextTick(function(){o(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&o(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),a=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){o(e.data)},a=function(t){e.port2.postMessage(t)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var e=l.documentElement;a=function(t){var r=l.createElement("script");r.onreadystatechange=function(){o(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():a=function(e){setTimeout(o,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),h=["'"].concat(c),d=["%","/","?",";","#"].concat(h),p=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(71);n.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=-1!==n&&n127?N+="x":N+=P[k];if(!N.match(g)){var j=M.slice(0,A),C=M.slice(A+1),V=P.match(y);V&&(j.push(V[1]),C.unshift(V[2])),C.length&&(c="/"+C.join(".")+c),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=o.toASCII(this.hostname));var D=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+D,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==c[0]&&(c="/"+c))}if(!v[T])for(var A=0,U=h.length;A0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!O.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=O.slice(-1)[0],A=(r.host||e.host||O.length>1)&&("."===E||".."===E)||""===E,B=0,x=O.length;x>=0;x--)"."===(E=O[x])?O.splice(x,1):".."===E?(O.splice(x,1),B++):B&&(O.splice(x,1),B--);if(!b&&!_)for(;B--;B)O.unshift("..");!b||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),A&&"/"!==O.join("/").substr(-1)&&O.push("");var L=""===O[0]||O[0]&&"/"===O[0].charAt(0);if(S){r.hostname=r.host=L?"":O.length?O.shift():"";var R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");R&&(r.auth=R.shift(),r.host=r.hostname=R.shift())}return(b=b||r.host&&O.length)&&!L&&O.unshift(""),O.length?r.pathname=O.join("/"):(r.pathname=null,r.path=null),a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;!function(o){function a(e){throw new RangeError(R[e])}function s(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function u(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+s((e=e.replace(L,".")).split("."),t).join(".")}function f(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=P((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=P(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:w}function h(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,r){var n=0;for(e=r?U(e/T):e>>1,e+=U(e/t);e>M*_>>1;n+=w)e=U(e/M);return U(n+(M+1)*e/(e+O))}function p(e){var t,r,n,i,o,s,u,f,h,p,g=[],y=e.length,v=0,O=E,T=S;for((r=e.lastIndexOf(A))<0&&(r=0),n=0;n=128&&a("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=y&&a("invalid-input"),((f=c(e.charCodeAt(i++)))>=w||f>U((m-v)/s))&&a("overflow"),v+=f*s,h=u<=T?b:u>=T+_?_:u-T,!(fU(m/(p=w-h))&&a("overflow"),s*=p;T=d(v-o,t=g.length+1,0==o),U(v/t)>m-O&&a("overflow"),O+=U(v/t),v%=t,g.splice(v++,0,O)}return l(g)}function g(e){var t,r,n,i,o,s,u,l,c,p,g,y,v,O,T,B=[];for(y=(e=f(e)).length,t=E,r=0,o=S,s=0;s=t&&gU((m-r)/(v=n+1))&&a("overflow"),r+=(u-t)*v,t=u,s=0;sm&&a("overflow"),g==t){for(l=r,c=w;p=c<=o?b:c>=o+_?_:c-o,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=w-b,U=Math.floor,P=String.fromCharCode;v={version:"1.4.1",ucs2:{decode:f,encode:l},decode:p,encode:g,toASCII(e){return u(e,function(e){return x.test(e)?"xn--"+g(e):e})},toUnicode(e){return u(e,function(e){return B.test(e)?p(e.slice(4).toLowerCase()):e})}},void 0!==(i=function(){return v}.call(t,r,t,e))&&(e.exports=i)}()}).call(t,r(69)(e),r(5))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";e.exports={isString(e){return"string"==typeof e},isObject(e){return"object"==typeof e&&null!==e},isNull(e){return null===e},isNullOrUndefined(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(72),t.encode=t.stringify=r(73)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var l=0;l=0?(c=g.substr(0,y),h=g.substr(y+1)):(c=g,h=""),d=decodeURIComponent(c),p=decodeURIComponent(h),n(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n=t+2,i.NOT_LONG_ENOUGH),{value:new DataView(e).getInt16(t),length:2}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(12);class s extends a.default{static get _value(){return 3}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(-2147483648,t,2147483648,"Value out of range");const i=new ArrayBuffer(4);new DataView(i).setInt32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getInt32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1),i=r(43),o=r(12);class a extends o.default{static get _value(){return 4}writeValue(e,t){this.isBuffer(e),i.default(e,t)}consumeValue(e,t){return n.readLong(e,t)}}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(14),s=r(12);class u extends s.default{static get _value(){return 5}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),t=a.normalize(t);const r=[];if(!a.eq(t,"0")){for(;a.gt(t,"127")||a.lt(t,"-128");){const e=a.div(t,a.BYTE_SHIFT,!0),n=a.sub(t,a.mul(e,a.BYTE_SHIFT));r.push(Number(n)),t=e}r.push(Number(t))}const o=new Uint8Array(r.length);for(let e=r.length-1,t=0;e>=0;e--,t++)o[t]=r[e];e.addAll(i.makeValueBuffer(r.length)).addAll(o.buffer)}consumeValue(e,t){const r=o.readFlexInt(e,t),i=r.value;let{length:s}=r;n.default(e.byteLength>=t+s+i,o.NOT_LONG_ENOUGH);const u=new Uint8Array(e,t+s);let f;if(i){f=String(u[0]<<24>>24);for(let e=1;et,i.NOT_LONG_ENOUGH),{value:new Uint8Array(e)[t],length:1}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(13);class s extends a.default{static get _value(){return 18}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(0,t,65536,"Value out of range");const i=new ArrayBuffer(2);new DataView(i).setUint16(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+2,i.NOT_LONG_ENOUGH),{value:new DataView(e).getUint16(t),length:2}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(13);class s extends a.default{static get _value(){return 19}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(0,t,4294967296,"Value out of range");const i=new ArrayBuffer(4);new DataView(i).setUint32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getUint32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(14),a=r(13),s="18446744073709551615";class u extends a.default{static get _value(){return 20}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(!(o.gt(t,s)||o.lt(t,"0")),"Value out of range");const r=o.div(t,o.LONG_UPPER_SHIFT),i=o.sub(t,o.mul(r,o.LONG_UPPER_SHIFT)),a=new ArrayBuffer(8),u=new DataView(a);u.setUint32(0,Number(r)),u.setUint32(4,Number(i)),e.addAll(a)}consumeValue(e,t){n.default(e.byteLength>=t+8,i.NOT_LONG_ENOUGH);const r=new DataView(e,t),a=r.getUint32(0),s=r.getUint32(4);return{value:o.add(o.mul(String(a),o.LONG_UPPER_SHIFT),String(s)),length:8}}}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(14),s=r(13);class u extends s.default{static get _value(){return 21}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(!a.isNegative(t),"Value out of range");const r=[];if(!a.eq(t,"0")){for(;a.ge(t,a.BYTE_SHIFT);){const[e,n]=a.quotientRemainderPositive(t,a.BYTE_SHIFT);r.push(Number(n)),t=e}r.push(Number(t))}const o=new Uint8Array(r.length);for(let e=r.length-1,t=0;e>=0;e--,t++)o[t]=r[e];e.addAll(i.makeValueBuffer(r.length)).addAll(o.buffer)}consumeValue(e,t){const r=o.readFlexInt(e,t),i=r.value;let{length:s}=r;n.default(e.byteLength>=t+s+i,o.NOT_LONG_ENOUGH);const u=new Uint8Array(e,t+s);let f="0";for(let e=0;e>8),s.setUint8(2,o),e.addAll(a)}consumeValue(e,t){n.default(e.byteLength>=t+3,o.NOT_LONG_ENOUGH);const r=new DataView(e,t),a=r.getInt16(0)<<8|r.getUint8(2);return{value:i.fromUTC(a*i.MILLIS_PER_DAY),length:3}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(44),o=r(1),a=r(29);class s extends a.default{static get _value(){return 28}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Date);const r=new ArrayBuffer(4);new DataView(r).setUint32(0,t.getTime()%i.MILLIS_PER_DAY),e.addAll(r)}consumeValue(e,t){return n.default(e.byteLength>=t+4,o.NOT_LONG_ENOUGH),{value:new Date(new DataView(e).getUint32(t)),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(45);class s extends a.default{static get _value(){return 32}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.instanceOf(t,Number);const i=new ArrayBuffer(4);new DataView(i).setFloat32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getFloat32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(45);class s extends a.default{static get _value(){return 33}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.instanceOf(t,Number);const i=new ArrayBuffer(8);new DataView(i).setFloat64(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+8,i.NOT_LONG_ENOUGH),{value:new DataView(e).getFloat64(t),length:8}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(2);class a extends o.default{static get _value(){return 48}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Boolean),e.add(t?255:0)}consumeValue(e,t){return i.readBooleanByte(e,t)}}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(46),a=r(2);class s extends a.default{static get _value(){return 49}constructor(e){super(),n.default.byteUnsignedInteger(e),this.length=e}addToBuffer(e){return!!super.addToBuffer(e)&&(e.add(this.length),!0)}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Array),n.default(t.length===this.length,"Length does not match: expected "+String(this.length)+" but got "+String(t.length)),o.default(e,t)}consumeValue(e,t){return i.readBooleans({buffer:e,offset:t,count:this.length})}equals(e){return super.equals(e)&&e.length===this.length}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(46),s=r(2);class u extends s.default{static get _value(){return 50}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Array),e.addAll(i.makeValueBuffer(t.length)),a.default(e,t)}consumeValue(e,t){const r=o.readFlexInt(e,t);let{length:n}=r;const i=o.readBooleans({buffer:e,offset:t+n,count:r.value}),{value:a}=i;return n+=i.length,{value:a,length:n}}}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(2);class s extends a.default{static get _value(){return 64}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(1===t.length,"String must contain only 1 character"),e.addAll(i.fromString(t))}consumeValue(e,t){n.default(e.byteLength>t,o.NOT_LONG_ENOUGH);const[r]=i.toString(new Uint8Array(e,t).subarray(0,4));return{value:r,length:i.fromString(r).byteLength}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(2);class s extends a.default{static get _value(){return 65}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),e.addAll(i.fromString(t)).add(0)}consumeValue(e,t){const r=new Uint8Array(e,t);let a=0;for(;n.default(r.length>a,o.NOT_LONG_ENOUGH),r[a];a++);const s=i.toString(r.subarray(0,a));return a++,{value:s,length:a}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(2);class s extends a.default{static get _value(){return 66}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,ArrayBuffer),e.addAll(i.makeValueBuffer(t.byteLength)).addAll(t)}consumeValue(e,t){const r=o.readFlexInt(e,t),{length:i}=r,a=i+r.value;return n.default(e.byteLength>=t+a,o.NOT_LONG_ENOUGH),{value:e.slice(t+i,t+a),length:a}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(9),s=r(2),u=r(4);class f extends u.default{constructor({type:e,values:t}){super(),n.default.instanceOf(e,s.default),n.default.instanceOf(t,Array);try{n.default.byteUnsignedInteger(t.length)}catch(e){n.default.fail(String(t.length)+" values is too many")}const r=new Map;for(let o=0;ot,o.NOT_LONG_ENOUGH);const r=new Uint8Array(e)[t],{values:i}=this;return n.default(r in i,"Index "+String(r)+" is invalid"),{value:i[r],length:1}}equals(e){if(!super.equals(e))return!1;const t=e;if(!this.type.equals(t.type))return!1;if(this.values.length!==t.values.length)return!1;const r=t.valueIndices.keys();for(const e of this.valueIndices.keys())if(r.next().value!==e)return!1;return!0}}t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(9),a=r(2),s=r(4);class u extends a.default{constructor(e){super(),n.default.instanceOf(e,Array);try{n.default.byteUnsignedInteger(e.length)}catch(t){n.default.fail(String(e.length)+" types is too many")}for(const t of e)n.default.instanceOf(t,s.default);this.types=e}static get _value(){return 86}addToBuffer(e){if(super.addToBuffer(e)){e.add(this.types.length);for(const t of this.types)t.addToBuffer(e);return!0}return!1}writeValue(e,t){this.isBuffer(e),e.pause();let r=!1;for(let n=0;nt,i.NOT_LONG_ENOUGH);const o=new Uint8Array(e)[t],{value:a,length:s}=this.types[o].consumeValue(e,t+r);return r+=s,{value:a,length:r}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.types.length!==t.types.length)return!1;for(let e=0;et,a.NOT_LONG_ENOUGH);const i=new Uint8Array(e)[t],s=this.indexConstructors.get(i);if(void 0===s)throw new Error("Constructor index "+String(i)+" is invalid");const u=o.get(s.name),{value:f,length:l}=this.constructorTypes[i].type.consumeValue(e,t+r,new u);return r+=l,{value:f,length:r}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.constructorTypes.length!==t.constructorTypes.length)return!1;for(let e=0;e=0,"Offset is negative: "+String(t));const r=new Uint8Array(e);i.default(e.byteLength>t,u.NOT_LONG_ENOUGH);const h=r[t];let y,v=1;const m=d.get(h);if(m)return{value:new m,length:v};switch(h){case c.BooleanTupleType._value:{i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const n=r[t+v];v++,y=new c.BooleanTupleType(n);break}case c.TupleType._value:{const o=n(e,t+v);v+=o.length,i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const a=r[t+v];v++,y=new c.TupleType({type:o.value,length:a});break}case c.StructType._value:{i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const a=r[t+v];v++;const s={};for(let f=0;ft+v,u.NOT_LONG_ENOUGH);const a=r[t+v],f=t+ ++v,l=f+a;i.default(e.byteLength>=l,u.NOT_LONG_ENOUGH);const c=o.toString(r.subarray(f,l));v+=a;const h=n(e,l);s[c]=h.value,v+=h.length}y=new c.StructType(s);break}case c.ArrayType._value:{const r=n(e,t+v);v+=r.length,y=new c.ArrayType(r.value);break}case c.SetType._value:{const r=n(e,t+v);v+=r.length,y=new c.SetType(r.value);break}case c.MapType._value:{const r=n(e,t+v),i=n(e,t+(v+=r.length));v+=i.length,y=new c.MapType(r.value,i.value);break}case c.EnumType._value:{const o=n(e,t+v),a=o.value;v+=o.length,i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const s=r[t+v];v++;const f=new Array(s);for(let r=0;rt+v,u.NOT_LONG_ENOUGH);const o=r[t+v];v++;const a=new Array(o);for(let r=0;rt+v,u.NOT_LONG_ENOUGH);const a=r[t+v];v++;const l=new Map;for(let h=0;ht+v,u.NOT_LONG_ENOUGH);const a=r[t+v],h=t+ ++v,d=h+a;i.default(e.byteLength>=d,u.NOT_LONG_ENOUGH);const p=o.toString(r.subarray(h,d));v+=a;const g=n(e,d);if(!(g.value instanceof c.StructType))throw new Error("Not a StructType: "+f.inspect(g.value));l.set(s.get(p),g.value),v+=g.length}y=new c.NamedChoiceType(l);break}case c.RecursiveType._value:{const r=u.readFlexInt(e,t+v),i=r.value;v+=r.length;let o,a=g.get(e);if(a?o=a.get(i):(a=new Map,g.set(e,a)),void 0===o){do{o="read-type";for(let e=0;e{if(!t.ok)throw new Error("Received status of "+String(t.status));const r=t.headers.get("sig");return o&&o.sig===r?t.arrayBuffer().then(e=>{const t=o.type.readValue(e);return Promise.resolve(t)}):t.arrayBuffer().then(t=>{const i=s._consumeType(t,0),o=i.value,a=o.readValue(t,i.length);return u[e]={sig:r,type:o},n(),Promise.resolve(a)})})},window.sb=t}]); \ No newline at end of file +var $=r(20),K=r(50),J=r(32);t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:()=>42},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,r){return a(null,e,t,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,r){return u(null,e,t,r)},o.allocUnsafe=function(e){return f(null,e)},o.allocUnsafeSlow=function(e){return f(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},o.prototype.compare=function(e,t,r,n,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,s=r-t,u=Math.min(a,s),f=this.slice(n,i),l=e.slice(t,r),c=0;ci)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return O(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),K.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),K.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),K.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),K.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||N(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):I(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):I(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):I(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return V(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return V(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=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),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a"}if(t instanceof Function)return"Function "+t.name;if(o.get(t))return"[Circular]";if(o.set(t,1),t instanceof Set){let e="Set {";const r=t.values();let i=r.next();for(;!i.done;)e+=n(i.value,o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"}"}if(t instanceof Map){let e="Map {";const r=t.entries();let i=r.next();for(;!i.done;)e+=n(i.value[0],o),e+=" => ",e+=n(i.value[1],o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"}"}if(t instanceof Array){let e="[";const r=t[Symbol.iterator]();let i=r.next();for(;!i.done;)e+=n(i.value,o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"]"}if(t.constructor===Object){let e="{";for(const r in t)({}).hasOwnProperty.call(t,r)&&("{"!==e&&(e+=", "),e+=r+": "+n(t[r],o));return o.set(t,o.get(t)-1),e+"}"}const{name:a}=t.constructor,s=(a?a+" ":"")+n(r(t),o);return o.set(t,o.get(t)-1),s}Object.defineProperty(t,"__esModule",{value:!0});const i=new Set([String,Number,Boolean,Date]);t.inspect=function(e){return n(e,new Map)}}).call(t,r(7).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(25),o=4096;t.toString=function(e){n.default.instanceOf(e,Uint8Array);const t=[];for(let r=0;r239?4:n>223?3:n>191?2:1;if(r+o<=e.length){let t,a,s,u;switch(o){case 1:n<128&&(i=n);break;case 2:128==(192&(t=e[r+1]))&&(u=(31&n)<<6|63&t)>127&&(i=u);break;case 3:t=e[r+1],a=e[r+2],128==(192&t)&&128==(192&a)&&(u=(15&n)<<12|(63&t)<<6|63&a)>2047&&(u<55296||u>57343)&&(i=u);break;case 4:t=e[r+1],a=e[r+2],s=e[r+3],128==(192&t)&&128==(192&a)&&128==(192&s)&&(u=(15&n)<<18|(63&t)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(i=u)}}void 0===i?(i=65533,o=1):i>65535&&(i-=65536,t.push(i>>>10&1023|55296),i=56320|1023&i),t.push(i),r+=o}let r="";for(let e=0;e>6).add(128|63&e):e<55296||e>=57344?t.add(224|e>>12).add(128|e>>6&63).add(128|63&e):(e=65536+((1023&e)<<10|1023&e),t.add(240|e>>18).add(128|e>>12&63).add(128|e>>6&63).add(128|63&e))}return t.toBuffer()},t.toBinaryString=function(e){n.default.instanceOf(e,ArrayBuffer);let t="";const r=new Uint8Array(e);for(let e=0;e1)for(var r=1;r=10;)s-=10,i++;0===s?o++:(n=String(s)+T(n,o),o=0)}return i>0&&(n=String(i)+T(n,o)),n}function o(e,t){if(B(e),B(t),v(e)&&v(t))return i(e,t);if(y(e)&&y(t))return b(i(w(e),w(t)));if(d(w(e),w(t))){var r=e;e=t,t=r}var o=n(w(e),w(t));return v(e)?o:b(o)}function a(e,t){return B(e),B(t),o(e,b(t))}function s(e,t){x(e),L(t);for(var r="",n=A(e),i=0,o=0,a=0;a=10;)s-=10,i++;0===s?o++:(r=String(s)+T(r,o),o=0)}return i>0&&(r=String(i)+T(r,o)),0===r.length?"0":r}function u(e,t){x(e),x(t);for(var r="0",n=A(t),o=0;o0;)e+="0",t--;return e}function E(e,t){return B(e),L(t),t>=A(e)?"0":e.charAt(e.length-t-1)}function A(e){return y(e)?e.length-1:e.length}function B(e){P(e,"string")}function x(e){B(e),M(e,v,"isPositive")}function L(e){P(e,"number")}function R(e){if(P(e,"number"),e<0)throw new Error("Expected a positive number: "+e)}function M(e,t,r){if(!t.call(null,e))throw new Error("Condition "+r+" failed for value "+e)}function P(e,t){if(typeof e!==t)throw new Error("Not a "+t+": "+e)}Object.defineProperty(t,"__esModule",{value:!0}),t.subPositive=n,t.add=o,t.sub=a,t.timesDigit=s,t.mulPositive=u,t.mul=f,t.quotientRemainderPositive=l,t.div=function(e,t,r=!1){B(e),B(t);var n=l(w(e),w(t))[0];return m(e,t)||(n=b(n)),!r||c(f(n,t),e)||m(e,t)||(n=a(n,"1")),n},t.eq=c,t.lt=d,t.ge=p,t.gt=g,t.isNegative=y,t.isPositive=v,t.abs=w,t.negate=b;var U=/^(-?)0*([1-9][0-9]*)$/,N=/^0+$/;t.normalize=_,t.LONG_UPPER_SHIFT="4294967296",t.BYTE_SHIFT="256"},function(e,t,r){(t=e.exports=r(37)).Stream=t,t.Readable=t,t.Writable=r(24),t.Duplex=r(8),t.Transform=r(41),t.PassThrough=r(63)},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(t,r(7).Buffer)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;ae.namet.name?1:0)}static get _value(){return 81}addToBuffer(e){if(super.addToBuffer(e)){e.add(this.fields.length);for(const t of this.fields){const{nameBuffer:r}=t;e.add(r.byteLength).addAll(r),t.type.addToBuffer(e)}return!0}return!1}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Object);for(const r of this.fields){const i=t[r.name];try{r.type.writeValue(e,i)}catch(e){throw n.default(void 0!==i,'Value for field "'+r.name+'" missing'),e}}}consumeValue(e,t,r){let n=0;const i=r||o.makeBaseValue(this);for(const r of this.fields){const o=r.type.consumeValue(e,t+n);i[r.name]=o.value,n+=o.length}return{value:i,length:n}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.fields.length!==t.fields.length)return!1;for(let e=0;e0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function o(e,t,r){for(var n,o=[],a=t;a0?f-4:f;var l=0;for(t=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i="",s=[],u=0,f=r-n;uf?f:u+16383));return 1===n?(t=e[r-1],i+=a[t>>2],i+=a[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=a[t>>10],i+=a[t>>4&63],i+=a[t<<2&63],i+="="),s.push(i),s.join("")};for(var a=[],s=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=f.length;l0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var r,i,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],a=r.length,i=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(s=a;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],n(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return a(e,t,r)}var o=r(7),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=i),n(a,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,i){function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){B(t,e)}}function a(e){return N.from(e)}function s(e){return N.isBuffer(e)||e instanceof k}function u(){}function f(e,t){L=L||r(8),e=e||{},this.objectMode=!!e.objectMode,t instanceof L&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){w(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function l(e){if(L=L||r(8),!(j.call(l,this)||this instanceof L))return new l(e);this._writableState=new f(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),U.call(this)}function c(e,t){var r=new Error("write after end");e.emit("error",r),x(t,r)}function h(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),x(n,o),i=!1),i}function d(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=N.from(t,r)),t}function p(e,t,r,n,i,o){if(!r){var a=d(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1?n:x;l.WritableState=f;var M=r(16);M.inherits=r(17);var P={deprecate:r(62)},U=r(38),N=r(23).Buffer,k=i.Uint8Array||function(){},I=r(39);M.inherits(l,U),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:P.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var j;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value(e){return!!j.call(this,e)||e&&e._writableState instanceof f}})):j=function(e){return e instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=s(e)&&!n.objectMode;return o&&!N.isBuffer(e)&&(e=a(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=u),n.ended?c(this,r):(o||h(this,n,e,r))&&(n.pendingcb++,i=p(this,n,o,e,t,r)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},l.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},l.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||A(this,n,r)},Object.defineProperty(l.prototype,"destroyed",{get(){return void 0!==this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}}),l.prototype.destroy=I.destroy,l.prototype._undestroy=I.undestroy,l.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,r(11),r(60).setImmediate,r(5))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=10;class o{constructor(e=i){try{n.default.integer(e),n.default(e>=0)}catch(t){throw new RangeError(String(e)+" is not a valid buffer length")}this.buffer=new ArrayBuffer(e),this.size=0,this.pausePoints=[]}get length(){return this.size}grow(e){if(n.default.integer(e),e>this.buffer.byteLength){const t=new ArrayBuffer(e<<1);new Uint8Array(t).set(new Uint8Array(this.buffer).subarray(0,this.size)),this.buffer=t}return this}add(e){return n.default.integer(e),n.default.between(0,e,256,"Not a byte: "+String(e)),this.addAll(new Uint8Array([e]).buffer)}addAll(e){n.default.instanceOf(e,ArrayBuffer);const t=this.size,r=this.size+e.byteLength;return this.grow(r),this.size=r,new Uint8Array(this.buffer).set(new Uint8Array(e),t),this}get rawBuffer(){return this.buffer}toBuffer(){let e;return this.pausePoints.length?[e]=this.pausePoints:e=this.size,this.buffer.slice(0,e)}pause(){return this.pausePoints.push(this.size),this}resume(){if(void 0===this.pausePoints.pop())throw new Error("Was not paused");return this}reset(){if(!this.pausePoints.length)throw new Error("Was not paused");const e=this.pausePoints[this.pausePoints.length-1];return this.size=e,this}}t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(2),s=r(4);class u extends a.default{constructor(e,t){super(),n.default.instanceOf(e,s.default),n.default.instanceOf(t,s.default),this.keyType=e,this.valueType=t}static get _value(){return 84}addToBuffer(e){return!!super.addToBuffer(e)&&(this.keyType.addToBuffer(e),this.valueType.addToBuffer(e),!0)}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Map),e.addAll(i.makeValueBuffer(t.size));for(const[r,n]of t)this.keyType.writeValue(e,r),this.valueType.writeValue(e,n)}consumeValue(e,t,r){const n=o.readFlexInt(e,t);let{length:i}=n;const a=r||o.makeBaseValue(this);for(let r=0;r>>3},t.modEight=function(e){return 7&e},t.timesEight=function(e){return e<<3}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3);t.default=(({type:e,buffer:t,value:r,length:i})=>{t.addAll(n.makeValueBuffer(i));for(const n of r)e.writeValue(t,n)})},function(e,t,r){(function(e){function r(){if(void 0!==o)return o;if(e.XMLHttpRequest){o=new e.XMLHttpRequest;try{o.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){o=null}}else o=null;return o}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}t.fetch=i(e.fetch)&&i(e.ReadableStream),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var o,a=void 0!==e.ArrayBuffer,s=a&&i(e.ArrayBuffer.prototype.slice);t.arraybuffer=t.fetch||a&&n("arraybuffer"),t.msstream=!t.fetch&&s&&n("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&a&&n("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&i(r().overrideMimeType),t.vbArray=i(e.VBArray),o=null}).call(t,r(5))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";(function(t,n){function i(e){return j.from(e)}function o(e){return j.isBuffer(e)||e instanceof C}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?N(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function s(e,t){U=U||r(8),e=e||{},this.objectMode=!!e.objectMode,t instanceof U&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(G||(G=r(40).StringDecoder),this.decoder=new G(e.encoding),this.encoding=e.encoding)}function u(e){if(U=U||r(8),!(this instanceof u))return new u(e);this._readableState=new s(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),I.call(this)}function f(e,t,r,n,o){var a=e._readableState;if(null===t)a.reading=!1,g(e,a);else{var s;o||(s=c(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===j.prototype||(t=i(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):l(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?l(e,a,t,!1):w(e,a)):l(e,a,t,!1))):n||(a.reading=!1)}return h(a)}function l(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&y(e)),w(e,t)}function c(e,t){var r;return o(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function h(e){return!e.ended&&(e.needReadable||e.length=z?e=z:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function p(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=d(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function g(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,y(e)}}function y(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(q("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?P(v,e):v(e))}function v(e){q("emit readable"),e.emit("readable"),S(e)}function w(e,t){t.readingMore||(t.readingMore=!0,P(m,e,t))}function m(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=A(e,t.buffer,t.decoder),r}function A(e,t,r){var n;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}function x(e,t){var r=j.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}function L(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,P(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function M(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return q("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):y(this),null;if(0===(e=p(e,t))&&t.ended)return 0===t.length&&L(this),null;var n=t.needReadable;q("need readable",n),(0===t.length||t.length-e0?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&L(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(e,t){function r(e,t){q("onunpipe"),e===h&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function i(){q("onend"),e.end()}function o(){q("cleanup"),e.removeListener("close",f),e.removeListener("finish",l),e.removeListener("drain",g),e.removeListener("error",u),e.removeListener("unpipe",r),h.removeListener("end",i),h.removeListener("end",c),h.removeListener("data",s),y=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||g()}function s(t){q("ondata"),v=!1,!1!==e.write(t)||v||((1===d.pipesCount&&d.pipes===e||d.pipesCount>1&&-1!==M(d.pipes,e))&&!y&&(q("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,v=!0),h.pause())}function u(t){q("onerror",t),c(),e.removeListener("error",u),0===k(e,"error")&&e.emit("error",t)}function f(){e.removeListener("finish",l),c()}function l(){q("onfinish"),e.removeListener("close",f),c()}function c(){q("unpipe"),h.unpipe(e)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=e;break;case 1:d.pipes=[d.pipes,e];break;default:d.pipes.push(e)}d.pipesCount+=1,q("pipe count=%d opts=%j",d.pipesCount,t);var p=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?i:c;d.endEmitted?P(p):h.once("end",p),e.on("unpipe",r);var g=b(h);e.on("drain",g);var y=!1,v=!1;return h.on("data",s),a(e,"error",u),e.once("close",f),e.once("finish",l),e.emit("pipe",h),d.flowing||(q("pipe resume"),h.resume()),e},u.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived);var n=(t+=e.toString(this.encoding,0,n)).length-1,i=t.charCodeAt(n);if(i>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,n)}return t},f.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},f.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},function(e,t,r){"use strict";function n(e){this.afterTransform=function(t,r){return i(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&e.push(r),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length{n.default.instanceOf(t,String),n.default(!(i.gt(t,"9223372036854775807")||i.lt(t,"-9223372036854775808")),"Value out of range");const r=i.div(t,i.LONG_UPPER_SHIFT,!0),o=i.sub(t,i.mul(r,i.LONG_UPPER_SHIFT)),a=new ArrayBuffer(8),s=new DataView(a);s.setInt32(0,Number(r)),s.setUint32(4,Number(o)),e.addAll(a)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MILLIS_PER_DAY=864e5;const n=6e4;t.toUTC=function(e){return e.getTime()-e.getTimezoneOffset()*n},t.fromUTC=function(e){const t=new Date(e);return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2);class i extends n.default{}t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(33);t.default=((e,t)=>{n.default.instanceOf(t,Array);e:for(let r=0;;r++){let o=0;for(let a=0;a<8;a++){const s=i.timesEight(r)|a;if(s===t.length){a&&e.add(o);break e}const u=t[s];n.default.instanceOf(u,Boolean),u&&(o|=1<<7-a)}e.add(o)}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(51);t.ByteType=n.default;var i=r(80);t.ShortType=i.default;var o=r(81);t.IntType=o.default;var a=r(82);t.LongType=a.default;var s=r(83);t.BigIntType=s.default;var u=r(84);t.FlexIntType=u.default;var f=r(85);t.UnsignedByteType=f.default;var l=r(86);t.UnsignedShortType=l.default;var c=r(87);t.UnsignedIntType=c.default;var h=r(88);t.UnsignedLongType=h.default;var d=r(89);t.BigUnsignedIntType=d.default;var p=r(90);t.FlexUnsignedIntType=p.default;var g=r(91);t.DateType=g.default;var y=r(92);t.DayType=y.default;var v=r(93);t.TimeType=v.default;var w=r(94);t.FloatType=w.default;var m=r(95);t.DoubleType=m.default;var b=r(96);t.BooleanType=b.default;var _=r(97);t.BooleanTupleType=_.default;var O=r(98);t.BooleanArrayType=O.default;var T=r(99);t.CharType=T.default;var S=r(100);t.StringType=S.default;var E=r(101);t.OctetsType=E.default;var A=r(28);t.TupleType=A.default;var B=r(19);t.StructType=B.default;var x=r(21);t.ArrayType=x.default;var L=r(27);t.SetType=L.default;var R=r(26);t.MapType=R.default;var M=r(102);t.EnumType=M.default;var P=r(103);t.ChoiceType=P.default;var U=r(104);t.NamedChoiceType=U.default;var N=r(105);t.RecursiveType=N.default;var k=r(106);t.OptionalType=k.default;var I=r(107);t.PointerType=I.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REPEATED_TYPE=255},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new Map;t.get=function(e){const t=n.get(e);if(t)return t;{const t={[e]:class{}}[e];return n.set(e,t),t}}},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,l=-7,c=r?i-1:0,h=r?-1:1,d=e[t+c];for(c+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+c],c+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+c],c+=h,l-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,f=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+c>=1?h/u:h*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=l?(s=0,a=l):a+c>=1?(s=(t*u-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,f-=8);e[r+d-p]|=128*g}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(12);class s extends a.default{static get _value(){return 1}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(-128,t,128,"Value out of range"),e.addAll(new Int8Array([t]).buffer)}consumeValue(e,t){return n.default(e.byteLength>t,i.NOT_LONG_ENOUGH),{value:new Int8Array(e)[t],length:1}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=(e,t)=>e>>>t|e<<32-t;t.default=(e=>{const t=e.byteLength,r=8*t;n.default(r===new Uint32Array([0|r])[0],"Bit length does not fit in a 32-bit integer");const a=t+(64-(t+72&63))+8,s=new ArrayBuffer(a),u=new Uint8Array(s);u.set(new Uint8Array(e)),u[t]=128,new DataView(s).setUint32(a-4,r);const f=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);for(let e=0;e>>3,i=t[e-2],a=o(i,17)^o(i,19)^i>>>10;t[e]=t[e-16]+n+t[e-7]+a}const n=f.slice();for(let e=0;e<64;e++){const r=n[0],a=n[1],s=n[2],u=n[4],f=n[5],l=n[6],c=o(u,6)^o(u,11)^o(u,25),h=u&f^~u&l,d=n[7]+c+h+i[e]+t[e],p=(o(r,2)^o(r,13)^o(r,22))+(r&a^r&s^a&s);n[7]=l,n[6]=f,n[5]=u,n[4]=n[3]+d,n[3]=s,n[2]=a,n[1]=r,n[0]=d+p}for(let e=0;e<8;e++)f[e]+=n[e]}const l=new ArrayBuffer(32),c=new DataView(l);for(let e=0;e<8;e++)c.setUint32(e<<2,f[e]);return l})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(20),i=new ArrayBuffer(2);new DataView(i).setUint16(0,12),t.VERSION_STRING=n.fromByteArray(new Uint8Array(i))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const n=r(55),i=r(74),o=r(0),a=r(25),s=[i.Writable,i.Duplex,n.OutgoingMessage];class u{constructor(e){o.default.instanceOf(e,s),this.outStream=e,this.writtenBytes=0,this.pauseCount=0,this.paused=new a.default}add(e){return o.default.integer(e),o.default.between(0,e,256,"Not a byte: "+String(e)),this.addAll(new Uint8Array([e]).buffer)}addAll(t){return o.default.instanceOf(t,ArrayBuffer),this.pauseCount?this.paused.addAll(t):this.outStream.write(e.from(t)),this.writtenBytes+=t.byteLength,this}end(){this.outStream.end()}get length(){return this.writtenBytes}pause(){return this.paused.pause(),this.pauseCount++,this}resume(){if(!this.pauseCount)throw new Error("Was not paused");return--this.pauseCount?this.paused.resume():(this.outStream.write(e.from(this.paused.rawBuffer,0,this.paused.length)),this.paused=new a.default),this}reset(){if(!this.pauseCount)throw new Error("Was not paused");const e=this.paused.length;this.paused.reset();const t=this.paused.length;return this.writtenBytes-=e-t,this}}t.default=u}).call(t,r(7).Buffer)},function(e,t,r){(function(e){var n=r(56),i=r(65),o=r(66),a=r(67),s=t;s.request=function(t,r){t="string"==typeof t?a.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",s=t.protocol||o,u=t.hostname||t.host,f=t.port,l=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?s+"//"+u:"")+(f?":"+f:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var c=new n(t);return r&&c.on("response",r),c},s.get=function(e,t){var r=s.request(e,t);return r.end(),r},s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.STATUS_CODES=o,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(t,r(5))},function(e,t,r){(function(t,n,i){function o(e,t){return s.fetch&&t?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&e?"arraybuffer":s.vbArray&&e?"text:vbarray":"text"}function a(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}var s=r(35),u=r(36),f=r(57),l=r(15),c=r(64),h=f.IncomingMessage,d=f.readyStates,p=e.exports=function(e){var r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var n,i=!0;if("disable-fetch"===e.mode||"timeout"in e)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!s.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=o(n,i),r.on("finish",function(){r._onFinish()})};u(p,l.Writable),p.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===g.indexOf(n)&&(r._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var r=e._opts,o=e._headers,a=null;"GET"!==r.method&&"HEAD"!==r.method&&(a=s.blobConstructor?new n.Blob(e._body.map(function(e){return c(e)}),{type:(o["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(o).forEach(function(e){var t=o[e].name,r=o[e].value;Array.isArray(r)?r.forEach(function(e){u.push([t,e])}):u.push([t,r])}),"fetch"===e._mode)n.fetch(e._opts.url,{method:e._opts.method,headers:u,body:a||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)});else{var f=e._xhr=new n.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!r.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"timeout"in r&&(f.timeout=r.timeout,f.ontimeout=function(){e.emit("timeout")}),u.forEach(function(e){f.setRequestHeader(e[0],e[1])}),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(a)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}}}},p.prototype._onXHRProgress=function(){var e=this;a(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new h(e._xhr,e._fetchResponse,e._mode),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,r){this._body.push(e),r()},p.prototype.abort=p.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},p.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(n,e,t,r)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(t,r(7).Buffer,r(5),r(11))},function(e,t,r){(function(e,n,i){var o=r(35),a=r(36),s=r(15),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=t.IncomingMessage=function(t,r,i){var a=this;if(s.Readable.call(a),a._mode=i,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){e.nextTick(function(){a.emit("close")})}),"fetch"===i){a._fetchResponse=r,a.url=r.url,a.statusCode=r.status,a.statusMessage=r.statusText,r.headers.forEach(function(e,t){a.headers[t.toLowerCase()]=e,a.rawHeaders.push(t,e)});var u=r.body.getReader();function f(){u.read().then(function(e){a._destroyed||(e.done?a.push(null):(a.push(new n(e.value)),f()))}).catch(function(e){a.emit("error",e)})}f()}else if(a._xhr=t,a._pos=0,a.url=t.responseURL,a.statusCode=t.status,a.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===a.headers[r]&&(a.headers[r]=[]),a.headers[r].push(t[2])):void 0!==a.headers[r]?a.headers[r]+=", "+t[2]:a.headers[r]=t[2],a.rawHeaders.push(t[1],t[2])}}),a._charset="x-user-defined",!o.overrideMimeType){var l=a.rawHeaders["mime-type"];if(l){var c=l.match(/;\s*charset=([^;])(;|$)/);c&&(a._charset=c[1].toLowerCase())}a._charset||(a._charset="utf-8")}};a(f,s.Readable),f.prototype._read=function(){},f.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==r){e.push(new n(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new n(o.length),s=0;se._pos&&(e.push(new n(new Uint8Array(f.result.slice(e._pos)))),e._pos=f.result.byteLength)},f.onload=function(){e.push(null)},f.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(t,r(11),r(7).Buffer,r(5))},function(e,t){},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){e.copy(t,r)}var o=r(23).Buffer;e.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),r=this.head,n=0;r;)i(r.data,t,n),n+=r.data.length,r=r.next;return t},e}()},function(e,t,r){function n(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new n(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new n(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(61),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,r){(function(e,t){!function(e,r){"use strict";function n(e){delete u[e]}function i(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}function o(e){if(f)setTimeout(o,0,e);else{var t=u[e];if(t){f=!0;try{i(t)}finally{n(e),f=!1}}}}if(!e.setImmediate){var a,s=1,u={},f=!1,l=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?a=function(e){t.nextTick(function(){o(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&o(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),a=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){o(e.data)},a=function(t){e.port2.postMessage(t)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var e=l.documentElement;a=function(t){var r=l.createElement("script");r.onreadystatechange=function(){o(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():a=function(e){setTimeout(o,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),h=["'"].concat(c),d=["%","/","?",";","#"].concat(h),p=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(71);n.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=-1!==n&&n127?N+="x":N+=U[k];if(!N.match(g)){var j=M.slice(0,A),C=M.slice(A+1),V=U.match(y);V&&(j.push(V[1]),C.unshift(V[2])),C.length&&(c="/"+C.join(".")+c),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=o.toASCII(this.hostname));var D=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+D,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==c[0]&&(c="/"+c))}if(!v[T])for(var A=0,P=h.length;A0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift())),r.search=e.search,r.query=e.query,a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!O.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=O.slice(-1)[0],A=(r.host||e.host||O.length>1)&&("."===E||".."===E)||""===E,B=0,x=O.length;x>=0;x--)"."===(E=O[x])?O.splice(x,1):".."===E?(O.splice(x,1),B++):B&&(O.splice(x,1),B--);if(!b&&!_)for(;B--;B)O.unshift("..");!b||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),A&&"/"!==O.join("/").substr(-1)&&O.push("");var L=""===O[0]||O[0]&&"/"===O[0].charAt(0);if(S){r.hostname=r.host=L?"":O.length?O.shift():"";var R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");R&&(r.auth=R.shift(),r.host=r.hostname=R.shift())}return(b=b||r.host&&O.length)&&!L&&O.unshift(""),O.length?r.pathname=O.join("/"):(r.pathname=null,r.path=null),a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;!function(o){function a(e){throw new RangeError(R[e])}function s(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function u(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+s((e=e.replace(L,".")).split("."),t).join(".")}function f(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=U((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=U(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:m}function h(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,r){var n=0;for(e=r?P(e/T):e>>1,e+=P(e/t);e>M*_>>1;n+=m)e=P(e/M);return P(n+(M+1)*e/(e+O))}function p(e){var t,r,n,i,o,s,u,f,h,p,g=[],y=e.length,v=0,O=E,T=S;for((r=e.lastIndexOf(A))<0&&(r=0),n=0;n=128&&a("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=y&&a("invalid-input"),((f=c(e.charCodeAt(i++)))>=m||f>P((w-v)/s))&&a("overflow"),v+=f*s,h=u<=T?b:u>=T+_?_:u-T,!(fP(w/(p=m-h))&&a("overflow"),s*=p;T=d(v-o,t=g.length+1,0==o),P(v/t)>w-O&&a("overflow"),O+=P(v/t),v%=t,g.splice(v++,0,O)}return l(g)}function g(e){var t,r,n,i,o,s,u,l,c,p,g,y,v,O,T,B=[];for(y=(e=f(e)).length,t=E,r=0,o=S,s=0;s=t&&gP((w-r)/(v=n+1))&&a("overflow"),r+=(u-t)*v,t=u,s=0;sw&&a("overflow"),g==t){for(l=r,c=m;p=c<=o?b:c>=o+_?_:c-o,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=m-b,P=Math.floor,U=String.fromCharCode;v={version:"1.4.1",ucs2:{decode:f,encode:l},decode:p,encode:g,toASCII(e){return u(e,function(e){return x.test(e)?"xn--"+g(e):e})},toUnicode(e){return u(e,function(e){return B.test(e)?p(e.slice(4).toLowerCase()):e})}},void 0!==(i=function(){return v}.call(t,r,t,e))&&(e.exports=i)}()}).call(t,r(69)(e),r(5))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";e.exports={isString(e){return"string"==typeof e},isObject(e){return"object"==typeof e&&null!==e},isNull(e){return null===e},isNullOrUndefined(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(72),t.encode=t.stringify=r(73)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var l=0;l=0?(c=g.substr(0,y),h=g.substr(y+1)):(c=g,h=""),d=decodeURIComponent(c),p=decodeURIComponent(h),n(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n=t+2,i.NOT_LONG_ENOUGH),{value:new DataView(e).getInt16(t),length:2}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(12);class s extends a.default{static get _value(){return 3}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(-2147483648,t,2147483648,"Value out of range");const i=new ArrayBuffer(4);new DataView(i).setInt32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getInt32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1),i=r(43),o=r(12);class a extends o.default{static get _value(){return 4}writeValue(e,t){this.isBuffer(e),i.default(e,t)}consumeValue(e,t){return n.readLong(e,t)}}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(14),s=r(12);class u extends s.default{static get _value(){return 5}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),t=a.normalize(t);const r=[];if(!a.eq(t,"0")){for(;a.gt(t,"127")||a.lt(t,"-128");){const e=a.div(t,a.BYTE_SHIFT,!0),n=a.sub(t,a.mul(e,a.BYTE_SHIFT));r.push(Number(n)),t=e}r.push(Number(t))}const o=new Uint8Array(r.length);for(let e=r.length-1,t=0;e>=0;e--,t++)o[t]=r[e];e.addAll(i.makeValueBuffer(r.length)).addAll(o.buffer)}consumeValue(e,t){const r=o.readFlexInt(e,t),i=r.value;let{length:s}=r;n.default(e.byteLength>=t+s+i,o.NOT_LONG_ENOUGH);const u=new Uint8Array(e,t+s);let f;if(i){f=String(u[0]<<24>>24);for(let e=1;et,i.NOT_LONG_ENOUGH),{value:new Uint8Array(e)[t],length:1}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(13);class s extends a.default{static get _value(){return 18}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(0,t,65536,"Value out of range");const i=new ArrayBuffer(2);new DataView(i).setUint16(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+2,i.NOT_LONG_ENOUGH),{value:new DataView(e).getUint16(t),length:2}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(13);class s extends a.default{static get _value(){return 19}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(0,t,4294967296,"Value out of range");const i=new ArrayBuffer(4);new DataView(i).setUint32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getUint32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(14),a=r(13),s="18446744073709551615";class u extends a.default{static get _value(){return 20}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(!(o.gt(t,s)||o.lt(t,"0")),"Value out of range");const r=o.div(t,o.LONG_UPPER_SHIFT),i=o.sub(t,o.mul(r,o.LONG_UPPER_SHIFT)),a=new ArrayBuffer(8),u=new DataView(a);u.setUint32(0,Number(r)),u.setUint32(4,Number(i)),e.addAll(a)}consumeValue(e,t){n.default(e.byteLength>=t+8,i.NOT_LONG_ENOUGH);const r=new DataView(e,t),a=r.getUint32(0),s=r.getUint32(4);return{value:o.add(o.mul(String(a),o.LONG_UPPER_SHIFT),String(s)),length:8}}}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(14),s=r(13);class u extends s.default{static get _value(){return 21}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(!a.isNegative(t),"Value out of range");const r=[];if(!a.eq(t,"0")){for(;a.ge(t,a.BYTE_SHIFT);){const[e,n]=a.quotientRemainderPositive(t,a.BYTE_SHIFT);r.push(Number(n)),t=e}r.push(Number(t))}const o=new Uint8Array(r.length);for(let e=r.length-1,t=0;e>=0;e--,t++)o[t]=r[e];e.addAll(i.makeValueBuffer(r.length)).addAll(o.buffer)}consumeValue(e,t){const r=o.readFlexInt(e,t),i=r.value;let{length:s}=r;n.default(e.byteLength>=t+s+i,o.NOT_LONG_ENOUGH);const u=new Uint8Array(e,t+s);let f="0";for(let e=0;e>8),s.setUint8(2,o),e.addAll(a)}consumeValue(e,t){n.default(e.byteLength>=t+3,o.NOT_LONG_ENOUGH);const r=new DataView(e,t),a=r.getInt16(0)<<8|r.getUint8(2);return{value:i.fromUTC(a*i.MILLIS_PER_DAY),length:3}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(44),o=r(1),a=r(29);class s extends a.default{static get _value(){return 28}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Date);const r=new ArrayBuffer(4);new DataView(r).setUint32(0,t.getTime()%i.MILLIS_PER_DAY),e.addAll(r)}consumeValue(e,t){return n.default(e.byteLength>=t+4,o.NOT_LONG_ENOUGH),{value:new Date(new DataView(e).getUint32(t)),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(45);class s extends a.default{static get _value(){return 32}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.instanceOf(t,Number);const i=new ArrayBuffer(4);new DataView(i).setFloat32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getFloat32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(45);class s extends a.default{static get _value(){return 33}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.instanceOf(t,Number);const i=new ArrayBuffer(8);new DataView(i).setFloat64(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+8,i.NOT_LONG_ENOUGH),{value:new DataView(e).getFloat64(t),length:8}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(2);class a extends o.default{static get _value(){return 48}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Boolean),e.add(t?255:0)}consumeValue(e,t){return i.readBooleanByte(e,t)}}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(46),a=r(2);class s extends a.default{static get _value(){return 49}constructor(e){super(),n.default.byteUnsignedInteger(e),this.length=e}addToBuffer(e){return!!super.addToBuffer(e)&&(e.add(this.length),!0)}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Array),n.default(t.length===this.length,"Length does not match: expected "+String(this.length)+" but got "+String(t.length)),o.default(e,t)}consumeValue(e,t){return i.readBooleans({buffer:e,offset:t,count:this.length})}equals(e){return super.equals(e)&&e.length===this.length}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(46),s=r(2);class u extends s.default{static get _value(){return 50}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Array),e.addAll(i.makeValueBuffer(t.length)),a.default(e,t)}consumeValue(e,t){const r=o.readFlexInt(e,t);let{length:n}=r;const i=o.readBooleans({buffer:e,offset:t+n,count:r.value}),{value:a}=i;return n+=i.length,{value:a,length:n}}}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(2);class s extends a.default{static get _value(){return 64}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(1===t.length,"String must contain only 1 character"),e.addAll(i.fromString(t))}consumeValue(e,t){n.default(e.byteLength>t,o.NOT_LONG_ENOUGH);const[r]=i.toString(new Uint8Array(e,t).subarray(0,4));return{value:r,length:i.fromString(r).byteLength}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(2);class s extends a.default{static get _value(){return 65}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),e.addAll(i.fromString(t)).add(0)}consumeValue(e,t){const r=new Uint8Array(e,t);let a=0;for(;n.default(r.length>a,o.NOT_LONG_ENOUGH),r[a];a++);const s=i.toString(r.subarray(0,a));return a++,{value:s,length:a}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(2);class s extends a.default{static get _value(){return 66}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,ArrayBuffer),e.addAll(i.makeValueBuffer(t.byteLength)).addAll(t)}consumeValue(e,t){const r=o.readFlexInt(e,t),{length:i}=r,a=i+r.value;return n.default(e.byteLength>=t+a,o.NOT_LONG_ENOUGH),{value:e.slice(t+i,t+a),length:a}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(9),s=r(2),u=r(4);class f extends u.default{constructor({type:e,values:t}){super(),n.default.instanceOf(e,s.default),n.default.instanceOf(t,Array);try{n.default.byteUnsignedInteger(t.length)}catch(e){n.default.fail(String(t.length)+" values is too many")}const r=new Map;for(let o=0;ot,o.NOT_LONG_ENOUGH);const r=new Uint8Array(e)[t],{values:i}=this;return n.default(r in i,"Index "+String(r)+" is invalid"),{value:i[r],length:1}}equals(e){if(!super.equals(e))return!1;const t=e;if(!this.type.equals(t.type))return!1;if(this.values.length!==t.values.length)return!1;const r=t.valueIndices.keys();for(const e of this.valueIndices.keys())if(r.next().value!==e)return!1;return!0}}t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(9),a=r(2),s=r(4);class u extends a.default{constructor(e){super(),n.default.instanceOf(e,Array);try{n.default.byteUnsignedInteger(e.length)}catch(t){n.default.fail(String(e.length)+" types is too many")}for(const t of e)n.default.instanceOf(t,s.default);this.types=e}static get _value(){return 86}addToBuffer(e){if(super.addToBuffer(e)){e.add(this.types.length);for(const t of this.types)t.addToBuffer(e);return!0}return!1}writeValue(e,t){this.isBuffer(e),e.pause();let r=!1;for(let n=0;nt,i.NOT_LONG_ENOUGH);const o=new Uint8Array(e)[t],{value:a,length:s}=this.types[o].consumeValue(e,t+r);return r+=s,{value:a,length:r}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.types.length!==t.types.length)return!1;for(let e=0;et,a.NOT_LONG_ENOUGH);const i=new Uint8Array(e)[t],s=this.indexConstructors.get(i);if(void 0===s)throw new Error("Constructor index "+String(i)+" is invalid");const u=o.get(s.name),{value:f,length:l}=this.constructorTypes[i].type.consumeValue(e,t+r,new u);return r+=l,{value:f,length:r}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.constructorTypes.length!==t.constructorTypes.length)return!1;for(let e=0;e=0,"Offset is negative: "+String(t));const r=new Uint8Array(e);i.default(e.byteLength>t,u.NOT_LONG_ENOUGH);const h=r[t];let y,v=1;const w=d.get(h);if(w)return{value:new w,length:v};switch(h){case c.BooleanTupleType._value:{i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const n=r[t+v];v++,y=new c.BooleanTupleType(n);break}case c.TupleType._value:{const o=n(e,t+v);v+=o.length,i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const a=r[t+v];v++,y=new c.TupleType({type:o.value,length:a});break}case c.StructType._value:{i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const a=r[t+v];v++;const s={};for(let f=0;ft+v,u.NOT_LONG_ENOUGH);const a=r[t+v],f=t+ ++v,l=f+a;i.default(e.byteLength>=l,u.NOT_LONG_ENOUGH);const c=o.toString(r.subarray(f,l));v+=a;const h=n(e,l);s[c]=h.value,v+=h.length}y=new c.StructType(s);break}case c.ArrayType._value:{const r=n(e,t+v);v+=r.length,y=new c.ArrayType(r.value);break}case c.SetType._value:{const r=n(e,t+v);v+=r.length,y=new c.SetType(r.value);break}case c.MapType._value:{const r=n(e,t+v),i=n(e,t+(v+=r.length));v+=i.length,y=new c.MapType(r.value,i.value);break}case c.EnumType._value:{const o=n(e,t+v),a=o.value;v+=o.length,i.default(e.byteLength>t+v,u.NOT_LONG_ENOUGH);const s=r[t+v];v++;const f=new Array(s);for(let r=0;rt+v,u.NOT_LONG_ENOUGH);const o=r[t+v];v++;const a=new Array(o);for(let r=0;rt+v,u.NOT_LONG_ENOUGH);const a=r[t+v];v++;const l=new Map;for(let h=0;ht+v,u.NOT_LONG_ENOUGH);const a=r[t+v],h=t+ ++v,d=h+a;i.default(e.byteLength>=d,u.NOT_LONG_ENOUGH);const p=o.toString(r.subarray(h,d));v+=a;const g=n(e,d);if(!(g.value instanceof c.StructType))throw new Error("Not a StructType: "+f.inspect(g.value));l.set(s.get(p),g.value),v+=g.length}y=new c.NamedChoiceType(l);break}case c.RecursiveType._value:{const r=u.readFlexInt(e,t+v),i=r.value;v+=r.length;let o,a=g.get(e);if(a?o=a.get(i):(a=new Map,g.set(e,a)),void 0===o){do{o="read-type";for(let e=0;e{if(!t.ok)throw new Error("Received status of "+String(t.status));const r=t.headers.get("sig");return o&&o.sig===r?t.arrayBuffer().then(e=>{const t=o.type.readValue(e);return Promise.resolve(t)}):t.arrayBuffer().then(t=>{const i=s._consumeType(t,0),o=i.value,a=o.readValue(t,i.length);return u[e]={sig:r,type:o},n(),Promise.resolve(a)})})},window.sb=t}]); \ No newline at end of file diff --git a/compiled/upload.js b/compiled/upload.js index 5edaa62..cc7b855 100644 --- a/compiled/upload.js +++ b/compiled/upload.js @@ -1,7 +1,7 @@ -!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=109)}([function(e,t,r){"use strict";function n(e,t){t instanceof Array||(t=[t]);for(const r of t)if(e instanceof r||void 0!==e&&null!==e&&e.constructor===r)return;throw new TypeError(l.inspect(e)+" is not an instance of "+t.map(({name:e})=>e).join(" or "))}function i(e){if(n(e,Number),!Number.isSafeInteger(e))throw new RangeError(l.inspect(e)+" is not an integer")}function o(e,t,r,n){if(t=r){const i=String(t)+" is not in ["+String(e)+","+String(r)+")";throw n?new RangeError(n+" ("+i+")"):new RangeError(i)}}function a(e){throw new Error(e)}function s(e,t){e||a(t||"Assertion failed")}function u(e,t){const r=()=>new RangeError("Expected "+l.inspect(t)+" but got "+l.inspect(e));if(t){let n=!0;switch(t.constructor){case Object:if(!e||e.constructor!==Object)throw r();for(const n in t)if({}.hasOwnProperty.call(t,n))try{u(e[n],t[n])}catch(e){throw r()}break;case Array:if(!e||e.constructor!==Array)throw r();try{u(e.length,t.length)}catch(e){throw r()}for(let n=0;nr,t.NOT_LONG_ENOUGH);let o;const a=new Uint8Array(e)[r];switch(a){case 0:case 255:o=Boolean(a);break;default:throw new Error("0x"+n(a.toString(16),2)+" is an invalid Boolean value")}return{value:o,length:1}},t.readBooleans=function({buffer:e,offset:r,count:n}){const a=new Array(n),s=o.modEight(a.length),u=o.dividedByEight(a.length);let f;f=s?u+1:u,i.default(e.byteLength>=r+f,t.NOT_LONG_ENOUGH);const l=new Uint8Array(e,r);for(let e=0;er,t.NOT_LONG_ENOUGH);const n=new Uint8Array(e,r),o=a.getByteCount(n[0]);return i.default(e.byteLength>=r+o,t.NOT_LONG_ENOUGH),{value:a.readValueBuffer(n.slice(0,o).buffer),length:o}},t.readLong=function(e,r){i.default(e.byteLength>=r+8,t.NOT_LONG_ENOUGH);const n=new DataView(e,r),o=n.getInt32(0),a=n.getUint32(4);return{value:s.add(s.mul(String(o),s.LONG_UPPER_SHIFT),String(a)),length:8}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4);class i extends n.default{}t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=new Map;{let e=0,t=1;for(;e<=Number.MAX_SAFE_INTEGER;)e+=function(e){const t=7*e;return Math.pow(2,t)}(t),i.set(t,e),t++}const o=new Map,a=new Map;{let e=-256;for(const t of i.keys())a.set(t,255&e),o.set(t-1,t),e>>=1}t.makeValueBuffer=function(e){n.default.integer(e),n.default(e>=0,String(e)+" is negative");const t=(()=>{for(const[t,r]of i)if(e=0;r--)o[r]=255&e,e=Math.floor(e/256)}return o[0]|=a.get(t),o.buffer},t.getByteCount=function(e){const t=Math.clz32(~e<<24),r=o.get(t);return n.default(void 0!==r,"Invalid number of bytes"),r},t.readValueBuffer=function(e){n.default.instanceOf(e,ArrayBuffer);const t=e.byteLength;n.default(t>0,"Empty flex int buffer");const r=new Uint8Array(e),o=(()=>{let e=r[0]^a.get(t);for(let n=1;n{if(e&&e.constructor===String){const t=Number(e);if(!isNaN(t)||"NaN"===e)return t}})},function(e,t,r){"use strict";(function(e){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function g(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,r);case"utf8":case"utf-8":return B(this,t,r);case"ascii":return R(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:w(e,t,r,n,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,n,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}var f;if(i){var l=-1;for(f=r;fs&&(r=s-u),f=r;f>=0;f--){for(var c=!0,h=0;hi&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=r){var u,f,l,c;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(u=e[i+1]))&&(c=(31&o)<<6|63&u)>127&&(a=c);break;case 3:u=e[i+1],f=e[i+2],128==(192&u)&&128==(192&f)&&(c=(15&o)<<12|(63&u)<<6|63&f)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:u=e[i+1],f=e[i+2],l=e[i+3],128==(192&u)&&128==(192&f)&&128==(192&l)&&(c=(15&o)<<18|(63&u)<<12|(63&f)<<6|63&l)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return x(n)}function x(e){var t=e.length;if(t<=J)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,r,n,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function I(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,i){return i||j(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(e,t,r,n,23,4),r+4}function V(e,t,r,n,i){return i||j(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(e,t,r,n,52,8),r+8}function D(e){if((e=q(e).replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function z(e){return $.toByteArray(D(e))}function W(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function X(e){return e!==e}/*! +!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=109)}([function(e,t,r){"use strict";function n(e,t){t instanceof Array||(t=[t]);for(const r of t)if(e instanceof r||void 0!==e&&null!==e&&e.constructor===r)return;throw new TypeError(l.inspect(e)+" is not an instance of "+t.map(({name:e})=>e).join(" or "))}function i(e){if(n(e,Number),!Number.isSafeInteger(e))throw new RangeError(l.inspect(e)+" is not an integer")}function o(e,t,r,n){if(t=r){const i=String(t)+" is not in ["+String(e)+","+String(r)+")";throw n?new RangeError(n+" ("+i+")"):new RangeError(i)}}function a(e){throw new Error(e)}function s(e,t){e||a(t||"Assertion failed")}function u(e,t){const r=()=>new RangeError("Expected "+l.inspect(t)+" but got "+l.inspect(e));if(t){let n=!0;switch(t.constructor){case Object:if(!e||e.constructor!==Object)throw r();for(const n in t)if({}.hasOwnProperty.call(t,n))try{u(e[n],t[n])}catch(e){throw r()}break;case Array:if(!e||e.constructor!==Array)throw r();try{u(e.length,t.length)}catch(e){throw r()}for(let n=0;nr,t.NOT_LONG_ENOUGH);let o;const a=new Uint8Array(e)[r];switch(a){case 0:case 255:o=Boolean(a);break;default:throw new Error("0x"+n(a.toString(16),2)+" is an invalid Boolean value")}return{value:o,length:1}},t.readBooleans=function({buffer:e,offset:r,count:n}){const a=new Array(n),s=o.modEight(a.length),u=o.dividedByEight(a.length);let f;f=s?u+1:u,i.default(e.byteLength>=r+f,t.NOT_LONG_ENOUGH);const l=new Uint8Array(e,r);for(let e=0;er,t.NOT_LONG_ENOUGH);const n=new Uint8Array(e,r),o=a.getByteCount(n[0]);return i.default(e.byteLength>=r+o,t.NOT_LONG_ENOUGH),{value:a.readValueBuffer(n.slice(0,o).buffer),length:o}},t.readLong=function(e,r){i.default(e.byteLength>=r+8,t.NOT_LONG_ENOUGH);const n=new DataView(e,r),o=n.getInt32(0),a=n.getUint32(4);return{value:s.add(s.mul(String(o),s.LONG_UPPER_SHIFT),String(a)),length:8}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(4);class i extends n.default{}t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=new Map;{let e=0,t=1;for(;e<=Number.MAX_SAFE_INTEGER;)e+=function(e){const t=7*e;return Math.pow(2,t)}(t),i.set(t,e),t++}const o=new Map,a=new Map;{let e=-256;for(const t of i.keys())a.set(t,255&e),o.set(t-1,t),e>>=1}t.makeValueBuffer=function(e){n.default.integer(e),n.default(e>=0,String(e)+" is negative");const t=(()=>{for(const[t,r]of i)if(e=0;r--)o[r]=255&e,e=Math.floor(e/256)}return o[0]|=a.get(t),o.buffer},t.getByteCount=function(e){const t=Math.clz32(~e<<24),r=o.get(t);return n.default(void 0!==r,"Invalid number of bytes"),r},t.readValueBuffer=function(e){n.default.instanceOf(e,ArrayBuffer);const t=e.byteLength;n.default(t>0,"Empty flex int buffer");const r=new Uint8Array(e),o=(()=>{let e=r[0]^a.get(t);for(let n=1;n{if(e&&e.constructor===String){const t=Number(e);if(!isNaN(t)||"NaN"===e)return t}})},function(e,t,r){"use strict";(function(e){function n(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function g(e,t){if(o.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return H(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return B(this,t,r);case"ascii":return R(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:w(e,t,r,n,i);if("number"==typeof t)return t&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,n,i){function o(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,r/=2}var f;if(i){var l=-1;for(f=r;fs&&(r=s-u),f=r;f>=0;f--){for(var c=!0,h=0;hi&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a239?4:o>223?3:o>191?2:1;if(i+s<=r){var u,f,l,c;switch(s){case 1:o<128&&(a=o);break;case 2:128==(192&(u=e[i+1]))&&(c=(31&o)<<6|63&u)>127&&(a=c);break;case 3:u=e[i+1],f=e[i+2],128==(192&u)&&128==(192&f)&&(c=(15&o)<<12|(63&u)<<6|63&f)>2047&&(c<55296||c>57343)&&(a=c);break;case 4:u=e[i+1],f=e[i+2],l=e[i+3],128==(192&u)&&128==(192&f)&&128==(192&l)&&(c=(15&o)<<18|(63&u)<<12|(63&f)<<6|63&l)>65535&&c<1114112&&(a=c)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return x(n)}function x(e){var t=e.length;if(t<=J)return String.fromCharCode.apply(String,e);for(var r="",n=0;nn)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,r,n,i,a){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function I(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function N(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function j(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,i){return i||j(e,t,r,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(e,t,r,n,23,4),r+4}function V(e,t,r,n,i){return i||j(e,t,r,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(e,t,r,n,52,8),r+8}function D(e){if((e=q(e).replace(Q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function q(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n);return o}function z(e){return $.toByteArray(D(e))}function W(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function X(e){return e!==e}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var $=r(20),K=r(50),Z=r(32);t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:()=>42},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,r){return a(null,e,t,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,r){return u(null,e,t,r)},o.allocUnsafe=function(e){return f(null,e)},o.allocUnsafeSlow=function(e){return f(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},o.prototype.compare=function(e,t,r,n,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,s=r-t,u=Math.min(a,s),f=this.slice(n,i),l=e.slice(t,r),c=0;ci)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return O(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),K.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),K.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),K.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),K.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||k(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);k(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);k(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return V(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return V(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=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),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a"}if(t instanceof Function)return"Function "+t.name;if(o.get(t))return"[Circular]";if(o.set(t,1),t instanceof Set){let e="Set {";const r=t.values();let i=r.next();for(;!i.done;)e+=n(i.value,o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"}"}if(t instanceof Map){let e="Map {";const r=t.entries();let i=r.next();for(;!i.done;)e+=n(i.value[0],o),e+=" => ",e+=n(i.value[1],o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"}"}if(t instanceof Array){let e="[";const r=t[Symbol.iterator]();let i=r.next();for(;!i.done;)e+=n(i.value,o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"]"}if(t.constructor===Object){let e="{";for(const r in t)({}).hasOwnProperty.call(t,r)&&("{"!==e&&(e+=", "),e+=r+": "+n(t[r],o));return o.set(t,o.get(t)-1),e+"}"}const{name:a}=t.constructor,s=(a?a+" ":"")+n(r(t),o);return o.set(t,o.get(t)-1),s}Object.defineProperty(t,"__esModule",{value:!0});const i=new Set([String,Number,Boolean,Date]);t.inspect=function(e){return n(e,new Map)}}).call(t,r(7).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(25),o=4096;t.toString=function(e){n.default.instanceOf(e,Uint8Array);const t=[];for(let r=0;r239?4:n>223?3:n>191?2:1;if(r+o<=e.length){let t,a,s,u;switch(o){case 1:n<128&&(i=n);break;case 2:128==(192&(t=e[r+1]))&&(u=(31&n)<<6|63&t)>127&&(i=u);break;case 3:t=e[r+1],a=e[r+2],128==(192&t)&&128==(192&a)&&(u=(15&n)<<12|(63&t)<<6|63&a)>2047&&(u<55296||u>57343)&&(i=u);break;case 4:t=e[r+1],a=e[r+2],s=e[r+3],128==(192&t)&&128==(192&a)&&128==(192&s)&&(u=(15&n)<<18|(63&t)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(i=u)}}void 0===i?(i=65533,o=1):i>65535&&(i-=65536,t.push(i>>>10&1023|55296),i=56320|1023&i),t.push(i),r+=o}let r="";for(let e=0;e>6).add(128|63&e):e<55296||e>=57344?t.add(224|e>>12).add(128|e>>6&63).add(128|63&e):(e=65536+((1023&e)<<10|1023&e),t.add(240|e>>18).add(128|e>>12&63).add(128|e>>6&63).add(128|63&e))}return t.toBuffer()},t.toBinaryString=function(e){n.default.instanceOf(e,ArrayBuffer);let t="";const r=new Uint8Array(e);for(let e=0;e1)for(var r=1;r=10;)s-=10,i++;0===s?o++:(n=String(s)+T(n,o),o=0)}return i>0&&(n=String(i)+T(n,o)),n}function o(e,t){if(B(e),B(t),v(e)&&v(t))return i(e,t);if(y(e)&&y(t))return b(i(m(e),m(t)));if(d(m(e),m(t))){var r=e;e=t,t=r}var o=n(m(e),m(t));return v(e)?o:b(o)}function a(e,t){return B(e),B(t),o(e,b(t))}function s(e,t){x(e),R(t);for(var r="",n=A(e),i=0,o=0,a=0;a=10;)s-=10,i++;0===s?o++:(r=String(s)+T(r,o),o=0)}return i>0&&(r=String(i)+T(r,o)),0===r.length?"0":r}function u(e,t){x(e),x(t);for(var r="0",n=A(t),o=0;o0;)e+="0",t--;return e}function E(e,t){return B(e),R(t),t>=A(e)?"0":e.charAt(e.length-t-1)}function A(e){return y(e)?e.length-1:e.length}function B(e){P(e,"string")}function x(e){B(e),L(e,v,"isPositive")}function R(e){P(e,"number")}function M(e){if(P(e,"number"),e<0)throw new Error("Expected a positive number: "+e)}function L(e,t,r){if(!t.call(null,e))throw new Error("Condition "+r+" failed for value "+e)}function P(e,t){if(typeof e!==t)throw new Error("Not a "+t+": "+e)}Object.defineProperty(t,"__esModule",{value:!0}),t.subPositive=n,t.add=o,t.sub=a,t.timesDigit=s,t.mulPositive=u,t.mul=f,t.quotientRemainderPositive=l,t.div=function(e,t,r=!1){B(e),B(t);var n=l(m(e),m(t))[0];return w(e,t)||(n=b(n)),!r||c(f(n,t),e)||w(e,t)||(n=a(n,"1")),n},t.eq=c,t.lt=d,t.ge=p,t.gt=g,t.isNegative=y,t.isPositive=v,t.abs=m,t.negate=b;var U=/^(-?)0*([1-9][0-9]*)$/,k=/^0+$/;t.normalize=_,t.LONG_UPPER_SHIFT="4294967296",t.BYTE_SHIFT="256"},function(e,t,r){(t=e.exports=r(37)).Stream=t,t.Readable=t,t.Writable=r(24),t.Duplex=r(8),t.Transform=r(41),t.PassThrough=r(63)},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(t,r(7).Buffer)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;ae.namet.name?1:0)}static get _value(){return 81}addToBuffer(e){if(super.addToBuffer(e)){e.add(this.fields.length);for(const t of this.fields){const{nameBuffer:r}=t;e.add(r.byteLength).addAll(r),t.type.addToBuffer(e)}return!0}return!1}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Object);for(const r of this.fields){const i=t[r.name];try{r.type.writeValue(e,i)}catch(e){throw n.default(void 0!==i,'Value for field "'+r.name+'" missing'),e}}}consumeValue(e,t,r){let n=0;const i=r||o.makeBaseValue(this);for(const r of this.fields){const o=r.type.consumeValue(e,t+n);i[r.name]=o.value,n+=o.length}return{value:i,length:n}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.fields.length!==t.fields.length)return!1;for(let e=0;e0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function o(e,t,r){for(var n,o=[],a=t;a0?f-4:f;var l=0;for(t=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i="",s=[],u=0,f=r-n;uf?f:u+16383));return 1===n?(t=e[r-1],i+=a[t>>2],i+=a[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=a[t>>10],i+=a[t>>4&63],i+=a[t<<2&63],i+="="),s.push(i),s.join("")};for(var a=[],s=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=f.length;l0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var r,i,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],a=r.length,i=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(s=a;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],n(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return a(e,t,r)}var o=r(7),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=i),n(a,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,i){function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){B(t,e)}}function a(e){return k.from(e)}function s(e){return k.isBuffer(e)||e instanceof I}function u(){}function f(e,t){R=R||r(8),e=e||{},this.objectMode=!!e.objectMode,t instanceof R&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){m(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function l(e){if(R=R||r(8),!(j.call(l,this)||this instanceof R))return new l(e);this._writableState=new f(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),U.call(this)}function c(e,t){var r=new Error("write after end");e.emit("error",r),x(t,r)}function h(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),x(n,o),i=!1),i}function d(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=k.from(t,r)),t}function p(e,t,r,n,i,o){if(!r){var a=d(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1?n:x;l.WritableState=f;var L=r(16);L.inherits=r(17);var P={deprecate:r(62)},U=r(38),k=r(23).Buffer,I=i.Uint8Array||function(){},N=r(39);L.inherits(l,U),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:P.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var j;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value(e){return!!j.call(this,e)||e&&e._writableState instanceof f}})):j=function(e){return e instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=s(e)&&!n.objectMode;return o&&!k.isBuffer(e)&&(e=a(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=u),n.ended?c(this,r):(o||h(this,n,e,r))&&(n.pendingcb++,i=p(this,n,o,e,t,r)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},l.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},l.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||A(this,n,r)},Object.defineProperty(l.prototype,"destroyed",{get(){return void 0!==this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}}),l.prototype.destroy=N.destroy,l.prototype._undestroy=N.undestroy,l.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,r(11),r(60).setImmediate,r(5))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=10;class o{constructor(e=i){try{n.default.integer(e),n.default(e>=0)}catch(t){throw new RangeError(String(e)+" is not a valid buffer length")}this.buffer=new ArrayBuffer(e),this.size=0,this.commitedSize=null}get length(){return this.size}grow(e){if(n.default.integer(e),e>this.buffer.byteLength){const t=new ArrayBuffer(e<<1);new Uint8Array(t).set(new Uint8Array(this.buffer).subarray(0,this.size)),this.buffer=t}return this}add(e){return n.default.integer(e),n.default.between(0,e,256,"Not a byte: "+String(e)),this.addAll(new Uint8Array([e]).buffer)}addAll(e){n.default.instanceOf(e,ArrayBuffer);const t=this.size,r=this.size+e.byteLength;return this.grow(r),this.size=r,new Uint8Array(this.buffer).set(new Uint8Array(e),t),this}get rawBuffer(){return this.buffer}toBuffer(){let e;return e=null===this.commitedSize?this.size:this.commitedSize,this.buffer.slice(0,e)}pause(){return n.default(null===this.commitedSize,"Already paused"),this.commitedSize=this.size,this}resume(){return n.default(null!==this.commitedSize,"Was not paused"),this.commitedSize=null,this}reset(){if(null===this.commitedSize)throw new Error("Was not paused");return this.size=this.commitedSize,this}}t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(2),s=r(4);class u extends a.default{constructor(e,t){super(),n.default.instanceOf(e,s.default),n.default.instanceOf(t,s.default),this.keyType=e,this.valueType=t}static get _value(){return 84}addToBuffer(e){return!!super.addToBuffer(e)&&(this.keyType.addToBuffer(e),this.valueType.addToBuffer(e),!0)}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Map),e.addAll(i.makeValueBuffer(t.size));for(const[r,n]of t)this.keyType.writeValue(e,r),this.valueType.writeValue(e,n)}consumeValue(e,t,r){const n=o.readFlexInt(e,t);let{length:i}=n;const a=r||o.makeBaseValue(this);for(let r=0;r>>3},t.modEight=function(e){return 7&e},t.timesEight=function(e){return e<<3}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3);t.default=(({type:e,buffer:t,value:r,length:i})=>{t.addAll(n.makeValueBuffer(i));for(const n of r)e.writeValue(t,n)})},function(e,t,r){(function(e){function r(){if(void 0!==o)return o;if(e.XMLHttpRequest){o=new e.XMLHttpRequest;try{o.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){o=null}}else o=null;return o}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}t.fetch=i(e.fetch)&&i(e.ReadableStream),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var o,a=void 0!==e.ArrayBuffer,s=a&&i(e.ArrayBuffer.prototype.slice);t.arraybuffer=t.fetch||a&&n("arraybuffer"),t.msstream=!t.fetch&&s&&n("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&a&&n("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&i(r().overrideMimeType),t.vbArray=i(e.VBArray),o=null}).call(t,r(5))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";(function(t,n){function i(e){return j.from(e)}function o(e){return j.isBuffer(e)||e instanceof C}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?k(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function s(e,t){U=U||r(8),e=e||{},this.objectMode=!!e.objectMode,t instanceof U&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(F||(F=r(40).StringDecoder),this.decoder=new F(e.encoding),this.encoding=e.encoding)}function u(e){if(U=U||r(8),!(this instanceof u))return new u(e);this._readableState=new s(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),N.call(this)}function f(e,t,r,n,o){var a=e._readableState;if(null===t)a.reading=!1,g(e,a);else{var s;o||(s=c(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===j.prototype||(t=i(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):l(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?l(e,a,t,!1):m(e,a)):l(e,a,t,!1))):n||(a.reading=!1)}return h(a)}function l(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&y(e)),m(e,t)}function c(e,t){var r;return o(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function h(e){return!e.ended&&(e.needReadable||e.length=z?e=z:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function p(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=d(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function g(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,y(e)}}function y(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(q("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?P(v,e):v(e))}function v(e){q("emit readable"),e.emit("readable"),S(e)}function m(e,t){t.readingMore||(t.readingMore=!0,P(w,e,t))}function w(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=A(e,t.buffer,t.decoder),r}function A(e,t,r){var n;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}function x(e,t){var r=j.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,P(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return q("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):y(this),null;if(0===(e=p(e,t))&&t.ended)return 0===t.length&&R(this),null;var n=t.needReadable;q("need readable",n),(0===t.length||t.length-e0?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&R(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(e,t){function r(e,t){q("onunpipe"),e===h&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function i(){q("onend"),e.end()}function o(){q("cleanup"),e.removeListener("close",f),e.removeListener("finish",l),e.removeListener("drain",g),e.removeListener("error",u),e.removeListener("unpipe",r),h.removeListener("end",i),h.removeListener("end",c),h.removeListener("data",s),y=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||g()}function s(t){q("ondata"),v=!1,!1!==e.write(t)||v||((1===d.pipesCount&&d.pipes===e||d.pipesCount>1&&-1!==L(d.pipes,e))&&!y&&(q("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,v=!0),h.pause())}function u(t){q("onerror",t),c(),e.removeListener("error",u),0===I(e,"error")&&e.emit("error",t)}function f(){e.removeListener("finish",l),c()}function l(){q("onfinish"),e.removeListener("close",f),c()}function c(){q("unpipe"),h.unpipe(e)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=e;break;case 1:d.pipes=[d.pipes,e];break;default:d.pipes.push(e)}d.pipesCount+=1,q("pipe count=%d opts=%j",d.pipesCount,t);var p=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?i:c;d.endEmitted?P(p):h.once("end",p),e.on("unpipe",r);var g=b(h);e.on("drain",g);var y=!1,v=!1;return h.on("data",s),a(e,"error",u),e.once("close",f),e.once("finish",l),e.emit("pipe",h),d.flowing||(q("pipe resume"),h.resume()),e},u.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived);var n=(t+=e.toString(this.encoding,0,n)).length-1,i=t.charCodeAt(n);if(i>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,n)}return t},f.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},f.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},function(e,t,r){"use strict";function n(e){this.afterTransform=function(t,r){return i(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&e.push(r),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length{n.default.instanceOf(t,String),n.default(!(i.gt(t,"9223372036854775807")||i.lt(t,"-9223372036854775808")),"Value out of range");const r=i.div(t,i.LONG_UPPER_SHIFT,!0),o=i.sub(t,i.mul(r,i.LONG_UPPER_SHIFT)),a=new ArrayBuffer(8),s=new DataView(a);s.setInt32(0,Number(r)),s.setUint32(4,Number(o)),e.addAll(a)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MILLIS_PER_DAY=864e5;const n=6e4;t.toUTC=function(e){return e.getTime()-e.getTimezoneOffset()*n},t.fromUTC=function(e){const t=new Date(e);return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2);class i extends n.default{}t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(33);t.default=((e,t)=>{n.default.instanceOf(t,Array);e:for(let r=0;;r++){let o=0;for(let a=0;a<8;a++){const s=i.timesEight(r)|a;if(s===t.length){a&&e.add(o);break e}const u=t[s];n.default.instanceOf(u,Boolean),u&&(o|=1<<7-a)}e.add(o)}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(51);t.ByteType=n.default;var i=r(80);t.ShortType=i.default;var o=r(81);t.IntType=o.default;var a=r(82);t.LongType=a.default;var s=r(83);t.BigIntType=s.default;var u=r(84);t.FlexIntType=u.default;var f=r(85);t.UnsignedByteType=f.default;var l=r(86);t.UnsignedShortType=l.default;var c=r(87);t.UnsignedIntType=c.default;var h=r(88);t.UnsignedLongType=h.default;var d=r(89);t.BigUnsignedIntType=d.default;var p=r(90);t.FlexUnsignedIntType=p.default;var g=r(91);t.DateType=g.default;var y=r(92);t.DayType=y.default;var v=r(93);t.TimeType=v.default;var m=r(94);t.FloatType=m.default;var w=r(95);t.DoubleType=w.default;var b=r(96);t.BooleanType=b.default;var _=r(97);t.BooleanTupleType=_.default;var O=r(98);t.BooleanArrayType=O.default;var T=r(99);t.CharType=T.default;var S=r(100);t.StringType=S.default;var E=r(101);t.OctetsType=E.default;var A=r(28);t.TupleType=A.default;var B=r(19);t.StructType=B.default;var x=r(21);t.ArrayType=x.default;var R=r(27);t.SetType=R.default;var M=r(26);t.MapType=M.default;var L=r(102);t.EnumType=L.default;var P=r(103);t.ChoiceType=P.default;var U=r(104);t.NamedChoiceType=U.default;var k=r(105);t.RecursiveType=k.default;var I=r(106);t.OptionalType=I.default;var N=r(107);t.PointerType=N.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REPEATED_TYPE=255},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new Map;t.get=function(e){const t=n.get(e);if(t)return t;{const t={[e]:class{}}[e];return n.set(e,t),t}}},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,l=-7,c=r?i-1:0,h=r?-1:1,d=e[t+c];for(c+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+c],c+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+c],c+=h,l-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,f=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+c>=1?h/u:h*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=l?(s=0,a=l):a+c>=1?(s=(t*u-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,f-=8);e[r+d-p]|=128*g}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(12);class s extends a.default{static get _value(){return 1}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(-128,t,128,"Value out of range"),e.addAll(new Int8Array([t]).buffer)}consumeValue(e,t){return n.default(e.byteLength>t,i.NOT_LONG_ENOUGH),{value:new Int8Array(e)[t],length:1}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=(e,t)=>e>>>t|e<<32-t;t.default=(e=>{const t=e.byteLength,r=8*t;n.default(r===new Uint32Array([0|r])[0],"Bit length does not fit in a 32-bit integer");const a=t+(64-(t+72&63))+8,s=new ArrayBuffer(a),u=new Uint8Array(s);u.set(new Uint8Array(e)),u[t]=128,new DataView(s).setUint32(a-4,r);const f=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);for(let e=0;e>>3,i=t[e-2],a=o(i,17)^o(i,19)^i>>>10;t[e]=t[e-16]+n+t[e-7]+a}const n=f.slice();for(let e=0;e<64;e++){const r=n[0],a=n[1],s=n[2],u=n[4],f=n[5],l=n[6],c=o(u,6)^o(u,11)^o(u,25),h=u&f^~u&l,d=n[7]+c+h+i[e]+t[e],p=(o(r,2)^o(r,13)^o(r,22))+(r&a^r&s^a&s);n[7]=l,n[6]=f,n[5]=u,n[4]=n[3]+d,n[3]=s,n[2]=a,n[1]=r,n[0]=d+p}for(let e=0;e<8;e++)f[e]+=n[e]}const l=new ArrayBuffer(32),c=new DataView(l);for(let e=0;e<8;e++)c.setUint32(e<<2,f[e]);return l})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(20),i=new ArrayBuffer(2);new DataView(i).setUint16(0,12),t.VERSION_STRING=n.fromByteArray(new Uint8Array(i))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const n=r(55),i=r(74),o=r(0),a=r(25),s=[i.Writable,i.Duplex,n.OutgoingMessage];class u{constructor(e){o.default.instanceOf(e,s),this.outStream=e,this.writtenBytes=0,this.paused=null}add(e){return o.default.integer(e),o.default.between(0,e,256,"Not a byte: "+String(e)),this.addAll(new Uint8Array([e]).buffer)}addAll(t){return o.default.instanceOf(t,ArrayBuffer),this.paused?this.paused.addAll(t):this.outStream.write(e.from(t)),this.writtenBytes+=t.byteLength,this}end(){this.outStream.end()}get length(){return this.writtenBytes}pause(){return o.default(null===this.paused,"Already paused"),this.paused=new a.default,this}resume(){if(!this.paused)throw new Error("Was not paused");const{length:t}=this.paused;return this.outStream.write(e.from(this.paused.rawBuffer,0,t)),this.paused=null,this}reset(){if(!this.paused)throw new Error("Was not paused");return this.writtenBytes-=this.paused.length,this.paused=new a.default,this}}t.default=u}).call(t,r(7).Buffer)},function(e,t,r){(function(e){var n=r(56),i=r(65),o=r(66),a=r(67),s=t;s.request=function(t,r){t="string"==typeof t?a.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",s=t.protocol||o,u=t.hostname||t.host,f=t.port,l=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?s+"//"+u:"")+(f?":"+f:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var c=new n(t);return r&&c.on("response",r),c},s.get=function(e,t){var r=s.request(e,t);return r.end(),r},s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.STATUS_CODES=o,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(t,r(5))},function(e,t,r){(function(t,n,i){function o(e,t){return s.fetch&&t?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&e?"arraybuffer":s.vbArray&&e?"text:vbarray":"text"}function a(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}var s=r(35),u=r(36),f=r(57),l=r(15),c=r(64),h=f.IncomingMessage,d=f.readyStates,p=e.exports=function(e){var r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var n,i=!0;if("disable-fetch"===e.mode||"timeout"in e)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!s.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=o(n,i),r.on("finish",function(){r._onFinish()})};u(p,l.Writable),p.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===g.indexOf(n)&&(r._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var r=e._opts,o=e._headers,a=null;"GET"!==r.method&&"HEAD"!==r.method&&(a=s.blobConstructor?new n.Blob(e._body.map(function(e){return c(e)}),{type:(o["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(o).forEach(function(e){var t=o[e].name,r=o[e].value;Array.isArray(r)?r.forEach(function(e){u.push([t,e])}):u.push([t,r])}),"fetch"===e._mode)n.fetch(e._opts.url,{method:e._opts.method,headers:u,body:a||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)});else{var f=e._xhr=new n.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!r.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"timeout"in r&&(f.timeout=r.timeout,f.ontimeout=function(){e.emit("timeout")}),u.forEach(function(e){f.setRequestHeader(e[0],e[1])}),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(a)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}}}},p.prototype._onXHRProgress=function(){var e=this;a(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new h(e._xhr,e._fetchResponse,e._mode),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,r){this._body.push(e),r()},p.prototype.abort=p.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},p.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(n,e,t,r)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(t,r(7).Buffer,r(5),r(11))},function(e,t,r){(function(e,n,i){var o=r(35),a=r(36),s=r(15),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=t.IncomingMessage=function(t,r,i){var a=this;if(s.Readable.call(a),a._mode=i,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){e.nextTick(function(){a.emit("close")})}),"fetch"===i){a._fetchResponse=r,a.url=r.url,a.statusCode=r.status,a.statusMessage=r.statusText,r.headers.forEach(function(e,t){a.headers[t.toLowerCase()]=e,a.rawHeaders.push(t,e)});var u=r.body.getReader();function f(){u.read().then(function(e){a._destroyed||(e.done?a.push(null):(a.push(new n(e.value)),f()))}).catch(function(e){a.emit("error",e)})}f()}else if(a._xhr=t,a._pos=0,a.url=t.responseURL,a.statusCode=t.status,a.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===a.headers[r]&&(a.headers[r]=[]),a.headers[r].push(t[2])):void 0!==a.headers[r]?a.headers[r]+=", "+t[2]:a.headers[r]=t[2],a.rawHeaders.push(t[1],t[2])}}),a._charset="x-user-defined",!o.overrideMimeType){var l=a.rawHeaders["mime-type"];if(l){var c=l.match(/;\s*charset=([^;])(;|$)/);c&&(a._charset=c[1].toLowerCase())}a._charset||(a._charset="utf-8")}};a(f,s.Readable),f.prototype._read=function(){},f.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==r){e.push(new n(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new n(o.length),s=0;se._pos&&(e.push(new n(new Uint8Array(f.result.slice(e._pos)))),e._pos=f.result.byteLength)},f.onload=function(){e.push(null)},f.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(t,r(11),r(7).Buffer,r(5))},function(e,t){},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){e.copy(t,r)}var o=r(23).Buffer;e.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),r=this.head,n=0;r;)i(r.data,t,n),n+=r.data.length,r=r.next;return t},e}()},function(e,t,r){function n(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new n(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new n(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(61),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,r){(function(e,t){!function(e,r){"use strict";function n(e){delete u[e]}function i(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}function o(e){if(f)setTimeout(o,0,e);else{var t=u[e];if(t){f=!0;try{i(t)}finally{n(e),f=!1}}}}if(!e.setImmediate){var a,s=1,u={},f=!1,l=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?a=function(e){t.nextTick(function(){o(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&o(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),a=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){o(e.data)},a=function(t){e.port2.postMessage(t)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var e=l.documentElement;a=function(t){var r=l.createElement("script");r.onreadystatechange=function(){o(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():a=function(e){setTimeout(o,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),h=["'"].concat(c),d=["%","/","?",";","#"].concat(h),p=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(71);n.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=-1!==n&&n127?k+="x":k+=U[I];if(!k.match(g)){var j=L.slice(0,A),C=L.slice(A+1),V=U.match(y);V&&(j.push(V[1]),C.unshift(V[2])),C.length&&(c="/"+C.join(".")+c),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=o.toASCII(this.hostname));var D=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+D,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==c[0]&&(c="/"+c))}if(!v[T])for(var A=0,P=h.length;A0)&&r.host.split("@"))&&(r.auth=M.shift(),r.host=r.hostname=M.shift())),r.search=e.search,r.query=e.query,a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!O.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=O.slice(-1)[0],A=(r.host||e.host||O.length>1)&&("."===E||".."===E)||""===E,B=0,x=O.length;x>=0;x--)"."===(E=O[x])?O.splice(x,1):".."===E?(O.splice(x,1),B++):B&&(O.splice(x,1),B--);if(!b&&!_)for(;B--;B)O.unshift("..");!b||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),A&&"/"!==O.join("/").substr(-1)&&O.push("");var R=""===O[0]||O[0]&&"/"===O[0].charAt(0);if(S){r.hostname=r.host=R?"":O.length?O.shift():"";var M=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");M&&(r.auth=M.shift(),r.host=r.hostname=M.shift())}return(b=b||r.host&&O.length)&&!R&&O.unshift(""),O.length?r.pathname=O.join("/"):(r.pathname=null,r.path=null),a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;!function(o){function a(e){throw new RangeError(M[e])}function s(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function u(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+s((e=e.replace(R,".")).split("."),t).join(".")}function f(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=U((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=U(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:w}function h(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,r){var n=0;for(e=r?P(e/T):e>>1,e+=P(e/t);e>L*_>>1;n+=w)e=P(e/L);return P(n+(L+1)*e/(e+O))}function p(e){var t,r,n,i,o,s,u,f,h,p,g=[],y=e.length,v=0,O=E,T=S;for((r=e.lastIndexOf(A))<0&&(r=0),n=0;n=128&&a("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=y&&a("invalid-input"),((f=c(e.charCodeAt(i++)))>=w||f>P((m-v)/s))&&a("overflow"),v+=f*s,h=u<=T?b:u>=T+_?_:u-T,!(fP(m/(p=w-h))&&a("overflow"),s*=p;T=d(v-o,t=g.length+1,0==o),P(v/t)>m-O&&a("overflow"),O+=P(v/t),v%=t,g.splice(v++,0,O)}return l(g)}function g(e){var t,r,n,i,o,s,u,l,c,p,g,y,v,O,T,B=[];for(y=(e=f(e)).length,t=E,r=0,o=S,s=0;s=t&&gP((m-r)/(v=n+1))&&a("overflow"),r+=(u-t)*v,t=u,s=0;sm&&a("overflow"),g==t){for(l=r,c=w;p=c<=o?b:c>=o+_?_:c-o,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=w-b,P=Math.floor,U=String.fromCharCode;v={version:"1.4.1",ucs2:{decode:f,encode:l},decode:p,encode:g,toASCII(e){return u(e,function(e){return x.test(e)?"xn--"+g(e):e})},toUnicode(e){return u(e,function(e){return B.test(e)?p(e.slice(4).toLowerCase()):e})}},void 0!==(i=function(){return v}.call(t,r,t,e))&&(e.exports=i)}()}).call(t,r(69)(e),r(5))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";e.exports={isString(e){return"string"==typeof e},isObject(e){return"object"==typeof e&&null!==e},isNull(e){return null===e},isNullOrUndefined(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(72),t.encode=t.stringify=r(73)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var l=0;l=0?(c=g.substr(0,y),h=g.substr(y+1)):(c=g,h=""),d=decodeURIComponent(c),p=decodeURIComponent(h),n(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n=t+2,i.NOT_LONG_ENOUGH),{value:new DataView(e).getInt16(t),length:2}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(12);class s extends a.default{static get _value(){return 3}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(-2147483648,t,2147483648,"Value out of range");const i=new ArrayBuffer(4);new DataView(i).setInt32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getInt32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1),i=r(43),o=r(12);class a extends o.default{static get _value(){return 4}writeValue(e,t){this.isBuffer(e),i.default(e,t)}consumeValue(e,t){return n.readLong(e,t)}}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(14),s=r(12);class u extends s.default{static get _value(){return 5}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),t=a.normalize(t);const r=[];if(!a.eq(t,"0")){for(;a.gt(t,"127")||a.lt(t,"-128");){const e=a.div(t,a.BYTE_SHIFT,!0),n=a.sub(t,a.mul(e,a.BYTE_SHIFT));r.push(Number(n)),t=e}r.push(Number(t))}const o=new Uint8Array(r.length);for(let e=r.length-1,t=0;e>=0;e--,t++)o[t]=r[e];e.addAll(i.makeValueBuffer(r.length)).addAll(o.buffer)}consumeValue(e,t){const r=o.readFlexInt(e,t),i=r.value;let{length:s}=r;n.default(e.byteLength>=t+s+i,o.NOT_LONG_ENOUGH);const u=new Uint8Array(e,t+s);let f;if(i){f=String(u[0]<<24>>24);for(let e=1;et,i.NOT_LONG_ENOUGH),{value:new Uint8Array(e)[t],length:1}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(13);class s extends a.default{static get _value(){return 18}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(0,t,65536,"Value out of range");const i=new ArrayBuffer(2);new DataView(i).setUint16(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+2,i.NOT_LONG_ENOUGH),{value:new DataView(e).getUint16(t),length:2}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(13);class s extends a.default{static get _value(){return 19}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(0,t,4294967296,"Value out of range");const i=new ArrayBuffer(4);new DataView(i).setUint32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getUint32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(14),a=r(13),s="18446744073709551615";class u extends a.default{static get _value(){return 20}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(!(o.gt(t,s)||o.lt(t,"0")),"Value out of range");const r=o.div(t,o.LONG_UPPER_SHIFT),i=o.sub(t,o.mul(r,o.LONG_UPPER_SHIFT)),a=new ArrayBuffer(8),u=new DataView(a);u.setUint32(0,Number(r)),u.setUint32(4,Number(i)),e.addAll(a)}consumeValue(e,t){n.default(e.byteLength>=t+8,i.NOT_LONG_ENOUGH);const r=new DataView(e,t),a=r.getUint32(0),s=r.getUint32(4);return{value:o.add(o.mul(String(a),o.LONG_UPPER_SHIFT),String(s)),length:8}}}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(14),s=r(13);class u extends s.default{static get _value(){return 21}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(!a.isNegative(t),"Value out of range");const r=[];if(!a.eq(t,"0")){for(;a.ge(t,a.BYTE_SHIFT);){const[e,n]=a.quotientRemainderPositive(t,a.BYTE_SHIFT);r.push(Number(n)),t=e}r.push(Number(t))}const o=new Uint8Array(r.length);for(let e=r.length-1,t=0;e>=0;e--,t++)o[t]=r[e];e.addAll(i.makeValueBuffer(r.length)).addAll(o.buffer)}consumeValue(e,t){const r=o.readFlexInt(e,t),i=r.value;let{length:s}=r;n.default(e.byteLength>=t+s+i,o.NOT_LONG_ENOUGH);const u=new Uint8Array(e,t+s);let f="0";for(let e=0;e>8),s.setUint8(2,o),e.addAll(a)}consumeValue(e,t){n.default(e.byteLength>=t+3,o.NOT_LONG_ENOUGH);const r=new DataView(e,t),a=r.getInt16(0)<<8|r.getUint8(2);return{value:i.fromUTC(a*i.MILLIS_PER_DAY),length:3}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(44),o=r(1),a=r(29);class s extends a.default{static get _value(){return 28}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Date);const r=new ArrayBuffer(4);new DataView(r).setUint32(0,t.getTime()%i.MILLIS_PER_DAY),e.addAll(r)}consumeValue(e,t){return n.default(e.byteLength>=t+4,o.NOT_LONG_ENOUGH),{value:new Date(new DataView(e).getUint32(t)),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(45);class s extends a.default{static get _value(){return 32}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.instanceOf(t,Number);const i=new ArrayBuffer(4);new DataView(i).setFloat32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getFloat32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(45);class s extends a.default{static get _value(){return 33}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.instanceOf(t,Number);const i=new ArrayBuffer(8);new DataView(i).setFloat64(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+8,i.NOT_LONG_ENOUGH),{value:new DataView(e).getFloat64(t),length:8}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(2);class a extends o.default{static get _value(){return 48}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Boolean),e.add(t?255:0)}consumeValue(e,t){return i.readBooleanByte(e,t)}}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(46),a=r(2);class s extends a.default{static get _value(){return 49}constructor(e){super(),n.default.byteUnsignedInteger(e),this.length=e}addToBuffer(e){return!!super.addToBuffer(e)&&(e.add(this.length),!0)}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Array),n.default(t.length===this.length,"Length does not match: expected "+String(this.length)+" but got "+String(t.length)),o.default(e,t)}consumeValue(e,t){return i.readBooleans({buffer:e,offset:t,count:this.length})}equals(e){return super.equals(e)&&e.length===this.length}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(46),s=r(2);class u extends s.default{static get _value(){return 50}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Array),e.addAll(i.makeValueBuffer(t.length)),a.default(e,t)}consumeValue(e,t){const r=o.readFlexInt(e,t);let{length:n}=r;const i=o.readBooleans({buffer:e,offset:t+n,count:r.value}),{value:a}=i;return n+=i.length,{value:a,length:n}}}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(2);class s extends a.default{static get _value(){return 64}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(1===t.length,"String must contain only 1 character"),e.addAll(i.fromString(t))}consumeValue(e,t){n.default(e.byteLength>t,o.NOT_LONG_ENOUGH);const[r]=i.toString(new Uint8Array(e,t).subarray(0,4));return{value:r,length:i.fromString(r).byteLength}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(2);class s extends a.default{static get _value(){return 65}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),e.addAll(i.fromString(t)).add(0)}consumeValue(e,t){const r=new Uint8Array(e,t);let a=0;for(;n.default(r.length>a,o.NOT_LONG_ENOUGH),r[a];a++);const s=i.toString(r.subarray(0,a));return a++,{value:s,length:a}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(2);class s extends a.default{static get _value(){return 66}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,ArrayBuffer),e.addAll(i.makeValueBuffer(t.byteLength)).addAll(t)}consumeValue(e,t){const r=o.readFlexInt(e,t),{length:i}=r,a=i+r.value;return n.default(e.byteLength>=t+a,o.NOT_LONG_ENOUGH),{value:e.slice(t+i,t+a),length:a}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(9),s=r(2),u=r(4);class f extends u.default{constructor({type:e,values:t}){super(),n.default.instanceOf(e,s.default),n.default.instanceOf(t,Array);try{n.default.byteUnsignedInteger(t.length)}catch(e){n.default.fail(String(t.length)+" values is too many")}const r=new Map;for(let o=0;ot,o.NOT_LONG_ENOUGH);const r=new Uint8Array(e)[t],{values:i}=this;return n.default(r in i,"Index "+String(r)+" is invalid"),{value:i[r],length:1}}equals(e){if(!super.equals(e))return!1;const t=e;if(!this.type.equals(t.type))return!1;if(this.values.length!==t.values.length)return!1;const r=t.valueIndices.keys();for(const e of this.valueIndices.keys())if(r.next().value!==e)return!1;return!0}}t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(9),a=r(2),s=r(4);class u extends a.default{constructor(e){super(),n.default.instanceOf(e,Array);try{n.default.byteUnsignedInteger(e.length)}catch(t){n.default.fail(String(e.length)+" types is too many")}for(const t of e)n.default.instanceOf(t,s.default);this.types=e}static get _value(){return 86}addToBuffer(e){if(super.addToBuffer(e)){e.add(this.types.length);for(const t of this.types)t.addToBuffer(e);return!0}return!1}writeValue(e,t){this.isBuffer(e),e.pause();let r=!1;for(let n=0;nt,i.NOT_LONG_ENOUGH);const o=new Uint8Array(e)[t],{value:a,length:s}=this.types[o].consumeValue(e,t+r);return r+=s,{value:a,length:r}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.types.length!==t.types.length)return!1;for(let e=0;et,a.NOT_LONG_ENOUGH);const i=new Uint8Array(e)[t],s=this.indexConstructors.get(i);if(void 0===s)throw new Error("Constructor index "+String(i)+" is invalid");const u=o.get(s.name),{value:f,length:l}=this.constructorTypes[i].type.consumeValue(e,t+r,new u);return r+=l,{value:f,length:r}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.constructorTypes.length!==t.constructorTypes.length)return!1;for(let e=0;e42},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),o.poolSize=8192,o._augment=function(e){return e.__proto__=o.prototype,e},o.from=function(e,t,r){return a(null,e,t,r)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(e,t,r){return u(null,e,t,r)},o.allocUnsafe=function(e){return f(null,e)},o.allocUnsafeSlow=function(e){return f(null,e)},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.compare=function(e,t){if(!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},o.prototype.compare=function(e,t,r,n,i){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,s=r-t,u=Math.min(a,s),f=this.slice(n,i),l=e.slice(t,r),c=0;ci)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return _(this,e,t,r);case"ascii":return O(this,e,t,r);case"latin1":case"binary":return T(this,e,t,r);case"base64":return S(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o=i&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),K.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),K.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),K.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),K.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||k(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,255,0),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);k(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);k(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,1,127,-128),o.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),o.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},o.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return V(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return V(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=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),e.length-t=0;--i)e[i+t]=this[i+r];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0);var a;if("number"==typeof e)for(a=t;a"}if(t instanceof Function)return"Function "+t.name;if(o.get(t))return"[Circular]";if(o.set(t,1),t instanceof Set){let e="Set {";const r=t.values();let i=r.next();for(;!i.done;)e+=n(i.value,o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"}"}if(t instanceof Map){let e="Map {";const r=t.entries();let i=r.next();for(;!i.done;)e+=n(i.value[0],o),e+=" => ",e+=n(i.value[1],o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"}"}if(t instanceof Array){let e="[";const r=t[Symbol.iterator]();let i=r.next();for(;!i.done;)e+=n(i.value,o),(i=r.next()).done||(e+=", ");return o.set(t,o.get(t)-1),e+"]"}if(t.constructor===Object){let e="{";for(const r in t)({}).hasOwnProperty.call(t,r)&&("{"!==e&&(e+=", "),e+=r+": "+n(t[r],o));return o.set(t,o.get(t)-1),e+"}"}const{name:a}=t.constructor,s=(a?a+" ":"")+n(r(t),o);return o.set(t,o.get(t)-1),s}Object.defineProperty(t,"__esModule",{value:!0});const i=new Set([String,Number,Boolean,Date]);t.inspect=function(e){return n(e,new Map)}}).call(t,r(7).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(25),o=4096;t.toString=function(e){n.default.instanceOf(e,Uint8Array);const t=[];for(let r=0;r239?4:n>223?3:n>191?2:1;if(r+o<=e.length){let t,a,s,u;switch(o){case 1:n<128&&(i=n);break;case 2:128==(192&(t=e[r+1]))&&(u=(31&n)<<6|63&t)>127&&(i=u);break;case 3:t=e[r+1],a=e[r+2],128==(192&t)&&128==(192&a)&&(u=(15&n)<<12|(63&t)<<6|63&a)>2047&&(u<55296||u>57343)&&(i=u);break;case 4:t=e[r+1],a=e[r+2],s=e[r+3],128==(192&t)&&128==(192&a)&&128==(192&s)&&(u=(15&n)<<18|(63&t)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(i=u)}}void 0===i?(i=65533,o=1):i>65535&&(i-=65536,t.push(i>>>10&1023|55296),i=56320|1023&i),t.push(i),r+=o}let r="";for(let e=0;e>6).add(128|63&e):e<55296||e>=57344?t.add(224|e>>12).add(128|e>>6&63).add(128|63&e):(e=65536+((1023&e)<<10|1023&e),t.add(240|e>>18).add(128|e>>12&63).add(128|e>>6&63).add(128|63&e))}return t.toBuffer()},t.toBinaryString=function(e){n.default.instanceOf(e,ArrayBuffer);let t="";const r=new Uint8Array(e);for(let e=0;e1)for(var r=1;r=10;)s-=10,i++;0===s?o++:(n=String(s)+T(n,o),o=0)}return i>0&&(n=String(i)+T(n,o)),n}function o(e,t){if(B(e),B(t),v(e)&&v(t))return i(e,t);if(y(e)&&y(t))return b(i(m(e),m(t)));if(d(m(e),m(t))){var r=e;e=t,t=r}var o=n(m(e),m(t));return v(e)?o:b(o)}function a(e,t){return B(e),B(t),o(e,b(t))}function s(e,t){x(e),R(t);for(var r="",n=A(e),i=0,o=0,a=0;a=10;)s-=10,i++;0===s?o++:(r=String(s)+T(r,o),o=0)}return i>0&&(r=String(i)+T(r,o)),0===r.length?"0":r}function u(e,t){x(e),x(t);for(var r="0",n=A(t),o=0;o0;)e+="0",t--;return e}function E(e,t){return B(e),R(t),t>=A(e)?"0":e.charAt(e.length-t-1)}function A(e){return y(e)?e.length-1:e.length}function B(e){L(e,"string")}function x(e){B(e),P(e,v,"isPositive")}function R(e){L(e,"number")}function M(e){if(L(e,"number"),e<0)throw new Error("Expected a positive number: "+e)}function P(e,t,r){if(!t.call(null,e))throw new Error("Condition "+r+" failed for value "+e)}function L(e,t){if(typeof e!==t)throw new Error("Not a "+t+": "+e)}Object.defineProperty(t,"__esModule",{value:!0}),t.subPositive=n,t.add=o,t.sub=a,t.timesDigit=s,t.mulPositive=u,t.mul=f,t.quotientRemainderPositive=l,t.div=function(e,t,r=!1){B(e),B(t);var n=l(m(e),m(t))[0];return w(e,t)||(n=b(n)),!r||c(f(n,t),e)||w(e,t)||(n=a(n,"1")),n},t.eq=c,t.lt=d,t.ge=p,t.gt=g,t.isNegative=y,t.isPositive=v,t.abs=m,t.negate=b;var U=/^(-?)0*([1-9][0-9]*)$/,k=/^0+$/;t.normalize=_,t.LONG_UPPER_SHIFT="4294967296",t.BYTE_SHIFT="256"},function(e,t,r){(t=e.exports=r(37)).Stream=t,t.Readable=t,t.Writable=r(24),t.Duplex=r(8),t.Transform=r(41),t.PassThrough=r(63)},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(t,r(7).Buffer)},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports=function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)});case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,i)});default:for(o=new Array(s-1),a=0;ae.namet.name?1:0)}static get _value(){return 81}addToBuffer(e){if(super.addToBuffer(e)){e.add(this.fields.length);for(const t of this.fields){const{nameBuffer:r}=t;e.add(r.byteLength).addAll(r),t.type.addToBuffer(e)}return!0}return!1}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Object);for(const r of this.fields){const i=t[r.name];try{r.type.writeValue(e,i)}catch(e){throw n.default(void 0!==i,'Value for field "'+r.name+'" missing'),e}}}consumeValue(e,t,r){let n=0;const i=r||o.makeBaseValue(this);for(const r of this.fields){const o=r.type.consumeValue(e,t+n);i[r.name]=o.value,n+=o.length}return{value:i,length:n}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.fields.length!==t.fields.length)return!1;for(let e=0;e0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return a[e>>18&63]+a[e>>12&63]+a[e>>6&63]+a[63&e]}function o(e,t,r){for(var n,o=[],a=t;a0?f-4:f;var l=0;for(t=0;t>16&255,a[l++]=i>>8&255,a[l++]=255&i;return 2===o?(i=s[e.charCodeAt(t)]<<2|s[e.charCodeAt(t+1)]>>4,a[l++]=255&i):1===o&&(i=s[e.charCodeAt(t)]<<10|s[e.charCodeAt(t+1)]<<4|s[e.charCodeAt(t+2)]>>2,a[l++]=i>>8&255,a[l++]=255&i),a},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i="",s=[],u=0,f=r-n;uf?f:u+16383));return 1===n?(t=e[r-1],i+=a[t>>2],i+=a[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=a[t>>10],i+=a[t>>4&63],i+=a[t<<2&63],i+="="),s.push(i),s.join("")};for(var a=[],s=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=f.length;l0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var r,i,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],a=r.length,i=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(r)){for(s=a;s-- >0;)if(r[s]===t||r[s].listener&&r[s].listener===t){i=s;break}if(i<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],n(r))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){function n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return a(e,t,r)}var o=r(7),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=o:(n(o,t),t.Buffer=i),n(a,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n,i){function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){B(t,e)}}function a(e){return k.from(e)}function s(e){return k.isBuffer(e)||e instanceof I}function u(){}function f(e,t){R=R||r(8),e=e||{},this.objectMode=!!e.objectMode,t instanceof R&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){m(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function l(e){if(R=R||r(8),!(j.call(l,this)||this instanceof R))return new l(e);this._writableState=new f(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),U.call(this)}function c(e,t){var r=new Error("write after end");e.emit("error",r),x(t,r)}function h(e,t,r,n){var i=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),x(n,o),i=!1),i}function d(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=k.from(t,r)),t}function p(e,t,r,n,i,o){if(!r){var a=d(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length-1?n:x;l.WritableState=f;var P=r(16);P.inherits=r(17);var L={deprecate:r(62)},U=r(38),k=r(23).Buffer,I=i.Uint8Array||function(){},N=r(39);P.inherits(l,U),f.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(f.prototype,"buffer",{get:L.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}();var j;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(l,Symbol.hasInstance,{value(e){return!!j.call(this,e)||e&&e._writableState instanceof f}})):j=function(e){return e instanceof this},l.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},l.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=s(e)&&!n.objectMode;return o&&!k.isBuffer(e)&&(e=a(e)),"function"==typeof t&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=u),n.ended?c(this,r):(o||h(this,n,e,r))&&(n.pendingcb++,i=p(this,n,o,e,t,r)),i},l.prototype.cork=function(){this._writableState.corked++},l.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},l.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},l.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},l.prototype._writev=null,l.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||A(this,n,r)},Object.defineProperty(l.prototype,"destroyed",{get(){return void 0!==this._writableState&&this._writableState.destroyed},set(e){this._writableState&&(this._writableState.destroyed=e)}}),l.prototype.destroy=N.destroy,l.prototype._undestroy=N.undestroy,l.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,r(11),r(60).setImmediate,r(5))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=10;class o{constructor(e=i){try{n.default.integer(e),n.default(e>=0)}catch(t){throw new RangeError(String(e)+" is not a valid buffer length")}this.buffer=new ArrayBuffer(e),this.size=0,this.pausePoints=[]}get length(){return this.size}grow(e){if(n.default.integer(e),e>this.buffer.byteLength){const t=new ArrayBuffer(e<<1);new Uint8Array(t).set(new Uint8Array(this.buffer).subarray(0,this.size)),this.buffer=t}return this}add(e){return n.default.integer(e),n.default.between(0,e,256,"Not a byte: "+String(e)),this.addAll(new Uint8Array([e]).buffer)}addAll(e){n.default.instanceOf(e,ArrayBuffer);const t=this.size,r=this.size+e.byteLength;return this.grow(r),this.size=r,new Uint8Array(this.buffer).set(new Uint8Array(e),t),this}get rawBuffer(){return this.buffer}toBuffer(){let e;return this.pausePoints.length?[e]=this.pausePoints:e=this.size,this.buffer.slice(0,e)}pause(){return this.pausePoints.push(this.size),this}resume(){if(void 0===this.pausePoints.pop())throw new Error("Was not paused");return this}reset(){if(!this.pausePoints.length)throw new Error("Was not paused");const e=this.pausePoints[this.pausePoints.length-1];return this.size=e,this}}t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(2),s=r(4);class u extends a.default{constructor(e,t){super(),n.default.instanceOf(e,s.default),n.default.instanceOf(t,s.default),this.keyType=e,this.valueType=t}static get _value(){return 84}addToBuffer(e){return!!super.addToBuffer(e)&&(this.keyType.addToBuffer(e),this.valueType.addToBuffer(e),!0)}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Map),e.addAll(i.makeValueBuffer(t.size));for(const[r,n]of t)this.keyType.writeValue(e,r),this.valueType.writeValue(e,n)}consumeValue(e,t,r){const n=o.readFlexInt(e,t);let{length:i}=n;const a=r||o.makeBaseValue(this);for(let r=0;r>>3},t.modEight=function(e){return 7&e},t.timesEight=function(e){return e<<3}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3);t.default=(({type:e,buffer:t,value:r,length:i})=>{t.addAll(n.makeValueBuffer(i));for(const n of r)e.writeValue(t,n)})},function(e,t,r){(function(e){function r(){if(void 0!==o)return o;if(e.XMLHttpRequest){o=new e.XMLHttpRequest;try{o.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){o=null}}else o=null;return o}function n(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function i(e){return"function"==typeof e}t.fetch=i(e.fetch)&&i(e.ReadableStream),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var o,a=void 0!==e.ArrayBuffer,s=a&&i(e.ArrayBuffer.prototype.slice);t.arraybuffer=t.fetch||a&&n("arraybuffer"),t.msstream=!t.fetch&&s&&n("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&a&&n("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&i(r().overrideMimeType),t.vbArray=i(e.VBArray),o=null}).call(t,r(5))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";(function(t,n){function i(e){return j.from(e)}function o(e){return j.isBuffer(e)||e instanceof C}function a(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?k(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function s(e,t){U=U||r(8),e=e||{},this.objectMode=!!e.objectMode,t instanceof U&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(F||(F=r(40).StringDecoder),this.decoder=new F(e.encoding),this.encoding=e.encoding)}function u(e){if(U=U||r(8),!(this instanceof u))return new u(e);this._readableState=new s(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),N.call(this)}function f(e,t,r,n,o){var a=e._readableState;if(null===t)a.reading=!1,g(e,a);else{var s;o||(s=c(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===j.prototype||(t=i(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):l(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?l(e,a,t,!1):m(e,a)):l(e,a,t,!1))):n||(a.reading=!1)}return h(a)}function l(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&y(e)),m(e,t)}function c(e,t){var r;return o(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function h(e){return!e.ended&&(e.needReadable||e.length=z?e=z:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function p(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=d(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function g(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,y(e)}}function y(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(q("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?L(v,e):v(e))}function v(e){q("emit readable"),e.emit("readable"),S(e)}function m(e,t){t.readingMore||(t.readingMore=!0,L(w,e,t))}function w(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=A(e,t.buffer,t.decoder),r}function A(e,t,r){var n;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}function x(e,t){var r=j.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),0===(e-=a)){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,L(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function P(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return q("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):y(this),null;if(0===(e=p(e,t))&&t.ended)return 0===t.length&&R(this),null;var n=t.needReadable;q("need readable",n),(0===t.length||t.length-e0?E(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&R(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(e,t){function r(e,t){q("onunpipe"),e===h&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,o())}function i(){q("onend"),e.end()}function o(){q("cleanup"),e.removeListener("close",f),e.removeListener("finish",l),e.removeListener("drain",g),e.removeListener("error",u),e.removeListener("unpipe",r),h.removeListener("end",i),h.removeListener("end",c),h.removeListener("data",s),y=!0,!d.awaitDrain||e._writableState&&!e._writableState.needDrain||g()}function s(t){q("ondata"),v=!1,!1!==e.write(t)||v||((1===d.pipesCount&&d.pipes===e||d.pipesCount>1&&-1!==P(d.pipes,e))&&!y&&(q("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++,v=!0),h.pause())}function u(t){q("onerror",t),c(),e.removeListener("error",u),0===I(e,"error")&&e.emit("error",t)}function f(){e.removeListener("finish",l),c()}function l(){q("onfinish"),e.removeListener("close",f),c()}function c(){q("unpipe"),h.unpipe(e)}var h=this,d=this._readableState;switch(d.pipesCount){case 0:d.pipes=e;break;case 1:d.pipes=[d.pipes,e];break;default:d.pipes.push(e)}d.pipesCount+=1,q("pipe count=%d opts=%j",d.pipesCount,t);var p=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?i:c;d.endEmitted?L(p):h.once("end",p),e.on("unpipe",r);var g=b(h);e.on("drain",g);var y=!1,v=!1;return h.on("data",s),a(e,"error",u),e.once("close",f),e.once("finish",l),e.emit("pipe",h),d.flowing||(q("pipe resume"),h.resume()),e},u.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived=55296&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived);var n=(t+=e.toString(this.encoding,0,n)).length-1,i=t.charCodeAt(n);if(i>=55296&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,n)}return t},f.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},f.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},function(e,t,r){"use strict";function n(e){this.afterTransform=function(t,r){return i(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&e.push(r),i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length{n.default.instanceOf(t,String),n.default(!(i.gt(t,"9223372036854775807")||i.lt(t,"-9223372036854775808")),"Value out of range");const r=i.div(t,i.LONG_UPPER_SHIFT,!0),o=i.sub(t,i.mul(r,i.LONG_UPPER_SHIFT)),a=new ArrayBuffer(8),s=new DataView(a);s.setInt32(0,Number(r)),s.setUint32(4,Number(o)),e.addAll(a)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MILLIS_PER_DAY=864e5;const n=6e4;t.toUTC=function(e){return e.getTime()-e.getTimezoneOffset()*n},t.fromUTC=function(e){const t=new Date(e);return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(2);class i extends n.default{}t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(33);t.default=((e,t)=>{n.default.instanceOf(t,Array);e:for(let r=0;;r++){let o=0;for(let a=0;a<8;a++){const s=i.timesEight(r)|a;if(s===t.length){a&&e.add(o);break e}const u=t[s];n.default.instanceOf(u,Boolean),u&&(o|=1<<7-a)}e.add(o)}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(51);t.ByteType=n.default;var i=r(80);t.ShortType=i.default;var o=r(81);t.IntType=o.default;var a=r(82);t.LongType=a.default;var s=r(83);t.BigIntType=s.default;var u=r(84);t.FlexIntType=u.default;var f=r(85);t.UnsignedByteType=f.default;var l=r(86);t.UnsignedShortType=l.default;var c=r(87);t.UnsignedIntType=c.default;var h=r(88);t.UnsignedLongType=h.default;var d=r(89);t.BigUnsignedIntType=d.default;var p=r(90);t.FlexUnsignedIntType=p.default;var g=r(91);t.DateType=g.default;var y=r(92);t.DayType=y.default;var v=r(93);t.TimeType=v.default;var m=r(94);t.FloatType=m.default;var w=r(95);t.DoubleType=w.default;var b=r(96);t.BooleanType=b.default;var _=r(97);t.BooleanTupleType=_.default;var O=r(98);t.BooleanArrayType=O.default;var T=r(99);t.CharType=T.default;var S=r(100);t.StringType=S.default;var E=r(101);t.OctetsType=E.default;var A=r(28);t.TupleType=A.default;var B=r(19);t.StructType=B.default;var x=r(21);t.ArrayType=x.default;var R=r(27);t.SetType=R.default;var M=r(26);t.MapType=M.default;var P=r(102);t.EnumType=P.default;var L=r(103);t.ChoiceType=L.default;var U=r(104);t.NamedChoiceType=U.default;var k=r(105);t.RecursiveType=k.default;var I=r(106);t.OptionalType=I.default;var N=r(107);t.PointerType=N.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REPEATED_TYPE=255},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=new Map;t.get=function(e){const t=n.get(e);if(t)return t;{const t={[e]:class{}}[e];return n.set(e,t),t}}},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,l=-7,c=r?i-1:0,h=r?-1:1,d=e[t+c];for(c+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+c],c+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+c],c+=h,l-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=f}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,f=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+c>=1?h/u:h*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=l?(s=0,a=l):a+c>=1?(s=(t*u-1)*Math.pow(2,i),a+=c):(s=t*Math.pow(2,c-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,f-=8);e[r+d-p]|=128*g}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(12);class s extends a.default{static get _value(){return 1}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(-128,t,128,"Value out of range"),e.addAll(new Int8Array([t]).buffer)}consumeValue(e,t){return n.default(e.byteLength>t,i.NOT_LONG_ENOUGH),{value:new Int8Array(e)[t],length:1}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),o=(e,t)=>e>>>t|e<<32-t;t.default=(e=>{const t=e.byteLength,r=8*t;n.default(r===new Uint32Array([0|r])[0],"Bit length does not fit in a 32-bit integer");const a=t+(64-(t+72&63))+8,s=new ArrayBuffer(a),u=new Uint8Array(s);u.set(new Uint8Array(e)),u[t]=128,new DataView(s).setUint32(a-4,r);const f=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);for(let e=0;e>>3,i=t[e-2],a=o(i,17)^o(i,19)^i>>>10;t[e]=t[e-16]+n+t[e-7]+a}const n=f.slice();for(let e=0;e<64;e++){const r=n[0],a=n[1],s=n[2],u=n[4],f=n[5],l=n[6],c=o(u,6)^o(u,11)^o(u,25),h=u&f^~u&l,d=n[7]+c+h+i[e]+t[e],p=(o(r,2)^o(r,13)^o(r,22))+(r&a^r&s^a&s);n[7]=l,n[6]=f,n[5]=u,n[4]=n[3]+d,n[3]=s,n[2]=a,n[1]=r,n[0]=d+p}for(let e=0;e<8;e++)f[e]+=n[e]}const l=new ArrayBuffer(32),c=new DataView(l);for(let e=0;e<8;e++)c.setUint32(e<<2,f[e]);return l})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(20),i=new ArrayBuffer(2);new DataView(i).setUint16(0,12),t.VERSION_STRING=n.fromByteArray(new Uint8Array(i))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const n=r(55),i=r(74),o=r(0),a=r(25),s=[i.Writable,i.Duplex,n.OutgoingMessage];class u{constructor(e){o.default.instanceOf(e,s),this.outStream=e,this.writtenBytes=0,this.pauseCount=0,this.paused=new a.default}add(e){return o.default.integer(e),o.default.between(0,e,256,"Not a byte: "+String(e)),this.addAll(new Uint8Array([e]).buffer)}addAll(t){return o.default.instanceOf(t,ArrayBuffer),this.pauseCount?this.paused.addAll(t):this.outStream.write(e.from(t)),this.writtenBytes+=t.byteLength,this}end(){this.outStream.end()}get length(){return this.writtenBytes}pause(){return this.paused.pause(),this.pauseCount++,this}resume(){if(!this.pauseCount)throw new Error("Was not paused");return--this.pauseCount?this.paused.resume():(this.outStream.write(e.from(this.paused.rawBuffer,0,this.paused.length)),this.paused=new a.default),this}reset(){if(!this.pauseCount)throw new Error("Was not paused");const e=this.paused.length;this.paused.reset();const t=this.paused.length;return this.writtenBytes-=e-t,this}}t.default=u}).call(t,r(7).Buffer)},function(e,t,r){(function(e){var n=r(56),i=r(65),o=r(66),a=r(67),s=t;s.request=function(t,r){t="string"==typeof t?a.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",s=t.protocol||o,u=t.hostname||t.host,f=t.port,l=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?s+"//"+u:"")+(f?":"+f:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var c=new n(t);return r&&c.on("response",r),c},s.get=function(e,t){var r=s.request(e,t);return r.end(),r},s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.STATUS_CODES=o,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(t,r(5))},function(e,t,r){(function(t,n,i){function o(e,t){return s.fetch&&t?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&e?"arraybuffer":s.vbArray&&e?"text:vbarray":"text"}function a(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}var s=r(35),u=r(36),f=r(57),l=r(15),c=r(64),h=f.IncomingMessage,d=f.readyStates,p=e.exports=function(e){var r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var n,i=!0;if("disable-fetch"===e.mode||"timeout"in e)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!s.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=o(n,i),r.on("finish",function(){r._onFinish()})};u(p,l.Writable),p.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===g.indexOf(n)&&(r._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var r=e._opts,o=e._headers,a=null;"GET"!==r.method&&"HEAD"!==r.method&&(a=s.blobConstructor?new n.Blob(e._body.map(function(e){return c(e)}),{type:(o["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(o).forEach(function(e){var t=o[e].name,r=o[e].value;Array.isArray(r)?r.forEach(function(e){u.push([t,e])}):u.push([t,r])}),"fetch"===e._mode)n.fetch(e._opts.url,{method:e._opts.method,headers:u,body:a||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin"}).then(function(t){e._fetchResponse=t,e._connect()},function(t){e.emit("error",t)});else{var f=e._xhr=new n.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!r.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"timeout"in r&&(f.timeout=r.timeout,f.ontimeout=function(){e.emit("timeout")}),u.forEach(function(e){f.setRequestHeader(e[0],e[1])}),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(a)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}}}},p.prototype._onXHRProgress=function(){var e=this;a(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new h(e._xhr,e._fetchResponse,e._mode),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,r){this._body.push(e),r()},p.prototype.abort=p.prototype.destroy=function(){var e=this;e._destroyed=!0,e._response&&(e._response._destroyed=!0),e._xhr&&e._xhr.abort()},p.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(n,e,t,r)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var g=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(t,r(7).Buffer,r(5),r(11))},function(e,t,r){(function(e,n,i){var o=r(35),a=r(36),s=r(15),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},f=t.IncomingMessage=function(t,r,i){var a=this;if(s.Readable.call(a),a._mode=i,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){e.nextTick(function(){a.emit("close")})}),"fetch"===i){a._fetchResponse=r,a.url=r.url,a.statusCode=r.status,a.statusMessage=r.statusText,r.headers.forEach(function(e,t){a.headers[t.toLowerCase()]=e,a.rawHeaders.push(t,e)});var u=r.body.getReader();function f(){u.read().then(function(e){a._destroyed||(e.done?a.push(null):(a.push(new n(e.value)),f()))}).catch(function(e){a.emit("error",e)})}f()}else if(a._xhr=t,a._pos=0,a.url=t.responseURL,a.statusCode=t.status,a.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===a.headers[r]&&(a.headers[r]=[]),a.headers[r].push(t[2])):void 0!==a.headers[r]?a.headers[r]+=", "+t[2]:a.headers[r]=t[2],a.rawHeaders.push(t[1],t[2])}}),a._charset="x-user-defined",!o.overrideMimeType){var l=a.rawHeaders["mime-type"];if(l){var c=l.match(/;\s*charset=([^;])(;|$)/);c&&(a._charset=c[1].toLowerCase())}a._charset||(a._charset="utf-8")}};a(f,s.Readable),f.prototype._read=function(){},f.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==r){e.push(new n(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new n(o.length),s=0;se._pos&&(e.push(new n(new Uint8Array(f.result.slice(e._pos)))),e._pos=f.result.byteLength)},f.onload=function(){e.push(null)},f.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(t,r(11),r(7).Buffer,r(5))},function(e,t){},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,r){e.copy(t,r)}var o=r(23).Buffer;e.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var t=o.allocUnsafe(e>>>0),r=this.head,n=0;r;)i(r.data,t,n),n+=r.data.length,r=r.next;return t},e}()},function(e,t,r){function n(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new n(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new n(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(61),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,r){(function(e,t){!function(e,r){"use strict";function n(e){delete u[e]}function i(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}function o(e){if(f)setTimeout(o,0,e);else{var t=u[e];if(t){f=!0;try{i(t)}finally{n(e),f=!1}}}}if(!e.setImmediate){var a,s=1,u={},f=!1,l=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?a=function(e){t.nextTick(function(){o(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&o(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),a=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){o(e.data)},a=function(t){e.port2.postMessage(t)}}():l&&"onreadystatechange"in l.createElement("script")?function(){var e=l.documentElement;a=function(t){var r=l.createElement("script");r.onreadystatechange=function(){o(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():a=function(e){setTimeout(o,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),h=["'"].concat(c),d=["%","/","?",";","#"].concat(h),p=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(71);n.prototype.parse=function(e,t,r){if(!a.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=-1!==n&&n127?k+="x":k+=U[I];if(!k.match(g)){var j=P.slice(0,A),C=P.slice(A+1),V=U.match(y);V&&(j.push(V[1]),C.unshift(V[2])),C.length&&(c="/"+C.join(".")+c),this.hostname=j.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=o.toASCII(this.hostname));var D=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+D,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==c[0]&&(c="/"+c))}if(!v[T])for(var A=0,L=h.length;A0)&&r.host.split("@"))&&(r.auth=M.shift(),r.host=r.hostname=M.shift())),r.search=e.search,r.query=e.query,a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!O.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var E=O.slice(-1)[0],A=(r.host||e.host||O.length>1)&&("."===E||".."===E)||""===E,B=0,x=O.length;x>=0;x--)"."===(E=O[x])?O.splice(x,1):".."===E?(O.splice(x,1),B++):B&&(O.splice(x,1),B--);if(!b&&!_)for(;B--;B)O.unshift("..");!b||""===O[0]||O[0]&&"/"===O[0].charAt(0)||O.unshift(""),A&&"/"!==O.join("/").substr(-1)&&O.push("");var R=""===O[0]||O[0]&&"/"===O[0].charAt(0);if(S){r.hostname=r.host=R?"":O.length?O.shift():"";var M=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");M&&(r.auth=M.shift(),r.host=r.hostname=M.shift())}return(b=b||r.host&&O.length)&&!R&&O.unshift(""),O.length?r.pathname=O.join("/"):(r.pathname=null,r.path=null),a.isNull(r.pathname)&&a.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},n.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;!function(o){function a(e){throw new RangeError(M[e])}function s(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function u(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+s((e=e.replace(R,".")).split("."),t).join(".")}function f(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=U((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=U(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:w}function h(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,r){var n=0;for(e=r?L(e/T):e>>1,e+=L(e/t);e>P*_>>1;n+=w)e=L(e/P);return L(n+(P+1)*e/(e+O))}function p(e){var t,r,n,i,o,s,u,f,h,p,g=[],y=e.length,v=0,O=E,T=S;for((r=e.lastIndexOf(A))<0&&(r=0),n=0;n=128&&a("not-basic"),g.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=y&&a("invalid-input"),((f=c(e.charCodeAt(i++)))>=w||f>L((m-v)/s))&&a("overflow"),v+=f*s,h=u<=T?b:u>=T+_?_:u-T,!(fL(m/(p=w-h))&&a("overflow"),s*=p;T=d(v-o,t=g.length+1,0==o),L(v/t)>m-O&&a("overflow"),O+=L(v/t),v%=t,g.splice(v++,0,O)}return l(g)}function g(e){var t,r,n,i,o,s,u,l,c,p,g,y,v,O,T,B=[];for(y=(e=f(e)).length,t=E,r=0,o=S,s=0;s=t&&gL((m-r)/(v=n+1))&&a("overflow"),r+=(u-t)*v,t=u,s=0;sm&&a("overflow"),g==t){for(l=r,c=w;p=c<=o?b:c>=o+_?_:c-o,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=w-b,L=Math.floor,U=String.fromCharCode;v={version:"1.4.1",ucs2:{decode:f,encode:l},decode:p,encode:g,toASCII(e){return u(e,function(e){return x.test(e)?"xn--"+g(e):e})},toUnicode(e){return u(e,function(e){return B.test(e)?p(e.slice(4).toLowerCase()):e})}},void 0!==(i=function(){return v}.call(t,r,t,e))&&(e.exports=i)}()}).call(t,r(69)(e),r(5))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";e.exports={isString(e){return"string"==typeof e},isObject(e){return"object"==typeof e&&null!==e},isNull(e){return null===e},isNullOrUndefined(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(72),t.encode=t.stringify=r(73)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var f=e.length;u>0&&f>u&&(f=u);for(var l=0;l=0?(c=g.substr(0,y),h=g.substr(y+1)):(c=g,h=""),d=decodeURIComponent(c),p=decodeURIComponent(h),n(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n=t+2,i.NOT_LONG_ENOUGH),{value:new DataView(e).getInt16(t),length:2}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(12);class s extends a.default{static get _value(){return 3}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(-2147483648,t,2147483648,"Value out of range");const i=new ArrayBuffer(4);new DataView(i).setInt32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getInt32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(1),i=r(43),o=r(12);class a extends o.default{static get _value(){return 4}writeValue(e,t){this.isBuffer(e),i.default(e,t)}consumeValue(e,t){return n.readLong(e,t)}}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(14),s=r(12);class u extends s.default{static get _value(){return 5}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),t=a.normalize(t);const r=[];if(!a.eq(t,"0")){for(;a.gt(t,"127")||a.lt(t,"-128");){const e=a.div(t,a.BYTE_SHIFT,!0),n=a.sub(t,a.mul(e,a.BYTE_SHIFT));r.push(Number(n)),t=e}r.push(Number(t))}const o=new Uint8Array(r.length);for(let e=r.length-1,t=0;e>=0;e--,t++)o[t]=r[e];e.addAll(i.makeValueBuffer(r.length)).addAll(o.buffer)}consumeValue(e,t){const r=o.readFlexInt(e,t),i=r.value;let{length:s}=r;n.default(e.byteLength>=t+s+i,o.NOT_LONG_ENOUGH);const u=new Uint8Array(e,t+s);let f;if(i){f=String(u[0]<<24>>24);for(let e=1;et,i.NOT_LONG_ENOUGH),{value:new Uint8Array(e)[t],length:1}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(13);class s extends a.default{static get _value(){return 18}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(0,t,65536,"Value out of range");const i=new ArrayBuffer(2);new DataView(i).setUint16(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+2,i.NOT_LONG_ENOUGH),{value:new DataView(e).getUint16(t),length:2}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(13);class s extends a.default{static get _value(){return 19}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.integer(t),n.default.between(0,t,4294967296,"Value out of range");const i=new ArrayBuffer(4);new DataView(i).setUint32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getUint32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(14),a=r(13),s="18446744073709551615";class u extends a.default{static get _value(){return 20}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(!(o.gt(t,s)||o.lt(t,"0")),"Value out of range");const r=o.div(t,o.LONG_UPPER_SHIFT),i=o.sub(t,o.mul(r,o.LONG_UPPER_SHIFT)),a=new ArrayBuffer(8),u=new DataView(a);u.setUint32(0,Number(r)),u.setUint32(4,Number(i)),e.addAll(a)}consumeValue(e,t){n.default(e.byteLength>=t+8,i.NOT_LONG_ENOUGH);const r=new DataView(e,t),a=r.getUint32(0),s=r.getUint32(4);return{value:o.add(o.mul(String(a),o.LONG_UPPER_SHIFT),String(s)),length:8}}}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(14),s=r(13);class u extends s.default{static get _value(){return 21}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(!a.isNegative(t),"Value out of range");const r=[];if(!a.eq(t,"0")){for(;a.ge(t,a.BYTE_SHIFT);){const[e,n]=a.quotientRemainderPositive(t,a.BYTE_SHIFT);r.push(Number(n)),t=e}r.push(Number(t))}const o=new Uint8Array(r.length);for(let e=r.length-1,t=0;e>=0;e--,t++)o[t]=r[e];e.addAll(i.makeValueBuffer(r.length)).addAll(o.buffer)}consumeValue(e,t){const r=o.readFlexInt(e,t),i=r.value;let{length:s}=r;n.default(e.byteLength>=t+s+i,o.NOT_LONG_ENOUGH);const u=new Uint8Array(e,t+s);let f="0";for(let e=0;e>8),s.setUint8(2,o),e.addAll(a)}consumeValue(e,t){n.default(e.byteLength>=t+3,o.NOT_LONG_ENOUGH);const r=new DataView(e,t),a=r.getInt16(0)<<8|r.getUint8(2);return{value:i.fromUTC(a*i.MILLIS_PER_DAY),length:3}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(44),o=r(1),a=r(29);class s extends a.default{static get _value(){return 28}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Date);const r=new ArrayBuffer(4);new DataView(r).setUint32(0,t.getTime()%i.MILLIS_PER_DAY),e.addAll(r)}consumeValue(e,t){return n.default(e.byteLength>=t+4,o.NOT_LONG_ENOUGH),{value:new Date(new DataView(e).getUint32(t)),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(45);class s extends a.default{static get _value(){return 32}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.instanceOf(t,Number);const i=new ArrayBuffer(4);new DataView(i).setFloat32(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+4,i.NOT_LONG_ENOUGH),{value:new DataView(e).getFloat32(t),length:4}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(6),a=r(45);class s extends a.default{static get _value(){return 33}writeValue(e,t){this.isBuffer(e);const r=o.default(t);void 0!==r&&(t=r),n.default.instanceOf(t,Number);const i=new ArrayBuffer(8);new DataView(i).setFloat64(0,t),e.addAll(i)}consumeValue(e,t){return n.default(e.byteLength>=t+8,i.NOT_LONG_ENOUGH),{value:new DataView(e).getFloat64(t),length:8}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(2);class a extends o.default{static get _value(){return 48}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Boolean),e.add(t?255:0)}consumeValue(e,t){return i.readBooleanByte(e,t)}}t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(46),a=r(2);class s extends a.default{static get _value(){return 49}constructor(e){super(),n.default.byteUnsignedInteger(e),this.length=e}addToBuffer(e){return!!super.addToBuffer(e)&&(e.add(this.length),!0)}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Array),n.default(t.length===this.length,"Length does not match: expected "+String(this.length)+" but got "+String(t.length)),o.default(e,t)}consumeValue(e,t){return i.readBooleans({buffer:e,offset:t,count:this.length})}equals(e){return super.equals(e)&&e.length===this.length}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(46),s=r(2);class u extends s.default{static get _value(){return 50}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,Array),e.addAll(i.makeValueBuffer(t.length)),a.default(e,t)}consumeValue(e,t){const r=o.readFlexInt(e,t);let{length:n}=r;const i=o.readBooleans({buffer:e,offset:t+n,count:r.value}),{value:a}=i;return n+=i.length,{value:a,length:n}}}t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(2);class s extends a.default{static get _value(){return 64}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),n.default(1===t.length,"String must contain only 1 character"),e.addAll(i.fromString(t))}consumeValue(e,t){n.default(e.byteLength>t,o.NOT_LONG_ENOUGH);const[r]=i.toString(new Uint8Array(e,t).subarray(0,4));return{value:r,length:i.fromString(r).byteLength}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(2);class s extends a.default{static get _value(){return 65}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,String),e.addAll(i.fromString(t)).add(0)}consumeValue(e,t){const r=new Uint8Array(e,t);let a=0;for(;n.default(r.length>a,o.NOT_LONG_ENOUGH),r[a];a++);const s=i.toString(r.subarray(0,a));return a++,{value:s,length:a}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(3),o=r(1),a=r(2);class s extends a.default{static get _value(){return 66}writeValue(e,t){this.isBuffer(e),n.default.instanceOf(t,ArrayBuffer),e.addAll(i.makeValueBuffer(t.byteLength)).addAll(t)}consumeValue(e,t){const r=o.readFlexInt(e,t),{length:i}=r,a=i+r.value;return n.default(e.byteLength>=t+a,o.NOT_LONG_ENOUGH),{value:e.slice(t+i,t+a),length:a}}}t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(10),o=r(1),a=r(9),s=r(2),u=r(4);class f extends u.default{constructor({type:e,values:t}){super(),n.default.instanceOf(e,s.default),n.default.instanceOf(t,Array);try{n.default.byteUnsignedInteger(t.length)}catch(e){n.default.fail(String(t.length)+" values is too many")}const r=new Map;for(let o=0;ot,o.NOT_LONG_ENOUGH);const r=new Uint8Array(e)[t],{values:i}=this;return n.default(r in i,"Index "+String(r)+" is invalid"),{value:i[r],length:1}}equals(e){if(!super.equals(e))return!1;const t=e;if(!this.type.equals(t.type))return!1;if(this.values.length!==t.values.length)return!1;const r=t.valueIndices.keys();for(const e of this.valueIndices.keys())if(r.next().value!==e)return!1;return!0}}t.default=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(0),i=r(1),o=r(9),a=r(2),s=r(4);class u extends a.default{constructor(e){super(),n.default.instanceOf(e,Array);try{n.default.byteUnsignedInteger(e.length)}catch(t){n.default.fail(String(e.length)+" types is too many")}for(const t of e)n.default.instanceOf(t,s.default);this.types=e}static get _value(){return 86}addToBuffer(e){if(super.addToBuffer(e)){e.add(this.types.length);for(const t of this.types)t.addToBuffer(e);return!0}return!1}writeValue(e,t){this.isBuffer(e),e.pause();let r=!1;for(let n=0;nt,i.NOT_LONG_ENOUGH);const o=new Uint8Array(e)[t],{value:a,length:s}=this.types[o].consumeValue(e,t+r);return r+=s,{value:a,length:r}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.types.length!==t.types.length)return!1;for(let e=0;et,a.NOT_LONG_ENOUGH);const i=new Uint8Array(e)[t],s=this.indexConstructors.get(i);if(void 0===s)throw new Error("Constructor index "+String(i)+" is invalid");const u=o.get(s.name),{value:f,length:l}=this.constructorTypes[i].type.consumeValue(e,t+r,new u);return r+=l,{value:f,length:r}}equals(e){if(!super.equals(e))return!1;const t=e;if(this.constructorTypes.length!==t.constructorTypes.length)return!1;for(let e=0;eConstructors

Properties

@@ -144,7 +145,7 @@

constructor

  • @@ -177,13 +178,23 @@

    Private outStream

    +
    + +

    Private pauseCount

    +
    pauseCount: number
    + +

    Private paused

    -
    paused: GrowableBuffer | null
    +
    @@ -210,7 +221,7 @@

    length

  • @@ -236,7 +247,7 @@

    add

    @@ -269,7 +280,7 @@

    addAll

    @@ -301,7 +312,7 @@

    end

  • @@ -324,7 +335,7 @@

    pause

    @@ -336,11 +347,20 @@

    pause

    can be cancelled from being written by calling reset.

    -
    -
    throws
    -

    If paused earlier and never resumed

    -
    -
    +

    If called multiple times, resume + and reset only act on bytes added + since the most recent pause. Example:

    +
    let gb = new GrowableBuffer
    +gb
    +  .pause()
    +    .add(1).add(2).add(3)
    +    .pause()
    +      .add(4).add(5).add(6)
    +      .reset() //cancels [4, 5, 6]
    +    .resume()
    +  .resume() //resumes [1, 2, 3]
    +console.log(new Uint8Array(gb.toBuffer())) //Uint8Array [ 1, 2, 3 ]
    +

    Returns this

  • @@ -357,7 +377,7 @@

    reset

    @@ -389,7 +409,7 @@

    resume

    @@ -434,6 +454,9 @@

    Returns this outStream +
  • + pauseCount +
  • paused
  • diff --git a/docs/classes/_lib_growable_buffer_.growablebuffer.html b/docs/classes/_lib_growable_buffer_.growablebuffer.html index 9fd3149..aafadaf 100644 --- a/docs/classes/_lib_growable_buffer_.growablebuffer.html +++ b/docs/classes/_lib_growable_buffer_.growablebuffer.html @@ -108,7 +108,7 @@

    Constructors

    Properties

    @@ -146,7 +146,7 @@

    constructor

  • @@ -181,20 +181,14 @@

    Private buffer

    - -

    Private commitedSize

    -
    commitedSize: number | null
    + +

    Private pausePoints

    +
    pausePoints: number[]
    -
    -
    -

    The length of the buffer before the current pause, - or null if not currently paused

    -
    -
    @@ -219,7 +213,7 @@

    length

  • @@ -242,7 +236,7 @@

    Private rawBuffer

  • @@ -268,7 +262,7 @@

    add

    @@ -301,7 +295,7 @@

    addAll

    @@ -336,7 +330,7 @@

    grow

  • @@ -376,7 +370,7 @@

    pause

    @@ -388,11 +382,20 @@

    pause

    can be cancelled from being written by calling reset.

    -
    -
    throws
    -

    If paused earlier and never resumed

    -
    -
    +

    If called multiple times, resume + and reset only act on bytes added + since the most recent pause. Example:

    +
    let gb = new GrowableBuffer
    +gb
    +  .pause()
    +    .add(1).add(2).add(3)
    +    .pause()
    +      .add(4).add(5).add(6)
    +      .reset() //cancels [4, 5, 6]
    +    .resume()
    +  .resume() //resumes [1, 2, 3]
    +console.log(new Uint8Array(gb.toBuffer())) //Uint8Array [ 1, 2, 3 ]
    +

    Returns this

  • @@ -409,7 +412,7 @@

    reset

    @@ -441,7 +444,7 @@

    resume

    @@ -470,7 +473,7 @@

    toBuffer

  • @@ -510,7 +513,7 @@

    Returns ArrayBuff buffer

  • - commitedSize + pausePoints
  • size diff --git a/docs/interfaces/_lib_appendable_.appendablebuffer.html b/docs/interfaces/_lib_appendable_.appendablebuffer.html index 7e9c9da..5c04af7 100644 --- a/docs/interfaces/_lib_appendable_.appendablebuffer.html +++ b/docs/interfaces/_lib_appendable_.appendablebuffer.html @@ -82,8 +82,8 @@

    Interface AppendableBuffer

    .add(1).add(2) .addAll(new Uint8Array([3, 4, 5]).buffer) .pause() - .add(0) - .reset() + .add(0) + .reset() .resume() console.log(new Uint8Array(gb.toBuffer())) //Uint8Array [ 1, 2, 3, 4, 5 ] @@ -224,7 +224,7 @@

    pause

  • @@ -236,11 +236,20 @@

    pause

    can be cancelled from being written by calling reset.

    -
    -
    throws
    -

    If paused earlier and never resumed

    -
    -
    +

    If called multiple times, resume + and reset only act on bytes added + since the most recent pause. Example:

    +
    let gb = new GrowableBuffer
    +gb
    +  .pause()
    +    .add(1).add(2).add(3)
    +    .pause()
    +      .add(4).add(5).add(6)
    +      .reset() //cancels [4, 5, 6]
    +    .resume()
    +  .resume() //resumes [1, 2, 3]
    +console.log(new Uint8Array(gb.toBuffer())) //Uint8Array [ 1, 2, 3 ]
    +
  • Returns this

  • @@ -256,7 +265,7 @@

    reset

  • @@ -287,7 +296,7 @@

    resume

  • diff --git a/lib/appendable-stream.ts b/lib/appendable-stream.ts index f32e68e..6296e8d 100644 --- a/lib/appendable-stream.ts +++ b/lib/appendable-stream.ts @@ -16,7 +16,8 @@ const WRITABLE_STREAMS = [Writable, Duplex, OutgoingMessage] export default class AppendableStream implements AppendableBuffer { private readonly outStream: Writable private writtenBytes: number - private paused: GrowableBuffer | null + private pauseCount: number //number of pauses deep in the pause stack + private paused: GrowableBuffer /** * @param outStream The underlying writable stream @@ -25,7 +26,8 @@ export default class AppendableStream implements AppendableBuffer { assert.instanceOf(outStream, WRITABLE_STREAMS) this.outStream = outStream this.writtenBytes = 0 - this.paused = null + this.pauseCount = 0 + this.paused = new GrowableBuffer } /** @@ -45,7 +47,7 @@ export default class AppendableStream implements AppendableBuffer { */ addAll(buffer: ArrayBuffer) { assert.instanceOf(buffer, ArrayBuffer) - if (this.paused) this.paused.addAll(buffer) + if (this.pauseCount) this.paused.addAll(buffer) else this.outStream.write(Buffer.from(buffer)) this.writtenBytes += buffer.byteLength return this @@ -69,11 +71,26 @@ export default class AppendableStream implements AppendableBuffer { * [[resume]] is next called and * can be cancelled from being written * by calling [[reset]]. - * @throws If paused earlier and never resumed + * + * If called multiple times, [[resume]] + * and [[reset]] only act on bytes added + * since the most recent pause. Example: + * ````javascript + * let gb = new GrowableBuffer + * gb + * .pause() + * .add(1).add(2).add(3) + * .pause() + * .add(4).add(5).add(6) + * .reset() //cancels [4, 5, 6] + * .resume() + * .resume() //resumes [1, 2, 3] + * console.log(new Uint8Array(gb.toBuffer())) //Uint8Array [ 1, 2, 3 ] + * ```` */ pause() { - assert(this.paused === null, 'Already paused') - this.paused = new GrowableBuffer + this.paused.pause() + this.pauseCount++ return this } /** @@ -83,10 +100,13 @@ export default class AppendableStream implements AppendableBuffer { * @throws If not currently paused */ resume() { - if (!this.paused) throw new Error('Was not paused') - const {length} = this.paused - this.outStream.write(Buffer.from(this.paused.rawBuffer, 0, length)) - this.paused = null + if (!this.pauseCount) throw new Error('Was not paused') + this.pauseCount-- + if (this.pauseCount) this.paused.resume() //still in pause stack + else { //emptied pause stack + this.outStream.write(Buffer.from(this.paused.rawBuffer, 0, this.paused.length)) + this.paused = new GrowableBuffer //must use a new buffer to avoid overwriting data sent to outStream + } return this } /** @@ -98,9 +118,11 @@ export default class AppendableStream implements AppendableBuffer { * @throws If not currently paused */ reset() { - if (!this.paused) throw new Error('Was not paused') - this.writtenBytes -= this.paused.length - this.paused = new GrowableBuffer + if (!this.pauseCount) throw new Error('Was not paused') + const lengthBeforeReset = this.paused.length + this.paused.reset() + const lengthAfterReset = this.paused.length + this.writtenBytes -= lengthBeforeReset - lengthAfterReset return this } } \ No newline at end of file diff --git a/lib/appendable.ts b/lib/appendable.ts index ed58c02..b2184dd 100644 --- a/lib/appendable.ts +++ b/lib/appendable.ts @@ -10,8 +10,8 @@ * .add(1).add(2) * .addAll(new Uint8Array([3, 4, 5]).buffer) * .pause() - * .add(0) - * .reset() + * .add(0) + * .reset() * .resume() * console.log(new Uint8Array(gb.toBuffer())) //Uint8Array [ 1, 2, 3, 4, 5 ] * ```` @@ -42,7 +42,22 @@ export default interface AppendableBuffer { * [[resume]] is next called and * can be cancelled from being written * by calling [[reset]]. - * @throws If paused earlier and never resumed + * + * If called multiple times, [[resume]] + * and [[reset]] only act on bytes added + * since the most recent pause. Example: + * ````javascript + * let gb = new GrowableBuffer + * gb + * .pause() + * .add(1).add(2).add(3) + * .pause() + * .add(4).add(5).add(6) + * .reset() //cancels [4, 5, 6] + * .resume() + * .resume() //resumes [1, 2, 3] + * console.log(new Uint8Array(gb.toBuffer())) //Uint8Array [ 1, 2, 3 ] + * ```` */ pause(): this /** diff --git a/lib/growable-buffer.ts b/lib/growable-buffer.ts index b79fa94..54866ce 100644 --- a/lib/growable-buffer.ts +++ b/lib/growable-buffer.ts @@ -13,11 +13,7 @@ const INITIAL_LENGTH = 10 export default class GrowableBuffer implements AppendableBuffer { private buffer: ArrayBuffer private size: number - /** - * The length of the buffer before the current pause, - * or `null` if not currently paused - */ - private commitedSize: number | null + private readonly pausePoints: number[] /** * @param initialLength @@ -32,7 +28,7 @@ export default class GrowableBuffer implements AppendableBuffer { catch (e) { throw new RangeError(String(initialLength) + ' is not a valid buffer length') } this.buffer = new ArrayBuffer(initialLength) this.size = 0 - this.commitedSize = null + this.pausePoints = [] } /** @@ -103,8 +99,8 @@ export default class GrowableBuffer implements AppendableBuffer { */ toBuffer(): ArrayBuffer { let length: number - if (this.commitedSize === null) length = this.size - else length = this.commitedSize + if (this.pausePoints.length) [length] = this.pausePoints //go up to first pause point + else length = this.size return this.buffer.slice(0, length) } /** @@ -114,11 +110,25 @@ export default class GrowableBuffer implements AppendableBuffer { * [[resume]] is next called and * can be cancelled from being written * by calling [[reset]]. - * @throws If paused earlier and never resumed + * + * If called multiple times, [[resume]] + * and [[reset]] only act on bytes added + * since the most recent pause. Example: + * ````javascript + * let gb = new GrowableBuffer + * gb + * .pause() + * .add(1).add(2).add(3) + * .pause() + * .add(4).add(5).add(6) + * .reset() //cancels [4, 5, 6] + * .resume() + * .resume() //resumes [1, 2, 3] + * console.log(new Uint8Array(gb.toBuffer())) //Uint8Array [ 1, 2, 3 ] + * ```` */ pause() { - assert(this.commitedSize === null, 'Already paused') - this.commitedSize = this.size + this.pausePoints.push(this.size) return this } /** @@ -128,8 +138,8 @@ export default class GrowableBuffer implements AppendableBuffer { * @throws If not currently paused */ resume() { - assert(this.commitedSize !== null, 'Was not paused') - this.commitedSize = null + const pausePoint = this.pausePoints.pop() + if (pausePoint === undefined) throw new Error('Was not paused') return this } /** @@ -141,8 +151,9 @@ export default class GrowableBuffer implements AppendableBuffer { * @throws If not currently paused */ reset() { - if (this.commitedSize === null) throw new Error('Was not paused') - this.size = this.commitedSize + if (!this.pausePoints.length) throw new Error('Was not paused') + const pausePoint = this.pausePoints[this.pausePoints.length - 1] + this.size = pausePoint return this } } \ No newline at end of file diff --git a/test/appendable-stream/appendable-stream.ts b/test/appendable-stream/appendable-stream.ts index 1072045..2955fa4 100644 --- a/test/appendable-stream/appendable-stream.ts +++ b/test/appendable-stream/appendable-stream.ts @@ -71,14 +71,15 @@ const testPause = new Promise((resolve, reject) => { const outStream = new CaptureStream outStream.on('finish', () => { try { - assert.equal(outStream.getWritten(), Buffer.from([1, 2, 3, 6, 7, 8])) + assert.equal(outStream.getWritten(), Buffer.from([1, 2, 3, 4, 9, 10])) resolve() } catch (e) { reject(e) } }) const stream = new AppendableStream(outStream) - stream.add(1).add(2).add(3) - assert.equal(stream.length, 3) + stream + .add(1).add(2) + assert.equal(stream.length, 2) assert.throws( () => stream.resume(), 'Was not paused' @@ -87,28 +88,42 @@ const testPause = new Promise((resolve, reject) => { () => stream.reset(), 'Was not paused' ) - stream.pause() - assert.throws( - () => stream.pause(), - 'Already paused' - ) - stream.add(4).add(5) - assert.equal(stream.length, 5) - stream.reset() - assert.equal(stream.length, 3) - stream.reset() - assert.equal(stream.length, 3) stream - .add(6).add(7) + .pause() + .add(3).add(4) + assert.equal(stream.length, 4) + stream + .pause() + .add(5).add(6) + assert.equal(stream.length, 6) + stream + .pause() + .add(7).add(8) + assert.equal(stream.length, 8) + stream + .resume() + assert.equal(stream.length, 8) + stream + .reset() + assert.equal(stream.length, 4) + stream + .add(9) + .resume() assert.equal(stream.length, 5) stream - .resume() - .add(8) + .add(10) assert.equal(stream.length, 6) stream - .pause() - .add(9) - assert.equal(stream.length, 7) + .resume() + assert.equal(stream.length, 6) + assert.throws( + () => stream.resume(), + 'Was not paused' + ) + assert.throws( + () => stream.reset(), + 'Was not paused' + ) stream.end() }) diff --git a/test/growable-buffer/misc-functions.ts b/test/growable-buffer/misc-functions.ts index 1f5b156..c8c7f95 100644 --- a/test/growable-buffer/misc-functions.ts +++ b/test/growable-buffer/misc-functions.ts @@ -28,7 +28,7 @@ export = () => { nums.push(i) } assert.equal(gb3.length, 100) - assert.equal(gb3.toBuffer(), new Uint8Array(nums).buffer) + assert.equal(gb3.toBuffer(), bufferFrom(nums)) assert.throws( () => gb3.add(undefined as any), 'undefined is not an instance of Number' @@ -45,10 +45,12 @@ export = () => { () => gb3.addAll('abc' as any), '"abc" is not an instance of ArrayBuffer' ) - assert.equal(gb3.toBuffer(), new Uint8Array(nums).buffer) + assert.equal(gb3.toBuffer(), bufferFrom(nums)) const gb4 = new GrowableBuffer - gb4.add(1).add(2) + gb4 + .add(1).add(2) + assert.equal(gb4.length, 2) assert.throws( () => gb4.resume(), 'Was not paused' @@ -57,11 +59,44 @@ export = () => { () => gb4.reset(), 'Was not paused' ) - gb4.pause() + gb4 + .pause() + .add(3).add(4) + assert.equal(gb4.length, 4) + gb4 + .pause() + .add(5).add(6) + assert.equal(gb4.length, 6) + gb4 + .pause() + .add(7).add(8) + assert.equal(gb4.toBuffer(), bufferFrom([1, 2])) + assert.equal(gb4.length, 8) + gb4 + .resume() + assert.equal(gb4.toBuffer(), bufferFrom([1, 2])) + assert.equal(gb4.length, 8) + gb4 + .reset() + assert.equal(gb4.length, 4) + gb4 + .add(9) + .resume() + assert.equal(gb4.length, 5) + gb4 + .add(10) + assert.equal(gb4.toBuffer(), bufferFrom([1, 2])) + assert.equal(gb4.length, 6) + gb4 + .resume() + assert.equal(gb4.toBuffer(), bufferFrom([1, 2, 3, 4, 9, 10])) + assert.equal(gb4.length, 6) assert.throws( - () => gb4.pause(), - 'Already paused' + () => gb4.resume(), + 'Was not paused' + ) + assert.throws( + () => gb4.reset(), + 'Was not paused' ) - gb4.add(3).add(4) - assert.equal(gb4.toBuffer(), new Uint8Array([1, 2]).buffer) } \ No newline at end of file diff --git a/test/value-bytes/choice.ts b/test/value-bytes/choice.ts index e2176aa..cdba749 100644 --- a/test/value-bytes/choice.ts +++ b/test/value-bytes/choice.ts @@ -24,4 +24,29 @@ export = () => { () => type.writeValue(gb, true as any), 'No types matched: true' ) + + const doubleChoiceType = new t.ChoiceType<(number | string)[] | Set>([ + new t.ArrayType(type), + new t.SetType(type) + ]) + assert.equal(doubleChoiceType.valueBuffer([0, '1000', '-1']), bufferFrom([ + 0, + 3, + 0, + 0, + 1, + 0, 0, 1000 >> 8, 1000 & 0xFF, + 2, + 0x2d, 0x31, 0 + ])) + assert.equal(doubleChoiceType.valueBuffer(new Set([0, '1000', '-1'])), bufferFrom([ + 1, + 3, + 0, + 0, + 1, + 0, 0, 1000 >> 8, 1000 & 0xFF, + 2, + 0x2d, 0x31, 0 + ])) } \ No newline at end of file