varn=r(20),i=r(21),o=r(22);functions(){returnf.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functiona(t,e){if(s()<e)thrownewRangeError("Invalid typed array length");returnf.TYPED_ARRAY_SUPPORT?(t=newUint8Array(e)).__proto__=f.prototype:(null===t&&(t=newf(e)),t.length=e),t}functionf(t,e,r){if(!(f.TYPED_ARRAY_SUPPORT||thisinstanceoff))returnnewf(t,e,r);if("number"==typeoft){if("string"==typeofe)thrownewError("If encoding is specified then the first argument must be a string");returnc(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);f.TYPED_ARRAY_SUPPORT?(t=e).__proto__=f.prototype:t=l(t,e);returnt}(t,e,r,n):"string"==typeofe?function(t,e,r){"string"==typeofr&&""!==r||(r="utf8");if(!f.isEncoding(r))thrownewTypeError('"encoding" must be a valid string encoding');varn=0|d(e,r),i=(t=a(t,n)).write(e,r);i!==n&&(t=t.slice(0,i));returnt}(t,e,r):function(t,e){if(f.isBuffer(e)){varr=0|p(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):l(t,e);if("Buffer"===e.type&&o(e.data))returnl(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')}functionc(t,e){if(h(e),t=a(t,e<0?0:0|p(e)),!f.TYPED_ARRAY_SUPPORT)for(varr=0;r<e;++r)t[r]=0;returnt}functionl(t,e){varr=e.length<0?0:0|p(e.length);t=a(t,r);for(varn=0;n<r;n+=1)t[n]=255&e[n];returnt}functionp(t){if(t>=s())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return0|t}functiond(t,e){if(f.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:returnz(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*r;case"hex":returnr>>>1;case"base64":returnY(t).length;default:if(n)returnz(t).length;e=(""+e).toLowerCase(),n=!0}}functionm(t,e,r){varn=t[e];t[e]=t[r],t[r]=n}functiong(t,e,r,n,i){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=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}elseif(r<0){if(!i)return-1;r=0}if("string"==typeofe&&(e=f.from(e,n)),f.isBuffer(e))return0===e.length?-1:A(t,e,r,n,i);if("number"==typeofe)returne&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeofUint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):A(t,[e],r,n,i);thrownewTypeError("val must be string, number or Buffer")}functionA(t,e,r,n,i){varo,s=1,a=t.length,f=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,f/=2,r/=2}functionu(t,e){return1===s?t[e]:t.readUInt16BE(e*s)}if(i){varh=-1;for(o=r;o<a;o++)if(u(t,o)===u(e,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===f)returnh*s}else-1!==h&&(o-=o-h),h=-1}elsefor(r+f>a&&(r=a-f),o=r;o>=0;o--){for(varc=!0,l=0;l<f;l++)if(u(t,o+l)!==u(e,l)){c=!1;break}if(c)returno}return-1}functiony(t,e,r,n){r=Number(r)||0;vari=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;varo=e.length;if(o%2!=0)thrownewTypeError("Invalidhexs