varn=r(29),o=r(30),i=r(31);functions(){returnc.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functiona(t,e){if(s()<e)thrownewRangeError("Invalid typed array length");returnc.TYPED_ARRAY_SUPPORT?(t=newUint8Array(e)).__proto__=c.prototype:(null===t&&(t=newc(e)),t.length=e),t}functionc(t,e,r){if(!(c.TYPED_ARRAY_SUPPORT||thisinstanceofc))returnnewc(t,e,r);if("number"==typeoft){if("string"==typeofe)thrownewError("If encoding is specified then the first argument must be a string");returnf(this,t)}returnu(this,t,e,r)}functionu(t,e,r,n){if("number"==typeofe)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&einstanceofArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)thrownewRangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))thrownewRangeError("'length' is out of bounds");e=void0===r&&void0===n?newUint8Array(e):void0===n?newUint8Array(e,r):newUint8Array(e,r,n);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=p(t,e);returnt}(t,e,r,n):"string"==typeofe?function(t,e,r){"string"==typeofr&&""!==r||(r="utf8");if(!c.isEncoding(r))thrownewTypeError('"encoding" must be a valid string encoding');varn=0|d(e,r),o=(t=a(t,n)).write(e,r);o!==n&&(t=t.slice(0,o));returnt}(t,e,r):function(t,e){if(c.isBuffer(e)){varr=0|l(e.length);return0===(t=a(t,r)).length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!=typeofArrayBuffer&&e.bufferinstanceofArrayBuffer||"length"ine)return"number"!=typeofe.length||(n=e.length)!=n?a(t,0):p(t,e);if("Buffer"===e.type&&i(e.data))returnp(t,e.data)}varn;thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}functionh(t){if("number"!=typeoft)thrownewTypeError('"size" argument must be a number');if(t<0)thrownewRangeError('"size" argument must not be negative')}functionf(t,e){if(h(e),t=a(t,e<0?0:0|l(e)),!c.TYPED_ARRAY_SUPPORT)for(varr=0;r<e;++r)t[r]=0;returnt}functionp(t,e){varr=e.length<0?0:0|l(e.length);t=a(t,r);for(varn=0;n<r;n+=1)t[n]=255&e[n];returnt}functionl(t){if(t>=s())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return0|t}functiond(t,e){if(c.isBuffer(t))returnt.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(t)||tinstanceofArrayBuffer))returnt.byteLength;"string"!=typeoft&&(t=""+t);varr=t.length;if(0===r)return0;for(varn=!1;;)switch(e){case"ascii":case"latin1":case"binary":returnr;case"utf8":case"utf-8":casevoid0:returnM(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*r;case"hex":returnr>>>1;case"base64":returnq(t).length;default:if(n)returnM(t).length;e=(""+e).toLowerCase(),n=!0}}functiony(t,e,r){varn=t[e];t[e]=t[r],t[r]=n}functiong(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeofr?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}elseif(r<0){if(!o)return-1;r=0}if("string"==typeofe&&(e=c.from(e,n)),c.isBuffer(e))return0===e.length?-1:m(t,e,r,n,o);if("number"==typeofe)returne&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeofUint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,o);thrownewTypeError("val must be string, number or Buffer")}functionm(t,e,r,n,o){vari,s=1,a=t.length,c=e.length;if(void0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,r/=2}functionu(t,e){return1===s?t[e]:t.readUInt16BE(e*s)}if(o){varh=-1;for(i=r;i<a;i++)if(u(t,i)===u(e,-1===h?0:i-h)){if(-1===h&&(h=i),i-h+1===c)returnh*s}else-1!==h&&(i-=i-h),h=-1}elsefor(r+c>a&&(r=a-c),i=r;i>=0;i--){for(varf=!0,p=0;p<c;p++)if(u(t,i+p)!==u(e,p)){f=!1;break}if(f)returni}return-1}functionv(t,e,r,n){r=Number(r)||0;varo=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;vari=e.length;if(i%2!=0)thrownewTypeError("Invalidhexs