genesys-cloud-streaming-client 14.2.1-PCM-1972.2 → 14.2.1-develop.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,7 +20,7 @@ var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
20
20
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
21
21
  * @license MIT
22
22
  */
23
- var i=n(74),r=n(75),s=n(76);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,n)}function l(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(t,n),r=(e=a(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?a(e,0):d(e,t);if("Buffer"===t.type&&s(t.data))return d(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(u(t),e=a(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=a(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function h(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function f(e,t){if(c.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 n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return B(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function v(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,i,r);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,i,r){var s,o=1,a=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,a/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var u=-1;for(s=n;s<a;s++)if(l(e,s)===l(t,-1===u?0:s-u)){if(-1===u&&(u=s),s-u+1===c)return u*o}else-1!==u&&(s-=s-u),u=-1}else for(n+c>a&&(n=a-c),s=n;s>=0;s--){for(var p=!0,d=0;d<c;d++)if(l(e,s+d)!==l(t,d)){p=!1;break}if(p)return s}return-1}function y(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var o=0;o<i;++o){var a=parseInt(t.substr(2*o,2),16);if(isNaN(a))return o;e[n+o]=a}return o}function _(e,t,n,i){return z(B(t,e.length-n),e,n,i)}function S(e,t,n,i){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function w(e,t,n,i){return S(e,t,n,i)}function x(e,t,n,i){return z(U(t),e,n,i)}function T(e,t,n,i){return z(function(e,t){for(var n,i,r,s=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),i=n>>8,r=n%256,s.push(r),s.push(i);return s}(t,e.length-n),e,n,i)}function k(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var s,o,a,c,l=e[r],u=null,p=l>239?4:l>223?3:l>191?2:1;if(r+p<=n)switch(p){case 1:l<128&&(u=l);break;case 2:128==(192&(s=e[r+1]))&&(c=(31&l)<<6|63&s)>127&&(u=c);break;case 3:s=e[r+1],o=e[r+2],128==(192&s)&&128==(192&o)&&(c=(15&l)<<12|(63&s)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:s=e[r+1],o=e[r+2],a=e[r+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(c=(15&l)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,p=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.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:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,i){return u(t),t<=0?a(e,t):void 0!==n?"string"==typeof i?a(e,t).fill(n,i):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return p(null,e)},c.allocUnsafeSlow=function(e){return p(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,s=Math.min(n,i);r<s;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!s(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?I(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var s=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(t>>>=0),a=Math.min(s,o),l=this.slice(i,r),u=e.slice(t,n),p=0;p<a;++p)if(l[p]!==u[p]){s=l[p],o=u[p];break}return s<o?-1:o<s?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function E(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function N(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",s=t;s<n;++s)r+=D(e[s]);return r}function C(e,t,n){for(var i=e.slice(t,n),r="",s=0;s<i.length;s+=2)r+=String.fromCharCode(i[s]+256*i[s+1]);return r}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,i,r,s){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<s)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function A(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,s=Math.min(e.length-n,2);r<s;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function P(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,s=Math.min(e.length-n,4);r<s;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function q(e,t,n,i,r,s){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,i,s){return s||q(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function F(e,t,n,i,s){return s||q(e,0,n,8),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var s=0;s<r;++s)n[s]=this[s+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e],r=1,s=0;++s<t&&(r*=256);)i+=this[e+s]*r;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},c.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e],r=1,s=0;++s<t&&(r*=256);)i+=this[e+s]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=t,r=1,s=this[e+--i];i>0&&(r*=256);)s+=this[e+--i]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*t)),s},c.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,s=0;for(this[t]=255&e;++s<n&&(r*=256);)this[t+s]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,s=1;for(this[t+r]=255&e;--r>=0&&(s*=256);)this[t+r]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}var s=0,o=1,a=0;for(this[t]=255&e;++s<n&&(o*=256);)e<0&&0===a&&0!==this[t+s-1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}var s=n-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,s=i-n;if(this===e&&n<t&&t<i)for(r=s-1;r>=0;--r)e[r+t]=this[r+n];else if(s<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<s;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+s),t);return s},c.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var s;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(s=t;s<n;++s)this[s]=e;else{var o=c.isBuffer(e)?e:B(new c(e,i).toString()),a=o.length;for(s=0;s<n-t;++s)this[s+t]=o[s%a]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var i=e.length,r=null,s=[],o=0;o<i;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function U(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NS_AVATAR_METADATA=t.NS_AVATAR_DATA=t.NS_ROSTER_DELIMITER=t.NS_GEOLOC=t.NS_AMP=t.NS_INBAND_REGISTRATION=t.NS_REGISTER=t.NS_XHTML_IM=t.NS_XHTML=t.NS_HTTP_AUTH=t.NS_OOB_TRANSFER=t.NS_OOB=t.NS_SOCKS5=t.NS_PUBSUB_OWNER=t.NS_PUBSUB_EVENT=t.NS_PUBSUB_ERRORS=t.NS_PUBSUB=t.NS_RSM=t.NS_SEARCH=t.NS_VCARD_TEMP=t.NS_ADHOC_COMMANDS=t.NS_PRIVATE=t.NS_BOOKMARKS=t.NS_IBB=t.NS_MUC_USER=t.NS_MUC_OWNER=t.NS_MUC_ADMIN=t.NS_MUC=t.NS_ADDRESS=t.NS_DISCO_ITEMS=t.NS_DISCO_INFO=t.NS_LEGACY_CHAT_EVENTS=t.NS_PRIVACY=t.NS_LAST_ACTIVITY=t.NS_RPC=t.NS_DATAFORM=t.NS_FRAMING=t.NS_SUBSCRIPTION_PREAPPROVAL=t.NS_ROSTER_VERSIONING=t.NS_ROSTER=t.NS_STARTTLS=t.NS_STREAMS=t.NS_STREAM=t.NS_STANZAS=t.NS_SESSION=t.NS_SERVER=t.NS_SASL=t.NS_CLIENT=t.NS_BIND=t.NS_ATOM=void 0,t.NS_JINGLE_FILE_TRANSFER_4=t.NS_JINGLE_FILE_TRANSFER_3=t.NS_SOFTWARE_INFO=t.NS_BOB=t.NS_ATTENTION_0=t.NS_DATAFORM_MEDIA=t.NS_DISCO_EXTERNAL_2=t.NS_DISCO_EXTERNAL_1=t.NS_BOSH_XMPP=t.NS_DELAY=t.NS_TIME=t.NS_PING=t.NS_SMACKS_3=t.NS_BLOCKING_ERRORS=t.NS_BLOCKING=t.NS_INVISIBLE_0=t.NS_RECEIPTS=t.NS_JINGLE_RAW_UDP_1=t.NS_JINGLE_ICE_UDP_1=t.NS_NICK=t.NS_LANG_TRANS_ITEMS=t.NS_LANG_TRANS=t.NS_JINGLE_RTP_VIDEO=t.NS_JINGLE_RTP_AUDIO=t.NS_JINGLE_RTP_INFO_1=t.NS_JINGLE_RTP_ERRORS_1=t.NS_JINGLE_RTP_1=t.NS_JINGLE_ERRORS_1=t.NS_JINGLE_1=t.NS_PEP_NOTIFY=t.NS_CAPTCHA=t.NS_ALT_CONNECTIONS_XBOSH=t.NS_ALT_CONNECTIONS_WEBSOCKET=t.NS_VCARD_TEMP_UPDATE=t.NS_REACH_0=t.NS_ROSTER_NOTES=t.NS_ROSTER_EXCHANGE=t.NS_DATAFORM_LAYOUT=t.NS_COMPRESSION=t.NS_COMPRESSION_FEATURE=t.NS_SHIM=t.NS_BOSH=t.NS_DATAFORM_VALIDATION=t.NS_TUNE=t.NS_DISCO_LEGACY_CAPS=t.NS_COMPONENT=t.NS_ACTIVITY=t.NS_MOOD=t.NS_VERSION=t.NS_CHAT_STATES=void 0,t.NS_OMEMO_AXOLOTL=t.NS_SPOILER_0=t.NS_EME_0=t.NS_REFERENCE_0=t.NS_JINGLE_ICE_0=t.NS_JINGLE_HTTP_UPLOAD_0=t.NS_JINGLE_HTTP_0=t.NS_HTTP_UPLOAD_0=t.NS_SID_0=t.NS_JINGLE_PUB_1=t.NS_PUSH_0=t.NS_DELEGATION_1=t.NS_JINGLE_MSG_INITIATE_0=t.NS_CSI_0=t.NS_JINGLE_DTLS_SCTP_1=t.NS_JINGLE_RTP_SSMA_0=t.NS_JINGLE_GROUPING_0=t.NS_JSON_0=t.NS_HINTS=t.NS_CHAT_MARKERS_0=t.NS_JINGLE_DTLS_0=t.NS_IDLE_1=t.NS_HATS_0=t.NS_MAM_2=t.NS_MAM_1=t.NS_MAM_0=t.NS_MAM_TMP=t.NS_PSA=t.NS_CORRECTION_0=t.NS_MUC_UNIQUE=t.NS_RTT_0=t.NS_HASH_NAME=t.NS_HASHES_2=t.NS_HASHES_1=t.NS_FORWARD_0=t.NS_JINGLE_RTP_HDREXT_0=t.NS_JINGLE_RTP_RTCP_FB_0=t.NS_CARBONS_2=t.NS_DECLOAKING_0=t.NS_THUMBS_1=t.NS_THUMBS_0=t.NS_JINGLE_RTP_ZRTP_1=t.NS_JINGLE_IBB_1=t.NS_JINGLE_SOCKS5_1=t.NS_SEC_LABEL_ESS_0=t.NS_SEC_LABEL_CATALOG_2=t.NS_SEC_LABEL_0=t.NS_MUC_DIRECT_INVITE=t.NS_JINGLE_XML_0=t.NS_JINGLE_FILE_TRANSFER_5=void 0,t.NS_JINGLE_RTP_MSID_0=t.NS_XRD=t.NS_JSON_MESSAGE_0=t.NS_OMEMO_AXOLOTL_BUNDLE=t.NS_OMEMO_AXOLOTL_BUNDLES=t.NS_OMEMO_AXOLOTL_DEVICELIST=void 0,t.NS_ATOM="http://www.w3.org/2005/Atom",t.NS_BIND="urn:ietf:params:xml:ns:xmpp-bind",t.NS_CLIENT="jabber:client",t.NS_SASL="urn:ietf:params:xml:ns:xmpp-sasl",t.NS_SERVER="jabber:server",t.NS_SESSION="urn:ietf:params:xml:ns:xmpp-session",t.NS_STANZAS="urn:ietf:params:xml:ns:xmpp-stanzas",t.NS_STREAM="http://etherx.jabber.org/streams",t.NS_STREAMS="urn:ietf:params:xml:ns:xmpp-streams",t.NS_STARTTLS="urn:ietf:params:xml:ns:xmpp-tls",t.NS_ROSTER="jabber:iq:roster",t.NS_ROSTER_VERSIONING="urn:xmpp:features:rosterver",t.NS_SUBSCRIPTION_PREAPPROVAL="urn:xmpp:features:pre-approval",t.NS_FRAMING="urn:ietf:params:xml:ns:xmpp-framing",t.NS_DATAFORM="jabber:x:data",t.NS_RPC="jabber:iq:rpc",t.NS_LAST_ACTIVITY="jabber:iq:last",t.NS_PRIVACY="jabber:iq:privacy",t.NS_LEGACY_CHAT_EVENTS="jabber:x:event",t.NS_DISCO_INFO="http://jabber.org/protocol/disco#info",t.NS_DISCO_ITEMS="http://jabber.org/protocol/disco#items",t.NS_ADDRESS="http://jabber.org/protocol/address",t.NS_MUC="http://jabber.org/protocol/muc",t.NS_MUC_ADMIN="http://jabber.org/protocol/muc#admin",t.NS_MUC_OWNER="http://jabber.org/protocol/muc#owner",t.NS_MUC_USER="http://jabber.org/protocol/muc#user",t.NS_IBB="http://jabber.org/protocol/ibb",t.NS_BOOKMARKS="storage:bookmarks",t.NS_PRIVATE="jabber:iq:private",t.NS_ADHOC_COMMANDS="http://jabber.org/protocol/commands",t.NS_VCARD_TEMP="vcard-temp",t.NS_SEARCH="jabber:iq:search",t.NS_RSM="http://jabber.org/protocol/rsm",t.NS_PUBSUB="http://jabber.org/protocol/pubsub",t.NS_PUBSUB_ERRORS="http://jabber.org/protocol/pubsub#errors",t.NS_PUBSUB_EVENT="http://jabber.org/protocol/pubsub#event",t.NS_PUBSUB_OWNER="http://jabber.org/protocol/pubsub#owner",t.NS_SOCKS5="http://jabber.org/protocol/bytestreams",t.NS_OOB="jabber:x:oob",t.NS_OOB_TRANSFER="jabber:iq:oob",t.NS_HTTP_AUTH="http://jabber.org/protocol/http-auth",t.NS_XHTML="http://www.w3.org/1999/xhtml",t.NS_XHTML_IM="http://jabber.org/protocol/xhtml-im",t.NS_REGISTER="jabber:iq:register",t.NS_INBAND_REGISTRATION="http://jabber.org/features/iq-register",t.NS_AMP="http://jabber.org/protocol/amp",t.NS_GEOLOC="http://jabber.org/protocol/geoloc",t.NS_ROSTER_DELIMITER="roster:delimiter",t.NS_AVATAR_DATA="urn:xmpp:avatar:data",t.NS_AVATAR_METADATA="urn:xmpp:avatar:metadata",t.NS_CHAT_STATES="http://jabber.org/protocol/chatstates",t.NS_VERSION="jabber:iq:version",t.NS_MOOD="http://jabber.org/protocol/mood",t.NS_ACTIVITY="http://jabber.org/protocol/activity",t.NS_COMPONENT="jabber:component:accept",t.NS_DISCO_LEGACY_CAPS="http://jabber.org/protocol/caps",t.NS_TUNE="http://jabber.org/protocol/tune",t.NS_DATAFORM_VALIDATION="http://jabber.org/protocol/xdata-validate",t.NS_BOSH="http://jabber.org/protocol/httpbind",t.NS_SHIM="http://jabber.org/protocol/shim",t.NS_COMPRESSION_FEATURE="http://jabber.org/features/compress",t.NS_COMPRESSION="http://jabber.org/protocol/compress",t.NS_DATAFORM_LAYOUT="http://jabber.org/protocol/xdata-layout",t.NS_ROSTER_EXCHANGE="http://jabber.org/protocol/rosterx",t.NS_ROSTER_NOTES="storage:rosternotes",t.NS_REACH_0="urn:xmpp:reach:0",t.NS_VCARD_TEMP_UPDATE="vcard-temp:x:update",t.NS_ALT_CONNECTIONS_WEBSOCKET="urn:xmpp:alt-connections:websocket",t.NS_ALT_CONNECTIONS_XBOSH="urn:xmpp:alt-connections:xbosh",t.NS_CAPTCHA="urn:xmpp:captcha";t.NS_PEP_NOTIFY=e=>e+"+notify",t.NS_JINGLE_1="urn:xmpp:jingle:1",t.NS_JINGLE_ERRORS_1="urn:xmpp:jingle:errors:1",t.NS_JINGLE_RTP_1="urn:xmpp:jingle:apps:rtp:1",t.NS_JINGLE_RTP_ERRORS_1="urn:xmpp:jingle:apps:rtp:errors:1",t.NS_JINGLE_RTP_INFO_1="urn:xmpp:jingle:apps:rtp:info:1",t.NS_JINGLE_RTP_AUDIO="urn:xmpp:jingle:apps:rtp:audio",t.NS_JINGLE_RTP_VIDEO="urn:xmpp:jingle:apps:rtp:video",t.NS_LANG_TRANS="urn:xmpp:langtrans",t.NS_LANG_TRANS_ITEMS="urn:xmpp:langtrans:items",t.NS_NICK="http://jabber.org/protocol/nick",t.NS_JINGLE_ICE_UDP_1="urn:xmpp:jingle:transports:ice-udp:1",t.NS_JINGLE_RAW_UDP_1="urn:xmpp:jingle:transports:raw-udp:1",t.NS_RECEIPTS="urn:xmpp:receipts",t.NS_INVISIBLE_0="urn:xmpp:invisible:0",t.NS_BLOCKING="urn:xmpp:blocking",t.NS_BLOCKING_ERRORS="urn:xmpp:blocking:errors",t.NS_SMACKS_3="urn:xmpp:sm:3",t.NS_PING="urn:xmpp:ping",t.NS_TIME="urn:xmpp:time",t.NS_DELAY="urn:xmpp:delay",t.NS_BOSH_XMPP="urn:xmpp:xbosh",t.NS_DISCO_EXTERNAL_1="urn:xmpp:extdisco:1",t.NS_DISCO_EXTERNAL_2="urn:xmpp:extdisco:2",t.NS_DATAFORM_MEDIA="urn:xmpp:media-element",t.NS_ATTENTION_0="urn:xmpp:attention:0",t.NS_BOB="urn:xmpp:bob",t.NS_SOFTWARE_INFO="urn:xmpp:dataforms:softwareinfo",t.NS_JINGLE_FILE_TRANSFER_3="urn:xmpp:jingle:apps:file-transfer:3",t.NS_JINGLE_FILE_TRANSFER_4="urn:xmpp:jingle:apps:file-transfer:4",t.NS_JINGLE_FILE_TRANSFER_5="urn:xmpp:jingle:apps:file-transfer:5",t.NS_JINGLE_XML_0="urn:xmpp:jingle:apps:xmlstream:0",t.NS_MUC_DIRECT_INVITE="jabber:x:conference",t.NS_SEC_LABEL_0="urn:xmpp:sec-label:0",t.NS_SEC_LABEL_CATALOG_2="urn:xmpp:sec-label:catalog:2",t.NS_SEC_LABEL_ESS_0="urn:xmpp:sec-label:ess:0",t.NS_JINGLE_SOCKS5_1="urn:xmpp:jingle:transports:s5b:1",t.NS_JINGLE_IBB_1="urn:xmpp:jingle:transports:ibb:1",t.NS_JINGLE_RTP_ZRTP_1="urn:xmpp:jingle:apps:rtp:zrtp:1",t.NS_THUMBS_0="urn:xmpp:thumbs:0",t.NS_THUMBS_1="urn:xmpp:thumbs:1",t.NS_DECLOAKING_0="urn:xmpp:decloaking:0",t.NS_CARBONS_2="urn:xmpp:carbons:2",t.NS_JINGLE_RTP_RTCP_FB_0="urn:xmpp:jingle:apps:rtp:rtcp-fb:0",t.NS_JINGLE_RTP_HDREXT_0="urn:xmpp:jingle:apps:rtp:rtp-hdrext:0",t.NS_FORWARD_0="urn:xmpp:forward:0",t.NS_HASHES_1="urn:xmpp:hashes:1",t.NS_HASHES_2="urn:xmpp:hashes:2";t.NS_HASH_NAME=e=>"urn:xmpp:hash-function-text-names:"+e,t.NS_RTT_0="urn:xmpp:rtt:0",t.NS_MUC_UNIQUE="http://jabber.org/protocol/muc#unique",t.NS_CORRECTION_0="urn:xmpp:message-correct:0",t.NS_PSA="urn:xmpp:psa",t.NS_MAM_TMP="urn:xmpp:mam:tmp",t.NS_MAM_0="urn:xmpp:mam:0",t.NS_MAM_1="urn:xmpp:mam:1",t.NS_MAM_2="urn:xmpp:mam:2",t.NS_HATS_0="urn:xmpp:hats:0",t.NS_IDLE_1="urn:xmpp:idle:1",t.NS_JINGLE_DTLS_0="urn:xmpp:jingle:apps:dtls:0",t.NS_CHAT_MARKERS_0="urn:xmpp:chat-markers:0",t.NS_HINTS="urn:xmpp:hints",t.NS_JSON_0="urn:xmpp:json:0",t.NS_JINGLE_GROUPING_0="urn:xmpp:jingle:apps:grouping:0",t.NS_JINGLE_RTP_SSMA_0="urn:xmpp:jingle:apps:rtp:ssma:0",t.NS_JINGLE_DTLS_SCTP_1="urn:xmpp:jingle:transports:dtls-sctp:1",t.NS_CSI_0="urn:xmpp:csi:0",t.NS_JINGLE_MSG_INITIATE_0="urn:xmpp:jingle:jingle-message:0",t.NS_DELEGATION_1="urn:xmpp:delegation:1",t.NS_PUSH_0="urn:xmpp:push:0",t.NS_JINGLE_PUB_1="urn:xmpp:jinglepub:1",t.NS_SID_0="urn:xmpp:sid:0",t.NS_HTTP_UPLOAD_0="urn:xmpp:http:upload:0",t.NS_JINGLE_HTTP_0="urn:xmpp:jingle:transports:http:0",t.NS_JINGLE_HTTP_UPLOAD_0="urn:xmpp:jingle:transports:http:upload:0",t.NS_JINGLE_ICE_0="urn:xmpp:jingle:transports:ice:0",t.NS_REFERENCE_0="urn:xmpp:reference:0",t.NS_EME_0="urn:xmpp:eme:0",t.NS_SPOILER_0="urn:xmpp:spoiler:0",t.NS_OMEMO_AXOLOTL="eu.siacs.conversations.axolotl",t.NS_OMEMO_AXOLOTL_DEVICELIST="eu.siacs.conversations.axolotl.devicelist",t.NS_OMEMO_AXOLOTL_BUNDLES="eu.siacs.conversations.axolotl.bundles";t.NS_OMEMO_AXOLOTL_BUNDLE=e=>`${t.NS_OMEMO_AXOLOTL_BUNDLES}:${e}`,t.NS_JSON_MESSAGE_0="urn:xmpp:json-msg:0",t.NS_XRD="http://docs.oasis-open.org/ns/xri/xrd-1.0",t.NS_JINGLE_RTP_MSID_0="urn:xmpp:jingle:apps:rtp:msid:0"},function(e,t,n){"use strict";var i=n(19),r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=p;var s=Object.create(n(15));s.inherits=n(16);var o=n(39),a=n(42);s.inherits(p,o);for(var c=r(a.prototype),l=0;l<c.length;l++){var u=c[l];p.prototype[u]||(p.prototype[u]=a.prototype[u])}function p(e){if(!(this instanceof p))return new p(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||i.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),p.prototype._destroy=function(e,t){this.push(null),this.end(),i.nextTick(t,e)}},function(e,t,n){"use strict";var i=n(2);function r(e,t,n,i,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}i.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var s=r.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){o[e]={value:e}})),Object.defineProperties(r,o),Object.defineProperty(s,"isAxiosError",{value:!0}),r.from=function(e,t,n,o,a,c){var l=Object.create(s);return i.toFlatObject(e,l,(function(e){return e!==Error.prototype})),r.call(l,e.message,t,n,o,a),l.name=e.name,c&&Object.assign(l,c),l},e.exports=r},function(e,t,n){"use strict";function i(e,...t){return(...n)=>e(...t,...n)}function r(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}n.r(t),n.d(t,"apply",(function(){return i})),n.d(t,"applyEach",(function(){return R})),n.d(t,"applyEachSeries",(function(){return P})),n.d(t,"asyncify",(function(){return p})),n.d(t,"auto",(function(){return F})),n.d(t,"autoInject",(function(){return z})),n.d(t,"cargo",(function(){return $})),n.d(t,"cargoQueue",(function(){return H})),n.d(t,"compose",(function(){return K})),n.d(t,"concat",(function(){return Z})),n.d(t,"concatLimit",(function(){return Y})),n.d(t,"concatSeries",(function(){return ee})),n.d(t,"constant",(function(){return te})),n.d(t,"detect",(function(){return ie})),n.d(t,"detectLimit",(function(){return re})),n.d(t,"detectSeries",(function(){return se})),n.d(t,"dir",(function(){return ae})),n.d(t,"doUntil",(function(){return le})),n.d(t,"doWhilst",(function(){return ce})),n.d(t,"each",(function(){return pe})),n.d(t,"eachLimit",(function(){return de})),n.d(t,"eachOf",(function(){return N})),n.d(t,"eachOfLimit",(function(){return I})),n.d(t,"eachOfSeries",(function(){return O})),n.d(t,"eachSeries",(function(){return he})),n.d(t,"ensureAsync",(function(){return fe})),n.d(t,"every",(function(){return me})),n.d(t,"everyLimit",(function(){return ge})),n.d(t,"everySeries",(function(){return ve})),n.d(t,"filter",(function(){return Se})),n.d(t,"filterLimit",(function(){return we})),n.d(t,"filterSeries",(function(){return xe})),n.d(t,"forever",(function(){return Te})),n.d(t,"groupBy",(function(){return Ie})),n.d(t,"groupByLimit",(function(){return ke})),n.d(t,"groupBySeries",(function(){return je})),n.d(t,"log",(function(){return Ee})),n.d(t,"map",(function(){return C})),n.d(t,"mapLimit",(function(){return X})),n.d(t,"mapSeries",(function(){return A})),n.d(t,"mapValues",(function(){return Ce})),n.d(t,"mapValuesLimit",(function(){return Ne})),n.d(t,"mapValuesSeries",(function(){return Re})),n.d(t,"memoize",(function(){return Oe})),n.d(t,"nextTick",(function(){return Ae})),n.d(t,"parallel",(function(){return qe})),n.d(t,"parallelLimit",(function(){return Le})),n.d(t,"priorityQueue",(function(){return Ue})),n.d(t,"queue",(function(){return Fe})),n.d(t,"race",(function(){return ze})),n.d(t,"reduce",(function(){return W})),n.d(t,"reduceRight",(function(){return Je})),n.d(t,"reflect",(function(){return Ge})),n.d(t,"reflectAll",(function(){return Ve})),n.d(t,"reject",(function(){return He})),n.d(t,"rejectLimit",(function(){return We})),n.d(t,"rejectSeries",(function(){return Qe})),n.d(t,"retry",(function(){return Xe})),n.d(t,"retryable",(function(){return Ze})),n.d(t,"seq",(function(){return Q})),n.d(t,"series",(function(){return et})),n.d(t,"setImmediate",(function(){return u})),n.d(t,"some",(function(){return tt})),n.d(t,"someLimit",(function(){return nt})),n.d(t,"someSeries",(function(){return it})),n.d(t,"sortBy",(function(){return rt})),n.d(t,"timeout",(function(){return st})),n.d(t,"times",(function(){return at})),n.d(t,"timesLimit",(function(){return ot})),n.d(t,"timesSeries",(function(){return ct})),n.d(t,"transform",(function(){return lt})),n.d(t,"tryEach",(function(){return ut})),n.d(t,"unmemoize",(function(){return pt})),n.d(t,"until",(function(){return ht})),n.d(t,"waterfall",(function(){return ft})),n.d(t,"whilst",(function(){return dt})),n.d(t,"all",(function(){return me})),n.d(t,"allLimit",(function(){return ge})),n.d(t,"allSeries",(function(){return ve})),n.d(t,"any",(function(){return tt})),n.d(t,"anyLimit",(function(){return nt})),n.d(t,"anySeries",(function(){return it})),n.d(t,"find",(function(){return ie})),n.d(t,"findLimit",(function(){return re})),n.d(t,"findSeries",(function(){return se})),n.d(t,"flatMap",(function(){return Z})),n.d(t,"flatMapLimit",(function(){return Y})),n.d(t,"flatMapSeries",(function(){return ee})),n.d(t,"forEach",(function(){return pe})),n.d(t,"forEachSeries",(function(){return he})),n.d(t,"forEachLimit",(function(){return de})),n.d(t,"forEachOf",(function(){return N})),n.d(t,"forEachOfSeries",(function(){return O})),n.d(t,"forEachOfLimit",(function(){return I})),n.d(t,"inject",(function(){return W})),n.d(t,"foldl",(function(){return W})),n.d(t,"foldr",(function(){return Je})),n.d(t,"select",(function(){return Se})),n.d(t,"selectLimit",(function(){return we})),n.d(t,"selectSeries",(function(){return xe})),n.d(t,"wrapSync",(function(){return p})),n.d(t,"during",(function(){return dt})),n.d(t,"doDuring",(function(){return ce}));var s="function"==typeof queueMicrotask&&queueMicrotask,o="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function c(e){setTimeout(e,0)}function l(e){return(t,...n)=>e(()=>t(...n))}var u=l(s?queueMicrotask:o?setImmediate:a?process.nextTick:c);function p(e){return f(e)?function(...t){const n=t.pop();return d(e.apply(this,t),n)}:r((function(t,n){var i;try{i=e.apply(this,t)}catch(e){return n(e)}if(i&&"function"==typeof i.then)return d(i,n);n(null,i)}))}function d(e,t){return e.then(e=>{h(t,null,e)},e=>{h(t,e&&e.message?e:new Error(e))})}function h(e,t,n){try{e(t,n)}catch(e){u(e=>{throw e},e)}}function f(e){return"AsyncFunction"===e[Symbol.toStringTag]}function m(e){if("function"!=typeof e)throw new Error("expected a function");return f(e)?p(e):e}function g(e,t=e.length){if(!t)throw new Error("arity is undefined");return function(...n){return"function"==typeof n[t-1]?e.apply(this,n):new Promise((i,r)=>{n[t-1]=(e,...t)=>{if(e)return r(e);i(t.length>1?t:t[0])},e.apply(this,n)})}}function v(e){return function(t,...n){return g((function(i){var r=this;return e(t,(e,t)=>{m(e).apply(r,n.concat(t))},i)}))}}function b(e,t,n,i){t=t||[];var r=[],s=0,o=m(n);return e(t,(e,t,n)=>{var i=s++;o(e,(e,t)=>{r[i]=t,n(e)})},e=>{i(e,r)})}function y(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}const _={};function S(e){function t(...t){if(null!==e){var n=e;e=null,n.apply(this,t)}}return Object.assign(t,e),t}function w(e){if(y(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,i,r,s=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return s?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(s):(n=(t=e)?Object.keys(t):[],i=-1,r=n.length,function e(){var s=n[++i];return"__proto__"===s?e():i<r?{value:t[s],key:s}:null})}function x(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var n=e;e=null,n.apply(this,t)}}function T(e,t,n,i){let r=!1,s=!1,o=!1,a=0,c=0;function l(){a>=t||o||r||(o=!0,e.next().then(({value:e,done:t})=>{if(!s&&!r){if(o=!1,t)return r=!0,void(a<=0&&i(null));a++,n(e,c,u),c++,l()}}).catch(p))}function u(e,t){if(a-=1,!s)return e?p(e):!1===e?(r=!0,void(s=!0)):t===_||r&&a<=0?(r=!0,i(null)):void l()}function p(e){s||(o=!1,r=!0,i(e))}l()}var k=e=>(t,n,i)=>{if(i=S(i),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return i(null);if("AsyncGenerator"===t[Symbol.toStringTag])return T(t,e,n,i);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return T(t[Symbol.asyncIterator](),e,n,i);var r=w(t),s=!1,o=!1,a=0,c=!1;function l(e,t){if(!o)if(a-=1,e)s=!0,i(e);else if(!1===e)s=!0,o=!0;else{if(t===_||s&&a<=0)return s=!0,i(null);c||u()}}function u(){for(c=!0;a<e&&!s;){var t=r();if(null===t)return s=!0,void(a<=0&&i(null));a+=1,n(t.value,t.key,x(l))}c=!1}u()};var I=g((function(e,t,n,i){return k(t)(e,m(n),i)}),4);function j(e,t,n){n=S(n);var i=0,r=0,{length:s}=e,o=!1;function a(e,t){!1===e&&(o=!0),!0!==o&&(e?n(e):++r!==s&&t!==_||n(null))}for(0===s&&n(null);i<s;i++)t(e[i],i,x(a))}function E(e,t,n){return I(e,1/0,t,n)}var N=g((function(e,t,n){return(y(e)?j:E)(e,m(t),n)}),3);var C=g((function(e,t,n){return b(N,e,t,n)}),3),R=v(C);var O=g((function(e,t,n){return I(e,1,t,n)}),3);var A=g((function(e,t,n){return b(O,e,t,n)}),3),P=v(A);const q=Symbol("promiseCallback");function L(){let e,t;function n(n,...i){if(n)return t(n);e(i.length>1?i:i[0])}return n[q]=new Promise((n,i)=>{e=n,t=i}),n}function F(e,t,n){"number"!=typeof t&&(n=t,t=null),n=S(n||L());var i=Object.keys(e).length;if(!i)return n(null);t||(t=i);var r={},s=0,o=!1,a=!1,c=Object.create(null),l=[],u=[],p={};function d(e,t){l.push(()=>function(e,t){if(a)return;var i=x((t,...i)=>{if(s--,!1!==t)if(i.length<2&&([i]=i),t){var l={};if(Object.keys(r).forEach(e=>{l[e]=r[e]}),l[e]=i,a=!0,c=Object.create(null),o)return;n(t,l)}else r[e]=i,(c[e]||[]).forEach(e=>e()),h();else o=!0});s++;var l=m(t[t.length-1]);t.length>1?l(r,i):l(i)}(e,t))}function h(){if(!o){if(0===l.length&&0===s)return n(null,r);for(;l.length&&s<t;){l.shift()()}}}function f(t){var n=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)&&r.indexOf(t)>=0&&n.push(i)}),n}return Object.keys(e).forEach(t=>{var n=e[t];if(!Array.isArray(n))return d(t,[n]),void u.push(t);var i=n.slice(0,n.length-1),r=i.length;if(0===r)return d(t,n),void u.push(t);p[t]=r,i.forEach(s=>{if(!e[s])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+s+"` in "+i.join(", "));!function(e,t){var n=c[e];n||(n=c[e]=[]);n.push(t)}(s,()=>{0===--r&&d(t,n)})})}),function(){var e,t=0;for(;u.length;)e=u.pop(),t++,f(e).forEach(e=>{0==--p[e]&&u.push(e)});if(t!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h(),n[q]}var M=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,D=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,B=/,/,U=/(=.+)?(\s*)$/;function z(e,t){var n={};return Object.keys(e).forEach(t=>{var i,r=e[t],s=f(r),o=!s&&1===r.length||s&&0===r.length;if(Array.isArray(r))i=[...r],r=i.pop(),n[t]=i.concat(i.length>0?a:r);else if(o)n[t]=r;else{if(i=function(e){const t=function(e){let t="",n=0,i=e.indexOf("*/");for(;n<e.length;)if("/"===e[n]&&"/"===e[n+1]){let t=e.indexOf("\n",n);n=-1===t?e.length:t}else if(-1!==i&&"/"===e[n]&&"*"===e[n+1]){let r=e.indexOf("*/",n);-1!==r?(n=r+2,i=e.indexOf("*/",n)):(t+=e[n],n++)}else t+=e[n],n++;return t}(e.toString());let n=t.match(M);if(n||(n=t.match(D)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,i]=n;return i.replace(/\s/g,"").split(B).map(e=>e.replace(U,"").trim())}(r),0===r.length&&!s&&0===i.length)throw new Error("autoInject task functions require explicit parameters.");s||i.pop(),n[t]=i.concat(a)}function a(e,t){var n=i.map(t=>e[t]);n.push(t),m(r)(...n)}}),F(n,t)}class J{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):G(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):G(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function G(e,t){e.length=1,e.head=e.tail=t}function V(e,t,n){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var i=m(e),r=0,s=[];const o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(e,t){return e?t?void(o[e]=o[e].filter(e=>e!==t)):o[e]=[]:Object.keys(o).forEach(e=>o[e]=[])}function c(e,...t){o[e].forEach(e=>e(...t))}var l=!1;function p(e,t,n,i){if(null!=i&&"function"!=typeof i)throw new Error("task callback must be a function");var r,s;function o(e,...t){return e?n?s(e):r():t.length<=1?r(t[0]):void r(t)}v.started=!0;var a={data:e,callback:n?o:i||o};if(t?v._tasks.unshift(a):v._tasks.push(a),l||(l=!0,u(()=>{l=!1,v.process()})),n||!i)return new Promise((e,t)=>{r=e,s=t})}function d(e){return function(t,...n){r-=1;for(var i=0,o=e.length;i<o;i++){var a=e[i],l=s.indexOf(a);0===l?s.shift():l>0&&s.splice(l,1),a.callback(t,...n),null!=t&&c("error",t,a.data)}r<=v.concurrency-v.buffer&&c("unsaturated"),v.idle()&&c("drain"),v.process()}}function h(e){return!(0!==e.length||!v.idle())&&(u(()=>c("drain")),!0)}const f=e=>t=>{if(!t)return new Promise((t,n)=>{!function(e,t){const n=(...i)=>{a(e,n),t(...i)};o[e].push(n)}(e,(e,i)=>{if(e)return n(e);t(i)})});a(e),function(e,t){o[e].push(t)}(e,t)};var g=!1,v={_tasks:new J,*[Symbol.iterator](){yield*v._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>p(e,!1,!1,t))}return p(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>p(e,!1,!0,t))}return p(e,!1,!0,t)},kill(){a(),v._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>p(e,!0,!1,t))}return p(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>p(e,!0,!0,t))}return p(e,!0,!0,t)},remove(e){v._tasks.remove(e)},process(){if(!g){for(g=!0;!v.paused&&r<v.concurrency&&v._tasks.length;){var e=[],t=[],n=v._tasks.length;v.payload&&(n=Math.min(n,v.payload));for(var o=0;o<n;o++){var a=v._tasks.shift();e.push(a),s.push(a),t.push(a.data)}r+=1,0===v._tasks.length&&c("empty"),r===v.concurrency&&c("saturated");var l=x(d(e));i(t,l)}g=!1}},length:()=>v._tasks.length,running:()=>r,workersList:()=>s,idle:()=>v._tasks.length+r===0,pause(){v.paused=!0},resume(){!1!==v.paused&&(v.paused=!1,u(v.process))}};return Object.defineProperties(v,{saturated:{writable:!1,value:f("saturated")},unsaturated:{writable:!1,value:f("unsaturated")},empty:{writable:!1,value:f("empty")},drain:{writable:!1,value:f("drain")},error:{writable:!1,value:f("error")}}),v}function $(e,t){return V(e,1,t)}function H(e,t,n){return V(e,t,n)}var W=g((function(e,t,n,i){i=S(i);var r=m(n);return O(e,(e,n,i)=>{r(t,e,(e,n)=>{t=n,i(e)})},e=>i(e,t))}),4);function Q(...e){var t=e.map(m);return function(...e){var n=this,i=e[e.length-1];return"function"==typeof i?e.pop():i=L(),W(t,e,(e,t,i)=>{t.apply(n,e.concat((e,...t)=>{i(e,t)}))},(e,t)=>i(e,...t)),i[q]}}function K(...e){return Q(...e.reverse())}var X=g((function(e,t,n,i){return b(k(t),e,n,i)}),4);var Y=g((function(e,t,n,i){var r=m(n);return X(e,t,(e,t)=>{r(e,(e,...n)=>e?t(e):t(e,n))},(e,t)=>{for(var n=[],r=0;r<t.length;r++)t[r]&&(n=n.concat(...t[r]));return i(e,n)})}),4);var Z=g((function(e,t,n){return Y(e,1/0,t,n)}),3);var ee=g((function(e,t,n){return Y(e,1,t,n)}),3);function te(...e){return function(...t){return t.pop()(null,...e)}}function ne(e,t){return(n,i,r,s)=>{var o,a=!1;const c=m(r);n(i,(n,i,r)=>{c(n,(i,s)=>i||!1===i?r(i):e(s)&&!o?(a=!0,o=t(!0,n),r(null,_)):void r())},e=>{if(e)return s(e);s(null,a?o:t(!1))})}}var ie=g((function(e,t,n){return ne(e=>e,(e,t)=>t)(N,e,t,n)}),3);var re=g((function(e,t,n,i){return ne(e=>e,(e,t)=>t)(k(t),e,n,i)}),4);var se=g((function(e,t,n){return ne(e=>e,(e,t)=>t)(k(1),e,t,n)}),3);function oe(e){return(t,...n)=>m(t)(...n,(t,...n)=>{"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&n.forEach(t=>console[e](t)))})}var ae=oe("dir");var ce=g((function(e,t,n){n=x(n);var i,r=m(e),s=m(t);function o(e,...t){if(e)return n(e);!1!==e&&(i=t,s(...t,a))}function a(e,t){return e?n(e):!1!==e?t?void r(o):n(null,...i):void 0}return a(null,!0)}),3);function le(e,t,n){const i=m(t);return ce(e,(...e)=>{const t=e.pop();i(...e,(e,n)=>t(e,!n))},n)}function ue(e){return(t,n,i)=>e(t,i)}var pe=g((function(e,t,n){return N(e,ue(m(t)),n)}),3);var de=g((function(e,t,n,i){return k(t)(e,ue(m(n)),i)}),4);var he=g((function(e,t,n){return de(e,1,t,n)}),3);function fe(e){return f(e)?e:function(...t){var n=t.pop(),i=!0;t.push((...e)=>{i?u(()=>n(...e)):n(...e)}),e.apply(this,t),i=!1}}var me=g((function(e,t,n){return ne(e=>!e,e=>!e)(N,e,t,n)}),3);var ge=g((function(e,t,n,i){return ne(e=>!e,e=>!e)(k(t),e,n,i)}),4);var ve=g((function(e,t,n){return ne(e=>!e,e=>!e)(O,e,t,n)}),3);function be(e,t,n,i){var r=new Array(t.length);e(t,(e,t,i)=>{n(e,(e,n)=>{r[t]=!!n,i(e)})},e=>{if(e)return i(e);for(var n=[],s=0;s<t.length;s++)r[s]&&n.push(t[s]);i(null,n)})}function ye(e,t,n,i){var r=[];e(t,(e,t,i)=>{n(e,(n,s)=>{if(n)return i(n);s&&r.push({index:t,value:e}),i(n)})},e=>{if(e)return i(e);i(null,r.sort((e,t)=>e.index-t.index).map(e=>e.value))})}function _e(e,t,n,i){return(y(t)?be:ye)(e,t,m(n),i)}var Se=g((function(e,t,n){return _e(N,e,t,n)}),3);var we=g((function(e,t,n,i){return _e(k(t),e,n,i)}),4);var xe=g((function(e,t,n){return _e(O,e,t,n)}),3);var Te=g((function(e,t){var n=x(t),i=m(fe(e));return function e(t){if(t)return n(t);!1!==t&&i(e)}()}),2);var ke=g((function(e,t,n,i){var r=m(n);return X(e,t,(e,t)=>{r(e,(n,i)=>n?t(n):t(n,{key:i,val:e}))},(e,t)=>{for(var n={},{hasOwnProperty:r}=Object.prototype,s=0;s<t.length;s++)if(t[s]){var{key:o}=t[s],{val:a}=t[s];r.call(n,o)?n[o].push(a):n[o]=[a]}return i(e,n)})}),4);function Ie(e,t,n){return ke(e,1/0,t,n)}function je(e,t,n){return ke(e,1,t,n)}var Ee=oe("log");var Ne=g((function(e,t,n,i){i=S(i);var r={},s=m(n);return k(t)(e,(e,t,n)=>{s(e,t,(e,i)=>{if(e)return n(e);r[t]=i,n(e)})},e=>i(e,r))}),4);function Ce(e,t,n){return Ne(e,1/0,t,n)}function Re(e,t,n){return Ne(e,1,t,n)}function Oe(e,t=(e=>e)){var n=Object.create(null),i=Object.create(null),s=m(e),o=r((e,r)=>{var o=t(...e);o in n?u(()=>r(null,...n[o])):o in i?i[o].push(r):(i[o]=[r],s(...e,(e,...t)=>{e||(n[o]=t);var r=i[o];delete i[o];for(var s=0,a=r.length;s<a;s++)r[s](e,...t)}))});return o.memo=n,o.unmemoized=e,o}var Ae=l(a?process.nextTick:o?setImmediate:c),Pe=g((e,t,n)=>{var i=y(t)?[]:{};e(t,(e,t,n)=>{m(e)((e,...r)=>{r.length<2&&([r]=r),i[t]=r,n(e)})},e=>n(e,i))},3);function qe(e,t){return Pe(N,e,t)}function Le(e,t,n){return Pe(k(t),e,n)}function Fe(e,t){var n=m(e);return V((e,t)=>{n(e[0],t)},t,1)}class Me{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&Be(this.heap[e],this.heap[t=De(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&Be(this.heap[t+1],this.heap[t])&&(t+=1),!Be(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=De(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function De(e){return(e+1>>1)-1}function Be(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function Ue(e,t){var n=Fe(e,t),i=!1;return n._tasks=new Me,n.push=function(e,t=0,r=(()=>{})){if("function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,Array.isArray(e)||(e=[e]),0===e.length&&n.idle())return u(()=>n.drain());for(var s=0,o=e.length;s<o;s++){var a={data:e[s],priority:t,callback:r};n._tasks.push(a)}i||(i=!0,u(()=>{i=!1,n.process()}))},delete n.unshift,n}var ze=g((function(e,t){if(t=S(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,i=e.length;n<i;n++)m(e[n])(t)}),2);function Je(e,t,n,i){var r=[...e].reverse();return W(r,t,n,i)}function Ge(e){var t=m(e);return r((function(e,n){return e.push((e,...t)=>{let i={};if(e&&(i.error=e),t.length>0){var r=t;t.length<=1&&([r]=t),i.value=r}n(null,i)}),t.apply(this,e)}))}function Ve(e){var t;return Array.isArray(e)?t=e.map(Ge):(t={},Object.keys(e).forEach(n=>{t[n]=Ge.call(this,e[n])})),t}function $e(e,t,n,i){const r=m(n);return _e(e,t,(e,t)=>{r(e,(e,n)=>{t(e,!n)})},i)}var He=g((function(e,t,n){return $e(N,e,t,n)}),3);var We=g((function(e,t,n,i){return $e(k(t),e,n,i)}),4);var Qe=g((function(e,t,n){return $e(O,e,t,n)}),3);function Ke(e){return function(){return e}}function Xe(e,t,n){var i={times:5,intervalFunc:Ke(0)};if(arguments.length<3&&"function"==typeof e?(n=t||L(),t=e):(Ye(i,e),n=n||L()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var r=m(t),s=1;function o(){r((e,...t)=>{!1!==e&&(e&&s++<i.times&&("function"!=typeof i.errorFilter||i.errorFilter(e))?setTimeout(o,i.intervalFunc(s-1)):n(e,...t))})}return o(),n[q]}function Ye(e,t){if("object"==typeof t)e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:Ke(+t.interval||0),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||5}}function Ze(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;f(t)&&(n+=1);var i=m(t);return r((t,r)=>{function s(e){i(...t,e)}return(t.length<n-1||null==r)&&(t.push(r),r=L()),e?Xe(e,s,r):Xe(s,r),r[q]})}function et(e,t){return Pe(O,e,t)}var tt=g((function(e,t,n){return ne(Boolean,e=>e)(N,e,t,n)}),3);var nt=g((function(e,t,n,i){return ne(Boolean,e=>e)(k(t),e,n,i)}),4);var it=g((function(e,t,n){return ne(Boolean,e=>e)(O,e,t,n)}),3);var rt=g((function(e,t,n){var i=m(t);return C(e,(e,t)=>{i(e,(n,i)=>{if(n)return t(n);t(n,{value:e,criteria:i})})},(e,t)=>{if(e)return n(e);n(null,t.sort(r).map(e=>e.value))});function r(e,t){var n=e.criteria,i=t.criteria;return n<i?-1:n>i?1:0}}),3);function st(e,t,n){var i=m(e);return r((r,s)=>{var o,a=!1;r.push((...e)=>{a||(s(...e),clearTimeout(o))}),o=setTimeout((function(){var t=e.name||"anonymous",i=new Error('Callback function "'+t+'" timed out.');i.code="ETIMEDOUT",n&&(i.info=n),a=!0,s(i)}),t),i(...r)})}function ot(e,t,n,i){var r=m(n);return X(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,r,i)}function at(e,t,n){return ot(e,1/0,t,n)}function ct(e,t,n){return ot(e,1,t,n)}function lt(e,t,n,i){arguments.length<=3&&"function"==typeof t&&(i=n,n=t,t=Array.isArray(e)?[]:{}),i=S(i||L());var r=m(n);return N(e,(e,n,i)=>{r(t,e,n,i)},e=>i(e,t)),i[q]}var ut=g((function(e,t){var n,i=null;return he(e,(e,t)=>{m(e)((e,...r)=>{if(!1===e)return t(e);r.length<2?[n]=r:n=r,i=e,t(e?null:{})})},()=>t(i,n))}));function pt(e){return(...t)=>(e.unmemoized||e)(...t)}var dt=g((function(e,t,n){n=x(n);var i=m(t),r=m(e),s=[];function o(e,...t){if(e)return n(e);s=t,!1!==e&&r(a)}function a(e,t){return e?n(e):!1!==e?t?void i(o):n(null,...s):void 0}return r(a)}),3);function ht(e,t,n){const i=m(e);return dt(e=>i((t,n)=>e(t,!n)),t,n)}var ft=g((function(e,t){if(t=S(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function i(t){m(e[n++])(...t,x(r))}function r(r,...s){if(!1!==r)return r||n===e.length?t(r,...s):void i(s)}i([])})),mt={apply:i,applyEach:R,applyEachSeries:P,asyncify:p,auto:F,autoInject:z,cargo:$,cargoQueue:H,compose:K,concat:Z,concatLimit:Y,concatSeries:ee,constant:te,detect:ie,detectLimit:re,detectSeries:se,dir:ae,doUntil:le,doWhilst:ce,each:pe,eachLimit:de,eachOf:N,eachOfLimit:I,eachOfSeries:O,eachSeries:he,ensureAsync:fe,every:me,everyLimit:ge,everySeries:ve,filter:Se,filterLimit:we,filterSeries:xe,forever:Te,groupBy:Ie,groupByLimit:ke,groupBySeries:je,log:Ee,map:C,mapLimit:X,mapSeries:A,mapValues:Ce,mapValuesLimit:Ne,mapValuesSeries:Re,memoize:Oe,nextTick:Ae,parallel:qe,parallelLimit:Le,priorityQueue:Ue,queue:Fe,race:ze,reduce:W,reduceRight:Je,reflect:Ge,reflectAll:Ve,reject:He,rejectLimit:We,rejectSeries:Qe,retry:Xe,retryable:Ze,seq:Q,series:et,setImmediate:u,some:tt,someLimit:nt,someSeries:it,sortBy:rt,timeout:st,times:at,timesLimit:ot,timesSeries:ct,transform:lt,tryEach:ut,unmemoize:pt,until:ht,waterfall:ft,whilst:dt,all:me,allLimit:ge,allSeries:ve,any:tt,anyLimit:nt,anySeries:it,find:ie,findLimit:re,findSeries:se,flatMap:Z,flatMapLimit:Y,flatMapSeries:ee,forEach:pe,forEachSeries:he,forEachLimit:de,forEachOf:N,forEachOfSeries:O,forEachOfLimit:I,inject:W,foldl:W,foldr:Je,select:Se,selectLimit:we,selectSeries:xe,wrapSync:p,during:dt,doDuring:ce};t.default=mt},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(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]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(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(this,n(10).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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionTypes=void 0,function(e){e.softphone="softphone",e.collaborateVideo="collaborateVideo",e.acdScreenShare="screenShare",e.screenRecording="screenRecording",e.unknown="unknown"}(t.SessionTypes||(t.SessionTypes={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpClient=void 0;const i=n(22).__importStar(n(27)),r=n(8);class s{constructor(){this._httpRetryingRequests=new Map}requestApiWithRetry(e,t,n){const i=r.retryPromise(this.requestApi.bind(this,e,t),e=>e&&e.response&&s.retryStatusCodes.has(e.response.status),n,t.logger);return this._httpRetryingRequests.set(i._id,i),i.promise.then(()=>this.cancelRetryRequest(i._id),()=>this.cancelRetryRequest(i._id)),i}requestApi(e,t){const n=t.logger||console,r=(new Date).getTime(),s=this._buildUri(t.host,e,t.version),o={method:t.method,url:s,data:t.data,headers:{"content-type":t.contentType||"application/json"}};t.noAuthHeader||(o.headers.Authorization="Bearer "+t.authToken);const a=function(e){var s;let a=(new Date).getTime(),c=a-r+"ms";if(e instanceof i.AxiosError){const t=e.response||{};let i=t.status,r=null===(s=t.headers)||void 0===s?void 0:s["inin-correlation-id"],l=t.data;return n.debug("request error: "+o.url,{message:e.message,now:a,elapsed:c,status:i,correlationId:r,body:l},!0),Promise.reject(e)}let l=e.status,u=e.headers["inin-correlation-id"],p=JSON.stringify(e.data);return n.debug(`response: ${t.method.toUpperCase()} ${o.url}`,{now:a,status:l,elapsed:c,correlationId:u,body:p},!0),Promise.resolve(e)};return i.default(o).then(a.bind(this),a.bind(this))}stopAllRetries(){Array.from(this._httpRetryingRequests.keys()).forEach(e=>this.cancelRetryRequest(e))}cancelRetryRequest(e){const t=this._httpRetryingRequests.get(e);return t&&(t.cancel(new Error("Retry request cancelled")),this._httpRetryingRequests.delete(e)),!0}formatRequestError(e){if(this.isSuperagentNetworkError(e))return{status:e.status,method:e.method,url:e.url,crossDomain:e.crossDomain,message:e.message,name:e.name,stack:e.stack};if(this.isSuperagentResponseError(e)){const t=e.response;return{status:e.status,correlationId:t.headers["inin-correlation-id"],message:"Error making HTTP request",method:t.req.method,name:t.error.name,stack:t.error.stack}}return e}isSuperagentNetworkError(e){return e&&e.hasOwnProperty("status")&&e.hasOwnProperty("method")&&e.hasOwnProperty("url")}isSuperagentResponseError(e){return!!(e&&e.response&&e.response.body&&e.response.req)}_buildUri(e,t,n="v2"){return t=t.replace(/^\/+|\/+$/g,""),0===e.indexOf("http")?`${e}/api/${n}/${t}`:`https://api.${e}/api/${n}/${t}`}}t.HttpClient=s,s.retryStatusCodes=new Set([408,413,429,500,502,503,504])},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,i,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var s,o,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,i)}));case 4:return t.nextTick((function(){e.call(null,n,i,r)}));default:for(s=new Array(a-1),o=0;o<s.length;)s[o++]=arguments[o];return t.nextTick((function(){e.apply(null,s)}))}}}:e.exports=t}).call(this,n(7))},function(e,t,n){var i=n(10),r=i.Buffer;function s(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(s(i,t),t.Buffer=o),s(r,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){"use strict";var i=n(13);function r(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}n(2).inherits(r,i,{__CANCEL__:!0}),e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return r})),n.d(t,"__assign",(function(){return s})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return l})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return p})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return f})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return v})),n.d(t,"__asyncGenerator",(function(){return b})),n.d(t,"__asyncDelegator",(function(){return y})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return S})),n.d(t,"__importStar",(function(){return w})),n.d(t,"__importDefault",(function(){return x}));
23
+ var i=n(74),r=n(75),s=n(76);function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,n)}function l(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(t,n),r=(e=a(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?a(e,0):d(e,t);if("Buffer"===t.type&&s(t.data))return d(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(u(t),e=a(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|h(t.length);e=a(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function h(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function f(e,t){if(c.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 n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return B(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return E(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function v(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,i,r);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,i,r){var s,o=1,a=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,a/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var u=-1;for(s=n;s<a;s++)if(l(e,s)===l(t,-1===u?0:s-u)){if(-1===u&&(u=s),s-u+1===c)return u*o}else-1!==u&&(s-=s-u),u=-1}else for(n+c>a&&(n=a-c),s=n;s>=0;s--){for(var p=!0,d=0;d<c;d++)if(l(e,s+d)!==l(t,d)){p=!1;break}if(p)return s}return-1}function y(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var s=t.length;if(s%2!=0)throw new TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var o=0;o<i;++o){var a=parseInt(t.substr(2*o,2),16);if(isNaN(a))return o;e[n+o]=a}return o}function _(e,t,n,i){return z(B(t,e.length-n),e,n,i)}function S(e,t,n,i){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function w(e,t,n,i){return S(e,t,n,i)}function x(e,t,n,i){return z(U(t),e,n,i)}function T(e,t,n,i){return z(function(e,t){for(var n,i,r,s=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),i=n>>8,r=n%256,s.push(r),s.push(i);return s}(t,e.length-n),e,n,i)}function k(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var s,o,a,c,l=e[r],u=null,p=l>239?4:l>223?3:l>191?2:1;if(r+p<=n)switch(p){case 1:l<128&&(u=l);break;case 2:128==(192&(s=e[r+1]))&&(c=(31&l)<<6|63&s)>127&&(u=c);break;case 3:s=e[r+1],o=e[r+2],128==(192&s)&&128==(192&o)&&(c=(15&l)<<12|(63&s)<<6|63&o)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:s=e[r+1],o=e[r+2],a=e[r+3],128==(192&s)&&128==(192&o)&&128==(192&a)&&(c=(15&l)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,p=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=p}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.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:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,i){return u(t),t<=0?a(e,t):void 0!==n?"string"==typeof i?a(e,t).fill(n,i):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return p(null,e)},c.allocUnsafeSlow=function(e){return p(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,s=Math.min(n,i);r<s;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!s(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var o=e[n];if(!c.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?I(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var s=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(t>>>=0),a=Math.min(s,o),l=this.slice(i,r),u=e.slice(t,n),p=0;p<a;++p)if(l[p]!==u[p]){s=l[p],o=u[p];break}return s<o?-1:o<s?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var s=!1;;)switch(i){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),s=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function E(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function N(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",s=t;s<n;++s)r+=D(e[s]);return r}function C(e,t,n){for(var i=e.slice(t,n),r="",s=0;s<i.length;s+=2)r+=String.fromCharCode(i[s]+256*i[s+1]);return r}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function O(e,t,n,i,r,s){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<s)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function A(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,s=Math.min(e.length-n,2);r<s;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function P(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,s=Math.min(e.length-n,4);r<s;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function q(e,t,n,i,r,s){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,i,s){return s||q(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function F(e,t,n,i,s){return s||q(e,0,n,8),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var s=0;s<r;++s)n[s]=this[s+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e],r=1,s=0;++s<t&&(r*=256);)i+=this[e+s]*r;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},c.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e],r=1,s=0;++s<t&&(r*=256);)i+=this[e+s]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=t,r=1,s=this[e+--i];i>0&&(r*=256);)s+=this[e+--i]*r;return s>=(r*=128)&&(s-=Math.pow(2,8*t)),s},c.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,s=0;for(this[t]=255&e;++s<n&&(r*=256);)this[t+s]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||O(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,s=1;for(this[t+r]=255&e;--r>=0&&(s*=256);)this[t+r]=e/s&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):P(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}var s=0,o=1,a=0;for(this[t]=255&e;++s<n&&(o*=256);)e<0&&0===a&&0!==this[t+s-1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);O(this,e,t,n,r-1,-r)}var s=n-1,o=1,a=0;for(this[t+s]=255&e;--s>=0&&(o*=256);)e<0&&0===a&&0!==this[t+s+1]&&(a=1),this[t+s]=(e/o>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):A(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):A(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):P(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||O(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):P(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,s=i-n;if(this===e&&n<t&&t<i)for(r=s-1;r>=0;--r)e[r+t]=this[r+n];else if(s<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<s;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+s),t);return s},c.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var s;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(s=t;s<n;++s)this[s]=e;else{var o=c.isBuffer(e)?e:B(new c(e,i).toString()),a=o.length;for(s=0;s<n-t;++s)this[s+t]=o[s%a]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var i=e.length,r=null,s=[],o=0;o<i;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&s.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&s.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function U(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NS_AVATAR_METADATA=t.NS_AVATAR_DATA=t.NS_ROSTER_DELIMITER=t.NS_GEOLOC=t.NS_AMP=t.NS_INBAND_REGISTRATION=t.NS_REGISTER=t.NS_XHTML_IM=t.NS_XHTML=t.NS_HTTP_AUTH=t.NS_OOB_TRANSFER=t.NS_OOB=t.NS_SOCKS5=t.NS_PUBSUB_OWNER=t.NS_PUBSUB_EVENT=t.NS_PUBSUB_ERRORS=t.NS_PUBSUB=t.NS_RSM=t.NS_SEARCH=t.NS_VCARD_TEMP=t.NS_ADHOC_COMMANDS=t.NS_PRIVATE=t.NS_BOOKMARKS=t.NS_IBB=t.NS_MUC_USER=t.NS_MUC_OWNER=t.NS_MUC_ADMIN=t.NS_MUC=t.NS_ADDRESS=t.NS_DISCO_ITEMS=t.NS_DISCO_INFO=t.NS_LEGACY_CHAT_EVENTS=t.NS_PRIVACY=t.NS_LAST_ACTIVITY=t.NS_RPC=t.NS_DATAFORM=t.NS_FRAMING=t.NS_SUBSCRIPTION_PREAPPROVAL=t.NS_ROSTER_VERSIONING=t.NS_ROSTER=t.NS_STARTTLS=t.NS_STREAMS=t.NS_STREAM=t.NS_STANZAS=t.NS_SESSION=t.NS_SERVER=t.NS_SASL=t.NS_CLIENT=t.NS_BIND=t.NS_ATOM=void 0,t.NS_JINGLE_FILE_TRANSFER_4=t.NS_JINGLE_FILE_TRANSFER_3=t.NS_SOFTWARE_INFO=t.NS_BOB=t.NS_ATTENTION_0=t.NS_DATAFORM_MEDIA=t.NS_DISCO_EXTERNAL_2=t.NS_DISCO_EXTERNAL_1=t.NS_BOSH_XMPP=t.NS_DELAY=t.NS_TIME=t.NS_PING=t.NS_SMACKS_3=t.NS_BLOCKING_ERRORS=t.NS_BLOCKING=t.NS_INVISIBLE_0=t.NS_RECEIPTS=t.NS_JINGLE_RAW_UDP_1=t.NS_JINGLE_ICE_UDP_1=t.NS_NICK=t.NS_LANG_TRANS_ITEMS=t.NS_LANG_TRANS=t.NS_JINGLE_RTP_VIDEO=t.NS_JINGLE_RTP_AUDIO=t.NS_JINGLE_RTP_INFO_1=t.NS_JINGLE_RTP_ERRORS_1=t.NS_JINGLE_RTP_1=t.NS_JINGLE_ERRORS_1=t.NS_JINGLE_1=t.NS_PEP_NOTIFY=t.NS_CAPTCHA=t.NS_ALT_CONNECTIONS_XBOSH=t.NS_ALT_CONNECTIONS_WEBSOCKET=t.NS_VCARD_TEMP_UPDATE=t.NS_REACH_0=t.NS_ROSTER_NOTES=t.NS_ROSTER_EXCHANGE=t.NS_DATAFORM_LAYOUT=t.NS_COMPRESSION=t.NS_COMPRESSION_FEATURE=t.NS_SHIM=t.NS_BOSH=t.NS_DATAFORM_VALIDATION=t.NS_TUNE=t.NS_DISCO_LEGACY_CAPS=t.NS_COMPONENT=t.NS_ACTIVITY=t.NS_MOOD=t.NS_VERSION=t.NS_CHAT_STATES=void 0,t.NS_OMEMO_AXOLOTL=t.NS_SPOILER_0=t.NS_EME_0=t.NS_REFERENCE_0=t.NS_JINGLE_ICE_0=t.NS_JINGLE_HTTP_UPLOAD_0=t.NS_JINGLE_HTTP_0=t.NS_HTTP_UPLOAD_0=t.NS_SID_0=t.NS_JINGLE_PUB_1=t.NS_PUSH_0=t.NS_DELEGATION_1=t.NS_JINGLE_MSG_INITIATE_0=t.NS_CSI_0=t.NS_JINGLE_DTLS_SCTP_1=t.NS_JINGLE_RTP_SSMA_0=t.NS_JINGLE_GROUPING_0=t.NS_JSON_0=t.NS_HINTS=t.NS_CHAT_MARKERS_0=t.NS_JINGLE_DTLS_0=t.NS_IDLE_1=t.NS_HATS_0=t.NS_MAM_2=t.NS_MAM_1=t.NS_MAM_0=t.NS_MAM_TMP=t.NS_PSA=t.NS_CORRECTION_0=t.NS_MUC_UNIQUE=t.NS_RTT_0=t.NS_HASH_NAME=t.NS_HASHES_2=t.NS_HASHES_1=t.NS_FORWARD_0=t.NS_JINGLE_RTP_HDREXT_0=t.NS_JINGLE_RTP_RTCP_FB_0=t.NS_CARBONS_2=t.NS_DECLOAKING_0=t.NS_THUMBS_1=t.NS_THUMBS_0=t.NS_JINGLE_RTP_ZRTP_1=t.NS_JINGLE_IBB_1=t.NS_JINGLE_SOCKS5_1=t.NS_SEC_LABEL_ESS_0=t.NS_SEC_LABEL_CATALOG_2=t.NS_SEC_LABEL_0=t.NS_MUC_DIRECT_INVITE=t.NS_JINGLE_XML_0=t.NS_JINGLE_FILE_TRANSFER_5=void 0,t.NS_JINGLE_RTP_MSID_0=t.NS_XRD=t.NS_JSON_MESSAGE_0=t.NS_OMEMO_AXOLOTL_BUNDLE=t.NS_OMEMO_AXOLOTL_BUNDLES=t.NS_OMEMO_AXOLOTL_DEVICELIST=void 0,t.NS_ATOM="http://www.w3.org/2005/Atom",t.NS_BIND="urn:ietf:params:xml:ns:xmpp-bind",t.NS_CLIENT="jabber:client",t.NS_SASL="urn:ietf:params:xml:ns:xmpp-sasl",t.NS_SERVER="jabber:server",t.NS_SESSION="urn:ietf:params:xml:ns:xmpp-session",t.NS_STANZAS="urn:ietf:params:xml:ns:xmpp-stanzas",t.NS_STREAM="http://etherx.jabber.org/streams",t.NS_STREAMS="urn:ietf:params:xml:ns:xmpp-streams",t.NS_STARTTLS="urn:ietf:params:xml:ns:xmpp-tls",t.NS_ROSTER="jabber:iq:roster",t.NS_ROSTER_VERSIONING="urn:xmpp:features:rosterver",t.NS_SUBSCRIPTION_PREAPPROVAL="urn:xmpp:features:pre-approval",t.NS_FRAMING="urn:ietf:params:xml:ns:xmpp-framing",t.NS_DATAFORM="jabber:x:data",t.NS_RPC="jabber:iq:rpc",t.NS_LAST_ACTIVITY="jabber:iq:last",t.NS_PRIVACY="jabber:iq:privacy",t.NS_LEGACY_CHAT_EVENTS="jabber:x:event",t.NS_DISCO_INFO="http://jabber.org/protocol/disco#info",t.NS_DISCO_ITEMS="http://jabber.org/protocol/disco#items",t.NS_ADDRESS="http://jabber.org/protocol/address",t.NS_MUC="http://jabber.org/protocol/muc",t.NS_MUC_ADMIN="http://jabber.org/protocol/muc#admin",t.NS_MUC_OWNER="http://jabber.org/protocol/muc#owner",t.NS_MUC_USER="http://jabber.org/protocol/muc#user",t.NS_IBB="http://jabber.org/protocol/ibb",t.NS_BOOKMARKS="storage:bookmarks",t.NS_PRIVATE="jabber:iq:private",t.NS_ADHOC_COMMANDS="http://jabber.org/protocol/commands",t.NS_VCARD_TEMP="vcard-temp",t.NS_SEARCH="jabber:iq:search",t.NS_RSM="http://jabber.org/protocol/rsm",t.NS_PUBSUB="http://jabber.org/protocol/pubsub",t.NS_PUBSUB_ERRORS="http://jabber.org/protocol/pubsub#errors",t.NS_PUBSUB_EVENT="http://jabber.org/protocol/pubsub#event",t.NS_PUBSUB_OWNER="http://jabber.org/protocol/pubsub#owner",t.NS_SOCKS5="http://jabber.org/protocol/bytestreams",t.NS_OOB="jabber:x:oob",t.NS_OOB_TRANSFER="jabber:iq:oob",t.NS_HTTP_AUTH="http://jabber.org/protocol/http-auth",t.NS_XHTML="http://www.w3.org/1999/xhtml",t.NS_XHTML_IM="http://jabber.org/protocol/xhtml-im",t.NS_REGISTER="jabber:iq:register",t.NS_INBAND_REGISTRATION="http://jabber.org/features/iq-register",t.NS_AMP="http://jabber.org/protocol/amp",t.NS_GEOLOC="http://jabber.org/protocol/geoloc",t.NS_ROSTER_DELIMITER="roster:delimiter",t.NS_AVATAR_DATA="urn:xmpp:avatar:data",t.NS_AVATAR_METADATA="urn:xmpp:avatar:metadata",t.NS_CHAT_STATES="http://jabber.org/protocol/chatstates",t.NS_VERSION="jabber:iq:version",t.NS_MOOD="http://jabber.org/protocol/mood",t.NS_ACTIVITY="http://jabber.org/protocol/activity",t.NS_COMPONENT="jabber:component:accept",t.NS_DISCO_LEGACY_CAPS="http://jabber.org/protocol/caps",t.NS_TUNE="http://jabber.org/protocol/tune",t.NS_DATAFORM_VALIDATION="http://jabber.org/protocol/xdata-validate",t.NS_BOSH="http://jabber.org/protocol/httpbind",t.NS_SHIM="http://jabber.org/protocol/shim",t.NS_COMPRESSION_FEATURE="http://jabber.org/features/compress",t.NS_COMPRESSION="http://jabber.org/protocol/compress",t.NS_DATAFORM_LAYOUT="http://jabber.org/protocol/xdata-layout",t.NS_ROSTER_EXCHANGE="http://jabber.org/protocol/rosterx",t.NS_ROSTER_NOTES="storage:rosternotes",t.NS_REACH_0="urn:xmpp:reach:0",t.NS_VCARD_TEMP_UPDATE="vcard-temp:x:update",t.NS_ALT_CONNECTIONS_WEBSOCKET="urn:xmpp:alt-connections:websocket",t.NS_ALT_CONNECTIONS_XBOSH="urn:xmpp:alt-connections:xbosh",t.NS_CAPTCHA="urn:xmpp:captcha";t.NS_PEP_NOTIFY=e=>e+"+notify",t.NS_JINGLE_1="urn:xmpp:jingle:1",t.NS_JINGLE_ERRORS_1="urn:xmpp:jingle:errors:1",t.NS_JINGLE_RTP_1="urn:xmpp:jingle:apps:rtp:1",t.NS_JINGLE_RTP_ERRORS_1="urn:xmpp:jingle:apps:rtp:errors:1",t.NS_JINGLE_RTP_INFO_1="urn:xmpp:jingle:apps:rtp:info:1",t.NS_JINGLE_RTP_AUDIO="urn:xmpp:jingle:apps:rtp:audio",t.NS_JINGLE_RTP_VIDEO="urn:xmpp:jingle:apps:rtp:video",t.NS_LANG_TRANS="urn:xmpp:langtrans",t.NS_LANG_TRANS_ITEMS="urn:xmpp:langtrans:items",t.NS_NICK="http://jabber.org/protocol/nick",t.NS_JINGLE_ICE_UDP_1="urn:xmpp:jingle:transports:ice-udp:1",t.NS_JINGLE_RAW_UDP_1="urn:xmpp:jingle:transports:raw-udp:1",t.NS_RECEIPTS="urn:xmpp:receipts",t.NS_INVISIBLE_0="urn:xmpp:invisible:0",t.NS_BLOCKING="urn:xmpp:blocking",t.NS_BLOCKING_ERRORS="urn:xmpp:blocking:errors",t.NS_SMACKS_3="urn:xmpp:sm:3",t.NS_PING="urn:xmpp:ping",t.NS_TIME="urn:xmpp:time",t.NS_DELAY="urn:xmpp:delay",t.NS_BOSH_XMPP="urn:xmpp:xbosh",t.NS_DISCO_EXTERNAL_1="urn:xmpp:extdisco:1",t.NS_DISCO_EXTERNAL_2="urn:xmpp:extdisco:2",t.NS_DATAFORM_MEDIA="urn:xmpp:media-element",t.NS_ATTENTION_0="urn:xmpp:attention:0",t.NS_BOB="urn:xmpp:bob",t.NS_SOFTWARE_INFO="urn:xmpp:dataforms:softwareinfo",t.NS_JINGLE_FILE_TRANSFER_3="urn:xmpp:jingle:apps:file-transfer:3",t.NS_JINGLE_FILE_TRANSFER_4="urn:xmpp:jingle:apps:file-transfer:4",t.NS_JINGLE_FILE_TRANSFER_5="urn:xmpp:jingle:apps:file-transfer:5",t.NS_JINGLE_XML_0="urn:xmpp:jingle:apps:xmlstream:0",t.NS_MUC_DIRECT_INVITE="jabber:x:conference",t.NS_SEC_LABEL_0="urn:xmpp:sec-label:0",t.NS_SEC_LABEL_CATALOG_2="urn:xmpp:sec-label:catalog:2",t.NS_SEC_LABEL_ESS_0="urn:xmpp:sec-label:ess:0",t.NS_JINGLE_SOCKS5_1="urn:xmpp:jingle:transports:s5b:1",t.NS_JINGLE_IBB_1="urn:xmpp:jingle:transports:ibb:1",t.NS_JINGLE_RTP_ZRTP_1="urn:xmpp:jingle:apps:rtp:zrtp:1",t.NS_THUMBS_0="urn:xmpp:thumbs:0",t.NS_THUMBS_1="urn:xmpp:thumbs:1",t.NS_DECLOAKING_0="urn:xmpp:decloaking:0",t.NS_CARBONS_2="urn:xmpp:carbons:2",t.NS_JINGLE_RTP_RTCP_FB_0="urn:xmpp:jingle:apps:rtp:rtcp-fb:0",t.NS_JINGLE_RTP_HDREXT_0="urn:xmpp:jingle:apps:rtp:rtp-hdrext:0",t.NS_FORWARD_0="urn:xmpp:forward:0",t.NS_HASHES_1="urn:xmpp:hashes:1",t.NS_HASHES_2="urn:xmpp:hashes:2";t.NS_HASH_NAME=e=>"urn:xmpp:hash-function-text-names:"+e,t.NS_RTT_0="urn:xmpp:rtt:0",t.NS_MUC_UNIQUE="http://jabber.org/protocol/muc#unique",t.NS_CORRECTION_0="urn:xmpp:message-correct:0",t.NS_PSA="urn:xmpp:psa",t.NS_MAM_TMP="urn:xmpp:mam:tmp",t.NS_MAM_0="urn:xmpp:mam:0",t.NS_MAM_1="urn:xmpp:mam:1",t.NS_MAM_2="urn:xmpp:mam:2",t.NS_HATS_0="urn:xmpp:hats:0",t.NS_IDLE_1="urn:xmpp:idle:1",t.NS_JINGLE_DTLS_0="urn:xmpp:jingle:apps:dtls:0",t.NS_CHAT_MARKERS_0="urn:xmpp:chat-markers:0",t.NS_HINTS="urn:xmpp:hints",t.NS_JSON_0="urn:xmpp:json:0",t.NS_JINGLE_GROUPING_0="urn:xmpp:jingle:apps:grouping:0",t.NS_JINGLE_RTP_SSMA_0="urn:xmpp:jingle:apps:rtp:ssma:0",t.NS_JINGLE_DTLS_SCTP_1="urn:xmpp:jingle:transports:dtls-sctp:1",t.NS_CSI_0="urn:xmpp:csi:0",t.NS_JINGLE_MSG_INITIATE_0="urn:xmpp:jingle:jingle-message:0",t.NS_DELEGATION_1="urn:xmpp:delegation:1",t.NS_PUSH_0="urn:xmpp:push:0",t.NS_JINGLE_PUB_1="urn:xmpp:jinglepub:1",t.NS_SID_0="urn:xmpp:sid:0",t.NS_HTTP_UPLOAD_0="urn:xmpp:http:upload:0",t.NS_JINGLE_HTTP_0="urn:xmpp:jingle:transports:http:0",t.NS_JINGLE_HTTP_UPLOAD_0="urn:xmpp:jingle:transports:http:upload:0",t.NS_JINGLE_ICE_0="urn:xmpp:jingle:transports:ice:0",t.NS_REFERENCE_0="urn:xmpp:reference:0",t.NS_EME_0="urn:xmpp:eme:0",t.NS_SPOILER_0="urn:xmpp:spoiler:0",t.NS_OMEMO_AXOLOTL="eu.siacs.conversations.axolotl",t.NS_OMEMO_AXOLOTL_DEVICELIST="eu.siacs.conversations.axolotl.devicelist",t.NS_OMEMO_AXOLOTL_BUNDLES="eu.siacs.conversations.axolotl.bundles";t.NS_OMEMO_AXOLOTL_BUNDLE=e=>`${t.NS_OMEMO_AXOLOTL_BUNDLES}:${e}`,t.NS_JSON_MESSAGE_0="urn:xmpp:json-msg:0",t.NS_XRD="http://docs.oasis-open.org/ns/xri/xrd-1.0",t.NS_JINGLE_RTP_MSID_0="urn:xmpp:jingle:apps:rtp:msid:0"},function(e,t,n){"use strict";var i=n(19),r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=p;var s=Object.create(n(15));s.inherits=n(16);var o=n(39),a=n(42);s.inherits(p,o);for(var c=r(a.prototype),l=0;l<c.length;l++){var u=c[l];p.prototype[u]||(p.prototype[u]=a.prototype[u])}function p(e){if(!(this instanceof p))return new p(e);o.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||i.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),p.prototype._destroy=function(e,t){this.push(null),this.end(),i.nextTick(t,e)}},function(e,t,n){"use strict";var i=n(2);function r(e,t,n,i,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}i.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var s=r.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){o[e]={value:e}})),Object.defineProperties(r,o),Object.defineProperty(s,"isAxiosError",{value:!0}),r.from=function(e,t,n,o,a,c){var l=Object.create(s);return i.toFlatObject(e,l,(function(e){return e!==Error.prototype})),r.call(l,e.message,t,n,o,a),l.name=e.name,c&&Object.assign(l,c),l},e.exports=r},function(e,t,n){"use strict";function i(e,...t){return(...n)=>e(...t,...n)}function r(e){return function(...t){var n=t.pop();return e.call(this,t,n)}}n.r(t),n.d(t,"apply",(function(){return i})),n.d(t,"applyEach",(function(){return R})),n.d(t,"applyEachSeries",(function(){return P})),n.d(t,"asyncify",(function(){return p})),n.d(t,"auto",(function(){return F})),n.d(t,"autoInject",(function(){return z})),n.d(t,"cargo",(function(){return $})),n.d(t,"cargoQueue",(function(){return H})),n.d(t,"compose",(function(){return K})),n.d(t,"concat",(function(){return Z})),n.d(t,"concatLimit",(function(){return Y})),n.d(t,"concatSeries",(function(){return ee})),n.d(t,"constant",(function(){return te})),n.d(t,"detect",(function(){return ie})),n.d(t,"detectLimit",(function(){return re})),n.d(t,"detectSeries",(function(){return se})),n.d(t,"dir",(function(){return ae})),n.d(t,"doUntil",(function(){return le})),n.d(t,"doWhilst",(function(){return ce})),n.d(t,"each",(function(){return pe})),n.d(t,"eachLimit",(function(){return de})),n.d(t,"eachOf",(function(){return N})),n.d(t,"eachOfLimit",(function(){return I})),n.d(t,"eachOfSeries",(function(){return O})),n.d(t,"eachSeries",(function(){return he})),n.d(t,"ensureAsync",(function(){return fe})),n.d(t,"every",(function(){return me})),n.d(t,"everyLimit",(function(){return ge})),n.d(t,"everySeries",(function(){return ve})),n.d(t,"filter",(function(){return Se})),n.d(t,"filterLimit",(function(){return we})),n.d(t,"filterSeries",(function(){return xe})),n.d(t,"forever",(function(){return Te})),n.d(t,"groupBy",(function(){return Ie})),n.d(t,"groupByLimit",(function(){return ke})),n.d(t,"groupBySeries",(function(){return je})),n.d(t,"log",(function(){return Ee})),n.d(t,"map",(function(){return C})),n.d(t,"mapLimit",(function(){return X})),n.d(t,"mapSeries",(function(){return A})),n.d(t,"mapValues",(function(){return Ce})),n.d(t,"mapValuesLimit",(function(){return Ne})),n.d(t,"mapValuesSeries",(function(){return Re})),n.d(t,"memoize",(function(){return Oe})),n.d(t,"nextTick",(function(){return Ae})),n.d(t,"parallel",(function(){return qe})),n.d(t,"parallelLimit",(function(){return Le})),n.d(t,"priorityQueue",(function(){return Ue})),n.d(t,"queue",(function(){return Fe})),n.d(t,"race",(function(){return ze})),n.d(t,"reduce",(function(){return W})),n.d(t,"reduceRight",(function(){return Je})),n.d(t,"reflect",(function(){return Ge})),n.d(t,"reflectAll",(function(){return Ve})),n.d(t,"reject",(function(){return He})),n.d(t,"rejectLimit",(function(){return We})),n.d(t,"rejectSeries",(function(){return Qe})),n.d(t,"retry",(function(){return Xe})),n.d(t,"retryable",(function(){return Ze})),n.d(t,"seq",(function(){return Q})),n.d(t,"series",(function(){return et})),n.d(t,"setImmediate",(function(){return u})),n.d(t,"some",(function(){return tt})),n.d(t,"someLimit",(function(){return nt})),n.d(t,"someSeries",(function(){return it})),n.d(t,"sortBy",(function(){return rt})),n.d(t,"timeout",(function(){return st})),n.d(t,"times",(function(){return at})),n.d(t,"timesLimit",(function(){return ot})),n.d(t,"timesSeries",(function(){return ct})),n.d(t,"transform",(function(){return lt})),n.d(t,"tryEach",(function(){return ut})),n.d(t,"unmemoize",(function(){return pt})),n.d(t,"until",(function(){return ht})),n.d(t,"waterfall",(function(){return ft})),n.d(t,"whilst",(function(){return dt})),n.d(t,"all",(function(){return me})),n.d(t,"allLimit",(function(){return ge})),n.d(t,"allSeries",(function(){return ve})),n.d(t,"any",(function(){return tt})),n.d(t,"anyLimit",(function(){return nt})),n.d(t,"anySeries",(function(){return it})),n.d(t,"find",(function(){return ie})),n.d(t,"findLimit",(function(){return re})),n.d(t,"findSeries",(function(){return se})),n.d(t,"flatMap",(function(){return Z})),n.d(t,"flatMapLimit",(function(){return Y})),n.d(t,"flatMapSeries",(function(){return ee})),n.d(t,"forEach",(function(){return pe})),n.d(t,"forEachSeries",(function(){return he})),n.d(t,"forEachLimit",(function(){return de})),n.d(t,"forEachOf",(function(){return N})),n.d(t,"forEachOfSeries",(function(){return O})),n.d(t,"forEachOfLimit",(function(){return I})),n.d(t,"inject",(function(){return W})),n.d(t,"foldl",(function(){return W})),n.d(t,"foldr",(function(){return Je})),n.d(t,"select",(function(){return Se})),n.d(t,"selectLimit",(function(){return we})),n.d(t,"selectSeries",(function(){return xe})),n.d(t,"wrapSync",(function(){return p})),n.d(t,"during",(function(){return dt})),n.d(t,"doDuring",(function(){return ce}));var s="function"==typeof queueMicrotask&&queueMicrotask,o="function"==typeof setImmediate&&setImmediate,a="object"==typeof process&&"function"==typeof process.nextTick;function c(e){setTimeout(e,0)}function l(e){return(t,...n)=>e(()=>t(...n))}var u=l(s?queueMicrotask:o?setImmediate:a?process.nextTick:c);function p(e){return f(e)?function(...t){const n=t.pop();return d(e.apply(this,t),n)}:r((function(t,n){var i;try{i=e.apply(this,t)}catch(e){return n(e)}if(i&&"function"==typeof i.then)return d(i,n);n(null,i)}))}function d(e,t){return e.then(e=>{h(t,null,e)},e=>{h(t,e&&e.message?e:new Error(e))})}function h(e,t,n){try{e(t,n)}catch(e){u(e=>{throw e},e)}}function f(e){return"AsyncFunction"===e[Symbol.toStringTag]}function m(e){if("function"!=typeof e)throw new Error("expected a function");return f(e)?p(e):e}function g(e,t=e.length){if(!t)throw new Error("arity is undefined");return function(...n){return"function"==typeof n[t-1]?e.apply(this,n):new Promise((i,r)=>{n[t-1]=(e,...t)=>{if(e)return r(e);i(t.length>1?t:t[0])},e.apply(this,n)})}}function v(e){return function(t,...n){return g((function(i){var r=this;return e(t,(e,t)=>{m(e).apply(r,n.concat(t))},i)}))}}function b(e,t,n,i){t=t||[];var r=[],s=0,o=m(n);return e(t,(e,t,n)=>{var i=s++;o(e,(e,t)=>{r[i]=t,n(e)})},e=>{i(e,r)})}function y(e){return e&&"number"==typeof e.length&&e.length>=0&&e.length%1==0}const _={};function S(e){function t(...t){if(null!==e){var n=e;e=null,n.apply(this,t)}}return Object.assign(t,e),t}function w(e){if(y(e))return function(e){var t=-1,n=e.length;return function(){return++t<n?{value:e[t],key:t}:null}}(e);var t,n,i,r,s=function(e){return e[Symbol.iterator]&&e[Symbol.iterator]()}(e);return s?function(e){var t=-1;return function(){var n=e.next();return n.done?null:(t++,{value:n.value,key:t})}}(s):(n=(t=e)?Object.keys(t):[],i=-1,r=n.length,function e(){var s=n[++i];return"__proto__"===s?e():i<r?{value:t[s],key:s}:null})}function x(e){return function(...t){if(null===e)throw new Error("Callback was already called.");var n=e;e=null,n.apply(this,t)}}function T(e,t,n,i){let r=!1,s=!1,o=!1,a=0,c=0;function l(){a>=t||o||r||(o=!0,e.next().then(({value:e,done:t})=>{if(!s&&!r){if(o=!1,t)return r=!0,void(a<=0&&i(null));a++,n(e,c,u),c++,l()}}).catch(p))}function u(e,t){if(a-=1,!s)return e?p(e):!1===e?(r=!0,void(s=!0)):t===_||r&&a<=0?(r=!0,i(null)):void l()}function p(e){s||(o=!1,r=!0,i(e))}l()}var k=e=>(t,n,i)=>{if(i=S(i),e<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!t)return i(null);if("AsyncGenerator"===t[Symbol.toStringTag])return T(t,e,n,i);if(function(e){return"function"==typeof e[Symbol.asyncIterator]}(t))return T(t[Symbol.asyncIterator](),e,n,i);var r=w(t),s=!1,o=!1,a=0,c=!1;function l(e,t){if(!o)if(a-=1,e)s=!0,i(e);else if(!1===e)s=!0,o=!0;else{if(t===_||s&&a<=0)return s=!0,i(null);c||u()}}function u(){for(c=!0;a<e&&!s;){var t=r();if(null===t)return s=!0,void(a<=0&&i(null));a+=1,n(t.value,t.key,x(l))}c=!1}u()};var I=g((function(e,t,n,i){return k(t)(e,m(n),i)}),4);function j(e,t,n){n=S(n);var i=0,r=0,{length:s}=e,o=!1;function a(e,t){!1===e&&(o=!0),!0!==o&&(e?n(e):++r!==s&&t!==_||n(null))}for(0===s&&n(null);i<s;i++)t(e[i],i,x(a))}function E(e,t,n){return I(e,1/0,t,n)}var N=g((function(e,t,n){return(y(e)?j:E)(e,m(t),n)}),3);var C=g((function(e,t,n){return b(N,e,t,n)}),3),R=v(C);var O=g((function(e,t,n){return I(e,1,t,n)}),3);var A=g((function(e,t,n){return b(O,e,t,n)}),3),P=v(A);const q=Symbol("promiseCallback");function L(){let e,t;function n(n,...i){if(n)return t(n);e(i.length>1?i:i[0])}return n[q]=new Promise((n,i)=>{e=n,t=i}),n}function F(e,t,n){"number"!=typeof t&&(n=t,t=null),n=S(n||L());var i=Object.keys(e).length;if(!i)return n(null);t||(t=i);var r={},s=0,o=!1,a=!1,c=Object.create(null),l=[],u=[],p={};function d(e,t){l.push(()=>function(e,t){if(a)return;var i=x((t,...i)=>{if(s--,!1!==t)if(i.length<2&&([i]=i),t){var l={};if(Object.keys(r).forEach(e=>{l[e]=r[e]}),l[e]=i,a=!0,c=Object.create(null),o)return;n(t,l)}else r[e]=i,(c[e]||[]).forEach(e=>e()),h();else o=!0});s++;var l=m(t[t.length-1]);t.length>1?l(r,i):l(i)}(e,t))}function h(){if(!o){if(0===l.length&&0===s)return n(null,r);for(;l.length&&s<t;){l.shift()()}}}function f(t){var n=[];return Object.keys(e).forEach(i=>{const r=e[i];Array.isArray(r)&&r.indexOf(t)>=0&&n.push(i)}),n}return Object.keys(e).forEach(t=>{var n=e[t];if(!Array.isArray(n))return d(t,[n]),void u.push(t);var i=n.slice(0,n.length-1),r=i.length;if(0===r)return d(t,n),void u.push(t);p[t]=r,i.forEach(s=>{if(!e[s])throw new Error("async.auto task `"+t+"` has a non-existent dependency `"+s+"` in "+i.join(", "));!function(e,t){var n=c[e];n||(n=c[e]=[]);n.push(t)}(s,()=>{0===--r&&d(t,n)})})}),function(){var e,t=0;for(;u.length;)e=u.pop(),t++,f(e).forEach(e=>{0==--p[e]&&u.push(e)});if(t!==i)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),h(),n[q]}var M=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,D=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,B=/,/,U=/(=.+)?(\s*)$/;function z(e,t){var n={};return Object.keys(e).forEach(t=>{var i,r=e[t],s=f(r),o=!s&&1===r.length||s&&0===r.length;if(Array.isArray(r))i=[...r],r=i.pop(),n[t]=i.concat(i.length>0?a:r);else if(o)n[t]=r;else{if(i=function(e){const t=function(e){let t="",n=0,i=e.indexOf("*/");for(;n<e.length;)if("/"===e[n]&&"/"===e[n+1]){let t=e.indexOf("\n",n);n=-1===t?e.length:t}else if(-1!==i&&"/"===e[n]&&"*"===e[n+1]){let r=e.indexOf("*/",n);-1!==r?(n=r+2,i=e.indexOf("*/",n)):(t+=e[n],n++)}else t+=e[n],n++;return t}(e.toString());let n=t.match(M);if(n||(n=t.match(D)),!n)throw new Error("could not parse args in autoInject\nSource:\n"+t);let[,i]=n;return i.replace(/\s/g,"").split(B).map(e=>e.replace(U,"").trim())}(r),0===r.length&&!s&&0===i.length)throw new Error("autoInject task functions require explicit parameters.");s||i.pop(),n[t]=i.concat(a)}function a(e,t){var n=i.map(t=>e[t]);n.push(t),m(r)(...n)}}),F(n,t)}class J{constructor(){this.head=this.tail=null,this.length=0}removeLink(e){return e.prev?e.prev.next=e.next:this.head=e.next,e.next?e.next.prev=e.prev:this.tail=e.prev,e.prev=e.next=null,this.length-=1,e}empty(){for(;this.head;)this.shift();return this}insertAfter(e,t){t.prev=e,t.next=e.next,e.next?e.next.prev=t:this.tail=t,e.next=t,this.length+=1}insertBefore(e,t){t.prev=e.prev,t.next=e,e.prev?e.prev.next=t:this.head=t,e.prev=t,this.length+=1}unshift(e){this.head?this.insertBefore(this.head,e):G(this,e)}push(e){this.tail?this.insertAfter(this.tail,e):G(this,e)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var e=this.head;e;)yield e.data,e=e.next}remove(e){for(var t=this.head;t;){var{next:n}=t;e(t)&&this.removeLink(t),t=n}return this}}function G(e,t){e.length=1,e.head=e.tail=t}function V(e,t,n){if(null==t)t=1;else if(0===t)throw new RangeError("Concurrency must not be zero");var i=m(e),r=0,s=[];const o={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function a(e,t){return e?t?void(o[e]=o[e].filter(e=>e!==t)):o[e]=[]:Object.keys(o).forEach(e=>o[e]=[])}function c(e,...t){o[e].forEach(e=>e(...t))}var l=!1;function p(e,t,n,i){if(null!=i&&"function"!=typeof i)throw new Error("task callback must be a function");var r,s;function o(e,...t){return e?n?s(e):r():t.length<=1?r(t[0]):void r(t)}v.started=!0;var a={data:e,callback:n?o:i||o};if(t?v._tasks.unshift(a):v._tasks.push(a),l||(l=!0,u(()=>{l=!1,v.process()})),n||!i)return new Promise((e,t)=>{r=e,s=t})}function d(e){return function(t,...n){r-=1;for(var i=0,o=e.length;i<o;i++){var a=e[i],l=s.indexOf(a);0===l?s.shift():l>0&&s.splice(l,1),a.callback(t,...n),null!=t&&c("error",t,a.data)}r<=v.concurrency-v.buffer&&c("unsaturated"),v.idle()&&c("drain"),v.process()}}function h(e){return!(0!==e.length||!v.idle())&&(u(()=>c("drain")),!0)}const f=e=>t=>{if(!t)return new Promise((t,n)=>{!function(e,t){const n=(...i)=>{a(e,n),t(...i)};o[e].push(n)}(e,(e,i)=>{if(e)return n(e);t(i)})});a(e),function(e,t){o[e].push(t)}(e,t)};var g=!1,v={_tasks:new J,*[Symbol.iterator](){yield*v._tasks[Symbol.iterator]()},concurrency:t,payload:n,buffer:t/4,started:!1,paused:!1,push(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>p(e,!1,!1,t))}return p(e,!1,!1,t)},pushAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>p(e,!1,!0,t))}return p(e,!1,!0,t)},kill(){a(),v._tasks.empty()},unshift(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>p(e,!0,!1,t))}return p(e,!0,!1,t)},unshiftAsync(e,t){if(Array.isArray(e)){if(h(e))return;return e.map(e=>p(e,!0,!0,t))}return p(e,!0,!0,t)},remove(e){v._tasks.remove(e)},process(){if(!g){for(g=!0;!v.paused&&r<v.concurrency&&v._tasks.length;){var e=[],t=[],n=v._tasks.length;v.payload&&(n=Math.min(n,v.payload));for(var o=0;o<n;o++){var a=v._tasks.shift();e.push(a),s.push(a),t.push(a.data)}r+=1,0===v._tasks.length&&c("empty"),r===v.concurrency&&c("saturated");var l=x(d(e));i(t,l)}g=!1}},length:()=>v._tasks.length,running:()=>r,workersList:()=>s,idle:()=>v._tasks.length+r===0,pause(){v.paused=!0},resume(){!1!==v.paused&&(v.paused=!1,u(v.process))}};return Object.defineProperties(v,{saturated:{writable:!1,value:f("saturated")},unsaturated:{writable:!1,value:f("unsaturated")},empty:{writable:!1,value:f("empty")},drain:{writable:!1,value:f("drain")},error:{writable:!1,value:f("error")}}),v}function $(e,t){return V(e,1,t)}function H(e,t,n){return V(e,t,n)}var W=g((function(e,t,n,i){i=S(i);var r=m(n);return O(e,(e,n,i)=>{r(t,e,(e,n)=>{t=n,i(e)})},e=>i(e,t))}),4);function Q(...e){var t=e.map(m);return function(...e){var n=this,i=e[e.length-1];return"function"==typeof i?e.pop():i=L(),W(t,e,(e,t,i)=>{t.apply(n,e.concat((e,...t)=>{i(e,t)}))},(e,t)=>i(e,...t)),i[q]}}function K(...e){return Q(...e.reverse())}var X=g((function(e,t,n,i){return b(k(t),e,n,i)}),4);var Y=g((function(e,t,n,i){var r=m(n);return X(e,t,(e,t)=>{r(e,(e,...n)=>e?t(e):t(e,n))},(e,t)=>{for(var n=[],r=0;r<t.length;r++)t[r]&&(n=n.concat(...t[r]));return i(e,n)})}),4);var Z=g((function(e,t,n){return Y(e,1/0,t,n)}),3);var ee=g((function(e,t,n){return Y(e,1,t,n)}),3);function te(...e){return function(...t){return t.pop()(null,...e)}}function ne(e,t){return(n,i,r,s)=>{var o,a=!1;const c=m(r);n(i,(n,i,r)=>{c(n,(i,s)=>i||!1===i?r(i):e(s)&&!o?(a=!0,o=t(!0,n),r(null,_)):void r())},e=>{if(e)return s(e);s(null,a?o:t(!1))})}}var ie=g((function(e,t,n){return ne(e=>e,(e,t)=>t)(N,e,t,n)}),3);var re=g((function(e,t,n,i){return ne(e=>e,(e,t)=>t)(k(t),e,n,i)}),4);var se=g((function(e,t,n){return ne(e=>e,(e,t)=>t)(k(1),e,t,n)}),3);function oe(e){return(t,...n)=>m(t)(...n,(t,...n)=>{"object"==typeof console&&(t?console.error&&console.error(t):console[e]&&n.forEach(t=>console[e](t)))})}var ae=oe("dir");var ce=g((function(e,t,n){n=x(n);var i,r=m(e),s=m(t);function o(e,...t){if(e)return n(e);!1!==e&&(i=t,s(...t,a))}function a(e,t){return e?n(e):!1!==e?t?void r(o):n(null,...i):void 0}return a(null,!0)}),3);function le(e,t,n){const i=m(t);return ce(e,(...e)=>{const t=e.pop();i(...e,(e,n)=>t(e,!n))},n)}function ue(e){return(t,n,i)=>e(t,i)}var pe=g((function(e,t,n){return N(e,ue(m(t)),n)}),3);var de=g((function(e,t,n,i){return k(t)(e,ue(m(n)),i)}),4);var he=g((function(e,t,n){return de(e,1,t,n)}),3);function fe(e){return f(e)?e:function(...t){var n=t.pop(),i=!0;t.push((...e)=>{i?u(()=>n(...e)):n(...e)}),e.apply(this,t),i=!1}}var me=g((function(e,t,n){return ne(e=>!e,e=>!e)(N,e,t,n)}),3);var ge=g((function(e,t,n,i){return ne(e=>!e,e=>!e)(k(t),e,n,i)}),4);var ve=g((function(e,t,n){return ne(e=>!e,e=>!e)(O,e,t,n)}),3);function be(e,t,n,i){var r=new Array(t.length);e(t,(e,t,i)=>{n(e,(e,n)=>{r[t]=!!n,i(e)})},e=>{if(e)return i(e);for(var n=[],s=0;s<t.length;s++)r[s]&&n.push(t[s]);i(null,n)})}function ye(e,t,n,i){var r=[];e(t,(e,t,i)=>{n(e,(n,s)=>{if(n)return i(n);s&&r.push({index:t,value:e}),i(n)})},e=>{if(e)return i(e);i(null,r.sort((e,t)=>e.index-t.index).map(e=>e.value))})}function _e(e,t,n,i){return(y(t)?be:ye)(e,t,m(n),i)}var Se=g((function(e,t,n){return _e(N,e,t,n)}),3);var we=g((function(e,t,n,i){return _e(k(t),e,n,i)}),4);var xe=g((function(e,t,n){return _e(O,e,t,n)}),3);var Te=g((function(e,t){var n=x(t),i=m(fe(e));return function e(t){if(t)return n(t);!1!==t&&i(e)}()}),2);var ke=g((function(e,t,n,i){var r=m(n);return X(e,t,(e,t)=>{r(e,(n,i)=>n?t(n):t(n,{key:i,val:e}))},(e,t)=>{for(var n={},{hasOwnProperty:r}=Object.prototype,s=0;s<t.length;s++)if(t[s]){var{key:o}=t[s],{val:a}=t[s];r.call(n,o)?n[o].push(a):n[o]=[a]}return i(e,n)})}),4);function Ie(e,t,n){return ke(e,1/0,t,n)}function je(e,t,n){return ke(e,1,t,n)}var Ee=oe("log");var Ne=g((function(e,t,n,i){i=S(i);var r={},s=m(n);return k(t)(e,(e,t,n)=>{s(e,t,(e,i)=>{if(e)return n(e);r[t]=i,n(e)})},e=>i(e,r))}),4);function Ce(e,t,n){return Ne(e,1/0,t,n)}function Re(e,t,n){return Ne(e,1,t,n)}function Oe(e,t=(e=>e)){var n=Object.create(null),i=Object.create(null),s=m(e),o=r((e,r)=>{var o=t(...e);o in n?u(()=>r(null,...n[o])):o in i?i[o].push(r):(i[o]=[r],s(...e,(e,...t)=>{e||(n[o]=t);var r=i[o];delete i[o];for(var s=0,a=r.length;s<a;s++)r[s](e,...t)}))});return o.memo=n,o.unmemoized=e,o}var Ae=l(a?process.nextTick:o?setImmediate:c),Pe=g((e,t,n)=>{var i=y(t)?[]:{};e(t,(e,t,n)=>{m(e)((e,...r)=>{r.length<2&&([r]=r),i[t]=r,n(e)})},e=>n(e,i))},3);function qe(e,t){return Pe(N,e,t)}function Le(e,t,n){return Pe(k(t),e,n)}function Fe(e,t){var n=m(e);return V((e,t)=>{n(e[0],t)},t,1)}class Me{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(e){let t;for(;e>0&&Be(this.heap[e],this.heap[t=De(e)]);){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}percDown(e){let t;for(;(t=1+(e<<1))<this.heap.length&&(t+1<this.heap.length&&Be(this.heap[t+1],this.heap[t])&&(t+=1),!Be(this.heap[e],this.heap[t]));){let n=this.heap[e];this.heap[e]=this.heap[t],this.heap[t]=n,e=t}}push(e){e.pushCount=++this.pushCount,this.heap.push(e),this.percUp(this.heap.length-1)}unshift(e){return this.heap.push(e)}shift(){let[e]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),e}toArray(){return[...this]}*[Symbol.iterator](){for(let e=0;e<this.heap.length;e++)yield this.heap[e].data}remove(e){let t=0;for(let n=0;n<this.heap.length;n++)e(this.heap[n])||(this.heap[t]=this.heap[n],t++);this.heap.splice(t);for(let e=De(this.heap.length-1);e>=0;e--)this.percDown(e);return this}}function De(e){return(e+1>>1)-1}function Be(e,t){return e.priority!==t.priority?e.priority<t.priority:e.pushCount<t.pushCount}function Ue(e,t){var n=Fe(e,t),i=!1;return n._tasks=new Me,n.push=function(e,t=0,r=(()=>{})){if("function"!=typeof r)throw new Error("task callback must be a function");if(n.started=!0,Array.isArray(e)||(e=[e]),0===e.length&&n.idle())return u(()=>n.drain());for(var s=0,o=e.length;s<o;s++){var a={data:e[s],priority:t,callback:r};n._tasks.push(a)}i||(i=!0,u(()=>{i=!1,n.process()}))},delete n.unshift,n}var ze=g((function(e,t){if(t=S(t),!Array.isArray(e))return t(new TypeError("First argument to race must be an array of functions"));if(!e.length)return t();for(var n=0,i=e.length;n<i;n++)m(e[n])(t)}),2);function Je(e,t,n,i){var r=[...e].reverse();return W(r,t,n,i)}function Ge(e){var t=m(e);return r((function(e,n){return e.push((e,...t)=>{let i={};if(e&&(i.error=e),t.length>0){var r=t;t.length<=1&&([r]=t),i.value=r}n(null,i)}),t.apply(this,e)}))}function Ve(e){var t;return Array.isArray(e)?t=e.map(Ge):(t={},Object.keys(e).forEach(n=>{t[n]=Ge.call(this,e[n])})),t}function $e(e,t,n,i){const r=m(n);return _e(e,t,(e,t)=>{r(e,(e,n)=>{t(e,!n)})},i)}var He=g((function(e,t,n){return $e(N,e,t,n)}),3);var We=g((function(e,t,n,i){return $e(k(t),e,n,i)}),4);var Qe=g((function(e,t,n){return $e(O,e,t,n)}),3);function Ke(e){return function(){return e}}function Xe(e,t,n){var i={times:5,intervalFunc:Ke(0)};if(arguments.length<3&&"function"==typeof e?(n=t||L(),t=e):(Ye(i,e),n=n||L()),"function"!=typeof t)throw new Error("Invalid arguments for async.retry");var r=m(t),s=1;function o(){r((e,...t)=>{!1!==e&&(e&&s++<i.times&&("function"!=typeof i.errorFilter||i.errorFilter(e))?setTimeout(o,i.intervalFunc(s-1)):n(e,...t))})}return o(),n[q]}function Ye(e,t){if("object"==typeof t)e.times=+t.times||5,e.intervalFunc="function"==typeof t.interval?t.interval:Ke(+t.interval||0),e.errorFilter=t.errorFilter;else{if("number"!=typeof t&&"string"!=typeof t)throw new Error("Invalid arguments for async.retry");e.times=+t||5}}function Ze(e,t){t||(t=e,e=null);let n=e&&e.arity||t.length;f(t)&&(n+=1);var i=m(t);return r((t,r)=>{function s(e){i(...t,e)}return(t.length<n-1||null==r)&&(t.push(r),r=L()),e?Xe(e,s,r):Xe(s,r),r[q]})}function et(e,t){return Pe(O,e,t)}var tt=g((function(e,t,n){return ne(Boolean,e=>e)(N,e,t,n)}),3);var nt=g((function(e,t,n,i){return ne(Boolean,e=>e)(k(t),e,n,i)}),4);var it=g((function(e,t,n){return ne(Boolean,e=>e)(O,e,t,n)}),3);var rt=g((function(e,t,n){var i=m(t);return C(e,(e,t)=>{i(e,(n,i)=>{if(n)return t(n);t(n,{value:e,criteria:i})})},(e,t)=>{if(e)return n(e);n(null,t.sort(r).map(e=>e.value))});function r(e,t){var n=e.criteria,i=t.criteria;return n<i?-1:n>i?1:0}}),3);function st(e,t,n){var i=m(e);return r((r,s)=>{var o,a=!1;r.push((...e)=>{a||(s(...e),clearTimeout(o))}),o=setTimeout((function(){var t=e.name||"anonymous",i=new Error('Callback function "'+t+'" timed out.');i.code="ETIMEDOUT",n&&(i.info=n),a=!0,s(i)}),t),i(...r)})}function ot(e,t,n,i){var r=m(n);return X(function(e){for(var t=Array(e);e--;)t[e]=e;return t}(e),t,r,i)}function at(e,t,n){return ot(e,1/0,t,n)}function ct(e,t,n){return ot(e,1,t,n)}function lt(e,t,n,i){arguments.length<=3&&"function"==typeof t&&(i=n,n=t,t=Array.isArray(e)?[]:{}),i=S(i||L());var r=m(n);return N(e,(e,n,i)=>{r(t,e,n,i)},e=>i(e,t)),i[q]}var ut=g((function(e,t){var n,i=null;return he(e,(e,t)=>{m(e)((e,...r)=>{if(!1===e)return t(e);r.length<2?[n]=r:n=r,i=e,t(e?null:{})})},()=>t(i,n))}));function pt(e){return(...t)=>(e.unmemoized||e)(...t)}var dt=g((function(e,t,n){n=x(n);var i=m(t),r=m(e),s=[];function o(e,...t){if(e)return n(e);s=t,!1!==e&&r(a)}function a(e,t){return e?n(e):!1!==e?t?void i(o):n(null,...s):void 0}return r(a)}),3);function ht(e,t,n){const i=m(e);return dt(e=>i((t,n)=>e(t,!n)),t,n)}var ft=g((function(e,t){if(t=S(t),!Array.isArray(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var n=0;function i(t){m(e[n++])(...t,x(r))}function r(r,...s){if(!1!==r)return r||n===e.length?t(r,...s):void i(s)}i([])})),mt={apply:i,applyEach:R,applyEachSeries:P,asyncify:p,auto:F,autoInject:z,cargo:$,cargoQueue:H,compose:K,concat:Z,concatLimit:Y,concatSeries:ee,constant:te,detect:ie,detectLimit:re,detectSeries:se,dir:ae,doUntil:le,doWhilst:ce,each:pe,eachLimit:de,eachOf:N,eachOfLimit:I,eachOfSeries:O,eachSeries:he,ensureAsync:fe,every:me,everyLimit:ge,everySeries:ve,filter:Se,filterLimit:we,filterSeries:xe,forever:Te,groupBy:Ie,groupByLimit:ke,groupBySeries:je,log:Ee,map:C,mapLimit:X,mapSeries:A,mapValues:Ce,mapValuesLimit:Ne,mapValuesSeries:Re,memoize:Oe,nextTick:Ae,parallel:qe,parallelLimit:Le,priorityQueue:Ue,queue:Fe,race:ze,reduce:W,reduceRight:Je,reflect:Ge,reflectAll:Ve,reject:He,rejectLimit:We,rejectSeries:Qe,retry:Xe,retryable:Ze,seq:Q,series:et,setImmediate:u,some:tt,someLimit:nt,someSeries:it,sortBy:rt,timeout:st,times:at,timesLimit:ot,timesSeries:ct,transform:lt,tryEach:ut,unmemoize:pt,until:ht,waterfall:ft,whilst:dt,all:me,allLimit:ge,allSeries:ve,any:tt,anyLimit:nt,anySeries:it,find:ie,findLimit:re,findSeries:se,flatMap:Z,flatMapLimit:Y,flatMapSeries:ee,forEach:pe,forEachSeries:he,forEachLimit:de,forEachOf:N,forEachOfSeries:O,forEachOfLimit:I,inject:W,foldl:W,foldr:Je,select:Se,selectLimit:we,selectSeries:xe,wrapSync:p,during:dt,doDuring:ce};t.default=mt},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(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]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(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(this,n(10).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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SessionTypes=void 0,function(e){e.softphone="softphone",e.collaborateVideo="collaborateVideo",e.acdScreenShare="screenShare",e.screenRecording="screenRecording",e.unknown="unknown"}(t.SessionTypes||(t.SessionTypes={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpClient=void 0;const i=n(22).__importStar(n(27)),r=n(8);class s{constructor(){this._httpRetryingRequests=new Map}requestApiWithRetry(e,t,n){const i=r.retryPromise(this.requestApi.bind(this,e,t),e=>e&&e.response&&s.retryStatusCodes.has(e.response.status),n,t.logger);return this._httpRetryingRequests.set(i._id,i),i.promise.then(()=>this.cancelRetryRequest(i._id),()=>this.cancelRetryRequest(i._id)),i}requestApi(e,t){const n=t.logger||console,r=(new Date).getTime(),s=this._buildUri(t.host,e,t.version),o={method:t.method,url:s,data:t.data,headers:{"content-type":t.contentType||"application/json"}};t.noAuthHeader||(o.headers.Authorization="Bearer "+t.authToken);const a=e=>{var s;let a=(new Date).getTime(),c=a-r+"ms";if(e instanceof i.AxiosError){const t=e.response||{};let i=t.status,r=null===(s=t.headers)||void 0===s?void 0:s["inin-correlation-id"],l=t.data,u={...e,text:t.request.response};return n.debug("request error: "+o.url,{message:e.message,now:a,elapsed:c,status:i,correlationId:r,body:l},!0),Promise.reject(u)}let l=e.status,u=e.headers["inin-correlation-id"],p=JSON.stringify(e.data);return n.debug(`response: ${t.method.toUpperCase()} ${o.url}`,{now:a,status:l,elapsed:c,correlationId:u,body:p},!0),Promise.resolve(e)};return i.default(o).then(a.bind(this),a.bind(this))}stopAllRetries(){Array.from(this._httpRetryingRequests.keys()).forEach(e=>this.cancelRetryRequest(e))}cancelRetryRequest(e){const t=this._httpRetryingRequests.get(e);return t&&(t.cancel(new Error("Retry request cancelled")),this._httpRetryingRequests.delete(e)),!0}formatRequestError(e){if(this.isSuperagentNetworkError(e))return{status:e.status,method:e.method,url:e.url,crossDomain:e.crossDomain,message:e.message,name:e.name,stack:e.stack};if(this.isSuperagentResponseError(e)){const t=e.response;return{status:e.status,correlationId:t.headers["inin-correlation-id"],message:"Error making HTTP request",method:t.req.method,name:t.error.name,stack:t.error.stack}}return e}isSuperagentNetworkError(e){return e&&e.hasOwnProperty("status")&&e.hasOwnProperty("method")&&e.hasOwnProperty("url")}isSuperagentResponseError(e){return!!(e&&e.response&&e.response.body&&e.response.req)}_buildUri(e,t,n="v2"){return t=t.replace(/^\/+|\/+$/g,""),0===e.indexOf("http")?`${e}/api/${n}/${t}`:`https://api.${e}/api/${n}/${t}`}}t.HttpClient=s,s.retryStatusCodes=new Set([408,413,429,500,502,503,504])},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,i,r){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var s,o,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,i)}));case 4:return t.nextTick((function(){e.call(null,n,i,r)}));default:for(s=new Array(a-1),o=0;o<s.length;)s[o++]=arguments[o];return t.nextTick((function(){e.apply(null,s)}))}}}:e.exports=t}).call(this,n(7))},function(e,t,n){var i=n(10),r=i.Buffer;function s(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=i:(s(i,t),t.Buffer=o),s(r,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,t,n){"use strict";var i=n(13);function r(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}n(2).inherits(r,i,{__CANCEL__:!0}),e.exports=r},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return r})),n.d(t,"__assign",(function(){return s})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return a})),n.d(t,"__param",(function(){return c})),n.d(t,"__metadata",(function(){return l})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return p})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return h})),n.d(t,"__read",(function(){return f})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return v})),n.d(t,"__asyncGenerator",(function(){return b})),n.d(t,"__asyncDelegator",(function(){return y})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return S})),n.d(t,"__importStar",(function(){return w})),n.d(t,"__importDefault",(function(){return x}));
24
24
  /*! *****************************************************************************
25
25
  Copyright (c) Microsoft Corporation. All rights reserved.
26
26
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use