prez-lib 4.1.1 → 4.1.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.
package/dist/prez-lib.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Qs = Object.defineProperty;
2
2
  var Vs = (t, e, r) => e in t ? Qs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var Ze = (t, e, r) => Vs(t, typeof e != "symbol" ? e + "" : e, r);
4
- function Du(t) {
4
+ function Mu(t) {
5
5
  return t.value !== void 0;
6
6
  }
7
7
  function Ks(t) {
@@ -33,9 +33,9 @@ var De = {}, or = {};
33
33
  or.byteLength = Zs;
34
34
  or.toByteArray = eo;
35
35
  or.fromByteArray = no;
36
- var Ce = [], Ne = [], Ys = typeof Uint8Array < "u" ? Uint8Array : Array, Ir = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
37
- for (var bt = 0, Xs = Ir.length; bt < Xs; ++bt)
38
- Ce[bt] = Ir[bt], Ne[Ir.charCodeAt(bt)] = bt;
36
+ var Ce = [], Ne = [], Ys = typeof Uint8Array < "u" ? Uint8Array : Array, Ar = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
37
+ for (var bt = 0, Xs = Ar.length; bt < Xs; ++bt)
38
+ Ce[bt] = Ar[bt], Ne[Ar.charCodeAt(bt)] = bt;
39
39
  Ne[45] = 62;
40
40
  Ne[95] = 63;
41
41
  function ji(t) {
@@ -77,9 +77,9 @@ function no(t) {
77
77
  Ce[e >> 10] + Ce[e >> 4 & 63] + Ce[e << 2 & 63] + "="
78
78
  )), i.join("");
79
79
  }
80
- var ln = {};
80
+ var fn = {};
81
81
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
82
- ln.read = function(t, e, r, n, i) {
82
+ fn.read = function(t, e, r, n, i) {
83
83
  var a, l, u = i * 8 - n - 1, p = (1 << u) - 1, _ = p >> 1, y = -7, x = r ? i - 1 : 0, I = r ? -1 : 1, S = t[e + x];
84
84
  for (x += I, a = S & (1 << -y) - 1, S >>= -y, y += u; y > 0; a = a * 256 + t[e + x], x += I, y -= 8)
85
85
  ;
@@ -94,13 +94,13 @@ ln.read = function(t, e, r, n, i) {
94
94
  }
95
95
  return (S ? -1 : 1) * l * Math.pow(2, a - n);
96
96
  };
97
- ln.write = function(t, e, r, n, i, a) {
98
- var l, u, p, _ = a * 8 - i - 1, y = (1 << _) - 1, x = y >> 1, I = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, S = n ? 0 : a - 1, R = n ? 1 : -1, m = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
97
+ fn.write = function(t, e, r, n, i, a) {
98
+ var l, u, p, _ = a * 8 - i - 1, y = (1 << _) - 1, x = y >> 1, I = i === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, S = n ? 0 : a - 1, R = n ? 1 : -1, w = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
99
99
  for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (u = isNaN(e) ? 1 : 0, l = y) : (l = Math.floor(Math.log(e) / Math.LN2), e * (p = Math.pow(2, -l)) < 1 && (l--, p *= 2), l + x >= 1 ? e += I / p : e += I * Math.pow(2, 1 - x), e * p >= 2 && (l++, p /= 2), l + x >= y ? (u = 0, l = y) : l + x >= 1 ? (u = (e * p - 1) * Math.pow(2, i), l = l + x) : (u = e * Math.pow(2, x - 1) * Math.pow(2, i), l = 0)); i >= 8; t[r + S] = u & 255, S += R, u /= 256, i -= 8)
100
100
  ;
101
101
  for (l = l << i | u, _ += i; _ > 0; t[r + S] = l & 255, S += R, l /= 256, _ -= 8)
102
102
  ;
103
- t[r + S - R] |= m * 128;
103
+ t[r + S - R] |= w * 128;
104
104
  };
105
105
  /*!
106
106
  * The buffer module from node.js, for the browser.
@@ -109,7 +109,7 @@ ln.write = function(t, e, r, n, i, a) {
109
109
  * @license MIT
110
110
  */
111
111
  (function(t) {
112
- const e = or, r = ln, n = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
112
+ const e = or, r = fn, n = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
113
113
  t.Buffer = u, t.SlowBuffer = B, t.INSPECT_MAX_BYTES = 50;
114
114
  const i = 2147483647;
115
115
  t.kMaxLength = i, u.TYPED_ARRAY_SUPPORT = a(), !u.TYPED_ARRAY_SUPPORT && typeof console < "u" && typeof console.error == "function" && console.error(
@@ -165,7 +165,7 @@ ln.write = function(t, e, r, n, i, a) {
165
165
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof f
166
166
  );
167
167
  if (O(f, ArrayBuffer) || f && O(f.buffer, ArrayBuffer) || typeof SharedArrayBuffer < "u" && (O(f, SharedArrayBuffer) || f && O(f.buffer, SharedArrayBuffer)))
168
- return m(f, s, o);
168
+ return w(f, s, o);
169
169
  if (typeof f == "number")
170
170
  throw new TypeError(
171
171
  'The "value" argument must not be of type number. Received type number'
@@ -173,7 +173,7 @@ ln.write = function(t, e, r, n, i, a) {
173
173
  const d = f.valueOf && f.valueOf();
174
174
  if (d != null && d !== f)
175
175
  return u.from(d, s, o);
176
- const b = v(f);
176
+ const b = A(f);
177
177
  if (b) return b;
178
178
  if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof f[Symbol.toPrimitive] == "function")
179
179
  return u.from(f[Symbol.toPrimitive]("string"), s, o);
@@ -207,7 +207,7 @@ ln.write = function(t, e, r, n, i, a) {
207
207
  function I(f, s) {
208
208
  if ((typeof s != "string" || s === "") && (s = "utf8"), !u.isEncoding(s))
209
209
  throw new TypeError("Unknown encoding: " + s);
210
- const o = A(f, s) | 0;
210
+ const o = T(f, s) | 0;
211
211
  let d = l(o);
212
212
  const b = d.write(f, s);
213
213
  return b !== o && (d = d.slice(0, b)), d;
@@ -221,11 +221,11 @@ ln.write = function(t, e, r, n, i, a) {
221
221
  function R(f) {
222
222
  if (O(f, Uint8Array)) {
223
223
  const s = new Uint8Array(f);
224
- return m(s.buffer, s.byteOffset, s.byteLength);
224
+ return w(s.buffer, s.byteOffset, s.byteLength);
225
225
  }
226
226
  return S(f);
227
227
  }
228
- function m(f, s, o) {
228
+ function w(f, s, o) {
229
229
  if (s < 0 || f.byteLength < s)
230
230
  throw new RangeError('"offset" is outside of buffer bounds');
231
231
  if (f.byteLength < s + (o || 0))
@@ -233,7 +233,7 @@ ln.write = function(t, e, r, n, i, a) {
233
233
  let d;
234
234
  return s === void 0 && o === void 0 ? d = new Uint8Array(f) : o === void 0 ? d = new Uint8Array(f, s) : d = new Uint8Array(f, s, o), Object.setPrototypeOf(d, u.prototype), d;
235
235
  }
236
- function v(f) {
236
+ function A(f) {
237
237
  if (u.isBuffer(f)) {
238
238
  const s = $(f.length) | 0, o = l(s);
239
239
  return o.length === 0 || f.copy(o, 0, 0, s), o;
@@ -260,7 +260,7 @@ ln.write = function(t, e, r, n, i, a) {
260
260
  );
261
261
  if (s === o) return 0;
262
262
  let d = s.length, b = o.length;
263
- for (let E = 0, T = Math.min(d, b); E < T; ++E)
263
+ for (let E = 0, v = Math.min(d, b); E < v; ++E)
264
264
  if (s[E] !== o[E]) {
265
265
  d = s[E], b = o[E];
266
266
  break;
@@ -295,22 +295,22 @@ ln.write = function(t, e, r, n, i, a) {
295
295
  const b = u.allocUnsafe(o);
296
296
  let E = 0;
297
297
  for (d = 0; d < s.length; ++d) {
298
- let T = s[d];
299
- if (O(T, Uint8Array))
300
- E + T.length > b.length ? (u.isBuffer(T) || (T = u.from(T)), T.copy(b, E)) : Uint8Array.prototype.set.call(
298
+ let v = s[d];
299
+ if (O(v, Uint8Array))
300
+ E + v.length > b.length ? (u.isBuffer(v) || (v = u.from(v)), v.copy(b, E)) : Uint8Array.prototype.set.call(
301
301
  b,
302
- T,
302
+ v,
303
303
  E
304
304
  );
305
- else if (u.isBuffer(T))
306
- T.copy(b, E);
305
+ else if (u.isBuffer(v))
306
+ v.copy(b, E);
307
307
  else
308
308
  throw new TypeError('"list" argument must be an Array of Buffers');
309
- E += T.length;
309
+ E += v.length;
310
310
  }
311
311
  return b;
312
312
  };
313
- function A(f, s) {
313
+ function T(f, s) {
314
314
  if (u.isBuffer(f))
315
315
  return f.length;
316
316
  if (ArrayBuffer.isView(f) || O(f, ArrayBuffer))
@@ -346,7 +346,7 @@ ln.write = function(t, e, r, n, i, a) {
346
346
  s = ("" + s).toLowerCase(), b = !0;
347
347
  }
348
348
  }
349
- u.byteLength = A;
349
+ u.byteLength = T;
350
350
  function z(f, s, o) {
351
351
  let d = !1;
352
352
  if ((s === void 0 || s < 0) && (s = 0), s > this.length || ((o === void 0 || o > this.length) && (o = this.length), o <= 0) || (o >>>= 0, s >>>= 0, o <= s))
@@ -425,14 +425,14 @@ ln.write = function(t, e, r, n, i, a) {
425
425
  if (o >= d)
426
426
  return 1;
427
427
  if (o >>>= 0, d >>>= 0, b >>>= 0, E >>>= 0, this === s) return 0;
428
- let T = E - b, W = d - o;
429
- const ne = Math.min(T, W), Z = this.slice(b, E), ie = s.slice(o, d);
428
+ let v = E - b, W = d - o;
429
+ const ne = Math.min(v, W), Z = this.slice(b, E), ie = s.slice(o, d);
430
430
  for (let Q = 0; Q < ne; ++Q)
431
431
  if (Z[Q] !== ie[Q]) {
432
- T = Z[Q], W = ie[Q];
432
+ v = Z[Q], W = ie[Q];
433
433
  break;
434
434
  }
435
- return T < W ? -1 : W < T ? 1 : 0;
435
+ return v < W ? -1 : W < v ? 1 : 0;
436
436
  };
437
437
  function se(f, s, o, d, b) {
438
438
  if (f.length === 0) return -1;
@@ -449,11 +449,11 @@ ln.write = function(t, e, r, n, i, a) {
449
449
  throw new TypeError("val must be string, number or Buffer");
450
450
  }
451
451
  function me(f, s, o, d, b) {
452
- let E = 1, T = f.length, W = s.length;
452
+ let E = 1, v = f.length, W = s.length;
453
453
  if (d !== void 0 && (d = String(d).toLowerCase(), d === "ucs2" || d === "ucs-2" || d === "utf16le" || d === "utf-16le")) {
454
454
  if (f.length < 2 || s.length < 2)
455
455
  return -1;
456
- E = 2, T /= 2, W /= 2, o /= 2;
456
+ E = 2, v /= 2, W /= 2, o /= 2;
457
457
  }
458
458
  function ne(ie, Q) {
459
459
  return E === 1 ? ie[Q] : ie.readUInt16BE(Q * E);
@@ -461,13 +461,13 @@ ln.write = function(t, e, r, n, i, a) {
461
461
  let Z;
462
462
  if (b) {
463
463
  let ie = -1;
464
- for (Z = o; Z < T; Z++)
464
+ for (Z = o; Z < v; Z++)
465
465
  if (ne(f, Z) === ne(s, ie === -1 ? 0 : Z - ie)) {
466
466
  if (ie === -1 && (ie = Z), Z - ie + 1 === W) return ie * E;
467
467
  } else
468
468
  ie !== -1 && (Z -= Z - ie), ie = -1;
469
469
  } else
470
- for (o + W > T && (o = T - W), Z = o; Z >= 0; Z--) {
470
+ for (o + W > v && (o = v - W), Z = o; Z >= 0; Z--) {
471
471
  let ie = !0;
472
472
  for (let Q = 0; Q < W; Q++)
473
473
  if (ne(f, Z + Q) !== ne(s, Q)) {
@@ -491,13 +491,13 @@ ln.write = function(t, e, r, n, i, a) {
491
491
  d ? (d = Number(d), d > b && (d = b)) : d = b;
492
492
  const E = s.length;
493
493
  d > E / 2 && (d = E / 2);
494
- let T;
495
- for (T = 0; T < d; ++T) {
496
- const W = parseInt(s.substr(T * 2, 2), 16);
497
- if (Te(W)) return T;
498
- f[o + T] = W;
494
+ let v;
495
+ for (v = 0; v < d; ++v) {
496
+ const W = parseInt(s.substr(v * 2, 2), 16);
497
+ if (Te(W)) return v;
498
+ f[o + v] = W;
499
499
  }
500
- return T;
500
+ return v;
501
501
  }
502
502
  function oe(f, s, o, d) {
503
503
  return Ee(F(s, f.length - o), f, o, d);
@@ -526,7 +526,7 @@ ln.write = function(t, e, r, n, i, a) {
526
526
  if ((d === void 0 || d > E) && (d = E), s.length > 0 && (d < 0 || o < 0) || o > this.length)
527
527
  throw new RangeError("Attempt to write outside buffer bounds");
528
528
  b || (b = "utf8");
529
- let T = !1;
529
+ let v = !1;
530
530
  for (; ; )
531
531
  switch (b) {
532
532
  case "hex":
@@ -546,8 +546,8 @@ ln.write = function(t, e, r, n, i, a) {
546
546
  case "utf-16le":
547
547
  return H(this, s, o, d);
548
548
  default:
549
- if (T) throw new TypeError("Unknown encoding: " + b);
550
- b = ("" + b).toLowerCase(), T = !0;
549
+ if (v) throw new TypeError("Unknown encoding: " + b);
550
+ b = ("" + b).toLowerCase(), v = !0;
551
551
  }
552
552
  }, u.prototype.toJSON = function() {
553
553
  return {
@@ -564,24 +564,24 @@ ln.write = function(t, e, r, n, i, a) {
564
564
  let b = s;
565
565
  for (; b < o; ) {
566
566
  const E = f[b];
567
- let T = null, W = E > 239 ? 4 : E > 223 ? 3 : E > 191 ? 2 : 1;
567
+ let v = null, W = E > 239 ? 4 : E > 223 ? 3 : E > 191 ? 2 : 1;
568
568
  if (b + W <= o) {
569
569
  let ne, Z, ie, Q;
570
570
  switch (W) {
571
571
  case 1:
572
- E < 128 && (T = E);
572
+ E < 128 && (v = E);
573
573
  break;
574
574
  case 2:
575
- ne = f[b + 1], (ne & 192) === 128 && (Q = (E & 31) << 6 | ne & 63, Q > 127 && (T = Q));
575
+ ne = f[b + 1], (ne & 192) === 128 && (Q = (E & 31) << 6 | ne & 63, Q > 127 && (v = Q));
576
576
  break;
577
577
  case 3:
578
- ne = f[b + 1], Z = f[b + 2], (ne & 192) === 128 && (Z & 192) === 128 && (Q = (E & 15) << 12 | (ne & 63) << 6 | Z & 63, Q > 2047 && (Q < 55296 || Q > 57343) && (T = Q));
578
+ ne = f[b + 1], Z = f[b + 2], (ne & 192) === 128 && (Z & 192) === 128 && (Q = (E & 15) << 12 | (ne & 63) << 6 | Z & 63, Q > 2047 && (Q < 55296 || Q > 57343) && (v = Q));
579
579
  break;
580
580
  case 4:
581
- ne = f[b + 1], Z = f[b + 2], ie = f[b + 3], (ne & 192) === 128 && (Z & 192) === 128 && (ie & 192) === 128 && (Q = (E & 15) << 18 | (ne & 63) << 12 | (Z & 63) << 6 | ie & 63, Q > 65535 && Q < 1114112 && (T = Q));
581
+ ne = f[b + 1], Z = f[b + 2], ie = f[b + 3], (ne & 192) === 128 && (Z & 192) === 128 && (ie & 192) === 128 && (Q = (E & 15) << 18 | (ne & 63) << 12 | (Z & 63) << 6 | ie & 63, Q > 65535 && Q < 1114112 && (v = Q));
582
582
  }
583
583
  }
584
- T === null ? (T = 65533, W = 1) : T > 65535 && (T -= 65536, d.push(T >>> 10 & 1023 | 55296), T = 56320 | T & 1023), d.push(T), b += W;
584
+ v === null ? (v = 65533, W = 1) : v > 65535 && (v -= 65536, d.push(v >>> 10 & 1023 | 55296), v = 56320 | v & 1023), d.push(v), b += W;
585
585
  }
586
586
  return q(d);
587
587
  }
@@ -639,9 +639,9 @@ ln.write = function(t, e, r, n, i, a) {
639
639
  }
640
640
  u.prototype.readUintLE = u.prototype.readUIntLE = function(s, o, d) {
641
641
  s = s >>> 0, o = o >>> 0, d || D(s, o, this.length);
642
- let b = this[s], E = 1, T = 0;
643
- for (; ++T < o && (E *= 256); )
644
- b += this[s + T] * E;
642
+ let b = this[s], E = 1, v = 0;
643
+ for (; ++v < o && (E *= 256); )
644
+ b += this[s + v] * E;
645
645
  return b;
646
646
  }, u.prototype.readUintBE = u.prototype.readUIntBE = function(s, o, d) {
647
647
  s = s >>> 0, o = o >>> 0, d || D(s, o, this.length);
@@ -662,27 +662,27 @@ ln.write = function(t, e, r, n, i, a) {
662
662
  }, u.prototype.readBigUInt64LE = $e(function(s) {
663
663
  s = s >>> 0, g(s, "offset");
664
664
  const o = this[s], d = this[s + 7];
665
- (o === void 0 || d === void 0) && w(s, this.length - 8);
665
+ (o === void 0 || d === void 0) && m(s, this.length - 8);
666
666
  const b = o + this[++s] * 2 ** 8 + this[++s] * 2 ** 16 + this[++s] * 2 ** 24, E = this[++s] + this[++s] * 2 ** 8 + this[++s] * 2 ** 16 + d * 2 ** 24;
667
667
  return BigInt(b) + (BigInt(E) << BigInt(32));
668
668
  }), u.prototype.readBigUInt64BE = $e(function(s) {
669
669
  s = s >>> 0, g(s, "offset");
670
670
  const o = this[s], d = this[s + 7];
671
- (o === void 0 || d === void 0) && w(s, this.length - 8);
671
+ (o === void 0 || d === void 0) && m(s, this.length - 8);
672
672
  const b = o * 2 ** 24 + this[++s] * 2 ** 16 + this[++s] * 2 ** 8 + this[++s], E = this[++s] * 2 ** 24 + this[++s] * 2 ** 16 + this[++s] * 2 ** 8 + d;
673
673
  return (BigInt(b) << BigInt(32)) + BigInt(E);
674
674
  }), u.prototype.readIntLE = function(s, o, d) {
675
675
  s = s >>> 0, o = o >>> 0, d || D(s, o, this.length);
676
- let b = this[s], E = 1, T = 0;
677
- for (; ++T < o && (E *= 256); )
678
- b += this[s + T] * E;
676
+ let b = this[s], E = 1, v = 0;
677
+ for (; ++v < o && (E *= 256); )
678
+ b += this[s + v] * E;
679
679
  return E *= 128, b >= E && (b -= Math.pow(2, 8 * o)), b;
680
680
  }, u.prototype.readIntBE = function(s, o, d) {
681
681
  s = s >>> 0, o = o >>> 0, d || D(s, o, this.length);
682
- let b = o, E = 1, T = this[s + --b];
682
+ let b = o, E = 1, v = this[s + --b];
683
683
  for (; b > 0 && (E *= 256); )
684
- T += this[s + --b] * E;
685
- return E *= 128, T >= E && (T -= Math.pow(2, 8 * o)), T;
684
+ v += this[s + --b] * E;
685
+ return E *= 128, v >= E && (v -= Math.pow(2, 8 * o)), v;
686
686
  }, u.prototype.readInt8 = function(s, o) {
687
687
  return s = s >>> 0, o || D(s, 1, this.length), this[s] & 128 ? (255 - this[s] + 1) * -1 : this[s];
688
688
  }, u.prototype.readInt16LE = function(s, o) {
@@ -700,13 +700,13 @@ ln.write = function(t, e, r, n, i, a) {
700
700
  }, u.prototype.readBigInt64LE = $e(function(s) {
701
701
  s = s >>> 0, g(s, "offset");
702
702
  const o = this[s], d = this[s + 7];
703
- (o === void 0 || d === void 0) && w(s, this.length - 8);
703
+ (o === void 0 || d === void 0) && m(s, this.length - 8);
704
704
  const b = this[s + 4] + this[s + 5] * 2 ** 8 + this[s + 6] * 2 ** 16 + (d << 24);
705
705
  return (BigInt(b) << BigInt(32)) + BigInt(o + this[++s] * 2 ** 8 + this[++s] * 2 ** 16 + this[++s] * 2 ** 24);
706
706
  }), u.prototype.readBigInt64BE = $e(function(s) {
707
707
  s = s >>> 0, g(s, "offset");
708
708
  const o = this[s], d = this[s + 7];
709
- (o === void 0 || d === void 0) && w(s, this.length - 8);
709
+ (o === void 0 || d === void 0) && m(s, this.length - 8);
710
710
  const b = (o << 24) + // Overflow
711
711
  this[++s] * 2 ** 16 + this[++s] * 2 ** 8 + this[++s];
712
712
  return (BigInt(b) << BigInt(32)) + BigInt(this[++s] * 2 ** 24 + this[++s] * 2 ** 16 + this[++s] * 2 ** 8 + d);
@@ -729,18 +729,18 @@ ln.write = function(t, e, r, n, i, a) {
729
729
  const W = Math.pow(2, 8 * d) - 1;
730
730
  re(this, s, o, d, W, 0);
731
731
  }
732
- let E = 1, T = 0;
733
- for (this[o] = s & 255; ++T < d && (E *= 256); )
734
- this[o + T] = s / E & 255;
732
+ let E = 1, v = 0;
733
+ for (this[o] = s & 255; ++v < d && (E *= 256); )
734
+ this[o + v] = s / E & 255;
735
735
  return o + d;
736
736
  }, u.prototype.writeUintBE = u.prototype.writeUIntBE = function(s, o, d, b) {
737
737
  if (s = +s, o = o >>> 0, d = d >>> 0, !b) {
738
738
  const W = Math.pow(2, 8 * d) - 1;
739
739
  re(this, s, o, d, W, 0);
740
740
  }
741
- let E = d - 1, T = 1;
742
- for (this[o + E] = s & 255; --E >= 0 && (T *= 256); )
743
- this[o + E] = s / T & 255;
741
+ let E = d - 1, v = 1;
742
+ for (this[o + E] = s & 255; --E >= 0 && (v *= 256); )
743
+ this[o + E] = s / v & 255;
744
744
  return o + d;
745
745
  }, u.prototype.writeUint8 = u.prototype.writeUInt8 = function(s, o, d) {
746
746
  return s = +s, o = o >>> 0, d || re(this, s, o, 1, 255, 0), this[o] = s & 255, o + 1;
@@ -757,37 +757,37 @@ ln.write = function(t, e, r, n, i, a) {
757
757
  Xe(s, d, b, f, o, 7);
758
758
  let E = Number(s & BigInt(4294967295));
759
759
  f[o++] = E, E = E >> 8, f[o++] = E, E = E >> 8, f[o++] = E, E = E >> 8, f[o++] = E;
760
- let T = Number(s >> BigInt(32) & BigInt(4294967295));
761
- return f[o++] = T, T = T >> 8, f[o++] = T, T = T >> 8, f[o++] = T, T = T >> 8, f[o++] = T, o;
760
+ let v = Number(s >> BigInt(32) & BigInt(4294967295));
761
+ return f[o++] = v, v = v >> 8, f[o++] = v, v = v >> 8, f[o++] = v, v = v >> 8, f[o++] = v, o;
762
762
  }
763
- function he(f, s, o, d, b) {
763
+ function pe(f, s, o, d, b) {
764
764
  Xe(s, d, b, f, o, 7);
765
765
  let E = Number(s & BigInt(4294967295));
766
766
  f[o + 7] = E, E = E >> 8, f[o + 6] = E, E = E >> 8, f[o + 5] = E, E = E >> 8, f[o + 4] = E;
767
- let T = Number(s >> BigInt(32) & BigInt(4294967295));
768
- return f[o + 3] = T, T = T >> 8, f[o + 2] = T, T = T >> 8, f[o + 1] = T, T = T >> 8, f[o] = T, o + 8;
767
+ let v = Number(s >> BigInt(32) & BigInt(4294967295));
768
+ return f[o + 3] = v, v = v >> 8, f[o + 2] = v, v = v >> 8, f[o + 1] = v, v = v >> 8, f[o] = v, o + 8;
769
769
  }
770
770
  u.prototype.writeBigUInt64LE = $e(function(s, o = 0) {
771
771
  return M(this, s, o, BigInt(0), BigInt("0xffffffffffffffff"));
772
772
  }), u.prototype.writeBigUInt64BE = $e(function(s, o = 0) {
773
- return he(this, s, o, BigInt(0), BigInt("0xffffffffffffffff"));
773
+ return pe(this, s, o, BigInt(0), BigInt("0xffffffffffffffff"));
774
774
  }), u.prototype.writeIntLE = function(s, o, d, b) {
775
775
  if (s = +s, o = o >>> 0, !b) {
776
776
  const ne = Math.pow(2, 8 * d - 1);
777
777
  re(this, s, o, d, ne - 1, -ne);
778
778
  }
779
- let E = 0, T = 1, W = 0;
780
- for (this[o] = s & 255; ++E < d && (T *= 256); )
781
- s < 0 && W === 0 && this[o + E - 1] !== 0 && (W = 1), this[o + E] = (s / T >> 0) - W & 255;
779
+ let E = 0, v = 1, W = 0;
780
+ for (this[o] = s & 255; ++E < d && (v *= 256); )
781
+ s < 0 && W === 0 && this[o + E - 1] !== 0 && (W = 1), this[o + E] = (s / v >> 0) - W & 255;
782
782
  return o + d;
783
783
  }, u.prototype.writeIntBE = function(s, o, d, b) {
784
784
  if (s = +s, o = o >>> 0, !b) {
785
785
  const ne = Math.pow(2, 8 * d - 1);
786
786
  re(this, s, o, d, ne - 1, -ne);
787
787
  }
788
- let E = d - 1, T = 1, W = 0;
789
- for (this[o + E] = s & 255; --E >= 0 && (T *= 256); )
790
- s < 0 && W === 0 && this[o + E + 1] !== 0 && (W = 1), this[o + E] = (s / T >> 0) - W & 255;
788
+ let E = d - 1, v = 1, W = 0;
789
+ for (this[o + E] = s & 255; --E >= 0 && (v *= 256); )
790
+ s < 0 && W === 0 && this[o + E + 1] !== 0 && (W = 1), this[o + E] = (s / v >> 0) - W & 255;
791
791
  return o + d;
792
792
  }, u.prototype.writeInt8 = function(s, o, d) {
793
793
  return s = +s, o = o >>> 0, d || re(this, s, o, 1, 127, -128), s < 0 && (s = 255 + s + 1), this[o] = s & 255, o + 1;
@@ -802,7 +802,7 @@ ln.write = function(t, e, r, n, i, a) {
802
802
  }, u.prototype.writeBigInt64LE = $e(function(s, o = 0) {
803
803
  return M(this, s, o, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
804
804
  }), u.prototype.writeBigInt64BE = $e(function(s, o = 0) {
805
- return he(this, s, o, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
805
+ return pe(this, s, o, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
806
806
  });
807
807
  function Re(f, s, o, d, b, E) {
808
808
  if (o + d > f.length) throw new RangeError("Index out of range");
@@ -844,8 +844,8 @@ ln.write = function(t, e, r, n, i, a) {
844
844
  if (typeof b == "string" && !u.isEncoding(b))
845
845
  throw new TypeError("Unknown encoding: " + b);
846
846
  if (s.length === 1) {
847
- const T = s.charCodeAt(0);
848
- (b === "utf8" && T < 128 || b === "latin1") && (s = T);
847
+ const v = s.charCodeAt(0);
848
+ (b === "utf8" && v < 128 || b === "latin1") && (s = v);
849
849
  }
850
850
  } else typeof s == "number" ? s = s & 255 : typeof s == "boolean" && (s = Number(s));
851
851
  if (o < 0 || this.length < o || this.length < d)
@@ -858,11 +858,11 @@ ln.write = function(t, e, r, n, i, a) {
858
858
  for (E = o; E < d; ++E)
859
859
  this[E] = s;
860
860
  else {
861
- const T = u.isBuffer(s) ? s : u.from(s, b), W = T.length;
861
+ const v = u.isBuffer(s) ? s : u.from(s, b), W = v.length;
862
862
  if (W === 0)
863
863
  throw new TypeError('The value "' + s + '" is invalid for argument "value"');
864
864
  for (E = 0; E < d - o; ++E)
865
- this[E + o] = T[E % W];
865
+ this[E + o] = v[E % W];
866
866
  }
867
867
  return this;
868
868
  };
@@ -920,13 +920,13 @@ ln.write = function(t, e, r, n, i, a) {
920
920
  return `${f.slice(0, o)}${s}`;
921
921
  }
922
922
  function rt(f, s, o) {
923
- g(s, "offset"), (f[s] === void 0 || f[s + o] === void 0) && w(s, f.length - (o + 1));
923
+ g(s, "offset"), (f[s] === void 0 || f[s + o] === void 0) && m(s, f.length - (o + 1));
924
924
  }
925
925
  function Xe(f, s, o, d, b, E) {
926
926
  if (f > o || f < s) {
927
- const T = typeof s == "bigint" ? "n" : "";
927
+ const v = typeof s == "bigint" ? "n" : "";
928
928
  let W;
929
- throw s === 0 || s === BigInt(0) ? W = `>= 0${T} and < 2${T} ** ${(E + 1) * 8}${T}` : W = `>= -(2${T} ** ${(E + 1) * 8 - 1}${T}) and < 2 ** ${(E + 1) * 8 - 1}${T}`, new Ae.ERR_OUT_OF_RANGE("value", W, f);
929
+ throw s === 0 || s === BigInt(0) ? W = `>= 0${v} and < 2${v} ** ${(E + 1) * 8}${v}` : W = `>= -(2${v} ** ${(E + 1) * 8 - 1}${v}) and < 2 ** ${(E + 1) * 8 - 1}${v}`, new Ae.ERR_OUT_OF_RANGE("value", W, f);
930
930
  }
931
931
  rt(d, b, E);
932
932
  }
@@ -934,7 +934,7 @@ ln.write = function(t, e, r, n, i, a) {
934
934
  if (typeof f != "number")
935
935
  throw new Ae.ERR_INVALID_ARG_TYPE(s, "number", f);
936
936
  }
937
- function w(f, s, o) {
937
+ function m(f, s, o) {
938
938
  throw Math.floor(f) !== f ? (g(f, o), new Ae.ERR_OUT_OF_RANGE("offset", "an integer", f)) : s < 0 ? new Ae.ERR_BUFFER_OUT_OF_BOUNDS() : new Ae.ERR_OUT_OF_RANGE(
939
939
  "offset",
940
940
  `>= 0 and <= ${s}`,
@@ -954,13 +954,13 @@ ln.write = function(t, e, r, n, i, a) {
954
954
  const d = f.length;
955
955
  let b = null;
956
956
  const E = [];
957
- for (let T = 0; T < d; ++T) {
958
- if (o = f.charCodeAt(T), o > 55295 && o < 57344) {
957
+ for (let v = 0; v < d; ++v) {
958
+ if (o = f.charCodeAt(v), o > 55295 && o < 57344) {
959
959
  if (!b) {
960
960
  if (o > 56319) {
961
961
  (s -= 3) > -1 && E.push(239, 191, 189);
962
962
  continue;
963
- } else if (T + 1 === d) {
963
+ } else if (v + 1 === d) {
964
964
  (s -= 3) > -1 && E.push(239, 191, 189);
965
965
  continue;
966
966
  }
@@ -1011,8 +1011,8 @@ ln.write = function(t, e, r, n, i, a) {
1011
1011
  function ee(f, s) {
1012
1012
  let o, d, b;
1013
1013
  const E = [];
1014
- for (let T = 0; T < f.length && !((s -= 2) < 0); ++T)
1015
- o = f.charCodeAt(T), d = o >> 8, b = o % 256, E.push(b), E.push(d);
1014
+ for (let v = 0; v < f.length && !((s -= 2) < 0); ++v)
1015
+ o = f.charCodeAt(v), d = o >> 8, b = o % 256, E.push(b), E.push(d);
1016
1016
  return E;
1017
1017
  }
1018
1018
  function K(f) {
@@ -1040,13 +1040,13 @@ ln.write = function(t, e, r, n, i, a) {
1040
1040
  return s;
1041
1041
  }();
1042
1042
  function $e(f) {
1043
- return typeof BigInt > "u" ? gr : f;
1043
+ return typeof BigInt > "u" ? mr : f;
1044
1044
  }
1045
- function gr() {
1045
+ function mr() {
1046
1046
  throw new Error("BigInt not supported");
1047
1047
  }
1048
1048
  })(De);
1049
- const Pt = "http://www.w3.org/1999/02/22-rdf-syntax-ns#", jt = "http://www.w3.org/2001/XMLSchema#", qt = "http://www.w3.org/2000/10/swap/", pe = {
1049
+ const Pt = "http://www.w3.org/1999/02/22-rdf-syntax-ns#", jt = "http://www.w3.org/2001/XMLSchema#", qt = "http://www.w3.org/2000/10/swap/", _e = {
1050
1050
  xsd: {
1051
1051
  decimal: `${jt}decimal`,
1052
1052
  boolean: `${jt}boolean`,
@@ -1072,7 +1072,7 @@ const Pt = "http://www.w3.org/1999/02/22-rdf-syntax-ns#", jt = "http://www.w3.or
1072
1072
  implies: `${qt}log#implies`,
1073
1073
  isImpliedBy: `${qt}log#isImpliedBy`
1074
1074
  }
1075
- }, { xsd: Ht } = pe, io = /\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g, Bn = {
1075
+ }, { xsd: Ht } = _e, io = /\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{8})|\\([^])/g, Bn = {
1076
1076
  "\\": "\\",
1077
1077
  "'": "'",
1078
1078
  '"': '"',
@@ -1133,18 +1133,18 @@ class lo {
1133
1133
  if (!u && (u = this._whitespace.exec(n)) && (n = n.substr(u[0].length, n.length)), this._endOfFile.test(n))
1134
1134
  return r && (this.comments && (p = this._comment.exec(n)) && a("comment", p[1], "", this._line, n.length), n = null, a("eof", "", "", this._line, 0)), this._input = n;
1135
1135
  const _ = this._line, y = n[0];
1136
- let x = "", I = "", S = "", R = null, m = 0, v = !1;
1136
+ let x = "", I = "", S = "", R = null, w = 0, A = !1;
1137
1137
  switch (y) {
1138
1138
  case "^":
1139
1139
  if (n.length < 3)
1140
1140
  break;
1141
1141
  if (n[1] === "^") {
1142
1142
  if (this._previousMarker = "^^", n = n.substr(2), n[0] !== "<") {
1143
- v = !0;
1143
+ A = !0;
1144
1144
  break;
1145
1145
  }
1146
1146
  } else {
1147
- this._n3Mode && (m = 1, x = "^");
1147
+ this._n3Mode && (w = 1, x = "^");
1148
1148
  break;
1149
1149
  }
1150
1150
  // Fall through in case the type is an IRI
@@ -1155,10 +1155,10 @@ class lo {
1155
1155
  if (I = this._unescape(R[1]), I === null || so.test(I))
1156
1156
  return l(this);
1157
1157
  x = "IRI";
1158
- } else n.length > 1 && n[1] === "<" ? (x = "<<", m = 2) : this._n3Mode && n.length > 1 && n[1] === "=" && (m = 2, this._isImpliedBy ? (x = "abbreviation", I = "<") : (x = "inverse", I = ">"));
1158
+ } else n.length > 1 && n[1] === "<" ? (x = "<<", w = 2) : this._n3Mode && n.length > 1 && n[1] === "=" && (w = 2, this._isImpliedBy ? (x = "abbreviation", I = "<") : (x = "inverse", I = ">"));
1159
1159
  break;
1160
1160
  case ">":
1161
- n.length > 1 && n[1] === ">" && (x = ">>", m = 2);
1161
+ n.length > 1 && n[1] === ">" && (x = ">>", w = 2);
1162
1162
  break;
1163
1163
  case "_":
1164
1164
  ((R = this._blank.exec(n)) || r && (R = this._blank.exec(`${n} `))) && (x = "blank", S = "_", I = R[1]);
@@ -1166,17 +1166,17 @@ class lo {
1166
1166
  case '"':
1167
1167
  if (R = this._simpleQuotedString.exec(n))
1168
1168
  I = R[1];
1169
- else if ({ value: I, matchLength: m } = this._parseLiteral(n), I === null)
1169
+ else if ({ value: I, matchLength: w } = this._parseLiteral(n), I === null)
1170
1170
  return l(this);
1171
- (R !== null || m !== 0) && (x = "literal", this._literalClosingPos = 0);
1171
+ (R !== null || w !== 0) && (x = "literal", this._literalClosingPos = 0);
1172
1172
  break;
1173
1173
  case "'":
1174
1174
  if (!this._lineMode) {
1175
1175
  if (R = this._simpleApostropheString.exec(n))
1176
1176
  I = R[1];
1177
- else if ({ value: I, matchLength: m } = this._parseLiteral(n), I === null)
1177
+ else if ({ value: I, matchLength: w } = this._parseLiteral(n), I === null)
1178
1178
  return l(this);
1179
- (R !== null || m !== 0) && (x = "literal", this._literalClosingPos = 0);
1179
+ (R !== null || w !== 0) && (x = "literal", this._literalClosingPos = 0);
1180
1180
  }
1181
1181
  break;
1182
1182
  case "?":
@@ -1187,7 +1187,7 @@ class lo {
1187
1187
  break;
1188
1188
  case ".":
1189
1189
  if (n.length === 1 ? r : n[1] < "0" || n[1] > "9") {
1190
- x = ".", m = 1;
1190
+ x = ".", w = 1;
1191
1191
  break;
1192
1192
  }
1193
1193
  // Fall through to numerical case (could be a decimal dot)
@@ -1211,17 +1211,17 @@ class lo {
1211
1211
  case "P":
1212
1212
  case "G":
1213
1213
  case "g":
1214
- (R = this._sparqlKeyword.exec(n)) ? x = R[0].toUpperCase() : v = !0;
1214
+ (R = this._sparqlKeyword.exec(n)) ? x = R[0].toUpperCase() : A = !0;
1215
1215
  break;
1216
1216
  case "f":
1217
1217
  case "t":
1218
- (R = this._boolean.exec(n)) ? (x = "literal", I = R[0], S = Ht.boolean) : v = !0;
1218
+ (R = this._boolean.exec(n)) ? (x = "literal", I = R[0], S = Ht.boolean) : A = !0;
1219
1219
  break;
1220
1220
  case "a":
1221
- (R = this._shortPredicates.exec(n)) ? (x = "abbreviation", I = "a") : v = !0;
1221
+ (R = this._shortPredicates.exec(n)) ? (x = "abbreviation", I = "a") : A = !0;
1222
1222
  break;
1223
1223
  case "=":
1224
- this._n3Mode && n.length > 1 && (x = "abbreviation", n[1] !== ">" ? (m = 1, I = "=") : (m = 2, I = ">"));
1224
+ this._n3Mode && n.length > 1 && (x = "abbreviation", n[1] !== ">" ? (w = 1, I = "=") : (w = 2, I = ">"));
1225
1225
  break;
1226
1226
  case "!":
1227
1227
  if (!this._n3Mode)
@@ -1233,18 +1233,18 @@ class lo {
1233
1233
  case "(":
1234
1234
  case ")":
1235
1235
  case "}":
1236
- this._lineMode || (m = 1, x = y);
1236
+ this._lineMode || (w = 1, x = y);
1237
1237
  break;
1238
1238
  case "{":
1239
- !this._lineMode && n.length >= 2 && (n[1] === "|" ? (x = "{|", m = 2) : (x = y, m = 1));
1239
+ !this._lineMode && n.length >= 2 && (n[1] === "|" ? (x = "{|", w = 2) : (x = y, w = 1));
1240
1240
  break;
1241
1241
  case "|":
1242
- n.length >= 2 && n[1] === "}" && (x = "|}", m = 2);
1242
+ n.length >= 2 && n[1] === "}" && (x = "|}", w = 2);
1243
1243
  break;
1244
1244
  default:
1245
- v = !0;
1245
+ A = !0;
1246
1246
  }
1247
- if (v && ((this._previousMarker === "@prefix" || this._previousMarker === "PREFIX") && (R = this._prefix.exec(n)) ? (x = "prefix", I = R[1] || "") : ((R = this._prefixed.exec(n)) || r && (R = this._prefixed.exec(`${n} `))) && (x = "prefixed", S = R[1] || "", I = this._unescape(R[2]))), this._previousMarker === "^^")
1247
+ if (A && ((this._previousMarker === "@prefix" || this._previousMarker === "PREFIX") && (R = this._prefix.exec(n)) ? (x = "prefix", I = R[1] || "") : ((R = this._prefixed.exec(n)) || r && (R = this._prefixed.exec(`${n} `))) && (x = "prefixed", S = R[1] || "", I = this._unescape(R[2]))), this._previousMarker === "^^")
1248
1248
  switch (x) {
1249
1249
  case "prefixed":
1250
1250
  x = "type";
@@ -1257,7 +1257,7 @@ class lo {
1257
1257
  }
1258
1258
  if (!x)
1259
1259
  return r || !/^'''|^"""/.test(n) && /\n|\r/.test(n) ? l(this) : this._input = n;
1260
- const $ = m || R[0].length, B = a(x, I, S, _, $);
1260
+ const $ = w || R[0].length, B = a(x, I, S, _, $);
1261
1261
  this.previousToken = B, this._previousMarker = x, n = n.substr($, n.length);
1262
1262
  }
1263
1263
  function a(u, p, _, y, x) {
@@ -1338,7 +1338,7 @@ class lo {
1338
1338
  }), e.on("error", r);
1339
1339
  }
1340
1340
  }
1341
- const { rdf: uo, xsd: at } = pe;
1341
+ const { rdf: uo, xsd: at } = _e;
1342
1342
  let At, fo = 0;
1343
1343
  const ft = {
1344
1344
  namedNode: Bi,
@@ -1346,8 +1346,8 @@ const ft = {
1346
1346
  variable: Ci,
1347
1347
  literal: ki,
1348
1348
  defaultGraph: _o,
1349
- quad: Hr,
1350
- triple: Hr,
1349
+ quad: Vr,
1350
+ triple: Vr,
1351
1351
  fromTerm: Ct,
1352
1352
  fromQuad: Oi
1353
1353
  };
@@ -1576,7 +1576,7 @@ function Ci(t) {
1576
1576
  function _o() {
1577
1577
  return At;
1578
1578
  }
1579
- function Hr(t, e, r, n) {
1579
+ function Vr(t, e, r, n) {
1580
1580
  return new $i(t, e, r, n);
1581
1581
  }
1582
1582
  function Ct(t) {
@@ -1604,7 +1604,7 @@ function Oi(t) {
1604
1604
  return t;
1605
1605
  if (t.termType !== "Quad")
1606
1606
  throw new Error(`Unexpected termType: ${t.termType}`);
1607
- return Hr(Ct(t.subject), Ct(t.predicate), Ct(t.object), Ct(t.graph));
1607
+ return Vr(Ct(t.subject), Ct(t.predicate), Ct(t.object), Ct(t.graph));
1608
1608
  }
1609
1609
  let Fn = 0;
1610
1610
  class Mi {
@@ -2258,22 +2258,22 @@ class Mi {
2258
2258
  function Qt() {
2259
2259
  }
2260
2260
  function Di(t, e) {
2261
- t._factory = e, t.DEFAULTGRAPH = e.defaultGraph(), t.RDF_FIRST = e.namedNode(pe.rdf.first), t.RDF_REST = e.namedNode(pe.rdf.rest), t.RDF_NIL = e.namedNode(pe.rdf.nil), t.N3_FORALL = e.namedNode(pe.r.forAll), t.N3_FORSOME = e.namedNode(pe.r.forSome), t.ABBREVIATIONS = {
2262
- a: e.namedNode(pe.rdf.type),
2263
- "=": e.namedNode(pe.owl.sameAs),
2264
- ">": e.namedNode(pe.log.implies),
2265
- "<": e.namedNode(pe.log.isImpliedBy)
2261
+ t._factory = e, t.DEFAULTGRAPH = e.defaultGraph(), t.RDF_FIRST = e.namedNode(_e.rdf.first), t.RDF_REST = e.namedNode(_e.rdf.rest), t.RDF_NIL = e.namedNode(_e.rdf.nil), t.N3_FORALL = e.namedNode(_e.r.forAll), t.N3_FORSOME = e.namedNode(_e.r.forSome), t.ABBREVIATIONS = {
2262
+ a: e.namedNode(_e.rdf.type),
2263
+ "=": e.namedNode(_e.owl.sameAs),
2264
+ ">": e.namedNode(_e.log.implies),
2265
+ "<": e.namedNode(_e.log.isImpliedBy)
2266
2266
  }, t.QUANTIFIERS_GRAPH = e.namedNode("urn:n3:quantifiers");
2267
2267
  }
2268
2268
  Di(Mi.prototype, ft);
2269
- function Qr(t) {
2269
+ function Kr(t) {
2270
2270
  return !!t && t.termType === "DefaultGraph";
2271
2271
  }
2272
2272
  function Zt(t) {
2273
2273
  return t.replace(/[\]\/\(\)\*\+\?\.\\\$]/g, "\\$&");
2274
2274
  }
2275
- const bo = /^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i, yo = /^(?:(?:[^/?#]{3,}|\.?[^/?#.]\.?)(?:\/[^/?#]{3,}|\.?[^/?#.]\.?)*\/?)?(?:[?#]|$)/, kn = "./", go = "../", Rr = "?", Cn = "#";
2276
- class un {
2275
+ const bo = /^:?[^:?#]*(?:[?#]|$)|^file:|^[^:]*:\/*[^?#]+?\/(?:\.\.?(?:\/|$)|\/)/i, yo = /^(?:(?:[^/?#]{3,}|\.?[^/?#.]\.?)(?:\/[^/?#]{3,}|\.?[^/?#.]\.?)*\/?)?(?:[?#]|$)/, kn = "./", go = "../", Tr = "?", Cn = "#";
2276
+ class cn {
2277
2277
  constructor(e) {
2278
2278
  this.base = e, this._baseLength = 0, this._baseMatcher = null, this._pathReplacements = new Array(e.length + 1);
2279
2279
  }
@@ -2283,12 +2283,12 @@ class un {
2283
2283
  _getBaseMatcher() {
2284
2284
  if (this._baseMatcher)
2285
2285
  return this._baseMatcher;
2286
- if (!un.supports(this.base))
2286
+ if (!cn.supports(this.base))
2287
2287
  return this._baseMatcher = /.^/;
2288
2288
  const e = /^[^:]*:\/*/.exec(this.base)[0], r = ["^", Zt(e)], n = [], i = [], a = /[^/?#]*([/?#])/y;
2289
2289
  let l, u = 0, p = 0, _ = a.lastIndex = e.length;
2290
2290
  for (; !u && !p && (l = a.exec(this.base)); )
2291
- l[1] === Cn ? p = a.lastIndex - 1 : (r.push(Zt(l[0]), "(?:"), n.push(")?"), l[1] !== Rr ? i.push(_ = a.lastIndex) : (u = _ = a.lastIndex, p = this.base.indexOf(Cn, u), this._pathReplacements[u] = Rr));
2291
+ l[1] === Cn ? p = a.lastIndex - 1 : (r.push(Zt(l[0]), "(?:"), n.push(")?"), l[1] !== Tr ? i.push(_ = a.lastIndex) : (u = _ = a.lastIndex, p = this.base.indexOf(Cn, u), this._pathReplacements[u] = Tr));
2292
2292
  for (let y = 0; y < i.length; y++)
2293
2293
  this._pathReplacements[i[y]] = go.repeat(i.length - y - 1);
2294
2294
  return this._pathReplacements[i[i.length - 1]] = kn, this._baseLength = p > 0 ? p : this.base.length, r.push(
@@ -2306,12 +2306,12 @@ class un {
2306
2306
  const i = this._pathReplacements[n];
2307
2307
  if (i) {
2308
2308
  const a = e.substring(n);
2309
- return i !== Rr && !yo.test(a) ? e : i === kn && /^[^?#]/.test(a) ? a : i + a;
2309
+ return i !== Tr && !yo.test(a) ? e : i === kn && /^[^?#]/.test(a) ? a : i + a;
2310
2310
  }
2311
2311
  return e.substring(n - 1);
2312
2312
  }
2313
2313
  }
2314
- const Lt = ft.defaultGraph(), { rdf: wo, xsd: yt } = pe, On = /["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/, Mn = /["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g, mo = {
2314
+ const Lt = ft.defaultGraph(), { rdf: wo, xsd: yt } = _e, On = /["\\\t\n\r\b\f\u0000-\u0019\ud800-\udbff]/, Mn = /["\\\t\n\r\b\f\u0000-\u0019]|[\ud800-\udbff][\udc00-\udfff]/g, mo = {
2315
2315
  "\\": "\\\\",
2316
2316
  '"': '\\"',
2317
2317
  " ": "\\t",
@@ -2342,7 +2342,7 @@ class Ui {
2342
2342
  }
2343
2343
  }, this._endStream = !0;
2344
2344
  }
2345
- this._subject = null, /triple|quad/i.test(r.format) ? (this._lineMode = !0, this._writeQuad = this._writeQuadLine) : (this._lineMode = !1, this._graph = Lt, this._prefixIRIs = /* @__PURE__ */ Object.create(null), r.prefixes && this.addPrefixes(r.prefixes), r.baseIRI && (this._baseIri = new un(r.baseIRI)));
2345
+ this._subject = null, /triple|quad/i.test(r.format) ? (this._lineMode = !0, this._writeQuad = this._writeQuadLine) : (this._lineMode = !1, this._graph = Lt, this._prefixIRIs = /* @__PURE__ */ Object.create(null), r.prefixes && this.addPrefixes(r.prefixes), r.baseIRI && (this._baseIri = new cn(r.baseIRI)));
2346
2346
  }
2347
2347
  // ## Private methods
2348
2348
  // ### Whether the current graph is the default graph
@@ -2445,7 +2445,7 @@ class Ui {
2445
2445
  }
2446
2446
  // ### `_encodeQuad` encodes an RDF-star quad
2447
2447
  _encodeQuad({ subject: e, predicate: r, object: n, graph: i }) {
2448
- return `<<${this._encodeSubject(e)} ${this._encodePredicate(r)} ${this._encodeObject(n)}${Qr(i) ? "" : ` ${this._encodeIriOrBlank(i)}`}>>`;
2448
+ return `<<${this._encodeSubject(e)} ${this._encodePredicate(r)} ${this._encodeObject(n)}${Kr(i) ? "" : ` ${this._encodeIriOrBlank(i)}`}>>`;
2449
2449
  }
2450
2450
  // ### `_blockedWrite` replaces `_write` after the writer has been closed
2451
2451
  _blockedWrite() {
@@ -2537,7 +2537,7 @@ function Dn(t) {
2537
2537
  let e = mo[t];
2538
2538
  return e === void 0 && (t.length === 1 ? (e = t.charCodeAt(0).toString(16), e = "\\u0000".substr(0, 6 - e.length) + e) : (e = ((t.charCodeAt(0) - 55296) * 1024 + t.charCodeAt(1) + 9216).toString(16), e = "\\U00000000".substr(0, 10 - e.length) + e)), e;
2539
2539
  }
2540
- var Wi = { exports: {} }, Ar = { exports: {} };
2540
+ var Wi = { exports: {} }, vr = { exports: {} };
2541
2541
  let xo = class extends Error {
2542
2542
  constructor(e) {
2543
2543
  if (!Array.isArray(e))
@@ -2926,7 +2926,7 @@ function Ut() {
2926
2926
  );
2927
2927
  return Bt.exports = t, Bt.exports.AbortSignal = e, Bt.exports.default = t, Bt.exports;
2928
2928
  }
2929
- var fn = { exports: {} }, xt = typeof Reflect == "object" ? Reflect : null, zn = xt && typeof xt.apply == "function" ? xt.apply : function(e, r, n) {
2929
+ var dn = { exports: {} }, xt = typeof Reflect == "object" ? Reflect : null, zn = xt && typeof xt.apply == "function" ? xt.apply : function(e, r, n) {
2930
2930
  return Function.prototype.apply.call(e, r, n);
2931
2931
  }, Jt;
2932
2932
  xt && typeof xt.ownKeys == "function" ? Jt = xt.ownKeys : Object.getOwnPropertySymbols ? Jt = function(e) {
@@ -2943,8 +2943,8 @@ var qi = Number.isNaN || function(e) {
2943
2943
  function Y() {
2944
2944
  Y.init.call(this);
2945
2945
  }
2946
- fn.exports = Y;
2947
- fn.exports.once = ko;
2946
+ dn.exports = Y;
2947
+ dn.exports.once = ko;
2948
2948
  Y.EventEmitter = Y;
2949
2949
  Y.prototype._events = void 0;
2950
2950
  Y.prototype._eventsCount = 0;
@@ -3149,44 +3149,44 @@ function Zi(t, e, r, n) {
3149
3149
  else
3150
3150
  throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
3151
3151
  }
3152
- var ur = fn.exports;
3152
+ var ur = dn.exports;
3153
3153
  (function(t) {
3154
3154
  const e = De, { format: r, inspect: n } = zi, {
3155
3155
  codes: { ERR_INVALID_ARG_TYPE: i }
3156
3156
  } = xe, { kResistStopPropagation: a, AggregateError: l, SymbolDispose: u } = fe, p = globalThis.AbortSignal || Ut().AbortSignal, _ = globalThis.AbortController || Ut().AbortController, y = Object.getPrototypeOf(async function() {
3157
- }).constructor, x = globalThis.Blob || e.Blob, I = typeof x < "u" ? function(v) {
3158
- return v instanceof x;
3159
- } : function(v) {
3157
+ }).constructor, x = globalThis.Blob || e.Blob, I = typeof x < "u" ? function(A) {
3158
+ return A instanceof x;
3159
+ } : function(A) {
3160
3160
  return !1;
3161
- }, S = (m, v) => {
3162
- if (m !== void 0 && (m === null || typeof m != "object" || !("aborted" in m)))
3163
- throw new i(v, "AbortSignal", m);
3164
- }, R = (m, v) => {
3165
- if (typeof m != "function")
3166
- throw new i(v, "Function", m);
3161
+ }, S = (w, A) => {
3162
+ if (w !== void 0 && (w === null || typeof w != "object" || !("aborted" in w)))
3163
+ throw new i(A, "AbortSignal", w);
3164
+ }, R = (w, A) => {
3165
+ if (typeof w != "function")
3166
+ throw new i(A, "Function", w);
3167
3167
  };
3168
3168
  t.exports = {
3169
3169
  AggregateError: l,
3170
3170
  kEmptyObject: Object.freeze({}),
3171
- once(m) {
3172
- let v = !1;
3171
+ once(w) {
3172
+ let A = !1;
3173
3173
  return function(...$) {
3174
- v || (v = !0, m.apply(this, $));
3174
+ A || (A = !0, w.apply(this, $));
3175
3175
  };
3176
3176
  },
3177
3177
  createDeferredPromise: function() {
3178
- let m, v;
3178
+ let w, A;
3179
3179
  return {
3180
- promise: new Promise((B, A) => {
3181
- m = B, v = A;
3180
+ promise: new Promise((B, T) => {
3181
+ w = B, A = T;
3182
3182
  }),
3183
- resolve: m,
3184
- reject: v
3183
+ resolve: w,
3184
+ reject: A
3185
3185
  };
3186
3186
  },
3187
- promisify(m) {
3188
- return new Promise((v, $) => {
3189
- m((B, ...A) => B ? $(B) : v(...A));
3187
+ promisify(w) {
3188
+ return new Promise((A, $) => {
3189
+ w((B, ...T) => B ? $(B) : A(...T));
3190
3190
  });
3191
3191
  },
3192
3192
  debuglog() {
@@ -3196,48 +3196,48 @@ var ur = fn.exports;
3196
3196
  format: r,
3197
3197
  inspect: n,
3198
3198
  types: {
3199
- isAsyncFunction(m) {
3200
- return m instanceof y;
3199
+ isAsyncFunction(w) {
3200
+ return w instanceof y;
3201
3201
  },
3202
- isArrayBufferView(m) {
3203
- return ArrayBuffer.isView(m);
3202
+ isArrayBufferView(w) {
3203
+ return ArrayBuffer.isView(w);
3204
3204
  }
3205
3205
  },
3206
3206
  isBlob: I,
3207
- deprecate(m, v) {
3208
- return m;
3207
+ deprecate(w, A) {
3208
+ return w;
3209
3209
  },
3210
- addAbortListener: ur.addAbortListener || function(v, $) {
3211
- if (v === void 0)
3212
- throw new i("signal", "AbortSignal", v);
3213
- S(v, "signal"), R($, "listener");
3210
+ addAbortListener: ur.addAbortListener || function(A, $) {
3211
+ if (A === void 0)
3212
+ throw new i("signal", "AbortSignal", A);
3213
+ S(A, "signal"), R($, "listener");
3214
3214
  let B;
3215
- return v.aborted ? queueMicrotask(() => $()) : (v.addEventListener("abort", $, {
3215
+ return A.aborted ? queueMicrotask(() => $()) : (A.addEventListener("abort", $, {
3216
3216
  __proto__: null,
3217
3217
  once: !0,
3218
3218
  [a]: !0
3219
3219
  }), B = () => {
3220
- v.removeEventListener("abort", $);
3220
+ A.removeEventListener("abort", $);
3221
3221
  }), {
3222
3222
  __proto__: null,
3223
3223
  [u]() {
3224
- var A;
3225
- (A = B) === null || A === void 0 || A();
3224
+ var T;
3225
+ (T = B) === null || T === void 0 || T();
3226
3226
  }
3227
3227
  };
3228
3228
  },
3229
- AbortSignalAny: p.any || function(v) {
3230
- if (v.length === 1)
3231
- return v[0];
3229
+ AbortSignalAny: p.any || function(A) {
3230
+ if (A.length === 1)
3231
+ return A[0];
3232
3232
  const $ = new _(), B = () => $.abort();
3233
- return v.forEach((A) => {
3234
- S(A, "signals"), A.addEventListener("abort", B, {
3233
+ return A.forEach((T) => {
3234
+ S(T, "signals"), T.addEventListener("abort", B, {
3235
3235
  once: !0
3236
3236
  });
3237
3237
  }), $.signal.addEventListener(
3238
3238
  "abort",
3239
3239
  () => {
3240
- v.forEach((A) => A.removeEventListener("abort", B));
3240
+ A.forEach((T) => T.removeEventListener("abort", B));
3241
3241
  },
3242
3242
  {
3243
3243
  once: !0
@@ -3246,13 +3246,13 @@ var ur = fn.exports;
3246
3246
  }
3247
3247
  }, t.exports.promisify.custom = Symbol.for("nodejs.util.promisify.custom");
3248
3248
  })(Gi);
3249
- var Ie = Gi.exports, cn = {};
3249
+ var Ie = Gi.exports, hn = {};
3250
3250
  const {
3251
3251
  ArrayIsArray: Ji,
3252
3252
  ArrayPrototypeIncludes: Oo,
3253
3253
  ArrayPrototypeJoin: Mo,
3254
3254
  ArrayPrototypeMap: Do,
3255
- NumberIsInteger: dn,
3255
+ NumberIsInteger: pn,
3256
3256
  NumberMAX_SAFE_INTEGER: Uo,
3257
3257
  NumberMIN_SAFE_INTEGER: Wo,
3258
3258
  ObjectPrototypeHasOwnProperty: Go,
@@ -3260,15 +3260,15 @@ const {
3260
3260
  } = fe, {
3261
3261
  hideStackFrames: Pe,
3262
3262
  codes: { ERR_INVALID_ARG_TYPE: je, ERR_INVALID_ARG_VALUE: es, ERR_OUT_OF_RANGE: It }
3263
- } = xe, { normalizeEncoding: zu } = Ie, { isAsyncFunction: qo, isArrayBufferView: Ho } = Ie.types, Qo = Pe((t, e, r = Wo, n = Uo) => {
3263
+ } = xe, { normalizeEncoding: Gu } = Ie, { isAsyncFunction: qo, isArrayBufferView: Ho } = Ie.types, Qo = Pe((t, e, r = Wo, n = Uo) => {
3264
3264
  if (typeof t != "number") throw new je(e, "number", t);
3265
- if (!dn(t)) throw new It(e, "an integer", t);
3265
+ if (!pn(t)) throw new It(e, "an integer", t);
3266
3266
  if (t < r || t > n) throw new It(e, `>= ${r} && <= ${n}`, t);
3267
3267
  });
3268
3268
  Pe((t, e, r = -2147483648, n = 2147483647) => {
3269
3269
  if (typeof t != "number")
3270
3270
  throw new je(e, "number", t);
3271
- if (!dn(t))
3271
+ if (!pn(t))
3272
3272
  throw new It(e, "an integer", t);
3273
3273
  if (t < r || t > n)
3274
3274
  throw new It(e, `>= ${r} && <= ${n}`, t);
@@ -3276,7 +3276,7 @@ Pe((t, e, r = -2147483648, n = 2147483647) => {
3276
3276
  Pe((t, e, r = !1) => {
3277
3277
  if (typeof t != "number")
3278
3278
  throw new je(e, "number", t);
3279
- if (!dn(t))
3279
+ if (!pn(t))
3280
3280
  throw new It(e, "an integer", t);
3281
3281
  const n = r ? 1 : 0, i = 4294967295;
3282
3282
  if (t < n || t > i)
@@ -3294,12 +3294,12 @@ Pe((t, e, r) => {
3294
3294
  function Vo(t, e) {
3295
3295
  if (typeof t != "boolean") throw new je(e, "boolean", t);
3296
3296
  }
3297
- function Tr(t, e, r) {
3297
+ function Nr(t, e, r) {
3298
3298
  return t == null || !Go(t, e) ? r : t[e];
3299
3299
  }
3300
3300
  const Ko = Pe((t, e, r = null) => {
3301
- const n = Tr(r, "allowArray", !1), i = Tr(r, "allowFunction", !1);
3302
- if (!Tr(r, "nullable", !1) && t === null || !n && Ji(t) || typeof t != "object" && (!i || typeof t != "function"))
3301
+ const n = Nr(r, "allowArray", !1), i = Nr(r, "allowFunction", !1);
3302
+ if (!Nr(r, "nullable", !1) && t === null || !n && Ji(t) || typeof t != "object" && (!i || typeof t != "function"))
3303
3303
  throw new je(e, "Object", t);
3304
3304
  });
3305
3305
  Pe((t, e) => {
@@ -3336,29 +3336,29 @@ var Wt = {
3336
3336
  validateInteger: Qo,
3337
3337
  validateObject: Ko,
3338
3338
  validateAbortSignal: Yo
3339
- }, hn = { exports: {} }, ts = { exports: {} }, de = ts.exports = {}, Fe, ke;
3340
- function Vr() {
3339
+ }, _n = { exports: {} }, ts = { exports: {} }, de = ts.exports = {}, Fe, ke;
3340
+ function Yr() {
3341
3341
  throw new Error("setTimeout has not been defined");
3342
3342
  }
3343
- function Kr() {
3343
+ function Xr() {
3344
3344
  throw new Error("clearTimeout has not been defined");
3345
3345
  }
3346
3346
  (function() {
3347
3347
  try {
3348
- typeof setTimeout == "function" ? Fe = setTimeout : Fe = Vr;
3348
+ typeof setTimeout == "function" ? Fe = setTimeout : Fe = Yr;
3349
3349
  } catch {
3350
- Fe = Vr;
3350
+ Fe = Yr;
3351
3351
  }
3352
3352
  try {
3353
- typeof clearTimeout == "function" ? ke = clearTimeout : ke = Kr;
3353
+ typeof clearTimeout == "function" ? ke = clearTimeout : ke = Xr;
3354
3354
  } catch {
3355
- ke = Kr;
3355
+ ke = Xr;
3356
3356
  }
3357
3357
  })();
3358
3358
  function rs(t) {
3359
3359
  if (Fe === setTimeout)
3360
3360
  return setTimeout(t, 0);
3361
- if ((Fe === Vr || !Fe) && setTimeout)
3361
+ if ((Fe === Yr || !Fe) && setTimeout)
3362
3362
  return Fe = setTimeout, setTimeout(t, 0);
3363
3363
  try {
3364
3364
  return Fe(t, 0);
@@ -3373,7 +3373,7 @@ function rs(t) {
3373
3373
  function Zo(t) {
3374
3374
  if (ke === clearTimeout)
3375
3375
  return clearTimeout(t);
3376
- if ((ke === Kr || !ke) && clearTimeout)
3376
+ if ((ke === Xr || !ke) && clearTimeout)
3377
3377
  return ke = clearTimeout, clearTimeout(t);
3378
3378
  try {
3379
3379
  return ke(t);
@@ -3448,7 +3448,7 @@ de.umask = function() {
3448
3448
  };
3449
3449
  var ct = ts.exports;
3450
3450
  const { SymbolAsyncIterator: Hn, SymbolIterator: Qn, SymbolFor: dt } = fe, ss = dt("nodejs.stream.destroyed"), ea = dt("nodejs.stream.errored"), Vn = dt("nodejs.stream.readable"), Kn = dt("nodejs.stream.writable"), ta = dt("nodejs.stream.disturbed"), ra = dt("nodejs.webstream.isClosedPromise"), na = dt("nodejs.webstream.controllerErrorFunction");
3451
- function pn(t, e = !1) {
3451
+ function bn(t, e = !1) {
3452
3452
  var r;
3453
3453
  return !!(t && typeof t.pipe == "function" && typeof t.on == "function" && (!e || typeof t.pause == "function" && typeof t.resume == "function") && (!t._writableState || ((r = t._readableState) === null || r === void 0 ? void 0 : r.readable) !== !1) && // Duplex
3454
3454
  (!t._writableState || t._readableState));
@@ -3496,12 +3496,12 @@ function la(t, e) {
3496
3496
  return r != null && r.errored ? !1 : typeof (r == null ? void 0 : r.finished) != "boolean" ? null : !!(r.finished || e === !1 && r.ended === !0 && r.length === 0);
3497
3497
  }
3498
3498
  function us(t, e) {
3499
- if (!pn(t)) return null;
3499
+ if (!bn(t)) return null;
3500
3500
  const r = t._readableState;
3501
3501
  return r != null && r.errored ? !1 : typeof (r == null ? void 0 : r.endEmitted) != "boolean" ? null : !!(r.endEmitted || e === !1 && r.ended === !0 && r.length === 0);
3502
3502
  }
3503
3503
  function fs(t) {
3504
- return t && t[Vn] != null ? t[Vn] : typeof (t == null ? void 0 : t.readable) != "boolean" ? null : cr(t) ? !1 : pn(t) && t.readable && !us(t);
3504
+ return t && t[Vn] != null ? t[Vn] : typeof (t == null ? void 0 : t.readable) != "boolean" ? null : cr(t) ? !1 : bn(t) && t.readable && !us(t);
3505
3505
  }
3506
3506
  function cs(t) {
3507
3507
  return t && t[Kn] != null ? t[Kn] : typeof (t == null ? void 0 : t.writable) != "boolean" ? null : cr(t) ? !1 : fr(t) && t.writable && !aa(t);
@@ -3560,7 +3560,7 @@ var Ke = {
3560
3560
  isDuplexNodeStream: ia,
3561
3561
  isFinished: ua,
3562
3562
  isIterable: oa,
3563
- isReadableNodeStream: pn,
3563
+ isReadableNodeStream: bn,
3564
3564
  isReadableStream: os,
3565
3565
  isReadableFinished: us,
3566
3566
  isReadableErrored: ca,
@@ -3575,10 +3575,10 @@ var Ke = {
3575
3575
  willEmitClose: _a,
3576
3576
  isTransformStream: ls
3577
3577
  };
3578
- const Je = ct, { AbortError: hs, codes: ga } = xe, { ERR_INVALID_ARG_TYPE: wa, ERR_STREAM_PREMATURE_CLOSE: Yn } = ga, { kEmptyObject: Yr, once: Xr } = Ie, { validateAbortSignal: ma, validateFunction: xa, validateObject: Ea, validateBoolean: Sa } = Wt, { Promise: Ia, PromisePrototypeThen: Ra, SymbolDispose: ps } = fe, {
3578
+ const Je = ct, { AbortError: hs, codes: ga } = xe, { ERR_INVALID_ARG_TYPE: wa, ERR_STREAM_PREMATURE_CLOSE: Yn } = ga, { kEmptyObject: Zr, once: Jr } = Ie, { validateAbortSignal: ma, validateFunction: xa, validateObject: Ea, validateBoolean: Sa } = Wt, { Promise: Ia, PromisePrototypeThen: Ra, SymbolDispose: ps } = fe, {
3579
3579
  isClosed: Aa,
3580
3580
  isReadable: Xn,
3581
- isReadableNodeStream: vr,
3581
+ isReadableNodeStream: Pr,
3582
3582
  isReadableStream: Ta,
3583
3583
  isReadableFinished: Zn,
3584
3584
  isReadableErrored: Jn,
@@ -3595,52 +3595,52 @@ let St;
3595
3595
  function La(t) {
3596
3596
  return t.setHeader && typeof t.abort == "function";
3597
3597
  }
3598
- const Zr = () => {
3598
+ const en = () => {
3599
3599
  };
3600
3600
  function _s(t, e, r) {
3601
3601
  var n, i;
3602
- if (arguments.length === 2 ? (r = e, e = Yr) : e == null ? e = Yr : Ea(e, "options"), xa(r, "callback"), ma(e.signal, "options.signal"), r = Xr(r), Ta(t) || va(t))
3602
+ if (arguments.length === 2 ? (r = e, e = Zr) : e == null ? e = Zr : Ea(e, "options"), xa(r, "callback"), ma(e.signal, "options.signal"), r = Jr(r), Ta(t) || va(t))
3603
3603
  return $a(t, e, r);
3604
3604
  if (!Na(t))
3605
3605
  throw new wa("stream", ["ReadableStream", "WritableStream", "Stream"], t);
3606
- const a = (n = e.readable) !== null && n !== void 0 ? n : vr(t), l = (i = e.writable) !== null && i !== void 0 ? i : ti(t), u = t._writableState, p = t._readableState, _ = () => {
3606
+ const a = (n = e.readable) !== null && n !== void 0 ? n : Pr(t), l = (i = e.writable) !== null && i !== void 0 ? i : ti(t), u = t._writableState, p = t._readableState, _ = () => {
3607
3607
  t.writable || I();
3608
3608
  };
3609
- let y = Pa(t) && vr(t) === a && ti(t) === l, x = ri(t, !1);
3609
+ let y = Pa(t) && Pr(t) === a && ti(t) === l, x = ri(t, !1);
3610
3610
  const I = () => {
3611
3611
  x = !0, t.destroyed && (y = !1), !(y && (!t.readable || a)) && (!a || S) && r.call(t);
3612
3612
  };
3613
3613
  let S = Zn(t, !1);
3614
3614
  const R = () => {
3615
3615
  S = !0, t.destroyed && (y = !1), !(y && (!t.writable || l)) && (!l || x) && r.call(t);
3616
- }, m = (U) => {
3616
+ }, w = (U) => {
3617
3617
  r.call(t, U);
3618
3618
  };
3619
- let v = Aa(t);
3619
+ let A = Aa(t);
3620
3620
  const $ = () => {
3621
- v = !0;
3621
+ A = !0;
3622
3622
  const U = ni(t) || Jn(t);
3623
3623
  if (U && typeof U != "boolean")
3624
3624
  return r.call(t, U);
3625
- if (a && !S && vr(t, !0) && !Zn(t, !1))
3625
+ if (a && !S && Pr(t, !0) && !Zn(t, !1))
3626
3626
  return r.call(t, new Yn());
3627
3627
  if (l && !x && !ri(t, !1))
3628
3628
  return r.call(t, new Yn());
3629
3629
  r.call(t);
3630
3630
  }, B = () => {
3631
- v = !0;
3631
+ A = !0;
3632
3632
  const U = ni(t) || Jn(t);
3633
3633
  if (U && typeof U != "boolean")
3634
3634
  return r.call(t, U);
3635
3635
  r.call(t);
3636
- }, A = () => {
3636
+ }, T = () => {
3637
3637
  t.req.on("finish", I);
3638
3638
  };
3639
- La(t) ? (t.on("complete", I), y || t.on("abort", $), t.req ? A() : t.on("request", A)) : l && !u && (t.on("end", _), t.on("close", _)), !y && typeof t.aborted == "boolean" && t.on("aborted", $), t.on("end", R), t.on("finish", I), e.error !== !1 && t.on("error", m), t.on("close", $), v ? Je.nextTick($) : u != null && u.errorEmitted || p != null && p.errorEmitted ? y || Je.nextTick(B) : (!a && (!y || Xn(t)) && (x || ei(t) === !1) || !l && (!y || ei(t)) && (S || Xn(t) === !1) || p && t.req && t.aborted) && Je.nextTick(B);
3639
+ La(t) ? (t.on("complete", I), y || t.on("abort", $), t.req ? T() : t.on("request", T)) : l && !u && (t.on("end", _), t.on("close", _)), !y && typeof t.aborted == "boolean" && t.on("aborted", $), t.on("end", R), t.on("finish", I), e.error !== !1 && t.on("error", w), t.on("close", $), A ? Je.nextTick($) : u != null && u.errorEmitted || p != null && p.errorEmitted ? y || Je.nextTick(B) : (!a && (!y || Xn(t)) && (x || ei(t) === !1) || !l && (!y || ei(t)) && (S || Xn(t) === !1) || p && t.req && t.aborted) && Je.nextTick(B);
3640
3640
  const z = () => {
3641
- r = Zr, t.removeListener("aborted", $), t.removeListener("complete", I), t.removeListener("abort", $), t.removeListener("request", A), t.req && t.req.removeListener("finish", I), t.removeListener("end", _), t.removeListener("close", _), t.removeListener("finish", I), t.removeListener("end", R), t.removeListener("error", m), t.removeListener("close", $);
3641
+ r = en, t.removeListener("aborted", $), t.removeListener("complete", I), t.removeListener("abort", $), t.removeListener("request", T), t.req && t.req.removeListener("finish", I), t.removeListener("end", _), t.removeListener("close", _), t.removeListener("finish", I), t.removeListener("end", R), t.removeListener("error", w), t.removeListener("close", $);
3642
3642
  };
3643
- if (e.signal && !v) {
3643
+ if (e.signal && !A) {
3644
3644
  const U = () => {
3645
3645
  const se = r;
3646
3646
  z(), se.call(
@@ -3655,7 +3655,7 @@ function _s(t, e, r) {
3655
3655
  else {
3656
3656
  St = St || Ie.addAbortListener;
3657
3657
  const se = St(e.signal, U), me = r;
3658
- r = Xr((...J) => {
3658
+ r = Jr((...J) => {
3659
3659
  se[ps](), me.apply(t, J);
3660
3660
  });
3661
3661
  }
@@ -3663,7 +3663,7 @@ function _s(t, e, r) {
3663
3663
  return z;
3664
3664
  }
3665
3665
  function $a(t, e, r) {
3666
- let n = !1, i = Zr;
3666
+ let n = !1, i = en;
3667
3667
  if (e.signal)
3668
3668
  if (i = () => {
3669
3669
  n = !0, r.call(
@@ -3677,32 +3677,32 @@ function $a(t, e, r) {
3677
3677
  else {
3678
3678
  St = St || Ie.addAbortListener;
3679
3679
  const l = St(e.signal, i), u = r;
3680
- r = Xr((...p) => {
3680
+ r = Jr((...p) => {
3681
3681
  l[ps](), u.apply(t, p);
3682
3682
  });
3683
3683
  }
3684
3684
  const a = (...l) => {
3685
3685
  n || Je.nextTick(() => r.apply(t, l));
3686
3686
  };
3687
- return Ra(t[ja].promise, a, a), Zr;
3687
+ return Ra(t[ja].promise, a, a), en;
3688
3688
  }
3689
3689
  function Ba(t, e) {
3690
3690
  var r;
3691
3691
  let n = !1;
3692
- return e === null && (e = Yr), (r = e) !== null && r !== void 0 && r.cleanup && (Sa(e.cleanup, "cleanup"), n = e.cleanup), new Ia((i, a) => {
3692
+ return e === null && (e = Zr), (r = e) !== null && r !== void 0 && r.cleanup && (Sa(e.cleanup, "cleanup"), n = e.cleanup), new Ia((i, a) => {
3693
3693
  const l = _s(t, e, (u) => {
3694
3694
  n && l(), u ? a(u) : i();
3695
3695
  });
3696
3696
  });
3697
3697
  }
3698
- hn.exports = _s;
3699
- hn.exports.finished = Ba;
3700
- var tt = hn.exports;
3698
+ _n.exports = _s;
3699
+ _n.exports.finished = Ba;
3700
+ var tt = _n.exports;
3701
3701
  const Oe = ct, {
3702
3702
  aggregateTwoErrors: Fa,
3703
3703
  codes: { ERR_MULTIPLE_CALLBACK: ka },
3704
3704
  AbortError: Ca
3705
- } = xe, { Symbol: bs } = fe, { kIsDestroyed: Oa, isDestroyed: Ma, isFinished: Da, isServerRequest: Ua } = Ke, ys = bs("kDestroy"), Jr = bs("kConstruct");
3705
+ } = xe, { Symbol: bs } = fe, { kIsDestroyed: Oa, isDestroyed: Ma, isFinished: Da, isServerRequest: Ua } = Ke, ys = bs("kDestroy"), tn = bs("kConstruct");
3706
3706
  function gs(t, e, r) {
3707
3707
  t && (t.stack, e && !e.errored && (e.errored = t), r && !r.errored && (r.errored = t));
3708
3708
  }
@@ -3728,13 +3728,13 @@ function ii(t, e, r) {
3728
3728
  }
3729
3729
  }
3730
3730
  function Ga(t, e) {
3731
- en(t, e), ws(t);
3731
+ rn(t, e), ws(t);
3732
3732
  }
3733
3733
  function ws(t) {
3734
3734
  const e = t._readableState, r = t._writableState;
3735
3735
  r && (r.closeEmitted = !0), e && (e.closeEmitted = !0), (r != null && r.emitClose || e != null && e.emitClose) && t.emit("close");
3736
3736
  }
3737
- function en(t, e) {
3737
+ function rn(t, e) {
3738
3738
  const r = t._readableState, n = t._writableState;
3739
3739
  n != null && n.errorEmitted || r != null && r.errorEmitted || (n && (n.errorEmitted = !0), r && (r.errorEmitted = !0), t.emit("error", e));
3740
3740
  }
@@ -3742,28 +3742,28 @@ function za() {
3742
3742
  const t = this._readableState, e = this._writableState;
3743
3743
  t && (t.constructed = !0, t.closed = !1, t.closeEmitted = !1, t.destroyed = !1, t.errored = null, t.errorEmitted = !1, t.reading = !1, t.ended = t.readable === !1, t.endEmitted = t.readable === !1), e && (e.constructed = !0, e.destroyed = !1, e.closed = !1, e.closeEmitted = !1, e.errored = null, e.errorEmitted = !1, e.finalCalled = !1, e.prefinished = !1, e.ended = e.writable === !1, e.ending = e.writable === !1, e.finished = e.writable === !1);
3744
3744
  }
3745
- function tn(t, e, r) {
3745
+ function nn(t, e, r) {
3746
3746
  const n = t._readableState, i = t._writableState;
3747
3747
  if (i != null && i.destroyed || n != null && n.destroyed)
3748
3748
  return this;
3749
- n != null && n.autoDestroy || i != null && i.autoDestroy ? t.destroy(e) : e && (e.stack, i && !i.errored && (i.errored = e), n && !n.errored && (n.errored = e), r ? Oe.nextTick(en, t, e) : en(t, e));
3749
+ n != null && n.autoDestroy || i != null && i.autoDestroy ? t.destroy(e) : e && (e.stack, i && !i.errored && (i.errored = e), n && !n.errored && (n.errored = e), r ? Oe.nextTick(rn, t, e) : rn(t, e));
3750
3750
  }
3751
3751
  function qa(t, e) {
3752
3752
  if (typeof t._construct != "function")
3753
3753
  return;
3754
3754
  const r = t._readableState, n = t._writableState;
3755
- r && (r.constructed = !1), n && (n.constructed = !1), t.once(Jr, e), !(t.listenerCount(Jr) > 1) && Oe.nextTick(Ha, t);
3755
+ r && (r.constructed = !1), n && (n.constructed = !1), t.once(tn, e), !(t.listenerCount(tn) > 1) && Oe.nextTick(Ha, t);
3756
3756
  }
3757
3757
  function Ha(t) {
3758
3758
  let e = !1;
3759
3759
  function r(n) {
3760
3760
  if (e) {
3761
- tn(t, n ?? new ka());
3761
+ nn(t, n ?? new ka());
3762
3762
  return;
3763
3763
  }
3764
3764
  e = !0;
3765
3765
  const i = t._readableState, a = t._writableState, l = a || i;
3766
- i && (i.constructed = !0), a && (a.constructed = !0), l.destroyed ? t.emit(ys, n) : n ? tn(t, n, !0) : Oe.nextTick(Qa, t);
3766
+ i && (i.constructed = !0), a && (a.constructed = !0), l.destroyed ? t.emit(ys, n) : n ? nn(t, n, !0) : Oe.nextTick(Qa, t);
3767
3767
  }
3768
3768
  try {
3769
3769
  t._construct((n) => {
@@ -3774,7 +3774,7 @@ function Ha(t) {
3774
3774
  }
3775
3775
  }
3776
3776
  function Qa(t) {
3777
- t.emit(Jr);
3777
+ t.emit(tn);
3778
3778
  }
3779
3779
  function si(t) {
3780
3780
  return (t == null ? void 0 : t.setHeader) && typeof t.abort == "function";
@@ -3793,7 +3793,7 @@ var Tt = {
3793
3793
  destroyer: Ka,
3794
3794
  destroy: Wa,
3795
3795
  undestroy: za,
3796
- errorOrDestroy: tn
3796
+ errorOrDestroy: nn
3797
3797
  };
3798
3798
  const { ArrayIsArray: Ya, ObjectSetPrototypeOf: xs } = fe, { EventEmitter: dr } = ur;
3799
3799
  function hr(t) {
@@ -3821,19 +3821,19 @@ hr.prototype.pipe = function(t, e) {
3821
3821
  function p(y) {
3822
3822
  _(), dr.listenerCount(this, "error") === 0 && this.emit("error", y);
3823
3823
  }
3824
- rn(r, "error", p), rn(t, "error", p);
3824
+ sn(r, "error", p), sn(t, "error", p);
3825
3825
  function _() {
3826
3826
  r.removeListener("data", n), t.removeListener("drain", i), r.removeListener("end", l), r.removeListener("close", u), r.removeListener("error", p), t.removeListener("error", p), r.removeListener("end", _), r.removeListener("close", _), t.removeListener("close", _);
3827
3827
  }
3828
3828
  return r.on("end", _), r.on("close", _), t.on("close", _), t.emit("pipe", r), t;
3829
3829
  };
3830
- function rn(t, e, r) {
3830
+ function sn(t, e, r) {
3831
3831
  if (typeof t.prependListener == "function") return t.prependListener(e, r);
3832
3832
  !t._events || !t._events[e] ? t.on(e, r) : Ya(t._events[e]) ? t._events[e].unshift(r) : t._events[e] = [r, t._events[e]];
3833
3833
  }
3834
- var _n = {
3834
+ var yn = {
3835
3835
  Stream: hr,
3836
- prependListener: rn
3836
+ prependListener: sn
3837
3837
  }, Es = { exports: {} };
3838
3838
  (function(t) {
3839
3839
  const { SymbolDispose: e } = fe, { AbortError: r, codes: n } = xe, { isNodeStream: i, isWebStream: a, kControllerErrorFunction: l } = Ke, u = tt, { ERR_INVALID_ARG_TYPE: p } = n;
@@ -3873,7 +3873,7 @@ var _n = {
3873
3873
  };
3874
3874
  })(Es);
3875
3875
  var pr = Es.exports;
3876
- const { StringPrototypeSlice: oi, SymbolIterator: Xa, TypedArrayPrototypeSet: Vt, Uint8Array: Za } = fe, { Buffer: Nr } = De, { inspect: Ja } = Ie;
3876
+ const { StringPrototypeSlice: oi, SymbolIterator: Xa, TypedArrayPrototypeSet: Vt, Uint8Array: Za } = fe, { Buffer: jr } = De, { inspect: Ja } = Ie;
3877
3877
  var el = class {
3878
3878
  constructor() {
3879
3879
  this.head = null, this.tail = null, this.length = 0;
@@ -3907,8 +3907,8 @@ var el = class {
3907
3907
  return n;
3908
3908
  }
3909
3909
  concat(e) {
3910
- if (this.length === 0) return Nr.alloc(0);
3911
- const r = Nr.allocUnsafe(e >>> 0);
3910
+ if (this.length === 0) return jr.alloc(0);
3911
+ const r = jr.allocUnsafe(e >>> 0);
3912
3912
  let n = this.head, i = 0;
3913
3913
  for (; n; )
3914
3914
  Vt(r, n.data, i), i += n.data.length, n = n.next;
@@ -3947,7 +3947,7 @@ var el = class {
3947
3947
  }
3948
3948
  // Consumes a specified amount of bytes from the buffered data.
3949
3949
  _getBuffer(e) {
3950
- const r = Nr.allocUnsafe(e), n = e;
3950
+ const r = jr.allocUnsafe(e), n = e;
3951
3951
  let i = this.head, a = 0;
3952
3952
  do {
3953
3953
  const l = i.data;
@@ -3998,7 +3998,7 @@ var _r = {
3998
3998
  getHighWaterMark: al,
3999
3999
  getDefaultHighWaterMark: Rs,
4000
4000
  setDefaultHighWaterMark: ol
4001
- }, As = {}, nn = { exports: {} };
4001
+ }, As = {}, on = { exports: {} };
4002
4002
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
4003
4003
  (function(t, e) {
4004
4004
  var r = De, n = r.Buffer;
@@ -4028,8 +4028,8 @@ var _r = {
4028
4028
  throw new TypeError("Argument must be a number");
4029
4029
  return r.SlowBuffer(l);
4030
4030
  };
4031
- })(nn, nn.exports);
4032
- var ll = nn.exports, bn = ll.Buffer, ai = bn.isEncoding || function(t) {
4031
+ })(on, on.exports);
4032
+ var ll = on.exports, gn = ll.Buffer, ai = gn.isEncoding || function(t) {
4033
4033
  switch (t = "" + t, t && t.toLowerCase()) {
4034
4034
  case "hex":
4035
4035
  case "utf8":
@@ -4073,7 +4073,7 @@ function ul(t) {
4073
4073
  }
4074
4074
  function fl(t) {
4075
4075
  var e = ul(t);
4076
- if (typeof e != "string" && (bn.isEncoding === ai || !ai(t))) throw new Error("Unknown encoding: " + t);
4076
+ if (typeof e != "string" && (gn.isEncoding === ai || !ai(t))) throw new Error("Unknown encoding: " + t);
4077
4077
  return e || t;
4078
4078
  }
4079
4079
  As.StringDecoder = Gt;
@@ -4094,7 +4094,7 @@ function Gt(t) {
4094
4094
  this.write = ml, this.end = xl;
4095
4095
  return;
4096
4096
  }
4097
- this.lastNeed = 0, this.lastTotal = 0, this.lastChar = bn.allocUnsafe(e);
4097
+ this.lastNeed = 0, this.lastTotal = 0, this.lastChar = gn.allocUnsafe(e);
4098
4098
  }
4099
4099
  Gt.prototype.write = function(t) {
4100
4100
  if (t.length === 0) return "";
@@ -4113,14 +4113,14 @@ Gt.prototype.fillLast = function(t) {
4113
4113
  return t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
4114
4114
  t.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, t.length), this.lastNeed -= t.length;
4115
4115
  };
4116
- function Pr(t) {
4116
+ function Lr(t) {
4117
4117
  return t <= 127 ? 0 : t >> 5 === 6 ? 2 : t >> 4 === 14 ? 3 : t >> 3 === 30 ? 4 : t >> 6 === 2 ? -1 : -2;
4118
4118
  }
4119
4119
  function cl(t, e, r) {
4120
4120
  var n = e.length - 1;
4121
4121
  if (n < r) return 0;
4122
- var i = Pr(e[n]);
4123
- return i >= 0 ? (i > 0 && (t.lastNeed = i - 1), i) : --n < r || i === -2 ? 0 : (i = Pr(e[n]), i >= 0 ? (i > 0 && (t.lastNeed = i - 2), i) : --n < r || i === -2 ? 0 : (i = Pr(e[n]), i >= 0 ? (i > 0 && (i === 2 ? i = 0 : t.lastNeed = i - 3), i) : 0));
4122
+ var i = Lr(e[n]);
4123
+ return i >= 0 ? (i > 0 && (t.lastNeed = i - 1), i) : --n < r || i === -2 ? 0 : (i = Lr(e[n]), i >= 0 ? (i > 0 && (t.lastNeed = i - 2), i) : --n < r || i === -2 ? 0 : (i = Lr(e[n]), i >= 0 ? (i > 0 && (i === 2 ? i = 0 : t.lastNeed = i - 3), i) : 0));
4124
4124
  }
4125
4125
  function dl(t, e, r) {
4126
4126
  if ((e[0] & 192) !== 128)
@@ -4253,9 +4253,9 @@ function Al(t, e, r) {
4253
4253
  }
4254
4254
  return a;
4255
4255
  }
4256
- var Ts = Al, jr, ci;
4256
+ var Ts = Al, $r, ci;
4257
4257
  function br() {
4258
- if (ci) return jr;
4258
+ if (ci) return $r;
4259
4259
  ci = 1;
4260
4260
  const t = ct, {
4261
4261
  ArrayPrototypeIndexOf: e,
@@ -4271,10 +4271,10 @@ function br() {
4271
4271
  SymbolAsyncIterator: x,
4272
4272
  Symbol: I
4273
4273
  } = fe;
4274
- jr = O, O.ReadableState = Ee;
4275
- const { EventEmitter: S } = ur, { Stream: R, prependListener: m } = _n, { Buffer: v } = De, { addAbortSignal: $ } = pr, B = tt;
4276
- let A = Ie.debuglog("stream", (c) => {
4277
- A = c;
4274
+ $r = O, O.ReadableState = Ee;
4275
+ const { EventEmitter: S } = ur, { Stream: R, prependListener: w } = yn, { Buffer: A } = De, { addAbortSignal: $ } = pr, B = tt;
4276
+ let T = Ie.debuglog("stream", (c) => {
4277
+ T = c;
4278
4278
  });
4279
4279
  const z = el, U = Tt, { getHighWaterMark: se, getDefaultHighWaterMark: me } = _r, {
4280
4280
  aggregateTwoErrors: J,
@@ -4289,7 +4289,7 @@ function br() {
4289
4289
  } = xe, { validateObject: G } = Wt, q = I("kPaused"), { StringDecoder: ae } = As, le = Ts;
4290
4290
  u(O.prototype, R.prototype), u(O, R);
4291
4291
  const te = () => {
4292
- }, { errorOrDestroy: ue } = U, D = 1, re = 2, M = 4, he = 8, Re = 16, Ye = 32, We = 64, Ae = 128, Ge = 256, _t = 512, rt = 1024, Xe = 2048, g = 4096, w = 8192, N = 16384, C = 32768, F = 65536, X = 1 << 17, ee = 1 << 18;
4292
+ }, { errorOrDestroy: ue } = U, D = 1, re = 2, M = 4, pe = 8, Re = 16, Ye = 32, We = 64, Ae = 128, Ge = 256, _t = 512, rt = 1024, Xe = 2048, g = 4096, m = 8192, N = 16384, C = 32768, F = 65536, X = 1 << 17, ee = 1 << 18;
4293
4293
  function K(c) {
4294
4294
  return {
4295
4295
  enumerable: !1,
@@ -4305,7 +4305,7 @@ function br() {
4305
4305
  objectMode: K(D),
4306
4306
  ended: K(re),
4307
4307
  endEmitted: K(M),
4308
- reading: K(he),
4308
+ reading: K(pe),
4309
4309
  // Stream is still being constructed and cannot be
4310
4310
  // destroyed until construction finished or failed.
4311
4311
  // Async construction is opt in, therefore we start as
@@ -4327,7 +4327,7 @@ function br() {
4327
4327
  emitClose: K(Xe),
4328
4328
  autoDestroy: K(g),
4329
4329
  // Has it been destroyed.
4330
- destroyed: K(w),
4330
+ destroyed: K(m),
4331
4331
  // Indicates whether the stream has finished destroying.
4332
4332
  closed: K(N),
4333
4333
  // True if close has been emitted or would have been emitted
@@ -4361,10 +4361,10 @@ function br() {
4361
4361
  return Te(this, c, h, !0);
4362
4362
  };
4363
4363
  function Te(c, h, j, L) {
4364
- A("readableAddChunk", h);
4364
+ T("readableAddChunk", h);
4365
4365
  const k = c._readableState;
4366
4366
  let we;
4367
- if ((k.state & D) === 0 && (typeof h == "string" ? (j = j || k.defaultEncoding, k.encoding !== j && (L && k.encoding ? h = v.from(h, j).toString(k.encoding) : (h = v.from(h, j), j = ""))) : h instanceof v ? j = "" : R._isUint8Array(h) ? (h = R._uint8ArrayToBuffer(h), j = "") : h != null && (we = new oe("chunk", ["string", "Buffer", "Uint8Array"], h))), we)
4367
+ if ((k.state & D) === 0 && (typeof h == "string" ? (j = j || k.defaultEncoding, k.encoding !== j && (L && k.encoding ? h = A.from(h, j).toString(k.encoding) : (h = A.from(h, j), j = ""))) : h instanceof A ? j = "" : R._isUint8Array(h) ? (h = R._uint8ArrayToBuffer(h), j = "") : h != null && (we = new oe("chunk", ["string", "Buffer", "Uint8Array"], h))), we)
4368
4368
  ue(c, we);
4369
4369
  else if (h === null)
4370
4370
  k.state &= -9, s(c, k);
@@ -4401,7 +4401,7 @@ function br() {
4401
4401
  return j.clear(), L !== "" && j.push(L), this._readableState.length = L.length, this;
4402
4402
  };
4403
4403
  const $e = 1073741824;
4404
- function gr(c) {
4404
+ function mr(c) {
4405
4405
  if (c > $e)
4406
4406
  throw new ge("size", "<= 1GiB", c);
4407
4407
  return c--, c |= c >>> 1, c |= c >>> 2, c |= c >>> 4, c |= c >>> 8, c |= c >>> 16, c++, c;
@@ -4410,17 +4410,17 @@ function br() {
4410
4410
  return c <= 0 || h.length === 0 && h.ended ? 0 : (h.state & D) !== 0 ? 1 : n(c) ? h.flowing && h.length ? h.buffer.first().length : h.length : c <= h.length ? c : h.ended ? h.length : 0;
4411
4411
  }
4412
4412
  O.prototype.read = function(c) {
4413
- A("read", c), c === void 0 ? c = NaN : r(c) || (c = i(c, 10));
4413
+ T("read", c), c === void 0 ? c = NaN : r(c) || (c = i(c, 10));
4414
4414
  const h = this._readableState, j = c;
4415
- if (c > h.highWaterMark && (h.highWaterMark = gr(c)), c !== 0 && (h.state &= -129), c === 0 && h.needReadable && ((h.highWaterMark !== 0 ? h.length >= h.highWaterMark : h.length > 0) || h.ended))
4416
- return A("read: emitReadable", h.length, h.ended), h.length === 0 && h.ended ? wr(this) : o(this), null;
4415
+ if (c > h.highWaterMark && (h.highWaterMark = mr(c)), c !== 0 && (h.state &= -129), c === 0 && h.needReadable && ((h.highWaterMark !== 0 ? h.length >= h.highWaterMark : h.length > 0) || h.ended))
4416
+ return T("read: emitReadable", h.length, h.ended), h.length === 0 && h.ended ? xr(this) : o(this), null;
4417
4417
  if (c = f(c, h), c === 0 && h.ended)
4418
- return h.length === 0 && wr(this), null;
4418
+ return h.length === 0 && xr(this), null;
4419
4419
  let L = (h.state & We) !== 0;
4420
- if (A("need readable", L), (h.length === 0 || h.length - c < h.highWaterMark) && (L = !0, A("length less than watermark", L)), h.ended || h.reading || h.destroyed || h.errored || !h.constructed)
4421
- L = !1, A("reading, ended or constructing", L);
4420
+ if (T("need readable", L), (h.length === 0 || h.length - c < h.highWaterMark) && (L = !0, T("length less than watermark", L)), h.ended || h.reading || h.destroyed || h.errored || !h.constructed)
4421
+ L = !1, T("reading, ended or constructing", L);
4422
4422
  else if (L) {
4423
- A("do read"), h.state |= he | Ye, h.length === 0 && (h.state |= We);
4423
+ T("do read"), h.state |= pe | Ye, h.length === 0 && (h.state |= We);
4424
4424
  try {
4425
4425
  this._read(h.highWaterMark);
4426
4426
  } catch (we) {
@@ -4429,10 +4429,10 @@ function br() {
4429
4429
  h.state &= -33, h.reading || (c = f(j, h));
4430
4430
  }
4431
4431
  let k;
4432
- return c > 0 ? k = An(c, h) : k = null, k === null ? (h.needReadable = h.length <= h.highWaterMark, c = 0) : (h.length -= c, h.multiAwaitDrain ? h.awaitDrainWriters.clear() : h.awaitDrainWriters = null), h.length === 0 && (h.ended || (h.needReadable = !0), j !== c && h.ended && wr(this)), k !== null && !h.errorEmitted && !h.closeEmitted && (h.dataEmitted = !0, this.emit("data", k)), k;
4432
+ return c > 0 ? k = An(c, h) : k = null, k === null ? (h.needReadable = h.length <= h.highWaterMark, c = 0) : (h.length -= c, h.multiAwaitDrain ? h.awaitDrainWriters.clear() : h.awaitDrainWriters = null), h.length === 0 && (h.ended || (h.needReadable = !0), j !== c && h.ended && xr(this)), k !== null && !h.errorEmitted && !h.closeEmitted && (h.dataEmitted = !0, this.emit("data", k)), k;
4433
4433
  };
4434
4434
  function s(c, h) {
4435
- if (A("onEofChunk"), !h.ended) {
4435
+ if (T("onEofChunk"), !h.ended) {
4436
4436
  if (h.decoder) {
4437
4437
  const j = h.decoder.end();
4438
4438
  j && j.length && (h.buffer.push(j), h.length += h.objectMode ? 1 : j.length);
@@ -4442,11 +4442,11 @@ function br() {
4442
4442
  }
4443
4443
  function o(c) {
4444
4444
  const h = c._readableState;
4445
- A("emitReadable", h.needReadable, h.emittedReadable), h.needReadable = !1, h.emittedReadable || (A("emitReadable", h.flowing), h.emittedReadable = !0, t.nextTick(d, c));
4445
+ T("emitReadable", h.needReadable, h.emittedReadable), h.needReadable = !1, h.emittedReadable || (T("emitReadable", h.flowing), h.emittedReadable = !0, t.nextTick(d, c));
4446
4446
  }
4447
4447
  function d(c) {
4448
4448
  const h = c._readableState;
4449
- A("emitReadable_", h.destroyed, h.length, h.ended), !h.destroyed && !h.errored && (h.length || h.ended) && (c.emit("readable"), h.emittedReadable = !1), h.needReadable = !h.flowing && !h.ended && h.length <= h.highWaterMark, Q(c);
4449
+ T("emitReadable_", h.destroyed, h.length, h.ended), !h.destroyed && !h.errored && (h.length || h.ended) && (c.emit("readable"), h.emittedReadable = !1), h.needReadable = !h.flowing && !h.ended && h.length <= h.highWaterMark, Q(c);
4450
4450
  }
4451
4451
  function b(c, h) {
4452
4452
  !h.readingMore && h.constructed && (h.readingMore = !0, t.nextTick(E, c, h));
@@ -4454,7 +4454,7 @@ function br() {
4454
4454
  function E(c, h) {
4455
4455
  for (; !h.reading && !h.ended && (h.length < h.highWaterMark || h.flowing && h.length === 0); ) {
4456
4456
  const j = h.length;
4457
- if (A("maybeReadMore read 0"), c.read(0), j === h.length)
4457
+ if (T("maybeReadMore read 0"), c.read(0), j === h.length)
4458
4458
  break;
4459
4459
  }
4460
4460
  h.readingMore = !1;
@@ -4463,52 +4463,52 @@ function br() {
4463
4463
  throw new ye("_read()");
4464
4464
  }, O.prototype.pipe = function(c, h) {
4465
4465
  const j = this, L = this._readableState;
4466
- L.pipes.length === 1 && (L.multiAwaitDrain || (L.multiAwaitDrain = !0, L.awaitDrainWriters = new _(L.awaitDrainWriters ? [L.awaitDrainWriters] : []))), L.pipes.push(c), A("pipe count=%d opts=%j", L.pipes.length, h);
4466
+ L.pipes.length === 1 && (L.multiAwaitDrain || (L.multiAwaitDrain = !0, L.awaitDrainWriters = new _(L.awaitDrainWriters ? [L.awaitDrainWriters] : []))), L.pipes.push(c), T("pipe count=%d opts=%j", L.pipes.length, h);
4467
4467
  const we = (!h || h.end !== !1) && c !== t.stdout && c !== t.stderr ? vn : Nt;
4468
4468
  L.endEmitted ? t.nextTick(we) : j.once("end", we), c.on("unpipe", ve);
4469
4469
  function ve(it, ze) {
4470
- A("onunpipe"), it === j && ze && ze.hasUnpiped === !1 && (ze.hasUnpiped = !0, Hs());
4470
+ T("onunpipe"), it === j && ze && ze.hasUnpiped === !1 && (ze.hasUnpiped = !0, Hs());
4471
4471
  }
4472
4472
  function vn() {
4473
- A("onend"), c.end();
4473
+ T("onend"), c.end();
4474
4474
  }
4475
4475
  let nt, Nn = !1;
4476
4476
  function Hs() {
4477
- A("cleanup"), c.removeListener("close", Er), c.removeListener("finish", Sr), nt && c.removeListener("drain", nt), c.removeListener("error", xr), c.removeListener("unpipe", ve), j.removeListener("end", vn), j.removeListener("end", Nt), j.removeListener("data", jn), Nn = !0, nt && L.awaitDrainWriters && (!c._writableState || c._writableState.needDrain) && nt();
4477
+ T("cleanup"), c.removeListener("close", Ir), c.removeListener("finish", Rr), nt && c.removeListener("drain", nt), c.removeListener("error", Sr), c.removeListener("unpipe", ve), j.removeListener("end", vn), j.removeListener("end", Nt), j.removeListener("data", jn), Nn = !0, nt && L.awaitDrainWriters && (!c._writableState || c._writableState.needDrain) && nt();
4478
4478
  }
4479
4479
  function Pn() {
4480
- Nn || (L.pipes.length === 1 && L.pipes[0] === c ? (A("false write response, pause", 0), L.awaitDrainWriters = c, L.multiAwaitDrain = !1) : L.pipes.length > 1 && L.pipes.includes(c) && (A("false write response, pause", L.awaitDrainWriters.size), L.awaitDrainWriters.add(c)), j.pause()), nt || (nt = T(j, c), c.on("drain", nt));
4480
+ Nn || (L.pipes.length === 1 && L.pipes[0] === c ? (T("false write response, pause", 0), L.awaitDrainWriters = c, L.multiAwaitDrain = !1) : L.pipes.length > 1 && L.pipes.includes(c) && (T("false write response, pause", L.awaitDrainWriters.size), L.awaitDrainWriters.add(c)), j.pause()), nt || (nt = v(j, c), c.on("drain", nt));
4481
4481
  }
4482
4482
  j.on("data", jn);
4483
4483
  function jn(it) {
4484
- A("ondata");
4484
+ T("ondata");
4485
4485
  const ze = c.write(it);
4486
- A("dest.write", ze), ze === !1 && Pn();
4486
+ T("dest.write", ze), ze === !1 && Pn();
4487
4487
  }
4488
- function xr(it) {
4489
- if (A("onerror", it), Nt(), c.removeListener("error", xr), c.listenerCount("error") === 0) {
4488
+ function Sr(it) {
4489
+ if (T("onerror", it), Nt(), c.removeListener("error", Sr), c.listenerCount("error") === 0) {
4490
4490
  const ze = c._writableState || c._readableState;
4491
4491
  ze && !ze.errorEmitted ? ue(c, it) : c.emit("error", it);
4492
4492
  }
4493
4493
  }
4494
- m(c, "error", xr);
4495
- function Er() {
4496
- c.removeListener("finish", Sr), Nt();
4494
+ w(c, "error", Sr);
4495
+ function Ir() {
4496
+ c.removeListener("finish", Rr), Nt();
4497
4497
  }
4498
- c.once("close", Er);
4499
- function Sr() {
4500
- A("onfinish"), c.removeListener("close", Er), Nt();
4498
+ c.once("close", Ir);
4499
+ function Rr() {
4500
+ T("onfinish"), c.removeListener("close", Ir), Nt();
4501
4501
  }
4502
- c.once("finish", Sr);
4502
+ c.once("finish", Rr);
4503
4503
  function Nt() {
4504
- A("unpipe"), j.unpipe(c);
4504
+ T("unpipe"), j.unpipe(c);
4505
4505
  }
4506
- return c.emit("pipe", j), c.writableNeedDrain === !0 ? Pn() : L.flowing || (A("pipe resume"), j.resume()), c;
4506
+ return c.emit("pipe", j), c.writableNeedDrain === !0 ? Pn() : L.flowing || (T("pipe resume"), j.resume()), c;
4507
4507
  };
4508
- function T(c, h) {
4508
+ function v(c, h) {
4509
4509
  return function() {
4510
4510
  const L = c._readableState;
4511
- L.awaitDrainWriters === h ? (A("pipeOnDrain", 1), L.awaitDrainWriters = null) : L.multiAwaitDrain && (A("pipeOnDrain", L.awaitDrainWriters.size), L.awaitDrainWriters.delete(h)), (!L.awaitDrainWriters || L.awaitDrainWriters.size === 0) && c.listenerCount("data") && c.resume();
4511
+ L.awaitDrainWriters === h ? (T("pipeOnDrain", 1), L.awaitDrainWriters = null) : L.multiAwaitDrain && (T("pipeOnDrain", L.awaitDrainWriters.size), L.awaitDrainWriters.delete(h)), (!L.awaitDrainWriters || L.awaitDrainWriters.size === 0) && c.listenerCount("data") && c.resume();
4512
4512
  };
4513
4513
  }
4514
4514
  O.prototype.unpipe = function(c) {
@@ -4529,7 +4529,7 @@ function br() {
4529
4529
  return L === -1 ? this : (h.pipes.splice(L, 1), h.pipes.length === 0 && this.pause(), c.emit("unpipe", this, j), this);
4530
4530
  }, O.prototype.on = function(c, h) {
4531
4531
  const j = R.prototype.on.call(this, c, h), L = this._readableState;
4532
- return c === "data" ? (L.readableListening = this.listenerCount("readable") > 0, L.flowing !== !1 && this.resume()) : c === "readable" && !L.endEmitted && !L.readableListening && (L.readableListening = L.needReadable = !0, L.flowing = !1, L.emittedReadable = !1, A("on readable", L.length, L.reading), L.length ? o(this) : L.reading || t.nextTick(ne, this)), j;
4532
+ return c === "data" ? (L.readableListening = this.listenerCount("readable") > 0, L.flowing !== !1 && this.resume()) : c === "readable" && !L.endEmitted && !L.readableListening && (L.readableListening = L.needReadable = !0, L.flowing = !1, L.emittedReadable = !1, T("on readable", L.length, L.reading), L.length ? o(this) : L.reading || t.nextTick(ne, this)), j;
4533
4533
  }, O.prototype.addListener = O.prototype.on, O.prototype.removeListener = function(c, h) {
4534
4534
  const j = R.prototype.removeListener.call(this, c, h);
4535
4535
  return c === "readable" && t.nextTick(W, this), j;
@@ -4542,24 +4542,24 @@ function br() {
4542
4542
  h.readableListening = c.listenerCount("readable") > 0, h.resumeScheduled && h[q] === !1 ? h.flowing = !0 : c.listenerCount("data") > 0 ? c.resume() : h.readableListening || (h.flowing = null);
4543
4543
  }
4544
4544
  function ne(c) {
4545
- A("readable nexttick read 0"), c.read(0);
4545
+ T("readable nexttick read 0"), c.read(0);
4546
4546
  }
4547
4547
  O.prototype.resume = function() {
4548
4548
  const c = this._readableState;
4549
- return c.flowing || (A("resume"), c.flowing = !c.readableListening, Z(this, c)), c[q] = !1, this;
4549
+ return c.flowing || (T("resume"), c.flowing = !c.readableListening, Z(this, c)), c[q] = !1, this;
4550
4550
  };
4551
4551
  function Z(c, h) {
4552
4552
  h.resumeScheduled || (h.resumeScheduled = !0, t.nextTick(ie, c, h));
4553
4553
  }
4554
4554
  function ie(c, h) {
4555
- A("resume", h.reading), h.reading || c.read(0), h.resumeScheduled = !1, c.emit("resume"), Q(c), h.flowing && !h.reading && c.read(0);
4555
+ T("resume", h.reading), h.reading || c.read(0), h.resumeScheduled = !1, c.emit("resume"), Q(c), h.flowing && !h.reading && c.read(0);
4556
4556
  }
4557
4557
  O.prototype.pause = function() {
4558
- return A("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (A("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState[q] = !0, this;
4558
+ return T("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (T("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState[q] = !0, this;
4559
4559
  };
4560
4560
  function Q(c) {
4561
4561
  const h = c._readableState;
4562
- for (A("flow", h.flowing); h.flowing && c.read() !== null; ) ;
4562
+ for (T("flow", h.flowing); h.flowing && c.read() !== null; ) ;
4563
4563
  }
4564
4564
  O.prototype.wrap = function(c) {
4565
4565
  let h = !1;
@@ -4753,12 +4753,12 @@ function br() {
4753
4753
  let j;
4754
4754
  return h.objectMode ? j = h.buffer.shift() : !c || c >= h.length ? (h.decoder ? j = h.buffer.join("") : h.buffer.length === 1 ? j = h.buffer.first() : j = h.buffer.concat(h.length), h.buffer.clear()) : j = h.buffer.consume(c, h.decoder), j;
4755
4755
  }
4756
- function wr(c) {
4756
+ function xr(c) {
4757
4757
  const h = c._readableState;
4758
- A("endReadable", h.endEmitted), h.endEmitted || (h.ended = !0, t.nextTick(zs, h, c));
4758
+ T("endReadable", h.endEmitted), h.endEmitted || (h.ended = !0, t.nextTick(zs, h, c));
4759
4759
  }
4760
4760
  function zs(c, h) {
4761
- if (A("endReadableNT", c.endEmitted, c.length), !c.errored && !c.closeEmitted && !c.endEmitted && c.length === 0) {
4761
+ if (T("endReadableNT", c.endEmitted, c.length), !c.errored && !c.closeEmitted && !c.endEmitted && c.length === 0) {
4762
4762
  if (c.endEmitted = !0, h.emit("end"), h.writable && h.allowHalfOpen === !1)
4763
4763
  t.nextTick(qs, h);
4764
4764
  else if (c.autoDestroy) {
@@ -4775,9 +4775,9 @@ function br() {
4775
4775
  O.from = function(c, h) {
4776
4776
  return le(O, c, h);
4777
4777
  };
4778
- let mr;
4778
+ let Er;
4779
4779
  function Tn() {
4780
- return mr === void 0 && (mr = {}), mr;
4780
+ return Er === void 0 && (Er = {}), Er;
4781
4781
  }
4782
4782
  return O.fromWeb = function(c, h) {
4783
4783
  return Tn().newStreamReadableFromReadableStream(c, h);
@@ -4792,11 +4792,11 @@ function br() {
4792
4792
  U.destroyer(c, k), we(k);
4793
4793
  }
4794
4794
  }).wrap(c);
4795
- }, jr;
4795
+ }, $r;
4796
4796
  }
4797
- var Lr, di;
4798
- function yn() {
4799
- if (di) return Lr;
4797
+ var Br, di;
4798
+ function wn() {
4799
+ if (di) return Br;
4800
4800
  di = 1;
4801
4801
  const t = ct, {
4802
4802
  ArrayPrototypeSlice: e,
@@ -4809,11 +4809,11 @@ function yn() {
4809
4809
  Symbol: p,
4810
4810
  SymbolHasInstance: _
4811
4811
  } = fe;
4812
- Lr = G, G.WritableState = P;
4813
- const { EventEmitter: y } = ur, x = _n.Stream, { Buffer: I } = De, S = Tt, { addAbortSignal: R } = pr, { getHighWaterMark: m, getDefaultHighWaterMark: v } = _r, {
4812
+ Br = G, G.WritableState = P;
4813
+ const { EventEmitter: y } = ur, x = yn.Stream, { Buffer: I } = De, S = Tt, { addAbortSignal: R } = pr, { getHighWaterMark: w, getDefaultHighWaterMark: A } = _r, {
4814
4814
  ERR_INVALID_ARG_TYPE: $,
4815
4815
  ERR_METHOD_NOT_IMPLEMENTED: B,
4816
- ERR_MULTIPLE_CALLBACK: A,
4816
+ ERR_MULTIPLE_CALLBACK: T,
4817
4817
  ERR_STREAM_CANNOT_PIPE: z,
4818
4818
  ERR_STREAM_DESTROYED: U,
4819
4819
  ERR_STREAM_ALREADY_FINISHED: se,
@@ -4825,10 +4825,10 @@ function yn() {
4825
4825
  function ge() {
4826
4826
  }
4827
4827
  const H = p("kOnFinished");
4828
- function P(g, w, N) {
4829
- typeof N != "boolean" && (N = w instanceof He()), this.objectMode = !!(g && g.objectMode), N && (this.objectMode = this.objectMode || !!(g && g.writableObjectMode)), this.highWaterMark = g ? m(this, g, "writableHighWaterMark", N) : v(!1), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
4828
+ function P(g, m, N) {
4829
+ typeof N != "boolean" && (N = m instanceof He()), this.objectMode = !!(g && g.objectMode), N && (this.objectMode = this.objectMode || !!(g && g.writableObjectMode)), this.highWaterMark = g ? w(this, g, "writableHighWaterMark", N) : A(!1), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
4830
4830
  const C = !!(g && g.decodeStrings === !1);
4831
- this.decodeStrings = !C, this.defaultEncoding = g && g.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = ue.bind(void 0, w), this.writecb = null, this.writelen = 0, this.afterWriteTickInfo = null, V(this), this.pendingcb = 0, this.constructed = !0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = !g || g.emitClose !== !1, this.autoDestroy = !g || g.autoDestroy !== !1, this.errored = null, this.closed = !1, this.closeEmitted = !1, this[H] = [];
4831
+ this.decodeStrings = !C, this.defaultEncoding = g && g.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = ue.bind(void 0, m), this.writecb = null, this.writelen = 0, this.afterWriteTickInfo = null, V(this), this.pendingcb = 0, this.constructed = !0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = !g || g.emitClose !== !1, this.autoDestroy = !g || g.autoDestroy !== !1, this.errored = null, this.closed = !1, this.closeEmitted = !1, this[H] = [];
4832
4832
  }
4833
4833
  function V(g) {
4834
4834
  g.buffered = [], g.bufferedIndex = 0, g.allBuffers = !0, g.allNoop = !0;
@@ -4842,11 +4842,11 @@ function yn() {
4842
4842
  }
4843
4843
  });
4844
4844
  function G(g) {
4845
- const w = this instanceof He();
4846
- if (!w && !n(G, this)) return new G(g);
4847
- this._writableState = new P(g, this, w), g && (typeof g.write == "function" && (this._write = g.write), typeof g.writev == "function" && (this._writev = g.writev), typeof g.destroy == "function" && (this._destroy = g.destroy), typeof g.final == "function" && (this._final = g.final), typeof g.construct == "function" && (this._construct = g.construct), g.signal && R(g.signal, this)), x.call(this, g), S.construct(this, () => {
4845
+ const m = this instanceof He();
4846
+ if (!m && !n(G, this)) return new G(g);
4847
+ this._writableState = new P(g, this, m), g && (typeof g.write == "function" && (this._write = g.write), typeof g.writev == "function" && (this._writev = g.writev), typeof g.destroy == "function" && (this._destroy = g.destroy), typeof g.final == "function" && (this._final = g.final), typeof g.construct == "function" && (this._construct = g.construct), g.signal && R(g.signal, this)), x.call(this, g), S.construct(this, () => {
4848
4848
  const N = this._writableState;
4849
- N.writing || he(this, N), Ae(this, N);
4849
+ N.writing || pe(this, N), Ae(this, N);
4850
4850
  });
4851
4851
  }
4852
4852
  i(G, _, {
@@ -4857,7 +4857,7 @@ function yn() {
4857
4857
  }), G.prototype.pipe = function() {
4858
4858
  ye(this, new z());
4859
4859
  };
4860
- function q(g, w, N, C) {
4860
+ function q(g, m, N, C) {
4861
4861
  const F = g._writableState;
4862
4862
  if (typeof N == "function")
4863
4863
  C = N, N = F.defaultEncoding;
@@ -4866,76 +4866,76 @@ function yn() {
4866
4866
  else if (N !== "buffer" && !I.isEncoding(N)) throw new oe(N);
4867
4867
  typeof C != "function" && (C = ge);
4868
4868
  }
4869
- if (w === null)
4869
+ if (m === null)
4870
4870
  throw new me();
4871
4871
  if (!F.objectMode)
4872
- if (typeof w == "string")
4873
- F.decodeStrings !== !1 && (w = I.from(w, N), N = "buffer");
4874
- else if (w instanceof I)
4872
+ if (typeof m == "string")
4873
+ F.decodeStrings !== !1 && (m = I.from(m, N), N = "buffer");
4874
+ else if (m instanceof I)
4875
4875
  N = "buffer";
4876
- else if (x._isUint8Array(w))
4877
- w = x._uint8ArrayToBuffer(w), N = "buffer";
4876
+ else if (x._isUint8Array(m))
4877
+ m = x._uint8ArrayToBuffer(m), N = "buffer";
4878
4878
  else
4879
- throw new $("chunk", ["string", "Buffer", "Uint8Array"], w);
4879
+ throw new $("chunk", ["string", "Buffer", "Uint8Array"], m);
4880
4880
  let X;
4881
- return F.ending ? X = new J() : F.destroyed && (X = new U("write")), X ? (t.nextTick(C, X), ye(g, X, !0), X) : (F.pendingcb++, ae(g, F, w, N, C));
4881
+ return F.ending ? X = new J() : F.destroyed && (X = new U("write")), X ? (t.nextTick(C, X), ye(g, X, !0), X) : (F.pendingcb++, ae(g, F, m, N, C));
4882
4882
  }
4883
- G.prototype.write = function(g, w, N) {
4884
- return q(this, g, w, N) === !0;
4883
+ G.prototype.write = function(g, m, N) {
4884
+ return q(this, g, m, N) === !0;
4885
4885
  }, G.prototype.cork = function() {
4886
4886
  this._writableState.corked++;
4887
4887
  }, G.prototype.uncork = function() {
4888
4888
  const g = this._writableState;
4889
- g.corked && (g.corked--, g.writing || he(this, g));
4890
- }, G.prototype.setDefaultEncoding = function(w) {
4891
- if (typeof w == "string" && (w = u(w)), !I.isEncoding(w)) throw new oe(w);
4892
- return this._writableState.defaultEncoding = w, this;
4889
+ g.corked && (g.corked--, g.writing || pe(this, g));
4890
+ }, G.prototype.setDefaultEncoding = function(m) {
4891
+ if (typeof m == "string" && (m = u(m)), !I.isEncoding(m)) throw new oe(m);
4892
+ return this._writableState.defaultEncoding = m, this;
4893
4893
  };
4894
- function ae(g, w, N, C, F) {
4895
- const X = w.objectMode ? 1 : N.length;
4896
- w.length += X;
4897
- const ee = w.length < w.highWaterMark;
4898
- return ee || (w.needDrain = !0), w.writing || w.corked || w.errored || !w.constructed ? (w.buffered.push({
4894
+ function ae(g, m, N, C, F) {
4895
+ const X = m.objectMode ? 1 : N.length;
4896
+ m.length += X;
4897
+ const ee = m.length < m.highWaterMark;
4898
+ return ee || (m.needDrain = !0), m.writing || m.corked || m.errored || !m.constructed ? (m.buffered.push({
4899
4899
  chunk: N,
4900
4900
  encoding: C,
4901
4901
  callback: F
4902
- }), w.allBuffers && C !== "buffer" && (w.allBuffers = !1), w.allNoop && F !== ge && (w.allNoop = !1)) : (w.writelen = X, w.writecb = F, w.writing = !0, w.sync = !0, g._write(N, C, w.onwrite), w.sync = !1), ee && !w.errored && !w.destroyed;
4902
+ }), m.allBuffers && C !== "buffer" && (m.allBuffers = !1), m.allNoop && F !== ge && (m.allNoop = !1)) : (m.writelen = X, m.writecb = F, m.writing = !0, m.sync = !0, g._write(N, C, m.onwrite), m.sync = !1), ee && !m.errored && !m.destroyed;
4903
4903
  }
4904
- function le(g, w, N, C, F, X, ee) {
4905
- w.writelen = C, w.writecb = ee, w.writing = !0, w.sync = !0, w.destroyed ? w.onwrite(new U("write")) : N ? g._writev(F, w.onwrite) : g._write(F, X, w.onwrite), w.sync = !1;
4904
+ function le(g, m, N, C, F, X, ee) {
4905
+ m.writelen = C, m.writecb = ee, m.writing = !0, m.sync = !0, m.destroyed ? m.onwrite(new U("write")) : N ? g._writev(F, m.onwrite) : g._write(F, X, m.onwrite), m.sync = !1;
4906
4906
  }
4907
- function te(g, w, N, C) {
4908
- --w.pendingcb, C(N), M(w), ye(g, N);
4907
+ function te(g, m, N, C) {
4908
+ --m.pendingcb, C(N), M(m), ye(g, N);
4909
4909
  }
4910
- function ue(g, w) {
4910
+ function ue(g, m) {
4911
4911
  const N = g._writableState, C = N.sync, F = N.writecb;
4912
4912
  if (typeof F != "function") {
4913
- ye(g, new A());
4913
+ ye(g, new T());
4914
4914
  return;
4915
4915
  }
4916
- N.writing = !1, N.writecb = null, N.length -= N.writelen, N.writelen = 0, w ? (w.stack, N.errored || (N.errored = w), g._readableState && !g._readableState.errored && (g._readableState.errored = w), C ? t.nextTick(te, g, N, w, F) : te(g, N, w, F)) : (N.buffered.length > N.bufferedIndex && he(g, N), C ? N.afterWriteTickInfo !== null && N.afterWriteTickInfo.cb === F ? N.afterWriteTickInfo.count++ : (N.afterWriteTickInfo = {
4916
+ N.writing = !1, N.writecb = null, N.length -= N.writelen, N.writelen = 0, m ? (m.stack, N.errored || (N.errored = m), g._readableState && !g._readableState.errored && (g._readableState.errored = m), C ? t.nextTick(te, g, N, m, F) : te(g, N, m, F)) : (N.buffered.length > N.bufferedIndex && pe(g, N), C ? N.afterWriteTickInfo !== null && N.afterWriteTickInfo.cb === F ? N.afterWriteTickInfo.count++ : (N.afterWriteTickInfo = {
4917
4917
  count: 1,
4918
4918
  cb: F,
4919
4919
  stream: g,
4920
4920
  state: N
4921
4921
  }, t.nextTick(D, N.afterWriteTickInfo)) : re(g, N, 1, F));
4922
4922
  }
4923
- function D({ stream: g, state: w, count: N, cb: C }) {
4924
- return w.afterWriteTickInfo = null, re(g, w, N, C);
4923
+ function D({ stream: g, state: m, count: N, cb: C }) {
4924
+ return m.afterWriteTickInfo = null, re(g, m, N, C);
4925
4925
  }
4926
- function re(g, w, N, C) {
4927
- for (!w.ending && !g.destroyed && w.length === 0 && w.needDrain && (w.needDrain = !1, g.emit("drain")); N-- > 0; )
4928
- w.pendingcb--, C();
4929
- w.destroyed && M(w), Ae(g, w);
4926
+ function re(g, m, N, C) {
4927
+ for (!m.ending && !g.destroyed && m.length === 0 && m.needDrain && (m.needDrain = !1, g.emit("drain")); N-- > 0; )
4928
+ m.pendingcb--, C();
4929
+ m.destroyed && M(m), Ae(g, m);
4930
4930
  }
4931
4931
  function M(g) {
4932
4932
  if (g.writing)
4933
4933
  return;
4934
4934
  for (let F = g.bufferedIndex; F < g.buffered.length; ++F) {
4935
- var w;
4935
+ var m;
4936
4936
  const { chunk: X, callback: ee } = g.buffered[F], K = g.objectMode ? 1 : X.length;
4937
4937
  g.length -= K, ee(
4938
- (w = g.errored) !== null && w !== void 0 ? w : new U("write")
4938
+ (m = g.errored) !== null && m !== void 0 ? m : new U("write")
4939
4939
  );
4940
4940
  }
4941
4941
  const N = g[H].splice(0);
@@ -4947,50 +4947,50 @@ function yn() {
4947
4947
  }
4948
4948
  V(g);
4949
4949
  }
4950
- function he(g, w) {
4951
- if (w.corked || w.bufferProcessing || w.destroyed || !w.constructed)
4950
+ function pe(g, m) {
4951
+ if (m.corked || m.bufferProcessing || m.destroyed || !m.constructed)
4952
4952
  return;
4953
- const { buffered: N, bufferedIndex: C, objectMode: F } = w, X = N.length - C;
4953
+ const { buffered: N, bufferedIndex: C, objectMode: F } = m, X = N.length - C;
4954
4954
  if (!X)
4955
4955
  return;
4956
4956
  let ee = C;
4957
- if (w.bufferProcessing = !0, X > 1 && g._writev) {
4958
- w.pendingcb -= X - 1;
4959
- const K = w.allNoop ? ge : (O) => {
4957
+ if (m.bufferProcessing = !0, X > 1 && g._writev) {
4958
+ m.pendingcb -= X - 1;
4959
+ const K = m.allNoop ? ge : (O) => {
4960
4960
  for (let Te = ee; Te < N.length; ++Te)
4961
4961
  N[Te].callback(O);
4962
- }, Ee = w.allNoop && ee === 0 ? N : e(N, ee);
4963
- Ee.allBuffers = w.allBuffers, le(g, w, !0, w.length, Ee, "", K), V(w);
4962
+ }, Ee = m.allNoop && ee === 0 ? N : e(N, ee);
4963
+ Ee.allBuffers = m.allBuffers, le(g, m, !0, m.length, Ee, "", K), V(m);
4964
4964
  } else {
4965
4965
  do {
4966
4966
  const { chunk: K, encoding: Ee, callback: O } = N[ee];
4967
4967
  N[ee++] = null;
4968
4968
  const Te = F ? 1 : K.length;
4969
- le(g, w, !1, Te, K, Ee, O);
4970
- } while (ee < N.length && !w.writing);
4971
- ee === N.length ? V(w) : ee > 256 ? (N.splice(0, ee), w.bufferedIndex = 0) : w.bufferedIndex = ee;
4969
+ le(g, m, !1, Te, K, Ee, O);
4970
+ } while (ee < N.length && !m.writing);
4971
+ ee === N.length ? V(m) : ee > 256 ? (N.splice(0, ee), m.bufferedIndex = 0) : m.bufferedIndex = ee;
4972
4972
  }
4973
- w.bufferProcessing = !1;
4973
+ m.bufferProcessing = !1;
4974
4974
  }
4975
- G.prototype._write = function(g, w, N) {
4975
+ G.prototype._write = function(g, m, N) {
4976
4976
  if (this._writev)
4977
4977
  this._writev(
4978
4978
  [
4979
4979
  {
4980
4980
  chunk: g,
4981
- encoding: w
4981
+ encoding: m
4982
4982
  }
4983
4983
  ],
4984
4984
  N
4985
4985
  );
4986
4986
  else
4987
4987
  throw new B("_write()");
4988
- }, G.prototype._writev = null, G.prototype.end = function(g, w, N) {
4988
+ }, G.prototype._writev = null, G.prototype.end = function(g, m, N) {
4989
4989
  const C = this._writableState;
4990
- typeof g == "function" ? (N = g, g = null, w = null) : typeof w == "function" && (N = w, w = null);
4990
+ typeof g == "function" ? (N = g, g = null, m = null) : typeof m == "function" && (N = m, m = null);
4991
4991
  let F;
4992
4992
  if (g != null) {
4993
- const X = q(this, g, w);
4993
+ const X = q(this, g, m);
4994
4994
  X instanceof r && (F = X);
4995
4995
  }
4996
4996
  return C.corked && (C.corked = 1, this.uncork()), F || (!C.errored && !C.ending ? (C.ending = !0, Ae(this, C, !0), C.ended = !0) : C.finished ? F = new se("end") : C.destroyed && (F = new U("end"))), typeof N == "function" && (F || C.finished ? t.nextTick(N, F) : C[H].push(N)), this;
@@ -4998,46 +4998,46 @@ function yn() {
4998
4998
  function Re(g) {
4999
4999
  return g.ending && !g.destroyed && g.constructed && g.length === 0 && !g.errored && g.buffered.length === 0 && !g.finished && !g.writing && !g.errorEmitted && !g.closeEmitted;
5000
5000
  }
5001
- function Ye(g, w) {
5001
+ function Ye(g, m) {
5002
5002
  let N = !1;
5003
5003
  function C(F) {
5004
5004
  if (N) {
5005
- ye(g, F ?? A());
5005
+ ye(g, F ?? T());
5006
5006
  return;
5007
5007
  }
5008
- if (N = !0, w.pendingcb--, F) {
5009
- const X = w[H].splice(0);
5008
+ if (N = !0, m.pendingcb--, F) {
5009
+ const X = m[H].splice(0);
5010
5010
  for (let ee = 0; ee < X.length; ee++)
5011
5011
  X[ee](F);
5012
- ye(g, F, w.sync);
5013
- } else Re(w) && (w.prefinished = !0, g.emit("prefinish"), w.pendingcb++, t.nextTick(Ge, g, w));
5012
+ ye(g, F, m.sync);
5013
+ } else Re(m) && (m.prefinished = !0, g.emit("prefinish"), m.pendingcb++, t.nextTick(Ge, g, m));
5014
5014
  }
5015
- w.sync = !0, w.pendingcb++;
5015
+ m.sync = !0, m.pendingcb++;
5016
5016
  try {
5017
5017
  g._final(C);
5018
5018
  } catch (F) {
5019
5019
  C(F);
5020
5020
  }
5021
- w.sync = !1;
5021
+ m.sync = !1;
5022
5022
  }
5023
- function We(g, w) {
5024
- !w.prefinished && !w.finalCalled && (typeof g._final == "function" && !w.destroyed ? (w.finalCalled = !0, Ye(g, w)) : (w.prefinished = !0, g.emit("prefinish")));
5023
+ function We(g, m) {
5024
+ !m.prefinished && !m.finalCalled && (typeof g._final == "function" && !m.destroyed ? (m.finalCalled = !0, Ye(g, m)) : (m.prefinished = !0, g.emit("prefinish")));
5025
5025
  }
5026
- function Ae(g, w, N) {
5027
- Re(w) && (We(g, w), w.pendingcb === 0 && (N ? (w.pendingcb++, t.nextTick(
5026
+ function Ae(g, m, N) {
5027
+ Re(m) && (We(g, m), m.pendingcb === 0 && (N ? (m.pendingcb++, t.nextTick(
5028
5028
  (C, F) => {
5029
5029
  Re(F) ? Ge(C, F) : F.pendingcb--;
5030
5030
  },
5031
5031
  g,
5032
- w
5033
- )) : Re(w) && (w.pendingcb++, Ge(g, w))));
5032
+ m
5033
+ )) : Re(m) && (m.pendingcb++, Ge(g, m))));
5034
5034
  }
5035
- function Ge(g, w) {
5036
- w.pendingcb--, w.finished = !0;
5037
- const N = w[H].splice(0);
5035
+ function Ge(g, m) {
5036
+ m.pendingcb--, m.finished = !0;
5037
+ const N = m[H].splice(0);
5038
5038
  for (let C = 0; C < N.length; C++)
5039
5039
  N[C]();
5040
- if (g.emit("finish"), w.autoDestroy) {
5040
+ if (g.emit("finish"), m.autoDestroy) {
5041
5041
  const C = g._readableState;
5042
5042
  (!C || C.autoDestroy && // We don't expect the readable to ever 'end'
5043
5043
  // if readable is explicitly set to false.
@@ -5135,11 +5135,11 @@ function yn() {
5135
5135
  }
5136
5136
  });
5137
5137
  const _t = S.destroy;
5138
- G.prototype.destroy = function(g, w) {
5138
+ G.prototype.destroy = function(g, m) {
5139
5139
  const N = this._writableState;
5140
- return !N.destroyed && (N.bufferedIndex < N.buffered.length || N[H].length) && t.nextTick(M, N), _t.call(this, g, w), this;
5141
- }, G.prototype._undestroy = S.undestroy, G.prototype._destroy = function(g, w) {
5142
- w(g);
5140
+ return !N.destroyed && (N.bufferedIndex < N.buffered.length || N[H].length) && t.nextTick(M, N), _t.call(this, g, m), this;
5141
+ }, G.prototype._undestroy = S.undestroy, G.prototype._destroy = function(g, m) {
5142
+ m(g);
5143
5143
  }, G.prototype[y.captureRejectionSymbol] = function(g) {
5144
5144
  this.destroy(g);
5145
5145
  };
@@ -5147,15 +5147,15 @@ function yn() {
5147
5147
  function Xe() {
5148
5148
  return rt === void 0 && (rt = {}), rt;
5149
5149
  }
5150
- return G.fromWeb = function(g, w) {
5151
- return Xe().newStreamWritableFromWritableStream(g, w);
5150
+ return G.fromWeb = function(g, m) {
5151
+ return Xe().newStreamWritableFromWritableStream(g, m);
5152
5152
  }, G.toWeb = function(g) {
5153
5153
  return Xe().newWritableStreamFromStreamWritable(g);
5154
- }, Lr;
5154
+ }, Br;
5155
5155
  }
5156
- var $r, hi;
5156
+ var Fr, hi;
5157
5157
  function Tl() {
5158
- if (hi) return $r;
5158
+ if (hi) return Fr;
5159
5159
  hi = 1;
5160
5160
  const t = ct, e = De, {
5161
5161
  isReadable: r,
@@ -5170,17 +5170,17 @@ function Tl() {
5170
5170
  } = Ke, x = tt, {
5171
5171
  AbortError: I,
5172
5172
  codes: { ERR_INVALID_ARG_TYPE: S, ERR_INVALID_RETURN_VALUE: R }
5173
- } = xe, { destroyer: m } = Tt, v = He(), $ = br(), B = yn(), { createDeferredPromise: A } = Ie, z = Ts, U = globalThis.Blob || e.Blob, se = typeof U < "u" ? function(P) {
5173
+ } = xe, { destroyer: w } = Tt, A = He(), $ = br(), B = wn(), { createDeferredPromise: T } = Ie, z = Ts, U = globalThis.Blob || e.Blob, se = typeof U < "u" ? function(P) {
5174
5174
  return P instanceof U;
5175
5175
  } : function(P) {
5176
5176
  return !1;
5177
5177
  }, me = globalThis.AbortController || Ut().AbortController, { FunctionPrototypeCall: J } = fe;
5178
- class oe extends v {
5178
+ class oe extends A {
5179
5179
  constructor(P) {
5180
5180
  super(P), (P == null ? void 0 : P.readable) === !1 && (this._readableState.readable = !1, this._readableState.ended = !0, this._readableState.endEmitted = !0), (P == null ? void 0 : P.writable) === !1 && (this._writableState.writable = !1, this._writableState.ending = !0, this._writableState.ended = !0, this._writableState.finished = !0);
5181
5181
  }
5182
5182
  }
5183
- $r = function H(P, V) {
5183
+ Fr = function H(P, V) {
5184
5184
  if (p(P))
5185
5185
  return P;
5186
5186
  if (l(P))
@@ -5225,7 +5225,7 @@ function Tl() {
5225
5225
  throw new R("nully", "body", M);
5226
5226
  },
5227
5227
  (M) => {
5228
- m(D, M);
5228
+ w(D, M);
5229
5229
  }
5230
5230
  );
5231
5231
  return D = new oe({
@@ -5237,8 +5237,8 @@ function Tl() {
5237
5237
  le(async () => {
5238
5238
  try {
5239
5239
  await re, t.nextTick(M, null);
5240
- } catch (he) {
5241
- t.nextTick(M, he);
5240
+ } catch (pe) {
5241
+ t.nextTick(M, pe);
5242
5242
  }
5243
5243
  });
5244
5244
  },
@@ -5274,7 +5274,7 @@ function Tl() {
5274
5274
  ae != null && q.push(ae), q.push(null);
5275
5275
  },
5276
5276
  (ae) => {
5277
- m(q, ae);
5277
+ w(q, ae);
5278
5278
  }
5279
5279
  ), q = new oe({
5280
5280
  objectMode: !0,
@@ -5300,7 +5300,7 @@ function Tl() {
5300
5300
  );
5301
5301
  };
5302
5302
  function ye(H) {
5303
- let { promise: P, resolve: V } = A();
5303
+ let { promise: P, resolve: V } = T();
5304
5304
  const G = new me(), q = G.signal;
5305
5305
  return {
5306
5306
  value: H(
@@ -5314,7 +5314,7 @@ function Tl() {
5314
5314
  throw new I(void 0, {
5315
5315
  cause: q.reason
5316
5316
  });
5317
- ({ promise: P, resolve: V } = A()), yield te;
5317
+ ({ promise: P, resolve: V } = T()), yield te;
5318
5318
  }
5319
5319
  }(),
5320
5320
  {
@@ -5345,8 +5345,8 @@ function Tl() {
5345
5345
  const P = H.readable && typeof H.readable.read != "function" ? $.wrap(H.readable) : H.readable, V = H.writable;
5346
5346
  let G = !!r(P), q = !!n(V), ae, le, te, ue, D;
5347
5347
  function re(M) {
5348
- const he = ue;
5349
- ue = null, he ? he(M) : M && D.destroy(M);
5348
+ const pe = ue;
5349
+ ue = null, pe ? pe(M) : M && D.destroy(M);
5350
5350
  }
5351
5351
  return D = new oe({
5352
5352
  // TODO (ronag): highWaterMark?
@@ -5355,9 +5355,9 @@ function Tl() {
5355
5355
  readable: G,
5356
5356
  writable: q
5357
5357
  }), q && (x(V, (M) => {
5358
- q = !1, M && m(P, M), re(M);
5359
- }), D._write = function(M, he, Re) {
5360
- V.write(M, he) ? Re() : ae = Re;
5358
+ q = !1, M && w(P, M), re(M);
5359
+ }), D._write = function(M, pe, Re) {
5360
+ V.write(M, pe) ? Re() : ae = Re;
5361
5361
  }, D._final = function(M) {
5362
5362
  V.end(), le = M;
5363
5363
  }, V.on("drain", function() {
@@ -5371,7 +5371,7 @@ function Tl() {
5371
5371
  le = null, M();
5372
5372
  }
5373
5373
  })), G && (x(P, (M) => {
5374
- G = !1, M && m(P, M), re(M);
5374
+ G = !1, M && w(P, M), re(M);
5375
5375
  }), P.on("readable", function() {
5376
5376
  if (te) {
5377
5377
  const M = te;
@@ -5389,15 +5389,15 @@ function Tl() {
5389
5389
  if (!D.push(M))
5390
5390
  return;
5391
5391
  }
5392
- }), D._destroy = function(M, he) {
5393
- !M && ue !== null && (M = new I()), te = null, ae = null, le = null, ue === null ? he(M) : (ue = he, m(V, M), m(P, M));
5392
+ }), D._destroy = function(M, pe) {
5393
+ !M && ue !== null && (M = new I()), te = null, ae = null, le = null, ue === null ? pe(M) : (ue = pe, w(V, M), w(P, M));
5394
5394
  }, D;
5395
5395
  }
5396
- return $r;
5396
+ return Fr;
5397
5397
  }
5398
- var Br, pi;
5398
+ var kr, pi;
5399
5399
  function He() {
5400
- if (pi) return Br;
5400
+ if (pi) return kr;
5401
5401
  pi = 1;
5402
5402
  const {
5403
5403
  ObjectDefineProperties: t,
@@ -5405,8 +5405,8 @@ function He() {
5405
5405
  ObjectKeys: r,
5406
5406
  ObjectSetPrototypeOf: n
5407
5407
  } = fe;
5408
- Br = l;
5409
- const i = br(), a = yn();
5408
+ kr = l;
5409
+ const i = br(), a = wn();
5410
5410
  n(l.prototype, i.prototype), n(l, i);
5411
5411
  {
5412
5412
  const y = r(a.prototype);
@@ -5478,13 +5478,13 @@ function He() {
5478
5478
  let _;
5479
5479
  return l.from = function(y) {
5480
5480
  return _ || (_ = Tl()), _(y, "body");
5481
- }, Br;
5481
+ }, kr;
5482
5482
  }
5483
5483
  const { ObjectSetPrototypeOf: vs, Symbol: vl } = fe;
5484
5484
  var Ns = Qe;
5485
- const { ERR_METHOD_NOT_IMPLEMENTED: Nl } = xe.codes, gn = He(), { getHighWaterMark: Pl } = _r;
5486
- vs(Qe.prototype, gn.prototype);
5487
- vs(Qe, gn);
5485
+ const { ERR_METHOD_NOT_IMPLEMENTED: Nl } = xe.codes, mn = He(), { getHighWaterMark: Pl } = _r;
5486
+ vs(Qe.prototype, mn.prototype);
5487
+ vs(Qe, mn);
5488
5488
  const Mt = vl("kCallback");
5489
5489
  function Qe(t) {
5490
5490
  if (!(this instanceof Qe)) return new Qe(t);
@@ -5498,9 +5498,9 @@ function Qe(t) {
5498
5498
  // Refs: https://github.com/nodejs/node/pull/32887
5499
5499
  // Refs: https://github.com/nodejs/node/pull/35941
5500
5500
  writableHighWaterMark: t.writableHighWaterMark || 0
5501
- }), gn.call(this, t), this._readableState.sync = !1, this[Mt] = null, t && (typeof t.transform == "function" && (this._transform = t.transform), typeof t.flush == "function" && (this._flush = t.flush)), this.on("prefinish", jl);
5501
+ }), mn.call(this, t), this._readableState.sync = !1, this[Mt] = null, t && (typeof t.transform == "function" && (this._transform = t.transform), typeof t.flush == "function" && (this._flush = t.flush)), this.on("prefinish", jl);
5502
5502
  }
5503
- function sn(t) {
5503
+ function an(t) {
5504
5504
  typeof this._flush == "function" && !this.destroyed ? this._flush((e, r) => {
5505
5505
  if (e) {
5506
5506
  t ? t(e) : this.destroy(e);
@@ -5510,9 +5510,9 @@ function sn(t) {
5510
5510
  }) : (this.push(null), t && t());
5511
5511
  }
5512
5512
  function jl() {
5513
- this._final !== sn && sn.call(this);
5513
+ this._final !== an && an.call(this);
5514
5514
  }
5515
- Qe.prototype._final = sn;
5515
+ Qe.prototype._final = an;
5516
5516
  Qe.prototype._transform = function(t, e, r) {
5517
5517
  throw new Nl("_transform()");
5518
5518
  };
@@ -5536,12 +5536,12 @@ Qe.prototype._read = function() {
5536
5536
  };
5537
5537
  const { ObjectSetPrototypeOf: Ps } = fe;
5538
5538
  var js = Rt;
5539
- const wn = Ns;
5540
- Ps(Rt.prototype, wn.prototype);
5541
- Ps(Rt, wn);
5539
+ const xn = Ns;
5540
+ Ps(Rt.prototype, xn.prototype);
5541
+ Ps(Rt, xn);
5542
5542
  function Rt(t) {
5543
5543
  if (!(this instanceof Rt)) return new Rt(t);
5544
- wn.call(this, t);
5544
+ xn.call(this, t);
5545
5545
  }
5546
5546
  Rt.prototype._transform = function(t, e, r) {
5547
5547
  r(null, t);
@@ -5549,8 +5549,8 @@ Rt.prototype._transform = function(t, e, r) {
5549
5549
  const Ot = ct, { ArrayIsArray: Ll, Promise: $l, SymbolAsyncIterator: Bl, SymbolDispose: Fl } = fe, ir = tt, { once: kl } = Ie, Cl = Tt, _i = He(), {
5550
5550
  aggregateTwoErrors: Ol,
5551
5551
  codes: {
5552
- ERR_INVALID_ARG_TYPE: on,
5553
- ERR_INVALID_RETURN_VALUE: Fr,
5552
+ ERR_INVALID_ARG_TYPE: ln,
5553
+ ERR_INVALID_RETURN_VALUE: Cr,
5554
5554
  ERR_MISSING_ARGS: Ml,
5555
5555
  ERR_STREAM_DESTROYED: Dl,
5556
5556
  ERR_STREAM_PREMATURE_CLOSE: Ul
@@ -5558,15 +5558,15 @@ const Ot = ct, { ArrayIsArray: Ll, Promise: $l, SymbolAsyncIterator: Bl, SymbolD
5558
5558
  AbortError: Wl
5559
5559
  } = xe, { validateFunction: Gl, validateAbortSignal: zl } = Wt, {
5560
5560
  isIterable: ot,
5561
- isReadable: kr,
5561
+ isReadable: Or,
5562
5562
  isReadableNodeStream: tr,
5563
5563
  isNodeStream: bi,
5564
5564
  isTransformStream: gt,
5565
5565
  isWebStream: ql,
5566
- isReadableStream: Cr,
5566
+ isReadableStream: Mr,
5567
5567
  isReadableFinished: Hl
5568
5568
  } = Ke, Ql = globalThis.AbortController || Ut().AbortController;
5569
- let Or, Mr, Dr;
5569
+ let Dr, Ur, Wr;
5570
5570
  function yi(t, e, r) {
5571
5571
  let n = !1;
5572
5572
  t.on("close", () => {
@@ -5592,15 +5592,15 @@ function yi(t, e, r) {
5592
5592
  function Vl(t) {
5593
5593
  return Gl(t[t.length - 1], "streams[stream.length - 1]"), t.pop();
5594
5594
  }
5595
- function Ur(t) {
5595
+ function Gr(t) {
5596
5596
  if (ot(t))
5597
5597
  return t;
5598
5598
  if (tr(t))
5599
5599
  return Kl(t);
5600
- throw new on("val", ["Readable", "Iterable", "AsyncIterable"], t);
5600
+ throw new ln("val", ["Readable", "Iterable", "AsyncIterable"], t);
5601
5601
  }
5602
5602
  async function* Kl(t) {
5603
- Mr || (Mr = br()), yield* Mr.prototype[Bl].call(t);
5603
+ Ur || (Ur = br()), yield* Ur.prototype[Bl].call(t);
5604
5604
  }
5605
5605
  async function Kt(t, e, r, { end: n }) {
5606
5606
  let i, a = null;
@@ -5633,7 +5633,7 @@ async function Kt(t, e, r, { end: n }) {
5633
5633
  p(), e.off("drain", l);
5634
5634
  }
5635
5635
  }
5636
- async function Wr(t, e, r, { end: n }) {
5636
+ async function zr(t, e, r, { end: n }) {
5637
5637
  gt(e) && (e = e.writable);
5638
5638
  const i = e.getWriter();
5639
5639
  try {
@@ -5660,65 +5660,65 @@ function Ls(t, e, r) {
5660
5660
  function u() {
5661
5661
  R(new Wl());
5662
5662
  }
5663
- Dr = Dr || Ie.addAbortListener;
5663
+ Wr = Wr || Ie.addAbortListener;
5664
5664
  let p;
5665
- a && (p = Dr(a, u));
5665
+ a && (p = Wr(a, u));
5666
5666
  let _, y;
5667
5667
  const x = [];
5668
5668
  let I = 0;
5669
5669
  function S(B) {
5670
5670
  R(B, --I === 0);
5671
5671
  }
5672
- function R(B, A) {
5672
+ function R(B, T) {
5673
5673
  var z;
5674
- if (B && (!_ || _.code === "ERR_STREAM_PREMATURE_CLOSE") && (_ = B), !(!_ && !A)) {
5674
+ if (B && (!_ || _.code === "ERR_STREAM_PREMATURE_CLOSE") && (_ = B), !(!_ && !T)) {
5675
5675
  for (; x.length; )
5676
5676
  x.shift()(_);
5677
- (z = p) === null || z === void 0 || z[Fl](), n.abort(), A && (_ || l.forEach((U) => U()), Ot.nextTick(e, _, y));
5677
+ (z = p) === null || z === void 0 || z[Fl](), n.abort(), T && (_ || l.forEach((U) => U()), Ot.nextTick(e, _, y));
5678
5678
  }
5679
5679
  }
5680
- let m;
5680
+ let w;
5681
5681
  for (let B = 0; B < t.length; B++) {
5682
- const A = t[B], z = B < t.length - 1, U = B > 0, se = z || (r == null ? void 0 : r.end) !== !1, me = B === t.length - 1;
5683
- if (bi(A)) {
5682
+ const T = t[B], z = B < t.length - 1, U = B > 0, se = z || (r == null ? void 0 : r.end) !== !1, me = B === t.length - 1;
5683
+ if (bi(T)) {
5684
5684
  let J = function(oe) {
5685
5685
  oe && oe.name !== "AbortError" && oe.code !== "ERR_STREAM_PREMATURE_CLOSE" && S(oe);
5686
5686
  };
5687
5687
  if (se) {
5688
- const { destroy: oe, cleanup: ye } = yi(A, z, U);
5689
- x.push(oe), kr(A) && me && l.push(ye);
5688
+ const { destroy: oe, cleanup: ye } = yi(T, z, U);
5689
+ x.push(oe), Or(T) && me && l.push(ye);
5690
5690
  }
5691
- A.on("error", J), kr(A) && me && l.push(() => {
5692
- A.removeListener("error", J);
5691
+ T.on("error", J), Or(T) && me && l.push(() => {
5692
+ T.removeListener("error", J);
5693
5693
  });
5694
5694
  }
5695
5695
  if (B === 0)
5696
- if (typeof A == "function") {
5697
- if (m = A({
5696
+ if (typeof T == "function") {
5697
+ if (w = T({
5698
5698
  signal: i
5699
- }), !ot(m))
5700
- throw new Fr("Iterable, AsyncIterable or Stream", "source", m);
5701
- } else ot(A) || tr(A) || gt(A) ? m = A : m = _i.from(A);
5702
- else if (typeof A == "function") {
5703
- if (gt(m)) {
5704
- var v;
5705
- m = Ur((v = m) === null || v === void 0 ? void 0 : v.readable);
5699
+ }), !ot(w))
5700
+ throw new Cr("Iterable, AsyncIterable or Stream", "source", w);
5701
+ } else ot(T) || tr(T) || gt(T) ? w = T : w = _i.from(T);
5702
+ else if (typeof T == "function") {
5703
+ if (gt(w)) {
5704
+ var A;
5705
+ w = Gr((A = w) === null || A === void 0 ? void 0 : A.readable);
5706
5706
  } else
5707
- m = Ur(m);
5708
- if (m = A(m, {
5707
+ w = Gr(w);
5708
+ if (w = T(w, {
5709
5709
  signal: i
5710
5710
  }), z) {
5711
- if (!ot(m, !0))
5712
- throw new Fr("AsyncIterable", `transform[${B - 1}]`, m);
5711
+ if (!ot(w, !0))
5712
+ throw new Cr("AsyncIterable", `transform[${B - 1}]`, w);
5713
5713
  } else {
5714
5714
  var $;
5715
- Or || (Or = js);
5716
- const J = new Or({
5715
+ Dr || (Dr = js);
5716
+ const J = new Dr({
5717
5717
  objectMode: !0
5718
- }), oe = ($ = m) === null || $ === void 0 ? void 0 : $.then;
5718
+ }), oe = ($ = w) === null || $ === void 0 ? void 0 : $.then;
5719
5719
  if (typeof oe == "function")
5720
5720
  I++, oe.call(
5721
- m,
5721
+ w,
5722
5722
  (H) => {
5723
5723
  y = H, H != null && J.write(H), se && J.end(), Ot.nextTick(S);
5724
5724
  },
@@ -5726,68 +5726,68 @@ function Ls(t, e, r) {
5726
5726
  J.destroy(H), Ot.nextTick(S, H);
5727
5727
  }
5728
5728
  );
5729
- else if (ot(m, !0))
5730
- I++, Kt(m, J, S, {
5729
+ else if (ot(w, !0))
5730
+ I++, Kt(w, J, S, {
5731
5731
  end: se
5732
5732
  });
5733
- else if (Cr(m) || gt(m)) {
5734
- const H = m.readable || m;
5733
+ else if (Mr(w) || gt(w)) {
5734
+ const H = w.readable || w;
5735
5735
  I++, Kt(H, J, S, {
5736
5736
  end: se
5737
5737
  });
5738
5738
  } else
5739
- throw new Fr("AsyncIterable or Promise", "destination", m);
5740
- m = J;
5741
- const { destroy: ye, cleanup: ge } = yi(m, !1, !0);
5739
+ throw new Cr("AsyncIterable or Promise", "destination", w);
5740
+ w = J;
5741
+ const { destroy: ye, cleanup: ge } = yi(w, !1, !0);
5742
5742
  x.push(ye), me && l.push(ge);
5743
5743
  }
5744
- } else if (bi(A)) {
5745
- if (tr(m)) {
5744
+ } else if (bi(T)) {
5745
+ if (tr(w)) {
5746
5746
  I += 2;
5747
- const J = Xl(m, A, S, {
5747
+ const J = Xl(w, T, S, {
5748
5748
  end: se
5749
5749
  });
5750
- kr(A) && me && l.push(J);
5751
- } else if (gt(m) || Cr(m)) {
5752
- const J = m.readable || m;
5753
- I++, Kt(J, A, S, {
5750
+ Or(T) && me && l.push(J);
5751
+ } else if (gt(w) || Mr(w)) {
5752
+ const J = w.readable || w;
5753
+ I++, Kt(J, T, S, {
5754
5754
  end: se
5755
5755
  });
5756
- } else if (ot(m))
5757
- I++, Kt(m, A, S, {
5756
+ } else if (ot(w))
5757
+ I++, Kt(w, T, S, {
5758
5758
  end: se
5759
5759
  });
5760
5760
  else
5761
- throw new on(
5761
+ throw new ln(
5762
5762
  "val",
5763
5763
  ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"],
5764
- m
5764
+ w
5765
5765
  );
5766
- m = A;
5767
- } else if (ql(A)) {
5768
- if (tr(m))
5769
- I++, Wr(Ur(m), A, S, {
5766
+ w = T;
5767
+ } else if (ql(T)) {
5768
+ if (tr(w))
5769
+ I++, zr(Gr(w), T, S, {
5770
5770
  end: se
5771
5771
  });
5772
- else if (Cr(m) || ot(m))
5773
- I++, Wr(m, A, S, {
5772
+ else if (Mr(w) || ot(w))
5773
+ I++, zr(w, T, S, {
5774
5774
  end: se
5775
5775
  });
5776
- else if (gt(m))
5777
- I++, Wr(m.readable, A, S, {
5776
+ else if (gt(w))
5777
+ I++, zr(w.readable, T, S, {
5778
5778
  end: se
5779
5779
  });
5780
5780
  else
5781
- throw new on(
5781
+ throw new ln(
5782
5782
  "val",
5783
5783
  ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"],
5784
- m
5784
+ w
5785
5785
  );
5786
- m = A;
5786
+ w = T;
5787
5787
  } else
5788
- m = _i.from(A);
5788
+ w = _i.from(T);
5789
5789
  }
5790
- return (i != null && i.aborted || a != null && a.aborted) && Ot.nextTick(u), m;
5790
+ return (i != null && i.aborted || a != null && a.aborted) && Ot.nextTick(u), w;
5791
5791
  }
5792
5792
  function Xl(t, e, r, { end: n }) {
5793
5793
  let i = !1;
@@ -5821,15 +5821,15 @@ function Xl(t, e, r, { end: n }) {
5821
5821
  r
5822
5822
  );
5823
5823
  }
5824
- var mn = {
5824
+ var En = {
5825
5825
  pipelineImpl: Ls,
5826
5826
  pipeline: Yl
5827
5827
  };
5828
- const { pipeline: Zl } = mn, Yt = He(), { destroyer: Jl } = Tt, {
5828
+ const { pipeline: Zl } = En, Yt = He(), { destroyer: Jl } = Tt, {
5829
5829
  isNodeStream: Xt,
5830
5830
  isReadable: gi,
5831
5831
  isWritable: wi,
5832
- isWebStream: Gr,
5832
+ isWebStream: qr,
5833
5833
  isTransformStream: st,
5834
5834
  isWritableStream: mi,
5835
5835
  isReadableStream: xi
@@ -5848,7 +5848,7 @@ var $s = function(...e) {
5848
5848
  e[S] = Yt.from(e[S]);
5849
5849
  }
5850
5850
  for (let S = 0; S < e.length; ++S)
5851
- if (!(!Xt(e[S]) && !Gr(e[S]))) {
5851
+ if (!(!Xt(e[S]) && !qr(e[S]))) {
5852
5852
  if (S < e.length - 1 && !(gi(e[S]) || xi(e[S]) || st(e[S])))
5853
5853
  throw new Ei(`streams[${S}]`, r[S], "must be readable");
5854
5854
  if (S > 0 && !(wi(e[S]) || mi(e[S]) || st(e[S])))
@@ -5868,8 +5868,8 @@ var $s = function(...e) {
5868
5868
  readable: I
5869
5869
  }), x) {
5870
5870
  if (Xt(_))
5871
- u._write = function(R, m, v) {
5872
- _.write(R, m) ? v() : n = v;
5871
+ u._write = function(R, w, A) {
5872
+ _.write(R, w) ? A() : n = A;
5873
5873
  }, u._final = function(R) {
5874
5874
  _.end(), i = R;
5875
5875
  }, _.on("drain", function() {
@@ -5878,21 +5878,21 @@ var $s = function(...e) {
5878
5878
  n = null, R();
5879
5879
  }
5880
5880
  });
5881
- else if (Gr(_)) {
5882
- const m = (st(_) ? _.writable : _).getWriter();
5883
- u._write = async function(v, $, B) {
5881
+ else if (qr(_)) {
5882
+ const w = (st(_) ? _.writable : _).getWriter();
5883
+ u._write = async function(A, $, B) {
5884
5884
  try {
5885
- await m.ready, m.write(v).catch(() => {
5885
+ await w.ready, w.write(A).catch(() => {
5886
5886
  }), B();
5887
- } catch (A) {
5888
- B(A);
5887
+ } catch (T) {
5888
+ B(T);
5889
5889
  }
5890
- }, u._final = async function(v) {
5890
+ }, u._final = async function(A) {
5891
5891
  try {
5892
- await m.ready, m.close().catch(() => {
5893
- }), i = v;
5892
+ await w.ready, w.close().catch(() => {
5893
+ }), i = A;
5894
5894
  } catch ($) {
5895
- v($);
5895
+ A($);
5896
5896
  }
5897
5897
  };
5898
5898
  }
@@ -5924,15 +5924,15 @@ var $s = function(...e) {
5924
5924
  return;
5925
5925
  }
5926
5926
  };
5927
- else if (Gr(y)) {
5927
+ else if (qr(y)) {
5928
5928
  const R = (st(y) ? y.readable : y).getReader();
5929
5929
  u._read = async function() {
5930
5930
  for (; ; )
5931
5931
  try {
5932
- const { value: m, done: v } = await R.read();
5933
- if (!u.push(m))
5932
+ const { value: w, done: A } = await R.read();
5933
+ if (!u.push(w))
5934
5934
  return;
5935
- if (v) {
5935
+ if (A) {
5936
5936
  u.push(null);
5937
5937
  return;
5938
5938
  }
@@ -5985,12 +5985,12 @@ function yr(t, e) {
5985
5985
  x = !0, R();
5986
5986
  }
5987
5987
  function R() {
5988
- I -= 1, m();
5988
+ I -= 1, w();
5989
5989
  }
5990
- function m() {
5990
+ function w() {
5991
5991
  y && !x && I < r && u.length < n && (y(), y = null);
5992
5992
  }
5993
- async function v() {
5993
+ async function A() {
5994
5994
  try {
5995
5995
  for await (let $ of l) {
5996
5996
  if (x)
@@ -6016,7 +6016,7 @@ function yr(t, e) {
6016
6016
  x = !0, _ && (_(), _ = null);
6017
6017
  }
6018
6018
  }
6019
- v();
6019
+ A();
6020
6020
  try {
6021
6021
  for (; ; ) {
6022
6022
  for (; u.length > 0; ) {
@@ -6025,7 +6025,7 @@ function yr(t, e) {
6025
6025
  return;
6026
6026
  if (a.aborted)
6027
6027
  throw new Me();
6028
- $ !== sr && (yield $), u.shift(), m();
6028
+ $ !== sr && (yield $), u.shift(), w();
6029
6029
  }
6030
6030
  await new Ri(($) => {
6031
6031
  _ = $;
@@ -6050,7 +6050,7 @@ function xu(t = void 0) {
6050
6050
  }).call(this);
6051
6051
  }
6052
6052
  async function Fs(t, e = void 0) {
6053
- for await (const r of xn.call(this, t, e))
6053
+ for await (const r of Sn.call(this, t, e))
6054
6054
  return !0;
6055
6055
  return !1;
6056
6056
  }
@@ -6064,7 +6064,7 @@ async function Eu(t, e = void 0) {
6064
6064
  );
6065
6065
  }
6066
6066
  async function Su(t, e) {
6067
- for await (const r of xn.call(this, t, e))
6067
+ for await (const r of Sn.call(this, t, e))
6068
6068
  return r;
6069
6069
  }
6070
6070
  async function Iu(t, e) {
@@ -6075,7 +6075,7 @@ async function Iu(t, e) {
6075
6075
  }
6076
6076
  for await (const n of yr.call(this, r, e)) ;
6077
6077
  }
6078
- function xn(t, e) {
6078
+ function Sn(t, e) {
6079
6079
  if (typeof t != "function")
6080
6080
  throw new zt("fn", ["Function", "AsyncFunction"], t);
6081
6081
  async function r(n, i) {
@@ -6181,16 +6181,16 @@ function Pu(t, e = void 0) {
6181
6181
  }
6182
6182
  }).call(this);
6183
6183
  }
6184
- cn.streamReturningOperators = {
6184
+ hn.streamReturningOperators = {
6185
6185
  asIndexedPairs: pu(xu, "readable.asIndexedPairs will be removed in a future version."),
6186
6186
  drop: Nu,
6187
- filter: xn,
6187
+ filter: Sn,
6188
6188
  flatMap: vu,
6189
6189
  map: yr,
6190
6190
  take: Pu,
6191
6191
  compose: mu
6192
6192
  };
6193
- cn.promiseReturningOperators = {
6193
+ hn.promiseReturningOperators = {
6194
6194
  every: Eu,
6195
6195
  forEach: Iu,
6196
6196
  reduce: Au,
@@ -6198,11 +6198,11 @@ cn.promiseReturningOperators = {
6198
6198
  some: Fs,
6199
6199
  find: Su
6200
6200
  };
6201
- var zr, Ni;
6201
+ var Hr, Ni;
6202
6202
  function Cs() {
6203
- if (Ni) return zr;
6203
+ if (Ni) return Hr;
6204
6204
  Ni = 1;
6205
- const { ArrayPrototypePop: t, Promise: e } = fe, { isIterable: r, isNodeStream: n, isWebStream: i } = Ke, { pipelineImpl: a } = mn, { finished: l } = tt;
6205
+ const { ArrayPrototypePop: t, Promise: e } = fe, { isIterable: r, isNodeStream: n, isWebStream: i } = Ke, { pipelineImpl: a } = En, { finished: l } = tt;
6206
6206
  Os();
6207
6207
  function u(...p) {
6208
6208
  return new e((_, y) => {
@@ -6214,8 +6214,8 @@ function Cs() {
6214
6214
  }
6215
6215
  a(
6216
6216
  p,
6217
- (R, m) => {
6218
- R ? y(R) : _(m);
6217
+ (R, w) => {
6218
+ R ? y(R) : _(w);
6219
6219
  },
6220
6220
  {
6221
6221
  signal: x,
@@ -6224,35 +6224,35 @@ function Cs() {
6224
6224
  );
6225
6225
  });
6226
6226
  }
6227
- return zr = {
6227
+ return Hr = {
6228
6228
  finished: l,
6229
6229
  pipeline: u
6230
- }, zr;
6230
+ }, Hr;
6231
6231
  }
6232
6232
  var Pi;
6233
6233
  function Os() {
6234
- if (Pi) return Ar.exports;
6234
+ if (Pi) return vr.exports;
6235
6235
  Pi = 1;
6236
6236
  const { Buffer: t } = De, { ObjectDefineProperty: e, ObjectKeys: r, ReflectApply: n } = fe, {
6237
6237
  promisify: { custom: i }
6238
- } = Ie, { streamReturningOperators: a, promiseReturningOperators: l } = cn, {
6238
+ } = Ie, { streamReturningOperators: a, promiseReturningOperators: l } = hn, {
6239
6239
  codes: { ERR_ILLEGAL_CONSTRUCTOR: u }
6240
- } = xe, p = $s, { setDefaultHighWaterMark: _, getDefaultHighWaterMark: y } = _r, { pipeline: x } = mn, { destroyer: I } = Tt, S = tt, R = Cs(), m = Ke, v = Ar.exports = _n.Stream;
6241
- v.isDestroyed = m.isDestroyed, v.isDisturbed = m.isDisturbed, v.isErrored = m.isErrored, v.isReadable = m.isReadable, v.isWritable = m.isWritable, v.Readable = br();
6240
+ } = xe, p = $s, { setDefaultHighWaterMark: _, getDefaultHighWaterMark: y } = _r, { pipeline: x } = En, { destroyer: I } = Tt, S = tt, R = Cs(), w = Ke, A = vr.exports = yn.Stream;
6241
+ A.isDestroyed = w.isDestroyed, A.isDisturbed = w.isDisturbed, A.isErrored = w.isErrored, A.isReadable = w.isReadable, A.isWritable = w.isWritable, A.Readable = br();
6242
6242
  for (const B of r(a)) {
6243
6243
  let z = function(...U) {
6244
6244
  if (new.target)
6245
6245
  throw u();
6246
- return v.Readable.from(n(A, this, U));
6246
+ return A.Readable.from(n(T, this, U));
6247
6247
  };
6248
- const A = a[B];
6248
+ const T = a[B];
6249
6249
  e(z, "name", {
6250
6250
  __proto__: null,
6251
- value: A.name
6251
+ value: T.name
6252
6252
  }), e(z, "length", {
6253
6253
  __proto__: null,
6254
- value: A.length
6255
- }), e(v.Readable.prototype, B, {
6254
+ value: T.length
6255
+ }), e(A.Readable.prototype, B, {
6256
6256
  __proto__: null,
6257
6257
  value: z,
6258
6258
  enumerable: !1,
@@ -6264,16 +6264,16 @@ function Os() {
6264
6264
  let z = function(...U) {
6265
6265
  if (new.target)
6266
6266
  throw u();
6267
- return n(A, this, U);
6267
+ return n(T, this, U);
6268
6268
  };
6269
- const A = l[B];
6269
+ const T = l[B];
6270
6270
  e(z, "name", {
6271
6271
  __proto__: null,
6272
- value: A.name
6272
+ value: T.name
6273
6273
  }), e(z, "length", {
6274
6274
  __proto__: null,
6275
- value: A.length
6276
- }), e(v.Readable.prototype, B, {
6275
+ value: T.length
6276
+ }), e(A.Readable.prototype, B, {
6277
6277
  __proto__: null,
6278
6278
  value: z,
6279
6279
  enumerable: !1,
@@ -6281,9 +6281,9 @@ function Os() {
6281
6281
  writable: !0
6282
6282
  });
6283
6283
  }
6284
- v.Writable = yn(), v.Duplex = He(), v.Transform = Ns, v.PassThrough = js, v.pipeline = x;
6284
+ A.Writable = wn(), A.Duplex = He(), A.Transform = Ns, A.PassThrough = js, A.pipeline = x;
6285
6285
  const { addAbortSignal: $ } = pr;
6286
- return v.addAbortSignal = $, v.finished = S, v.destroy = I, v.compose = p, v.setDefaultHighWaterMark = _, v.getDefaultHighWaterMark = y, e(v, "promises", {
6286
+ return A.addAbortSignal = $, A.finished = S, A.destroy = I, A.compose = p, A.setDefaultHighWaterMark = _, A.getDefaultHighWaterMark = y, e(A, "promises", {
6287
6287
  __proto__: null,
6288
6288
  configurable: !0,
6289
6289
  enumerable: !0,
@@ -6302,11 +6302,11 @@ function Os() {
6302
6302
  get() {
6303
6303
  return R.finished;
6304
6304
  }
6305
- }), v.Stream = v, v._isUint8Array = function(A) {
6306
- return A instanceof Uint8Array;
6307
- }, v._uint8ArrayToBuffer = function(A) {
6308
- return t.from(A.buffer, A.byteOffset, A.byteLength);
6309
- }, Ar.exports;
6305
+ }), A.Stream = A, A._isUint8Array = function(T) {
6306
+ return T instanceof Uint8Array;
6307
+ }, A._uint8ArrayToBuffer = function(T) {
6308
+ return t.from(T.buffer, T.byteOffset, T.byteLength);
6309
+ }, vr.exports;
6310
6310
  }
6311
6311
  (function(t) {
6312
6312
  const e = Os(), r = Cs(), n = e.Readable.destroy;
@@ -6319,7 +6319,7 @@ function Os() {
6319
6319
  }), t.exports.Stream = e.Stream, t.exports.default = t.exports;
6320
6320
  })(Wi);
6321
6321
  var Ms = Wi.exports;
6322
- const qr = Symbol("iter");
6322
+ const Qr = Symbol("iter");
6323
6323
  function Dt(t, e, r = 4) {
6324
6324
  if (r === 0)
6325
6325
  return Object.assign(t, e);
@@ -6373,12 +6373,12 @@ class ju {
6373
6373
  if (e.termType === "Quad") {
6374
6374
  const r = this._termToNumericId(e.subject), n = this._termToNumericId(e.predicate), i = this._termToNumericId(e.object);
6375
6375
  let a;
6376
- return r && n && i && (Qr(e.graph) || (a = this._termToNumericId(e.graph))) && this._ids[a ? `.${r}.${n}.${i}.${a}` : `.${r}.${n}.${i}`];
6376
+ return r && n && i && (Kr(e.graph) || (a = this._termToNumericId(e.graph))) && this._ids[a ? `.${r}.${n}.${i}.${a}` : `.${r}.${n}.${i}`];
6377
6377
  }
6378
6378
  return this._ids[wt(e)];
6379
6379
  }
6380
6380
  _termToNewNumericId(e) {
6381
- const r = e && e.termType === "Quad" ? `.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${Qr(e.graph) ? "" : `.${this._termToNewNumericId(e.graph)}`}` : wt(e);
6381
+ const r = e && e.termType === "Quad" ? `.${this._termToNewNumericId(e.subject)}.${this._termToNewNumericId(e.predicate)}.${this._termToNewNumericId(e.object)}${Kr(e.graph) ? "" : `.${this._termToNewNumericId(e.graph)}`}` : wt(e);
6382
6382
  return this._ids[r] || (this._ids[this._entities[++this._id] = r] = this._id);
6383
6383
  }
6384
6384
  createBlankNode(e) {
@@ -6439,12 +6439,12 @@ class Se {
6439
6439
  let _, y, x;
6440
6440
  const I = this._entities, S = this._termFromId(I[p]), R = { subject: null, predicate: null, object: null };
6441
6441
  r && ((_ = e, e = {})[r] = _[r]);
6442
- for (const m in e)
6443
- if (y = e[m]) {
6444
- R[a] = this._termFromId(I[m]), n && ((_ = y, y = {})[n] = _[n]);
6445
- for (const v in y)
6446
- if (x = y[v]) {
6447
- R[l] = this._termFromId(I[v]);
6442
+ for (const w in e)
6443
+ if (y = e[w]) {
6444
+ R[a] = this._termFromId(I[w]), n && ((_ = y, y = {})[n] = _[n]);
6445
+ for (const A in y)
6446
+ if (x = y[A]) {
6447
+ R[l] = this._termFromId(I[A]);
6448
6448
  const $ = i ? i in x ? [i] : [] : Object.keys(x);
6449
6449
  for (let B = 0; B < $.length; B++)
6450
6450
  R[u] = this._termFromId(I[$[B]]), yield this._factory.quad(R.subject, R.predicate, R.object, S);
@@ -6754,20 +6754,20 @@ class Se {
6754
6754
  extractLists({ remove: e = !1, ignoreErrors: r = !1 } = {}) {
6755
6755
  const n = {}, i = r ? () => !0 : (u, p) => {
6756
6756
  throw new Error(`${u.value} ${p}`);
6757
- }, a = this.getQuads(null, pe.rdf.rest, pe.rdf.nil, null), l = e ? [...a] : [];
6757
+ }, a = this.getQuads(null, _e.rdf.rest, _e.rdf.nil, null), l = e ? [...a] : [];
6758
6758
  return a.forEach((u) => {
6759
6759
  const p = [];
6760
6760
  let _ = !1, y, x;
6761
6761
  const I = u.graph;
6762
6762
  let S = u.subject;
6763
6763
  for (; S && !_; ) {
6764
- const R = this.getQuads(null, null, S, null), m = this.getQuads(S, null, null, null);
6765
- let v, $ = null, B = null, A = null;
6766
- for (let z = 0; z < m.length && !_; z++)
6767
- v = m[z], v.graph.equals(I) ? y ? _ = i(S, "has non-list arcs out") : v.predicate.value === pe.rdf.first ? $ ? _ = i(S, "has multiple rdf:first arcs") : l.push($ = v) : v.predicate.value === pe.rdf.rest ? B ? _ = i(S, "has multiple rdf:rest arcs") : l.push(B = v) : R.length ? _ = i(S, "can't be subject and object") : (y = v, x = "subject") : _ = i(S, "not confined to single graph");
6764
+ const R = this.getQuads(null, null, S, null), w = this.getQuads(S, null, null, null);
6765
+ let A, $ = null, B = null, T = null;
6766
+ for (let z = 0; z < w.length && !_; z++)
6767
+ A = w[z], A.graph.equals(I) ? y ? _ = i(S, "has non-list arcs out") : A.predicate.value === _e.rdf.first ? $ ? _ = i(S, "has multiple rdf:first arcs") : l.push($ = A) : A.predicate.value === _e.rdf.rest ? B ? _ = i(S, "has multiple rdf:rest arcs") : l.push(B = A) : R.length ? _ = i(S, "can't be subject and object") : (y = A, x = "subject") : _ = i(S, "not confined to single graph");
6768
6768
  for (let z = 0; z < R.length && !_; ++z)
6769
- v = R[z], y ? _ = i(S, "can't have coreferences") : v.predicate.value === pe.rdf.rest ? A ? _ = i(S, "has incoming rdf:rest arcs") : A = v : (y = v, x = "object");
6770
- $ ? p.unshift($.object) : _ = i(S, "has no list head"), S = A && A.subject;
6769
+ A = R[z], y ? _ = i(S, "can't have coreferences") : A.predicate.value === _e.rdf.rest ? T ? _ = i(S, "has incoming rdf:rest arcs") : T = A : (y = A, x = "object");
6770
+ $ ? p.unshift($.object) : _ = i(S, "has no list head"), S = T && T.subject;
6771
6771
  }
6772
6772
  _ ? e = !1 : y && (n[y[x].value] = p);
6773
6773
  }), e && this.removeQuads(l), n;
@@ -6968,8 +6968,8 @@ class et extends Ms.Readable {
6968
6968
  return l;
6969
6969
  const y = e._getGraphs(r);
6970
6970
  for (const x in y) {
6971
- let I, S, R, m;
6972
- (m = y[x]) && (!u && p ? (S = Be(m.predicates, [p, _, u])) && (I = Be(m.subjects, [u, p, _]), R = Be(m.objects, [_, u, p])) : _ ? (R = Be(m.objects, [_, u, p])) && (I = Be(m.subjects, [u, p, _]), S = Be(m.predicates, [p, _, u])) : (I = Be(m.subjects, [u, p, _])) && (S = Be(m.predicates, [p, _, u]), R = Be(m.objects, [_, u, p])), I && (l._graphs[x] = { subjects: I, predicates: S, objects: R }));
6971
+ let I, S, R, w;
6972
+ (w = y[x]) && (!u && p ? (S = Be(w.predicates, [p, _, u])) && (I = Be(w.subjects, [u, p, _]), R = Be(w.objects, [_, u, p])) : _ ? (R = Be(w.objects, [_, u, p])) && (I = Be(w.subjects, [u, p, _]), S = Be(w.predicates, [p, _, u])) : (I = Be(w.subjects, [u, p, _])) && (S = Be(w.predicates, [p, _, u]), R = Be(w.objects, [_, u, p])), I && (l._graphs[x] = { subjects: I, predicates: S, objects: R }));
6973
6973
  }
6974
6974
  l._size = null;
6975
6975
  }
@@ -6979,8 +6979,8 @@ class et extends Ms.Readable {
6979
6979
  return this.filtered.size;
6980
6980
  }
6981
6981
  _read(e) {
6982
- e > 0 && !this[qr] && (this[qr] = this[Symbol.iterator]());
6983
- const r = this[qr];
6982
+ e > 0 && !this[Qr] && (this[Qr] = this[Symbol.iterator]());
6983
+ const r = this[Qr];
6984
6984
  for (; --e >= 0; ) {
6985
6985
  const { done: n, value: i } = r.next();
6986
6986
  if (n) {
@@ -7060,7 +7060,7 @@ class et extends Ms.Readable {
7060
7060
  yield* this._filtered || this.n3Store.readQuads(this.subject, this.predicate, this.object, this.graph);
7061
7061
  }
7062
7062
  }
7063
- const En = {
7063
+ const In = {
7064
7064
  rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
7065
7065
  }, ce = {
7066
7066
  namespace: "https://prez.dev/",
@@ -7082,7 +7082,7 @@ const En = {
7082
7082
  facetName: "https://prez.dev/facetName",
7083
7083
  facetValue: "https://prez.dev/facetValue",
7084
7084
  profile: "https://prez.dev/profile"
7085
- }, _e = {
7085
+ }, he = {
7086
7086
  skosConceptScheme: "http://www.w3.org/2004/02/skos/core#ConceptScheme",
7087
7087
  skosConcept: "http://www.w3.org/2004/02/skos/core#Concept",
7088
7088
  a: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
@@ -7090,11 +7090,14 @@ const En = {
7090
7090
  xmlString: "http://www.w3.org/2001/XMLSchema#string",
7091
7091
  w3Html: "http://www.w3.org/1999/02/22-rdf-syntax-ns#HTML",
7092
7092
  w3Markdown: "https://www.w3.org/ns/iana/media-types/text/markdown",
7093
+ w3token: "http://www.w3.org/2001/XMLSchema#token",
7093
7094
  shaclAllPredicates: "http://example.com/shacl-extension#allPredicateValues",
7095
+ shaclPathAlias: "http://example.com/shacl-extension#pathAlias",
7094
7096
  shaclProperty: "http://www.w3.org/ns/shacl#property",
7095
7097
  shaclPath: "http://www.w3.org/ns/shacl#path",
7096
- shaclUnion: "http://www.w3.org/ns/shacl#union"
7097
- }, Hu = {
7098
+ shaclUnion: "http://www.w3.org/ns/shacl#union",
7099
+ dctermsIdentifier: "http://purl.org/dc/terms/identifier"
7100
+ }, qu = {
7098
7101
  label: [
7099
7102
  // "http://www.w3.org/2000/01/rdf-schema#label",
7100
7103
  // "http://purl.org/dc/terms/title",
@@ -7113,7 +7116,7 @@ const En = {
7113
7116
  "https://prez.dev/provenance"
7114
7117
  ]
7115
7118
  };
7116
- function Lu(t, e = En) {
7119
+ function Lu(t, e = In) {
7117
7120
  if (t === "a")
7118
7121
  return e.rdf + "type";
7119
7122
  {
@@ -7121,7 +7124,7 @@ function Lu(t, e = En) {
7121
7124
  return r ? [r] + n : t;
7122
7125
  }
7123
7126
  }
7124
- function $u(t, e = En) {
7127
+ function $u(t, e = In) {
7125
7128
  let r = "";
7126
7129
  return Object.entries(e).forEach(([n, i]) => {
7127
7130
  t.startsWith(i) && (r = n + ":" + t.split(i)[1]);
@@ -7130,28 +7133,28 @@ function $u(t, e = En) {
7130
7133
  const Bu = (t) => {
7131
7134
  const e = new URL(t);
7132
7135
  return `${e.protocol}//${e.hostname}`;
7133
- }, Qu = (t) => new URL(t).pathname, Vu = (t, e) => {
7136
+ }, Hu = (t) => new URL(t).pathname, Qu = (t, e) => {
7134
7137
  var n, i;
7135
7138
  const r = (i = (n = e.identifiers) == null ? void 0 : n.find((a) => a.value)) == null ? void 0 : i.value;
7136
7139
  return r ? t + `/concept-hierarchy/${r}/narrowers` : "";
7137
- }, Ku = (t, e) => {
7140
+ }, Vu = (t, e) => {
7138
7141
  var l;
7139
7142
  const r = e ? Bu(e) : "", n = (l = t.identifiers) == null ? void 0 : l.find((u) => u.value), i = n ? n.value : "";
7140
7143
  return i ? r + `/concept-hierarchy/${i}/top-concepts` : "";
7141
- }, an = (t) => t.flatMap((e) => {
7144
+ }, un = (t) => t.flatMap((e) => {
7142
7145
  var r;
7143
7146
  if (e["@id"])
7144
7147
  return e["@id"];
7145
7148
  if (e["@list"] && e["@list"].length > 0) {
7146
7149
  const n = e["@list"][0];
7147
- return (n == null ? void 0 : n["@id"]) === _e.shaclUnion ? an(((r = e["@list"][1]) == null ? void 0 : r["@list"]) || []).filter(Boolean) : an(e["@list"]).flat();
7150
+ return (n == null ? void 0 : n["@id"]) === he.shaclUnion ? un(((r = e["@list"][1]) == null ? void 0 : r["@list"]) || []).filter(Boolean) : un(e["@list"]).flat();
7148
7151
  }
7149
7152
  return [];
7150
- }).filter((e) => !!e), Yu = (t) => t.reduce((e, r) => {
7151
- if (_e.shaclProperty in r)
7152
- for (const n of r[_e.shaclProperty]) {
7153
+ }).filter((e) => !!e), Ku = (t) => t.reduce((e, r) => {
7154
+ if (he.shaclProperty in r)
7155
+ for (const n of r[he.shaclProperty]) {
7153
7156
  const i = t.find((a) => a["@id"] === n["@id"]);
7154
- i && _e.shaclPath in i && (e[r["@id"]] = an(i[_e.shaclPath]).filter((a) => a !== _e.shaclAllPredicates));
7157
+ i && he.shaclPath in i && (e[r["@id"]] = un(i[he.shaclPath]).filter((a) => a !== he.shaclAllPredicates));
7155
7158
  }
7156
7159
  return e;
7157
7160
  }, {});
@@ -7185,11 +7188,11 @@ function Ws(t, e = "") {
7185
7188
  `, typeof l == "object" && l !== null && (r += Ws(l, e + (R ? " " : "│ ")));
7186
7189
  }), r;
7187
7190
  }
7188
- function Xu(t) {
7191
+ function Yu(t) {
7189
7192
  return t ? Ws(rr(t)) : "";
7190
7193
  }
7191
7194
  const { namedNode: Ft } = ft;
7192
- class Sn {
7195
+ class gr {
7193
7196
  constructor() {
7194
7197
  Ze(this, "store");
7195
7198
  // N3
@@ -7201,7 +7204,7 @@ class Sn {
7201
7204
  Ze(this, "baseUrl");
7202
7205
  Ze(this, "linkedLists");
7203
7206
  Ze(this, "lists");
7204
- this.store = new Se(), this.baseUrl = "", this.basePath = "", this.parser = new Mi(), this.prefixes = En, this.linkedLists = {}, this.lists = {};
7207
+ this.store = new Se(), this.baseUrl = "", this.basePath = "", this.parser = new Mi(), this.prefixes = In, this.linkedLists = {}, this.lists = {};
7205
7208
  }
7206
7209
  /**
7207
7210
  * Parses an RDF string in Turtle format into a store
@@ -7220,10 +7223,10 @@ class Sn {
7220
7223
  buildLists() {
7221
7224
  this.lists = {};
7222
7225
  const e = this.linkedLists;
7223
- this.store.getQuads(null, _e.shaclPath, null, null).forEach((r) => {
7226
+ this.store.getQuads(null, he.shaclPath, null, null).forEach((r) => {
7224
7227
  const n = r.object;
7225
7228
  if (n.termType === "BlankNode") {
7226
- const i = this.store.getQuads(n, _e.shaclUnion, null, null);
7229
+ const i = this.store.getQuads(n, he.shaclUnion, null, null);
7227
7230
  if (i.length > 0) {
7228
7231
  const a = i[0].object;
7229
7232
  if (a.termType === "BlankNode" && a.value in e) {
@@ -7237,21 +7240,28 @@ class Sn {
7237
7240
  }
7238
7241
  /** build sub linked lists */
7239
7242
  buildSubList(e) {
7243
+ var n;
7240
7244
  const r = [];
7241
- for (const n of e)
7242
- if (n.termType == "BlankNode") {
7243
- const i = n.value;
7244
- if (i in this.linkedLists) {
7245
- const a = this.buildSubList(this.linkedLists[i]);
7246
- if (a.length > 1) {
7247
- const l = r.find((u) => u.node.value == a[0].node.value);
7248
- l ? (l.list ?? (l.list = [])).push(...a.slice(1)) : r.push({ node: a[0].node, list: a.slice(1) });
7245
+ for (const i of e)
7246
+ if (i.termType == "BlankNode") {
7247
+ const a = i.value;
7248
+ if (a in this.linkedLists) {
7249
+ const l = this.buildSubList(this.linkedLists[a]);
7250
+ if (l.length > 1) {
7251
+ const u = r.find((p) => p.node.value == l[0].node.value);
7252
+ u ? (u.list ?? (u.list = [])).push(...l.slice(1)) : r.push({ node: l[0].node, list: l.slice(1) });
7249
7253
  } else
7250
- r.push(...a);
7254
+ r.push(...l);
7255
+ } else {
7256
+ const l = (n = this.store.getObjects(i, he.shaclPathAlias, null)) == null ? void 0 : n[0];
7257
+ if (l) {
7258
+ const u = this.toPrezTerm(l);
7259
+ r.push({ node: u, list: [] });
7260
+ }
7251
7261
  }
7252
- } else if (n.termType == "NamedNode" && n.value != _e.shaclUnion) {
7253
- const i = this.toPrezTerm(n);
7254
- r.push({ node: i, list: [] });
7262
+ } else if (i.termType == "NamedNode" && i.value != he.shaclUnion) {
7263
+ const a = this.toPrezTerm(i);
7264
+ r.push({ node: a, list: [] });
7255
7265
  }
7256
7266
  return r;
7257
7267
  }
@@ -7330,7 +7340,7 @@ class Sn {
7330
7340
  i.length > 0 && (r.links = i.map((_) => ({ value: _.value, parents: this.getParents(_.value) })));
7331
7341
  const a = this.getObjects(e.value, ce.members);
7332
7342
  a.length > 0 && (r.members = { value: a[0].value, parents: this.getParents(a[0].value) });
7333
- const l = this.getObjects(e.value, _e.a);
7343
+ const l = this.getObjects(e.value, he.a);
7334
7344
  return l.length > 0 && (r.rdfTypes = l.map((_) => this.toPrezTerm(_))), r;
7335
7345
  case "Literal":
7336
7346
  const u = Ln(e.value);
@@ -7351,7 +7361,7 @@ class Sn {
7351
7361
  toPrezFocusNode(e) {
7352
7362
  var n, i, a, l, u;
7353
7363
  const r = this.toPrezTerm(e);
7354
- return r.properties = this.getProperties(e, { excludePrefix: ce.namespace }), r.systemProperties = this.getProperties(e, { includePrefix: ce.namespace }), (n = r.rdfTypes) != null && n.map((p) => p.value).includes(_e.skosConcept) && (r.hasChildren = ((u = (l = (a = (i = r.systemProperties) == null ? void 0 : i[ce.hasChildren]) == null ? void 0 : a.objects) == null ? void 0 : l[0]) == null ? void 0 : u.value) == "true"), r;
7364
+ return r.properties = this.getProperties(e, { excludePrefix: ce.namespace }), r.systemProperties = this.getProperties(e, { includePrefix: ce.namespace }), (n = r.rdfTypes) != null && n.map((p) => p.value).includes(he.skosConcept) && (r.hasChildren = ((u = (l = (a = (i = r.systemProperties) == null ? void 0 : i[ce.hasChildren]) == null ? void 0 : a.objects) == null ? void 0 : l[0]) == null ? void 0 : u.value) == "true"), r;
7355
7365
  }
7356
7366
  /**
7357
7367
  * Gets an array of N3 `Quad_Objects` from a `Store` by providing a predicate or an array of predicates
@@ -7456,7 +7466,7 @@ class Sn {
7456
7466
  const e = this.getByPrezId();
7457
7467
  if (e.length == 0) throw new Error("Unable to find item");
7458
7468
  const r = this.toPrezFocusNode(e[0]);
7459
- if ((n = r.rdfTypes) != null && n.map((i) => i.value).includes(_e.skosConcept)) {
7469
+ if ((n = r.rdfTypes) != null && n.map((i) => i.value).includes(he.skosConcept)) {
7460
7470
  const i = this.getConcepts(e[0]);
7461
7471
  return {
7462
7472
  ...r,
@@ -7485,7 +7495,7 @@ class Sn {
7485
7495
  * Returns search results
7486
7496
  */
7487
7497
  search() {
7488
- return this.getSubjects(_e.a, ce.searchResult).map((n) => ({
7498
+ return this.getSubjects(he.a, ce.searchResult).map((n) => ({
7489
7499
  hash: n.value.split("urn:hash:").slice(-1)[0],
7490
7500
  weight: Number(this.getObjects(n.value, ce.searchResultWeight)[0].value),
7491
7501
  predicate: this.toPrezTerm(this.getObjects(n.value, ce.searchResultPredicate)[0]),
@@ -7505,19 +7515,19 @@ class Sn {
7505
7515
  if (r.subject.termType == "BlankNode") {
7506
7516
  const I = $n(r.subject.value);
7507
7517
  I.properties = this.getProperties(r.subject);
7508
- const S = Number((a = (i = (n = I.properties) == null ? void 0 : n[ce.facetCount]) == null ? void 0 : i.objects) == null ? void 0 : a[0].value) || 0, R = (p = (u = (l = I.properties) == null ? void 0 : l[ce.facetName]) == null ? void 0 : u.objects) == null ? void 0 : p[0], m = (x = (y = (_ = I.properties) == null ? void 0 : _[ce.facetValue]) == null ? void 0 : y.objects) == null ? void 0 : x[0], v = R, $ = e.find((B) => B.facetName.value == (v == null ? void 0 : v.value));
7509
- if (S > 0 && v !== void 0 && m !== void 0) {
7510
- const B = this.toPrezTerm(m);
7518
+ const S = Number((a = (i = (n = I.properties) == null ? void 0 : n[ce.facetCount]) == null ? void 0 : i.objects) == null ? void 0 : a[0].value) || 0, R = (p = (u = (l = I.properties) == null ? void 0 : l[ce.facetName]) == null ? void 0 : u.objects) == null ? void 0 : p[0], w = (x = (y = (_ = I.properties) == null ? void 0 : _[ce.facetValue]) == null ? void 0 : y.objects) == null ? void 0 : x[0], A = R, $ = e.find((B) => B.facetName.value == (A == null ? void 0 : A.value));
7519
+ if (S > 0 && A !== void 0 && w !== void 0) {
7520
+ const B = this.toPrezTerm(w);
7511
7521
  if (B.termType === "Literal" || B.termType === "NamedNode") {
7512
- const A = {
7522
+ const T = {
7513
7523
  // Now prezTerm is guaranteed to be PrezLiteral | PrezNode
7514
7524
  term: B,
7515
7525
  count: S
7516
7526
  };
7517
- $ ? $.facetValues.push(A) : e.push({
7518
- facetName: v,
7527
+ $ ? $.facetValues.push(T) : e.push({
7528
+ facetName: A,
7519
7529
  // Asserting it's a PrezNode based on usage
7520
- facetValues: [A]
7530
+ facetValues: [T]
7521
7531
  // Type matches PrezFacetValue
7522
7532
  });
7523
7533
  }
@@ -7556,7 +7566,7 @@ function ku(t) {
7556
7566
  e[i.format].mediatypes.map((a) => a.mediatype).includes(i.type) || e[i.format].mediatypes.push({ title: "", mediatype: i.type, default: !1 });
7557
7567
  }), Object.values(e);
7558
7568
  }
7559
- async function In(t) {
7569
+ async function wr(t) {
7560
7570
  const e = await fetch(t, {
7561
7571
  method: "GET",
7562
7572
  headers: {
@@ -7568,8 +7578,8 @@ async function In(t) {
7568
7578
  const r = e.headers.get("link") || e.headers.get("Link"), n = r ? ku(r) : [];
7569
7579
  return { data: await e.text(), profiles: n };
7570
7580
  }
7571
- async function Cu(t, e) {
7572
- const r = t + e, n = new URL(r).pathname, { data: i, profiles: a } = await In(r), l = new Sn();
7581
+ async function Xu(t, e) {
7582
+ const r = t + e, n = new URL(r).pathname, { data: i, profiles: a } = await wr(r), l = new gr();
7573
7583
  return l.setBaseUrl(t), l.load(i), {
7574
7584
  type: "list",
7575
7585
  data: l.getList(),
@@ -7581,7 +7591,7 @@ async function Cu(t, e) {
7581
7591
  };
7582
7592
  }
7583
7593
  async function Zu(t, e) {
7584
- const r = t + e, n = new URL(r).pathname, { data: i, profiles: a } = await In(r), l = new Sn();
7594
+ const r = t + e, n = new URL(r).pathname, { data: i, profiles: a } = await wr(r), l = new gr();
7585
7595
  return l.setBaseUrl(t), l.load(i), {
7586
7596
  type: "item",
7587
7597
  data: l.getItem(),
@@ -7592,7 +7602,7 @@ async function Zu(t, e) {
7592
7602
  };
7593
7603
  }
7594
7604
  async function Ju(t, e) {
7595
- const r = t + e, n = new URL(r).pathname, { data: i, profiles: a } = await In(r), l = new Sn();
7605
+ const r = t + e, n = new URL(r).pathname, { data: i, profiles: a } = await wr(r), l = new gr();
7596
7606
  return l.setBaseUrl(t), l.load(i), {
7597
7607
  type: "search",
7598
7608
  data: l.search(),
@@ -7604,23 +7614,37 @@ async function Ju(t, e) {
7604
7614
  };
7605
7615
  }
7606
7616
  async function ef(t) {
7607
- var i, a;
7608
- const e = "/profiles?page=1&limit=999&_mediatype=application/anot%2Bturtle", { data: r } = await Cu(t, e), n = {};
7609
- for (const l of r)
7610
- if (n[l.value] = [], l.properties && ((a = (i = l.properties) == null ? void 0 : i[_e.shaclProperty]) != null && a.objects)) {
7611
- const u = l.properties[_e.shaclProperty].objects;
7612
- for (const p of u) {
7613
- const _ = p;
7614
- if (_.properties && _.properties[_e.shaclPath])
7615
- for (const y of _.properties[_e.shaclPath].objects) {
7616
- const x = y.list;
7617
- x && (n[l.value] = x);
7617
+ var l, u, p, _, y, x;
7618
+ const e = t + "/profiles?page=1&limit=999&_mediatype=application/anot%2Bturtle", { data: r } = await wr(e), n = new gr();
7619
+ n.setBaseUrl(t), n.load(r);
7620
+ const i = n.getList(), a = {};
7621
+ for (const I of i) {
7622
+ let S = [];
7623
+ if (I.properties && ((u = (l = I.properties) == null ? void 0 : l[he.shaclProperty]) != null && u.objects)) {
7624
+ const R = I.properties[he.shaclProperty].objects;
7625
+ for (const w of R) {
7626
+ const A = w;
7627
+ if (A.properties && A.properties[he.shaclPath])
7628
+ for (const $ of A.properties[he.shaclPath].objects) {
7629
+ const B = $.list;
7630
+ B && (S = B);
7618
7631
  }
7619
7632
  }
7620
7633
  }
7621
- return n;
7634
+ (x = (y = (_ = (p = I.properties) == null ? void 0 : p[he.dctermsIdentifier]) == null ? void 0 : _.objects) == null ? void 0 : y.filter(
7635
+ (R) => {
7636
+ var w;
7637
+ return (R == null ? void 0 : R.termType) == "Literal" && ((w = R == null ? void 0 : R.datatype) == null ? void 0 : w.value) == he.w3token;
7638
+ }
7639
+ )) == null || x.map((R) => R.value).forEach((R) => {
7640
+ a[R] = S, a[I.value] = S;
7641
+ const w = n.fromIri(I.value);
7642
+ w != I.value && (a[w] = S);
7643
+ });
7644
+ }
7645
+ return a;
7622
7646
  }
7623
- function Ou(t, e) {
7647
+ function Cu(t, e) {
7624
7648
  const r = {}, n = Object.keys(t), i = [
7625
7649
  ...(e || []).filter((a) => n.includes(a.node.value)).map((a) => a.node.value),
7626
7650
  // add fields that are in the list
@@ -7632,33 +7656,33 @@ function Ou(t, e) {
7632
7656
  return r;
7633
7657
  }
7634
7658
  function tf(t, e) {
7635
- t.data.properties = Ou(t.data.properties || {}, e);
7659
+ t.data.properties = Cu(t.data.properties || {}, e);
7636
7660
  }
7637
7661
  export {
7638
- Hu as ANNOTATION_PREDICATES,
7639
- En as DEFAULT_PREFIXES,
7662
+ qu as ANNOTATION_PREDICATES,
7663
+ In as DEFAULT_PREFIXES,
7640
7664
  ce as PREZ_PREDICATES,
7641
- Sn as RDFStore,
7642
- _e as SYSTEM_PREDICATES,
7643
- In as apiGet,
7665
+ gr as RDFStore,
7666
+ he as SYSTEM_PREDICATES,
7667
+ wr as apiGet,
7644
7668
  tf as applyProfileToItem,
7645
7669
  $n as bnode,
7646
- Yu as buildProfiles,
7670
+ Ku as buildProfiles,
7647
7671
  $u as defaultFromIri,
7648
7672
  Lu as defaultToIri,
7649
- Xu as dumpNodeArray,
7673
+ Yu as dumpNodeArray,
7650
7674
  Bu as getBaseUrl,
7651
7675
  Zu as getItem,
7652
- Cu as getList,
7653
- Vu as getNarrowersUrl,
7676
+ Xu as getList,
7677
+ Qu as getNarrowersUrl,
7654
7678
  ef as getProfiles,
7655
- Ku as getTopConceptsUrl,
7656
- Qu as getUrlPath,
7657
- Du as isTypePrezTerm,
7679
+ Vu as getTopConceptsUrl,
7680
+ Hu as getUrlPath,
7681
+ Mu as isTypePrezTerm,
7658
7682
  Ln as literal,
7659
7683
  Ks as node,
7660
7684
  Ws as nodeArrayToTree,
7661
- an as processShaclPath,
7685
+ un as processShaclPath,
7662
7686
  Ju as search,
7663
7687
  rr as simplifyNodeArray
7664
7688
  };