var e,r;function f(){if(r)return e;r=1;var f=Object.prototype.toString,n="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;return e=function(e,r,o){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return t=e,"ArrayBuffer"===f.call(t).slice(8,-1)?function(e,r,f){r>>>=0;var o=e.byteLength-r;if(o<0)throw new RangeError("'offset' is out of bounds");if(void 0===f)f=o;else if((f>>>=0)>o)throw new RangeError("'length' is out of bounds");return n?Buffer.from(e.slice(r,r+f)):new Buffer(new Uint8Array(e.slice(r,r+f)))}(e,r,o):"string"==typeof e?function(e,r){if("string"==typeof r&&""!==r||(r="utf8"),!Buffer.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');return n?Buffer.from(e,r):new Buffer(e,r)}(e,r):n?Buffer.from(e):new Buffer(e);var t}}export{f as __require};