@aikaara/chat-sdk 0.7.0 → 0.7.1

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.
@@ -445,9 +445,9 @@ var Hi = Object.defineProperty, vl = Object.getOwnPropertyDescriptor, wl = Objec
445
445
  }, Sl = (u, e, t, i) => {
446
446
  if (e && typeof e == "object" || typeof e == "function") for (let l of wl(e)) !_l.call(u, l) && l !== t && Hi(u, l, { get: () => e[l], enumerable: !(i = vl(e, l)) || i.enumerable });
447
447
  return u;
448
- }, Oe = (u) => Sl(Hi({}, "__esModule", { value: !0 }), u), le = He(() => {
448
+ }, Ce = (u) => Sl(Hi({}, "__esModule", { value: !0 }), u), le = He(() => {
449
449
  }), Pe = {};
450
- jt(Pe, { _debugEnd: () => xn, _debugProcess: () => kn, _events: () => Fn, _eventsCount: () => $n, _exiting: () => cn, _fatalExceptions: () => _n, _getActiveHandles: () => Cs, _getActiveRequests: () => Ts, _kill: () => dn, _linkedBinding: () => As, _maxListeners: () => Dn, _preload_modules: () => Un, _rawDebug: () => an, _startProfilerIdleNotifier: () => An, _stopProfilerIdleNotifier: () => In, _tickCallback: () => En, abort: () => Pn, addListener: () => Wn, allowedNodeEnvironmentFlags: () => vn, arch: () => Vr, argv: () => Yr, argv0: () => Nn, assert: () => Os, binding: () => en, browser: () => sn, chdir: () => nn, config: () => hn, cpuUsage: () => Wt, cwd: () => rn, debugPort: () => Ln, default: () => Vi, dlopen: () => Is, domain: () => un, emit: () => Kn, emitWarning: () => Zr, env: () => Gr, execArgv: () => Qr, execPath: () => jn, exit: () => bn, features: () => wn, hasUncaughtExceptionCaptureCallback: () => Ps, hrtime: () => rr, kill: () => mn, listeners: () => Rs, memoryUsage: () => gn, moduleLoadList: () => ln, nextTick: () => ks, off: () => Hn, on: () => rt, once: () => qn, openStdin: () => yn, pid: () => Mn, platform: () => Kr, ppid: () => Rn, prependListener: () => Gn, prependOnceListener: () => Yn, reallyExit: () => fn, release: () => on, removeAllListeners: () => Vn, removeListener: () => zn, resourceUsage: () => pn, setSourceMapsEnabled: () => Bn, setUncaughtExceptionCaptureCallback: () => Sn, stderr: () => Cn, stdin: () => On, stdout: () => Tn, title: () => zr, umask: () => tn, uptime: () => Ms, version: () => Jr, versions: () => Xr });
450
+ jt(Pe, { _debugEnd: () => xn, _debugProcess: () => kn, _events: () => Fn, _eventsCount: () => $n, _exiting: () => cn, _fatalExceptions: () => _n, _getActiveHandles: () => Os, _getActiveRequests: () => Ts, _kill: () => dn, _linkedBinding: () => As, _maxListeners: () => Dn, _preload_modules: () => Un, _rawDebug: () => an, _startProfilerIdleNotifier: () => An, _stopProfilerIdleNotifier: () => In, _tickCallback: () => En, abort: () => Pn, addListener: () => Wn, allowedNodeEnvironmentFlags: () => vn, arch: () => Vr, argv: () => Yr, argv0: () => Nn, assert: () => Cs, binding: () => en, browser: () => sn, chdir: () => nn, config: () => hn, cpuUsage: () => Wt, cwd: () => rn, debugPort: () => Ln, default: () => Vi, dlopen: () => Is, domain: () => un, emit: () => Kn, emitWarning: () => Zr, env: () => Gr, execArgv: () => Qr, execPath: () => jn, exit: () => bn, features: () => wn, hasUncaughtExceptionCaptureCallback: () => Ps, hrtime: () => rr, kill: () => mn, listeners: () => Rs, memoryUsage: () => gn, moduleLoadList: () => ln, nextTick: () => ks, off: () => Hn, on: () => rt, once: () => qn, openStdin: () => yn, pid: () => Mn, platform: () => Kr, ppid: () => Rn, prependListener: () => Gn, prependOnceListener: () => Yn, reallyExit: () => fn, release: () => on, removeAllListeners: () => Vn, removeListener: () => zn, resourceUsage: () => pn, setSourceMapsEnabled: () => Bn, setUncaughtExceptionCaptureCallback: () => Sn, stderr: () => On, stdin: () => Cn, stdout: () => Tn, title: () => zr, umask: () => tn, uptime: () => Ms, version: () => Jr, versions: () => Xr });
451
451
  function zi(u) {
452
452
  throw new Error("Node.js process " + u + " is not supported by JSPM core outside of Node.js");
453
453
  }
@@ -484,10 +484,10 @@ function Is(u) {
484
484
  function Ts() {
485
485
  return [];
486
486
  }
487
- function Cs() {
487
+ function Os() {
488
488
  return [];
489
489
  }
490
- function Os(u, e) {
490
+ function Cs(u, e) {
491
491
  if (!u) throw new Error(e || "assertion error");
492
492
  }
493
493
  function Ps() {
@@ -506,7 +506,7 @@ function rt() {
506
506
  function Rs(u) {
507
507
  return [];
508
508
  }
509
- var Ze, St, wt, Vt, zr, Vr, Kr, Gr, Yr, Qr, Jr, Xr, Zr, en, tn, rn, nn, on, sn, an, ln, un, cn, hn, fn, dn, Wt, pn, gn, mn, bn, yn, vn, wn, _n, Sn, En, kn, xn, An, In, Tn, Cn, On, Pn, Mn, Rn, jn, Ln, Nn, Un, Bn, it, Ur, nr, Dn, Fn, $n, Wn, qn, Hn, zn, Vn, Kn, Gn, Yn, Vi, kl = He(() => {
509
+ var Ze, St, wt, Vt, zr, Vr, Kr, Gr, Yr, Qr, Jr, Xr, Zr, en, tn, rn, nn, on, sn, an, ln, un, cn, hn, fn, dn, Wt, pn, gn, mn, bn, yn, vn, wn, _n, Sn, En, kn, xn, An, In, Tn, On, Cn, Pn, Mn, Rn, jn, Ln, Nn, Un, Bn, it, Ur, nr, Dn, Fn, $n, Wn, qn, Hn, zn, Vn, Kn, Gn, Yn, Vi, kl = He(() => {
510
510
  le(), ce(), ue(), Ze = [], St = !1, Vt = -1, xs.prototype.run = function() {
511
511
  this.fun.apply(null, this.array);
512
512
  }, zr = "browser", Vr = "x64", Kr = "browser", Gr = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, Yr = ["/usr/bin/node"], Qr = [], Jr = "v16.8.0", Xr = {}, Zr = function(u, e) {
@@ -520,16 +520,16 @@ var Ze, St, wt, Vt, zr, Vr, Kr, Gr, Yr, Qr, Jr, Xr, Zr, en, tn, rn, nn, on, sn,
520
520
  }, nn = function(u) {
521
521
  }, on = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, sn = !0, an = Be, ln = [], un = {}, cn = !1, hn = {}, fn = Be, dn = Be, Wt = function() {
522
522
  return {};
523
- }, pn = Wt, gn = Wt, mn = Be, bn = Be, yn = Be, vn = {}, wn = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, _n = Be, Sn = Be, En = Be, kn = Be, xn = Be, An = Be, In = Be, Tn = void 0, Cn = void 0, On = void 0, Pn = Be, Mn = 2, Rn = 1, jn = "/bin/usr/node", Ln = 9229, Nn = "node", Un = [], Bn = Be, it = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, it.now === void 0 && (Ur = Date.now(), it.timing && it.timing.navigationStart && (Ur = it.timing.navigationStart), it.now = () => Date.now() - Ur), nr = 1e9, rr.bigint = function(u) {
523
+ }, pn = Wt, gn = Wt, mn = Be, bn = Be, yn = Be, vn = {}, wn = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, _n = Be, Sn = Be, En = Be, kn = Be, xn = Be, An = Be, In = Be, Tn = void 0, On = void 0, Cn = void 0, Pn = Be, Mn = 2, Rn = 1, jn = "/bin/usr/node", Ln = 9229, Nn = "node", Un = [], Bn = Be, it = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, it.now === void 0 && (Ur = Date.now(), it.timing && it.timing.navigationStart && (Ur = it.timing.navigationStart), it.now = () => Date.now() - Ur), nr = 1e9, rr.bigint = function(u) {
524
524
  var e = rr(u);
525
525
  return typeof BigInt > "u" ? e[0] * nr + e[1] : BigInt(e[0] * nr) + BigInt(e[1]);
526
- }, Dn = 10, Fn = {}, $n = 0, Wn = rt, qn = rt, Hn = rt, zn = rt, Vn = rt, Kn = Be, Gn = rt, Yn = rt, Vi = { version: Jr, versions: Xr, arch: Vr, platform: Kr, browser: sn, release: on, _rawDebug: an, moduleLoadList: ln, binding: en, _linkedBinding: As, _events: Fn, _eventsCount: $n, _maxListeners: Dn, on: rt, addListener: Wn, once: qn, off: Hn, removeListener: zn, removeAllListeners: Vn, emit: Kn, prependListener: Gn, prependOnceListener: Yn, listeners: Rs, domain: un, _exiting: cn, config: hn, dlopen: Is, uptime: Ms, _getActiveRequests: Ts, _getActiveHandles: Cs, reallyExit: fn, _kill: dn, cpuUsage: Wt, resourceUsage: pn, memoryUsage: gn, kill: mn, exit: bn, openStdin: yn, allowedNodeEnvironmentFlags: vn, assert: Os, features: wn, _fatalExceptions: _n, setUncaughtExceptionCaptureCallback: Sn, hasUncaughtExceptionCaptureCallback: Ps, emitWarning: Zr, nextTick: ks, _tickCallback: En, _debugProcess: kn, _debugEnd: xn, _startProfilerIdleNotifier: An, _stopProfilerIdleNotifier: In, stdout: Tn, stdin: On, stderr: Cn, abort: Pn, umask: tn, chdir: nn, cwd: rn, env: Gr, title: zr, argv: Yr, execArgv: Qr, pid: Mn, ppid: Rn, execPath: jn, debugPort: Ln, hrtime: rr, argv0: Nn, _preload_modules: Un, setSourceMapsEnabled: Bn };
526
+ }, Dn = 10, Fn = {}, $n = 0, Wn = rt, qn = rt, Hn = rt, zn = rt, Vn = rt, Kn = Be, Gn = rt, Yn = rt, Vi = { version: Jr, versions: Xr, arch: Vr, platform: Kr, browser: sn, release: on, _rawDebug: an, moduleLoadList: ln, binding: en, _linkedBinding: As, _events: Fn, _eventsCount: $n, _maxListeners: Dn, on: rt, addListener: Wn, once: qn, off: Hn, removeListener: zn, removeAllListeners: Vn, emit: Kn, prependListener: Gn, prependOnceListener: Yn, listeners: Rs, domain: un, _exiting: cn, config: hn, dlopen: Is, uptime: Ms, _getActiveRequests: Ts, _getActiveHandles: Os, reallyExit: fn, _kill: dn, cpuUsage: Wt, resourceUsage: pn, memoryUsage: gn, kill: mn, exit: bn, openStdin: yn, allowedNodeEnvironmentFlags: vn, assert: Cs, features: wn, _fatalExceptions: _n, setUncaughtExceptionCaptureCallback: Sn, hasUncaughtExceptionCaptureCallback: Ps, emitWarning: Zr, nextTick: ks, _tickCallback: En, _debugProcess: kn, _debugEnd: xn, _startProfilerIdleNotifier: An, _stopProfilerIdleNotifier: In, stdout: Tn, stdin: Cn, stderr: On, abort: Pn, umask: tn, chdir: nn, cwd: rn, env: Gr, title: zr, argv: Yr, execArgv: Qr, pid: Mn, ppid: Rn, execPath: jn, debugPort: Ln, hrtime: rr, argv0: Nn, _preload_modules: Un, setSourceMapsEnabled: Bn };
527
527
  }), ue = He(() => {
528
528
  kl();
529
529
  });
530
530
  function xl() {
531
- if (Qn) return Ct;
532
- Qn = !0, Ct.byteLength = s, Ct.toByteArray = a, Ct.fromByteArray = p;
531
+ if (Qn) return Ot;
532
+ Qn = !0, Ot.byteLength = s, Ot.toByteArray = a, Ot.fromByteArray = p;
533
533
  for (var u = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", l = 0, r = i.length; l < r; ++l) u[l] = i[l], e[i.charCodeAt(l)] = l;
534
534
  e[45] = 62, e[95] = 63;
535
535
  function n(b) {
@@ -563,7 +563,7 @@ function xl() {
563
563
  for (var f, m = b.length, y = m % 3, S = [], g = 16383, _ = 0, x = m - y; _ < x; _ += g) S.push(d(b, _, _ + g > x ? x : _ + g));
564
564
  return y === 1 ? (f = b[m - 1], S.push(u[f >> 2] + u[f << 4 & 63] + "==")) : y === 2 && (f = (b[m - 2] << 8) + b[m - 1], S.push(u[f >> 10] + u[f >> 4 & 63] + u[f << 2 & 63] + "=")), S.join("");
565
565
  }
566
- return Ct;
566
+ return Ot;
567
567
  }
568
568
  function Al() {
569
569
  return Jn ? qt : (Jn = !0, qt.read = function(u, e, t, i, l) {
@@ -895,7 +895,7 @@ function Il() {
895
895
  function M(h, w, A, U) {
896
896
  return ye(ee(w), h, A, U);
897
897
  }
898
- function O(h, w, A, U) {
898
+ function C(h, w, A, U) {
899
899
  return ye(de(w), h, A, U);
900
900
  }
901
901
  function B(h, w, A, U) {
@@ -921,7 +921,7 @@ function Il() {
921
921
  case "binary":
922
922
  return M(this, h, w, A);
923
923
  case "base64":
924
- return O(this, h, w, A);
924
+ return C(this, h, w, A);
925
925
  case "ucs2":
926
926
  case "ucs-2":
927
927
  case "utf16le":
@@ -1341,8 +1341,8 @@ function Il() {
1341
1341
  }
1342
1342
  return dt;
1343
1343
  }
1344
- var Ct, Qn, qt, Jn, dt, Xn, Tl = He(() => {
1345
- le(), ce(), ue(), Ct = {}, Qn = !1, qt = {}, Jn = !1, dt = {}, Xn = !1;
1344
+ var Ot, Qn, qt, Jn, dt, Xn, Tl = He(() => {
1345
+ le(), ce(), ue(), Ot = {}, Qn = !1, qt = {}, Jn = !1, dt = {}, Xn = !1;
1346
1346
  }), Le = {};
1347
1347
  jt(Le, { Buffer: () => Ir, INSPECT_MAX_BYTES: () => js, default: () => nt, kMaxLength: () => Ls });
1348
1348
  var nt, Ir, js, Ls, Ne = He(() => {
@@ -1488,10 +1488,10 @@ var nt, Ir, js, Ls, Ne = He(() => {
1488
1488
  let v = "The ";
1489
1489
  g.endsWith(" argument") ? v += `${g} ` : v += `"${g}" ${g.includes(".") ? "property" : "argument"} `, v += "must be ";
1490
1490
  let k = [], E = [], I = [];
1491
- for (let O of _) d(typeof O == "string", "All expected entries have to be of type string"), s.includes(O) ? k.push(O.toLowerCase()) : o.test(O) ? E.push(O) : (d(O !== "object", 'The value "object" should be written as "Object"'), I.push(O));
1491
+ for (let C of _) d(typeof C == "string", "All expected entries have to be of type string"), s.includes(C) ? k.push(C.toLowerCase()) : o.test(C) ? E.push(C) : (d(C !== "object", 'The value "object" should be written as "Object"'), I.push(C));
1492
1492
  if (E.length > 0) {
1493
- let O = k.indexOf("object");
1494
- O !== -1 && (k.splice(k, O, 1), E.push("Object"));
1493
+ let C = k.indexOf("object");
1494
+ C !== -1 && (k.splice(k, C, 1), E.push("Object"));
1495
1495
  }
1496
1496
  if (k.length > 0) {
1497
1497
  switch (k.length) {
@@ -1502,8 +1502,8 @@ var nt, Ir, js, Ls, Ne = He(() => {
1502
1502
  v += `one of type ${k[0]} or ${k[1]}`;
1503
1503
  break;
1504
1504
  default: {
1505
- let O = k.pop();
1506
- v += `one of type ${k.join(", ")}, or ${O}`;
1505
+ let C = k.pop();
1506
+ v += `one of type ${k.join(", ")}, or ${C}`;
1507
1507
  }
1508
1508
  }
1509
1509
  (E.length > 0 || I.length > 0) && (v += " or ");
@@ -1517,8 +1517,8 @@ var nt, Ir, js, Ls, Ne = He(() => {
1517
1517
  v += `an instance of ${E[0]} or ${E[1]}`;
1518
1518
  break;
1519
1519
  default: {
1520
- let O = E.pop();
1521
- v += `an instance of ${E.join(", ")}, or ${O}`;
1520
+ let C = E.pop();
1521
+ v += `an instance of ${E.join(", ")}, or ${C}`;
1522
1522
  }
1523
1523
  }
1524
1524
  I.length > 0 && (v += " or ");
@@ -1533,8 +1533,8 @@ var nt, Ir, js, Ls, Ne = He(() => {
1533
1533
  v += `one of ${I[0]} or ${I[1]}`;
1534
1534
  break;
1535
1535
  default: {
1536
- let O = I.pop();
1537
- v += `one of ${I.join(", ")}, or ${O}`;
1536
+ let C = I.pop();
1537
+ v += `one of ${I.join(", ")}, or ${C}`;
1538
1538
  }
1539
1539
  }
1540
1540
  if (x == null) v += `. Received ${x}`;
@@ -1543,12 +1543,12 @@ var nt, Ir, js, Ls, Ne = He(() => {
1543
1543
  var M;
1544
1544
  if ((M = x.constructor) !== null && M !== void 0 && M.name) v += `. Received an instance of ${x.constructor.name}`;
1545
1545
  else {
1546
- let O = i(x, { depth: -1 });
1547
- v += `. Received ${O}`;
1546
+ let C = i(x, { depth: -1 });
1547
+ v += `. Received ${C}`;
1548
1548
  }
1549
1549
  } else {
1550
- let O = i(x, { colors: !1 });
1551
- O.length > 25 && (O = `${O.slice(0, 25)}...`), v += `. Received type ${typeof x} (${O})`;
1550
+ let C = i(x, { colors: !1 });
1551
+ C.length > 25 && (C = `${C.slice(0, 25)}...`), v += `. Received type ${typeof x} (${C})`;
1552
1552
  }
1553
1553
  return v;
1554
1554
  }, TypeError), f("ERR_INVALID_ARG_VALUE", (g, _, x = "is invalid") => {
@@ -1592,8 +1592,8 @@ var nt, Ir, js, Ls, Ne = He(() => {
1592
1592
  var { AbortController: t, AbortSignal: i } = typeof self < "u" ? self : typeof window < "u" ? window : void 0;
1593
1593
  e.exports = t, e.exports.AbortSignal = i, e.exports.default = t;
1594
1594
  }), mt = {};
1595
- jt(mt, { EventEmitter: () => Us, default: () => Ot, defaultMaxListeners: () => Bs, init: () => Ds, listenerCount: () => Fs, on: () => $s, once: () => Ws });
1596
- function Cl() {
1595
+ jt(mt, { EventEmitter: () => Us, default: () => Ct, defaultMaxListeners: () => Bs, init: () => Ds, listenerCount: () => Fs, on: () => $s, once: () => Ws });
1596
+ function Ol() {
1597
1597
  if (Zn) return Ht;
1598
1598
  Zn = !0;
1599
1599
  var u = typeof Reflect == "object" ? Reflect : null, e = u && typeof u.apply == "function" ? u.apply : function(x, v, k) {
@@ -1642,8 +1642,8 @@ function Cl() {
1642
1642
  if (E) {
1643
1643
  var M;
1644
1644
  if (v.length > 0 && (M = v[0]), M instanceof Error) throw M;
1645
- var O = new Error("Unhandled error." + (M ? " (" + M.message + ")" : ""));
1646
- throw O.context = M, O;
1645
+ var C = new Error("Unhandled error." + (M ? " (" + M.message + ")" : ""));
1646
+ throw C.context = M, C;
1647
1647
  }
1648
1648
  var B = I[x];
1649
1649
  if (B === void 0) return !1;
@@ -1652,12 +1652,12 @@ function Cl() {
1652
1652
  return !0;
1653
1653
  };
1654
1654
  function a(x, v, k, E) {
1655
- var I, M, O;
1656
- if (s(k), M = x._events, M === void 0 ? (M = x._events = /* @__PURE__ */ Object.create(null), x._eventsCount = 0) : (M.newListener !== void 0 && (x.emit("newListener", v, k.listener ? k.listener : k), M = x._events), O = M[v]), O === void 0) O = M[v] = k, ++x._eventsCount;
1657
- else if (typeof O == "function" ? O = M[v] = E ? [k, O] : [O, k] : E ? O.unshift(k) : O.push(k), I = o(x), I > 0 && O.length > I && !O.warned) {
1658
- O.warned = !0;
1659
- var B = new Error("Possible EventEmitter memory leak detected. " + O.length + " " + String(v) + " listeners added. Use emitter.setMaxListeners() to increase limit");
1660
- B.name = "MaxListenersExceededWarning", B.emitter = x, B.type = v, B.count = O.length, i(B);
1655
+ var I, M, C;
1656
+ if (s(k), M = x._events, M === void 0 ? (M = x._events = /* @__PURE__ */ Object.create(null), x._eventsCount = 0) : (M.newListener !== void 0 && (x.emit("newListener", v, k.listener ? k.listener : k), M = x._events), C = M[v]), C === void 0) C = M[v] = k, ++x._eventsCount;
1657
+ else if (typeof C == "function" ? C = M[v] = E ? [k, C] : [C, k] : E ? C.unshift(k) : C.push(k), I = o(x), I > 0 && C.length > I && !C.warned) {
1658
+ C.warned = !0;
1659
+ var B = new Error("Possible EventEmitter memory leak detected. " + C.length + " " + String(v) + " listeners added. Use emitter.setMaxListeners() to increase limit");
1660
+ B.name = "MaxListenersExceededWarning", B.emitter = x, B.type = v, B.count = C.length, i(B);
1661
1661
  }
1662
1662
  return x;
1663
1663
  }
@@ -1678,17 +1678,17 @@ function Cl() {
1678
1678
  }, r.prototype.prependOnceListener = function(x, v) {
1679
1679
  return s(v), this.prependListener(x, d(this, x, v)), this;
1680
1680
  }, r.prototype.removeListener = function(x, v) {
1681
- var k, E, I, M, O;
1681
+ var k, E, I, M, C;
1682
1682
  if (s(v), E = this._events, E === void 0) return this;
1683
1683
  if (k = E[x], k === void 0) return this;
1684
1684
  if (k === v || k.listener === v) --this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete E[x], E.removeListener && this.emit("removeListener", x, k.listener || v));
1685
1685
  else if (typeof k != "function") {
1686
1686
  for (I = -1, M = k.length - 1; M >= 0; M--) if (k[M] === v || k[M].listener === v) {
1687
- O = k[M].listener, I = M;
1687
+ C = k[M].listener, I = M;
1688
1688
  break;
1689
1689
  }
1690
1690
  if (I < 0) return this;
1691
- I === 0 ? k.shift() : m(k, I), k.length === 1 && (E[x] = k[0]), E.removeListener !== void 0 && this.emit("removeListener", x, O || v);
1691
+ I === 0 ? k.shift() : m(k, I), k.length === 1 && (E[x] = k[0]), E.removeListener !== void 0 && this.emit("removeListener", x, C || v);
1692
1692
  }
1693
1693
  return this;
1694
1694
  }, r.prototype.off = r.prototype.removeListener, r.prototype.removeAllListeners = function(x) {
@@ -1743,8 +1743,8 @@ function Cl() {
1743
1743
  }
1744
1744
  function S(x, v) {
1745
1745
  return new Promise(function(k, E) {
1746
- function I(O) {
1747
- x.removeListener(v, M), E(O);
1746
+ function I(C) {
1747
+ x.removeListener(v, M), E(C);
1748
1748
  }
1749
1749
  function M() {
1750
1750
  typeof x.removeListener == "function" && x.removeListener("error", I), k([].slice.call(arguments));
@@ -1764,8 +1764,8 @@ function Cl() {
1764
1764
  }
1765
1765
  return Ht;
1766
1766
  }
1767
- var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
1768
- le(), ce(), ue(), Ht = {}, Zn = !1, Ot = Cl(), Ot.once, Ot.once = function(u, e) {
1767
+ var Ht, Zn, Ct, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
1768
+ le(), ce(), ue(), Ht = {}, Zn = !1, Ct = Ol(), Ct.once, Ct.once = function(u, e) {
1769
1769
  return new Promise((t, i) => {
1770
1770
  function l(...n) {
1771
1771
  r !== void 0 && u.removeListener("error", r), t(n);
@@ -1775,7 +1775,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
1775
1775
  u.removeListener(name, l), i(n);
1776
1776
  }, u.once("error", r)), u.once(e, l);
1777
1777
  });
1778
- }, Ot.on = function(u, e) {
1778
+ }, Ct.on = function(u, e) {
1779
1779
  let t = [], i = [], l = null, r = !1, n = { async next() {
1780
1780
  let a = t.shift();
1781
1781
  if (a) return createIterResult(a, !1);
@@ -1803,10 +1803,10 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
1803
1803
  let c = i.shift();
1804
1804
  c ? c.reject(a) : l = a, n.return();
1805
1805
  }
1806
- }, { EventEmitter: Us, defaultMaxListeners: Bs, init: Ds, listenerCount: Fs, on: $s, once: Ws } = Ot;
1806
+ }, { EventEmitter: Us, defaultMaxListeners: Bs, init: Ds, listenerCount: Fs, on: $s, once: Ws } = Ct;
1807
1807
  }), qe = pe((u, e) => {
1808
1808
  le(), ce(), ue();
1809
- var t = (Ne(), Oe(Le)), { format: i, inspect: l } = Ns(), { codes: { ERR_INVALID_ARG_TYPE: r } } = We(), { kResistStopPropagation: n, AggregateError: s, SymbolDispose: o } = Re(), a = globalThis.AbortSignal || Gt().AbortSignal, c = globalThis.AbortController || Gt().AbortController, d = Object.getPrototypeOf(async function() {
1809
+ var t = (Ne(), Ce(Le)), { format: i, inspect: l } = Ns(), { codes: { ERR_INVALID_ARG_TYPE: r } } = We(), { kResistStopPropagation: n, AggregateError: s, SymbolDispose: o } = Re(), a = globalThis.AbortSignal || Gt().AbortSignal, c = globalThis.AbortController || Gt().AbortController, d = Object.getPrototypeOf(async function() {
1810
1810
  }).constructor, p = globalThis.Blob || t.Blob, b = typeof p < "u" ? function(y) {
1811
1811
  return y instanceof p;
1812
1812
  } : function(y) {
@@ -1839,7 +1839,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
1839
1839
  return ArrayBuffer.isView(y);
1840
1840
  } }, isBlob: b, deprecate(y, S) {
1841
1841
  return y;
1842
- }, addAbortListener: (kt(), Oe(mt)).addAbortListener || function(y, S) {
1842
+ }, addAbortListener: (kt(), Ce(mt)).addAbortListener || function(y, S) {
1843
1843
  if (y === void 0) throw new r("signal", "AbortSignal", y);
1844
1844
  f(y, "signal"), m(S, "listener");
1845
1845
  let g;
@@ -1861,7 +1861,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
1861
1861
  }), Yt = pe((u, e) => {
1862
1862
  le(), ce(), ue();
1863
1863
  var { ArrayIsArray: t, ArrayPrototypeIncludes: i, ArrayPrototypeJoin: l, ArrayPrototypeMap: r, NumberIsInteger: n, NumberIsNaN: s, NumberMAX_SAFE_INTEGER: o, NumberMIN_SAFE_INTEGER: a, NumberParseInt: c, ObjectPrototypeHasOwnProperty: d, RegExpPrototypeExec: p, String: b, StringPrototypeToUpperCase: f, StringPrototypeTrim: m } = Re(), { hideStackFrames: y, codes: { ERR_SOCKET_BAD_PORT: S, ERR_INVALID_ARG_TYPE: g, ERR_INVALID_ARG_VALUE: _, ERR_OUT_OF_RANGE: x, ERR_UNKNOWN_SIGNAL: v } } = We(), { normalizeEncoding: k } = qe(), { isAsyncFunction: E, isArrayBufferView: I } = qe().types, M = {};
1864
- function O(q) {
1864
+ function C(q) {
1865
1865
  return q === (q | 0);
1866
1866
  }
1867
1867
  function B(q) {
@@ -1979,7 +1979,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
1979
1979
  }
1980
1980
  throw new _("hints", q, 'must be an array or string of format "</styles.css>; rel=preload; as=style"');
1981
1981
  }
1982
- e.exports = { isInt32: O, isUint32: B, parseFileMode: D, validateArray: te, validateStringArray: we, validateBooleanArray: K, validateAbortSignalArray: L, validateBoolean: Z, validateBuffer: H, validateDictionary: be, validateEncoding: G, validateFunction: oe, validateInt32: ae, validateInteger: N, validateNumber: re, validateObject: J, validateOneOf: F, validatePlainFunction: R, validatePort: Q, validateSignalName: ne, validateString: V, validateUint32: Y, validateUndefined: $, validateUnion: ee, validateAbortSignal: me, validateLinkHeaderValue: ye };
1982
+ e.exports = { isInt32: C, isUint32: B, parseFileMode: D, validateArray: te, validateStringArray: we, validateBooleanArray: K, validateAbortSignalArray: L, validateBoolean: Z, validateBuffer: H, validateDictionary: be, validateEncoding: G, validateFunction: oe, validateInt32: ae, validateInteger: N, validateNumber: re, validateObject: J, validateOneOf: F, validatePlainFunction: R, validatePort: Q, validateSignalName: ne, validateString: V, validateUint32: Y, validateUndefined: $, validateUnion: ee, validateAbortSignal: me, validateLinkHeaderValue: ye };
1983
1983
  }), xt = pe((u, e) => {
1984
1984
  le(), ce(), ue();
1985
1985
  var t = e.exports = {}, i, l;
@@ -2126,14 +2126,14 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
2126
2126
  let be = P._readableState;
2127
2127
  return be != null && be.errored ? !1 : typeof be?.endEmitted != "boolean" ? null : !!(be.endEmitted || J === !1 && be.ended === !0 && be.length === 0);
2128
2128
  }
2129
- function O(P) {
2129
+ function C(P) {
2130
2130
  return P && P[s] != null ? P[s] : typeof P?.readable != "boolean" ? null : v(P) ? !1 : p(P) && P.readable && !M(P);
2131
2131
  }
2132
2132
  function B(P) {
2133
2133
  return P && P[o] != null ? P[o] : typeof P?.writable != "boolean" ? null : v(P) ? !1 : b(P) && P.writable && !k(P);
2134
2134
  }
2135
2135
  function T(P, J) {
2136
- return m(P) ? v(P) ? !0 : !(J?.readable !== !1 && O(P) || J?.writable !== !1 && B(P)) : null;
2136
+ return m(P) ? v(P) ? !0 : !(J?.readable !== !1 && C(P) || J?.writable !== !1 && B(P)) : null;
2137
2137
  }
2138
2138
  function W(P) {
2139
2139
  var J, be;
@@ -2172,10 +2172,10 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
2172
2172
  var J, be, te, we, K, L, ne, H, G, Q;
2173
2173
  return !!(P && ((J = (be = (te = (we = (K = (L = P[n]) !== null && L !== void 0 ? L : P.readableErrored) !== null && K !== void 0 ? K : P.writableErrored) !== null && we !== void 0 ? we : (ne = P._readableState) === null || ne === void 0 ? void 0 : ne.errorEmitted) !== null && te !== void 0 ? te : (H = P._writableState) === null || H === void 0 ? void 0 : H.errorEmitted) !== null && be !== void 0 ? be : (G = P._readableState) === null || G === void 0 ? void 0 : G.errored) !== null && J !== void 0 ? J : !((Q = P._writableState) === null || Q === void 0) && Q.errored));
2174
2174
  }
2175
- e.exports = { isDestroyed: v, kIsDestroyed: r, isDisturbed: F, kIsDisturbed: a, isErrored: Z, kIsErrored: n, isReadable: O, kIsReadable: s, kIsClosedPromise: c, kControllerErrorFunction: d, kIsWritable: o, isClosed: N, isDuplexNodeStream: f, isFinished: T, isIterable: x, isReadableNodeStream: p, isReadableStream: y, isReadableEnded: I, isReadableFinished: M, isReadableErrored: D, isNodeStream: m, isWebStream: _, isWritable: B, isWritableNodeStream: b, isWritableStream: S, isWritableEnded: k, isWritableFinished: E, isWritableErrored: W, isServerRequest: V, isServerResponse: Y, willEmitClose: re, isTransformStream: g };
2175
+ e.exports = { isDestroyed: v, kIsDestroyed: r, isDisturbed: F, kIsDisturbed: a, isErrored: Z, kIsErrored: n, isReadable: C, kIsReadable: s, kIsClosedPromise: c, kControllerErrorFunction: d, kIsWritable: o, isClosed: N, isDuplexNodeStream: f, isFinished: T, isIterable: x, isReadableNodeStream: p, isReadableStream: y, isReadableEnded: I, isReadableFinished: M, isReadableErrored: D, isNodeStream: m, isWebStream: _, isWritable: B, isWritableNodeStream: b, isWritableStream: S, isWritableEnded: k, isWritableFinished: E, isWritableErrored: W, isServerRequest: V, isServerResponse: Y, willEmitClose: re, isTransformStream: g };
2176
2176
  }), bt = pe((u, e) => {
2177
2177
  le(), ce(), ue();
2178
- var t = xt(), { AbortError: i, codes: l } = We(), { ERR_INVALID_ARG_TYPE: r, ERR_STREAM_PREMATURE_CLOSE: n } = l, { kEmptyObject: s, once: o } = qe(), { validateAbortSignal: a, validateFunction: c, validateObject: d, validateBoolean: p } = Yt(), { Promise: b, PromisePrototypeThen: f, SymbolDispose: m } = Re(), { isClosed: y, isReadable: S, isReadableNodeStream: g, isReadableStream: _, isReadableFinished: x, isReadableErrored: v, isWritable: k, isWritableNodeStream: E, isWritableStream: I, isWritableFinished: M, isWritableErrored: O, isNodeStream: B, willEmitClose: T, kIsClosedPromise: W } = lt(), D;
2178
+ var t = xt(), { AbortError: i, codes: l } = We(), { ERR_INVALID_ARG_TYPE: r, ERR_STREAM_PREMATURE_CLOSE: n } = l, { kEmptyObject: s, once: o } = qe(), { validateAbortSignal: a, validateFunction: c, validateObject: d, validateBoolean: p } = Yt(), { Promise: b, PromisePrototypeThen: f, SymbolDispose: m } = Re(), { isClosed: y, isReadable: S, isReadableNodeStream: g, isReadableStream: _, isReadableFinished: x, isReadableErrored: v, isWritable: k, isWritableNodeStream: E, isWritableStream: I, isWritableFinished: M, isWritableErrored: C, isNodeStream: B, willEmitClose: T, kIsClosedPromise: W } = lt(), D;
2179
2179
  function N(F) {
2180
2180
  return F.setHeader && typeof F.abort == "function";
2181
2181
  }
@@ -2195,14 +2195,14 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
2195
2195
  P.call(F, q);
2196
2196
  }, $ = y(F), ee = () => {
2197
2197
  $ = !0;
2198
- let q = O(F) || v(F);
2198
+ let q = C(F) || v(F);
2199
2199
  if (q && typeof q != "boolean") return P.call(F, q);
2200
2200
  if (te && !me && g(F, !0) && !x(F, !1)) return P.call(F, new n());
2201
2201
  if (we && !G && !M(F, !1)) return P.call(F, new n());
2202
2202
  P.call(F);
2203
2203
  }, fe = () => {
2204
2204
  $ = !0;
2205
- let q = O(F) || v(F);
2205
+ let q = C(F) || v(F);
2206
2206
  if (q && typeof q != "boolean") return P.call(F, q);
2207
2207
  P.call(F);
2208
2208
  }, de = () => {
@@ -2334,16 +2334,16 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
2334
2334
  function M(T) {
2335
2335
  T.emit("close");
2336
2336
  }
2337
- function O(T, W) {
2337
+ function C(T, W) {
2338
2338
  T.emit("error", W), t.nextTick(M, T);
2339
2339
  }
2340
2340
  function B(T, W) {
2341
- !T || o(T) || (!W && !a(T) && (W = new r()), c(T) ? (T.socket = null, T.destroy(W)) : I(T) ? T.abort() : I(T.req) ? T.req.abort() : typeof T.destroy == "function" ? T.destroy(W) : typeof T.close == "function" ? T.close() : W ? t.nextTick(O, T, W) : t.nextTick(M, T), T.destroyed || (T[s] = !0));
2341
+ !T || o(T) || (!W && !a(T) && (W = new r()), c(T) ? (T.socket = null, T.destroy(W)) : I(T) ? T.abort() : I(T.req) ? T.req.abort() : typeof T.destroy == "function" ? T.destroy(W) : typeof T.close == "function" ? T.close() : W ? t.nextTick(C, T, W) : t.nextTick(M, T), T.destroyed || (T[s] = !0));
2342
2342
  }
2343
2343
  e.exports = { construct: v, destroyer: B, destroy: f, undestroy: _, errorOrDestroy: x };
2344
2344
  }), Ki = pe((u, e) => {
2345
2345
  le(), ce(), ue();
2346
- var { ArrayIsArray: t, ObjectSetPrototypeOf: i } = Re(), { EventEmitter: l } = (kt(), Oe(mt));
2346
+ var { ArrayIsArray: t, ObjectSetPrototypeOf: i } = Re(), { EventEmitter: l } = (kt(), Ce(mt));
2347
2347
  function r(s) {
2348
2348
  l.call(this, s);
2349
2349
  }
@@ -2378,7 +2378,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
2378
2378
  !s._events || !s._events[o] ? s.on(o, a) : t(s._events[o]) ? s._events[o].unshift(a) : s._events[o] = [a, s._events[o]];
2379
2379
  }
2380
2380
  e.exports = { Stream: r, prependListener: n };
2381
- }), Or = pe((u, e) => {
2381
+ }), Cr = pe((u, e) => {
2382
2382
  le(), ce(), ue();
2383
2383
  var { SymbolDispose: t } = Re(), { AbortError: i, codes: l } = We(), { isNodeStream: r, isWebStream: n, kControllerErrorFunction: s } = lt(), o = bt(), { ERR_INVALID_ARG_TYPE: a } = l, c, d = (p, b) => {
2384
2384
  if (typeof p != "object" || !("aborted" in p)) throw new a(b, "AbortSignal", p);
@@ -2401,9 +2401,9 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
2401
2401
  }
2402
2402
  return b;
2403
2403
  };
2404
- }), Ol = pe((u, e) => {
2404
+ }), Cl = pe((u, e) => {
2405
2405
  le(), ce(), ue();
2406
- var { StringPrototypeSlice: t, SymbolIterator: i, TypedArrayPrototypeSet: l, Uint8Array: r } = Re(), { Buffer: n } = (Ne(), Oe(Le)), { inspect: s } = qe();
2406
+ var { StringPrototypeSlice: t, SymbolIterator: i, TypedArrayPrototypeSet: l, Uint8Array: r } = Re(), { Buffer: n } = (Ne(), Ce(Le)), { inspect: s } = qe();
2407
2407
  e.exports = class {
2408
2408
  constructor() {
2409
2409
  this.head = null, this.tail = null, this.length = 0;
@@ -2506,7 +2506,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
2506
2506
  e.exports = { getHighWaterMark: d, getDefaultHighWaterMark: a, setDefaultHighWaterMark: c };
2507
2507
  }), Pl = pe((u, e) => {
2508
2508
  le(), ce(), ue();
2509
- var t = (Ne(), Oe(Le)), i = t.Buffer;
2509
+ var t = (Ne(), Ce(Le)), i = t.Buffer;
2510
2510
  function l(n, s) {
2511
2511
  for (var o in n) s[o] = n[o];
2512
2512
  }
@@ -2676,7 +2676,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
2676
2676
  }
2677
2677
  }), qs = pe((u, e) => {
2678
2678
  le(), ce(), ue();
2679
- var t = xt(), { PromisePrototypeThen: i, SymbolAsyncIterator: l, SymbolIterator: r } = Re(), { Buffer: n } = (Ne(), Oe(Le)), { ERR_INVALID_ARG_TYPE: s, ERR_STREAM_NULL_VALUES: o } = We().codes;
2679
+ var t = xt(), { PromisePrototypeThen: i, SymbolAsyncIterator: l, SymbolIterator: r } = Re(), { Buffer: n } = (Ne(), Ce(Le)), { ERR_INVALID_ARG_TYPE: s, ERR_STREAM_NULL_VALUES: o } = We().codes;
2680
2680
  function a(c, d, p) {
2681
2681
  let b;
2682
2682
  if (typeof d == "string" || d instanceof n) return new c({ objectMode: !0, ...p, read() {
@@ -2727,88 +2727,88 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
2727
2727
  le(), ce(), ue();
2728
2728
  var t = xt(), { ArrayPrototypeIndexOf: i, NumberIsInteger: l, NumberIsNaN: r, NumberParseInt: n, ObjectDefineProperties: s, ObjectKeys: o, ObjectSetPrototypeOf: a, Promise: c, SafeSet: d, SymbolAsyncDispose: p, SymbolAsyncIterator: b, Symbol: f } = Re();
2729
2729
  e.exports = se, se.ReadableState = ve;
2730
- var { EventEmitter: m } = (kt(), Oe(mt)), { Stream: y, prependListener: S } = Ki(), { Buffer: g } = (Ne(), Oe(Le)), { addAbortSignal: _ } = Or(), x = bt(), v = qe().debuglog("stream", (C) => {
2731
- v = C;
2732
- }), k = Ol(), E = Lt(), { getHighWaterMark: I, getDefaultHighWaterMark: M } = Pr(), { aggregateTwoErrors: O, codes: { ERR_INVALID_ARG_TYPE: B, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: W, ERR_STREAM_PUSH_AFTER_EOF: D, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: N }, AbortError: ae } = We(), { validateObject: Y } = Yt(), V = f("kPaused"), { StringDecoder: re } = Ml(), F = qs();
2730
+ var { EventEmitter: m } = (kt(), Ce(mt)), { Stream: y, prependListener: S } = Ki(), { Buffer: g } = (Ne(), Ce(Le)), { addAbortSignal: _ } = Cr(), x = bt(), v = qe().debuglog("stream", (O) => {
2731
+ v = O;
2732
+ }), k = Cl(), E = Lt(), { getHighWaterMark: I, getDefaultHighWaterMark: M } = Pr(), { aggregateTwoErrors: C, codes: { ERR_INVALID_ARG_TYPE: B, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: W, ERR_STREAM_PUSH_AFTER_EOF: D, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: N }, AbortError: ae } = We(), { validateObject: Y } = Yt(), V = f("kPaused"), { StringDecoder: re } = Ml(), F = qs();
2733
2733
  a(se.prototype, y.prototype), a(se, y);
2734
2734
  var Z = () => {
2735
2735
  }, { errorOrDestroy: P } = E, J = 1, be = 2, te = 4, we = 8, K = 16, L = 32, ne = 64, H = 128, G = 256, Q = 512, me = 1024, oe = 2048, R = 4096, $ = 8192, ee = 16384, fe = 32768, de = 65536, ye = 1 << 17, q = 1 << 18;
2736
- function ge(C) {
2736
+ function ge(O) {
2737
2737
  return { enumerable: !1, get() {
2738
- return (this.state & C) !== 0;
2738
+ return (this.state & O) !== 0;
2739
2739
  }, set(j) {
2740
- j ? this.state |= C : this.state &= ~C;
2740
+ j ? this.state |= O : this.state &= ~O;
2741
2741
  } };
2742
2742
  }
2743
2743
  s(ve.prototype, { objectMode: ge(J), ended: ge(be), endEmitted: ge(te), reading: ge(we), constructed: ge(K), sync: ge(L), needReadable: ge(ne), emittedReadable: ge(H), readableListening: ge(G), resumeScheduled: ge(Q), errorEmitted: ge(me), emitClose: ge(oe), autoDestroy: ge(R), destroyed: ge($), closed: ge(ee), closeEmitted: ge(fe), multiAwaitDrain: ge(de), readingMore: ge(ye), dataEmitted: ge(q) });
2744
- function ve(C, j, _e) {
2745
- typeof _e != "boolean" && (_e = j instanceof st()), this.state = oe | R | K | L, C && C.objectMode && (this.state |= J), _e && C && C.readableObjectMode && (this.state |= J), this.highWaterMark = C ? I(this, C, "readableHighWaterMark", _e) : M(!1), this.buffer = new k(), this.length = 0, this.pipes = [], this.flowing = null, this[V] = null, C && C.emitClose === !1 && (this.state &= ~oe), C && C.autoDestroy === !1 && (this.state &= ~R), this.errored = null, this.defaultEncoding = C && C.defaultEncoding || "utf8", this.awaitDrainWriters = null, this.decoder = null, this.encoding = null, C && C.encoding && (this.decoder = new re(C.encoding), this.encoding = C.encoding);
2744
+ function ve(O, j, _e) {
2745
+ typeof _e != "boolean" && (_e = j instanceof st()), this.state = oe | R | K | L, O && O.objectMode && (this.state |= J), _e && O && O.readableObjectMode && (this.state |= J), this.highWaterMark = O ? I(this, O, "readableHighWaterMark", _e) : M(!1), this.buffer = new k(), this.length = 0, this.pipes = [], this.flowing = null, this[V] = null, O && O.emitClose === !1 && (this.state &= ~oe), O && O.autoDestroy === !1 && (this.state &= ~R), this.errored = null, this.defaultEncoding = O && O.defaultEncoding || "utf8", this.awaitDrainWriters = null, this.decoder = null, this.encoding = null, O && O.encoding && (this.decoder = new re(O.encoding), this.encoding = O.encoding);
2746
2746
  }
2747
- function se(C) {
2748
- if (!(this instanceof se)) return new se(C);
2747
+ function se(O) {
2748
+ if (!(this instanceof se)) return new se(O);
2749
2749
  let j = this instanceof st();
2750
- this._readableState = new ve(C, this, j), C && (typeof C.read == "function" && (this._read = C.read), typeof C.destroy == "function" && (this._destroy = C.destroy), typeof C.construct == "function" && (this._construct = C.construct), C.signal && !j && _(C.signal, this)), y.call(this, C), E.construct(this, () => {
2750
+ this._readableState = new ve(O, this, j), O && (typeof O.read == "function" && (this._read = O.read), typeof O.destroy == "function" && (this._destroy = O.destroy), typeof O.construct == "function" && (this._construct = O.construct), O.signal && !j && _(O.signal, this)), y.call(this, O), E.construct(this, () => {
2751
2751
  this._readableState.needReadable && z(this, this._readableState);
2752
2752
  });
2753
2753
  }
2754
- se.prototype.destroy = E.destroy, se.prototype._undestroy = E.undestroy, se.prototype._destroy = function(C, j) {
2755
- j(C);
2756
- }, se.prototype[m.captureRejectionSymbol] = function(C) {
2757
- this.destroy(C);
2754
+ se.prototype.destroy = E.destroy, se.prototype._undestroy = E.undestroy, se.prototype._destroy = function(O, j) {
2755
+ j(O);
2756
+ }, se.prototype[m.captureRejectionSymbol] = function(O) {
2757
+ this.destroy(O);
2758
2758
  }, se.prototype[p] = function() {
2759
- let C;
2760
- return this.destroyed || (C = this.readableEnded ? null : new ae(), this.destroy(C)), new c((j, _e) => x(this, (Ee) => Ee && Ee !== C ? _e(Ee) : j(null)));
2761
- }, se.prototype.push = function(C, j) {
2762
- return Te(this, C, j, !1);
2763
- }, se.prototype.unshift = function(C, j) {
2764
- return Te(this, C, j, !0);
2765
- };
2766
- function Te(C, j, _e, Ee) {
2759
+ let O;
2760
+ return this.destroyed || (O = this.readableEnded ? null : new ae(), this.destroy(O)), new c((j, _e) => x(this, (Ee) => Ee && Ee !== O ? _e(Ee) : j(null)));
2761
+ }, se.prototype.push = function(O, j) {
2762
+ return Te(this, O, j, !1);
2763
+ }, se.prototype.unshift = function(O, j) {
2764
+ return Te(this, O, j, !0);
2765
+ };
2766
+ function Te(O, j, _e, Ee) {
2767
2767
  v("readableAddChunk", j);
2768
- let ke = C._readableState, je;
2769
- if ((ke.state & J) === 0 && (typeof j == "string" ? (_e = _e || ke.defaultEncoding, ke.encoding !== _e && (Ee && ke.encoding ? j = g.from(j, _e).toString(ke.encoding) : (j = g.from(j, _e), _e = ""))) : j instanceof g ? _e = "" : y._isUint8Array(j) ? (j = y._uint8ArrayToBuffer(j), _e = "") : j != null && (je = new B("chunk", ["string", "Buffer", "Uint8Array"], j))), je) P(C, je);
2770
- else if (j === null) ke.state &= ~we, X(C, ke);
2771
- else if ((ke.state & J) !== 0 || j && j.length > 0) if (Ee) if ((ke.state & te) !== 0) P(C, new N());
2768
+ let ke = O._readableState, je;
2769
+ if ((ke.state & J) === 0 && (typeof j == "string" ? (_e = _e || ke.defaultEncoding, ke.encoding !== _e && (Ee && ke.encoding ? j = g.from(j, _e).toString(ke.encoding) : (j = g.from(j, _e), _e = ""))) : j instanceof g ? _e = "" : y._isUint8Array(j) ? (j = y._uint8ArrayToBuffer(j), _e = "") : j != null && (je = new B("chunk", ["string", "Buffer", "Uint8Array"], j))), je) P(O, je);
2770
+ else if (j === null) ke.state &= ~we, X(O, ke);
2771
+ else if ((ke.state & J) !== 0 || j && j.length > 0) if (Ee) if ((ke.state & te) !== 0) P(O, new N());
2772
2772
  else {
2773
2773
  if (ke.destroyed || ke.errored) return !1;
2774
- h(C, ke, j, !0);
2774
+ h(O, ke, j, !0);
2775
2775
  }
2776
- else if (ke.ended) P(C, new D());
2776
+ else if (ke.ended) P(O, new D());
2777
2777
  else {
2778
2778
  if (ke.destroyed || ke.errored) return !1;
2779
- ke.state &= ~we, ke.decoder && !_e ? (j = ke.decoder.write(j), ke.objectMode || j.length !== 0 ? h(C, ke, j, !1) : z(C, ke)) : h(C, ke, j, !1);
2779
+ ke.state &= ~we, ke.decoder && !_e ? (j = ke.decoder.write(j), ke.objectMode || j.length !== 0 ? h(O, ke, j, !1) : z(O, ke)) : h(O, ke, j, !1);
2780
2780
  }
2781
- else Ee || (ke.state &= ~we, z(C, ke));
2781
+ else Ee || (ke.state &= ~we, z(O, ke));
2782
2782
  return !ke.ended && (ke.length < ke.highWaterMark || ke.length === 0);
2783
2783
  }
2784
- function h(C, j, _e, Ee) {
2785
- j.flowing && j.length === 0 && !j.sync && C.listenerCount("data") > 0 ? ((j.state & de) !== 0 ? j.awaitDrainWriters.clear() : j.awaitDrainWriters = null, j.dataEmitted = !0, C.emit("data", _e)) : (j.length += j.objectMode ? 1 : _e.length, Ee ? j.buffer.unshift(_e) : j.buffer.push(_e), (j.state & ne) !== 0 && he(C)), z(C, j);
2784
+ function h(O, j, _e, Ee) {
2785
+ j.flowing && j.length === 0 && !j.sync && O.listenerCount("data") > 0 ? ((j.state & de) !== 0 ? j.awaitDrainWriters.clear() : j.awaitDrainWriters = null, j.dataEmitted = !0, O.emit("data", _e)) : (j.length += j.objectMode ? 1 : _e.length, Ee ? j.buffer.unshift(_e) : j.buffer.push(_e), (j.state & ne) !== 0 && he(O)), z(O, j);
2786
2786
  }
2787
2787
  se.prototype.isPaused = function() {
2788
- let C = this._readableState;
2789
- return C[V] === !0 || C.flowing === !1;
2790
- }, se.prototype.setEncoding = function(C) {
2791
- let j = new re(C);
2788
+ let O = this._readableState;
2789
+ return O[V] === !0 || O.flowing === !1;
2790
+ }, se.prototype.setEncoding = function(O) {
2791
+ let j = new re(O);
2792
2792
  this._readableState.decoder = j, this._readableState.encoding = this._readableState.decoder.encoding;
2793
2793
  let _e = this._readableState.buffer, Ee = "";
2794
2794
  for (let ke of _e) Ee += j.write(ke);
2795
2795
  return _e.clear(), Ee !== "" && _e.push(Ee), this._readableState.length = Ee.length, this;
2796
2796
  };
2797
2797
  var w = 1073741824;
2798
- function A(C) {
2799
- if (C > w) throw new W("size", "<= 1GiB", C);
2800
- return C--, C |= C >>> 1, C |= C >>> 2, C |= C >>> 4, C |= C >>> 8, C |= C >>> 16, C++, C;
2801
- }
2802
- function U(C, j) {
2803
- return C <= 0 || j.length === 0 && j.ended ? 0 : (j.state & J) !== 0 ? 1 : r(C) ? j.flowing && j.length ? j.buffer.first().length : j.length : C <= j.length ? C : j.ended ? j.length : 0;
2804
- }
2805
- se.prototype.read = function(C) {
2806
- v("read", C), C === void 0 ? C = NaN : l(C) || (C = n(C, 10));
2807
- let j = this._readableState, _e = C;
2808
- if (C > j.highWaterMark && (j.highWaterMark = A(C)), C !== 0 && (j.state &= ~H), C === 0 && j.needReadable && ((j.highWaterMark !== 0 ? j.length >= j.highWaterMark : j.length > 0) || j.ended)) return v("read: emitReadable", j.length, j.ended), j.length === 0 && j.ended ? Qe(this) : he(this), null;
2809
- if (C = U(C, j), C === 0 && j.ended) return j.length === 0 && Qe(this), null;
2798
+ function A(O) {
2799
+ if (O > w) throw new W("size", "<= 1GiB", O);
2800
+ return O--, O |= O >>> 1, O |= O >>> 2, O |= O >>> 4, O |= O >>> 8, O |= O >>> 16, O++, O;
2801
+ }
2802
+ function U(O, j) {
2803
+ return O <= 0 || j.length === 0 && j.ended ? 0 : (j.state & J) !== 0 ? 1 : r(O) ? j.flowing && j.length ? j.buffer.first().length : j.length : O <= j.length ? O : j.ended ? j.length : 0;
2804
+ }
2805
+ se.prototype.read = function(O) {
2806
+ v("read", O), O === void 0 ? O = NaN : l(O) || (O = n(O, 10));
2807
+ let j = this._readableState, _e = O;
2808
+ if (O > j.highWaterMark && (j.highWaterMark = A(O)), O !== 0 && (j.state &= ~H), O === 0 && j.needReadable && ((j.highWaterMark !== 0 ? j.length >= j.highWaterMark : j.length > 0) || j.ended)) return v("read: emitReadable", j.length, j.ended), j.length === 0 && j.ended ? Qe(this) : he(this), null;
2809
+ if (O = U(O, j), O === 0 && j.ended) return j.length === 0 && Qe(this), null;
2810
2810
  let Ee = (j.state & ne) !== 0;
2811
- if (v("need readable", Ee), (j.length === 0 || j.length - C < j.highWaterMark) && (Ee = !0, v("length less than watermark", Ee)), j.ended || j.reading || j.destroyed || j.errored || !j.constructed) Ee = !1, v("reading, ended or constructing", Ee);
2811
+ if (v("need readable", Ee), (j.length === 0 || j.length - O < j.highWaterMark) && (Ee = !0, v("length less than watermark", Ee)), j.ended || j.reading || j.destroyed || j.errored || !j.constructed) Ee = !1, v("reading, ended or constructing", Ee);
2812
2812
  else if (Ee) {
2813
2813
  v("do read"), j.state |= we | L, j.length === 0 && (j.state |= ne);
2814
2814
  try {
@@ -2816,178 +2816,178 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
2816
2816
  } catch (je) {
2817
2817
  P(this, je);
2818
2818
  }
2819
- j.state &= ~L, j.reading || (C = U(_e, j));
2819
+ j.state &= ~L, j.reading || (O = U(_e, j));
2820
2820
  }
2821
2821
  let ke;
2822
- return C > 0 ? ke = It(C, j) : ke = null, ke === null ? (j.needReadable = j.length <= j.highWaterMark, C = 0) : (j.length -= C, j.multiAwaitDrain ? j.awaitDrainWriters.clear() : j.awaitDrainWriters = null), j.length === 0 && (j.ended || (j.needReadable = !0), _e !== C && j.ended && Qe(this)), ke !== null && !j.errorEmitted && !j.closeEmitted && (j.dataEmitted = !0, this.emit("data", ke)), ke;
2822
+ return O > 0 ? ke = It(O, j) : ke = null, ke === null ? (j.needReadable = j.length <= j.highWaterMark, O = 0) : (j.length -= O, j.multiAwaitDrain ? j.awaitDrainWriters.clear() : j.awaitDrainWriters = null), j.length === 0 && (j.ended || (j.needReadable = !0), _e !== O && j.ended && Qe(this)), ke !== null && !j.errorEmitted && !j.closeEmitted && (j.dataEmitted = !0, this.emit("data", ke)), ke;
2823
2823
  };
2824
- function X(C, j) {
2824
+ function X(O, j) {
2825
2825
  if (v("onEofChunk"), !j.ended) {
2826
2826
  if (j.decoder) {
2827
2827
  let _e = j.decoder.end();
2828
2828
  _e && _e.length && (j.buffer.push(_e), j.length += j.objectMode ? 1 : _e.length);
2829
2829
  }
2830
- j.ended = !0, j.sync ? he(C) : (j.needReadable = !1, j.emittedReadable = !0, Se(C));
2830
+ j.ended = !0, j.sync ? he(O) : (j.needReadable = !1, j.emittedReadable = !0, Se(O));
2831
2831
  }
2832
2832
  }
2833
- function he(C) {
2834
- let j = C._readableState;
2835
- v("emitReadable", j.needReadable, j.emittedReadable), j.needReadable = !1, j.emittedReadable || (v("emitReadable", j.flowing), j.emittedReadable = !0, t.nextTick(Se, C));
2833
+ function he(O) {
2834
+ let j = O._readableState;
2835
+ v("emitReadable", j.needReadable, j.emittedReadable), j.needReadable = !1, j.emittedReadable || (v("emitReadable", j.flowing), j.emittedReadable = !0, t.nextTick(Se, O));
2836
2836
  }
2837
- function Se(C) {
2838
- let j = C._readableState;
2839
- v("emitReadable_", j.destroyed, j.length, j.ended), !j.destroyed && !j.errored && (j.length || j.ended) && (C.emit("readable"), j.emittedReadable = !1), j.needReadable = !j.flowing && !j.ended && j.length <= j.highWaterMark, Ge(C);
2837
+ function Se(O) {
2838
+ let j = O._readableState;
2839
+ v("emitReadable_", j.destroyed, j.length, j.ended), !j.destroyed && !j.errored && (j.length || j.ended) && (O.emit("readable"), j.emittedReadable = !1), j.needReadable = !j.flowing && !j.ended && j.length <= j.highWaterMark, Ge(O);
2840
2840
  }
2841
- function z(C, j) {
2842
- !j.readingMore && j.constructed && (j.readingMore = !0, t.nextTick(ie, C, j));
2841
+ function z(O, j) {
2842
+ !j.readingMore && j.constructed && (j.readingMore = !0, t.nextTick(ie, O, j));
2843
2843
  }
2844
- function ie(C, j) {
2844
+ function ie(O, j) {
2845
2845
  for (; !j.reading && !j.ended && (j.length < j.highWaterMark || j.flowing && j.length === 0); ) {
2846
2846
  let _e = j.length;
2847
- if (v("maybeReadMore read 0"), C.read(0), _e === j.length) break;
2847
+ if (v("maybeReadMore read 0"), O.read(0), _e === j.length) break;
2848
2848
  }
2849
2849
  j.readingMore = !1;
2850
2850
  }
2851
- se.prototype._read = function(C) {
2851
+ se.prototype._read = function(O) {
2852
2852
  throw new T("_read()");
2853
- }, se.prototype.pipe = function(C, j) {
2853
+ }, se.prototype.pipe = function(O, j) {
2854
2854
  let _e = this, Ee = this._readableState;
2855
- Ee.pipes.length === 1 && (Ee.multiAwaitDrain || (Ee.multiAwaitDrain = !0, Ee.awaitDrainWriters = new d(Ee.awaitDrainWriters ? [Ee.awaitDrainWriters] : []))), Ee.pipes.push(C), v("pipe count=%d opts=%j", Ee.pipes.length, j);
2856
- let ke = (!j || j.end !== !1) && C !== t.stdout && C !== t.stderr ? $e : vt;
2857
- Ee.endEmitted ? t.nextTick(ke) : _e.once("end", ke), C.on("unpipe", je);
2855
+ Ee.pipes.length === 1 && (Ee.multiAwaitDrain || (Ee.multiAwaitDrain = !0, Ee.awaitDrainWriters = new d(Ee.awaitDrainWriters ? [Ee.awaitDrainWriters] : []))), Ee.pipes.push(O), v("pipe count=%d opts=%j", Ee.pipes.length, j);
2856
+ let ke = (!j || j.end !== !1) && O !== t.stdout && O !== t.stderr ? $e : vt;
2857
+ Ee.endEmitted ? t.nextTick(ke) : _e.once("end", ke), O.on("unpipe", je);
2858
2858
  function je(Xe, tt) {
2859
2859
  v("onunpipe"), Xe === _e && tt && tt.hasUnpiped === !1 && (tt.hasUnpiped = !0, Ft());
2860
2860
  }
2861
2861
  function $e() {
2862
- v("onend"), C.end();
2862
+ v("onend"), O.end();
2863
2863
  }
2864
2864
  let Ve, Dt = !1;
2865
2865
  function Ft() {
2866
- v("cleanup"), C.removeListener("close", Je), C.removeListener("finish", ht), Ve && C.removeListener("drain", Ve), C.removeListener("error", yt), C.removeListener("unpipe", je), _e.removeListener("end", $e), _e.removeListener("end", vt), _e.removeListener("data", Xt), Dt = !0, Ve && Ee.awaitDrainWriters && (!C._writableState || C._writableState.needDrain) && Ve();
2866
+ v("cleanup"), O.removeListener("close", Je), O.removeListener("finish", ht), Ve && O.removeListener("drain", Ve), O.removeListener("error", yt), O.removeListener("unpipe", je), _e.removeListener("end", $e), _e.removeListener("end", vt), _e.removeListener("data", Xt), Dt = !0, Ve && Ee.awaitDrainWriters && (!O._writableState || O._writableState.needDrain) && Ve();
2867
2867
  }
2868
2868
  function $t() {
2869
- Dt || (Ee.pipes.length === 1 && Ee.pipes[0] === C ? (v("false write response, pause", 0), Ee.awaitDrainWriters = C, Ee.multiAwaitDrain = !1) : Ee.pipes.length > 1 && Ee.pipes.includes(C) && (v("false write response, pause", Ee.awaitDrainWriters.size), Ee.awaitDrainWriters.add(C)), _e.pause()), Ve || (Ve = xe(_e, C), C.on("drain", Ve));
2869
+ Dt || (Ee.pipes.length === 1 && Ee.pipes[0] === O ? (v("false write response, pause", 0), Ee.awaitDrainWriters = O, Ee.multiAwaitDrain = !1) : Ee.pipes.length > 1 && Ee.pipes.includes(O) && (v("false write response, pause", Ee.awaitDrainWriters.size), Ee.awaitDrainWriters.add(O)), _e.pause()), Ve || (Ve = xe(_e, O), O.on("drain", Ve));
2870
2870
  }
2871
2871
  _e.on("data", Xt);
2872
2872
  function Xt(Xe) {
2873
2873
  v("ondata");
2874
- let tt = C.write(Xe);
2874
+ let tt = O.write(Xe);
2875
2875
  v("dest.write", tt), tt === !1 && $t();
2876
2876
  }
2877
2877
  function yt(Xe) {
2878
- if (v("onerror", Xe), vt(), C.removeListener("error", yt), C.listenerCount("error") === 0) {
2879
- let tt = C._writableState || C._readableState;
2880
- tt && !tt.errorEmitted ? P(C, Xe) : C.emit("error", Xe);
2878
+ if (v("onerror", Xe), vt(), O.removeListener("error", yt), O.listenerCount("error") === 0) {
2879
+ let tt = O._writableState || O._readableState;
2880
+ tt && !tt.errorEmitted ? P(O, Xe) : O.emit("error", Xe);
2881
2881
  }
2882
2882
  }
2883
- S(C, "error", yt);
2883
+ S(O, "error", yt);
2884
2884
  function Je() {
2885
- C.removeListener("finish", ht), vt();
2885
+ O.removeListener("finish", ht), vt();
2886
2886
  }
2887
- C.once("close", Je);
2887
+ O.once("close", Je);
2888
2888
  function ht() {
2889
- v("onfinish"), C.removeListener("close", Je), vt();
2889
+ v("onfinish"), O.removeListener("close", Je), vt();
2890
2890
  }
2891
- C.once("finish", ht);
2891
+ O.once("finish", ht);
2892
2892
  function vt() {
2893
- v("unpipe"), _e.unpipe(C);
2893
+ v("unpipe"), _e.unpipe(O);
2894
2894
  }
2895
- return C.emit("pipe", _e), C.writableNeedDrain === !0 ? $t() : Ee.flowing || (v("pipe resume"), _e.resume()), C;
2895
+ return O.emit("pipe", _e), O.writableNeedDrain === !0 ? $t() : Ee.flowing || (v("pipe resume"), _e.resume()), O;
2896
2896
  };
2897
- function xe(C, j) {
2897
+ function xe(O, j) {
2898
2898
  return function() {
2899
- let _e = C._readableState;
2900
- _e.awaitDrainWriters === j ? (v("pipeOnDrain", 1), _e.awaitDrainWriters = null) : _e.multiAwaitDrain && (v("pipeOnDrain", _e.awaitDrainWriters.size), _e.awaitDrainWriters.delete(j)), (!_e.awaitDrainWriters || _e.awaitDrainWriters.size === 0) && C.listenerCount("data") && C.resume();
2899
+ let _e = O._readableState;
2900
+ _e.awaitDrainWriters === j ? (v("pipeOnDrain", 1), _e.awaitDrainWriters = null) : _e.multiAwaitDrain && (v("pipeOnDrain", _e.awaitDrainWriters.size), _e.awaitDrainWriters.delete(j)), (!_e.awaitDrainWriters || _e.awaitDrainWriters.size === 0) && O.listenerCount("data") && O.resume();
2901
2901
  };
2902
2902
  }
2903
- se.prototype.unpipe = function(C) {
2903
+ se.prototype.unpipe = function(O) {
2904
2904
  let j = this._readableState, _e = { hasUnpiped: !1 };
2905
2905
  if (j.pipes.length === 0) return this;
2906
- if (!C) {
2906
+ if (!O) {
2907
2907
  let ke = j.pipes;
2908
2908
  j.pipes = [], this.pause();
2909
2909
  for (let je = 0; je < ke.length; je++) ke[je].emit("unpipe", this, { hasUnpiped: !1 });
2910
2910
  return this;
2911
2911
  }
2912
- let Ee = i(j.pipes, C);
2913
- return Ee === -1 ? this : (j.pipes.splice(Ee, 1), j.pipes.length === 0 && this.pause(), C.emit("unpipe", this, _e), this);
2914
- }, se.prototype.on = function(C, j) {
2915
- let _e = y.prototype.on.call(this, C, j), Ee = this._readableState;
2916
- return C === "data" ? (Ee.readableListening = this.listenerCount("readable") > 0, Ee.flowing !== !1 && this.resume()) : C === "readable" && !Ee.endEmitted && !Ee.readableListening && (Ee.readableListening = Ee.needReadable = !0, Ee.flowing = !1, Ee.emittedReadable = !1, v("on readable", Ee.length, Ee.reading), Ee.length ? he(this) : Ee.reading || t.nextTick(Ie, this)), _e;
2917
- }, se.prototype.addListener = se.prototype.on, se.prototype.removeListener = function(C, j) {
2918
- let _e = y.prototype.removeListener.call(this, C, j);
2919
- return C === "readable" && t.nextTick(Ae, this), _e;
2920
- }, se.prototype.off = se.prototype.removeListener, se.prototype.removeAllListeners = function(C) {
2912
+ let Ee = i(j.pipes, O);
2913
+ return Ee === -1 ? this : (j.pipes.splice(Ee, 1), j.pipes.length === 0 && this.pause(), O.emit("unpipe", this, _e), this);
2914
+ }, se.prototype.on = function(O, j) {
2915
+ let _e = y.prototype.on.call(this, O, j), Ee = this._readableState;
2916
+ return O === "data" ? (Ee.readableListening = this.listenerCount("readable") > 0, Ee.flowing !== !1 && this.resume()) : O === "readable" && !Ee.endEmitted && !Ee.readableListening && (Ee.readableListening = Ee.needReadable = !0, Ee.flowing = !1, Ee.emittedReadable = !1, v("on readable", Ee.length, Ee.reading), Ee.length ? he(this) : Ee.reading || t.nextTick(Ie, this)), _e;
2917
+ }, se.prototype.addListener = se.prototype.on, se.prototype.removeListener = function(O, j) {
2918
+ let _e = y.prototype.removeListener.call(this, O, j);
2919
+ return O === "readable" && t.nextTick(Ae, this), _e;
2920
+ }, se.prototype.off = se.prototype.removeListener, se.prototype.removeAllListeners = function(O) {
2921
2921
  let j = y.prototype.removeAllListeners.apply(this, arguments);
2922
- return (C === "readable" || C === void 0) && t.nextTick(Ae, this), j;
2922
+ return (O === "readable" || O === void 0) && t.nextTick(Ae, this), j;
2923
2923
  };
2924
- function Ae(C) {
2925
- let j = C._readableState;
2926
- j.readableListening = C.listenerCount("readable") > 0, j.resumeScheduled && j[V] === !1 ? j.flowing = !0 : C.listenerCount("data") > 0 ? C.resume() : j.readableListening || (j.flowing = null);
2924
+ function Ae(O) {
2925
+ let j = O._readableState;
2926
+ j.readableListening = O.listenerCount("readable") > 0, j.resumeScheduled && j[V] === !1 ? j.flowing = !0 : O.listenerCount("data") > 0 ? O.resume() : j.readableListening || (j.flowing = null);
2927
2927
  }
2928
- function Ie(C) {
2929
- v("readable nexttick read 0"), C.read(0);
2928
+ function Ie(O) {
2929
+ v("readable nexttick read 0"), O.read(0);
2930
2930
  }
2931
2931
  se.prototype.resume = function() {
2932
- let C = this._readableState;
2933
- return C.flowing || (v("resume"), C.flowing = !C.readableListening, Ce(this, C)), C[V] = !1, this;
2932
+ let O = this._readableState;
2933
+ return O.flowing || (v("resume"), O.flowing = !O.readableListening, Oe(this, O)), O[V] = !1, this;
2934
2934
  };
2935
- function Ce(C, j) {
2936
- j.resumeScheduled || (j.resumeScheduled = !0, t.nextTick(Ke, C, j));
2935
+ function Oe(O, j) {
2936
+ j.resumeScheduled || (j.resumeScheduled = !0, t.nextTick(Ke, O, j));
2937
2937
  }
2938
- function Ke(C, j) {
2939
- v("resume", j.reading), j.reading || C.read(0), j.resumeScheduled = !1, C.emit("resume"), Ge(C), j.flowing && !j.reading && C.read(0);
2938
+ function Ke(O, j) {
2939
+ v("resume", j.reading), j.reading || O.read(0), j.resumeScheduled = !1, O.emit("resume"), Ge(O), j.flowing && !j.reading && O.read(0);
2940
2940
  }
2941
2941
  se.prototype.pause = function() {
2942
2942
  return v("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (v("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState[V] = !0, this;
2943
2943
  };
2944
- function Ge(C) {
2945
- let j = C._readableState;
2946
- for (v("flow", j.flowing); j.flowing && C.read() !== null; ) ;
2944
+ function Ge(O) {
2945
+ let j = O._readableState;
2946
+ for (v("flow", j.flowing); j.flowing && O.read() !== null; ) ;
2947
2947
  }
2948
- se.prototype.wrap = function(C) {
2948
+ se.prototype.wrap = function(O) {
2949
2949
  let j = !1;
2950
- C.on("data", (Ee) => {
2951
- !this.push(Ee) && C.pause && (j = !0, C.pause());
2952
- }), C.on("end", () => {
2950
+ O.on("data", (Ee) => {
2951
+ !this.push(Ee) && O.pause && (j = !0, O.pause());
2952
+ }), O.on("end", () => {
2953
2953
  this.push(null);
2954
- }), C.on("error", (Ee) => {
2954
+ }), O.on("error", (Ee) => {
2955
2955
  P(this, Ee);
2956
- }), C.on("close", () => {
2956
+ }), O.on("close", () => {
2957
2957
  this.destroy();
2958
- }), C.on("destroy", () => {
2958
+ }), O.on("destroy", () => {
2959
2959
  this.destroy();
2960
2960
  }), this._read = () => {
2961
- j && C.resume && (j = !1, C.resume());
2961
+ j && O.resume && (j = !1, O.resume());
2962
2962
  };
2963
- let _e = o(C);
2963
+ let _e = o(O);
2964
2964
  for (let Ee = 1; Ee < _e.length; Ee++) {
2965
2965
  let ke = _e[Ee];
2966
- this[ke] === void 0 && typeof C[ke] == "function" && (this[ke] = C[ke].bind(C));
2966
+ this[ke] === void 0 && typeof O[ke] == "function" && (this[ke] = O[ke].bind(O));
2967
2967
  }
2968
2968
  return this;
2969
2969
  }, se.prototype[b] = function() {
2970
2970
  return Ue(this);
2971
- }, se.prototype.iterator = function(C) {
2972
- return C !== void 0 && Y(C, "options"), Ue(this, C);
2971
+ }, se.prototype.iterator = function(O) {
2972
+ return O !== void 0 && Y(O, "options"), Ue(this, O);
2973
2973
  };
2974
- function Ue(C, j) {
2975
- typeof C.read != "function" && (C = se.wrap(C, { objectMode: !0 }));
2976
- let _e = Ye(C, j);
2977
- return _e.stream = C, _e;
2974
+ function Ue(O, j) {
2975
+ typeof O.read != "function" && (O = se.wrap(O, { objectMode: !0 }));
2976
+ let _e = Ye(O, j);
2977
+ return _e.stream = O, _e;
2978
2978
  }
2979
- async function* Ye(C, j) {
2979
+ async function* Ye(O, j) {
2980
2980
  let _e = Z;
2981
2981
  function Ee($e) {
2982
- this === C ? (_e(), _e = Z) : _e = $e;
2982
+ this === O ? (_e(), _e = Z) : _e = $e;
2983
2983
  }
2984
- C.on("readable", Ee);
2985
- let ke, je = x(C, { writable: !1 }, ($e) => {
2986
- ke = $e ? O(ke, $e) : null, _e(), _e = Z;
2984
+ O.on("readable", Ee);
2985
+ let ke, je = x(O, { writable: !1 }, ($e) => {
2986
+ ke = $e ? C(ke, $e) : null, _e(), _e = Z;
2987
2987
  });
2988
2988
  try {
2989
2989
  for (; ; ) {
2990
- let $e = C.destroyed ? null : C.read();
2990
+ let $e = O.destroyed ? null : O.read();
2991
2991
  if ($e !== null) yield $e;
2992
2992
  else {
2993
2993
  if (ke) throw ke;
@@ -2996,16 +2996,16 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
2996
2996
  }
2997
2997
  }
2998
2998
  } catch ($e) {
2999
- throw ke = O(ke, $e), ke;
2999
+ throw ke = C(ke, $e), ke;
3000
3000
  } finally {
3001
- (ke || j?.destroyOnReturn !== !1) && (ke === void 0 || C._readableState.autoDestroy) ? E.destroyer(C, null) : (C.off("readable", Ee), je());
3001
+ (ke || j?.destroyOnReturn !== !1) && (ke === void 0 || O._readableState.autoDestroy) ? E.destroyer(O, null) : (O.off("readable", Ee), je());
3002
3002
  }
3003
3003
  }
3004
3004
  s(se.prototype, { readable: { __proto__: null, get() {
3005
- let C = this._readableState;
3006
- return !!C && C.readable !== !1 && !C.destroyed && !C.errorEmitted && !C.endEmitted;
3007
- }, set(C) {
3008
- this._readableState && (this._readableState.readable = !!C);
3005
+ let O = this._readableState;
3006
+ return !!O && O.readable !== !1 && !O.destroyed && !O.errorEmitted && !O.endEmitted;
3007
+ }, set(O) {
3008
+ this._readableState && (this._readableState.readable = !!O);
3009
3009
  } }, readableDidRead: { __proto__: null, enumerable: !1, get: function() {
3010
3010
  return this._readableState.dataEmitted;
3011
3011
  } }, readableAborted: { __proto__: null, enumerable: !1, get: function() {
@@ -3016,8 +3016,8 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3016
3016
  return this._readableState && this._readableState.buffer;
3017
3017
  } }, readableFlowing: { __proto__: null, enumerable: !1, get: function() {
3018
3018
  return this._readableState.flowing;
3019
- }, set: function(C) {
3020
- this._readableState && (this._readableState.flowing = C);
3019
+ }, set: function(O) {
3020
+ this._readableState && (this._readableState.flowing = O);
3021
3021
  } }, readableLength: { __proto__: null, enumerable: !1, get() {
3022
3022
  return this._readableState.length;
3023
3023
  } }, readableObjectMode: { __proto__: null, enumerable: !1, get() {
@@ -3030,60 +3030,60 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3030
3030
  return this._readableState ? this._readableState.closed : !1;
3031
3031
  } }, destroyed: { __proto__: null, enumerable: !1, get() {
3032
3032
  return this._readableState ? this._readableState.destroyed : !1;
3033
- }, set(C) {
3034
- this._readableState && (this._readableState.destroyed = C);
3033
+ }, set(O) {
3034
+ this._readableState && (this._readableState.destroyed = O);
3035
3035
  } }, readableEnded: { __proto__: null, enumerable: !1, get() {
3036
3036
  return this._readableState ? this._readableState.endEmitted : !1;
3037
3037
  } } }), s(ve.prototype, { pipesCount: { __proto__: null, get() {
3038
3038
  return this.pipes.length;
3039
3039
  } }, paused: { __proto__: null, get() {
3040
3040
  return this[V] !== !1;
3041
- }, set(C) {
3042
- this[V] = !!C;
3041
+ }, set(O) {
3042
+ this[V] = !!O;
3043
3043
  } } }), se._fromList = It;
3044
- function It(C, j) {
3044
+ function It(O, j) {
3045
3045
  if (j.length === 0) return null;
3046
3046
  let _e;
3047
- return j.objectMode ? _e = j.buffer.shift() : !C || C >= j.length ? (j.decoder ? _e = j.buffer.join("") : j.buffer.length === 1 ? _e = j.buffer.first() : _e = j.buffer.concat(j.length), j.buffer.clear()) : _e = j.buffer.consume(C, j.decoder), _e;
3047
+ return j.objectMode ? _e = j.buffer.shift() : !O || O >= j.length ? (j.decoder ? _e = j.buffer.join("") : j.buffer.length === 1 ? _e = j.buffer.first() : _e = j.buffer.concat(j.length), j.buffer.clear()) : _e = j.buffer.consume(O, j.decoder), _e;
3048
3048
  }
3049
- function Qe(C) {
3050
- let j = C._readableState;
3051
- v("endReadable", j.endEmitted), j.endEmitted || (j.ended = !0, t.nextTick(ze, j, C));
3049
+ function Qe(O) {
3050
+ let j = O._readableState;
3051
+ v("endReadable", j.endEmitted), j.endEmitted || (j.ended = !0, t.nextTick(ze, j, O));
3052
3052
  }
3053
- function ze(C, j) {
3054
- if (v("endReadableNT", C.endEmitted, C.length), !C.errored && !C.closeEmitted && !C.endEmitted && C.length === 0) {
3055
- if (C.endEmitted = !0, j.emit("end"), j.writable && j.allowHalfOpen === !1) t.nextTick(Jt, j);
3056
- else if (C.autoDestroy) {
3053
+ function ze(O, j) {
3054
+ if (v("endReadableNT", O.endEmitted, O.length), !O.errored && !O.closeEmitted && !O.endEmitted && O.length === 0) {
3055
+ if (O.endEmitted = !0, j.emit("end"), j.writable && j.allowHalfOpen === !1) t.nextTick(Jt, j);
3056
+ else if (O.autoDestroy) {
3057
3057
  let _e = j._writableState;
3058
3058
  (!_e || _e.autoDestroy && (_e.finished || _e.writable === !1)) && j.destroy();
3059
3059
  }
3060
3060
  }
3061
3061
  }
3062
- function Jt(C) {
3063
- C.writable && !C.writableEnded && !C.destroyed && C.end();
3062
+ function Jt(O) {
3063
+ O.writable && !O.writableEnded && !O.destroyed && O.end();
3064
3064
  }
3065
- se.from = function(C, j) {
3066
- return F(se, C, j);
3065
+ se.from = function(O, j) {
3066
+ return F(se, O, j);
3067
3067
  };
3068
3068
  var Tt;
3069
3069
  function Bt() {
3070
3070
  return Tt === void 0 && (Tt = {}), Tt;
3071
3071
  }
3072
- se.fromWeb = function(C, j) {
3073
- return Bt().newStreamReadableFromReadableStream(C, j);
3074
- }, se.toWeb = function(C, j) {
3075
- return Bt().newReadableStreamFromStreamReadable(C, j);
3076
- }, se.wrap = function(C, j) {
3072
+ se.fromWeb = function(O, j) {
3073
+ return Bt().newStreamReadableFromReadableStream(O, j);
3074
+ }, se.toWeb = function(O, j) {
3075
+ return Bt().newReadableStreamFromStreamReadable(O, j);
3076
+ }, se.wrap = function(O, j) {
3077
3077
  var _e, Ee;
3078
- return new se({ objectMode: (_e = (Ee = C.readableObjectMode) !== null && Ee !== void 0 ? Ee : C.objectMode) !== null && _e !== void 0 ? _e : !0, ...j, destroy(ke, je) {
3079
- E.destroyer(C, ke), je(ke);
3080
- } }).wrap(C);
3078
+ return new se({ objectMode: (_e = (Ee = O.readableObjectMode) !== null && Ee !== void 0 ? Ee : O.objectMode) !== null && _e !== void 0 ? _e : !0, ...j, destroy(ke, je) {
3079
+ E.destroyer(O, ke), je(ke);
3080
+ } }).wrap(O);
3081
3081
  };
3082
3082
  }), Gi = pe((u, e) => {
3083
3083
  le(), ce(), ue();
3084
3084
  var t = xt(), { ArrayPrototypeSlice: i, Error: l, FunctionPrototypeSymbolHasInstance: r, ObjectDefineProperty: n, ObjectDefineProperties: s, ObjectSetPrototypeOf: o, StringPrototypeToLowerCase: a, Symbol: c, SymbolHasInstance: d } = Re();
3085
3085
  e.exports = Y, Y.WritableState = N;
3086
- var { EventEmitter: p } = (kt(), Oe(mt)), b = Ki().Stream, { Buffer: f } = (Ne(), Oe(Le)), m = Lt(), { addAbortSignal: y } = Or(), { getHighWaterMark: S, getDefaultHighWaterMark: g } = Pr(), { ERR_INVALID_ARG_TYPE: _, ERR_METHOD_NOT_IMPLEMENTED: x, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: k, ERR_STREAM_DESTROYED: E, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: M, ERR_STREAM_WRITE_AFTER_END: O, ERR_UNKNOWN_ENCODING: B } = We().codes, { errorOrDestroy: T } = m;
3086
+ var { EventEmitter: p } = (kt(), Ce(mt)), b = Ki().Stream, { Buffer: f } = (Ne(), Ce(Le)), m = Lt(), { addAbortSignal: y } = Cr(), { getHighWaterMark: S, getDefaultHighWaterMark: g } = Pr(), { ERR_INVALID_ARG_TYPE: _, ERR_METHOD_NOT_IMPLEMENTED: x, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: k, ERR_STREAM_DESTROYED: E, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: M, ERR_STREAM_WRITE_AFTER_END: C, ERR_UNKNOWN_ENCODING: B } = We().codes, { errorOrDestroy: T } = m;
3087
3087
  o(Y.prototype, b.prototype), o(Y, b);
3088
3088
  function W() {
3089
3089
  }
@@ -3128,7 +3128,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3128
3128
  else if (b._isUint8Array($)) $ = b._uint8ArrayToBuffer($), ee = "buffer";
3129
3129
  else throw new _("chunk", ["string", "Buffer", "Uint8Array"], $);
3130
3130
  let ye;
3131
- return de.ending ? ye = new O() : de.destroyed && (ye = new E("write")), ye ? (t.nextTick(fe, ye), T(R, ye, !0), ye) : (de.pendingcb++, re(R, de, $, ee, fe));
3131
+ return de.ending ? ye = new C() : de.destroyed && (ye = new E("write")), ye ? (t.nextTick(fe, ye), T(R, ye, !0), ye) : (de.pendingcb++, re(R, de, $, ee, fe));
3132
3132
  }
3133
3133
  Y.prototype.write = function(R, $, ee) {
3134
3134
  return V(this, R, $, ee) === !0;
@@ -3311,11 +3311,11 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3311
3311
  };
3312
3312
  }), Rl = pe((u, e) => {
3313
3313
  le(), ce(), ue();
3314
- var t = xt(), i = (Ne(), Oe(Le)), { isReadable: l, isWritable: r, isIterable: n, isNodeStream: s, isReadableNodeStream: o, isWritableNodeStream: a, isDuplexNodeStream: c, isReadableStream: d, isWritableStream: p } = lt(), b = bt(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: m, ERR_INVALID_RETURN_VALUE: y } } = We(), { destroyer: S } = Lt(), g = st(), _ = Mr(), x = Gi(), { createDeferredPromise: v } = qe(), k = qs(), E = globalThis.Blob || i.Blob, I = typeof E < "u" ? function(D) {
3314
+ var t = xt(), i = (Ne(), Ce(Le)), { isReadable: l, isWritable: r, isIterable: n, isNodeStream: s, isReadableNodeStream: o, isWritableNodeStream: a, isDuplexNodeStream: c, isReadableStream: d, isWritableStream: p } = lt(), b = bt(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: m, ERR_INVALID_RETURN_VALUE: y } } = We(), { destroyer: S } = Lt(), g = st(), _ = Mr(), x = Gi(), { createDeferredPromise: v } = qe(), k = qs(), E = globalThis.Blob || i.Blob, I = typeof E < "u" ? function(D) {
3315
3315
  return D instanceof E;
3316
3316
  } : function(D) {
3317
3317
  return !1;
3318
- }, M = globalThis.AbortController || Gt().AbortController, { FunctionPrototypeCall: O } = Re(), B = class extends g {
3318
+ }, M = globalThis.AbortController || Gt().AbortController, { FunctionPrototypeCall: C } = Re(), B = class extends g {
3319
3319
  constructor(D) {
3320
3320
  super(D), D?.readable === !1 && (this._readableState.readable = !1, this._readableState.ended = !0, this._readableState.endEmitted = !0), D?.writable === !1 && (this._writableState.writable = !1, this._writableState.ending = !0, this._writableState.ended = !0, this._writableState.finished = !0);
3321
3321
  }
@@ -3332,7 +3332,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3332
3332
  if (n(V)) return k(B, V, { objectMode: !0, write: re, final: F, destroy: Z });
3333
3333
  let P = V?.then;
3334
3334
  if (typeof P == "function") {
3335
- let J, be = O(P, V, (te) => {
3335
+ let J, be = C(P, V, (te) => {
3336
3336
  if (te != null) throw new y("nully", "body", te);
3337
3337
  }, (te) => {
3338
3338
  S(J, te);
@@ -3359,7 +3359,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3359
3359
  let Y = N?.then;
3360
3360
  if (typeof Y == "function") {
3361
3361
  let V;
3362
- return O(Y, N, (re) => {
3362
+ return C(Y, N, (re) => {
3363
3363
  re != null && V.push(re), V.push(null);
3364
3364
  }, (re) => {
3365
3365
  S(V, re);
@@ -3524,7 +3524,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3524
3524
  };
3525
3525
  }), Yi = pe((u, e) => {
3526
3526
  le(), ce(), ue();
3527
- var t = xt(), { ArrayIsArray: i, Promise: l, SymbolAsyncIterator: r, SymbolDispose: n } = Re(), s = bt(), { once: o } = qe(), a = Lt(), c = st(), { aggregateTwoErrors: d, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: b, ERR_MISSING_ARGS: f, ERR_STREAM_DESTROYED: m, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: S } = We(), { validateFunction: g, validateAbortSignal: _ } = Yt(), { isIterable: x, isReadable: v, isReadableNodeStream: k, isNodeStream: E, isTransformStream: I, isWebStream: M, isReadableStream: O, isReadableFinished: B } = lt(), T = globalThis.AbortController || Gt().AbortController, W, D, N;
3527
+ var t = xt(), { ArrayIsArray: i, Promise: l, SymbolAsyncIterator: r, SymbolDispose: n } = Re(), s = bt(), { once: o } = qe(), a = Lt(), c = st(), { aggregateTwoErrors: d, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: b, ERR_MISSING_ARGS: f, ERR_STREAM_DESTROYED: m, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: S } = We(), { validateFunction: g, validateAbortSignal: _ } = Yt(), { isIterable: x, isReadable: v, isReadableNodeStream: k, isNodeStream: E, isTransformStream: I, isWebStream: M, isReadableStream: C, isReadableFinished: B } = lt(), T = globalThis.AbortController || Gt().AbortController, W, D, N;
3528
3528
  function ae(te, we, K) {
3529
3529
  let L = !1;
3530
3530
  te.on("close", () => {
@@ -3645,7 +3645,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3645
3645
  U.destroy(z), t.nextTick(fe, z);
3646
3646
  });
3647
3647
  else if (x(ye, !0)) ee++, F(ye, U, fe, { end: w });
3648
- else if (O(ye) || I(ye)) {
3648
+ else if (C(ye) || I(ye)) {
3649
3649
  let z = ye.readable || ye;
3650
3650
  ee++, F(z, U, fe, { end: w });
3651
3651
  } else throw new b("AsyncIterable or Promise", "destination", ye);
@@ -3658,7 +3658,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3658
3658
  ee += 2;
3659
3659
  let U = be(ye, se, fe, { end: w });
3660
3660
  v(se) && A && G.push(U);
3661
- } else if (I(ye) || O(ye)) {
3661
+ } else if (I(ye) || C(ye)) {
3662
3662
  let U = ye.readable || ye;
3663
3663
  ee++, F(U, se, fe, { end: w });
3664
3664
  } else if (x(ye)) ee++, F(ye, se, fe, { end: w });
@@ -3666,7 +3666,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3666
3666
  ye = se;
3667
3667
  } else if (M(se)) {
3668
3668
  if (k(ye)) ee++, Z(V(ye), se, fe, { end: w });
3669
- else if (O(ye) || x(ye)) ee++, Z(ye, se, fe, { end: w });
3669
+ else if (C(ye) || x(ye)) ee++, Z(ye, se, fe, { end: w });
3670
3670
  else if (I(ye)) ee++, Z(ye.readable, se, fe, { end: w });
3671
3671
  else throw new p("val", ["Readable", "Iterable", "AsyncIterable", "ReadableStream", "TransformStream"], ye);
3672
3672
  ye = se;
@@ -3708,10 +3708,10 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3708
3708
  let g, _, x, v, k;
3709
3709
  function E(T) {
3710
3710
  let W = v;
3711
- v = null, W ? W(T) : T ? k.destroy(T) : !B && !O && k.destroy();
3711
+ v = null, W ? W(T) : T ? k.destroy(T) : !B && !C && k.destroy();
3712
3712
  }
3713
- let I = y[0], M = t(y, E), O = !!(s(I) || c(I) || a(I)), B = !!(n(M) || d(M) || a(M));
3714
- if (k = new i({ writableObjectMode: !!(I != null && I.writableObjectMode), readableObjectMode: !!(M != null && M.readableObjectMode), writable: O, readable: B }), O) {
3713
+ let I = y[0], M = t(y, E), C = !!(s(I) || c(I) || a(I)), B = !!(n(M) || d(M) || a(M));
3714
+ if (k = new i({ writableObjectMode: !!(I != null && I.writableObjectMode), readableObjectMode: !!(M != null && M.readableObjectMode), writable: C, readable: B }), C) {
3715
3715
  if (r(I)) k._write = function(W, D, N) {
3716
3716
  I.write(W, D) ? N() : g = N;
3717
3717
  }, k._final = function(W) {
@@ -3788,7 +3788,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3788
3788
  };
3789
3789
  }), jl = pe((u, e) => {
3790
3790
  le(), ce(), ue();
3791
- var t = globalThis.AbortController || Gt().AbortController, { codes: { ERR_INVALID_ARG_VALUE: i, ERR_INVALID_ARG_TYPE: l, ERR_MISSING_ARGS: r, ERR_OUT_OF_RANGE: n }, AbortError: s } = We(), { validateAbortSignal: o, validateInteger: a, validateObject: c } = Yt(), d = Re().Symbol("kWeak"), p = Re().Symbol("kResistStopPropagation"), { finished: b } = bt(), f = Vs(), { addAbortSignalNoValidate: m } = Or(), { isWritable: y, isNodeStream: S } = lt(), { deprecate: g } = qe(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: k, NumberIsNaN: E, Promise: I, PromiseReject: M, PromiseResolve: O, PromisePrototypeThen: B, Symbol: T } = Re(), W = T("kEmpty"), D = T("kEof");
3791
+ var t = globalThis.AbortController || Gt().AbortController, { codes: { ERR_INVALID_ARG_VALUE: i, ERR_INVALID_ARG_TYPE: l, ERR_MISSING_ARGS: r, ERR_OUT_OF_RANGE: n }, AbortError: s } = We(), { validateAbortSignal: o, validateInteger: a, validateObject: c } = Yt(), d = Re().Symbol("kWeak"), p = Re().Symbol("kResistStopPropagation"), { finished: b } = bt(), f = Vs(), { addAbortSignalNoValidate: m } = Cr(), { isWritable: y, isNodeStream: S } = lt(), { deprecate: g } = qe(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: k, NumberIsNaN: E, Promise: I, PromiseReject: M, PromiseResolve: C, PromisePrototypeThen: B, Symbol: T } = Re(), W = T("kEmpty"), D = T("kEof");
3792
3792
  function N(H, G) {
3793
3793
  if (G != null && c(G, "options"), G?.signal != null && o(G.signal, "options.signal"), S(H) && !y(H)) throw new i("stream", H, "must be writable");
3794
3794
  let Q = f(this, H);
@@ -3818,7 +3818,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3818
3818
  if (oe.aborted) throw new s();
3819
3819
  try {
3820
3820
  if (h = H(h, ee), h === W) continue;
3821
- h = O(h);
3821
+ h = C(h);
3822
3822
  } catch (w) {
3823
3823
  h = M(w);
3824
3824
  }
@@ -3983,7 +3983,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
3983
3983
  e.exports = { finished: o, pipeline: a };
3984
3984
  }), Gs = pe((u, e) => {
3985
3985
  le(), ce(), ue();
3986
- var { Buffer: t } = (Ne(), Oe(Le)), { ObjectDefineProperty: i, ObjectKeys: l, ReflectApply: r } = Re(), { promisify: { custom: n } } = qe(), { streamReturningOperators: s, promiseReturningOperators: o } = jl(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: a } } = We(), c = Vs(), { setDefaultHighWaterMark: d, getDefaultHighWaterMark: p } = Pr(), { pipeline: b } = Yi(), { destroyer: f } = Lt(), m = bt(), y = Ks(), S = lt(), g = e.exports = Ki().Stream;
3986
+ var { Buffer: t } = (Ne(), Ce(Le)), { ObjectDefineProperty: i, ObjectKeys: l, ReflectApply: r } = Re(), { promisify: { custom: n } } = qe(), { streamReturningOperators: s, promiseReturningOperators: o } = jl(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: a } } = We(), c = Vs(), { setDefaultHighWaterMark: d, getDefaultHighWaterMark: p } = Pr(), { pipeline: b } = Yi(), { destroyer: f } = Lt(), m = bt(), y = Ks(), S = lt(), g = e.exports = Ki().Stream;
3987
3987
  g.isDestroyed = S.isDestroyed, g.isDisturbed = S.isDisturbed, g.isErrored = S.isErrored, g.isReadable = S.isReadable, g.isWritable = S.isWritable, g.Readable = Mr();
3988
3988
  for (let x of l(s)) {
3989
3989
  let v = function(...E) {
@@ -4000,7 +4000,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
4000
4000
  i(v, "name", { __proto__: null, value: k.name }), i(v, "length", { __proto__: null, value: k.length }), i(g.Readable.prototype, x, { __proto__: null, value: v, enumerable: !1, configurable: !0, writable: !0 });
4001
4001
  }
4002
4002
  g.Writable = Gi(), g.Duplex = st(), g.Transform = Hs(), g.PassThrough = zs(), g.pipeline = b;
4003
- var { addAbortSignal: _ } = Or();
4003
+ var { addAbortSignal: _ } = Cr();
4004
4004
  g.addAbortSignal = _, g.finished = m, g.destroy = f, g.compose = c, g.setDefaultHighWaterMark = d, g.getDefaultHighWaterMark = p, i(g, "promises", { __proto__: null, configurable: !0, enumerable: !0, get() {
4005
4005
  return y;
4006
4006
  } }), i(b, n, { __proto__: null, enumerable: !0, get() {
@@ -4031,7 +4031,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
4031
4031
  };
4032
4032
  }), Nl = pe((u, e) => {
4033
4033
  le(), ce(), ue();
4034
- var { Buffer: t } = (Ne(), Oe(Le)), i = /* @__PURE__ */ Symbol.for("BufferList");
4034
+ var { Buffer: t } = (Ne(), Ce(Le)), i = /* @__PURE__ */ Symbol.for("BufferList");
4035
4035
  function l(r) {
4036
4036
  if (!(this instanceof l)) return new l(r);
4037
4037
  l._init.call(this, r);
@@ -4195,7 +4195,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
4195
4195
  e.exports = t;
4196
4196
  }), Ys = pe((u, e) => {
4197
4197
  le(), ce(), ue();
4198
- var t = e.exports, { Buffer: i } = (Ne(), Oe(Le));
4198
+ var t = e.exports, { Buffer: i } = (Ne(), Ce(Le));
4199
4199
  t.types = { 0: "reserved", 1: "connect", 2: "connack", 3: "publish", 4: "puback", 5: "pubrec", 6: "pubrel", 7: "pubcomp", 8: "subscribe", 9: "suback", 10: "unsubscribe", 11: "unsuback", 12: "pingreq", 13: "pingresp", 14: "disconnect", 15: "auth" }, t.requiredHeaderFlags = { 1: 0, 2: 0, 4: 0, 5: 0, 6: 2, 7: 0, 8: 2, 9: 0, 10: 2, 11: 0, 12: 0, 13: 0, 14: 0, 15: 0 }, t.requiredHeaderFlagsErrors = {};
4200
4200
  for (let r in t.requiredHeaderFlags) {
4201
4201
  let n = t.requiredHeaderFlags[r];
@@ -4313,10 +4313,10 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
4313
4313
  _[0] = _[0].replace(/%([a-zA-Z%])/g, (I, M) => {
4314
4314
  if (I === "%%") return "%";
4315
4315
  E++;
4316
- let O = r.formatters[M];
4317
- if (typeof O == "function") {
4316
+ let C = r.formatters[M];
4317
+ if (typeof C == "function") {
4318
4318
  let B = _[E];
4319
- I = O.call(x, B), _.splice(E, 1), E--;
4319
+ I = C.call(x, B), _.splice(E, 1), E--;
4320
4320
  }
4321
4321
  return I;
4322
4322
  }), r.formatArgs.call(x, _), (x.log || r.log).apply(x, _);
@@ -4415,7 +4415,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
4415
4415
  };
4416
4416
  }), $l = pe((u, e) => {
4417
4417
  le(), ce(), ue();
4418
- var t = Ul(), { EventEmitter: i } = (kt(), Oe(mt)), l = Bl(), r = Ys(), n = at()("mqtt-packet:parser"), s = class ei extends i {
4418
+ var t = Ul(), { EventEmitter: i } = (kt(), Ce(mt)), l = Bl(), r = Ys(), n = at()("mqtt-packet:parser"), s = class ei extends i {
4419
4419
  constructor() {
4420
4420
  super(), this.parser = this.constructor.parser;
4421
4421
  }
@@ -4768,7 +4768,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
4768
4768
  e.exports = s;
4769
4769
  }), Wl = pe((u, e) => {
4770
4770
  le(), ce(), ue();
4771
- var { Buffer: t } = (Ne(), Oe(Le)), i = 65536, l = {}, r = t.isBuffer(t.from([1, 2]).subarray(0, 1));
4771
+ var { Buffer: t } = (Ne(), Ce(Le)), i = 65536, l = {}, r = t.isBuffer(t.from([1, 2]).subarray(0, 1));
4772
4772
  function n(c) {
4773
4773
  let d = t.allocUnsafe(2);
4774
4774
  return d.writeUInt8(c >> 8, 0), d.writeUInt8(c & 255, 1), d;
@@ -4818,7 +4818,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
4818
4818
  }
4819
4819
  }), Qs = pe((u, e) => {
4820
4820
  le(), ce(), ue();
4821
- var t = Ys(), { Buffer: i } = (Ne(), Oe(Le)), l = i.allocUnsafe(0), r = i.from([0]), n = Wl(), s = ql().nextTick, o = at()("mqtt-packet:writeToStream"), a = n.cache, c = n.generateNumber, d = n.generateCache, p = n.genBufVariableByteInt, b = n.generate4ByteBuffer, f = Y, m = !0;
4821
+ var t = Ys(), { Buffer: i } = (Ne(), Ce(Le)), l = i.allocUnsafe(0), r = i.from([0]), n = Wl(), s = ql().nextTick, o = at()("mqtt-packet:writeToStream"), a = n.cache, c = n.generateNumber, d = n.generateCache, p = n.genBufVariableByteInt, b = n.generate4ByteBuffer, f = Y, m = !0;
4822
4822
  function y(K, L, ne) {
4823
4823
  switch (o("generate called"), L.cork && (L.cork(), s(S, L)), m && (m = !1, d()), o("generate: packet.cmd: %s", K.cmd), K.cmd) {
4824
4824
  case "connect":
@@ -4842,7 +4842,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
4842
4842
  return M(K, L, ne);
4843
4843
  case "pingreq":
4844
4844
  case "pingresp":
4845
- return O(K, L);
4845
+ return C(K, L);
4846
4846
  case "disconnect":
4847
4847
  return B(K, L, ne);
4848
4848
  case "auth":
@@ -5013,7 +5013,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
5013
5013
  }
5014
5014
  return L.write(t.ACKS[$][ee][me][0]), D(L, fe), f(L, Q), de !== null && de.write(), H === 5 && L.write(i.from(oe)), !0;
5015
5015
  }
5016
- function O(K, L, ne) {
5016
+ function C(K, L, ne) {
5017
5017
  return L.write(t.EMPTY[K.cmd]);
5018
5018
  }
5019
5019
  function B(K, L, ne) {
@@ -5201,7 +5201,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
5201
5201
  e.exports = y;
5202
5202
  }), Hl = pe((u, e) => {
5203
5203
  le(), ce(), ue();
5204
- var t = Qs(), { EventEmitter: i } = (kt(), Oe(mt)), { Buffer: l } = (Ne(), Oe(Le));
5204
+ var t = Qs(), { EventEmitter: i } = (kt(), Ce(mt)), { Buffer: l } = (Ne(), Ce(Le));
5205
5205
  function r(s, o) {
5206
5206
  let a = new n();
5207
5207
  return t(s, a, o), a.concat();
@@ -5601,7 +5601,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
5601
5601
  #h;
5602
5602
  #g;
5603
5603
  #m;
5604
- #O;
5604
+ #C;
5605
5605
  #P;
5606
5606
  ttl;
5607
5607
  ttlResolution;
@@ -5640,7 +5640,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
5640
5640
  return f.#a;
5641
5641
  }, get tail() {
5642
5642
  return f.#o;
5643
- }, free: f.#y, isBackgroundFetch: (m) => f.#t(m), backgroundFetch: (m, y, S, g) => f.#j(m, y, S, g), moveToTail: (m) => f.#C(m), indexes: (m) => f.#S(m), rindexes: (m) => f.#E(m), isStale: (m) => f.#p(m) };
5643
+ }, free: f.#y, isBackgroundFetch: (m) => f.#t(m), backgroundFetch: (m, y, S, g) => f.#j(m, y, S, g), moveToTail: (m) => f.#O(m), indexes: (m) => f.#S(m), rindexes: (m) => f.#E(m), isStale: (m) => f.#p(m) };
5644
5644
  }
5645
5645
  get max() {
5646
5646
  return this.#l;
@@ -5655,7 +5655,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
5655
5655
  return this.#i;
5656
5656
  }
5657
5657
  get fetchMethod() {
5658
- return this.#O;
5658
+ return this.#C;
5659
5659
  }
5660
5660
  get memoMethod() {
5661
5661
  return this.#P;
@@ -5667,17 +5667,17 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
5667
5667
  return this.#m;
5668
5668
  }
5669
5669
  constructor(f) {
5670
- let { max: m = 0, ttl: y, ttlResolution: S = 1, ttlAutopurge: g, updateAgeOnGet: _, updateAgeOnHas: x, allowStale: v, dispose: k, disposeAfter: E, noDisposeOnSet: I, noUpdateTTL: M, maxSize: O = 0, maxEntrySize: B = 0, sizeCalculation: T, fetchMethod: W, memoMethod: D, noDeleteOnFetchRejection: N, noDeleteOnStaleGet: ae, allowStaleOnFetchRejection: Y, allowStaleOnFetchAbort: V, ignoreFetchAbort: re } = f;
5670
+ let { max: m = 0, ttl: y, ttlResolution: S = 1, ttlAutopurge: g, updateAgeOnGet: _, updateAgeOnHas: x, allowStale: v, dispose: k, disposeAfter: E, noDisposeOnSet: I, noUpdateTTL: M, maxSize: C = 0, maxEntrySize: B = 0, sizeCalculation: T, fetchMethod: W, memoMethod: D, noDeleteOnFetchRejection: N, noDeleteOnStaleGet: ae, allowStaleOnFetchRejection: Y, allowStaleOnFetchAbort: V, ignoreFetchAbort: re } = f;
5671
5671
  if (m !== 0 && !o(m)) throw new TypeError("max option must be a nonnegative integer");
5672
5672
  let F = m ? a(m) : Array;
5673
5673
  if (!F) throw new Error("invalid max value: " + m);
5674
- if (this.#l = m, this.#h = O, this.maxEntrySize = B || this.#h, this.sizeCalculation = T, this.sizeCalculation) {
5674
+ if (this.#l = m, this.#h = C, this.maxEntrySize = B || this.#h, this.sizeCalculation = T, this.sizeCalculation) {
5675
5675
  if (!this.#h && !this.maxEntrySize) throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");
5676
5676
  if (typeof this.sizeCalculation != "function") throw new TypeError("sizeCalculation set to non-function");
5677
5677
  }
5678
5678
  if (D !== void 0 && typeof D != "function") throw new TypeError("memoMethod must be a function if defined");
5679
5679
  if (this.#P = D, W !== void 0 && typeof W != "function") throw new TypeError("fetchMethod must be a function if specified");
5680
- if (this.#O = W, this.#A = !!W, this.#n = /* @__PURE__ */ new Map(), this.#r = new Array(m).fill(void 0), this.#e = new Array(m).fill(void 0), this.#u = new F(m), this.#f = new F(m), this.#a = 0, this.#o = 0, this.#y = d.create(m), this.#i = 0, this.#b = 0, typeof k == "function" && (this.#g = k), typeof E == "function" ? (this.#m = E, this.#s = []) : (this.#m = void 0, this.#s = void 0), this.#_ = !!this.#g, this.#c = !!this.#m, this.noDisposeOnSet = !!I, this.noUpdateTTL = !!M, this.noDeleteOnFetchRejection = !!N, this.allowStaleOnFetchRejection = !!Y, this.allowStaleOnFetchAbort = !!V, this.ignoreFetchAbort = !!re, this.maxEntrySize !== 0) {
5680
+ if (this.#C = W, this.#A = !!W, this.#n = /* @__PURE__ */ new Map(), this.#r = new Array(m).fill(void 0), this.#e = new Array(m).fill(void 0), this.#u = new F(m), this.#f = new F(m), this.#a = 0, this.#o = 0, this.#y = d.create(m), this.#i = 0, this.#b = 0, typeof k == "function" && (this.#g = k), typeof E == "function" ? (this.#m = E, this.#s = []) : (this.#m = void 0, this.#s = void 0), this.#_ = !!this.#g, this.#c = !!this.#m, this.noDisposeOnSet = !!I, this.noUpdateTTL = !!M, this.noDeleteOnFetchRejection = !!N, this.allowStaleOnFetchRejection = !!Y, this.allowStaleOnFetchAbort = !!V, this.ignoreFetchAbort = !!re, this.maxEntrySize !== 0) {
5681
5681
  if (this.#h !== 0 && !o(this.#h)) throw new TypeError("maxSize must be a positive integer if specified");
5682
5682
  if (!o(this.maxEntrySize)) throw new TypeError("maxEntrySize must be a positive integer if specified");
5683
5683
  this.#$();
@@ -5877,24 +5877,24 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
5877
5877
  let I = this.#i === 0 ? void 0 : this.#n.get(f);
5878
5878
  if (I === void 0) I = this.#i === 0 ? this.#o : this.#y.length !== 0 ? this.#y.pop() : this.#i === this.#l ? this.#R(!1) : this.#i, this.#r[I] = f, this.#e[I] = m, this.#n.set(f, I), this.#u[this.#o] = I, this.#f[I] = this.#o, this.#o = I, this.#i++, this.#M(I, E, v), v && (v.set = "add"), k = !1;
5879
5879
  else {
5880
- this.#C(I);
5880
+ this.#O(I);
5881
5881
  let M = this.#e[I];
5882
5882
  if (m !== M) {
5883
5883
  if (this.#A && this.#t(M)) {
5884
5884
  M.__abortController.abort(new Error("replaced"));
5885
- let { __staleWhileFetching: O } = M;
5886
- O !== void 0 && !_ && (this.#_ && this.#g?.(O, f, "set"), this.#c && this.#s?.push([O, f, "set"]));
5885
+ let { __staleWhileFetching: C } = M;
5886
+ C !== void 0 && !_ && (this.#_ && this.#g?.(C, f, "set"), this.#c && this.#s?.push([C, f, "set"]));
5887
5887
  } else _ || (this.#_ && this.#g?.(M, f, "set"), this.#c && this.#s?.push([M, f, "set"]));
5888
5888
  if (this.#T(I), this.#M(I, E, v), this.#e[I] = m, v) {
5889
5889
  v.set = "replace";
5890
- let O = M && this.#t(M) ? M.__staleWhileFetching : M;
5891
- O !== void 0 && (v.oldValue = O);
5890
+ let C = M && this.#t(M) ? M.__staleWhileFetching : M;
5891
+ C !== void 0 && (v.oldValue = C);
5892
5892
  }
5893
5893
  } else v && (v.set = "update");
5894
5894
  }
5895
5895
  if (S !== 0 && !this.#d && this.#L(), this.#d && (k || this.#N(I, S, g), v && this.#x(v, I)), !_ && this.#c && this.#s) {
5896
- let M = this.#s, O;
5897
- for (; O = M?.shift(); ) this.#m?.(...O);
5896
+ let M = this.#s, C;
5897
+ for (; C = M?.shift(); ) this.#m?.(...C);
5898
5898
  }
5899
5899
  return this;
5900
5900
  }
@@ -5941,20 +5941,20 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
5941
5941
  let v = { signal: _.signal, options: y, context: S }, k = (T, W = !1) => {
5942
5942
  let { aborted: D } = _.signal, N = y.ignoreFetchAbort && T !== void 0;
5943
5943
  if (y.status && (D && !W ? (y.status.fetchAborted = !0, y.status.fetchError = _.signal.reason, N && (y.status.fetchAbortIgnored = !0)) : y.status.fetchResolved = !0), D && !N && !W) return I(_.signal.reason);
5944
- let ae = O;
5945
- return this.#e[m] === O && (T === void 0 ? ae.__staleWhileFetching ? this.#e[m] = ae.__staleWhileFetching : this.#k(f, "fetch") : (y.status && (y.status.fetchUpdated = !0), this.set(f, T, v.options))), T;
5944
+ let ae = C;
5945
+ return this.#e[m] === C && (T === void 0 ? ae.__staleWhileFetching ? this.#e[m] = ae.__staleWhileFetching : this.#k(f, "fetch") : (y.status && (y.status.fetchUpdated = !0), this.set(f, T, v.options))), T;
5946
5946
  }, E = (T) => (y.status && (y.status.fetchRejected = !0, y.status.fetchError = T), I(T)), I = (T) => {
5947
- let { aborted: W } = _.signal, D = W && y.allowStaleOnFetchAbort, N = D || y.allowStaleOnFetchRejection, ae = N || y.noDeleteOnFetchRejection, Y = O;
5948
- if (this.#e[m] === O && (!ae || Y.__staleWhileFetching === void 0 ? this.#k(f, "fetch") : D || (this.#e[m] = Y.__staleWhileFetching)), N) return y.status && Y.__staleWhileFetching !== void 0 && (y.status.returnedStale = !0), Y.__staleWhileFetching;
5947
+ let { aborted: W } = _.signal, D = W && y.allowStaleOnFetchAbort, N = D || y.allowStaleOnFetchRejection, ae = N || y.noDeleteOnFetchRejection, Y = C;
5948
+ if (this.#e[m] === C && (!ae || Y.__staleWhileFetching === void 0 ? this.#k(f, "fetch") : D || (this.#e[m] = Y.__staleWhileFetching)), N) return y.status && Y.__staleWhileFetching !== void 0 && (y.status.returnedStale = !0), Y.__staleWhileFetching;
5949
5949
  if (Y.__returned === Y) throw T;
5950
5950
  }, M = (T, W) => {
5951
- let D = this.#O?.(f, g, v);
5951
+ let D = this.#C?.(f, g, v);
5952
5952
  D && D instanceof Promise && D.then((N) => T(N === void 0 ? void 0 : N), W), _.signal.addEventListener("abort", () => {
5953
5953
  (!y.ignoreFetchAbort || y.allowStaleOnFetchAbort) && (T(void 0), y.allowStaleOnFetchAbort && (T = (N) => k(N, !0)));
5954
5954
  });
5955
5955
  };
5956
5956
  y.status && (y.status.fetchDispatched = !0);
5957
- let O = new Promise(M).then(k, E), B = Object.assign(O, { __abortController: _, __staleWhileFetching: g, __returned: void 0 });
5957
+ let C = new Promise(M).then(k, E), B = Object.assign(C, { __abortController: _, __staleWhileFetching: g, __returned: void 0 });
5958
5958
  return m === void 0 ? (this.set(f, B, { ...v.options, status: void 0 }), m = this.#n.get(f)) : this.#e[m] = B, B;
5959
5959
  }
5960
5960
  #t(f) {
@@ -5963,9 +5963,9 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
5963
5963
  return !!m && m instanceof Promise && m.hasOwnProperty("__staleWhileFetching") && m.__abortController instanceof r;
5964
5964
  }
5965
5965
  async fetch(f, m = {}) {
5966
- let { allowStale: y = this.allowStale, updateAgeOnGet: S = this.updateAgeOnGet, noDeleteOnStaleGet: g = this.noDeleteOnStaleGet, ttl: _ = this.ttl, noDisposeOnSet: x = this.noDisposeOnSet, size: v = 0, sizeCalculation: k = this.sizeCalculation, noUpdateTTL: E = this.noUpdateTTL, noDeleteOnFetchRejection: I = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: M = this.allowStaleOnFetchRejection, ignoreFetchAbort: O = this.ignoreFetchAbort, allowStaleOnFetchAbort: B = this.allowStaleOnFetchAbort, context: T, forceRefresh: W = !1, status: D, signal: N } = m;
5966
+ let { allowStale: y = this.allowStale, updateAgeOnGet: S = this.updateAgeOnGet, noDeleteOnStaleGet: g = this.noDeleteOnStaleGet, ttl: _ = this.ttl, noDisposeOnSet: x = this.noDisposeOnSet, size: v = 0, sizeCalculation: k = this.sizeCalculation, noUpdateTTL: E = this.noUpdateTTL, noDeleteOnFetchRejection: I = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: M = this.allowStaleOnFetchRejection, ignoreFetchAbort: C = this.ignoreFetchAbort, allowStaleOnFetchAbort: B = this.allowStaleOnFetchAbort, context: T, forceRefresh: W = !1, status: D, signal: N } = m;
5967
5967
  if (!this.#A) return D && (D.fetch = "get"), this.get(f, { allowStale: y, updateAgeOnGet: S, noDeleteOnStaleGet: g, status: D });
5968
- let ae = { allowStale: y, updateAgeOnGet: S, noDeleteOnStaleGet: g, ttl: _, noDisposeOnSet: x, size: v, sizeCalculation: k, noUpdateTTL: E, noDeleteOnFetchRejection: I, allowStaleOnFetchRejection: M, allowStaleOnFetchAbort: B, ignoreFetchAbort: O, status: D, signal: N }, Y = this.#n.get(f);
5968
+ let ae = { allowStale: y, updateAgeOnGet: S, noDeleteOnStaleGet: g, ttl: _, noDisposeOnSet: x, size: v, sizeCalculation: k, noUpdateTTL: E, noDeleteOnFetchRejection: I, allowStaleOnFetchRejection: M, allowStaleOnFetchAbort: B, ignoreFetchAbort: C, status: D, signal: N }, Y = this.#n.get(f);
5969
5969
  if (Y === void 0) {
5970
5970
  D && (D.fetch = "miss");
5971
5971
  let V = this.#j(f, Y, ae, T);
@@ -5977,7 +5977,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
5977
5977
  return D && (D.fetch = "inflight", P && (D.returnedStale = !0)), P ? V.__staleWhileFetching : V.__returned = V;
5978
5978
  }
5979
5979
  let re = this.#p(Y);
5980
- if (!W && !re) return D && (D.fetch = "hit"), this.#C(Y), S && this.#I(Y), D && this.#x(D, Y), V;
5980
+ if (!W && !re) return D && (D.fetch = "hit"), this.#O(Y), S && this.#I(Y), D && this.#x(D, Y), V;
5981
5981
  let F = this.#j(f, Y, ae, T), Z = F.__staleWhileFetching !== void 0 && y;
5982
5982
  return D && (D.fetch = re ? "stale" : "refresh", Z && re && (D.returnedStale = !0)), Z ? F.__staleWhileFetching : F.__returned = F;
5983
5983
  }
@@ -5999,13 +5999,13 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
5999
5999
  let { allowStale: y = this.allowStale, updateAgeOnGet: S = this.updateAgeOnGet, noDeleteOnStaleGet: g = this.noDeleteOnStaleGet, status: _ } = m, x = this.#n.get(f);
6000
6000
  if (x !== void 0) {
6001
6001
  let v = this.#e[x], k = this.#t(v);
6002
- return _ && this.#x(_, x), this.#p(x) ? (_ && (_.get = "stale"), k ? (_ && y && v.__staleWhileFetching !== void 0 && (_.returnedStale = !0), y ? v.__staleWhileFetching : void 0) : (g || this.#k(f, "expire"), _ && y && (_.returnedStale = !0), y ? v : void 0)) : (_ && (_.get = "hit"), k ? v.__staleWhileFetching : (this.#C(x), S && this.#I(x), v));
6002
+ return _ && this.#x(_, x), this.#p(x) ? (_ && (_.get = "stale"), k ? (_ && y && v.__staleWhileFetching !== void 0 && (_.returnedStale = !0), y ? v.__staleWhileFetching : void 0) : (g || this.#k(f, "expire"), _ && y && (_.returnedStale = !0), y ? v : void 0)) : (_ && (_.get = "hit"), k ? v.__staleWhileFetching : (this.#O(x), S && this.#I(x), v));
6003
6003
  } else _ && (_.get = "miss");
6004
6004
  }
6005
6005
  #D(f, m) {
6006
6006
  this.#f[m] = f, this.#u[f] = m;
6007
6007
  }
6008
- #C(f) {
6008
+ #O(f) {
6009
6009
  f !== this.#o && (f === this.#a ? this.#a = this.#u[f] : this.#D(this.#f[f], this.#u[f]), this.#D(this.#o, f), this.#o = f);
6010
6010
  }
6011
6011
  delete(f) {
@@ -7698,7 +7698,7 @@ var Ht, Zn, Ot, Us, Bs, Ds, Fs, $s, Ws, kt = He(() => {
7698
7698
  return r && r.__esModule ? r : { default: r };
7699
7699
  };
7700
7700
  Object.defineProperty(u, "__esModule", { value: !0 }), u.TypedEventEmitter = void 0;
7701
- var t = e((kt(), Oe(mt))), i = Nt(), l = class {
7701
+ var t = e((kt(), Ce(mt))), i = Nt(), l = class {
7702
7702
  };
7703
7703
  u.TypedEventEmitter = l, (0, i.applyMixin)(l, t.default);
7704
7704
  }), jr = pe((u, e) => {
@@ -7891,8 +7891,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7891
7891
  function a(S, g, _, x) {
7892
7892
  var v = g && g.prototype instanceof d ? g : d, k = Object.create(v.prototype);
7893
7893
  return t(k, "_invoke", (function(E, I, M) {
7894
- var O, B, T, W = 0, D = M || [], N = !1, ae = { p: 0, n: 0, v: l, a: Y, f: Y.bind(l, 4), d: function(V, re) {
7895
- return O = V, B = 0, T = l, ae.n = re, c;
7894
+ var C, B, T, W = 0, D = M || [], N = !1, ae = { p: 0, n: 0, v: l, a: Y, f: Y.bind(l, 4), d: function(V, re) {
7895
+ return C = V, B = 0, T = l, ae.n = re, c;
7896
7896
  } };
7897
7897
  function Y(V, re) {
7898
7898
  for (B = V, T = re, r = 0; !N && W && !F && r < D.length; r++) {
@@ -7905,18 +7905,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7905
7905
  return function(V, re, F) {
7906
7906
  if (W > 1) throw TypeError("Generator is already running");
7907
7907
  for (N && re === 1 && Y(re, F), B = re, T = F; (r = B < 2 ? l : T) || !N; ) {
7908
- O || (B ? B < 3 ? (B > 1 && (ae.n = -1), Y(B, T)) : ae.n = T : ae.v = T);
7908
+ C || (B ? B < 3 ? (B > 1 && (ae.n = -1), Y(B, T)) : ae.n = T : ae.v = T);
7909
7909
  try {
7910
- if (W = 2, O) {
7911
- if (B || (V = "next"), r = O[V]) {
7912
- if (!(r = r.call(O, T))) throw TypeError("iterator result is not an object");
7910
+ if (W = 2, C) {
7911
+ if (B || (V = "next"), r = C[V]) {
7912
+ if (!(r = r.call(C, T))) throw TypeError("iterator result is not an object");
7913
7913
  if (!r.done) return r;
7914
7914
  T = r.value, B < 2 && (B = 0);
7915
- } else B === 1 && (r = O.return) && r.call(O), B < 2 && (T = TypeError("The iterator does not provide a '" + V + "' method"), B = 1);
7916
- O = l;
7915
+ } else B === 1 && (r = C.return) && r.call(C), B < 2 && (T = TypeError("The iterator does not provide a '" + V + "' method"), B = 1);
7916
+ C = l;
7917
7917
  } else if ((r = (N = ae.n < 0) ? T : E.call(I, ae)) !== c) break;
7918
7918
  } catch (Z) {
7919
- O = l, B = 1, T = Z;
7919
+ C = l, B = 1, T = Z;
7920
7920
  } finally {
7921
7921
  W = 1;
7922
7922
  }
@@ -8009,7 +8009,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8009
8009
  };
8010
8010
  }
8011
8011
  e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
8012
- }), Cu = pe((u, e) => {
8012
+ }), Ou = pe((u, e) => {
8013
8013
  le(), ce(), ue();
8014
8014
  var t = jr().default;
8015
8015
  function i(l) {
@@ -8024,9 +8024,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8024
8024
  throw new TypeError(t(l) + " is not iterable");
8025
8025
  }
8026
8026
  e.exports = i, e.exports.__esModule = !0, e.exports.default = e.exports;
8027
- }), Ou = pe((u, e) => {
8027
+ }), Cu = pe((u, e) => {
8028
8028
  le(), ce(), ue();
8029
- var t = ba(), i = va(), l = Iu(), r = _a(), n = wa(), s = Tu(), o = Cu();
8029
+ var t = ba(), i = va(), l = Iu(), r = _a(), n = wa(), s = Tu(), o = Ou();
8030
8030
  function a() {
8031
8031
  var c = i(), d = c.m(a), p = (Object.getPrototypeOf ? Object.getPrototypeOf(d) : d.__proto__).constructor;
8032
8032
  function b(y) {
@@ -8075,7 +8075,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8075
8075
  e.exports = a, e.exports.__esModule = !0, e.exports.default = e.exports;
8076
8076
  }), Pu = pe((u, e) => {
8077
8077
  le(), ce(), ue();
8078
- var t = Ou()();
8078
+ var t = Cu()();
8079
8079
  e.exports = t;
8080
8080
  try {
8081
8081
  regeneratorRuntime = t;
@@ -8115,15 +8115,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8115
8115
  var x = _.call;
8116
8116
  return n(s.mark(function v() {
8117
8117
  var k, E, I, M;
8118
- return s.wrap(function(O) {
8119
- for (; ; ) switch (O.prev = O.next) {
8118
+ return s.wrap(function(C) {
8119
+ for (; ; ) switch (C.prev = C.next) {
8120
8120
  case 0:
8121
- return k = new MessageChannel(), E = k.port1, I = k.port2, O.next = 1, x("connect", { port: E }, [E]);
8121
+ return k = new MessageChannel(), E = k.port1, I = k.port2, C.next = 1, x("connect", { port: E }, [E]);
8122
8122
  case 1:
8123
- return M = O.sent, a.set(I, M), O.abrupt("return", I);
8123
+ return M = C.sent, a.set(I, M), C.abrupt("return", I);
8124
8124
  case 2:
8125
8125
  case "end":
8126
- return O.stop();
8126
+ return C.stop();
8127
8127
  }
8128
8128
  }, v);
8129
8129
  }));
@@ -8204,8 +8204,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8204
8204
  }, E = function(D, N) {
8205
8205
  var ae = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
8206
8206
  x.postMessage({ id: null, method: D, params: N }, ae);
8207
- }, I = {}, M = 0, O = Object.entries(_); M < O.length; M++) {
8208
- var B = l(O[M], 2), T = B[0], W = B[1];
8207
+ }, I = {}, M = 0, C = Object.entries(_); M < C.length; M++) {
8208
+ var B = l(C[M], 2), T = B[0], W = B[1];
8209
8209
  I = f(f({}, I), {}, i({}, T, W({ call: k, notify: E })));
8210
8210
  }
8211
8211
  return f({}, I);
@@ -8459,17 +8459,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8459
8459
  I[3](null, 0);
8460
8460
  }, this.options.writeCache || (r.default.writeToStream.cacheNumbers = !1), this.streamBuilder = k, this.messageIdProvider = typeof this.options.messageIdProvider > "u" ? new p.default() : this.options.messageIdProvider, this.outgoingStore = E.outgoingStore || new c.default(), this.incomingStore = E.incomingStore || new c.default(), this.queueQoSZero = E.queueQoSZero === void 0 ? !0 : E.queueQoSZero, this._resubscribeTopics = {}, this.messageIdToTopic = {}, this.keepaliveManager = null, this.connected = !1, this.disconnecting = !1, this.reconnecting = !1, this.queue = [], this.connackTimer = null, this.reconnectTimer = null, this._storeProcessing = !1, this._packetIdsDuringStoreProcessing = {}, this._storeProcessingQueue = [], this.outgoing = {}, this._firstConnection = !0, E.properties && E.properties.topicAliasMaximum > 0 && (E.properties.topicAliasMaximum > 65535 ? this.log("MqttClient :: options.properties.topicAliasMaximum is out of range") : this.topicAliasRecv = new b.default(E.properties.topicAliasMaximum)), this.on("connect", () => {
8461
8461
  let { queue: I } = this, M = () => {
8462
- let O = I.shift();
8463
- this.log("deliver :: entry %o", O);
8462
+ let C = I.shift();
8463
+ this.log("deliver :: entry %o", C);
8464
8464
  let B = null;
8465
- if (!O) {
8465
+ if (!C) {
8466
8466
  this._resubscribe();
8467
8467
  return;
8468
8468
  }
8469
- B = O.packet, this.log("deliver :: call _sendPacket for %o", B);
8469
+ B = C.packet, this.log("deliver :: call _sendPacket for %o", B);
8470
8470
  let T = !0;
8471
8471
  B.messageId && B.messageId !== 0 && (this.messageIdProvider.register(B.messageId) || (T = !1)), T ? this._sendPacket(B, (W) => {
8472
- O.cb && O.cb(W), M();
8472
+ C.cb && C.cb(W), M();
8473
8473
  }) : (this.log("messageId: %d has already used. The message is skipped and removed.", B.messageId), M());
8474
8474
  };
8475
8475
  this.log("connect :: sending queued packets"), M();
@@ -8494,7 +8494,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8494
8494
  this.log("connect :: calling method to clear reconnect"), this._clearReconnect(), this.disconnected && !this.reconnecting && (this.incomingStore = this.options.incomingStore || new c.default(), this.outgoingStore = this.options.outgoingStore || new c.default(), this.disconnecting = !1, this.disconnected = !1), this.log("connect :: using streamBuilder provided to client to create stream"), this.stream = this.streamBuilder(this), E.on("packet", (D) => {
8495
8495
  this.log("parser :: on packet push to packets array."), M.push(D);
8496
8496
  });
8497
- let O = () => {
8497
+ let C = () => {
8498
8498
  this.log("work :: getting next packet in queue");
8499
8499
  let D = M.shift();
8500
8500
  if (D) this.log("work :: packet pulled from queue"), (0, d.default)(this, D, B);
@@ -8504,14 +8504,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8504
8504
  I = null, this.log("work :: done flag is %s", !!N), N && N();
8505
8505
  }
8506
8506
  }, B = () => {
8507
- if (M.length) (0, f.nextTick)(O);
8507
+ if (M.length) (0, f.nextTick)(C);
8508
8508
  else {
8509
8509
  let D = I;
8510
8510
  I = null, D();
8511
8511
  }
8512
8512
  };
8513
8513
  k._write = (D, N, ae) => {
8514
- I = ae, this.log("writable stream :: parsing buffer"), E.parse(D), O();
8514
+ I = ae, this.log("writable stream :: parsing buffer"), E.parse(D), C();
8515
8515
  };
8516
8516
  let T = (D) => {
8517
8517
  this.log("streamErrorHandler :: error", D.message), D.code ? (this.log("streamErrorHandler :: emitting error"), this.emit("error", D)) : this.noop(D);
@@ -8533,7 +8533,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8533
8533
  }
8534
8534
  publish(k, E, I, M) {
8535
8535
  this.log("publish :: message `%s` to topic `%s`", E, k);
8536
- let { options: O } = this;
8536
+ let { options: C } = this;
8537
8537
  typeof I == "function" && (M = I, I = null), I = I || {}, I = { qos: 0, retain: !1, dup: !1, ...I };
8538
8538
  let { qos: B, retain: T, dup: W, properties: D, cbStorePut: N } = I;
8539
8539
  if (this._checkDisconnecting(M)) return this;
@@ -8541,7 +8541,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8541
8541
  let Y = 0;
8542
8542
  if ((B === 1 || B === 2) && (Y = this._nextId(), Y === null)) return this.log("No messageId left"), !1;
8543
8543
  let V = { cmd: "publish", topic: k, payload: E, qos: B, retain: T, messageId: Y, dup: W };
8544
- switch (O.protocolVersion === 5 && (V.properties = D), this.log("publish :: qos", B), B) {
8544
+ switch (C.protocolVersion === 5 && (V.properties = D), this.log("publish :: qos", B), B) {
8545
8545
  case 1:
8546
8546
  case 2:
8547
8547
  this.outgoing[V.messageId] = { volatile: !1, cb: M || this.noop }, this.log("MqttClient:publish: packet cmd: %s", V.cmd), this._sendPacket(V, void 0, N);
@@ -8555,24 +8555,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8555
8555
  return (this._storeProcessing || this._storeProcessingQueue.length > 0 || !ae()) && this._storeProcessingQueue.push({ invoke: ae, cbStorePut: I.cbStorePut, callback: M }), this;
8556
8556
  }
8557
8557
  publishAsync(k, E, I) {
8558
- return new Promise((M, O) => {
8558
+ return new Promise((M, C) => {
8559
8559
  this.publish(k, E, I, (B, T) => {
8560
- B ? O(B) : M(T);
8560
+ B ? C(B) : M(T);
8561
8561
  });
8562
8562
  });
8563
8563
  }
8564
8564
  subscribe(k, E, I) {
8565
8565
  let M = this.options.protocolVersion;
8566
8566
  typeof E == "function" && (I = E), I = I || this.noop;
8567
- let O = !1, B = [];
8568
- typeof k == "string" ? (k = [k], B = k) : Array.isArray(k) ? B = k : typeof k == "object" && (O = k.resubscribe, delete k.resubscribe, B = Object.keys(k));
8567
+ let C = !1, B = [];
8568
+ typeof k == "string" ? (k = [k], B = k) : Array.isArray(k) ? B = k : typeof k == "object" && (C = k.resubscribe, delete k.resubscribe, B = Object.keys(k));
8569
8569
  let T = a.validateTopics(B);
8570
8570
  if (T !== null) return g(I, new Error(`Invalid topic ${T}`)), this;
8571
8571
  if (this._checkDisconnecting(I)) return this.log("subscribe: discconecting true"), this;
8572
8572
  let W = { qos: 0 };
8573
8573
  M === 5 && (W.nl = !1, W.rap = !1, W.rh = 0), E = { ...W, ...E };
8574
8574
  let { properties: D } = E, N = [], ae = (re, F) => {
8575
- if (F = F || E, !Object.prototype.hasOwnProperty.call(this._resubscribeTopics, re) || this._resubscribeTopics[re].qos < F.qos || O) {
8575
+ if (F = F || E, !Object.prototype.hasOwnProperty.call(this._resubscribeTopics, re) || this._resubscribeTopics[re].qos < F.qos || C) {
8576
8576
  let Z = { topic: re, qos: F.qos };
8577
8577
  M === 5 && (Z.nl = F.nl, Z.rap = F.rap, Z.rh = F.rh, Z.properties = D), this.log("subscribe: pushing topic `%s` and qos `%s` to subs list", Z.topic, Z.qos), N.push(Z);
8578
8578
  }
@@ -8621,8 +8621,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8621
8621
  }
8622
8622
  subscribeAsync(k, E) {
8623
8623
  return new Promise((I, M) => {
8624
- this.subscribe(k, E, (O, B) => {
8625
- O ? M(O) : I(B);
8624
+ this.subscribe(k, E, (C, B) => {
8625
+ C ? M(C) : I(B);
8626
8626
  });
8627
8627
  });
8628
8628
  }
@@ -8631,7 +8631,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8631
8631
  let M = a.validateTopics(k);
8632
8632
  if (M !== null) return g(I, new Error(`Invalid topic ${M}`)), this;
8633
8633
  if (this._checkDisconnecting(I)) return this;
8634
- let O = () => {
8634
+ let C = () => {
8635
8635
  let B = this._nextId();
8636
8636
  if (B === null) return this.log("No messageId left"), !1;
8637
8637
  let T = { cmd: "unsubscribe", messageId: B, unsubscriptions: [] };
@@ -8639,12 +8639,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8639
8639
  delete this._resubscribeTopics[W];
8640
8640
  }), typeof E == "object" && E.properties && (T.properties = E.properties), this.outgoing[T.messageId] = { volatile: !0, cb: I }, this.log("unsubscribe: call _sendPacket"), this._sendPacket(T), !0;
8641
8641
  };
8642
- return (this._storeProcessing || this._storeProcessingQueue.length > 0 || !O()) && this._storeProcessingQueue.push({ invoke: O, callback: I }), this;
8642
+ return (this._storeProcessing || this._storeProcessingQueue.length > 0 || !C()) && this._storeProcessingQueue.push({ invoke: C, callback: I }), this;
8643
8643
  }
8644
8644
  unsubscribeAsync(k, E) {
8645
8645
  return new Promise((I, M) => {
8646
- this.unsubscribe(k, E, (O, B) => {
8647
- O ? M(O) : I(B);
8646
+ this.unsubscribe(k, E, (C, B) => {
8647
+ C ? M(C) : I(B);
8648
8648
  });
8649
8649
  });
8650
8650
  }
@@ -8659,17 +8659,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8659
8659
  }
8660
8660
  });
8661
8661
  }), this._deferredReconnect ? this._deferredReconnect() : (this.options.reconnectPeriod === 0 || this.options.manualConnect) && (this.disconnecting = !1);
8662
- }, O = () => {
8662
+ }, C = () => {
8663
8663
  this.log("end :: (%s) :: finish :: calling _cleanUp with force %s", this.options.clientId, k), this._cleanUp(k, () => {
8664
8664
  this.log("end :: finish :: calling process.nextTick on closeStores"), (0, f.nextTick)(M);
8665
8665
  }, E);
8666
8666
  };
8667
- return this.disconnecting ? (I(), this) : (this._clearReconnect(), this.disconnecting = !0, !k && Object.keys(this.outgoing).length > 0 ? (this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty", this.options.clientId), this.once("outgoingEmpty", setTimeout.bind(null, O, 10))) : (this.log("end :: (%s) :: immediately calling finish", this.options.clientId), O()), this);
8667
+ return this.disconnecting ? (I(), this) : (this._clearReconnect(), this.disconnecting = !0, !k && Object.keys(this.outgoing).length > 0 ? (this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty", this.options.clientId), this.once("outgoingEmpty", setTimeout.bind(null, C, 10))) : (this.log("end :: (%s) :: immediately calling finish", this.options.clientId), C()), this);
8668
8668
  }
8669
8669
  endAsync(k, E) {
8670
8670
  return new Promise((I, M) => {
8671
- this.end(k, E, (O) => {
8672
- O ? M(O) : I();
8671
+ this.end(k, E, (C) => {
8672
+ C ? M(C) : I();
8673
8673
  });
8674
8674
  });
8675
8675
  }
@@ -8742,8 +8742,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8742
8742
  }
8743
8743
  _storeAndSend(k, E, I) {
8744
8744
  this.log("storeAndSend :: store packet with cmd %s to outgoingStore", k.cmd);
8745
- let M = k, O;
8746
- if (M.cmd === "publish" && (M = (0, s.default)(k), O = this._removeTopicAliasAndRecoverTopicName(M), O)) return E && E(O);
8745
+ let M = k, C;
8746
+ if (M.cmd === "publish" && (M = (0, s.default)(k), C = this._removeTopicAliasAndRecoverTopicName(M), C)) return E && E(C);
8747
8747
  this.outgoingStore.put(M, (B) => {
8748
8748
  if (B) return E && E(B);
8749
8749
  I(), this._writePacket(k, E);
@@ -8770,9 +8770,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8770
8770
  }
8771
8771
  _sendPacket(k, E, I, M) {
8772
8772
  this.log("_sendPacket :: (%s) :: start", this.options.clientId), I = I || this.noop, E = E || this.noop;
8773
- let O = this._applyTopicAlias(k);
8774
- if (O) {
8775
- E(O);
8773
+ let C = this._applyTopicAlias(k);
8774
+ if (C) {
8775
+ E(C);
8776
8776
  return;
8777
8777
  }
8778
8778
  if (!this.connected) {
@@ -8816,8 +8816,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8816
8816
  let B = this._removeTopicAliasAndRecoverTopicName(M);
8817
8817
  if (B) return E && E(B);
8818
8818
  }
8819
- let O = M.qos || 0;
8820
- O === 0 && this.queueQoSZero || M.cmd !== "publish" ? this.queue.push({ packet: M, cb: E }) : O > 0 ? (E = this.outgoing[M.messageId] ? this.outgoing[M.messageId].cb : null, this.outgoingStore.put(M, (B) => {
8819
+ let C = M.qos || 0;
8820
+ C === 0 && this.queueQoSZero || M.cmd !== "publish" ? this.queue.push({ packet: M, cb: E }) : C > 0 ? (E = this.outgoing[M.messageId] ? this.outgoing[M.messageId].cb : null, this.outgoingStore.put(M, (B) => {
8821
8821
  if (B) return E && E(B);
8822
8822
  I();
8823
8823
  })) : E && E(new Error("No connection to broker"));
@@ -8861,12 +8861,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8861
8861
  this.connackPacket = k, this.messageIdProvider.clear(), this._setupKeepaliveManager(), this.connected = !0;
8862
8862
  let E = () => {
8863
8863
  let I = this.outgoingStore.createStream(), M = () => {
8864
- I.destroy(), I = null, this._flushStoreProcessingQueue(), O();
8865
- }, O = () => {
8864
+ I.destroy(), I = null, this._flushStoreProcessingQueue(), C();
8865
+ }, C = () => {
8866
8866
  this._storeProcessing = !1, this._packetIdsDuringStoreProcessing = {};
8867
8867
  };
8868
8868
  this.once("close", M), I.on("error", (T) => {
8869
- O(), this._flushStoreProcessingQueue(), this.removeListener("close", M), this.emit("error", T);
8869
+ C(), this._flushStoreProcessingQueue(), this.removeListener("close", M), this.emit("error", T);
8870
8870
  });
8871
8871
  let B = () => {
8872
8872
  if (!I) return;
@@ -8889,7 +8889,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8889
8889
  T = !1;
8890
8890
  break;
8891
8891
  }
8892
- this.removeListener("close", M), T ? (O(), this._invokeAllStoreProcessingQueue(), this.emit("connect", k)) : E();
8892
+ this.removeListener("close", M), T ? (C(), this._invokeAllStoreProcessingQueue(), this.emit("connect", k)) : E();
8893
8893
  }), B();
8894
8894
  };
8895
8895
  E();
@@ -8945,48 +8945,48 @@ function Uu() {
8945
8945
  if (ni) return ir;
8946
8946
  ni = !0;
8947
8947
  let u = 2147483647, e = 36, t = 1, i = 26, l = 38, r = 700, n = 72, s = 128, o = "-", a = /^xn--/, c = /[^\0-\x7F]/, d = /[\x2E\u3002\uFF0E\uFF61]/g, p = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, b = e - t, f = Math.floor, m = String.fromCharCode;
8948
- function y(O) {
8949
- throw new RangeError(p[O]);
8948
+ function y(C) {
8949
+ throw new RangeError(p[C]);
8950
8950
  }
8951
- function S(O, B) {
8952
- let T = [], W = O.length;
8953
- for (; W--; ) T[W] = B(O[W]);
8951
+ function S(C, B) {
8952
+ let T = [], W = C.length;
8953
+ for (; W--; ) T[W] = B(C[W]);
8954
8954
  return T;
8955
8955
  }
8956
- function g(O, B) {
8957
- let T = O.split("@"), W = "";
8958
- T.length > 1 && (W = T[0] + "@", O = T[1]), O = O.replace(d, ".");
8959
- let D = O.split("."), N = S(D, B).join(".");
8956
+ function g(C, B) {
8957
+ let T = C.split("@"), W = "";
8958
+ T.length > 1 && (W = T[0] + "@", C = T[1]), C = C.replace(d, ".");
8959
+ let D = C.split("."), N = S(D, B).join(".");
8960
8960
  return W + N;
8961
8961
  }
8962
- function _(O) {
8963
- let B = [], T = 0, W = O.length;
8962
+ function _(C) {
8963
+ let B = [], T = 0, W = C.length;
8964
8964
  for (; T < W; ) {
8965
- let D = O.charCodeAt(T++);
8965
+ let D = C.charCodeAt(T++);
8966
8966
  if (D >= 55296 && D <= 56319 && T < W) {
8967
- let N = O.charCodeAt(T++);
8967
+ let N = C.charCodeAt(T++);
8968
8968
  (N & 64512) == 56320 ? B.push(((D & 1023) << 10) + (N & 1023) + 65536) : (B.push(D), T--);
8969
8969
  } else B.push(D);
8970
8970
  }
8971
8971
  return B;
8972
8972
  }
8973
- let x = (O) => String.fromCodePoint(...O), v = function(O) {
8974
- return O >= 48 && O < 58 ? 26 + (O - 48) : O >= 65 && O < 91 ? O - 65 : O >= 97 && O < 123 ? O - 97 : e;
8975
- }, k = function(O, B) {
8976
- return O + 22 + 75 * (O < 26) - ((B != 0) << 5);
8977
- }, E = function(O, B, T) {
8973
+ let x = (C) => String.fromCodePoint(...C), v = function(C) {
8974
+ return C >= 48 && C < 58 ? 26 + (C - 48) : C >= 65 && C < 91 ? C - 65 : C >= 97 && C < 123 ? C - 97 : e;
8975
+ }, k = function(C, B) {
8976
+ return C + 22 + 75 * (C < 26) - ((B != 0) << 5);
8977
+ }, E = function(C, B, T) {
8978
8978
  let W = 0;
8979
- for (O = T ? f(O / r) : O >> 1, O += f(O / B); O > b * i >> 1; W += e) O = f(O / b);
8980
- return f(W + (b + 1) * O / (O + l));
8981
- }, I = function(O) {
8982
- let B = [], T = O.length, W = 0, D = s, N = n, ae = O.lastIndexOf(o);
8979
+ for (C = T ? f(C / r) : C >> 1, C += f(C / B); C > b * i >> 1; W += e) C = f(C / b);
8980
+ return f(W + (b + 1) * C / (C + l));
8981
+ }, I = function(C) {
8982
+ let B = [], T = C.length, W = 0, D = s, N = n, ae = C.lastIndexOf(o);
8983
8983
  ae < 0 && (ae = 0);
8984
- for (let Y = 0; Y < ae; ++Y) O.charCodeAt(Y) >= 128 && y("not-basic"), B.push(O.charCodeAt(Y));
8984
+ for (let Y = 0; Y < ae; ++Y) C.charCodeAt(Y) >= 128 && y("not-basic"), B.push(C.charCodeAt(Y));
8985
8985
  for (let Y = ae > 0 ? ae + 1 : 0; Y < T; ) {
8986
8986
  let V = W;
8987
8987
  for (let F = 1, Z = e; ; Z += e) {
8988
8988
  Y >= T && y("invalid-input");
8989
- let P = v(O.charCodeAt(Y++));
8989
+ let P = v(C.charCodeAt(Y++));
8990
8990
  P >= e && y("invalid-input"), P > f((u - W) / F) && y("overflow"), W += P * F;
8991
8991
  let J = Z <= N ? t : Z >= N + i ? i : Z - N;
8992
8992
  if (P < J) break;
@@ -8997,18 +8997,18 @@ function Uu() {
8997
8997
  N = E(W - V, re, V == 0), f(W / re) > u - D && y("overflow"), D += f(W / re), W %= re, B.splice(W++, 0, D);
8998
8998
  }
8999
8999
  return String.fromCodePoint(...B);
9000
- }, M = function(O) {
9000
+ }, M = function(C) {
9001
9001
  let B = [];
9002
- O = _(O);
9003
- let T = O.length, W = s, D = 0, N = n;
9004
- for (let V of O) V < 128 && B.push(m(V));
9002
+ C = _(C);
9003
+ let T = C.length, W = s, D = 0, N = n;
9004
+ for (let V of C) V < 128 && B.push(m(V));
9005
9005
  let ae = B.length, Y = ae;
9006
9006
  for (ae && B.push(o); Y < T; ) {
9007
9007
  let V = u;
9008
- for (let F of O) F >= W && F < V && (V = F);
9008
+ for (let F of C) F >= W && F < V && (V = F);
9009
9009
  let re = Y + 1;
9010
9010
  V - W > f((u - D) / re) && y("overflow"), D += (V - W) * re, W = V;
9011
- for (let F of O) if (F < W && ++D > u && y("overflow"), F === W) {
9011
+ for (let F of C) if (F < W && ++D > u && y("overflow"), F === W) {
9012
9012
  let Z = D;
9013
9013
  for (let P = e; ; P += e) {
9014
9014
  let J = P <= N ? t : P >= N + i ? i : P - N;
@@ -9022,12 +9022,12 @@ function Uu() {
9022
9022
  }
9023
9023
  return B.join("");
9024
9024
  };
9025
- return ir = { version: "2.3.1", ucs2: { decode: _, encode: x }, decode: I, encode: M, toASCII: function(O) {
9026
- return g(O, function(B) {
9025
+ return ir = { version: "2.3.1", ucs2: { decode: _, encode: x }, decode: I, encode: M, toASCII: function(C) {
9026
+ return g(C, function(B) {
9027
9027
  return c.test(B) ? "xn--" + M(B) : B;
9028
9028
  });
9029
- }, toUnicode: function(O) {
9030
- return g(O, function(B) {
9029
+ }, toUnicode: function(C) {
9030
+ return g(C, function(B) {
9031
9031
  return a.test(B) ? I(B.slice(4).toLowerCase()) : B;
9032
9032
  });
9033
9033
  } }, ir;
@@ -9183,13 +9183,13 @@ function Ut() {
9183
9183
  Z && m && (re = m(Z.prototype));
9184
9184
  }
9185
9185
  return g[V] = re, re;
9186
- }, v = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, k = Ji(), E = Gu(), I = k.call(Function.call, Array.prototype.concat), M = k.call(Function.apply, Array.prototype.splice), O = k.call(Function.call, String.prototype.replace), B = k.call(Function.call, String.prototype.slice), T = k.call(Function.call, RegExp.prototype.exec), W = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, D = /\\(\\)?/g, N = function(Y) {
9186
+ }, v = { __proto__: null, "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"], "%ArrayPrototype%": ["Array", "prototype"], "%ArrayProto_entries%": ["Array", "prototype", "entries"], "%ArrayProto_forEach%": ["Array", "prototype", "forEach"], "%ArrayProto_keys%": ["Array", "prototype", "keys"], "%ArrayProto_values%": ["Array", "prototype", "values"], "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"], "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"], "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"], "%BooleanPrototype%": ["Boolean", "prototype"], "%DataViewPrototype%": ["DataView", "prototype"], "%DatePrototype%": ["Date", "prototype"], "%ErrorPrototype%": ["Error", "prototype"], "%EvalErrorPrototype%": ["EvalError", "prototype"], "%Float32ArrayPrototype%": ["Float32Array", "prototype"], "%Float64ArrayPrototype%": ["Float64Array", "prototype"], "%FunctionPrototype%": ["Function", "prototype"], "%Generator%": ["GeneratorFunction", "prototype"], "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"], "%Int8ArrayPrototype%": ["Int8Array", "prototype"], "%Int16ArrayPrototype%": ["Int16Array", "prototype"], "%Int32ArrayPrototype%": ["Int32Array", "prototype"], "%JSONParse%": ["JSON", "parse"], "%JSONStringify%": ["JSON", "stringify"], "%MapPrototype%": ["Map", "prototype"], "%NumberPrototype%": ["Number", "prototype"], "%ObjectPrototype%": ["Object", "prototype"], "%ObjProto_toString%": ["Object", "prototype", "toString"], "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"], "%PromisePrototype%": ["Promise", "prototype"], "%PromiseProto_then%": ["Promise", "prototype", "then"], "%Promise_all%": ["Promise", "all"], "%Promise_reject%": ["Promise", "reject"], "%Promise_resolve%": ["Promise", "resolve"], "%RangeErrorPrototype%": ["RangeError", "prototype"], "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"], "%RegExpPrototype%": ["RegExp", "prototype"], "%SetPrototype%": ["Set", "prototype"], "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"], "%StringPrototype%": ["String", "prototype"], "%SymbolPrototype%": ["Symbol", "prototype"], "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"], "%TypedArrayPrototype%": ["TypedArray", "prototype"], "%TypeErrorPrototype%": ["TypeError", "prototype"], "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"], "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"], "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"], "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"], "%URIErrorPrototype%": ["URIError", "prototype"], "%WeakMapPrototype%": ["WeakMap", "prototype"], "%WeakSetPrototype%": ["WeakSet", "prototype"] }, k = Ji(), E = Gu(), I = k.call(Function.call, Array.prototype.concat), M = k.call(Function.apply, Array.prototype.splice), C = k.call(Function.call, String.prototype.replace), B = k.call(Function.call, String.prototype.slice), T = k.call(Function.call, RegExp.prototype.exec), W = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, D = /\\(\\)?/g, N = function(Y) {
9187
9187
  var V = B(Y, 0, 1), re = B(Y, -1);
9188
9188
  if (V === "%" && re !== "%") throw new r("invalid intrinsic syntax, expected closing `%`");
9189
9189
  if (re === "%" && V !== "%") throw new r("invalid intrinsic syntax, expected opening `%`");
9190
9190
  var F = [];
9191
- return O(Y, W, function(Z, P, J, be) {
9192
- F[F.length] = J ? O(be, D, "$1") : P || Z;
9191
+ return C(Y, W, function(Z, P, J, be) {
9192
+ F[F.length] = J ? C(be, D, "$1") : P || Z;
9193
9193
  }), F;
9194
9194
  }, ae = function(Y, V) {
9195
9195
  var re = Y, F;
@@ -9265,8 +9265,8 @@ function Yu() {
9265
9265
  }, dr;
9266
9266
  }
9267
9267
  function Qu() {
9268
- if (Ci) return pr;
9269
- Ci = !0;
9268
+ if (Oi) return pr;
9269
+ Oi = !0;
9270
9270
  var u = Xi(), e = function() {
9271
9271
  return !!u;
9272
9272
  };
@@ -9280,8 +9280,8 @@ function Qu() {
9280
9280
  }, pr = e, pr;
9281
9281
  }
9282
9282
  function Ju() {
9283
- if (Oi) return gr;
9284
- Oi = !0;
9283
+ if (Ci) return gr;
9284
+ Ci = !0;
9285
9285
  var u = Ut(), e = Yu(), t = Qu()(), i = ka(), l = Qt(), r = u("%Math.floor%");
9286
9286
  return gr = function(n, s) {
9287
9287
  if (typeof n != "function") throw new l("`fn` is not a function");
@@ -9317,8 +9317,8 @@ function Zu() {
9317
9317
  return typeof r == "function" && t(i, ".prototype.") > -1 ? e(r) : r;
9318
9318
  }, mr;
9319
9319
  }
9320
- var ii, oi, si, ai, li, ui, ci, hi, fi, di, pi, gi, mi, bi, yi, vi, or, wi, sr, _i, ar, Si, lr, Ei, ur, ki, cr, xi, hr, Ai, fr, Ii, dr, Ti, pr, Ci, gr, Oi, Pt, Pi, mr, Mi, ec = He(() => {
9321
- le(), ce(), ue(), ii = {}, oi = !1, si = {}, ai = !1, li = {}, ui = !1, ci = {}, hi = !1, fi = {}, di = !1, pi = {}, gi = !1, mi = {}, bi = !1, yi = {}, vi = !1, or = {}, wi = !1, sr = {}, _i = !1, ar = {}, Si = !1, lr = {}, Ei = !1, ur = {}, ki = !1, cr = {}, xi = !1, hr = {}, Ai = !1, fr = {}, Ii = !1, dr = {}, Ti = !1, pr = {}, Ci = !1, gr = {}, Oi = !1, Pt = {}, Pi = !1, mr = {}, Mi = !1;
9320
+ var ii, oi, si, ai, li, ui, ci, hi, fi, di, pi, gi, mi, bi, yi, vi, or, wi, sr, _i, ar, Si, lr, Ei, ur, ki, cr, xi, hr, Ai, fr, Ii, dr, Ti, pr, Oi, gr, Ci, Pt, Pi, mr, Mi, ec = He(() => {
9321
+ le(), ce(), ue(), ii = {}, oi = !1, si = {}, ai = !1, li = {}, ui = !1, ci = {}, hi = !1, fi = {}, di = !1, pi = {}, gi = !1, mi = {}, bi = !1, yi = {}, vi = !1, or = {}, wi = !1, sr = {}, _i = !1, ar = {}, Si = !1, lr = {}, Ei = !1, ur = {}, ki = !1, cr = {}, xi = !1, hr = {}, Ai = !1, fr = {}, Ii = !1, dr = {}, Ti = !1, pr = {}, Oi = !1, gr = {}, Ci = !1, Pt = {}, Pi = !1, mr = {}, Mi = !1;
9322
9322
  });
9323
9323
  function Zi(u) {
9324
9324
  throw new Error("Node.js process " + u + " is not supported by JSPM core outside of Node.js");
@@ -9378,7 +9378,7 @@ function ft() {
9378
9378
  function cc(u) {
9379
9379
  return [];
9380
9380
  }
9381
- var et, Et, _t, Kt, lo, uo, co, ho, fo, po, go, mo, bo, yo, vo, wo, _o, So, Eo, ko, xo, Ao, Io, To, Co, Zt, Oo, Po, Mo, Ro, jo, Lo, No, Uo, Bo, Do, Fo, $o, Wo, qo, Ho, zo, Vo, Ko, Go, Yo, Qo, Jo, Xo, Zo, es, ot, Dr, br, ts, rs, ns, is, os, ss, as, ls, us, cs, hs, eo, Ia = He(() => {
9381
+ var et, Et, _t, Kt, lo, uo, co, ho, fo, po, go, mo, bo, yo, vo, wo, _o, So, Eo, ko, xo, Ao, Io, To, Oo, Zt, Co, Po, Mo, Ro, jo, Lo, No, Uo, Bo, Do, Fo, $o, Wo, qo, Ho, zo, Vo, Ko, Go, Yo, Qo, Jo, Xo, Zo, es, ot, Dr, br, ts, rs, ns, is, os, ss, as, ls, us, cs, hs, eo, Ia = He(() => {
9382
9382
  le(), ce(), ue(), et = [], Et = !1, Kt = -1, Aa.prototype.run = function() {
9383
9383
  this.fun.apply(null, this.array);
9384
9384
  }, lo = "browser", uo = "x64", co = "browser", ho = { PATH: "/usr/bin", LANG: navigator.language + ".UTF-8", PWD: "/", HOME: "/home", TMP: "/tmp" }, fo = ["/usr/bin/node"], po = [], go = "v16.8.0", mo = {}, bo = function(u, e) {
@@ -9390,12 +9390,12 @@ var et, Et, _t, Kt, lo, uo, co, ho, fo, po, go, mo, bo, yo, vo, wo, _o, So, Eo,
9390
9390
  }, wo = function() {
9391
9391
  return "/";
9392
9392
  }, _o = function(u) {
9393
- }, So = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, Eo = De, ko = [], xo = {}, Ao = !1, Io = {}, To = De, Co = De, Zt = function() {
9393
+ }, So = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, Eo = De, ko = [], xo = {}, Ao = !1, Io = {}, To = De, Oo = De, Zt = function() {
9394
9394
  return {};
9395
- }, Oo = Zt, Po = Zt, Mo = De, Ro = De, jo = De, Lo = {}, No = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, Uo = De, Bo = De, Do = De, Fo = De, $o = De, Wo = De, qo = De, Ho = void 0, zo = void 0, Vo = void 0, Ko = De, Go = 2, Yo = 1, Qo = "/bin/usr/node", Jo = 9229, Xo = "node", Zo = [], es = De, ot = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, ot.now === void 0 && (Dr = Date.now(), ot.timing && ot.timing.navigationStart && (Dr = ot.timing.navigationStart), ot.now = () => Date.now() - Dr), br = 1e9, Br.bigint = function(u) {
9395
+ }, Co = Zt, Po = Zt, Mo = De, Ro = De, jo = De, Lo = {}, No = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, Uo = De, Bo = De, Do = De, Fo = De, $o = De, Wo = De, qo = De, Ho = void 0, zo = void 0, Vo = void 0, Ko = De, Go = 2, Yo = 1, Qo = "/bin/usr/node", Jo = 9229, Xo = "node", Zo = [], es = De, ot = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, ot.now === void 0 && (Dr = Date.now(), ot.timing && ot.timing.navigationStart && (Dr = ot.timing.navigationStart), ot.now = () => Date.now() - Dr), br = 1e9, Br.bigint = function(u) {
9396
9396
  var e = Br(u);
9397
9397
  return typeof BigInt > "u" ? e[0] * br + e[1] : BigInt(e[0] * br) + BigInt(e[1]);
9398
- }, ts = 10, rs = {}, ns = 0, is = ft, os = ft, ss = ft, as = ft, ls = ft, us = De, cs = ft, hs = ft, eo = { version: go, versions: mo, arch: uo, platform: co, release: So, _rawDebug: Eo, moduleLoadList: ko, binding: yo, _linkedBinding: nc, _events: rs, _eventsCount: ns, _maxListeners: ts, on: ft, addListener: is, once: os, off: ss, removeListener: as, removeAllListeners: ls, emit: us, prependListener: cs, prependOnceListener: hs, listeners: cc, domain: xo, _exiting: Ao, config: Io, dlopen: ic, uptime: uc, _getActiveRequests: oc, _getActiveHandles: sc, reallyExit: To, _kill: Co, cpuUsage: Zt, resourceUsage: Oo, memoryUsage: Po, kill: Mo, exit: Ro, openStdin: jo, allowedNodeEnvironmentFlags: Lo, assert: ac, features: No, _fatalExceptions: Uo, setUncaughtExceptionCaptureCallback: Bo, hasUncaughtExceptionCaptureCallback: lc, emitWarning: bo, nextTick: rc, _tickCallback: Do, _debugProcess: Fo, _debugEnd: $o, _startProfilerIdleNotifier: Wo, _stopProfilerIdleNotifier: qo, stdout: Ho, stdin: Vo, stderr: zo, abort: Ko, umask: vo, chdir: _o, cwd: wo, env: ho, title: lo, argv: fo, execArgv: po, pid: Go, ppid: Yo, execPath: Qo, debugPort: Jo, hrtime: Br, argv0: Xo, _preload_modules: Zo, setSourceMapsEnabled: es };
9398
+ }, ts = 10, rs = {}, ns = 0, is = ft, os = ft, ss = ft, as = ft, ls = ft, us = De, cs = ft, hs = ft, eo = { version: go, versions: mo, arch: uo, platform: co, release: So, _rawDebug: Eo, moduleLoadList: ko, binding: yo, _linkedBinding: nc, _events: rs, _eventsCount: ns, _maxListeners: ts, on: ft, addListener: is, once: os, off: ss, removeListener: as, removeAllListeners: ls, emit: us, prependListener: cs, prependOnceListener: hs, listeners: cc, domain: xo, _exiting: Ao, config: Io, dlopen: ic, uptime: uc, _getActiveRequests: oc, _getActiveHandles: sc, reallyExit: To, _kill: Oo, cpuUsage: Zt, resourceUsage: Co, memoryUsage: Po, kill: Mo, exit: Ro, openStdin: jo, allowedNodeEnvironmentFlags: Lo, assert: ac, features: No, _fatalExceptions: Uo, setUncaughtExceptionCaptureCallback: Bo, hasUncaughtExceptionCaptureCallback: lc, emitWarning: bo, nextTick: rc, _tickCallback: Do, _debugProcess: Fo, _debugEnd: $o, _startProfilerIdleNotifier: Wo, _stopProfilerIdleNotifier: qo, stdout: Ho, stdin: Vo, stderr: zo, abort: Ko, umask: vo, chdir: _o, cwd: wo, env: ho, title: lo, argv: fo, execArgv: po, pid: Go, ppid: Yo, execPath: Qo, debugPort: Jo, hrtime: Br, argv0: Xo, _preload_modules: Zo, setSourceMapsEnabled: es };
9399
9399
  });
9400
9400
  function hc() {
9401
9401
  if (Ri) return yr;
@@ -9551,39 +9551,39 @@ function hc() {
9551
9551
  var yr, Ri, ji, fc = He(() => {
9552
9552
  le(), ce(), ue(), Ia(), yr = {}, Ri = !1, ji = hc();
9553
9553
  }), Ta = {};
9554
- jt(Ta, { URL: () => Ba, Url: () => Ra, default: () => Fe, fileURLToPath: () => Oa, format: () => ja, parse: () => Ua, pathToFileURL: () => Pa, resolve: () => La, resolveObject: () => Na });
9554
+ jt(Ta, { URL: () => Ba, Url: () => Ra, default: () => Fe, fileURLToPath: () => Ca, format: () => ja, parse: () => Ua, pathToFileURL: () => Pa, resolve: () => La, resolveObject: () => Na });
9555
9555
  function dc() {
9556
9556
  if (Li) return vr;
9557
9557
  Li = !0;
9558
- var u = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && u ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = u && e && typeof e.get == "function" ? e.get : null, i = u && Map.prototype.forEach, l = typeof Set == "function" && Set.prototype, r = Object.getOwnPropertyDescriptor && l ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, n = l && r && typeof r.get == "function" ? r.get : null, s = l && Set.prototype.forEach, o = typeof WeakMap == "function" && WeakMap.prototype, a = o ? WeakMap.prototype.has : null, c = typeof WeakSet == "function" && WeakSet.prototype, d = c ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, b = p ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf, m = Object.prototype.toString, y = Function.prototype.toString, S = String.prototype.match, g = String.prototype.slice, _ = String.prototype.replace, x = String.prototype.toUpperCase, v = String.prototype.toLowerCase, k = RegExp.prototype.test, E = Array.prototype.concat, I = Array.prototype.join, M = Array.prototype.slice, O = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, W = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, D = typeof Symbol == "function" && typeof Symbol.iterator == "object", N = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === D || !0) ? Symbol.toStringTag : null, ae = Object.prototype.propertyIsEnumerable, Y = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(z) {
9558
+ var u = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && u ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = u && e && typeof e.get == "function" ? e.get : null, i = u && Map.prototype.forEach, l = typeof Set == "function" && Set.prototype, r = Object.getOwnPropertyDescriptor && l ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, n = l && r && typeof r.get == "function" ? r.get : null, s = l && Set.prototype.forEach, o = typeof WeakMap == "function" && WeakMap.prototype, a = o ? WeakMap.prototype.has : null, c = typeof WeakSet == "function" && WeakSet.prototype, d = c ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, b = p ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf, m = Object.prototype.toString, y = Function.prototype.toString, S = String.prototype.match, g = String.prototype.slice, _ = String.prototype.replace, x = String.prototype.toUpperCase, v = String.prototype.toLowerCase, k = RegExp.prototype.test, E = Array.prototype.concat, I = Array.prototype.join, M = Array.prototype.slice, C = Math.floor, B = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, W = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, D = typeof Symbol == "function" && typeof Symbol.iterator == "object", N = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === D || !0) ? Symbol.toStringTag : null, ae = Object.prototype.propertyIsEnumerable, Y = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(z) {
9559
9559
  return z.__proto__;
9560
9560
  } : null);
9561
9561
  function V(z, ie) {
9562
9562
  if (z === 1 / 0 || z === -1 / 0 || z !== z || z && z > -1e3 && z < 1e3 || k.call(/e/, ie)) return ie;
9563
9563
  var xe = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
9564
9564
  if (typeof z == "number") {
9565
- var Ae = z < 0 ? -O(-z) : O(z);
9565
+ var Ae = z < 0 ? -C(-z) : C(z);
9566
9566
  if (Ae !== z) {
9567
- var Ie = String(Ae), Ce = g.call(ie, Ie.length + 1);
9568
- return _.call(Ie, xe, "$&_") + "." + _.call(_.call(Ce, /([0-9]{3})/g, "$&_"), /_$/, "");
9567
+ var Ie = String(Ae), Oe = g.call(ie, Ie.length + 1);
9568
+ return _.call(Ie, xe, "$&_") + "." + _.call(_.call(Oe, /([0-9]{3})/g, "$&_"), /_$/, "");
9569
9569
  }
9570
9570
  }
9571
9571
  return _.call(ie, xe, "$&_");
9572
9572
  }
9573
9573
  var re = Ma, F = re.custom, Z = G(F) ? F : null;
9574
9574
  vr = function z(ie, xe, Ae, Ie) {
9575
- var Ce = xe || {};
9576
- if (oe(Ce, "quoteStyle") && Ce.quoteStyle !== "single" && Ce.quoteStyle !== "double") throw new TypeError('option "quoteStyle" must be "single" or "double"');
9577
- if (oe(Ce, "maxStringLength") && (typeof Ce.maxStringLength == "number" ? Ce.maxStringLength < 0 && Ce.maxStringLength !== 1 / 0 : Ce.maxStringLength !== null)) throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
9578
- var Ke = oe(Ce, "customInspect") ? Ce.customInspect : !0;
9575
+ var Oe = xe || {};
9576
+ if (oe(Oe, "quoteStyle") && Oe.quoteStyle !== "single" && Oe.quoteStyle !== "double") throw new TypeError('option "quoteStyle" must be "single" or "double"');
9577
+ if (oe(Oe, "maxStringLength") && (typeof Oe.maxStringLength == "number" ? Oe.maxStringLength < 0 && Oe.maxStringLength !== 1 / 0 : Oe.maxStringLength !== null)) throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
9578
+ var Ke = oe(Oe, "customInspect") ? Oe.customInspect : !0;
9579
9579
  if (typeof Ke != "boolean" && Ke !== "symbol") throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
9580
- if (oe(Ce, "indent") && Ce.indent !== null && Ce.indent !== " " && !(parseInt(Ce.indent, 10) === Ce.indent && Ce.indent > 0)) throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
9581
- if (oe(Ce, "numericSeparator") && typeof Ce.numericSeparator != "boolean") throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
9582
- var Ge = Ce.numericSeparator;
9580
+ if (oe(Oe, "indent") && Oe.indent !== null && Oe.indent !== " " && !(parseInt(Oe.indent, 10) === Oe.indent && Oe.indent > 0)) throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
9581
+ if (oe(Oe, "numericSeparator") && typeof Oe.numericSeparator != "boolean") throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
9582
+ var Ge = Oe.numericSeparator;
9583
9583
  if (typeof ie > "u") return "undefined";
9584
9584
  if (ie === null) return "null";
9585
9585
  if (typeof ie == "boolean") return ie ? "true" : "false";
9586
- if (typeof ie == "string") return se(ie, Ce);
9586
+ if (typeof ie == "string") return se(ie, Oe);
9587
9587
  if (typeof ie == "number") {
9588
9588
  if (ie === 0) return 1 / 0 / ie > 0 ? "0" : "-0";
9589
9589
  var Ue = String(ie);
@@ -9593,17 +9593,17 @@ function dc() {
9593
9593
  var Ye = String(ie) + "n";
9594
9594
  return Ge ? V(ie, Ye) : Ye;
9595
9595
  }
9596
- var It = typeof Ce.depth > "u" ? 5 : Ce.depth;
9596
+ var It = typeof Oe.depth > "u" ? 5 : Oe.depth;
9597
9597
  if (typeof Ae > "u" && (Ae = 0), Ae >= It && It > 0 && typeof ie == "object") return be(ie) ? "[Array]" : "[Object]";
9598
- var Qe = X(Ce, Ae);
9598
+ var Qe = X(Oe, Ae);
9599
9599
  if (typeof Ie > "u") Ie = [];
9600
9600
  else if (ee(Ie, ie) >= 0) return "[Circular]";
9601
9601
  function ze(Je, ht, vt) {
9602
9602
  if (ht && (Ie = M.call(Ie), Ie.push(ht)), vt) {
9603
- var Xe = { depth: Ce.depth };
9604
- return oe(Ce, "quoteStyle") && (Xe.quoteStyle = Ce.quoteStyle), z(Je, Xe, Ae + 1, Ie);
9603
+ var Xe = { depth: Oe.depth };
9604
+ return oe(Oe, "quoteStyle") && (Xe.quoteStyle = Oe.quoteStyle), z(Je, Xe, Ae + 1, Ie);
9605
9605
  }
9606
- return z(Je, Ce, Ae + 1, Ie);
9606
+ return z(Je, Oe, Ae + 1, Ie);
9607
9607
  }
9608
9608
  if (typeof ie == "function" && !we(ie)) {
9609
9609
  var Jt = $(ie), Tt = Se(ie, ze);
@@ -9614,8 +9614,8 @@ function dc() {
9614
9614
  return typeof ie == "object" && !D ? h(Bt) : Bt;
9615
9615
  }
9616
9616
  if (ve(ie)) {
9617
- for (var C = "<" + v.call(String(ie.nodeName)), j = ie.attributes || [], _e = 0; _e < j.length; _e++) C += " " + j[_e].name + "=" + P(J(j[_e].value), "double", Ce);
9618
- return C += ">", ie.childNodes && ie.childNodes.length && (C += "..."), C += "</" + v.call(String(ie.nodeName)) + ">", C;
9617
+ for (var O = "<" + v.call(String(ie.nodeName)), j = ie.attributes || [], _e = 0; _e < j.length; _e++) O += " " + j[_e].name + "=" + P(J(j[_e].value), "double", Oe);
9618
+ return O += ">", ie.childNodes && ie.childNodes.length && (O += "..."), O += "</" + v.call(String(ie.nodeName)) + ">", O;
9619
9619
  }
9620
9620
  if (be(ie)) {
9621
9621
  if (ie.length === 0) return "[]";
@@ -9836,13 +9836,13 @@ function dc() {
9836
9836
  Ae.length = z.length;
9837
9837
  for (var Ie = 0; Ie < z.length; Ie++) Ae[Ie] = oe(z, Ie) ? ie(z[Ie], z) : "";
9838
9838
  }
9839
- var Ce = typeof T == "function" ? T(z) : [], Ke;
9839
+ var Oe = typeof T == "function" ? T(z) : [], Ke;
9840
9840
  if (D) {
9841
9841
  Ke = {};
9842
- for (var Ge = 0; Ge < Ce.length; Ge++) Ke["$" + Ce[Ge]] = Ce[Ge];
9842
+ for (var Ge = 0; Ge < Oe.length; Ge++) Ke["$" + Oe[Ge]] = Oe[Ge];
9843
9843
  }
9844
9844
  for (var Ue in z) oe(z, Ue) && (xe && String(Number(Ue)) === Ue && Ue < z.length || D && Ke["$" + Ue] instanceof Symbol || (k.call(/[^\w$]/, Ue) ? Ae.push(ie(Ue, z) + ": " + ie(z[Ue], z)) : Ae.push(Ue + ": " + ie(z[Ue], z))));
9845
- if (typeof T == "function") for (var Ye = 0; Ye < Ce.length; Ye++) ae.call(z, Ce[Ye]) && Ae.push("[" + ie(Ce[Ye]) + "]: " + ie(z[Ce[Ye]], z));
9845
+ if (typeof T == "function") for (var Ye = 0; Ye < Oe.length; Ye++) ae.call(z, Oe[Ye]) && Ae.push("[" + ie(Oe[Ye]) + "]: " + ie(z[Oe[Ye]], z));
9846
9846
  return Ae;
9847
9847
  }
9848
9848
  return vr;
@@ -9893,7 +9893,7 @@ function to() {
9893
9893
  return String(i);
9894
9894
  } }, RFC1738: t.RFC1738, RFC3986: t.RFC3986 }, Sr;
9895
9895
  }
9896
- function Ca() {
9896
+ function Oa() {
9897
9897
  if (Bi) return Er;
9898
9898
  Bi = !0;
9899
9899
  var u = to(), e = Object.prototype.hasOwnProperty, t = Array.isArray, i = (function() {
@@ -9948,10 +9948,10 @@ function Ca() {
9948
9948
  return "%26%23" + parseInt(T.slice(2), 16) + "%3B";
9949
9949
  });
9950
9950
  for (var k = "", E = 0; E < v.length; E += a) {
9951
- for (var I = v.length >= a ? v.slice(E, E + a) : v, M = [], O = 0; O < I.length; ++O) {
9952
- var B = I.charCodeAt(O);
9951
+ for (var I = v.length >= a ? v.slice(E, E + a) : v, M = [], C = 0; C < I.length; ++C) {
9952
+ var B = I.charCodeAt(C);
9953
9953
  if (B === 45 || B === 46 || B === 95 || B === 126 || B >= 48 && B <= 57 || B >= 65 && B <= 90 || B >= 97 && B <= 122 || x === u.RFC1738 && (B === 40 || B === 41)) {
9954
- M[M.length] = I.charAt(O);
9954
+ M[M.length] = I.charAt(C);
9955
9955
  continue;
9956
9956
  }
9957
9957
  if (B < 128) {
@@ -9966,7 +9966,7 @@ function Ca() {
9966
9966
  M[M.length] = i[224 | B >> 12] + i[128 | B >> 6 & 63] + i[128 | B & 63];
9967
9967
  continue;
9968
9968
  }
9969
- O += 1, B = 65536 + ((B & 1023) << 10 | I.charCodeAt(O) & 1023), M[M.length] = i[240 | B >> 18] + i[128 | B >> 12 & 63] + i[128 | B >> 6 & 63] + i[128 | B & 63];
9969
+ C += 1, B = 65536 + ((B & 1023) << 10 | I.charCodeAt(C) & 1023), M[M.length] = i[240 | B >> 18] + i[128 | B >> 12 & 63] + i[128 | B >> 6 & 63] + i[128 | B & 63];
9970
9970
  }
9971
9971
  k += M.join("");
9972
9972
  }
@@ -9995,7 +9995,7 @@ function Ca() {
9995
9995
  function gc() {
9996
9996
  if (Di) return kr;
9997
9997
  Di = !0;
9998
- var u = pc(), e = Ca(), t = to(), i = Object.prototype.hasOwnProperty, l = { brackets: function(m) {
9998
+ var u = pc(), e = Oa(), t = to(), i = Object.prototype.hasOwnProperty, l = { brackets: function(m) {
9999
9999
  return m + "[]";
10000
10000
  }, comma: "comma", indices: function(m, y) {
10001
10001
  return m + "[" + y + "]";
@@ -10007,7 +10007,7 @@ function gc() {
10007
10007
  return o.call(m);
10008
10008
  }, skipNulls: !1, strictNullHandling: !1 }, d = function(m) {
10009
10009
  return typeof m == "string" || typeof m == "number" || typeof m == "boolean" || typeof m == "symbol" || typeof m == "bigint";
10010
- }, p = {}, b = function m(y, S, g, _, x, v, k, E, I, M, O, B, T, W, D, N, ae, Y) {
10010
+ }, p = {}, b = function m(y, S, g, _, x, v, k, E, I, M, C, B, T, W, D, N, ae, Y) {
10011
10011
  for (var V = y, re = Y, F = 0, Z = !1; (re = re.get(p)) !== void 0 && !Z; ) {
10012
10012
  var P = re.get(y);
10013
10013
  if (F += 1, typeof P < "u") {
@@ -10036,7 +10036,7 @@ function gc() {
10036
10036
  else if (r(M)) te = M;
10037
10037
  else {
10038
10038
  var we = Object.keys(V);
10039
- te = O ? we.sort(O) : we;
10039
+ te = C ? we.sort(C) : we;
10040
10040
  }
10041
10041
  var K = E ? S.replace(/\./g, "%2E") : S, L = _ && r(V) && V.length === 1 ? K + "[]" : K;
10042
10042
  if (x && r(V) && V.length === 0) return L + "[]";
@@ -10046,7 +10046,7 @@ function gc() {
10046
10046
  var Q = B && E ? H.replace(/\./g, "%2E") : H, me = r(V) ? typeof g == "function" ? g(L, Q) : L : L + (B ? "." + Q : "[" + Q + "]");
10047
10047
  Y.set(y, F);
10048
10048
  var oe = u();
10049
- oe.set(p, Y), s(be, m(G, me, g, _, x, v, k, E, g === "comma" && N && r(V) ? null : I, M, O, B, T, W, D, N, ae, oe));
10049
+ oe.set(p, Y), s(be, m(G, me, g, _, x, v, k, E, g === "comma" && N && r(V) ? null : I, M, C, B, T, W, D, N, ae, oe));
10050
10050
  }
10051
10051
  }
10052
10052
  return be;
@@ -10077,8 +10077,8 @@ function gc() {
10077
10077
  var k = l[g.arrayFormat], E = k === "comma" && g.commaRoundTrip;
10078
10078
  _ || (_ = Object.keys(S)), g.sort && _.sort(g.sort);
10079
10079
  for (var I = u(), M = 0; M < _.length; ++M) {
10080
- var O = _[M];
10081
- g.skipNulls && S[O] === null || s(v, b(S[O], O, k, E, g.allowEmptyArrays, g.strictNullHandling, g.skipNulls, g.encodeDotInKeys, g.encode ? g.encoder : null, g.filter, g.sort, g.allowDots, g.serializeDate, g.format, g.formatter, g.encodeValuesOnly, g.charset, I));
10080
+ var C = _[M];
10081
+ g.skipNulls && S[C] === null || s(v, b(S[C], C, k, E, g.allowEmptyArrays, g.strictNullHandling, g.skipNulls, g.encodeDotInKeys, g.encode ? g.encoder : null, g.filter, g.sort, g.allowDots, g.serializeDate, g.format, g.formatter, g.encodeValuesOnly, g.charset, I));
10082
10082
  }
10083
10083
  var B = v.join(g.delimiter), T = g.addQueryPrefix === !0 ? "?" : "";
10084
10084
  return g.charsetSentinel && (g.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), B.length > 0 ? T + B : "";
@@ -10087,7 +10087,7 @@ function gc() {
10087
10087
  function mc() {
10088
10088
  if (Fi) return xr;
10089
10089
  Fi = !0;
10090
- var u = Ca(), e = Object.prototype.hasOwnProperty, t = Array.isArray, i = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decodeDotInKeys: !1, decoder: u.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictNullHandling: !1 }, l = function(p) {
10090
+ var u = Oa(), e = Object.prototype.hasOwnProperty, t = Array.isArray, i = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decodeDotInKeys: !1, decoder: u.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictNullHandling: !1 }, l = function(p) {
10091
10091
  return p.replace(/&#(\d+);/g, function(b, f) {
10092
10092
  return String.fromCharCode(parseInt(f, 10));
10093
10093
  });
@@ -10103,8 +10103,8 @@ function mc() {
10103
10103
  E === -1 ? (I = b.decoder(v, i.decoder, x, "key"), M = b.strictNullHandling ? null : "") : (I = b.decoder(v.slice(0, E), i.decoder, x, "key"), M = u.maybeMap(r(v.slice(E + 1), b), function(B) {
10104
10104
  return b.decoder(B, i.decoder, x, "value");
10105
10105
  })), M && b.interpretNumericEntities && x === "iso-8859-1" && (M = l(M)), v.indexOf("[]=") > -1 && (M = t(M) ? [M] : M);
10106
- var O = e.call(f, I);
10107
- O && b.duplicates === "combine" ? f[I] = u.combine(f[I], M) : (!O || b.duplicates === "last") && (f[I] = M);
10106
+ var C = e.call(f, I);
10107
+ C && b.duplicates === "combine" ? f[I] = u.combine(f[I], M) : (!C || b.duplicates === "last") && (f[I] = M);
10108
10108
  }
10109
10109
  return f;
10110
10110
  }, a = function(p, b, f, m) {
@@ -10179,8 +10179,8 @@ function yc() {
10179
10179
  }
10180
10180
  e.prototype.parse = function(v, k, E) {
10181
10181
  if (typeof v != "string") throw new TypeError("Parameter 'url' must be a string, not " + typeof v);
10182
- var I = v.indexOf("?"), M = I !== -1 && I < v.indexOf("#") ? "?" : "#", O = v.split(M), B = /\\/g;
10183
- O[0] = O[0].replace(B, "/"), v = O.join(M);
10182
+ var I = v.indexOf("?"), M = I !== -1 && I < v.indexOf("#") ? "?" : "#", C = v.split(M), B = /\\/g;
10183
+ C[0] = C[0].replace(B, "/"), v = C.join(M);
10184
10184
  var T = v;
10185
10185
  if (T = T.trim(), !E && v.split("#").length === 1) {
10186
10186
  var W = l.exec(T);
@@ -10246,9 +10246,9 @@ function yc() {
10246
10246
  e.prototype.format = function() {
10247
10247
  var v = this.auth || "";
10248
10248
  v && (v = encodeURIComponent(v), v = v.replace(/%3A/i, ":"), v += "@");
10249
- var k = this.protocol || "", E = this.pathname || "", I = this.hash || "", M = !1, O = "";
10250
- this.host ? M = v + this.host : this.hostname && (M = v + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (M += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (O = y.stringify(this.query, { arrayFormat: "repeat", addQueryPrefix: !1 }));
10251
- var B = this.search || O && "?" + O || "";
10249
+ var k = this.protocol || "", E = this.pathname || "", I = this.hash || "", M = !1, C = "";
10250
+ this.host ? M = v + this.host : this.hostname && (M = v + (this.hostname.indexOf(":") === -1 ? this.hostname : "[" + this.hostname + "]"), this.port && (M += ":" + this.port)), this.query && typeof this.query == "object" && Object.keys(this.query).length && (C = y.stringify(this.query, { arrayFormat: "repeat", addQueryPrefix: !1 }));
10251
+ var B = this.search || C && "?" + C || "";
10252
10252
  return k && k.substr(-1) !== ":" && (k += ":"), this.slashes || (!k || m[k]) && M !== !1 ? (M = "//" + (M || ""), E && E.charAt(0) !== "/" && (E = "/" + E)) : M || (M = ""), I && I.charAt(0) !== "#" && (I = "#" + I), B && B.charAt(0) !== "?" && (B = "?" + B), E = E.replace(/[?#]/g, function(T) {
10253
10253
  return encodeURIComponent(T);
10254
10254
  }), B = B.replace("#", "%23"), k + M + E + B + I;
@@ -10268,8 +10268,8 @@ function yc() {
10268
10268
  k.parse(v, !1, !0), v = k;
10269
10269
  }
10270
10270
  for (var E = new e(), I = Object.keys(this), M = 0; M < I.length; M++) {
10271
- var O = I[M];
10272
- E[O] = this[O];
10271
+ var C = I[M];
10272
+ E[C] = this[C];
10273
10273
  }
10274
10274
  if (E.hash = v.hash, v.href === "") return E.href = E.format(), E;
10275
10275
  if (v.slashes && !v.protocol) {
@@ -10324,7 +10324,7 @@ function yc() {
10324
10324
  k && (k = k[0], k !== ":" && (this.port = k.substr(1)), v = v.substr(0, v.length - k.length)), v && (this.hostname = v);
10325
10325
  }, gt.parse = S, gt.resolve = _, gt.resolveObject = x, gt.format = g, gt.Url = e, gt;
10326
10326
  }
10327
- function Oa(u) {
10327
+ function Ca(u) {
10328
10328
  if (typeof u == "string") u = new URL(u);
10329
10329
  else if (!(u instanceof URL)) throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");
10330
10330
  if (u.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme");
@@ -10360,14 +10360,14 @@ function Pa(u) {
10360
10360
  `) && (e = e.replace(Va, "%0A")), e.includes("\r") && (e = e.replace(Ka, "%0D")), e.includes(" ") && (e = e.replace(Ga, "%09")), i.pathname = e, i;
10361
10361
  }
10362
10362
  var Ma, vr, Li, wr, _r, Ni, Sr, Ui, Er, Bi, kr, Di, xr, Fi, Ar, $i, gt, Wi, Fe, fs, Ra, ja, La, Na, Ua, Ba, Da, Fa, $a, Wa, Tr, qa, Ha, za, Va, Ka, Ga, _c = He(() => {
10363
- le(), ce(), ue(), Bu(), ec(), fc(), Ia(), Ma = Object.freeze(/* @__PURE__ */ Object.create(null)), vr = {}, Li = !1, wr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, _r = {}, Ni = !1, Sr = {}, Ui = !1, Er = {}, Bi = !1, kr = {}, Di = !1, xr = {}, Fi = !1, Ar = {}, $i = !1, gt = {}, Wi = !1, Fe = yc(), Fe.parse, Fe.resolve, Fe.resolveObject, Fe.format, Fe.Url, fs = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, Fe.URL = typeof URL < "u" ? URL : null, Fe.pathToFileURL = Pa, Fe.fileURLToPath = Oa, Ra = Fe.Url, ja = Fe.format, La = Fe.resolve, Na = Fe.resolveObject, Ua = Fe.parse, Ba = Fe.URL, Da = 92, Fa = 47, $a = 97, Wa = 122, Tr = fs === "win32", qa = /\//g, Ha = /%/g, za = /\\/g, Va = /\n/g, Ka = /\r/g, Ga = /\t/g;
10363
+ le(), ce(), ue(), Bu(), ec(), fc(), Ia(), Ma = Object.freeze(/* @__PURE__ */ Object.create(null)), vr = {}, Li = !1, wr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, _r = {}, Ni = !1, Sr = {}, Ui = !1, Er = {}, Bi = !1, kr = {}, Di = !1, xr = {}, Fi = !1, Ar = {}, $i = !1, gt = {}, Wi = !1, Fe = yc(), Fe.parse, Fe.resolve, Fe.resolveObject, Fe.format, Fe.Url, fs = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, Fe.URL = typeof URL < "u" ? URL : null, Fe.pathToFileURL = Pa, Fe.fileURLToPath = Ca, Ra = Fe.Url, ja = Fe.format, La = Fe.resolve, Na = Fe.resolveObject, Ua = Fe.parse, Ba = Fe.URL, Da = 92, Fa = 47, $a = 97, Wa = 122, Tr = fs === "win32", qa = /\//g, Ha = /%/g, za = /\\/g, Va = /\n/g, Ka = /\r/g, Ga = /\t/g;
10364
10364
  }), Sc = pe((u, e) => {
10365
10365
  le(), ce(), ue(), e.exports = function() {
10366
10366
  throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object");
10367
10367
  };
10368
10368
  }), ro = pe((u) => {
10369
10369
  le(), ce(), ue(), Object.defineProperty(u, "__esModule", { value: !0 }), u.BufferedDuplex = void 0, u.writev = i;
10370
- var e = At(), t = (Ne(), Oe(Le));
10370
+ var e = At(), t = (Ne(), Ce(Le));
10371
10371
  function i(r, n) {
10372
10372
  let s = new Array(r.length);
10373
10373
  for (let o = 0; o < r.length; o++) typeof r[o].chunk == "string" ? s[o] = t.Buffer.from(r[o].chunk, "utf8") : s[o] = r[o].chunk;
@@ -10415,7 +10415,7 @@ var Ma, vr, Li, wr, _r, Ni, Sr, Ui, Er, Bi, kr, Di, xr, Fi, Ar, $i, gt, Wi, Fe,
10415
10415
  return S && S.__esModule ? S : { default: S };
10416
10416
  };
10417
10417
  Object.defineProperty(u, "__esModule", { value: !0 }), u.streamBuilder = u.browserStreamBuilder = void 0;
10418
- var t = (Ne(), Oe(Le)), i = e(Sc()), l = e(at()), r = At(), n = e(Lr()), s = ro(), o = (0, l.default)("mqttjs:ws"), a = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
10418
+ var t = (Ne(), Ce(Le)), i = e(Sc()), l = e(at()), r = At(), n = e(Lr()), s = ro(), o = (0, l.default)("mqttjs:ws"), a = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
10419
10419
  function c(S, g) {
10420
10420
  let _ = `${S.protocol}://${S.hostname}:${S.port}${S.path}`;
10421
10421
  return typeof S.transformWsUrl == "function" && (_ = S.transformWsUrl(_, S, g)), _;
@@ -10458,13 +10458,13 @@ var Ma, vr, Li, wr, _r, Ni, Sr, Ui, Er, Bi, kr, Di, xr, Fi, Ar, $i, gt, Wi, Fe,
10458
10458
  u.streamBuilder = m;
10459
10459
  var y = (S, g) => {
10460
10460
  o("browserStreamBuilder");
10461
- let _, x = p(g).browserBufferSize || 1024 * 512, v = g.browserBufferTimeout || 1e3, k = !g.objectMode, E = f(S, g), I = O(g, N, ae);
10461
+ let _, x = p(g).browserBufferSize || 1024 * 512, v = g.browserBufferTimeout || 1e3, k = !g.objectMode, E = f(S, g), I = C(g, N, ae);
10462
10462
  g.objectMode || (I._writev = s.writev.bind(I)), I.on("close", () => {
10463
10463
  E.close();
10464
10464
  });
10465
10465
  let M = typeof E.addEventListener < "u";
10466
10466
  E.readyState === E.OPEN ? (_ = I, _.socket = E) : (_ = new s.BufferedDuplex(g, I, E), M ? E.addEventListener("open", B) : E.onopen = B), M ? (E.addEventListener("close", T), E.addEventListener("error", W), E.addEventListener("message", D)) : (E.onclose = T, E.onerror = W, E.onmessage = D);
10467
- function O(Y, V, re) {
10467
+ function C(Y, V, re) {
10468
10468
  let F = new r.Transform({ objectMode: Y.objectMode });
10469
10469
  return F._write = V, F._flush = re, F;
10470
10470
  }
@@ -10518,7 +10518,7 @@ var Ya, Qa = He(() => {
10518
10518
  return s && s.__esModule ? s : { default: s };
10519
10519
  };
10520
10520
  Object.defineProperty(u, "__esModule", { value: !0 });
10521
- var t = e((Qa(), Oe(no))), i = e(at()), l = e(Ja()), r = (0, i.default)("mqttjs:tcp"), n = (s, o) => {
10521
+ var t = e((Qa(), Ce(no))), i = e(at()), l = e(Ja()), r = (0, i.default)("mqttjs:tcp"), n = (s, o) => {
10522
10522
  if (o.port = o.port || 1883, o.hostname = o.hostname || o.host || "localhost", o.socksProxy) return (0, l.default)(o.hostname, o.port, o.socksProxy, { timeout: o.socksTimeout });
10523
10523
  let { port: a, path: c } = o, d = o.hostname;
10524
10524
  return r("port %d and host %s", a, d), t.default.createConnection({ port: a, host: d, path: c });
@@ -10534,7 +10534,7 @@ var Za, Ec = He(() => {
10534
10534
  return a && a.__esModule ? a : { default: a };
10535
10535
  };
10536
10536
  Object.defineProperty(u, "__esModule", { value: !0 });
10537
- var t = (Ec(), Oe(Xa)), i = e((Qa(), Oe(no))), l = e(at()), r = e(Ja()), n = (0, l.default)("mqttjs:tls");
10537
+ var t = (Ec(), Ce(Xa)), i = e((Qa(), Ce(no))), l = e(at()), r = e(Ja()), n = (0, l.default)("mqttjs:tls");
10538
10538
  function s(a) {
10539
10539
  let { host: c, port: d, socksProxy: p, ...b } = a;
10540
10540
  if (p !== void 0) {
@@ -10557,7 +10557,7 @@ var Za, Ec = He(() => {
10557
10557
  u.default = o;
10558
10558
  }), gs = pe((u) => {
10559
10559
  le(), ce(), ue(), Object.defineProperty(u, "__esModule", { value: !0 });
10560
- var e = (Ne(), Oe(Le)), t = At(), i = ro(), l, r, n;
10560
+ var e = (Ne(), Ce(Le)), t = At(), i = ro(), l, r, n;
10561
10561
  function s() {
10562
10562
  let p = new t.Transform();
10563
10563
  return p._write = (b, f, m) => {
@@ -10612,7 +10612,7 @@ var Za, Ec = He(() => {
10612
10612
  u.default = d;
10613
10613
  }), ms = pe((u) => {
10614
10614
  le(), ce(), ue(), Object.defineProperty(u, "__esModule", { value: !0 });
10615
- var e = (Ne(), Oe(Le)), t = At(), i = ro(), l, r, n, s = !1;
10615
+ var e = (Ne(), Ce(Le)), t = At(), i = ro(), l, r, n, s = !1;
10616
10616
  function o() {
10617
10617
  let b = new t.Transform();
10618
10618
  return b._write = (f, m, y) => {
@@ -10671,7 +10671,7 @@ var Za, Ec = He(() => {
10671
10671
  return d && d.__esModule ? d : { default: d };
10672
10672
  };
10673
10673
  Object.defineProperty(u, "__esModule", { value: !0 }), u.connectAsync = c;
10674
- var t = e(at()), i = e((_c(), Oe(Ta))), l = e(ti()), r = e(Lr());
10674
+ var t = e(at()), i = e((_c(), Ce(Ta))), l = e(ti()), r = e(Lr());
10675
10675
  typeof Pe?.nextTick != "function" && (Pe.nextTick = setImmediate);
10676
10676
  var n = (0, t.default)("mqttjs"), s = null;
10677
10677
  function o(d) {
@@ -10835,11 +10835,11 @@ const Ic = {
10835
10835
  outbound: "apps/{appId}/outgoing/users/{userId}/messages/{conversationId}/outgoing",
10836
10836
  presence: "apps/{appId}/users/{userId}/presence/{clientId}",
10837
10837
  wildcardSubscribe: "apps/{appId}/users/{userId}/#"
10838
- }, Tc = 300, Cc = {
10838
+ }, Tc = 300, Oc = {
10839
10839
  templateId: "7",
10840
10840
  type: "link",
10841
10841
  isDeepLink: !0
10842
- }, Oc = {
10842
+ }, Cc = {
10843
10843
  channelType: "group",
10844
10844
  channel: "chat21",
10845
10845
  requestChannel: "chat21",
@@ -10946,7 +10946,7 @@ class Pc {
10946
10946
  publishFileMessage(e, t) {
10947
10947
  if (!this.client) return;
10948
10948
  const i = {
10949
- ...Cc,
10949
+ ...Oc,
10950
10950
  ...this.config.fileTemplate ?? {},
10951
10951
  ...Mc(t)
10952
10952
  }, l = {
@@ -11095,7 +11095,7 @@ class Pc {
11095
11095
  this.messageHandlers.forEach((a) => a(l, o));
11096
11096
  }
11097
11097
  buildOutgoingEnvelope(e, t) {
11098
- const i = { ...Oc, ...this.config.messageDefaults ?? {} }, l = this.config.senderFullname ?? this.config.userName ?? this.config.userId, r = this.config.recipientFullnameResolver?.(e), n = {
11098
+ const i = { ...Cc, ...this.config.messageDefaults ?? {} }, l = this.config.senderFullname ?? this.config.userName ?? this.config.userId, r = this.config.recipientFullnameResolver?.(e), n = {
11099
11099
  projectId: this.config.projectId,
11100
11100
  ...i.departmentId ? { departmentId: i.departmentId } : {},
11101
11101
  ...this.config.userName ? { userFullname: this.config.userName } : {},
@@ -12379,8 +12379,8 @@ class Qc extends HTMLElement {
12379
12379
  .message-wrap { display: flex; flex-direction: column; }
12380
12380
  .message-wrap.user { align-items: flex-end; }
12381
12381
  .message-wrap.assistant,
12382
- .message-wrap.agent,
12383
- .message-wrap.system { align-items: flex-start; }
12382
+ .message-wrap.agent { align-items: flex-start; }
12383
+ .message-wrap.system { align-items: center; text-align: center; }
12384
12384
  .message-wrap.system .bubble {
12385
12385
  background: transparent;
12386
12386
  color: var(--aikaara-text-secondary, #6b7280);
@@ -13180,7 +13180,9 @@ class ah extends HTMLElement {
13180
13180
  super(), this.shadow = this.attachShadow({ mode: "open" });
13181
13181
  }
13182
13182
  connectedCallback() {
13183
- this.render();
13183
+ this.render(), this.addEventListener("template-action", () => {
13184
+ this.dataset.consumed = "true";
13185
+ });
13184
13186
  }
13185
13187
  attributeChangedCallback() {
13186
13188
  this.render();
@@ -13193,6 +13195,7 @@ class ah extends HTMLElement {
13193
13195
  for (this.shadow.innerHTML = `
13194
13196
  <style>
13195
13197
  :host { display: block; }
13198
+ :host([data-consumed]) ::slotted(*) { display: none !important; }
13196
13199
  ::slotted(*) { display: block; }
13197
13200
  </style>
13198
13201
  <slot></slot>
@@ -13238,7 +13241,12 @@ class ah extends HTMLElement {
13238
13241
  }
13239
13242
  mountField(e) {
13240
13243
  if (!e || typeof e != "object") return;
13241
- const t = e.type ?? e.data?.type, i = e.data;
13244
+ const t = e.type ?? e.data?.type;
13245
+ if (t === "link") {
13246
+ this.mountLinkButton(e);
13247
+ return;
13248
+ }
13249
+ const i = e.data;
13242
13250
  if (i) {
13243
13251
  if (t === "checkbox" || t === "radio" || t === "button") {
13244
13252
  const l = document.createElement("aikaara-option-list");
@@ -13267,12 +13275,45 @@ class ah extends HTMLElement {
13267
13275
  });
13268
13276
  }
13269
13277
  }
13278
+ /**
13279
+ * Link-typed payload entry (templateId 3 — Pay Now etc.). Mounts a
13280
+ * `<aikaara-link-button>` and forwards the URL / orderId. The button
13281
+ * opens an iframe modal by default but lets the host app intercept
13282
+ * via the `aikaara-link-action` event.
13283
+ */
13284
+ mountLinkButton(e) {
13285
+ import("./AikaaraLinkButton-C1S7MfVT.mjs").then(({ registerAikaaraLinkButton: t, AikaaraLinkButton: i }) => {
13286
+ t();
13287
+ const l = document.createElement("aikaara-link-button");
13288
+ l.setPayload({
13289
+ name: e.name ?? "Open",
13290
+ url: e.url ?? "",
13291
+ openLinkInNewTab: e.openLinkInNewTab,
13292
+ orderId: e.orderId,
13293
+ extra: uh(e),
13294
+ messageId: this.getAttribute("message-id") ?? void 0
13295
+ }), this.appendChild(l);
13296
+ });
13297
+ }
13270
13298
  mountModal(e) {
13271
13299
  const t = document.createElement("aikaara-modal-action");
13272
13300
  t.setPayload(e), this.appendChild(t);
13273
13301
  }
13274
13302
  }
13275
- class lh extends HTMLElement {
13303
+ const lh = /* @__PURE__ */ new Set([
13304
+ "type",
13305
+ "url",
13306
+ "name",
13307
+ "openLinkInNewTab",
13308
+ "orderId"
13309
+ ]);
13310
+ function uh(u) {
13311
+ const e = {};
13312
+ for (const [t, i] of Object.entries(u))
13313
+ lh.has(t) || (e[t] = i);
13314
+ return e;
13315
+ }
13316
+ class ch extends HTMLElement {
13276
13317
  shadow;
13277
13318
  static get observedAttributes() {
13278
13319
  return ["text", "subtext"];
@@ -13321,7 +13362,7 @@ class lh extends HTMLElement {
13321
13362
  function ws(u) {
13322
13363
  return String(u).replace(/[&<>]/g, (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;" })[e]);
13323
13364
  }
13324
- class uh extends HTMLElement {
13365
+ class hh extends HTMLElement {
13325
13366
  shadow;
13326
13367
  data = null;
13327
13368
  selected = /* @__PURE__ */ new Set();
@@ -13472,7 +13513,7 @@ function tr(u) {
13472
13513
  function _s(u) {
13473
13514
  return String(u).replace(/[&<>"']/g, (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" })[e]);
13474
13515
  }
13475
- class ch extends HTMLElement {
13516
+ class fh extends HTMLElement {
13476
13517
  shadow;
13477
13518
  data = null;
13478
13519
  constructor() {
@@ -13532,14 +13573,14 @@ class ch extends HTMLElement {
13532
13573
  button:hover { background: var(--aikaara-submit-hover-bg, var(--aikaara-primary-hover, #4f46e5)); }
13533
13574
  button:disabled { opacity: var(--aikaara-submit-disabled-opacity, 0.5); cursor: not-allowed; }
13534
13575
  </style>
13535
- <button type="button">${hh(e)}</button>
13576
+ <button type="button">${dh(e)}</button>
13536
13577
  `, this.shadow.querySelector("button").addEventListener("click", () => this.handleClick());
13537
13578
  }
13538
13579
  }
13539
- function hh(u) {
13580
+ function dh(u) {
13540
13581
  return String(u).replace(/[&<>]/g, (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;" })[e]);
13541
13582
  }
13542
- class fh extends HTMLElement {
13583
+ class ph extends HTMLElement {
13543
13584
  shadow;
13544
13585
  data = null;
13545
13586
  dismissed = !1;
@@ -13631,7 +13672,7 @@ class fh extends HTMLElement {
13631
13672
  function Wr(u) {
13632
13673
  return String(u).replace(/[&<>]/g, (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;" })[e]);
13633
13674
  }
13634
- class dh extends HTMLElement {
13675
+ class gh extends HTMLElement {
13635
13676
  static get observedAttributes() {
13636
13677
  return ["slug", "user-id", "user-name", "user-token", "department-id", "config-base"];
13637
13678
  }
@@ -13667,7 +13708,7 @@ class dh extends HTMLElement {
13667
13708
  }
13668
13709
  return this.mountInflight = (async () => {
13669
13710
  try {
13670
- this.mounted = await Ch({
13711
+ this.mounted = await Ph({
13671
13712
  container: this,
13672
13713
  slug: e,
13673
13714
  configBase: this.getAttribute("config-base") ?? void 0,
@@ -13693,7 +13734,7 @@ class dh extends HTMLElement {
13693
13734
  })(), this.mountInflight;
13694
13735
  }
13695
13736
  }
13696
- class ph extends HTMLElement {
13737
+ class mh extends HTMLElement {
13697
13738
  shadow;
13698
13739
  root = null;
13699
13740
  iframe = null;
@@ -13810,7 +13851,7 @@ class ph extends HTMLElement {
13810
13851
  });
13811
13852
  }
13812
13853
  }
13813
- const gh = [
13854
+ const bh = [
13814
13855
  { label: "Self-filing guidance" },
13815
13856
  { label: "Smart tax suggestions" },
13816
13857
  { label: "Auto-fetch 26AS / AIS" },
@@ -13818,7 +13859,7 @@ const gh = [
13818
13859
  { label: "Dedicated tax expert" },
13819
13860
  { label: "End-to-end filing" },
13820
13861
  { label: "Document handling" }
13821
- ], mh = [
13862
+ ], yh = [
13822
13863
  {
13823
13864
  label: "DIY",
13824
13865
  match: ["DIY", "DIY_SALARY"],
@@ -13841,11 +13882,11 @@ const gh = [
13841
13882
  features: [!0, !0, !0, !0, !0, !0, !0]
13842
13883
  }
13843
13884
  ];
13844
- class bh extends HTMLElement {
13885
+ class vh extends HTMLElement {
13845
13886
  shadow;
13846
13887
  data = null;
13847
- columns = mh;
13848
- features = gh;
13888
+ columns = yh;
13889
+ features = bh;
13849
13890
  constructor() {
13850
13891
  super(), this.shadow = this.attachShadow({ mode: "open" });
13851
13892
  }
@@ -13978,7 +14019,7 @@ function qr(u) {
13978
14019
  (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" })[e]
13979
14020
  );
13980
14021
  }
13981
- function yh() {
14022
+ function wh() {
13982
14023
  const u = [
13983
14024
  ["aikaara-chat-widget", qc],
13984
14025
  ["aikaara-chat-bubble", Hc],
@@ -13990,18 +14031,18 @@ function yh() {
13990
14031
  ["aikaara-streaming-message", nh],
13991
14032
  ["aikaara-error-banner", ih],
13992
14033
  ["aikaara-template-renderer", ah],
13993
- ["aikaara-system-pill", lh],
13994
- ["aikaara-option-list", uh],
13995
- ["aikaara-submit-action", ch],
13996
- ["aikaara-modal-action", fh],
13997
- ["aikaara-chat", dh],
13998
- ["aikaara-link-modal", ph],
13999
- ["aikaara-compare-plans", bh]
14034
+ ["aikaara-system-pill", ch],
14035
+ ["aikaara-option-list", hh],
14036
+ ["aikaara-submit-action", fh],
14037
+ ["aikaara-modal-action", ph],
14038
+ ["aikaara-chat", gh],
14039
+ ["aikaara-link-modal", mh],
14040
+ ["aikaara-compare-plans", vh]
14000
14041
  ];
14001
14042
  for (const [e, t] of u)
14002
14043
  customElements.get(e) || customElements.define(e, t);
14003
14044
  }
14004
- yh();
14045
+ wh();
14005
14046
  function Hr(u, e, t = "") {
14006
14047
  if (!e) return t;
14007
14048
  const i = e.split(".");
@@ -14012,7 +14053,7 @@ function Hr(u, e, t = "") {
14012
14053
  else return t;
14013
14054
  return typeof l == "string" ? l : t;
14014
14055
  }
14015
- function vh(u) {
14056
+ function _h(u) {
14016
14057
  try {
14017
14058
  const e = u.split(".")[1];
14018
14059
  if (!e) return 0;
@@ -14024,10 +14065,10 @@ function vh(u) {
14024
14065
  return 0;
14025
14066
  }
14026
14067
  }
14027
- async function Cr(u) {
14068
+ async function Or(u) {
14028
14069
  return typeof u == "function" ? await u() : u;
14029
14070
  }
14030
- class wh {
14071
+ class Sh {
14031
14072
  constructor(e, t) {
14032
14073
  this.descriptor = e, this.sessionToken = t;
14033
14074
  }
@@ -14044,7 +14085,7 @@ class wh {
14044
14085
  }), this.inflight);
14045
14086
  }
14046
14087
  async fetchOnce() {
14047
- const e = await Cr(this.sessionToken), t = this.descriptor.authHeader ?? "Authorization", i = this.descriptor.authHeaderTemplate ?? "Bearer {token}", l = {
14088
+ const e = await Or(this.sessionToken), t = this.descriptor.authHeader ?? "Authorization", i = this.descriptor.authHeaderTemplate ?? "Bearer {token}", l = {
14048
14089
  accept: "application/json",
14049
14090
  ...this.descriptor.headers ?? {},
14050
14091
  [t]: i.replace("{token}", e)
@@ -14059,11 +14100,11 @@ class wh {
14059
14100
  if (!d) throw new Error("Session auth response missing token");
14060
14101
  const p = Hr(o, this.descriptor.requestIdPath ?? "data.requestId"), b = this.cache?.requestId || p;
14061
14102
  if (!b) throw new Error("Session auth response missing requestId");
14062
- const f = Hr(o, this.descriptor.fullNamePath ?? "data.fullName"), m = vh(d) || Date.now() + 3600 * 1e3;
14103
+ const f = Hr(o, this.descriptor.fullNamePath ?? "data.fullName"), m = _h(d) || Date.now() + 3600 * 1e3;
14063
14104
  return this.cache = { token: d, requestId: b, fullName: f, expiresAt: m }, this.cache;
14064
14105
  }
14065
14106
  }
14066
- function _h() {
14107
+ function Eh() {
14067
14108
  const u = typeof crypto < "u" ? crypto : null;
14068
14109
  if (u?.randomUUID) return u.randomUUID();
14069
14110
  if (u?.getRandomValues) {
@@ -14077,32 +14118,32 @@ function _h() {
14077
14118
  return (e === "x" ? t : t & 3 | 8).toString(16);
14078
14119
  });
14079
14120
  }
14080
- const Sh = "aikaara_chat:requestId";
14121
+ const kh = "aikaara_chat:requestId";
14081
14122
  function io(u, e) {
14082
- return `${Sh}:${u}:${e}`;
14123
+ return `${kh}:${u}:${e}`;
14083
14124
  }
14084
- function Eh(u, e) {
14125
+ function xh(u, e) {
14085
14126
  try {
14086
14127
  return localStorage.getItem(io(u, e));
14087
14128
  } catch {
14088
14129
  return null;
14089
14130
  }
14090
14131
  }
14091
- function kh(u, e, t) {
14132
+ function Ah(u, e, t) {
14092
14133
  try {
14093
14134
  localStorage.setItem(io(u, e), t);
14094
14135
  } catch {
14095
14136
  }
14096
14137
  }
14097
- function Oh(u, e) {
14138
+ function Mh(u, e) {
14098
14139
  try {
14099
14140
  localStorage.removeItem(io(u, e));
14100
14141
  } catch {
14101
14142
  }
14102
14143
  }
14103
- async function xh(u, e) {
14144
+ async function Ih(u, e) {
14104
14145
  console.log("[aikaara-chat-sdk] preflight running", u.length, "steps");
14105
- const t = { userId: e.userId, projectId: e.projectId, slug: e.slug }, i = (r) => r.replace(/\{(\w+)\}/g, (n, s) => t[s] ?? ""), l = await Cr(e.sessionToken);
14146
+ const t = { userId: e.userId, projectId: e.projectId, slug: e.slug }, i = (r) => r.replace(/\{(\w+)\}/g, (n, s) => t[s] ?? ""), l = await Or(e.sessionToken);
14106
14147
  for (let r = 0; r < u.length; r++) {
14107
14148
  const n = u[r], s = i(n.url), o = n.method ?? (n.body ? "POST" : "GET"), a = { accept: "application/json", ...n.headers ?? {} };
14108
14149
  if ((n.authHeader ?? "session") === "session") {
@@ -14143,18 +14184,18 @@ async function il(u, e) {
14143
14184
  }
14144
14185
  return i;
14145
14186
  }
14146
- function Ah(u, e) {
14147
- return u.replace("{projectId}", e).replace("{uuid}", _h().replace(/-/g, ""));
14187
+ function Th(u, e) {
14188
+ return u.replace("{projectId}", e).replace("{uuid}", Eh().replace(/-/g, ""));
14148
14189
  }
14149
- async function Ih(u) {
14190
+ async function Oh(u) {
14150
14191
  const e = {
14151
14192
  ...u.config ?? (u.configUrl ? await il(u.configUrl, u.configHeaders) : {}),
14152
14193
  ...u.overrides ?? {}
14153
14194
  }, t = e.transport ?? "tiledesk", i = e.tiledesk;
14154
14195
  if ((t === "tiledesk" || t === "dual") && !i)
14155
14196
  throw new Error("mount: descriptor.tiledesk is required for tiledesk/dual transport");
14156
- const l = i?.projectId ?? "", r = u.identity.userId, n = u.forceNewConversation ? null : Eh(r, l), s = i?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", o = u.conversationId ?? n ?? Ah(s, l);
14157
- (!n || u.forceNewConversation) && l && kh(r, l, o);
14197
+ const l = i?.projectId ?? "", r = u.identity.userId, n = u.forceNewConversation ? null : xh(r, l), s = i?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", o = u.conversationId ?? n ?? Th(s, l);
14198
+ (!n || u.forceNewConversation) && l && Ah(r, l, o);
14158
14199
  const a = await u.tokenProvider(), c = u.tokenProvider, d = u.historyTokenProvider ?? c, p = i ? {
14159
14200
  mqttEndpoint: i.mqttEndpoint,
14160
14201
  jwtToken: a,
@@ -14235,13 +14276,13 @@ async function Ih(u) {
14235
14276
  }
14236
14277
  };
14237
14278
  }
14238
- function Th(u) {
14279
+ function Ch(u) {
14239
14280
  if (typeof u != "string") return u;
14240
14281
  const e = document.querySelector(u);
14241
14282
  if (!e) throw new Error(`mountFromSlug: container "${u}" not found`);
14242
14283
  return e;
14243
14284
  }
14244
- async function Ch(u) {
14285
+ async function Ph(u) {
14245
14286
  const t = `${(u.configBase ?? "https://api.aikaara.com").replace(/\/$/, "")}/widget_configs/${encodeURIComponent(u.slug)}`;
14246
14287
  let i = null;
14247
14288
  try {
@@ -14262,13 +14303,13 @@ async function Ch(u) {
14262
14303
  throw new Error(
14263
14304
  `mountFromSlug: widget_configs/${u.slug} descriptor must include "auth" block`
14264
14305
  );
14265
- l.preflight && l.preflight.length && await xh(l.preflight, {
14306
+ l.preflight && l.preflight.length && await Ih(l.preflight, {
14266
14307
  sessionToken: u.user.token,
14267
14308
  userId: u.user.id,
14268
14309
  projectId: l.tiledesk?.projectId ?? "",
14269
14310
  slug: u.slug
14270
14311
  });
14271
- const r = new wh(l.auth, u.user.token), n = await r.get(), s = n.fullName || u.user.name || u.user.id, o = l.upload, a = async () => `Bearer ${o && "tokenSource" in o && o.tokenSource === "chat" ? (await r.get()).token : await Cr(u.user.token)}`, c = u.hooks?.upload ?? (o && o.mode === "presigned-3step" ? Dc({
14312
+ const r = new Sh(l.auth, u.user.token), n = await r.get(), s = n.fullName || u.user.name || u.user.id, o = l.upload, a = async () => `Bearer ${o && "tokenSource" in o && o.tokenSource === "chat" ? (await r.get()).token : await Or(u.user.token)}`, c = u.hooks?.upload ?? (o && o.mode === "presigned-3step" ? Dc({
14272
14313
  ...o,
14273
14314
  authHeader: a
14274
14315
  }) : o && o.mode === "direct" ? tl({
@@ -14276,8 +14317,8 @@ async function Ch(u) {
14276
14317
  fieldName: o.fieldName,
14277
14318
  extraFields: o.extraFields,
14278
14319
  headers: async () => ({ authorization: await a() })
14279
- }) : void 0), d = await Ih({
14280
- container: Th(u.container),
14320
+ }) : void 0), d = await Oh({
14321
+ container: Ch(u.container),
14281
14322
  config: l,
14282
14323
  identity: {
14283
14324
  userId: u.user.id,
@@ -14291,7 +14332,7 @@ async function Ch(u) {
14291
14332
  historyAdapter: u.hooks?.history,
14292
14333
  conversationId: n.requestId,
14293
14334
  onError: u.hooks?.onError,
14294
- getLinkBearer: async (p) => p === "none" ? null : p === "chat" ? (await r.get()).token : Cr(u.user.token)
14335
+ getLinkBearer: async (p) => p === "none" ? null : p === "chat" ? (await r.get()).token : Or(u.user.token)
14295
14336
  });
14296
14337
  return Object.assign(d, {
14297
14338
  fullName: s,
@@ -14303,16 +14344,16 @@ async function Ch(u) {
14303
14344
  }
14304
14345
  export {
14305
14346
  oo as A,
14306
- ph as B,
14347
+ mh as B,
14307
14348
  ol as C,
14308
- fh as D,
14349
+ ph as D,
14309
14350
  Ss as E,
14310
- uh as F,
14311
- ch as G,
14312
- lh as H,
14351
+ hh as F,
14352
+ fh as G,
14353
+ ch as H,
14313
14354
  ah as I,
14314
14355
  bl as M,
14315
- wh as S,
14356
+ Sh as S,
14316
14357
  Pc as T,
14317
14358
  Hc as a,
14318
14359
  Uc as b,
@@ -14327,17 +14368,17 @@ export {
14327
14368
  ml as k,
14328
14369
  gl as l,
14329
14370
  yl as m,
14330
- Oh as n,
14371
+ Mh as n,
14331
14372
  tl as o,
14332
14373
  Dc as p,
14333
14374
  $c as q,
14334
- yh as r,
14375
+ wh as r,
14335
14376
  Lc as s,
14336
14377
  jc as t,
14337
14378
  Rc as u,
14338
- Ch as v,
14339
- Ih as w,
14379
+ Ph as v,
14380
+ Oh as w,
14340
14381
  el as x,
14341
- dh as y,
14342
- bh as z
14382
+ gh as y,
14383
+ vh as z
14343
14384
  };