@mcp-use/inspector 0.9.0-canary.1 → 0.9.0-canary.2

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.
@@ -1,4 +1,5 @@
1
- import { b as getAugmentedNamespace, g as getDefaultExportFromCjs } from "./index-B6TgCktd.js";
1
+ import { bh as getAugmentedNamespace, bi as getDefaultExportFromCjs } from "./index-BaR5HKmC.js";
2
+ import { u as util } from "./util-D59LNlyU.js";
2
3
  import { o as os } from "./__vite-browser-external-CHS79mP1.js";
3
4
  import { r as requireBase64Js } from "./index-DX0TIfSM.js";
4
5
  import { p as path } from "./path-QsnVvLoj.js";
@@ -23,10 +24,10 @@ function _mergeNamespaces(n, m) {
23
24
  }
24
25
  var winston$2 = {};
25
26
  var browser$2 = {};
26
- var format$3;
27
+ var format$2;
27
28
  var hasRequiredFormat$1;
28
29
  function requireFormat$1() {
29
- if (hasRequiredFormat$1) return format$3;
30
+ if (hasRequiredFormat$1) return format$2;
30
31
  hasRequiredFormat$1 = 1;
31
32
  function _typeof(o) {
32
33
  "@babel/helpers - typeof";
@@ -118,7 +119,7 @@ function requireFormat$1() {
118
119
  _inherits(InvalidFormatError2, _Error);
119
120
  return _createClass(InvalidFormatError2);
120
121
  })(/* @__PURE__ */ _wrapNativeSuper(Error));
121
- format$3 = function(formatFn) {
122
+ format$2 = function(formatFn) {
122
123
  if (formatFn.length > 2) {
123
124
  throw new InvalidFormatError(formatFn);
124
125
  }
@@ -133,32 +134,12 @@ function requireFormat$1() {
133
134
  createFormatWrap.Format = Format;
134
135
  return createFormatWrap;
135
136
  };
136
- return format$3;
137
+ return format$2;
137
138
  }
138
139
  var colorize = { exports: {} };
139
140
  var safe = { exports: {} };
140
141
  var colors = { exports: {} };
141
- function debuglog() {
142
- return () => {
143
- };
144
- }
145
- function inspect(obj) {
146
- return JSON.stringify(obj);
147
- }
148
- function inherits() {
149
- }
150
- function format$2() {
151
- }
152
- const util = { debuglog, inspect, inherits, format: format$2 };
153
- const util$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
154
- __proto__: null,
155
- debuglog,
156
- default: util,
157
- format: format$2,
158
- inherits,
159
- inspect
160
- }, Symbol.toStringTag, { value: "Module" }));
161
- const require$$0$2 = /* @__PURE__ */ getAugmentedNamespace(util$1);
142
+ const require$$0$2 = /* @__PURE__ */ getAugmentedNamespace(util);
162
143
  var styles = { exports: {} };
163
144
  var hasRequiredStyles;
164
145
  function requireStyles() {
@@ -2280,7 +2261,7 @@ var hasRequiredPrettyPrint;
2280
2261
  function requirePrettyPrint() {
2281
2262
  if (hasRequiredPrettyPrint) return prettyPrint;
2282
2263
  hasRequiredPrettyPrint = 1;
2283
- var inspect2 = require$$0$2.inspect;
2264
+ var inspect = require$$0$2.inspect;
2284
2265
  var format2 = requireFormat$1();
2285
2266
  var _require = requireTripleBeam(), LEVEL = _require.LEVEL, MESSAGE = _require.MESSAGE, SPLAT = _require.SPLAT;
2286
2267
  prettyPrint = format2(function(info) {
@@ -2289,7 +2270,7 @@ function requirePrettyPrint() {
2289
2270
  delete stripped[LEVEL];
2290
2271
  delete stripped[MESSAGE];
2291
2272
  delete stripped[SPLAT];
2292
- info[MESSAGE] = inspect2(stripped, false, opts.depth || null, opts.colorize);
2273
+ info[MESSAGE] = inspect(stripped, false, opts.depth || null, opts.colorize);
2293
2274
  return info;
2294
2275
  });
2295
2276
  return prettyPrint;
@@ -3098,380 +3079,12 @@ function requireBrowser$1() {
3098
3079
  }
3099
3080
  return browser$1;
3100
3081
  }
3101
- var events = { exports: {} };
3102
- var hasRequiredEvents;
3103
- function requireEvents() {
3104
- if (hasRequiredEvents) return events.exports;
3105
- hasRequiredEvents = 1;
3106
- var R = typeof Reflect === "object" ? Reflect : null;
3107
- var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
3108
- return Function.prototype.apply.call(target, receiver, args);
3109
- };
3110
- var ReflectOwnKeys;
3111
- if (R && typeof R.ownKeys === "function") {
3112
- ReflectOwnKeys = R.ownKeys;
3113
- } else if (Object.getOwnPropertySymbols) {
3114
- ReflectOwnKeys = function ReflectOwnKeys2(target) {
3115
- return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
3116
- };
3117
- } else {
3118
- ReflectOwnKeys = function ReflectOwnKeys2(target) {
3119
- return Object.getOwnPropertyNames(target);
3120
- };
3121
- }
3122
- function ProcessEmitWarning(warning) {
3123
- if (console && console.warn) console.warn(warning);
3124
- }
3125
- var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
3126
- return value !== value;
3127
- };
3128
- function EventEmitter() {
3129
- EventEmitter.init.call(this);
3130
- }
3131
- events.exports = EventEmitter;
3132
- events.exports.once = once2;
3133
- EventEmitter.EventEmitter = EventEmitter;
3134
- EventEmitter.prototype._events = void 0;
3135
- EventEmitter.prototype._eventsCount = 0;
3136
- EventEmitter.prototype._maxListeners = void 0;
3137
- var defaultMaxListeners = 10;
3138
- function checkListener(listener) {
3139
- if (typeof listener !== "function") {
3140
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
3141
- }
3142
- }
3143
- Object.defineProperty(EventEmitter, "defaultMaxListeners", {
3144
- enumerable: true,
3145
- get: function() {
3146
- return defaultMaxListeners;
3147
- },
3148
- set: function(arg) {
3149
- if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
3150
- throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
3151
- }
3152
- defaultMaxListeners = arg;
3153
- }
3154
- });
3155
- EventEmitter.init = function() {
3156
- if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
3157
- this._events = /* @__PURE__ */ Object.create(null);
3158
- this._eventsCount = 0;
3159
- }
3160
- this._maxListeners = this._maxListeners || void 0;
3161
- };
3162
- EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
3163
- if (typeof n !== "number" || n < 0 || NumberIsNaN(n)) {
3164
- throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + ".");
3165
- }
3166
- this._maxListeners = n;
3167
- return this;
3168
- };
3169
- function _getMaxListeners(that) {
3170
- if (that._maxListeners === void 0)
3171
- return EventEmitter.defaultMaxListeners;
3172
- return that._maxListeners;
3173
- }
3174
- EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
3175
- return _getMaxListeners(this);
3176
- };
3177
- EventEmitter.prototype.emit = function emit(type) {
3178
- var args = [];
3179
- for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
3180
- var doError = type === "error";
3181
- var events2 = this._events;
3182
- if (events2 !== void 0)
3183
- doError = doError && events2.error === void 0;
3184
- else if (!doError)
3185
- return false;
3186
- if (doError) {
3187
- var er;
3188
- if (args.length > 0)
3189
- er = args[0];
3190
- if (er instanceof Error) {
3191
- throw er;
3192
- }
3193
- var err = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
3194
- err.context = er;
3195
- throw err;
3196
- }
3197
- var handler = events2[type];
3198
- if (handler === void 0)
3199
- return false;
3200
- if (typeof handler === "function") {
3201
- ReflectApply(handler, this, args);
3202
- } else {
3203
- var len = handler.length;
3204
- var listeners = arrayClone(handler, len);
3205
- for (var i = 0; i < len; ++i)
3206
- ReflectApply(listeners[i], this, args);
3207
- }
3208
- return true;
3209
- };
3210
- function _addListener(target, type, listener, prepend) {
3211
- var m;
3212
- var events2;
3213
- var existing;
3214
- checkListener(listener);
3215
- events2 = target._events;
3216
- if (events2 === void 0) {
3217
- events2 = target._events = /* @__PURE__ */ Object.create(null);
3218
- target._eventsCount = 0;
3219
- } else {
3220
- if (events2.newListener !== void 0) {
3221
- target.emit(
3222
- "newListener",
3223
- type,
3224
- listener.listener ? listener.listener : listener
3225
- );
3226
- events2 = target._events;
3227
- }
3228
- existing = events2[type];
3229
- }
3230
- if (existing === void 0) {
3231
- existing = events2[type] = listener;
3232
- ++target._eventsCount;
3233
- } else {
3234
- if (typeof existing === "function") {
3235
- existing = events2[type] = prepend ? [listener, existing] : [existing, listener];
3236
- } else if (prepend) {
3237
- existing.unshift(listener);
3238
- } else {
3239
- existing.push(listener);
3240
- }
3241
- m = _getMaxListeners(target);
3242
- if (m > 0 && existing.length > m && !existing.warned) {
3243
- existing.warned = true;
3244
- var w = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit");
3245
- w.name = "MaxListenersExceededWarning";
3246
- w.emitter = target;
3247
- w.type = type;
3248
- w.count = existing.length;
3249
- ProcessEmitWarning(w);
3250
- }
3251
- }
3252
- return target;
3253
- }
3254
- EventEmitter.prototype.addListener = function addListener(type, listener) {
3255
- return _addListener(this, type, listener, false);
3256
- };
3257
- EventEmitter.prototype.on = EventEmitter.prototype.addListener;
3258
- EventEmitter.prototype.prependListener = function prependListener(type, listener) {
3259
- return _addListener(this, type, listener, true);
3260
- };
3261
- function onceWrapper() {
3262
- if (!this.fired) {
3263
- this.target.removeListener(this.type, this.wrapFn);
3264
- this.fired = true;
3265
- if (arguments.length === 0)
3266
- return this.listener.call(this.target);
3267
- return this.listener.apply(this.target, arguments);
3268
- }
3269
- }
3270
- function _onceWrap(target, type, listener) {
3271
- var state2 = { fired: false, wrapFn: void 0, target, type, listener };
3272
- var wrapped = onceWrapper.bind(state2);
3273
- wrapped.listener = listener;
3274
- state2.wrapFn = wrapped;
3275
- return wrapped;
3276
- }
3277
- EventEmitter.prototype.once = function once3(type, listener) {
3278
- checkListener(listener);
3279
- this.on(type, _onceWrap(this, type, listener));
3280
- return this;
3281
- };
3282
- EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) {
3283
- checkListener(listener);
3284
- this.prependListener(type, _onceWrap(this, type, listener));
3285
- return this;
3286
- };
3287
- EventEmitter.prototype.removeListener = function removeListener(type, listener) {
3288
- var list, events2, position, i, originalListener;
3289
- checkListener(listener);
3290
- events2 = this._events;
3291
- if (events2 === void 0)
3292
- return this;
3293
- list = events2[type];
3294
- if (list === void 0)
3295
- return this;
3296
- if (list === listener || list.listener === listener) {
3297
- if (--this._eventsCount === 0)
3298
- this._events = /* @__PURE__ */ Object.create(null);
3299
- else {
3300
- delete events2[type];
3301
- if (events2.removeListener)
3302
- this.emit("removeListener", type, list.listener || listener);
3303
- }
3304
- } else if (typeof list !== "function") {
3305
- position = -1;
3306
- for (i = list.length - 1; i >= 0; i--) {
3307
- if (list[i] === listener || list[i].listener === listener) {
3308
- originalListener = list[i].listener;
3309
- position = i;
3310
- break;
3311
- }
3312
- }
3313
- if (position < 0)
3314
- return this;
3315
- if (position === 0)
3316
- list.shift();
3317
- else {
3318
- spliceOne(list, position);
3319
- }
3320
- if (list.length === 1)
3321
- events2[type] = list[0];
3322
- if (events2.removeListener !== void 0)
3323
- this.emit("removeListener", type, originalListener || listener);
3324
- }
3325
- return this;
3326
- };
3327
- EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
3328
- EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
3329
- var listeners, events2, i;
3330
- events2 = this._events;
3331
- if (events2 === void 0)
3332
- return this;
3333
- if (events2.removeListener === void 0) {
3334
- if (arguments.length === 0) {
3335
- this._events = /* @__PURE__ */ Object.create(null);
3336
- this._eventsCount = 0;
3337
- } else if (events2[type] !== void 0) {
3338
- if (--this._eventsCount === 0)
3339
- this._events = /* @__PURE__ */ Object.create(null);
3340
- else
3341
- delete events2[type];
3342
- }
3343
- return this;
3344
- }
3345
- if (arguments.length === 0) {
3346
- var keys = Object.keys(events2);
3347
- var key;
3348
- for (i = 0; i < keys.length; ++i) {
3349
- key = keys[i];
3350
- if (key === "removeListener") continue;
3351
- this.removeAllListeners(key);
3352
- }
3353
- this.removeAllListeners("removeListener");
3354
- this._events = /* @__PURE__ */ Object.create(null);
3355
- this._eventsCount = 0;
3356
- return this;
3357
- }
3358
- listeners = events2[type];
3359
- if (typeof listeners === "function") {
3360
- this.removeListener(type, listeners);
3361
- } else if (listeners !== void 0) {
3362
- for (i = listeners.length - 1; i >= 0; i--) {
3363
- this.removeListener(type, listeners[i]);
3364
- }
3365
- }
3366
- return this;
3367
- };
3368
- function _listeners(target, type, unwrap) {
3369
- var events2 = target._events;
3370
- if (events2 === void 0)
3371
- return [];
3372
- var evlistener = events2[type];
3373
- if (evlistener === void 0)
3374
- return [];
3375
- if (typeof evlistener === "function")
3376
- return unwrap ? [evlistener.listener || evlistener] : [evlistener];
3377
- return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
3378
- }
3379
- EventEmitter.prototype.listeners = function listeners(type) {
3380
- return _listeners(this, type, true);
3381
- };
3382
- EventEmitter.prototype.rawListeners = function rawListeners(type) {
3383
- return _listeners(this, type, false);
3384
- };
3385
- EventEmitter.listenerCount = function(emitter, type) {
3386
- if (typeof emitter.listenerCount === "function") {
3387
- return emitter.listenerCount(type);
3388
- } else {
3389
- return listenerCount.call(emitter, type);
3390
- }
3391
- };
3392
- EventEmitter.prototype.listenerCount = listenerCount;
3393
- function listenerCount(type) {
3394
- var events2 = this._events;
3395
- if (events2 !== void 0) {
3396
- var evlistener = events2[type];
3397
- if (typeof evlistener === "function") {
3398
- return 1;
3399
- } else if (evlistener !== void 0) {
3400
- return evlistener.length;
3401
- }
3402
- }
3403
- return 0;
3404
- }
3405
- EventEmitter.prototype.eventNames = function eventNames() {
3406
- return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
3407
- };
3408
- function arrayClone(arr, n) {
3409
- var copy = new Array(n);
3410
- for (var i = 0; i < n; ++i)
3411
- copy[i] = arr[i];
3412
- return copy;
3413
- }
3414
- function spliceOne(list, index) {
3415
- for (; index + 1 < list.length; index++)
3416
- list[index] = list[index + 1];
3417
- list.pop();
3418
- }
3419
- function unwrapListeners(arr) {
3420
- var ret = new Array(arr.length);
3421
- for (var i = 0; i < ret.length; ++i) {
3422
- ret[i] = arr[i].listener || arr[i];
3423
- }
3424
- return ret;
3425
- }
3426
- function once2(emitter, name) {
3427
- return new Promise(function(resolve, reject) {
3428
- function errorListener(err) {
3429
- emitter.removeListener(name, resolver);
3430
- reject(err);
3431
- }
3432
- function resolver() {
3433
- if (typeof emitter.removeListener === "function") {
3434
- emitter.removeListener("error", errorListener);
3435
- }
3436
- resolve([].slice.call(arguments));
3437
- }
3438
- eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
3439
- if (name !== "error") {
3440
- addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
3441
- }
3442
- });
3443
- }
3444
- function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
3445
- if (typeof emitter.on === "function") {
3446
- eventTargetAgnosticAddListener(emitter, "error", handler, flags);
3447
- }
3448
- }
3449
- function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
3450
- if (typeof emitter.on === "function") {
3451
- if (flags.once) {
3452
- emitter.once(name, listener);
3453
- } else {
3454
- emitter.on(name, listener);
3455
- }
3456
- } else if (typeof emitter.addEventListener === "function") {
3457
- emitter.addEventListener(name, function wrapListener(arg) {
3458
- if (flags.once) {
3459
- emitter.removeEventListener(name, wrapListener);
3460
- }
3461
- listener(arg);
3462
- });
3463
- } else {
3464
- throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
3465
- }
3466
- }
3467
- return events.exports;
3468
- }
3469
3082
  var streamBrowser;
3470
3083
  var hasRequiredStreamBrowser;
3471
3084
  function requireStreamBrowser() {
3472
3085
  if (hasRequiredStreamBrowser) return streamBrowser;
3473
3086
  hasRequiredStreamBrowser = 1;
3474
- streamBrowser = requireEvents().EventEmitter;
3087
+ streamBrowser = require$$0$1.EventEmitter;
3475
3088
  return streamBrowser;
3476
3089
  }
3477
3090
  var buffer = {};
@@ -3564,13 +3177,13 @@ function requireBuffer() {
3564
3177
  if (hasRequiredBuffer) return buffer;
3565
3178
  hasRequiredBuffer = 1;
3566
3179
  (function(exports$1) {
3567
- const base64 = requireBase64Js();
3568
- const ieee7542 = requireIeee754();
3569
- const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
3180
+ var base64 = requireBase64Js();
3181
+ var ieee7542 = requireIeee754();
3182
+ var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
3570
3183
  exports$1.Buffer = Buffer2;
3571
3184
  exports$1.SlowBuffer = SlowBuffer;
3572
3185
  exports$1.INSPECT_MAX_BYTES = 50;
3573
- const K_MAX_LENGTH = 2147483647;
3186
+ var K_MAX_LENGTH = 2147483647;
3574
3187
  exports$1.kMaxLength = K_MAX_LENGTH;
3575
3188
  Buffer2.TYPED_ARRAY_SUPPORT = typedArraySupport();
3576
3189
  if (!Buffer2.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
@@ -3580,8 +3193,8 @@ function requireBuffer() {
3580
3193
  }
3581
3194
  function typedArraySupport() {
3582
3195
  try {
3583
- const arr = new Uint8Array(1);
3584
- const proto = { foo: function() {
3196
+ var arr = new Uint8Array(1);
3197
+ var proto = { foo: function() {
3585
3198
  return 42;
3586
3199
  } };
3587
3200
  Object.setPrototypeOf(proto, Uint8Array.prototype);
@@ -3609,7 +3222,7 @@ function requireBuffer() {
3609
3222
  if (length > K_MAX_LENGTH) {
3610
3223
  throw new RangeError('The value "' + length + '" is invalid for option "size"');
3611
3224
  }
3612
- const buf = new Uint8Array(length);
3225
+ var buf = new Uint8Array(length);
3613
3226
  Object.setPrototypeOf(buf, Buffer2.prototype);
3614
3227
  return buf;
3615
3228
  }
@@ -3648,14 +3261,18 @@ function requireBuffer() {
3648
3261
  'The "value" argument must not be of type number. Received type number'
3649
3262
  );
3650
3263
  }
3651
- const valueOf = value.valueOf && value.valueOf();
3264
+ var valueOf = value.valueOf && value.valueOf();
3652
3265
  if (valueOf != null && valueOf !== value) {
3653
3266
  return Buffer2.from(valueOf, encodingOrOffset, length);
3654
3267
  }
3655
- const b = fromObject(value);
3268
+ var b = fromObject(value);
3656
3269
  if (b) return b;
3657
3270
  if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
3658
- return Buffer2.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
3271
+ return Buffer2.from(
3272
+ value[Symbol.toPrimitive]("string"),
3273
+ encodingOrOffset,
3274
+ length
3275
+ );
3659
3276
  }
3660
3277
  throw new TypeError(
3661
3278
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
@@ -3703,25 +3320,25 @@ function requireBuffer() {
3703
3320
  if (!Buffer2.isEncoding(encoding)) {
3704
3321
  throw new TypeError("Unknown encoding: " + encoding);
3705
3322
  }
3706
- const length = byteLength(string, encoding) | 0;
3707
- let buf = createBuffer(length);
3708
- const actual = buf.write(string, encoding);
3323
+ var length = byteLength(string, encoding) | 0;
3324
+ var buf = createBuffer(length);
3325
+ var actual = buf.write(string, encoding);
3709
3326
  if (actual !== length) {
3710
3327
  buf = buf.slice(0, actual);
3711
3328
  }
3712
3329
  return buf;
3713
3330
  }
3714
3331
  function fromArrayLike(array) {
3715
- const length = array.length < 0 ? 0 : checked(array.length) | 0;
3716
- const buf = createBuffer(length);
3717
- for (let i = 0; i < length; i += 1) {
3332
+ var length = array.length < 0 ? 0 : checked(array.length) | 0;
3333
+ var buf = createBuffer(length);
3334
+ for (var i = 0; i < length; i += 1) {
3718
3335
  buf[i] = array[i] & 255;
3719
3336
  }
3720
3337
  return buf;
3721
3338
  }
3722
3339
  function fromArrayView(arrayView) {
3723
3340
  if (isInstance(arrayView, Uint8Array)) {
3724
- const copy = new Uint8Array(arrayView);
3341
+ var copy = new Uint8Array(arrayView);
3725
3342
  return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
3726
3343
  }
3727
3344
  return fromArrayLike(arrayView);
@@ -3733,7 +3350,7 @@ function requireBuffer() {
3733
3350
  if (array.byteLength < byteOffset + (length || 0)) {
3734
3351
  throw new RangeError('"length" is outside of buffer bounds');
3735
3352
  }
3736
- let buf;
3353
+ var buf;
3737
3354
  if (byteOffset === void 0 && length === void 0) {
3738
3355
  buf = new Uint8Array(array);
3739
3356
  } else if (length === void 0) {
@@ -3746,8 +3363,8 @@ function requireBuffer() {
3746
3363
  }
3747
3364
  function fromObject(obj) {
3748
3365
  if (Buffer2.isBuffer(obj)) {
3749
- const len = checked(obj.length) | 0;
3750
- const buf = createBuffer(len);
3366
+ var len = checked(obj.length) | 0;
3367
+ var buf = createBuffer(len);
3751
3368
  if (buf.length === 0) {
3752
3369
  return buf;
3753
3370
  }
@@ -3788,9 +3405,9 @@ function requireBuffer() {
3788
3405
  );
3789
3406
  }
3790
3407
  if (a === b) return 0;
3791
- let x = a.length;
3792
- let y = b.length;
3793
- for (let i = 0, len = Math.min(x, y); i < len; ++i) {
3408
+ var x = a.length;
3409
+ var y = b.length;
3410
+ for (var i = 0, len = Math.min(x, y); i < len; ++i) {
3794
3411
  if (a[i] !== b[i]) {
3795
3412
  x = a[i];
3796
3413
  y = b[i];
@@ -3826,21 +3443,20 @@ function requireBuffer() {
3826
3443
  if (list.length === 0) {
3827
3444
  return Buffer2.alloc(0);
3828
3445
  }
3829
- let i;
3446
+ var i;
3830
3447
  if (length === void 0) {
3831
3448
  length = 0;
3832
3449
  for (i = 0; i < list.length; ++i) {
3833
3450
  length += list[i].length;
3834
3451
  }
3835
3452
  }
3836
- const buffer2 = Buffer2.allocUnsafe(length);
3837
- let pos = 0;
3453
+ var buffer2 = Buffer2.allocUnsafe(length);
3454
+ var pos = 0;
3838
3455
  for (i = 0; i < list.length; ++i) {
3839
- let buf = list[i];
3456
+ var buf = list[i];
3840
3457
  if (isInstance(buf, Uint8Array)) {
3841
3458
  if (pos + buf.length > buffer2.length) {
3842
- if (!Buffer2.isBuffer(buf)) buf = Buffer2.from(buf);
3843
- buf.copy(buffer2, pos);
3459
+ Buffer2.from(buf).copy(buffer2, pos);
3844
3460
  } else {
3845
3461
  Uint8Array.prototype.set.call(
3846
3462
  buffer2,
@@ -3869,10 +3485,10 @@ function requireBuffer() {
3869
3485
  'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string
3870
3486
  );
3871
3487
  }
3872
- const len = string.length;
3873
- const mustMatch = arguments.length > 2 && arguments[2] === true;
3488
+ var len = string.length;
3489
+ var mustMatch = arguments.length > 2 && arguments[2] === true;
3874
3490
  if (!mustMatch && len === 0) return 0;
3875
- let loweredCase = false;
3491
+ var loweredCase = false;
3876
3492
  for (; ; ) {
3877
3493
  switch (encoding) {
3878
3494
  case "ascii":
@@ -3902,7 +3518,7 @@ function requireBuffer() {
3902
3518
  }
3903
3519
  Buffer2.byteLength = byteLength;
3904
3520
  function slowToString(encoding, start, end) {
3905
- let loweredCase = false;
3521
+ var loweredCase = false;
3906
3522
  if (start === void 0 || start < 0) {
3907
3523
  start = 0;
3908
3524
  }
@@ -3949,37 +3565,37 @@ function requireBuffer() {
3949
3565
  }
3950
3566
  Buffer2.prototype._isBuffer = true;
3951
3567
  function swap(b, n, m) {
3952
- const i = b[n];
3568
+ var i = b[n];
3953
3569
  b[n] = b[m];
3954
3570
  b[m] = i;
3955
3571
  }
3956
3572
  Buffer2.prototype.swap16 = function swap16() {
3957
- const len = this.length;
3573
+ var len = this.length;
3958
3574
  if (len % 2 !== 0) {
3959
3575
  throw new RangeError("Buffer size must be a multiple of 16-bits");
3960
3576
  }
3961
- for (let i = 0; i < len; i += 2) {
3577
+ for (var i = 0; i < len; i += 2) {
3962
3578
  swap(this, i, i + 1);
3963
3579
  }
3964
3580
  return this;
3965
3581
  };
3966
3582
  Buffer2.prototype.swap32 = function swap32() {
3967
- const len = this.length;
3583
+ var len = this.length;
3968
3584
  if (len % 4 !== 0) {
3969
3585
  throw new RangeError("Buffer size must be a multiple of 32-bits");
3970
3586
  }
3971
- for (let i = 0; i < len; i += 4) {
3587
+ for (var i = 0; i < len; i += 4) {
3972
3588
  swap(this, i, i + 3);
3973
3589
  swap(this, i + 1, i + 2);
3974
3590
  }
3975
3591
  return this;
3976
3592
  };
3977
3593
  Buffer2.prototype.swap64 = function swap64() {
3978
- const len = this.length;
3594
+ var len = this.length;
3979
3595
  if (len % 8 !== 0) {
3980
3596
  throw new RangeError("Buffer size must be a multiple of 64-bits");
3981
3597
  }
3982
- for (let i = 0; i < len; i += 8) {
3598
+ for (var i = 0; i < len; i += 8) {
3983
3599
  swap(this, i, i + 7);
3984
3600
  swap(this, i + 1, i + 6);
3985
3601
  swap(this, i + 2, i + 5);
@@ -3988,7 +3604,7 @@ function requireBuffer() {
3988
3604
  return this;
3989
3605
  };
3990
3606
  Buffer2.prototype.toString = function toString() {
3991
- const length = this.length;
3607
+ var length = this.length;
3992
3608
  if (length === 0) return "";
3993
3609
  if (arguments.length === 0) return utf8Slice(this, 0, length);
3994
3610
  return slowToString.apply(this, arguments);
@@ -3999,9 +3615,9 @@ function requireBuffer() {
3999
3615
  if (this === b) return true;
4000
3616
  return Buffer2.compare(this, b) === 0;
4001
3617
  };
4002
- Buffer2.prototype.inspect = function inspect2() {
4003
- let str = "";
4004
- const max = exports$1.INSPECT_MAX_BYTES;
3618
+ Buffer2.prototype.inspect = function inspect() {
3619
+ var str = "";
3620
+ var max = exports$1.INSPECT_MAX_BYTES;
4005
3621
  str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
4006
3622
  if (this.length > max) str += " ... ";
4007
3623
  return "<Buffer " + str + ">";
@@ -4047,12 +3663,12 @@ function requireBuffer() {
4047
3663
  thisStart >>>= 0;
4048
3664
  thisEnd >>>= 0;
4049
3665
  if (this === target) return 0;
4050
- let x = thisEnd - thisStart;
4051
- let y = end - start;
4052
- const len = Math.min(x, y);
4053
- const thisCopy = this.slice(thisStart, thisEnd);
4054
- const targetCopy = target.slice(start, end);
4055
- for (let i = 0; i < len; ++i) {
3666
+ var x = thisEnd - thisStart;
3667
+ var y = end - start;
3668
+ var len = Math.min(x, y);
3669
+ var thisCopy = this.slice(thisStart, thisEnd);
3670
+ var targetCopy = target.slice(start, end);
3671
+ for (var i = 0; i < len; ++i) {
4056
3672
  if (thisCopy[i] !== targetCopy[i]) {
4057
3673
  x = thisCopy[i];
4058
3674
  y = targetCopy[i];
@@ -4107,9 +3723,9 @@ function requireBuffer() {
4107
3723
  throw new TypeError("val must be string, number or Buffer");
4108
3724
  }
4109
3725
  function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
4110
- let indexSize = 1;
4111
- let arrLength = arr.length;
4112
- let valLength = val.length;
3726
+ var indexSize = 1;
3727
+ var arrLength = arr.length;
3728
+ var valLength = val.length;
4113
3729
  if (encoding !== void 0) {
4114
3730
  encoding = String(encoding).toLowerCase();
4115
3731
  if (encoding === "ucs2" || encoding === "ucs-2" || encoding === "utf16le" || encoding === "utf-16le") {
@@ -4129,9 +3745,9 @@ function requireBuffer() {
4129
3745
  return buf.readUInt16BE(i2 * indexSize);
4130
3746
  }
4131
3747
  }
4132
- let i;
3748
+ var i;
4133
3749
  if (dir) {
4134
- let foundIndex = -1;
3750
+ var foundIndex = -1;
4135
3751
  for (i = byteOffset; i < arrLength; i++) {
4136
3752
  if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
4137
3753
  if (foundIndex === -1) foundIndex = i;
@@ -4144,8 +3760,8 @@ function requireBuffer() {
4144
3760
  } else {
4145
3761
  if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength;
4146
3762
  for (i = byteOffset; i >= 0; i--) {
4147
- let found = true;
4148
- for (let j = 0; j < valLength; j++) {
3763
+ var found = true;
3764
+ for (var j = 0; j < valLength; j++) {
4149
3765
  if (read(arr, i + j) !== read(val, j)) {
4150
3766
  found = false;
4151
3767
  break;
@@ -4167,7 +3783,7 @@ function requireBuffer() {
4167
3783
  };
4168
3784
  function hexWrite(buf, string, offset, length) {
4169
3785
  offset = Number(offset) || 0;
4170
- const remaining = buf.length - offset;
3786
+ var remaining = buf.length - offset;
4171
3787
  if (!length) {
4172
3788
  length = remaining;
4173
3789
  } else {
@@ -4176,13 +3792,12 @@ function requireBuffer() {
4176
3792
  length = remaining;
4177
3793
  }
4178
3794
  }
4179
- const strLen = string.length;
3795
+ var strLen = string.length;
4180
3796
  if (length > strLen / 2) {
4181
3797
  length = strLen / 2;
4182
3798
  }
4183
- let i;
4184
- for (i = 0; i < length; ++i) {
4185
- const parsed = parseInt(string.substr(i * 2, 2), 16);
3799
+ for (var i = 0; i < length; ++i) {
3800
+ var parsed = parseInt(string.substr(i * 2, 2), 16);
4186
3801
  if (numberIsNaN(parsed)) return i;
4187
3802
  buf[offset + i] = parsed;
4188
3803
  }
@@ -4223,13 +3838,13 @@ function requireBuffer() {
4223
3838
  "Buffer.write(string, encoding, offset[, length]) is no longer supported"
4224
3839
  );
4225
3840
  }
4226
- const remaining = this.length - offset;
3841
+ var remaining = this.length - offset;
4227
3842
  if (length === void 0 || length > remaining) length = remaining;
4228
3843
  if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
4229
3844
  throw new RangeError("Attempt to write outside buffer bounds");
4230
3845
  }
4231
3846
  if (!encoding) encoding = "utf8";
4232
- let loweredCase = false;
3847
+ var loweredCase = false;
4233
3848
  for (; ; ) {
4234
3849
  switch (encoding) {
4235
3850
  case "hex":
@@ -4270,14 +3885,14 @@ function requireBuffer() {
4270
3885
  }
4271
3886
  function utf8Slice(buf, start, end) {
4272
3887
  end = Math.min(buf.length, end);
4273
- const res = [];
4274
- let i = start;
3888
+ var res = [];
3889
+ var i = start;
4275
3890
  while (i < end) {
4276
- const firstByte = buf[i];
4277
- let codePoint = null;
4278
- let bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
3891
+ var firstByte = buf[i];
3892
+ var codePoint = null;
3893
+ var bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
4279
3894
  if (i + bytesPerSequence <= end) {
4280
- let secondByte, thirdByte, fourthByte, tempCodePoint;
3895
+ var secondByte, thirdByte, fourthByte, tempCodePoint;
4281
3896
  switch (bytesPerSequence) {
4282
3897
  case 1:
4283
3898
  if (firstByte < 128) {
@@ -4328,14 +3943,14 @@ function requireBuffer() {
4328
3943
  }
4329
3944
  return decodeCodePointsArray(res);
4330
3945
  }
4331
- const MAX_ARGUMENTS_LENGTH = 4096;
3946
+ var MAX_ARGUMENTS_LENGTH = 4096;
4332
3947
  function decodeCodePointsArray(codePoints) {
4333
- const len = codePoints.length;
3948
+ var len = codePoints.length;
4334
3949
  if (len <= MAX_ARGUMENTS_LENGTH) {
4335
3950
  return String.fromCharCode.apply(String, codePoints);
4336
3951
  }
4337
- let res = "";
4338
- let i = 0;
3952
+ var res = "";
3953
+ var i = 0;
4339
3954
  while (i < len) {
4340
3955
  res += String.fromCharCode.apply(
4341
3956
  String,
@@ -4345,41 +3960,41 @@ function requireBuffer() {
4345
3960
  return res;
4346
3961
  }
4347
3962
  function asciiSlice(buf, start, end) {
4348
- let ret = "";
3963
+ var ret = "";
4349
3964
  end = Math.min(buf.length, end);
4350
- for (let i = start; i < end; ++i) {
3965
+ for (var i = start; i < end; ++i) {
4351
3966
  ret += String.fromCharCode(buf[i] & 127);
4352
3967
  }
4353
3968
  return ret;
4354
3969
  }
4355
3970
  function latin1Slice(buf, start, end) {
4356
- let ret = "";
3971
+ var ret = "";
4357
3972
  end = Math.min(buf.length, end);
4358
- for (let i = start; i < end; ++i) {
3973
+ for (var i = start; i < end; ++i) {
4359
3974
  ret += String.fromCharCode(buf[i]);
4360
3975
  }
4361
3976
  return ret;
4362
3977
  }
4363
3978
  function hexSlice(buf, start, end) {
4364
- const len = buf.length;
3979
+ var len = buf.length;
4365
3980
  if (!start || start < 0) start = 0;
4366
3981
  if (!end || end < 0 || end > len) end = len;
4367
- let out = "";
4368
- for (let i = start; i < end; ++i) {
3982
+ var out = "";
3983
+ for (var i = start; i < end; ++i) {
4369
3984
  out += hexSliceLookupTable[buf[i]];
4370
3985
  }
4371
3986
  return out;
4372
3987
  }
4373
3988
  function utf16leSlice(buf, start, end) {
4374
- const bytes = buf.slice(start, end);
4375
- let res = "";
4376
- for (let i = 0; i < bytes.length - 1; i += 2) {
3989
+ var bytes = buf.slice(start, end);
3990
+ var res = "";
3991
+ for (var i = 0; i < bytes.length - 1; i += 2) {
4377
3992
  res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);
4378
3993
  }
4379
3994
  return res;
4380
3995
  }
4381
3996
  Buffer2.prototype.slice = function slice(start, end) {
4382
- const len = this.length;
3997
+ var len = this.length;
4383
3998
  start = ~~start;
4384
3999
  end = end === void 0 ? len : ~~end;
4385
4000
  if (start < 0) {
@@ -4395,7 +4010,7 @@ function requireBuffer() {
4395
4010
  end = len;
4396
4011
  }
4397
4012
  if (end < start) end = start;
4398
- const newBuf = this.subarray(start, end);
4013
+ var newBuf = this.subarray(start, end);
4399
4014
  Object.setPrototypeOf(newBuf, Buffer2.prototype);
4400
4015
  return newBuf;
4401
4016
  };
@@ -4407,9 +4022,9 @@ function requireBuffer() {
4407
4022
  offset = offset >>> 0;
4408
4023
  byteLength2 = byteLength2 >>> 0;
4409
4024
  if (!noAssert) checkOffset(offset, byteLength2, this.length);
4410
- let val = this[offset];
4411
- let mul = 1;
4412
- let i = 0;
4025
+ var val = this[offset];
4026
+ var mul = 1;
4027
+ var i = 0;
4413
4028
  while (++i < byteLength2 && (mul *= 256)) {
4414
4029
  val += this[offset + i] * mul;
4415
4030
  }
@@ -4421,8 +4036,8 @@ function requireBuffer() {
4421
4036
  if (!noAssert) {
4422
4037
  checkOffset(offset, byteLength2, this.length);
4423
4038
  }
4424
- let val = this[offset + --byteLength2];
4425
- let mul = 1;
4039
+ var val = this[offset + --byteLength2];
4040
+ var mul = 1;
4426
4041
  while (byteLength2 > 0 && (mul *= 256)) {
4427
4042
  val += this[offset + --byteLength2] * mul;
4428
4043
  }
@@ -4453,37 +4068,13 @@ function requireBuffer() {
4453
4068
  if (!noAssert) checkOffset(offset, 4, this.length);
4454
4069
  return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
4455
4070
  };
4456
- Buffer2.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
4457
- offset = offset >>> 0;
4458
- validateNumber(offset, "offset");
4459
- const first = this[offset];
4460
- const last = this[offset + 7];
4461
- if (first === void 0 || last === void 0) {
4462
- boundsError(offset, this.length - 8);
4463
- }
4464
- const lo = first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24;
4465
- const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;
4466
- return BigInt(lo) + (BigInt(hi) << BigInt(32));
4467
- });
4468
- Buffer2.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
4469
- offset = offset >>> 0;
4470
- validateNumber(offset, "offset");
4471
- const first = this[offset];
4472
- const last = this[offset + 7];
4473
- if (first === void 0 || last === void 0) {
4474
- boundsError(offset, this.length - 8);
4475
- }
4476
- const hi = first * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
4477
- const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;
4478
- return (BigInt(hi) << BigInt(32)) + BigInt(lo);
4479
- });
4480
4071
  Buffer2.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
4481
4072
  offset = offset >>> 0;
4482
4073
  byteLength2 = byteLength2 >>> 0;
4483
4074
  if (!noAssert) checkOffset(offset, byteLength2, this.length);
4484
- let val = this[offset];
4485
- let mul = 1;
4486
- let i = 0;
4075
+ var val = this[offset];
4076
+ var mul = 1;
4077
+ var i = 0;
4487
4078
  while (++i < byteLength2 && (mul *= 256)) {
4488
4079
  val += this[offset + i] * mul;
4489
4080
  }
@@ -4495,9 +4086,9 @@ function requireBuffer() {
4495
4086
  offset = offset >>> 0;
4496
4087
  byteLength2 = byteLength2 >>> 0;
4497
4088
  if (!noAssert) checkOffset(offset, byteLength2, this.length);
4498
- let i = byteLength2;
4499
- let mul = 1;
4500
- let val = this[offset + --i];
4089
+ var i = byteLength2;
4090
+ var mul = 1;
4091
+ var val = this[offset + --i];
4501
4092
  while (i > 0 && (mul *= 256)) {
4502
4093
  val += this[offset + --i] * mul;
4503
4094
  }
@@ -4514,13 +4105,13 @@ function requireBuffer() {
4514
4105
  Buffer2.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
4515
4106
  offset = offset >>> 0;
4516
4107
  if (!noAssert) checkOffset(offset, 2, this.length);
4517
- const val = this[offset] | this[offset + 1] << 8;
4108
+ var val = this[offset] | this[offset + 1] << 8;
4518
4109
  return val & 32768 ? val | 4294901760 : val;
4519
4110
  };
4520
4111
  Buffer2.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
4521
4112
  offset = offset >>> 0;
4522
4113
  if (!noAssert) checkOffset(offset, 2, this.length);
4523
- const val = this[offset + 1] | this[offset] << 8;
4114
+ var val = this[offset + 1] | this[offset] << 8;
4524
4115
  return val & 32768 ? val | 4294901760 : val;
4525
4116
  };
4526
4117
  Buffer2.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
@@ -4533,29 +4124,6 @@ function requireBuffer() {
4533
4124
  if (!noAssert) checkOffset(offset, 4, this.length);
4534
4125
  return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
4535
4126
  };
4536
- Buffer2.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
4537
- offset = offset >>> 0;
4538
- validateNumber(offset, "offset");
4539
- const first = this[offset];
4540
- const last = this[offset + 7];
4541
- if (first === void 0 || last === void 0) {
4542
- boundsError(offset, this.length - 8);
4543
- }
4544
- const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24);
4545
- return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
4546
- });
4547
- Buffer2.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
4548
- offset = offset >>> 0;
4549
- validateNumber(offset, "offset");
4550
- const first = this[offset];
4551
- const last = this[offset + 7];
4552
- if (first === void 0 || last === void 0) {
4553
- boundsError(offset, this.length - 8);
4554
- }
4555
- const val = (first << 24) + // Overflow
4556
- this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
4557
- return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);
4558
- });
4559
4127
  Buffer2.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
4560
4128
  offset = offset >>> 0;
4561
4129
  if (!noAssert) checkOffset(offset, 4, this.length);
@@ -4586,11 +4154,11 @@ function requireBuffer() {
4586
4154
  offset = offset >>> 0;
4587
4155
  byteLength2 = byteLength2 >>> 0;
4588
4156
  if (!noAssert) {
4589
- const maxBytes = Math.pow(2, 8 * byteLength2) - 1;
4157
+ var maxBytes = Math.pow(2, 8 * byteLength2) - 1;
4590
4158
  checkInt(this, value, offset, byteLength2, maxBytes, 0);
4591
4159
  }
4592
- let mul = 1;
4593
- let i = 0;
4160
+ var mul = 1;
4161
+ var i = 0;
4594
4162
  this[offset] = value & 255;
4595
4163
  while (++i < byteLength2 && (mul *= 256)) {
4596
4164
  this[offset + i] = value / mul & 255;
@@ -4602,11 +4170,11 @@ function requireBuffer() {
4602
4170
  offset = offset >>> 0;
4603
4171
  byteLength2 = byteLength2 >>> 0;
4604
4172
  if (!noAssert) {
4605
- const maxBytes = Math.pow(2, 8 * byteLength2) - 1;
4173
+ var maxBytes = Math.pow(2, 8 * byteLength2) - 1;
4606
4174
  checkInt(this, value, offset, byteLength2, maxBytes, 0);
4607
4175
  }
4608
- let i = byteLength2 - 1;
4609
- let mul = 1;
4176
+ var i = byteLength2 - 1;
4177
+ var mul = 1;
4610
4178
  this[offset + i] = value & 255;
4611
4179
  while (--i >= 0 && (mul *= 256)) {
4612
4180
  this[offset + i] = value / mul & 255;
@@ -4656,62 +4224,16 @@ function requireBuffer() {
4656
4224
  this[offset + 3] = value & 255;
4657
4225
  return offset + 4;
4658
4226
  };
4659
- function wrtBigUInt64LE(buf, value, offset, min, max) {
4660
- checkIntBI(value, min, max, buf, offset, 7);
4661
- let lo = Number(value & BigInt(4294967295));
4662
- buf[offset++] = lo;
4663
- lo = lo >> 8;
4664
- buf[offset++] = lo;
4665
- lo = lo >> 8;
4666
- buf[offset++] = lo;
4667
- lo = lo >> 8;
4668
- buf[offset++] = lo;
4669
- let hi = Number(value >> BigInt(32) & BigInt(4294967295));
4670
- buf[offset++] = hi;
4671
- hi = hi >> 8;
4672
- buf[offset++] = hi;
4673
- hi = hi >> 8;
4674
- buf[offset++] = hi;
4675
- hi = hi >> 8;
4676
- buf[offset++] = hi;
4677
- return offset;
4678
- }
4679
- function wrtBigUInt64BE(buf, value, offset, min, max) {
4680
- checkIntBI(value, min, max, buf, offset, 7);
4681
- let lo = Number(value & BigInt(4294967295));
4682
- buf[offset + 7] = lo;
4683
- lo = lo >> 8;
4684
- buf[offset + 6] = lo;
4685
- lo = lo >> 8;
4686
- buf[offset + 5] = lo;
4687
- lo = lo >> 8;
4688
- buf[offset + 4] = lo;
4689
- let hi = Number(value >> BigInt(32) & BigInt(4294967295));
4690
- buf[offset + 3] = hi;
4691
- hi = hi >> 8;
4692
- buf[offset + 2] = hi;
4693
- hi = hi >> 8;
4694
- buf[offset + 1] = hi;
4695
- hi = hi >> 8;
4696
- buf[offset] = hi;
4697
- return offset + 8;
4698
- }
4699
- Buffer2.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
4700
- return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
4701
- });
4702
- Buffer2.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
4703
- return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
4704
- });
4705
4227
  Buffer2.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
4706
4228
  value = +value;
4707
4229
  offset = offset >>> 0;
4708
4230
  if (!noAssert) {
4709
- const limit = Math.pow(2, 8 * byteLength2 - 1);
4231
+ var limit = Math.pow(2, 8 * byteLength2 - 1);
4710
4232
  checkInt(this, value, offset, byteLength2, limit - 1, -limit);
4711
4233
  }
4712
- let i = 0;
4713
- let mul = 1;
4714
- let sub = 0;
4234
+ var i = 0;
4235
+ var mul = 1;
4236
+ var sub = 0;
4715
4237
  this[offset] = value & 255;
4716
4238
  while (++i < byteLength2 && (mul *= 256)) {
4717
4239
  if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
@@ -4725,12 +4247,12 @@ function requireBuffer() {
4725
4247
  value = +value;
4726
4248
  offset = offset >>> 0;
4727
4249
  if (!noAssert) {
4728
- const limit = Math.pow(2, 8 * byteLength2 - 1);
4250
+ var limit = Math.pow(2, 8 * byteLength2 - 1);
4729
4251
  checkInt(this, value, offset, byteLength2, limit - 1, -limit);
4730
4252
  }
4731
- let i = byteLength2 - 1;
4732
- let mul = 1;
4733
- let sub = 0;
4253
+ var i = byteLength2 - 1;
4254
+ var mul = 1;
4255
+ var sub = 0;
4734
4256
  this[offset + i] = value & 255;
4735
4257
  while (--i >= 0 && (mul *= 256)) {
4736
4258
  if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
@@ -4785,12 +4307,6 @@ function requireBuffer() {
4785
4307
  this[offset + 3] = value & 255;
4786
4308
  return offset + 4;
4787
4309
  };
4788
- Buffer2.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
4789
- return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
4790
- });
4791
- Buffer2.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
4792
- return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
4793
- });
4794
4310
  function checkIEEE754(buf, value, offset, ext, max, min) {
4795
4311
  if (offset + ext > buf.length) throw new RangeError("Index out of range");
4796
4312
  if (offset < 0) throw new RangeError("Index out of range");
@@ -4843,7 +4359,7 @@ function requireBuffer() {
4843
4359
  if (target.length - targetStart < end - start) {
4844
4360
  end = target.length - targetStart + start;
4845
4361
  }
4846
- const len = end - start;
4362
+ var len = end - start;
4847
4363
  if (this === target && typeof Uint8Array.prototype.copyWithin === "function") {
4848
4364
  this.copyWithin(targetStart, start, end);
4849
4365
  } else {
@@ -4872,7 +4388,7 @@ function requireBuffer() {
4872
4388
  throw new TypeError("Unknown encoding: " + encoding);
4873
4389
  }
4874
4390
  if (val.length === 1) {
4875
- const code = val.charCodeAt(0);
4391
+ var code = val.charCodeAt(0);
4876
4392
  if (encoding === "utf8" && code < 128 || encoding === "latin1") {
4877
4393
  val = code;
4878
4394
  }
@@ -4891,14 +4407,14 @@ function requireBuffer() {
4891
4407
  start = start >>> 0;
4892
4408
  end = end === void 0 ? this.length : end >>> 0;
4893
4409
  if (!val) val = 0;
4894
- let i;
4410
+ var i;
4895
4411
  if (typeof val === "number") {
4896
4412
  for (i = start; i < end; ++i) {
4897
4413
  this[i] = val;
4898
4414
  }
4899
4415
  } else {
4900
- const bytes = Buffer2.isBuffer(val) ? val : Buffer2.from(val, encoding);
4901
- const len = bytes.length;
4416
+ var bytes = Buffer2.isBuffer(val) ? val : Buffer2.from(val, encoding);
4417
+ var len = bytes.length;
4902
4418
  if (len === 0) {
4903
4419
  throw new TypeError('The value "' + val + '" is invalid for argument "value"');
4904
4420
  }
@@ -4908,122 +4424,7 @@ function requireBuffer() {
4908
4424
  }
4909
4425
  return this;
4910
4426
  };
4911
- const errors2 = {};
4912
- function E(sym, getMessage, Base) {
4913
- errors2[sym] = class NodeError extends Base {
4914
- constructor() {
4915
- super();
4916
- Object.defineProperty(this, "message", {
4917
- value: getMessage.apply(this, arguments),
4918
- writable: true,
4919
- configurable: true
4920
- });
4921
- this.name = `${this.name} [${sym}]`;
4922
- this.stack;
4923
- delete this.name;
4924
- }
4925
- get code() {
4926
- return sym;
4927
- }
4928
- set code(value) {
4929
- Object.defineProperty(this, "code", {
4930
- configurable: true,
4931
- enumerable: true,
4932
- value,
4933
- writable: true
4934
- });
4935
- }
4936
- toString() {
4937
- return `${this.name} [${sym}]: ${this.message}`;
4938
- }
4939
- };
4940
- }
4941
- E(
4942
- "ERR_BUFFER_OUT_OF_BOUNDS",
4943
- function(name) {
4944
- if (name) {
4945
- return `${name} is outside of buffer bounds`;
4946
- }
4947
- return "Attempt to access memory outside buffer bounds";
4948
- },
4949
- RangeError
4950
- );
4951
- E(
4952
- "ERR_INVALID_ARG_TYPE",
4953
- function(name, actual) {
4954
- return `The "${name}" argument must be of type number. Received type ${typeof actual}`;
4955
- },
4956
- TypeError
4957
- );
4958
- E(
4959
- "ERR_OUT_OF_RANGE",
4960
- function(str, range, input) {
4961
- let msg = `The value of "${str}" is out of range.`;
4962
- let received = input;
4963
- if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
4964
- received = addNumericalSeparator(String(input));
4965
- } else if (typeof input === "bigint") {
4966
- received = String(input);
4967
- if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {
4968
- received = addNumericalSeparator(received);
4969
- }
4970
- received += "n";
4971
- }
4972
- msg += ` It must be ${range}. Received ${received}`;
4973
- return msg;
4974
- },
4975
- RangeError
4976
- );
4977
- function addNumericalSeparator(val) {
4978
- let res = "";
4979
- let i = val.length;
4980
- const start = val[0] === "-" ? 1 : 0;
4981
- for (; i >= start + 4; i -= 3) {
4982
- res = `_${val.slice(i - 3, i)}${res}`;
4983
- }
4984
- return `${val.slice(0, i)}${res}`;
4985
- }
4986
- function checkBounds(buf, offset, byteLength2) {
4987
- validateNumber(offset, "offset");
4988
- if (buf[offset] === void 0 || buf[offset + byteLength2] === void 0) {
4989
- boundsError(offset, buf.length - (byteLength2 + 1));
4990
- }
4991
- }
4992
- function checkIntBI(value, min, max, buf, offset, byteLength2) {
4993
- if (value > max || value < min) {
4994
- const n = typeof min === "bigint" ? "n" : "";
4995
- let range;
4996
- {
4997
- if (min === 0 || min === BigInt(0)) {
4998
- range = `>= 0${n} and < 2${n} ** ${(byteLength2 + 1) * 8}${n}`;
4999
- } else {
5000
- range = `>= -(2${n} ** ${(byteLength2 + 1) * 8 - 1}${n}) and < 2 ** ${(byteLength2 + 1) * 8 - 1}${n}`;
5001
- }
5002
- }
5003
- throw new errors2.ERR_OUT_OF_RANGE("value", range, value);
5004
- }
5005
- checkBounds(buf, offset, byteLength2);
5006
- }
5007
- function validateNumber(value, name) {
5008
- if (typeof value !== "number") {
5009
- throw new errors2.ERR_INVALID_ARG_TYPE(name, "number", value);
5010
- }
5011
- }
5012
- function boundsError(value, length, type) {
5013
- if (Math.floor(value) !== value) {
5014
- validateNumber(value, type);
5015
- throw new errors2.ERR_OUT_OF_RANGE("offset", "an integer", value);
5016
- }
5017
- if (length < 0) {
5018
- throw new errors2.ERR_BUFFER_OUT_OF_BOUNDS();
5019
- }
5020
- throw new errors2.ERR_OUT_OF_RANGE(
5021
- "offset",
5022
- `>= ${0} and <= ${length}`,
5023
- value
5024
- );
5025
- }
5026
- const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
4427
+ var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
5027
4428
  function base64clean(str) {
5028
4429
  str = str.split("=")[0];
5029
4430
  str = str.trim().replace(INVALID_BASE64_RE, "");
@@ -5035,11 +4436,11 @@ function requireBuffer() {
5035
4436
  }
5036
4437
  function utf8ToBytes(string, units) {
5037
4438
  units = units || Infinity;
5038
- let codePoint;
5039
- const length = string.length;
5040
- let leadSurrogate = null;
5041
- const bytes = [];
5042
- for (let i = 0; i < length; ++i) {
4439
+ var codePoint;
4440
+ var length = string.length;
4441
+ var leadSurrogate = null;
4442
+ var bytes = [];
4443
+ for (var i = 0; i < length; ++i) {
5043
4444
  codePoint = string.charCodeAt(i);
5044
4445
  if (codePoint > 55295 && codePoint < 57344) {
5045
4446
  if (!leadSurrogate) {
@@ -5094,16 +4495,16 @@ function requireBuffer() {
5094
4495
  return bytes;
5095
4496
  }
5096
4497
  function asciiToBytes(str) {
5097
- const byteArray = [];
5098
- for (let i = 0; i < str.length; ++i) {
4498
+ var byteArray = [];
4499
+ for (var i = 0; i < str.length; ++i) {
5099
4500
  byteArray.push(str.charCodeAt(i) & 255);
5100
4501
  }
5101
4502
  return byteArray;
5102
4503
  }
5103
4504
  function utf16leToBytes(str, units) {
5104
- let c, hi, lo;
5105
- const byteArray = [];
5106
- for (let i = 0; i < str.length; ++i) {
4505
+ var c, hi, lo;
4506
+ var byteArray = [];
4507
+ for (var i = 0; i < str.length; ++i) {
5107
4508
  if ((units -= 2) < 0) break;
5108
4509
  c = str.charCodeAt(i);
5109
4510
  hi = c >> 8;
@@ -5117,8 +4518,7 @@ function requireBuffer() {
5117
4518
  return base64.toByteArray(base64clean(str));
5118
4519
  }
5119
4520
  function blitBuffer(src, dst, offset, length) {
5120
- let i;
5121
- for (i = 0; i < length; ++i) {
4521
+ for (var i = 0; i < length; ++i) {
5122
4522
  if (i + offset >= dst.length || i >= src.length) break;
5123
4523
  dst[i + offset] = src[i];
5124
4524
  }
@@ -5130,23 +4530,17 @@ function requireBuffer() {
5130
4530
  function numberIsNaN(obj) {
5131
4531
  return obj !== obj;
5132
4532
  }
5133
- const hexSliceLookupTable = (function() {
5134
- const alphabet = "0123456789abcdef";
5135
- const table = new Array(256);
5136
- for (let i = 0; i < 16; ++i) {
5137
- const i16 = i * 16;
5138
- for (let j = 0; j < 16; ++j) {
4533
+ var hexSliceLookupTable = (function() {
4534
+ var alphabet = "0123456789abcdef";
4535
+ var table = new Array(256);
4536
+ for (var i = 0; i < 16; ++i) {
4537
+ var i16 = i * 16;
4538
+ for (var j = 0; j < 16; ++j) {
5139
4539
  table[i16 + j] = alphabet[i] + alphabet[j];
5140
4540
  }
5141
4541
  }
5142
4542
  return table;
5143
4543
  })();
5144
- function defineBigIntMethod(fn) {
5145
- return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
5146
- }
5147
- function BufferBigIntNotDefined() {
5148
- throw new Error("BigInt not supported");
5149
- }
5150
4544
  })(buffer);
5151
4545
  return buffer;
5152
4546
  }
@@ -5379,7 +4773,7 @@ function requireInherits_browser() {
5379
4773
  if (hasRequiredInherits_browser) return inherits_browser.exports;
5380
4774
  hasRequiredInherits_browser = 1;
5381
4775
  if (typeof Object.create === "function") {
5382
- inherits_browser.exports = function inherits2(ctor, superCtor) {
4776
+ inherits_browser.exports = function inherits(ctor, superCtor) {
5383
4777
  if (superCtor) {
5384
4778
  ctor.super_ = superCtor;
5385
4779
  ctor.prototype = Object.create(superCtor.prototype, {
@@ -5393,7 +4787,7 @@ function requireInherits_browser() {
5393
4787
  }
5394
4788
  };
5395
4789
  } else {
5396
- inherits_browser.exports = function inherits2(ctor, superCtor) {
4790
+ inherits_browser.exports = function inherits(ctor, superCtor) {
5397
4791
  if (superCtor) {
5398
4792
  ctor.super_ = superCtor;
5399
4793
  var TempCtor = function() {
@@ -5475,8 +4869,8 @@ function requireBuffer_list() {
5475
4869
  return String(input);
5476
4870
  }
5477
4871
  var _require = requireBuffer(), Buffer2 = _require.Buffer;
5478
- var _require2 = require$$0$2, inspect2 = _require2.inspect;
5479
- var custom = inspect2 && inspect2.custom || "inspect";
4872
+ var _require2 = require$$0$2, inspect = _require2.inspect;
4873
+ var custom = inspect && inspect.custom || "inspect";
5480
4874
  function copyBuffer(src, target, offset) {
5481
4875
  Buffer2.prototype.copy.call(src, target, offset);
5482
4876
  }
@@ -5633,7 +5027,7 @@ function requireBuffer_list() {
5633
5027
  }, {
5634
5028
  key: custom,
5635
5029
  value: function value(_, options) {
5636
- return inspect2(this, _objectSpread(_objectSpread({}, options), {}, {
5030
+ return inspect(this, _objectSpread(_objectSpread({}, options), {}, {
5637
5031
  // Only inspect one level.
5638
5032
  depth: 0,
5639
5033
  // It should not recurse.
@@ -6234,7 +5628,7 @@ function require_stream_readable() {
6234
5628
  _stream_readable = Readable;
6235
5629
  var Duplex;
6236
5630
  Readable.ReadableState = ReadableState;
6237
- requireEvents().EventEmitter;
5631
+ require$$0$1.EventEmitter;
6238
5632
  var EElistenerCount = function EElistenerCount2(emitter, type) {
6239
5633
  return emitter.listeners(type).length;
6240
5634
  };