@hinkal/common 0.0.87 → 0.0.88

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,100 +1,78 @@
1
- var it = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function Yr(f) {
3
- return f && f.__esModule && Object.prototype.hasOwnProperty.call(f, "default") ? f.default : f;
4
- }
5
- function ot(f) {
6
- if (f.__esModule)
7
- return f;
8
- var h = f.default;
9
- if (typeof h == "function") {
10
- var s = function y() {
11
- return this instanceof y ? Reflect.construct(h, arguments, this.constructor) : h.apply(this, arguments);
12
- };
13
- s.prototype = h.prototype;
14
- } else
15
- s = {};
16
- return Object.defineProperty(s, "__esModule", { value: !0 }), Object.keys(f).forEach(function(y) {
17
- var w = Object.getOwnPropertyDescriptor(f, y);
18
- Object.defineProperty(s, y, w.get ? w : {
19
- enumerable: !0,
20
- get: function() {
21
- return f[y];
22
- }
23
- });
24
- }), s;
1
+ function Yr(c) {
2
+ return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
25
3
  }
26
4
  var xr = {}, J = {};
27
5
  J.byteLength = Vr;
28
6
  J.toByteArray = Jr;
29
7
  J.fromByteArray = Kr;
30
- var L = [], R = [], qr = typeof Uint8Array < "u" ? Uint8Array : Array, v = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
31
- for (var G = 0, Hr = v.length; G < Hr; ++G)
32
- L[G] = v[G], R[v.charCodeAt(G)] = G;
8
+ var b = [], R = [], qr = typeof Uint8Array < "u" ? Uint8Array : Array, v = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
9
+ for (var j = 0, Hr = v.length; j < Hr; ++j)
10
+ b[j] = v[j], R[v.charCodeAt(j)] = j;
33
11
  R[45] = 62;
34
12
  R[95] = 63;
35
- function dr(f) {
36
- var h = f.length;
37
- if (h % 4 > 0)
13
+ function Br(c) {
14
+ var f = c.length;
15
+ if (f % 4 > 0)
38
16
  throw new Error("Invalid string. Length must be a multiple of 4");
39
- var s = f.indexOf("=");
40
- s === -1 && (s = h);
41
- var y = s === h ? 0 : 4 - s % 4;
42
- return [s, y];
17
+ var p = c.indexOf("=");
18
+ p === -1 && (p = f);
19
+ var x = p === f ? 0 : 4 - p % 4;
20
+ return [p, x];
43
21
  }
44
- function Vr(f) {
45
- var h = dr(f), s = h[0], y = h[1];
46
- return (s + y) * 3 / 4 - y;
22
+ function Vr(c) {
23
+ var f = Br(c), p = f[0], x = f[1];
24
+ return (p + x) * 3 / 4 - x;
47
25
  }
48
- function Xr(f, h, s) {
49
- return (h + s) * 3 / 4 - s;
26
+ function Xr(c, f, p) {
27
+ return (f + p) * 3 / 4 - p;
50
28
  }
51
- function Jr(f) {
52
- var h, s = dr(f), y = s[0], w = s[1], a = new qr(Xr(f, y, w)), p = 0, o = w > 0 ? y - 4 : y, d;
53
- for (d = 0; d < o; d += 4)
54
- h = R[f.charCodeAt(d)] << 18 | R[f.charCodeAt(d + 1)] << 12 | R[f.charCodeAt(d + 2)] << 6 | R[f.charCodeAt(d + 3)], a[p++] = h >> 16 & 255, a[p++] = h >> 8 & 255, a[p++] = h & 255;
55
- return w === 2 && (h = R[f.charCodeAt(d)] << 2 | R[f.charCodeAt(d + 1)] >> 4, a[p++] = h & 255), w === 1 && (h = R[f.charCodeAt(d)] << 10 | R[f.charCodeAt(d + 1)] << 4 | R[f.charCodeAt(d + 2)] >> 2, a[p++] = h >> 8 & 255, a[p++] = h & 255), a;
29
+ function Jr(c) {
30
+ var f, p = Br(c), x = p[0], y = p[1], a = new qr(Xr(c, x, y)), s = 0, o = y > 0 ? x - 4 : x, B;
31
+ for (B = 0; B < o; B += 4)
32
+ f = R[c.charCodeAt(B)] << 18 | R[c.charCodeAt(B + 1)] << 12 | R[c.charCodeAt(B + 2)] << 6 | R[c.charCodeAt(B + 3)], a[s++] = f >> 16 & 255, a[s++] = f >> 8 & 255, a[s++] = f & 255;
33
+ return y === 2 && (f = R[c.charCodeAt(B)] << 2 | R[c.charCodeAt(B + 1)] >> 4, a[s++] = f & 255), y === 1 && (f = R[c.charCodeAt(B)] << 10 | R[c.charCodeAt(B + 1)] << 4 | R[c.charCodeAt(B + 2)] >> 2, a[s++] = f >> 8 & 255, a[s++] = f & 255), a;
56
34
  }
57
- function zr(f) {
58
- return L[f >> 18 & 63] + L[f >> 12 & 63] + L[f >> 6 & 63] + L[f & 63];
35
+ function zr(c) {
36
+ return b[c >> 18 & 63] + b[c >> 12 & 63] + b[c >> 6 & 63] + b[c & 63];
59
37
  }
60
- function Qr(f, h, s) {
61
- for (var y, w = [], a = h; a < s; a += 3)
62
- y = (f[a] << 16 & 16711680) + (f[a + 1] << 8 & 65280) + (f[a + 2] & 255), w.push(zr(y));
63
- return w.join("");
38
+ function Qr(c, f, p) {
39
+ for (var x, y = [], a = f; a < p; a += 3)
40
+ x = (c[a] << 16 & 16711680) + (c[a + 1] << 8 & 65280) + (c[a + 2] & 255), y.push(zr(x));
41
+ return y.join("");
64
42
  }
65
- function Kr(f) {
66
- for (var h, s = f.length, y = s % 3, w = [], a = 16383, p = 0, o = s - y; p < o; p += a)
67
- w.push(Qr(f, p, p + a > o ? o : p + a));
68
- return y === 1 ? (h = f[s - 1], w.push(
69
- L[h >> 2] + L[h << 4 & 63] + "=="
70
- )) : y === 2 && (h = (f[s - 2] << 8) + f[s - 1], w.push(
71
- L[h >> 10] + L[h >> 4 & 63] + L[h << 2 & 63] + "="
72
- )), w.join("");
43
+ function Kr(c) {
44
+ for (var f, p = c.length, x = p % 3, y = [], a = 16383, s = 0, o = p - x; s < o; s += a)
45
+ y.push(Qr(c, s, s + a > o ? o : s + a));
46
+ return x === 1 ? (f = c[p - 1], y.push(
47
+ b[f >> 2] + b[f << 4 & 63] + "=="
48
+ )) : x === 2 && (f = (c[p - 2] << 8) + c[p - 1], y.push(
49
+ b[f >> 10] + b[f >> 4 & 63] + b[f << 2 & 63] + "="
50
+ )), y.join("");
73
51
  }
74
52
  var er = {};
75
53
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
76
- er.read = function(f, h, s, y, w) {
77
- var a, p, o = w * 8 - y - 1, d = (1 << o) - 1, C = d >> 1, F = -7, A = s ? w - 1 : 0, k = s ? -1 : 1, U = f[h + A];
78
- for (A += k, a = U & (1 << -F) - 1, U >>= -F, F += o; F > 0; a = a * 256 + f[h + A], A += k, F -= 8)
54
+ er.read = function(c, f, p, x, y) {
55
+ var a, s, o = y * 8 - x - 1, B = (1 << o) - 1, C = B >> 1, F = -7, A = p ? y - 1 : 0, k = p ? -1 : 1, U = c[f + A];
56
+ for (A += k, a = U & (1 << -F) - 1, U >>= -F, F += o; F > 0; a = a * 256 + c[f + A], A += k, F -= 8)
79
57
  ;
80
- for (p = a & (1 << -F) - 1, a >>= -F, F += y; F > 0; p = p * 256 + f[h + A], A += k, F -= 8)
58
+ for (s = a & (1 << -F) - 1, a >>= -F, F += x; F > 0; s = s * 256 + c[f + A], A += k, F -= 8)
81
59
  ;
82
60
  if (a === 0)
83
61
  a = 1 - C;
84
62
  else {
85
- if (a === d)
86
- return p ? NaN : (U ? -1 : 1) * (1 / 0);
87
- p = p + Math.pow(2, y), a = a - C;
63
+ if (a === B)
64
+ return s ? NaN : (U ? -1 : 1) * (1 / 0);
65
+ s = s + Math.pow(2, x), a = a - C;
88
66
  }
89
- return (U ? -1 : 1) * p * Math.pow(2, a - y);
67
+ return (U ? -1 : 1) * s * Math.pow(2, a - x);
90
68
  };
91
- er.write = function(f, h, s, y, w, a) {
92
- var p, o, d, C = a * 8 - w - 1, F = (1 << C) - 1, A = F >> 1, k = w === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, U = y ? 0 : a - 1, Y = y ? 1 : -1, q = h < 0 || h === 0 && 1 / h < 0 ? 1 : 0;
93
- for (h = Math.abs(h), isNaN(h) || h === 1 / 0 ? (o = isNaN(h) ? 1 : 0, p = F) : (p = Math.floor(Math.log(h) / Math.LN2), h * (d = Math.pow(2, -p)) < 1 && (p--, d *= 2), p + A >= 1 ? h += k / d : h += k * Math.pow(2, 1 - A), h * d >= 2 && (p++, d /= 2), p + A >= F ? (o = 0, p = F) : p + A >= 1 ? (o = (h * d - 1) * Math.pow(2, w), p = p + A) : (o = h * Math.pow(2, A - 1) * Math.pow(2, w), p = 0)); w >= 8; f[s + U] = o & 255, U += Y, o /= 256, w -= 8)
69
+ er.write = function(c, f, p, x, y, a) {
70
+ var s, o, B, C = a * 8 - y - 1, F = (1 << C) - 1, A = F >> 1, k = y === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, U = x ? 0 : a - 1, Y = x ? 1 : -1, q = f < 0 || f === 0 && 1 / f < 0 ? 1 : 0;
71
+ for (f = Math.abs(f), isNaN(f) || f === 1 / 0 ? (o = isNaN(f) ? 1 : 0, s = F) : (s = Math.floor(Math.log(f) / Math.LN2), f * (B = Math.pow(2, -s)) < 1 && (s--, B *= 2), s + A >= 1 ? f += k / B : f += k * Math.pow(2, 1 - A), f * B >= 2 && (s++, B /= 2), s + A >= F ? (o = 0, s = F) : s + A >= 1 ? (o = (f * B - 1) * Math.pow(2, y), s = s + A) : (o = f * Math.pow(2, A - 1) * Math.pow(2, y), s = 0)); y >= 8; c[p + U] = o & 255, U += Y, o /= 256, y -= 8)
94
72
  ;
95
- for (p = p << w | o, C += w; C > 0; f[s + U] = p & 255, U += Y, p /= 256, C -= 8)
73
+ for (s = s << y | o, C += y; C > 0; c[p + U] = s & 255, U += Y, s /= 256, C -= 8)
96
74
  ;
97
- f[s + U - Y] |= q * 128;
75
+ c[p + U - Y] |= q * 128;
98
76
  };
99
77
  /*!
100
78
  * The buffer module from node.js, for the browser.
@@ -102,11 +80,11 @@ er.write = function(f, h, s, y, w, a) {
102
80
  * @author Feross Aboukhadijeh <https://feross.org>
103
81
  * @license MIT
104
82
  */
105
- (function(f) {
106
- const h = J, s = er, y = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
107
- f.Buffer = o, f.SlowBuffer = Fr, f.INSPECT_MAX_BYTES = 50;
108
- const w = 2147483647;
109
- f.kMaxLength = w, o.TYPED_ARRAY_SUPPORT = a(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
83
+ (function(c) {
84
+ const f = J, p = er, x = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
85
+ c.Buffer = o, c.SlowBuffer = Fr, c.INSPECT_MAX_BYTES = 50;
86
+ const y = 2147483647;
87
+ c.kMaxLength = y, o.TYPED_ARRAY_SUPPORT = a(), !o.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
110
88
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
111
89
  );
112
90
  function a() {
@@ -132,8 +110,8 @@ er.write = function(f, h, s, y, w, a) {
132
110
  return this.byteOffset;
133
111
  }
134
112
  });
135
- function p(e) {
136
- if (e > w)
113
+ function s(e) {
114
+ if (e > y)
137
115
  throw new RangeError('The value "' + e + '" is invalid for option "size"');
138
116
  const r = new Uint8Array(e);
139
117
  return Object.setPrototypeOf(r, o.prototype), r;
@@ -146,10 +124,10 @@ er.write = function(f, h, s, y, w, a) {
146
124
  );
147
125
  return A(e);
148
126
  }
149
- return d(e, r, t);
127
+ return B(e, r, t);
150
128
  }
151
129
  o.poolSize = 8192;
152
- function d(e, r, t) {
130
+ function B(e, r, t) {
153
131
  if (typeof e == "string")
154
132
  return k(e, r);
155
133
  if (ArrayBuffer.isView(e))
@@ -158,7 +136,7 @@ er.write = function(f, h, s, y, w, a) {
158
136
  throw new TypeError(
159
137
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e
160
138
  );
161
- if (b(e, ArrayBuffer) || e && b(e.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (b(e, SharedArrayBuffer) || e && b(e.buffer, SharedArrayBuffer)))
139
+ if (S(e, ArrayBuffer) || e && S(e.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (S(e, SharedArrayBuffer) || e && S(e.buffer, SharedArrayBuffer)))
162
140
  return q(e, r, t);
163
141
  if (typeof e == "number")
164
142
  throw new TypeError(
@@ -177,7 +155,7 @@ er.write = function(f, h, s, y, w, a) {
177
155
  );
178
156
  }
179
157
  o.from = function(e, r, t) {
180
- return d(e, r, t);
158
+ return B(e, r, t);
181
159
  }, Object.setPrototypeOf(o.prototype, Uint8Array.prototype), Object.setPrototypeOf(o, Uint8Array);
182
160
  function C(e) {
183
161
  if (typeof e != "number")
@@ -186,13 +164,13 @@ er.write = function(f, h, s, y, w, a) {
186
164
  throw new RangeError('The value "' + e + '" is invalid for option "size"');
187
165
  }
188
166
  function F(e, r, t) {
189
- return C(e), e <= 0 ? p(e) : r !== void 0 ? typeof t == "string" ? p(e).fill(r, t) : p(e).fill(r) : p(e);
167
+ return C(e), e <= 0 ? s(e) : r !== void 0 ? typeof t == "string" ? s(e).fill(r, t) : s(e).fill(r) : s(e);
190
168
  }
191
169
  o.alloc = function(e, r, t) {
192
170
  return F(e, r, t);
193
171
  };
194
172
  function A(e) {
195
- return C(e), p(e < 0 ? 0 : z(e) | 0);
173
+ return C(e), s(e < 0 ? 0 : z(e) | 0);
196
174
  }
197
175
  o.allocUnsafe = function(e) {
198
176
  return A(e);
@@ -203,18 +181,18 @@ er.write = function(f, h, s, y, w, a) {
203
181
  if ((typeof r != "string" || r === "") && (r = "utf8"), !o.isEncoding(r))
204
182
  throw new TypeError("Unknown encoding: " + r);
205
183
  const t = nr(e, r) | 0;
206
- let n = p(t);
184
+ let n = s(t);
207
185
  const i = n.write(e, r);
208
186
  return i !== t && (n = n.slice(0, i)), n;
209
187
  }
210
188
  function U(e) {
211
- const r = e.length < 0 ? 0 : z(e.length) | 0, t = p(r);
189
+ const r = e.length < 0 ? 0 : z(e.length) | 0, t = s(r);
212
190
  for (let n = 0; n < r; n += 1)
213
191
  t[n] = e[n] & 255;
214
192
  return t;
215
193
  }
216
194
  function Y(e) {
217
- if (b(e, Uint8Array)) {
195
+ if (S(e, Uint8Array)) {
218
196
  const r = new Uint8Array(e);
219
197
  return q(r.buffer, r.byteOffset, r.byteLength);
220
198
  }
@@ -230,17 +208,17 @@ er.write = function(f, h, s, y, w, a) {
230
208
  }
231
209
  function Ir(e) {
232
210
  if (o.isBuffer(e)) {
233
- const r = z(e.length) | 0, t = p(r);
211
+ const r = z(e.length) | 0, t = s(r);
234
212
  return t.length === 0 || e.copy(t, 0, 0, r), t;
235
213
  }
236
214
  if (e.length !== void 0)
237
- return typeof e.length != "number" || Z(e.length) ? p(0) : U(e);
215
+ return typeof e.length != "number" || Z(e.length) ? s(0) : U(e);
238
216
  if (e.type === "Buffer" && Array.isArray(e.data))
239
217
  return U(e.data);
240
218
  }
241
219
  function z(e) {
242
- if (e >= w)
243
- throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + w.toString(16) + " bytes");
220
+ if (e >= y)
221
+ throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + y.toString(16) + " bytes");
244
222
  return e | 0;
245
223
  }
246
224
  function Fr(e) {
@@ -249,14 +227,14 @@ er.write = function(f, h, s, y, w, a) {
249
227
  o.isBuffer = function(r) {
250
228
  return r != null && r._isBuffer === !0 && r !== o.prototype;
251
229
  }, o.compare = function(r, t) {
252
- if (b(r, Uint8Array) && (r = o.from(r, r.offset, r.byteLength)), b(t, Uint8Array) && (t = o.from(t, t.offset, t.byteLength)), !o.isBuffer(r) || !o.isBuffer(t))
230
+ if (S(r, Uint8Array) && (r = o.from(r, r.offset, r.byteLength)), S(t, Uint8Array) && (t = o.from(t, t.offset, t.byteLength)), !o.isBuffer(r) || !o.isBuffer(t))
253
231
  throw new TypeError(
254
232
  'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
255
233
  );
256
234
  if (r === t)
257
235
  return 0;
258
236
  let n = r.length, i = t.length;
259
- for (let u = 0, c = Math.min(n, i); u < c; ++u)
237
+ for (let u = 0, h = Math.min(n, i); u < h; ++u)
260
238
  if (r[u] !== t[u]) {
261
239
  n = r[u], i = t[u];
262
240
  break;
@@ -291,25 +269,25 @@ er.write = function(f, h, s, y, w, a) {
291
269
  const i = o.allocUnsafe(t);
292
270
  let u = 0;
293
271
  for (n = 0; n < r.length; ++n) {
294
- let c = r[n];
295
- if (b(c, Uint8Array))
296
- u + c.length > i.length ? (o.isBuffer(c) || (c = o.from(c)), c.copy(i, u)) : Uint8Array.prototype.set.call(
272
+ let h = r[n];
273
+ if (S(h, Uint8Array))
274
+ u + h.length > i.length ? (o.isBuffer(h) || (h = o.from(h)), h.copy(i, u)) : Uint8Array.prototype.set.call(
297
275
  i,
298
- c,
276
+ h,
299
277
  u
300
278
  );
301
- else if (o.isBuffer(c))
302
- c.copy(i, u);
279
+ else if (o.isBuffer(h))
280
+ h.copy(i, u);
303
281
  else
304
282
  throw new TypeError('"list" argument must be an Array of Buffers');
305
- u += c.length;
283
+ u += h.length;
306
284
  }
307
285
  return i;
308
286
  };
309
287
  function nr(e, r) {
310
288
  if (o.isBuffer(e))
311
289
  return e.length;
312
- if (ArrayBuffer.isView(e) || b(e, ArrayBuffer))
290
+ if (ArrayBuffer.isView(e) || S(e, ArrayBuffer))
313
291
  return e.byteLength;
314
292
  if (typeof e != "string")
315
293
  throw new TypeError(
@@ -356,7 +334,7 @@ er.write = function(f, h, s, y, w, a) {
356
334
  case "utf-8":
357
335
  return ur(this, r, t);
358
336
  case "ascii":
359
- return Lr(this, r, t);
337
+ return br(this, r, t);
360
338
  case "latin1":
361
339
  case "binary":
362
340
  return Mr(this, r, t);
@@ -408,10 +386,10 @@ er.write = function(f, h, s, y, w, a) {
408
386
  return this === r ? !0 : o.compare(this, r) === 0;
409
387
  }, o.prototype.inspect = function() {
410
388
  let r = "";
411
- const t = f.INSPECT_MAX_BYTES;
389
+ const t = c.INSPECT_MAX_BYTES;
412
390
  return r = this.toString("hex", 0, t).replace(/(.{2})/g, "$1 ").trim(), this.length > t && (r += " ... "), "<Buffer " + r + ">";
413
- }, y && (o.prototype[y] = o.prototype.inspect), o.prototype.compare = function(r, t, n, i, u) {
414
- if (b(r, Uint8Array) && (r = o.from(r, r.offset, r.byteLength)), !o.isBuffer(r))
391
+ }, x && (o.prototype[x] = o.prototype.inspect), o.prototype.compare = function(r, t, n, i, u) {
392
+ if (S(r, Uint8Array) && (r = o.from(r, r.offset, r.byteLength)), !o.isBuffer(r))
415
393
  throw new TypeError(
416
394
  'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof r
417
395
  );
@@ -425,14 +403,14 @@ er.write = function(f, h, s, y, w, a) {
425
403
  return 1;
426
404
  if (t >>>= 0, n >>>= 0, i >>>= 0, u >>>= 0, this === r)
427
405
  return 0;
428
- let c = u - i, l = n - t;
429
- const E = Math.min(c, l), B = this.slice(i, u), g = r.slice(t, n);
430
- for (let x = 0; x < E; ++x)
431
- if (B[x] !== g[x]) {
432
- c = B[x], l = g[x];
406
+ let h = u - i, l = n - t;
407
+ const E = Math.min(h, l), d = this.slice(i, u), m = r.slice(t, n);
408
+ for (let w = 0; w < E; ++w)
409
+ if (d[w] !== m[w]) {
410
+ h = d[w], l = m[w];
433
411
  break;
434
412
  }
435
- return c < l ? -1 : l < c ? 1 : 0;
413
+ return h < l ? -1 : l < h ? 1 : 0;
436
414
  };
437
415
  function ir(e, r, t, n, i) {
438
416
  if (e.length === 0)
@@ -453,34 +431,34 @@ er.write = function(f, h, s, y, w, a) {
453
431
  throw new TypeError("val must be string, number or Buffer");
454
432
  }
455
433
  function or(e, r, t, n, i) {
456
- let u = 1, c = e.length, l = r.length;
434
+ let u = 1, h = e.length, l = r.length;
457
435
  if (n !== void 0 && (n = String(n).toLowerCase(), n === "ucs2" || n === "ucs-2" || n === "utf16le" || n === "utf-16le")) {
458
436
  if (e.length < 2 || r.length < 2)
459
437
  return -1;
460
- u = 2, c /= 2, l /= 2, t /= 2;
438
+ u = 2, h /= 2, l /= 2, t /= 2;
461
439
  }
462
- function E(g, x) {
463
- return u === 1 ? g[x] : g.readUInt16BE(x * u);
440
+ function E(m, w) {
441
+ return u === 1 ? m[w] : m.readUInt16BE(w * u);
464
442
  }
465
- let B;
443
+ let d;
466
444
  if (i) {
467
- let g = -1;
468
- for (B = t; B < c; B++)
469
- if (E(e, B) === E(r, g === -1 ? 0 : B - g)) {
470
- if (g === -1 && (g = B), B - g + 1 === l)
471
- return g * u;
445
+ let m = -1;
446
+ for (d = t; d < h; d++)
447
+ if (E(e, d) === E(r, m === -1 ? 0 : d - m)) {
448
+ if (m === -1 && (m = d), d - m + 1 === l)
449
+ return m * u;
472
450
  } else
473
- g !== -1 && (B -= B - g), g = -1;
451
+ m !== -1 && (d -= d - m), m = -1;
474
452
  } else
475
- for (t + l > c && (t = c - l), B = t; B >= 0; B--) {
476
- let g = !0;
477
- for (let x = 0; x < l; x++)
478
- if (E(e, B + x) !== E(r, x)) {
479
- g = !1;
453
+ for (t + l > h && (t = h - l), d = t; d >= 0; d--) {
454
+ let m = !0;
455
+ for (let w = 0; w < l; w++)
456
+ if (E(e, d + w) !== E(r, w)) {
457
+ m = !1;
480
458
  break;
481
459
  }
482
- if (g)
483
- return B;
460
+ if (m)
461
+ return d;
484
462
  }
485
463
  return -1;
486
464
  }
@@ -497,14 +475,14 @@ er.write = function(f, h, s, y, w, a) {
497
475
  n ? (n = Number(n), n > i && (n = i)) : n = i;
498
476
  const u = r.length;
499
477
  n > u / 2 && (n = u / 2);
500
- let c;
501
- for (c = 0; c < n; ++c) {
502
- const l = parseInt(r.substr(c * 2, 2), 16);
478
+ let h;
479
+ for (h = 0; h < n; ++h) {
480
+ const l = parseInt(r.substr(h * 2, 2), 16);
503
481
  if (Z(l))
504
- return c;
505
- e[t + c] = l;
482
+ return h;
483
+ e[t + h] = l;
506
484
  }
507
- return c;
485
+ return h;
508
486
  }
509
487
  function Tr(e, r, t, n) {
510
488
  return V(K(r, e.length - t), e, t, n);
@@ -515,8 +493,8 @@ er.write = function(f, h, s, y, w, a) {
515
493
  function Cr(e, r, t, n) {
516
494
  return V(wr(r), e, t, n);
517
495
  }
518
- function br(e, r, t, n) {
519
- return V(jr(r, e.length - t), e, t, n);
496
+ function Sr(e, r, t, n) {
497
+ return V(Wr(r, e.length - t), e, t, n);
520
498
  }
521
499
  o.prototype.write = function(r, t, n, i) {
522
500
  if (t === void 0)
@@ -533,7 +511,7 @@ er.write = function(f, h, s, y, w, a) {
533
511
  if ((n === void 0 || n > u) && (n = u), r.length > 0 && (n < 0 || t < 0) || t > this.length)
534
512
  throw new RangeError("Attempt to write outside buffer bounds");
535
513
  i || (i = "utf8");
536
- let c = !1;
514
+ let h = !1;
537
515
  for (; ; )
538
516
  switch (i) {
539
517
  case "hex":
@@ -551,11 +529,11 @@ er.write = function(f, h, s, y, w, a) {
551
529
  case "ucs-2":
552
530
  case "utf16le":
553
531
  case "utf-16le":
554
- return br(this, r, t, n);
532
+ return Sr(this, r, t, n);
555
533
  default:
556
- if (c)
534
+ if (h)
557
535
  throw new TypeError("Unknown encoding: " + i);
558
- i = ("" + i).toLowerCase(), c = !0;
536
+ i = ("" + i).toLowerCase(), h = !0;
559
537
  }
560
538
  }, o.prototype.toJSON = function() {
561
539
  return {
@@ -564,7 +542,7 @@ er.write = function(f, h, s, y, w, a) {
564
542
  };
565
543
  };
566
544
  function _r(e, r, t) {
567
- return r === 0 && t === e.length ? h.fromByteArray(e) : h.fromByteArray(e.slice(r, t));
545
+ return r === 0 && t === e.length ? f.fromByteArray(e) : f.fromByteArray(e.slice(r, t));
568
546
  }
569
547
  function ur(e, r, t) {
570
548
  t = Math.min(e.length, t);
@@ -572,41 +550,41 @@ er.write = function(f, h, s, y, w, a) {
572
550
  let i = r;
573
551
  for (; i < t; ) {
574
552
  const u = e[i];
575
- let c = null, l = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
553
+ let h = null, l = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
576
554
  if (i + l <= t) {
577
- let E, B, g, x;
555
+ let E, d, m, w;
578
556
  switch (l) {
579
557
  case 1:
580
- u < 128 && (c = u);
558
+ u < 128 && (h = u);
581
559
  break;
582
560
  case 2:
583
- E = e[i + 1], (E & 192) === 128 && (x = (u & 31) << 6 | E & 63, x > 127 && (c = x));
561
+ E = e[i + 1], (E & 192) === 128 && (w = (u & 31) << 6 | E & 63, w > 127 && (h = w));
584
562
  break;
585
563
  case 3:
586
- E = e[i + 1], B = e[i + 2], (E & 192) === 128 && (B & 192) === 128 && (x = (u & 15) << 12 | (E & 63) << 6 | B & 63, x > 2047 && (x < 55296 || x > 57343) && (c = x));
564
+ E = e[i + 1], d = e[i + 2], (E & 192) === 128 && (d & 192) === 128 && (w = (u & 15) << 12 | (E & 63) << 6 | d & 63, w > 2047 && (w < 55296 || w > 57343) && (h = w));
587
565
  break;
588
566
  case 4:
589
- E = e[i + 1], B = e[i + 2], g = e[i + 3], (E & 192) === 128 && (B & 192) === 128 && (g & 192) === 128 && (x = (u & 15) << 18 | (E & 63) << 12 | (B & 63) << 6 | g & 63, x > 65535 && x < 1114112 && (c = x));
567
+ E = e[i + 1], d = e[i + 2], m = e[i + 3], (E & 192) === 128 && (d & 192) === 128 && (m & 192) === 128 && (w = (u & 15) << 18 | (E & 63) << 12 | (d & 63) << 6 | m & 63, w > 65535 && w < 1114112 && (h = w));
590
568
  }
591
569
  }
592
- c === null ? (c = 65533, l = 1) : c > 65535 && (c -= 65536, n.push(c >>> 10 & 1023 | 55296), c = 56320 | c & 1023), n.push(c), i += l;
570
+ h === null ? (h = 65533, l = 1) : h > 65535 && (h -= 65536, n.push(h >>> 10 & 1023 | 55296), h = 56320 | h & 1023), n.push(h), i += l;
593
571
  }
594
- return Sr(n);
572
+ return Lr(n);
595
573
  }
596
- const cr = 4096;
597
- function Sr(e) {
574
+ const hr = 4096;
575
+ function Lr(e) {
598
576
  const r = e.length;
599
- if (r <= cr)
577
+ if (r <= hr)
600
578
  return String.fromCharCode.apply(String, e);
601
579
  let t = "", n = 0;
602
580
  for (; n < r; )
603
581
  t += String.fromCharCode.apply(
604
582
  String,
605
- e.slice(n, n += cr)
583
+ e.slice(n, n += hr)
606
584
  );
607
585
  return t;
608
586
  }
609
- function Lr(e, r, t) {
587
+ function br(e, r, t) {
610
588
  let n = "";
611
589
  t = Math.min(e.length, t);
612
590
  for (let i = r; i < t; ++i)
@@ -625,7 +603,7 @@ er.write = function(f, h, s, y, w, a) {
625
603
  (!r || r < 0) && (r = 0), (!t || t < 0 || t > n) && (t = n);
626
604
  let i = "";
627
605
  for (let u = r; u < t; ++u)
628
- i += Gr[e[u]];
606
+ i += jr[e[u]];
629
607
  return i;
630
608
  }
631
609
  function kr(e, r, t) {
@@ -649,9 +627,9 @@ er.write = function(f, h, s, y, w, a) {
649
627
  }
650
628
  o.prototype.readUintLE = o.prototype.readUIntLE = function(r, t, n) {
651
629
  r = r >>> 0, t = t >>> 0, n || I(r, t, this.length);
652
- let i = this[r], u = 1, c = 0;
653
- for (; ++c < t && (u *= 256); )
654
- i += this[r + c] * u;
630
+ let i = this[r], u = 1, h = 0;
631
+ for (; ++h < t && (u *= 256); )
632
+ i += this[r + h] * u;
655
633
  return i;
656
634
  }, o.prototype.readUintBE = o.prototype.readUIntBE = function(r, t, n) {
657
635
  r = r >>> 0, t = t >>> 0, n || I(r, t, this.length);
@@ -670,29 +648,29 @@ er.write = function(f, h, s, y, w, a) {
670
648
  }, o.prototype.readUint32BE = o.prototype.readUInt32BE = function(r, t) {
671
649
  return r = r >>> 0, t || I(r, 4, this.length), this[r] * 16777216 + (this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3]);
672
650
  }, o.prototype.readBigUInt64LE = D(function(r) {
673
- r = r >>> 0, j(r, "offset");
651
+ r = r >>> 0, W(r, "offset");
674
652
  const t = this[r], n = this[r + 7];
675
653
  (t === void 0 || n === void 0) && H(r, this.length - 8);
676
654
  const i = t + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24, u = this[++r] + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + n * 2 ** 24;
677
655
  return BigInt(i) + (BigInt(u) << BigInt(32));
678
656
  }), o.prototype.readBigUInt64BE = D(function(r) {
679
- r = r >>> 0, j(r, "offset");
657
+ r = r >>> 0, W(r, "offset");
680
658
  const t = this[r], n = this[r + 7];
681
659
  (t === void 0 || n === void 0) && H(r, this.length - 8);
682
660
  const i = t * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r], u = this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + n;
683
661
  return (BigInt(i) << BigInt(32)) + BigInt(u);
684
662
  }), o.prototype.readIntLE = function(r, t, n) {
685
663
  r = r >>> 0, t = t >>> 0, n || I(r, t, this.length);
686
- let i = this[r], u = 1, c = 0;
687
- for (; ++c < t && (u *= 256); )
688
- i += this[r + c] * u;
664
+ let i = this[r], u = 1, h = 0;
665
+ for (; ++h < t && (u *= 256); )
666
+ i += this[r + h] * u;
689
667
  return u *= 128, i >= u && (i -= Math.pow(2, 8 * t)), i;
690
668
  }, o.prototype.readIntBE = function(r, t, n) {
691
669
  r = r >>> 0, t = t >>> 0, n || I(r, t, this.length);
692
- let i = t, u = 1, c = this[r + --i];
670
+ let i = t, u = 1, h = this[r + --i];
693
671
  for (; i > 0 && (u *= 256); )
694
- c += this[r + --i] * u;
695
- return u *= 128, c >= u && (c -= Math.pow(2, 8 * t)), c;
672
+ h += this[r + --i] * u;
673
+ return u *= 128, h >= u && (h -= Math.pow(2, 8 * t)), h;
696
674
  }, o.prototype.readInt8 = function(r, t) {
697
675
  return r = r >>> 0, t || I(r, 1, this.length), this[r] & 128 ? (255 - this[r] + 1) * -1 : this[r];
698
676
  }, o.prototype.readInt16LE = function(r, t) {
@@ -708,26 +686,26 @@ er.write = function(f, h, s, y, w, a) {
708
686
  }, o.prototype.readInt32BE = function(r, t) {
709
687
  return r = r >>> 0, t || I(r, 4, this.length), this[r] << 24 | this[r + 1] << 16 | this[r + 2] << 8 | this[r + 3];
710
688
  }, o.prototype.readBigInt64LE = D(function(r) {
711
- r = r >>> 0, j(r, "offset");
689
+ r = r >>> 0, W(r, "offset");
712
690
  const t = this[r], n = this[r + 7];
713
691
  (t === void 0 || n === void 0) && H(r, this.length - 8);
714
692
  const i = this[r + 4] + this[r + 5] * 2 ** 8 + this[r + 6] * 2 ** 16 + (n << 24);
715
693
  return (BigInt(i) << BigInt(32)) + BigInt(t + this[++r] * 2 ** 8 + this[++r] * 2 ** 16 + this[++r] * 2 ** 24);
716
694
  }), o.prototype.readBigInt64BE = D(function(r) {
717
- r = r >>> 0, j(r, "offset");
695
+ r = r >>> 0, W(r, "offset");
718
696
  const t = this[r], n = this[r + 7];
719
697
  (t === void 0 || n === void 0) && H(r, this.length - 8);
720
698
  const i = (t << 24) + // Overflow
721
699
  this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + this[++r];
722
700
  return (BigInt(i) << BigInt(32)) + BigInt(this[++r] * 2 ** 24 + this[++r] * 2 ** 16 + this[++r] * 2 ** 8 + n);
723
701
  }), o.prototype.readFloatLE = function(r, t) {
724
- return r = r >>> 0, t || I(r, 4, this.length), s.read(this, r, !0, 23, 4);
702
+ return r = r >>> 0, t || I(r, 4, this.length), p.read(this, r, !0, 23, 4);
725
703
  }, o.prototype.readFloatBE = function(r, t) {
726
- return r = r >>> 0, t || I(r, 4, this.length), s.read(this, r, !1, 23, 4);
704
+ return r = r >>> 0, t || I(r, 4, this.length), p.read(this, r, !1, 23, 4);
727
705
  }, o.prototype.readDoubleLE = function(r, t) {
728
- return r = r >>> 0, t || I(r, 8, this.length), s.read(this, r, !0, 52, 8);
706
+ return r = r >>> 0, t || I(r, 8, this.length), p.read(this, r, !0, 52, 8);
729
707
  }, o.prototype.readDoubleBE = function(r, t) {
730
- return r = r >>> 0, t || I(r, 8, this.length), s.read(this, r, !1, 52, 8);
708
+ return r = r >>> 0, t || I(r, 8, this.length), p.read(this, r, !1, 52, 8);
731
709
  };
732
710
  function T(e, r, t, n, i, u) {
733
711
  if (!o.isBuffer(e))
@@ -742,18 +720,18 @@ er.write = function(f, h, s, y, w, a) {
742
720
  const l = Math.pow(2, 8 * n) - 1;
743
721
  T(this, r, t, n, l, 0);
744
722
  }
745
- let u = 1, c = 0;
746
- for (this[t] = r & 255; ++c < n && (u *= 256); )
747
- this[t + c] = r / u & 255;
723
+ let u = 1, h = 0;
724
+ for (this[t] = r & 255; ++h < n && (u *= 256); )
725
+ this[t + h] = r / u & 255;
748
726
  return t + n;
749
727
  }, o.prototype.writeUintBE = o.prototype.writeUIntBE = function(r, t, n, i) {
750
728
  if (r = +r, t = t >>> 0, n = n >>> 0, !i) {
751
729
  const l = Math.pow(2, 8 * n) - 1;
752
730
  T(this, r, t, n, l, 0);
753
731
  }
754
- let u = n - 1, c = 1;
755
- for (this[t + u] = r & 255; --u >= 0 && (c *= 256); )
756
- this[t + u] = r / c & 255;
732
+ let u = n - 1, h = 1;
733
+ for (this[t + u] = r & 255; --u >= 0 && (h *= 256); )
734
+ this[t + u] = r / h & 255;
757
735
  return t + n;
758
736
  }, o.prototype.writeUint8 = o.prototype.writeUInt8 = function(r, t, n) {
759
737
  return r = +r, t = t >>> 0, n || T(this, r, t, 1, 255, 0), this[t] = r & 255, t + 1;
@@ -766,41 +744,41 @@ er.write = function(f, h, s, y, w, a) {
766
744
  }, o.prototype.writeUint32BE = o.prototype.writeUInt32BE = function(r, t, n) {
767
745
  return r = +r, t = t >>> 0, n || T(this, r, t, 4, 4294967295, 0), this[t] = r >>> 24, this[t + 1] = r >>> 16, this[t + 2] = r >>> 8, this[t + 3] = r & 255, t + 4;
768
746
  };
769
- function fr(e, r, t, n, i) {
747
+ function cr(e, r, t, n, i) {
770
748
  yr(r, n, i, e, t, 7);
771
749
  let u = Number(r & BigInt(4294967295));
772
750
  e[t++] = u, u = u >> 8, e[t++] = u, u = u >> 8, e[t++] = u, u = u >> 8, e[t++] = u;
773
- let c = Number(r >> BigInt(32) & BigInt(4294967295));
774
- return e[t++] = c, c = c >> 8, e[t++] = c, c = c >> 8, e[t++] = c, c = c >> 8, e[t++] = c, t;
751
+ let h = Number(r >> BigInt(32) & BigInt(4294967295));
752
+ return e[t++] = h, h = h >> 8, e[t++] = h, h = h >> 8, e[t++] = h, h = h >> 8, e[t++] = h, t;
775
753
  }
776
- function hr(e, r, t, n, i) {
754
+ function fr(e, r, t, n, i) {
777
755
  yr(r, n, i, e, t, 7);
778
756
  let u = Number(r & BigInt(4294967295));
779
757
  e[t + 7] = u, u = u >> 8, e[t + 6] = u, u = u >> 8, e[t + 5] = u, u = u >> 8, e[t + 4] = u;
780
- let c = Number(r >> BigInt(32) & BigInt(4294967295));
781
- return e[t + 3] = c, c = c >> 8, e[t + 2] = c, c = c >> 8, e[t + 1] = c, c = c >> 8, e[t] = c, t + 8;
758
+ let h = Number(r >> BigInt(32) & BigInt(4294967295));
759
+ return e[t + 3] = h, h = h >> 8, e[t + 2] = h, h = h >> 8, e[t + 1] = h, h = h >> 8, e[t] = h, t + 8;
782
760
  }
783
761
  o.prototype.writeBigUInt64LE = D(function(r, t = 0) {
784
- return fr(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
762
+ return cr(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
785
763
  }), o.prototype.writeBigUInt64BE = D(function(r, t = 0) {
786
- return hr(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
764
+ return fr(this, r, t, BigInt(0), BigInt("0xffffffffffffffff"));
787
765
  }), o.prototype.writeIntLE = function(r, t, n, i) {
788
766
  if (r = +r, t = t >>> 0, !i) {
789
767
  const E = Math.pow(2, 8 * n - 1);
790
768
  T(this, r, t, n, E - 1, -E);
791
769
  }
792
- let u = 0, c = 1, l = 0;
793
- for (this[t] = r & 255; ++u < n && (c *= 256); )
794
- r < 0 && l === 0 && this[t + u - 1] !== 0 && (l = 1), this[t + u] = (r / c >> 0) - l & 255;
770
+ let u = 0, h = 1, l = 0;
771
+ for (this[t] = r & 255; ++u < n && (h *= 256); )
772
+ r < 0 && l === 0 && this[t + u - 1] !== 0 && (l = 1), this[t + u] = (r / h >> 0) - l & 255;
795
773
  return t + n;
796
774
  }, o.prototype.writeIntBE = function(r, t, n, i) {
797
775
  if (r = +r, t = t >>> 0, !i) {
798
776
  const E = Math.pow(2, 8 * n - 1);
799
777
  T(this, r, t, n, E - 1, -E);
800
778
  }
801
- let u = n - 1, c = 1, l = 0;
802
- for (this[t + u] = r & 255; --u >= 0 && (c *= 256); )
803
- r < 0 && l === 0 && this[t + u + 1] !== 0 && (l = 1), this[t + u] = (r / c >> 0) - l & 255;
779
+ let u = n - 1, h = 1, l = 0;
780
+ for (this[t + u] = r & 255; --u >= 0 && (h *= 256); )
781
+ r < 0 && l === 0 && this[t + u + 1] !== 0 && (l = 1), this[t + u] = (r / h >> 0) - l & 255;
804
782
  return t + n;
805
783
  }, o.prototype.writeInt8 = function(r, t, n) {
806
784
  return r = +r, t = t >>> 0, n || T(this, r, t, 1, 127, -128), r < 0 && (r = 255 + r + 1), this[t] = r & 255, t + 1;
@@ -813,9 +791,9 @@ er.write = function(f, h, s, y, w, a) {
813
791
  }, o.prototype.writeInt32BE = function(r, t, n) {
814
792
  return r = +r, t = t >>> 0, n || T(this, r, t, 4, 2147483647, -2147483648), r < 0 && (r = 4294967295 + r + 1), this[t] = r >>> 24, this[t + 1] = r >>> 16, this[t + 2] = r >>> 8, this[t + 3] = r & 255, t + 4;
815
793
  }, o.prototype.writeBigInt64LE = D(function(r, t = 0) {
816
- return fr(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
794
+ return cr(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
817
795
  }), o.prototype.writeBigInt64BE = D(function(r, t = 0) {
818
- return hr(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
796
+ return fr(this, r, t, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
819
797
  });
820
798
  function sr(e, r, t, n, i, u) {
821
799
  if (t + n > e.length)
@@ -824,7 +802,7 @@ er.write = function(f, h, s, y, w, a) {
824
802
  throw new RangeError("Index out of range");
825
803
  }
826
804
  function pr(e, r, t, n, i) {
827
- return r = +r, t = t >>> 0, i || sr(e, r, t, 4), s.write(e, r, t, n, 23, 4), t + 4;
805
+ return r = +r, t = t >>> 0, i || sr(e, r, t, 4), p.write(e, r, t, n, 23, 4), t + 4;
828
806
  }
829
807
  o.prototype.writeFloatLE = function(r, t, n) {
830
808
  return pr(this, r, t, !0, n);
@@ -832,7 +810,7 @@ er.write = function(f, h, s, y, w, a) {
832
810
  return pr(this, r, t, !1, n);
833
811
  };
834
812
  function lr(e, r, t, n, i) {
835
- return r = +r, t = t >>> 0, i || sr(e, r, t, 8), s.write(e, r, t, n, 52, 8), t + 8;
813
+ return r = +r, t = t >>> 0, i || sr(e, r, t, 8), p.write(e, r, t, n, 52, 8), t + 8;
836
814
  }
837
815
  o.prototype.writeDoubleLE = function(r, t, n) {
838
816
  return lr(this, r, t, !0, n);
@@ -863,8 +841,8 @@ er.write = function(f, h, s, y, w, a) {
863
841
  if (typeof i == "string" && !o.isEncoding(i))
864
842
  throw new TypeError("Unknown encoding: " + i);
865
843
  if (r.length === 1) {
866
- const c = r.charCodeAt(0);
867
- (i === "utf8" && c < 128 || i === "latin1") && (r = c);
844
+ const h = r.charCodeAt(0);
845
+ (i === "utf8" && h < 128 || i === "latin1") && (r = h);
868
846
  }
869
847
  } else
870
848
  typeof r == "number" ? r = r & 255 : typeof r == "boolean" && (r = Number(r));
@@ -878,11 +856,11 @@ er.write = function(f, h, s, y, w, a) {
878
856
  for (u = t; u < n; ++u)
879
857
  this[u] = r;
880
858
  else {
881
- const c = o.isBuffer(r) ? r : o.from(r, i), l = c.length;
859
+ const h = o.isBuffer(r) ? r : o.from(r, i), l = h.length;
882
860
  if (l === 0)
883
861
  throw new TypeError('The value "' + r + '" is invalid for argument "value"');
884
862
  for (u = 0; u < n - t; ++u)
885
- this[u + t] = c[u % l];
863
+ this[u + t] = h[u % l];
886
864
  }
887
865
  return this;
888
866
  };
@@ -940,22 +918,22 @@ er.write = function(f, h, s, y, w, a) {
940
918
  return `${e.slice(0, t)}${r}`;
941
919
  }
942
920
  function Dr(e, r, t) {
943
- j(r, "offset"), (e[r] === void 0 || e[r + t] === void 0) && H(r, e.length - (t + 1));
921
+ W(r, "offset"), (e[r] === void 0 || e[r + t] === void 0) && H(r, e.length - (t + 1));
944
922
  }
945
923
  function yr(e, r, t, n, i, u) {
946
924
  if (e > t || e < r) {
947
- const c = typeof r == "bigint" ? "n" : "";
925
+ const h = typeof r == "bigint" ? "n" : "";
948
926
  let l;
949
- throw u > 3 ? r === 0 || r === BigInt(0) ? l = `>= 0${c} and < 2${c} ** ${(u + 1) * 8}${c}` : l = `>= -(2${c} ** ${(u + 1) * 8 - 1}${c}) and < 2 ** ${(u + 1) * 8 - 1}${c}` : l = `>= ${r}${c} and <= ${t}${c}`, new O.ERR_OUT_OF_RANGE("value", l, e);
927
+ throw u > 3 ? r === 0 || r === BigInt(0) ? l = `>= 0${h} and < 2${h} ** ${(u + 1) * 8}${h}` : l = `>= -(2${h} ** ${(u + 1) * 8 - 1}${h}) and < 2 ** ${(u + 1) * 8 - 1}${h}` : l = `>= ${r}${h} and <= ${t}${h}`, new O.ERR_OUT_OF_RANGE("value", l, e);
950
928
  }
951
929
  Dr(n, i, u);
952
930
  }
953
- function j(e, r) {
931
+ function W(e, r) {
954
932
  if (typeof e != "number")
955
933
  throw new O.ERR_INVALID_ARG_TYPE(r, "number", e);
956
934
  }
957
935
  function H(e, r, t) {
958
- throw Math.floor(e) !== e ? (j(e, t), new O.ERR_OUT_OF_RANGE(t || "offset", "an integer", e)) : r < 0 ? new O.ERR_BUFFER_OUT_OF_BOUNDS() : new O.ERR_OUT_OF_RANGE(
936
+ throw Math.floor(e) !== e ? (W(e, t), new O.ERR_OUT_OF_RANGE(t || "offset", "an integer", e)) : r < 0 ? new O.ERR_BUFFER_OUT_OF_BOUNDS() : new O.ERR_OUT_OF_RANGE(
959
937
  t || "offset",
960
938
  `>= ${t ? 1 : 0} and <= ${r}`,
961
939
  e
@@ -975,13 +953,13 @@ er.write = function(f, h, s, y, w, a) {
975
953
  const n = e.length;
976
954
  let i = null;
977
955
  const u = [];
978
- for (let c = 0; c < n; ++c) {
979
- if (t = e.charCodeAt(c), t > 55295 && t < 57344) {
956
+ for (let h = 0; h < n; ++h) {
957
+ if (t = e.charCodeAt(h), t > 55295 && t < 57344) {
980
958
  if (!i) {
981
959
  if (t > 56319) {
982
960
  (r -= 3) > -1 && u.push(239, 191, 189);
983
961
  continue;
984
- } else if (c + 1 === n) {
962
+ } else if (h + 1 === n) {
985
963
  (r -= 3) > -1 && u.push(239, 191, 189);
986
964
  continue;
987
965
  }
@@ -1034,15 +1012,15 @@ er.write = function(f, h, s, y, w, a) {
1034
1012
  r.push(e.charCodeAt(t) & 255);
1035
1013
  return r;
1036
1014
  }
1037
- function jr(e, r) {
1015
+ function Wr(e, r) {
1038
1016
  let t, n, i;
1039
1017
  const u = [];
1040
- for (let c = 0; c < e.length && !((r -= 2) < 0); ++c)
1041
- t = e.charCodeAt(c), n = t >> 8, i = t % 256, u.push(i), u.push(n);
1018
+ for (let h = 0; h < e.length && !((r -= 2) < 0); ++h)
1019
+ t = e.charCodeAt(h), n = t >> 8, i = t % 256, u.push(i), u.push(n);
1042
1020
  return u;
1043
1021
  }
1044
1022
  function wr(e) {
1045
- return h.toByteArray(Pr(e));
1023
+ return f.toByteArray(Pr(e));
1046
1024
  }
1047
1025
  function V(e, r, t, n) {
1048
1026
  let i;
@@ -1050,13 +1028,13 @@ er.write = function(f, h, s, y, w, a) {
1050
1028
  r[i + t] = e[i];
1051
1029
  return i;
1052
1030
  }
1053
- function b(e, r) {
1031
+ function S(e, r) {
1054
1032
  return e instanceof r || e != null && e.constructor != null && e.constructor.name != null && e.constructor.name === r.name;
1055
1033
  }
1056
1034
  function Z(e) {
1057
1035
  return e !== e;
1058
1036
  }
1059
- const Gr = function() {
1037
+ const jr = function() {
1060
1038
  const e = "0123456789abcdef", r = new Array(256);
1061
1039
  for (let t = 0; t < 16; ++t) {
1062
1040
  const n = t * 16;
@@ -1066,13 +1044,13 @@ er.write = function(f, h, s, y, w, a) {
1066
1044
  return r;
1067
1045
  }();
1068
1046
  function D(e) {
1069
- return typeof BigInt > "u" ? Wr : e;
1047
+ return typeof BigInt > "u" ? Gr : e;
1070
1048
  }
1071
- function Wr() {
1049
+ function Gr() {
1072
1050
  throw new Error("BigInt not supported");
1073
1051
  }
1074
1052
  })(xr);
1075
- var Br = { exports: {} }, m = Br.exports = {}, _, S;
1053
+ var dr = { exports: {} }, g = dr.exports = {}, _, L;
1076
1054
  function rr() {
1077
1055
  throw new Error("setTimeout has not been defined");
1078
1056
  }
@@ -1086,117 +1064,113 @@ function tr() {
1086
1064
  _ = rr;
1087
1065
  }
1088
1066
  try {
1089
- typeof clearTimeout == "function" ? S = clearTimeout : S = tr;
1067
+ typeof clearTimeout == "function" ? L = clearTimeout : L = tr;
1090
1068
  } catch {
1091
- S = tr;
1069
+ L = tr;
1092
1070
  }
1093
1071
  })();
1094
- function Er(f) {
1072
+ function Er(c) {
1095
1073
  if (_ === setTimeout)
1096
- return setTimeout(f, 0);
1074
+ return setTimeout(c, 0);
1097
1075
  if ((_ === rr || !_) && setTimeout)
1098
- return _ = setTimeout, setTimeout(f, 0);
1076
+ return _ = setTimeout, setTimeout(c, 0);
1099
1077
  try {
1100
- return _(f, 0);
1078
+ return _(c, 0);
1101
1079
  } catch {
1102
1080
  try {
1103
- return _.call(null, f, 0);
1081
+ return _.call(null, c, 0);
1104
1082
  } catch {
1105
- return _.call(this, f, 0);
1083
+ return _.call(this, c, 0);
1106
1084
  }
1107
1085
  }
1108
1086
  }
1109
- function Zr(f) {
1110
- if (S === clearTimeout)
1111
- return clearTimeout(f);
1112
- if ((S === tr || !S) && clearTimeout)
1113
- return S = clearTimeout, clearTimeout(f);
1087
+ function Zr(c) {
1088
+ if (L === clearTimeout)
1089
+ return clearTimeout(c);
1090
+ if ((L === tr || !L) && clearTimeout)
1091
+ return L = clearTimeout, clearTimeout(c);
1114
1092
  try {
1115
- return S(f);
1093
+ return L(c);
1116
1094
  } catch {
1117
1095
  try {
1118
- return S.call(null, f);
1096
+ return L.call(null, c);
1119
1097
  } catch {
1120
- return S.call(this, f);
1098
+ return L.call(this, c);
1121
1099
  }
1122
1100
  }
1123
1101
  }
1124
- var M = [], W = !1, P, X = -1;
1102
+ var M = [], G = !1, P, X = -1;
1125
1103
  function vr() {
1126
- !W || !P || (W = !1, P.length ? M = P.concat(M) : X = -1, M.length && gr());
1104
+ !G || !P || (G = !1, P.length ? M = P.concat(M) : X = -1, M.length && mr());
1127
1105
  }
1128
- function gr() {
1129
- if (!W) {
1130
- var f = Er(vr);
1131
- W = !0;
1132
- for (var h = M.length; h; ) {
1133
- for (P = M, M = []; ++X < h; )
1106
+ function mr() {
1107
+ if (!G) {
1108
+ var c = Er(vr);
1109
+ G = !0;
1110
+ for (var f = M.length; f; ) {
1111
+ for (P = M, M = []; ++X < f; )
1134
1112
  P && P[X].run();
1135
- X = -1, h = M.length;
1113
+ X = -1, f = M.length;
1136
1114
  }
1137
- P = null, W = !1, Zr(f);
1115
+ P = null, G = !1, Zr(c);
1138
1116
  }
1139
1117
  }
1140
- m.nextTick = function(f) {
1141
- var h = new Array(arguments.length - 1);
1118
+ g.nextTick = function(c) {
1119
+ var f = new Array(arguments.length - 1);
1142
1120
  if (arguments.length > 1)
1143
- for (var s = 1; s < arguments.length; s++)
1144
- h[s - 1] = arguments[s];
1145
- M.push(new mr(f, h)), M.length === 1 && !W && Er(gr);
1121
+ for (var p = 1; p < arguments.length; p++)
1122
+ f[p - 1] = arguments[p];
1123
+ M.push(new gr(c, f)), M.length === 1 && !G && Er(mr);
1146
1124
  };
1147
- function mr(f, h) {
1148
- this.fun = f, this.array = h;
1125
+ function gr(c, f) {
1126
+ this.fun = c, this.array = f;
1149
1127
  }
1150
- mr.prototype.run = function() {
1128
+ gr.prototype.run = function() {
1151
1129
  this.fun.apply(null, this.array);
1152
1130
  };
1153
- m.title = "browser";
1154
- m.browser = !0;
1155
- m.env = {};
1156
- m.argv = [];
1157
- m.version = "";
1158
- m.versions = {};
1131
+ g.title = "browser";
1132
+ g.browser = !0;
1133
+ g.env = {};
1134
+ g.argv = [];
1135
+ g.version = "";
1136
+ g.versions = {};
1159
1137
  function N() {
1160
1138
  }
1161
- m.on = N;
1162
- m.addListener = N;
1163
- m.once = N;
1164
- m.off = N;
1165
- m.removeListener = N;
1166
- m.removeAllListeners = N;
1167
- m.emit = N;
1168
- m.prependListener = N;
1169
- m.prependOnceListener = N;
1170
- m.listeners = function(f) {
1139
+ g.on = N;
1140
+ g.addListener = N;
1141
+ g.once = N;
1142
+ g.off = N;
1143
+ g.removeListener = N;
1144
+ g.removeAllListeners = N;
1145
+ g.emit = N;
1146
+ g.prependListener = N;
1147
+ g.prependOnceListener = N;
1148
+ g.listeners = function(c) {
1171
1149
  return [];
1172
1150
  };
1173
- m.binding = function(f) {
1151
+ g.binding = function(c) {
1174
1152
  throw new Error("process.binding is not supported");
1175
1153
  };
1176
- m.cwd = function() {
1154
+ g.cwd = function() {
1177
1155
  return "/";
1178
1156
  };
1179
- m.chdir = function(f) {
1157
+ g.chdir = function(c) {
1180
1158
  throw new Error("process.chdir is not supported");
1181
1159
  };
1182
- m.umask = function() {
1160
+ g.umask = function() {
1183
1161
  return 0;
1184
1162
  };
1185
- var rt = Br.exports, tt = /* @__PURE__ */ Yr(rt);
1163
+ var rt = dr.exports, tt = /* @__PURE__ */ Yr(rt);
1186
1164
  const et = () => {
1187
- self.addEventListener("unhandledrejection", (f) => {
1188
- throw new Error(f.reason);
1165
+ self.addEventListener("unhandledrejection", (c) => {
1166
+ throw new Error(c.reason);
1189
1167
  });
1190
1168
  };
1191
1169
  globalThis.process = tt;
1192
1170
  globalThis.Buffer = xr.Buffer;
1193
- const nt = import("./snarkjsWorkerLogic-BAbiO5gj.js");
1194
- addEventListener("message", async (f) => {
1195
- const { onWorkerMessage: h } = await nt;
1196
- h(f.data);
1171
+ const nt = import("./snarkjsWorkerLogic-B6N4z_eM.js");
1172
+ addEventListener("message", async (c) => {
1173
+ const { onWorkerMessage: f } = await nt;
1174
+ f(c.data);
1197
1175
  });
1198
1176
  et();
1199
- export {
1200
- it as c,
1201
- ot as g
1202
- };