@aikaara/chat-sdk 1.4.21 → 1.4.23

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.
@@ -163,7 +163,7 @@ class Qs {
163
163
  this.handlers.clear();
164
164
  }
165
165
  }
166
- const Hl = 1e3, Wl = 10, zl = 400, Vl = 600, Co = "#6366f1", Kl = 12, Gl = "system-ui, -apple-system, sans-serif", Oo = "Type a message...", Yl = "bottom-right", Jl = "light", Ql = { x: 20, y: 20 }, Qr = "aikaara_conversation_id";
166
+ const Hl = 1e3, Wl = 10, zl = 400, Vl = 600, Co = "#6366f1", Kl = 12, Gl = "system-ui, -apple-system, sans-serif", Oo = "Type a message...", Yl = "bottom-right", Jl = "light", Ql = { x: 20, y: 20 }, Xr = "aikaara_conversation_id";
167
167
  class Xl extends Qs {
168
168
  client;
169
169
  config;
@@ -446,7 +446,7 @@ class ec {
446
446
  for (const r of e) {
447
447
  const o = Po(t, r);
448
448
  if (o) {
449
- const n = Fr(o), i = Fr(r);
449
+ const n = $r(o), i = $r(r);
450
450
  !n && i && Object.assign(o, r, { id: o.id });
451
451
  continue;
452
452
  }
@@ -461,7 +461,7 @@ class ec {
461
461
  function Po(s, e, t = 15e3) {
462
462
  const r = e.attachments && e.attachments[0], o = (e.metadata ?? {}).attributes;
463
463
  if (!(!!r || !!(o && o.fileMessage))) return null;
464
- const i = Fr(e), a = Mo(e), l = Ro(e);
464
+ const i = $r(e), a = Mo(e), l = Ro(e);
465
465
  if (!i && !a && !l) return null;
466
466
  const c = new Date(e.createdAt).getTime();
467
467
  for (let u = s.length - 1; u >= 0; u--) {
@@ -469,7 +469,7 @@ function Po(s, e, t = 15e3) {
469
469
  if (!(!!p || !!(g && g.fileMessage))) continue;
470
470
  const b = (h.content || "").trim().toLowerCase();
471
471
  if (b === "file_uploaded" || b === "file_upload" || Math.abs(c - new Date(h.createdAt).getTime()) > t) continue;
472
- const y = Fr(h);
472
+ const y = $r(h);
473
473
  if (i && y && i === y) return h;
474
474
  const w = Mo(h);
475
475
  if (a && w && a === w) return h;
@@ -494,7 +494,7 @@ function Ro(s) {
494
494
  const n = s.template?.payload?.elements?.[0]?.description;
495
495
  if (typeof n == "string" && n) return n;
496
496
  }
497
- function Fr(s) {
497
+ function $r(s) {
498
498
  const e = s.attachments && s.attachments[0];
499
499
  if (e && typeof e.cloudFileId == "string")
500
500
  return e.cloudFileId;
@@ -527,34 +527,34 @@ class tc {
527
527
  clear() {
528
528
  if (this._conversationId = null, this.persist)
529
529
  try {
530
- localStorage.removeItem(Qr);
530
+ localStorage.removeItem(Xr);
531
531
  } catch {
532
532
  }
533
533
  }
534
534
  loadFromStorage() {
535
535
  if (!this.persist) return null;
536
536
  try {
537
- return localStorage.getItem(Qr);
537
+ return localStorage.getItem(Xr);
538
538
  } catch {
539
539
  return null;
540
540
  }
541
541
  }
542
542
  saveToStorage(e) {
543
543
  try {
544
- localStorage.setItem(Qr, e);
544
+ localStorage.setItem(Xr, e);
545
545
  } catch {
546
546
  }
547
547
  }
548
548
  }
549
- var uo = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, nc = Object.getOwnPropertyNames, ic = Object.prototype.hasOwnProperty, Ge = (s, e) => () => (s && (e = s(s = 0)), e), pe = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports), Wt = (s, e) => {
550
- for (var t in e) uo(s, t, { get: e[t], enumerable: !0 });
549
+ var ho = Object.defineProperty, rc = Object.getOwnPropertyDescriptor, nc = Object.getOwnPropertyNames, ic = Object.prototype.hasOwnProperty, Ge = (s, e) => () => (s && (e = s(s = 0)), e), pe = (s, e) => () => (e || s((e = { exports: {} }).exports, e), e.exports), Wt = (s, e) => {
550
+ for (var t in e) ho(s, t, { get: e[t], enumerable: !0 });
551
551
  }, oc = (s, e, t, r) => {
552
- if (e && typeof e == "object" || typeof e == "function") for (let o of nc(e)) !ic.call(s, o) && o !== t && uo(s, o, { get: () => e[o], enumerable: !(r = rc(e, o)) || r.enumerable });
552
+ if (e && typeof e == "object" || typeof e == "function") for (let o of nc(e)) !ic.call(s, o) && o !== t && ho(s, o, { get: () => e[o], enumerable: !(r = rc(e, o)) || r.enumerable });
553
553
  return s;
554
- }, Me = (s) => oc(uo({}, "__esModule", { value: !0 }), s), le = Ge(() => {
554
+ }, Me = (s) => oc(ho({}, "__esModule", { value: !0 }), s), le = Ge(() => {
555
555
  }), Re = {};
556
- Wt(Re, { _debugEnd: () => Hn, _debugProcess: () => qn, _events: () => ii, _eventsCount: () => oi, _exiting: () => Tn, _fatalExceptions: () => Dn, _getActiveHandles: () => oa, _getActiveRequests: () => ia, _kill: () => Pn, _linkedBinding: () => ra, _maxListeners: () => ni, _preload_modules: () => ti, _rawDebug: () => En, _startProfilerIdleNotifier: () => Wn, _stopProfilerIdleNotifier: () => zn, _tickCallback: () => $n, abort: () => Yn, addListener: () => si, allowedNodeEnvironmentFlags: () => Un, arch: () => hn, argv: () => pn, argv0: () => ei, assert: () => sa, binding: () => vn, browser: () => Sn, chdir: () => kn, config: () => Cn, cpuUsage: () => Zt, cwd: () => _n, debugPort: () => Zn, default: () => fo, dlopen: () => na, domain: () => In, emit: () => hi, emitWarning: () => yn, env: () => fn, execArgv: () => mn, execPath: () => Xn, exit: () => Nn, features: () => Bn, hasUncaughtExceptionCaptureCallback: () => aa, hrtime: () => mr, kill: () => Ln, listeners: () => ca, memoryUsage: () => Rn, moduleLoadList: () => An, nextTick: () => ea, off: () => li, on: () => ct, once: () => ai, openStdin: () => jn, pid: () => Jn, platform: () => dn, ppid: () => Qn, prependListener: () => di, prependOnceListener: () => fi, reallyExit: () => On, release: () => xn, removeAllListeners: () => ui, removeListener: () => ci, resourceUsage: () => Mn, setSourceMapsEnabled: () => ri, setUncaughtExceptionCaptureCallback: () => Fn, stderr: () => Kn, stdin: () => Gn, stdout: () => Vn, title: () => un, umask: () => wn, uptime: () => la, version: () => gn, versions: () => bn });
557
- function ho(s) {
556
+ Wt(Re, { _debugEnd: () => Wn, _debugProcess: () => Hn, _events: () => oi, _eventsCount: () => si, _exiting: () => Cn, _fatalExceptions: () => Fn, _getActiveHandles: () => oa, _getActiveRequests: () => ia, _kill: () => Mn, _linkedBinding: () => ra, _maxListeners: () => ii, _preload_modules: () => ri, _rawDebug: () => An, _startProfilerIdleNotifier: () => zn, _stopProfilerIdleNotifier: () => Vn, _tickCallback: () => qn, abort: () => Jn, addListener: () => ai, allowedNodeEnvironmentFlags: () => Bn, arch: () => dn, argv: () => mn, argv0: () => ti, assert: () => sa, binding: () => wn, browser: () => En, chdir: () => xn, config: () => On, cpuUsage: () => Zt, cwd: () => kn, debugPort: () => ei, default: () => po, dlopen: () => na, domain: () => Tn, emit: () => di, emitWarning: () => vn, env: () => pn, execArgv: () => gn, execPath: () => Zn, exit: () => jn, features: () => Dn, hasUncaughtExceptionCaptureCallback: () => aa, hrtime: () => gr, kill: () => Nn, listeners: () => ca, memoryUsage: () => Ln, moduleLoadList: () => In, nextTick: () => ea, off: () => ci, on: () => ct, once: () => li, openStdin: () => Un, pid: () => Qn, platform: () => fn, ppid: () => Xn, prependListener: () => fi, prependOnceListener: () => pi, reallyExit: () => Pn, release: () => Sn, removeAllListeners: () => hi, removeListener: () => ui, resourceUsage: () => Rn, setSourceMapsEnabled: () => ni, setUncaughtExceptionCaptureCallback: () => $n, stderr: () => Gn, stdin: () => Yn, stdout: () => Kn, title: () => hn, umask: () => _n, uptime: () => la, version: () => bn, versions: () => yn });
557
+ function fo(s) {
558
558
  throw new Error("Node.js process " + s + " is not supported by JSPM core outside of Node.js");
559
559
  }
560
560
  function sc() {
@@ -582,10 +582,10 @@ function ta(s, e) {
582
582
  function qe() {
583
583
  }
584
584
  function ra(s) {
585
- ho("_linkedBinding");
585
+ fo("_linkedBinding");
586
586
  }
587
587
  function na(s) {
588
- ho("dlopen");
588
+ fo("dlopen");
589
589
  }
590
590
  function ia() {
591
591
  return [];
@@ -602,40 +602,40 @@ function aa() {
602
602
  function la() {
603
603
  return ht.now() / 1e3;
604
604
  }
605
- function mr(s) {
605
+ function gr(s) {
606
606
  var e = Math.floor((Date.now() - ht.now()) * 1e-3), t = ht.now() * 1e-3, r = Math.floor(t) + e, o = Math.floor(t % 1 * 1e9);
607
- return s && (r = r - s[0], o = o - s[1], o < 0 && (r--, o += gr)), [r, o];
607
+ return s && (r = r - s[0], o = o - s[1], o < 0 && (r--, o += br)), [r, o];
608
608
  }
609
609
  function ct() {
610
- return fo;
610
+ return po;
611
611
  }
612
612
  function ca(s) {
613
613
  return [];
614
614
  }
615
- var st, Pt, Ct, nr, un, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn, Cn, On, Pn, Zt, Mn, Rn, Ln, Nn, jn, Un, Bn, Dn, Fn, $n, qn, Hn, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ht, Xr, gr, ni, ii, oi, si, ai, li, ci, ui, hi, di, fi, fo, ac = Ge(() => {
615
+ var st, Pt, Ct, nr, hn, dn, fn, pn, mn, gn, bn, yn, vn, wn, _n, kn, xn, Sn, En, An, In, Tn, Cn, On, Pn, Mn, Zt, Rn, Ln, Nn, jn, Un, Bn, Dn, Fn, $n, qn, Hn, Wn, zn, Vn, Kn, Gn, Yn, Jn, Qn, Xn, Zn, ei, ti, ri, ni, ht, Zr, br, ii, oi, si, ai, li, ci, ui, hi, di, fi, pi, po, ac = Ge(() => {
616
616
  le(), ue(), ce(), st = [], Pt = !1, nr = -1, ta.prototype.run = function() {
617
617
  this.fun.apply(null, this.array);
618
- }, un = "browser", hn = "x64", dn = "browser", fn = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, pn = ["/usr/bin/node"], mn = [], gn = "v16.8.0", bn = {}, yn = function(s, e) {
618
+ }, hn = "browser", dn = "x64", fn = "browser", pn = { PATH: "/usr/bin", LANG: typeof navigator < "u" ? navigator.language + ".UTF-8" : void 0, PWD: "/", HOME: "/home", TMP: "/tmp" }, mn = ["/usr/bin/node"], gn = [], bn = "v16.8.0", yn = {}, vn = function(s, e) {
619
619
  console.warn((e ? e + ": " : "") + s);
620
- }, vn = function(s) {
621
- ho("binding");
622
620
  }, wn = function(s) {
621
+ fo("binding");
622
+ }, _n = function(s) {
623
623
  return 0;
624
- }, _n = function() {
624
+ }, kn = function() {
625
625
  return "/";
626
- }, kn = function(s) {
627
- }, xn = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, Sn = !0, En = qe, An = [], In = {}, Tn = !1, Cn = {}, On = qe, Pn = qe, Zt = function() {
626
+ }, xn = function(s) {
627
+ }, Sn = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, En = !0, An = qe, In = [], Tn = {}, Cn = !1, On = {}, Pn = qe, Mn = qe, Zt = function() {
628
628
  return {};
629
- }, Mn = Zt, Rn = Zt, Ln = qe, Nn = qe, jn = qe, Un = {}, Bn = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, Dn = qe, Fn = qe, $n = qe, qn = qe, Hn = qe, Wn = qe, zn = qe, Vn = void 0, Kn = void 0, Gn = void 0, Yn = qe, Jn = 2, Qn = 1, Xn = "/bin/usr/node", Zn = 9229, ei = "node", ti = [], ri = qe, ht = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, ht.now === void 0 && (Xr = Date.now(), ht.timing && ht.timing.navigationStart && (Xr = ht.timing.navigationStart), ht.now = () => Date.now() - Xr), gr = 1e9, mr.bigint = function(s) {
630
- var e = mr(s);
631
- return typeof BigInt > "u" ? e[0] * gr + e[1] : BigInt(e[0] * gr) + BigInt(e[1]);
632
- }, ni = 10, ii = {}, oi = 0, si = ct, ai = ct, li = ct, ci = ct, ui = ct, hi = qe, di = ct, fi = ct, fo = { version: gn, versions: bn, arch: hn, platform: dn, browser: Sn, release: xn, _rawDebug: En, moduleLoadList: An, binding: vn, _linkedBinding: ra, _events: ii, _eventsCount: oi, _maxListeners: ni, on: ct, addListener: si, once: ai, off: li, removeListener: ci, removeAllListeners: ui, emit: hi, prependListener: di, prependOnceListener: fi, listeners: ca, domain: In, _exiting: Tn, config: Cn, dlopen: na, uptime: la, _getActiveRequests: ia, _getActiveHandles: oa, reallyExit: On, _kill: Pn, cpuUsage: Zt, resourceUsage: Mn, memoryUsage: Rn, kill: Ln, exit: Nn, openStdin: jn, allowedNodeEnvironmentFlags: Un, assert: sa, features: Bn, _fatalExceptions: Dn, setUncaughtExceptionCaptureCallback: Fn, hasUncaughtExceptionCaptureCallback: aa, emitWarning: yn, nextTick: ea, _tickCallback: $n, _debugProcess: qn, _debugEnd: Hn, _startProfilerIdleNotifier: Wn, _stopProfilerIdleNotifier: zn, stdout: Vn, stdin: Gn, stderr: Kn, abort: Yn, umask: wn, chdir: kn, cwd: _n, env: fn, title: un, argv: pn, execArgv: mn, pid: Jn, ppid: Qn, execPath: Xn, debugPort: Zn, hrtime: mr, argv0: ei, _preload_modules: ti, setSourceMapsEnabled: ri };
629
+ }, Rn = Zt, Ln = Zt, Nn = qe, jn = qe, Un = qe, Bn = {}, Dn = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, Fn = qe, $n = qe, qn = qe, Hn = qe, Wn = qe, zn = qe, Vn = qe, Kn = void 0, Gn = void 0, Yn = void 0, Jn = qe, Qn = 2, Xn = 1, Zn = "/bin/usr/node", ei = 9229, ti = "node", ri = [], ni = qe, ht = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, ht.now === void 0 && (Zr = Date.now(), ht.timing && ht.timing.navigationStart && (Zr = ht.timing.navigationStart), ht.now = () => Date.now() - Zr), br = 1e9, gr.bigint = function(s) {
630
+ var e = gr(s);
631
+ return typeof BigInt > "u" ? e[0] * br + e[1] : BigInt(e[0] * br) + BigInt(e[1]);
632
+ }, ii = 10, oi = {}, si = 0, ai = ct, li = ct, ci = ct, ui = ct, hi = ct, di = qe, fi = ct, pi = ct, po = { version: bn, versions: yn, arch: dn, platform: fn, browser: En, release: Sn, _rawDebug: An, moduleLoadList: In, binding: wn, _linkedBinding: ra, _events: oi, _eventsCount: si, _maxListeners: ii, on: ct, addListener: ai, once: li, off: ci, removeListener: ui, removeAllListeners: hi, emit: di, prependListener: fi, prependOnceListener: pi, listeners: ca, domain: Tn, _exiting: Cn, config: On, dlopen: na, uptime: la, _getActiveRequests: ia, _getActiveHandles: oa, reallyExit: Pn, _kill: Mn, cpuUsage: Zt, resourceUsage: Rn, memoryUsage: Ln, kill: Nn, exit: jn, openStdin: Un, allowedNodeEnvironmentFlags: Bn, assert: sa, features: Dn, _fatalExceptions: Fn, setUncaughtExceptionCaptureCallback: $n, hasUncaughtExceptionCaptureCallback: aa, emitWarning: vn, nextTick: ea, _tickCallback: qn, _debugProcess: Hn, _debugEnd: Wn, _startProfilerIdleNotifier: zn, _stopProfilerIdleNotifier: Vn, stdout: Kn, stdin: Yn, stderr: Gn, abort: Jn, umask: _n, chdir: xn, cwd: kn, env: pn, title: hn, argv: mn, execArgv: gn, pid: Qn, ppid: Xn, execPath: Zn, debugPort: ei, hrtime: gr, argv0: ti, _preload_modules: ri, setSourceMapsEnabled: ni };
633
633
  }), ce = Ge(() => {
634
634
  ac();
635
635
  });
636
636
  function lc() {
637
- if (pi) return Bt;
638
- pi = !0, Bt.byteLength = a, Bt.toByteArray = c, Bt.fromByteArray = p;
637
+ if (mi) return Bt;
638
+ mi = !0, Bt.byteLength = a, Bt.toByteArray = c, Bt.fromByteArray = p;
639
639
  for (var s = [], e = [], t = typeof Uint8Array < "u" ? Uint8Array : Array, r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = 0, n = r.length; o < n; ++o) s[o] = r[o], e[r.charCodeAt(o)] = o;
640
640
  e[45] = 62, e[95] = 63;
641
641
  function i(g) {
@@ -672,7 +672,7 @@ function lc() {
672
672
  return Bt;
673
673
  }
674
674
  function cc() {
675
- return mi ? er : (mi = !0, er.read = function(s, e, t, r, o) {
675
+ return gi ? er : (gi = !0, er.read = function(s, e, t, r, o) {
676
676
  var n, i, a = o * 8 - r - 1, l = (1 << a) - 1, c = l >> 1, u = -7, h = t ? o - 1 : 0, p = t ? -1 : 1, g = s[e + h];
677
677
  for (h += p, n = g & (1 << -u) - 1, g >>= -u, u += a; u > 0; n = n * 256 + s[e + h], h += p, u -= 8) ;
678
678
  for (i = n & (1 << -u) - 1, n >>= -u, u += r; u > 0; i = i * 256 + s[e + h], h += p, u -= 8) ;
@@ -690,8 +690,8 @@ function cc() {
690
690
  }, er);
691
691
  }
692
692
  function uc() {
693
- if (gi) return wt;
694
- gi = !0;
693
+ if (bi) return wt;
694
+ bi = !0;
695
695
  let s = lc(), e = cc(), t = typeof Symbol == "function" && typeof Symbol.for == "function" ? /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom") : null;
696
696
  wt.Buffer = i, wt.SlowBuffer = w, wt.INSPECT_MAX_BYTES = 50;
697
697
  let r = 2147483647;
@@ -955,8 +955,8 @@ function uc() {
955
955
  if (d.length < 2 || k.length < 2) return -1;
956
956
  he = 2, ke /= 2, z /= 2, A /= 2;
957
957
  }
958
- function ie(Ae, Ie) {
959
- return he === 1 ? Ae[Ie] : Ae.readUInt16BE(Ie * he);
958
+ function ie(Ae, Te) {
959
+ return he === 1 ? Ae[Te] : Ae.readUInt16BE(Te * he);
960
960
  }
961
961
  let Ee;
962
962
  if (X) {
@@ -966,7 +966,7 @@ function uc() {
966
966
  } else Ae !== -1 && (Ee -= Ee - Ae), Ae = -1;
967
967
  } else for (A + z > ke && (A = ke - z), Ee = A; Ee >= 0; Ee--) {
968
968
  let Ae = !0;
969
- for (let Ie = 0; Ie < z; Ie++) if (ie(d, Ee + Ie) !== ie(k, Ie)) {
969
+ for (let Te = 0; Te < z; Te++) if (ie(d, Ee + Te) !== ie(k, Te)) {
970
970
  Ae = !1;
971
971
  break;
972
972
  }
@@ -1049,19 +1049,19 @@ function uc() {
1049
1049
  for (; X < A; ) {
1050
1050
  let he = d[X], ke = null, z = he > 239 ? 4 : he > 223 ? 3 : he > 191 ? 2 : 1;
1051
1051
  if (X + z <= A) {
1052
- let ie, Ee, Ae, Ie;
1052
+ let ie, Ee, Ae, Te;
1053
1053
  switch (z) {
1054
1054
  case 1:
1055
1055
  he < 128 && (ke = he);
1056
1056
  break;
1057
1057
  case 2:
1058
- ie = d[X + 1], (ie & 192) === 128 && (Ie = (he & 31) << 6 | ie & 63, Ie > 127 && (ke = Ie));
1058
+ ie = d[X + 1], (ie & 192) === 128 && (Te = (he & 31) << 6 | ie & 63, Te > 127 && (ke = Te));
1059
1059
  break;
1060
1060
  case 3:
1061
- ie = d[X + 1], Ee = d[X + 2], (ie & 192) === 128 && (Ee & 192) === 128 && (Ie = (he & 15) << 12 | (ie & 63) << 6 | Ee & 63, Ie > 2047 && (Ie < 55296 || Ie > 57343) && (ke = Ie));
1061
+ ie = d[X + 1], Ee = d[X + 2], (ie & 192) === 128 && (Ee & 192) === 128 && (Te = (he & 15) << 12 | (ie & 63) << 6 | Ee & 63, Te > 2047 && (Te < 55296 || Te > 57343) && (ke = Te));
1062
1062
  break;
1063
1063
  case 4:
1064
- ie = d[X + 1], Ee = d[X + 2], Ae = d[X + 3], (ie & 192) === 128 && (Ee & 192) === 128 && (Ae & 192) === 128 && (Ie = (he & 15) << 18 | (ie & 63) << 12 | (Ee & 63) << 6 | Ae & 63, Ie > 65535 && Ie < 1114112 && (ke = Ie));
1064
+ ie = d[X + 1], Ee = d[X + 2], Ae = d[X + 3], (ie & 192) === 128 && (Ee & 192) === 128 && (Ae & 192) === 128 && (Te = (he & 15) << 18 | (ie & 63) << 12 | (Ee & 63) << 6 | Ae & 63, Te > 65535 && Te < 1114112 && (ke = Te));
1065
1065
  }
1066
1066
  }
1067
1067
  ke === null ? (ke = 65533, z = 1) : ke > 65535 && (ke -= 65536, B.push(ke >>> 10 & 1023 | 55296), ke = 56320 | ke & 1023), B.push(ke), X += z;
@@ -1440,19 +1440,19 @@ function uc() {
1440
1440
  return k;
1441
1441
  })();
1442
1442
  function se(d) {
1443
- return typeof BigInt > "u" ? Te : d;
1443
+ return typeof BigInt > "u" ? Ce : d;
1444
1444
  }
1445
- function Te() {
1445
+ function Ce() {
1446
1446
  throw new Error("BigInt not supported");
1447
1447
  }
1448
1448
  return wt;
1449
1449
  }
1450
- var Bt, pi, er, mi, wt, gi, hc = Ge(() => {
1451
- le(), ue(), ce(), Bt = {}, pi = !1, er = {}, mi = !1, wt = {}, gi = !1;
1450
+ var Bt, mi, er, gi, wt, bi, hc = Ge(() => {
1451
+ le(), ue(), ce(), Bt = {}, mi = !1, er = {}, gi = !1, wt = {}, bi = !1;
1452
1452
  }), De = {};
1453
- Wt(De, { Buffer: () => $r, INSPECT_MAX_BYTES: () => ua, default: () => ut, kMaxLength: () => ha });
1454
- var ut, $r, ua, ha, Fe = Ge(() => {
1455
- le(), ue(), ce(), hc(), ut = uc(), ut.Buffer, ut.SlowBuffer, ut.INSPECT_MAX_BYTES, ut.kMaxLength, $r = ut.Buffer, ua = ut.INSPECT_MAX_BYTES, ha = ut.kMaxLength;
1453
+ Wt(De, { Buffer: () => qr, INSPECT_MAX_BYTES: () => ua, default: () => ut, kMaxLength: () => ha });
1454
+ var ut, qr, ua, ha, Fe = Ge(() => {
1455
+ le(), ue(), ce(), hc(), ut = uc(), ut.Buffer, ut.SlowBuffer, ut.INSPECT_MAX_BYTES, ut.kMaxLength, qr = ut.Buffer, ua = ut.INSPECT_MAX_BYTES, ha = ut.kMaxLength;
1456
1456
  }), ue = Ge(() => {
1457
1457
  Fe();
1458
1458
  }), je = pe((s, e) => {
@@ -1700,8 +1700,8 @@ var ut, $r, ua, ha, Fe = Ge(() => {
1700
1700
  }), xt = {};
1701
1701
  Wt(xt, { EventEmitter: () => fa, default: () => Dt, defaultMaxListeners: () => pa, init: () => ma, listenerCount: () => ga, on: () => ba, once: () => ya });
1702
1702
  function dc() {
1703
- if (bi) return tr;
1704
- bi = !0;
1703
+ if (yi) return tr;
1704
+ yi = !0;
1705
1705
  var s = typeof Reflect == "object" ? Reflect : null, e = s && typeof s.apply == "function" ? s.apply : function(x, v, E) {
1706
1706
  return Function.prototype.apply.call(x, v, E);
1707
1707
  }, t;
@@ -1870,8 +1870,8 @@ function dc() {
1870
1870
  }
1871
1871
  return tr;
1872
1872
  }
1873
- var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
1874
- le(), ue(), ce(), tr = {}, bi = !1, Dt = dc(), Dt.once, Dt.once = function(s, e) {
1873
+ var tr, yi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
1874
+ le(), ue(), ce(), tr = {}, yi = !1, Dt = dc(), Dt.once, Dt.once = function(s, e) {
1875
1875
  return new Promise((t, r) => {
1876
1876
  function o(...i) {
1877
1877
  n !== void 0 && s.removeListener("error", n), t(i);
@@ -1992,8 +1992,8 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
1992
1992
  }), Y = y((H, me, ve = !1) => {
1993
1993
  if (typeof H != "number") throw new m(me, "number", H);
1994
1994
  if (!i(H)) throw new x(me, "an integer", H);
1995
- let se = ve ? 1 : 0, Te = 4294967295;
1996
- if (H < se || H > Te) throw new x(me, `>= ${se} && <= ${Te}`, H);
1995
+ let se = ve ? 1 : 0, Ce = 4294967295;
1996
+ if (H < se || H > Ce) throw new x(me, `>= ${se} && <= ${Ce}`, H);
1997
1997
  });
1998
1998
  function V(H, me) {
1999
1999
  if (typeof H != "string") throw new m(me, "string", H);
@@ -2004,7 +2004,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
2004
2004
  }
2005
2005
  var F = y((H, me, ve) => {
2006
2006
  if (!r(ve, H)) {
2007
- let se = "must be one of: " + o(n(ve, (Te) => typeof Te == "string" ? `'${Te}'` : g(Te)), ", ");
2007
+ let se = "must be one of: " + o(n(ve, (Ce) => typeof Ce == "string" ? `'${Ce}'` : g(Ce)), ", ");
2008
2008
  throw new _(me, H, se);
2009
2009
  }
2010
2010
  });
@@ -2015,8 +2015,8 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
2015
2015
  return H == null || !h(H, me) ? ve : H[me];
2016
2016
  }
2017
2017
  var Q = y((H, me, ve = null) => {
2018
- let se = M(ve, "allowArray", !1), Te = M(ve, "allowFunction", !1);
2019
- if (!M(ve, "nullable", !1) && H === null || !se && t(H) || typeof H != "object" && (!Te || typeof H != "function")) throw new m(me, "Object", H);
2018
+ let se = M(ve, "allowArray", !1), Ce = M(ve, "allowFunction", !1);
2019
+ if (!M(ve, "nullable", !1) && H === null || !se && t(H) || typeof H != "object" && (!Ce || typeof H != "function")) throw new m(me, "Object", H);
2020
2020
  }), be = y((H, me) => {
2021
2021
  if (H != null && typeof H != "object" && typeof H != "function") throw new m(me, "a dictionary", H);
2022
2022
  }), te = y((H, me, ve = 0) => {
@@ -2037,9 +2037,9 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
2037
2037
  function N(H, me) {
2038
2038
  te(H, me);
2039
2039
  for (let ve = 0; ve < H.length; ve++) {
2040
- let se = H[ve], Te = `${me}[${ve}]`;
2041
- if (se == null) throw new m(Te, "AbortSignal", se);
2042
- ge(se, Te);
2040
+ let se = H[ve], Ce = `${me}[${ve}]`;
2041
+ if (se == null) throw new m(Ce, "AbortSignal", se);
2042
+ ge(se, Ce);
2043
2043
  }
2044
2044
  }
2045
2045
  function ne(H, me = "signal") {
@@ -2078,8 +2078,8 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
2078
2078
  let me = H.length, ve = "";
2079
2079
  if (me === 0) return ve;
2080
2080
  for (let se = 0; se < me; se++) {
2081
- let Te = H[se];
2082
- fe(Te, "hints"), ve += Te, se !== me - 1 && (ve += ", ");
2081
+ let Ce = H[se];
2082
+ fe(Ce, "hints"), ve += Ce, se !== me - 1 && (ve += ", ");
2083
2083
  }
2084
2084
  return ve;
2085
2085
  }
@@ -2447,7 +2447,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
2447
2447
  !T || l(T) || (!q && !c(T) && (q = new n()), u(T) ? (T.socket = null, T.destroy(q)) : I(T) ? T.abort() : I(T.req) ? T.req.abort() : typeof T.destroy == "function" ? T.destroy(q) : typeof T.close == "function" ? T.close() : q ? t.nextTick(P, T, q) : t.nextTick(O, T), T.destroyed || (T[a] = !0));
2448
2448
  }
2449
2449
  e.exports = { construct: v, destroyer: j, destroy: f, undestroy: _, errorOrDestroy: x };
2450
- }), po = pe((s, e) => {
2450
+ }), mo = pe((s, e) => {
2451
2451
  le(), ue(), ce();
2452
2452
  var { ArrayIsArray: t, ObjectSetPrototypeOf: r } = je(), { EventEmitter: o } = (Rt(), Me(xt));
2453
2453
  function n(a) {
@@ -2484,7 +2484,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
2484
2484
  !a._events || !a._events[l] ? a.on(l, c) : t(a._events[l]) ? a._events[l].unshift(c) : a._events[l] = [c, a._events[l]];
2485
2485
  }
2486
2486
  e.exports = { Stream: n, prependListener: i };
2487
- }), Wr = pe((s, e) => {
2487
+ }), zr = pe((s, e) => {
2488
2488
  le(), ue(), ce();
2489
2489
  var { SymbolDispose: t } = je(), { AbortError: r, codes: o } = Ve(), { isNodeStream: n, isWebStream: i, kControllerErrorFunction: a } = mt(), l = St(), { ERR_INVALID_ARG_TYPE: c } = o, u, h = (p, g) => {
2490
2490
  if (typeof p != "object" || !("aborted" in p)) throw new c(g, "AbortSignal", p);
@@ -2586,7 +2586,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
2586
2586
  return a(this, { ...c, depth: 0, customInspect: !1 });
2587
2587
  }
2588
2588
  };
2589
- }), zr = pe((s, e) => {
2589
+ }), Vr = pe((s, e) => {
2590
2590
  le(), ue(), ce();
2591
2591
  var { MathFloor: t, NumberIsInteger: r } = je(), { validateInteger: o } = sr(), { ERR_INVALID_ARG_VALUE: n } = Ve().codes, i = 16 * 1024, a = 16;
2592
2592
  function l(p, g, f) {
@@ -2829,13 +2829,13 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
2829
2829
  return b;
2830
2830
  }
2831
2831
  e.exports = c;
2832
- }), Vr = pe((s, e) => {
2832
+ }), Kr = pe((s, e) => {
2833
2833
  le(), ue(), ce();
2834
2834
  var t = Lt(), { ArrayPrototypeIndexOf: r, NumberIsInteger: o, NumberIsNaN: n, NumberParseInt: i, ObjectDefineProperties: a, ObjectKeys: l, ObjectSetPrototypeOf: c, Promise: u, SafeSet: h, SymbolAsyncDispose: p, SymbolAsyncIterator: g, Symbol: f } = je();
2835
2835
  e.exports = se, se.ReadableState = ve;
2836
- var { EventEmitter: b } = (Rt(), Me(xt)), { Stream: y, prependListener: w } = po(), { Buffer: m } = (Fe(), Me(De)), { addAbortSignal: _ } = Wr(), x = St(), v = Ke().debuglog("stream", (C) => {
2836
+ var { EventEmitter: b } = (Rt(), Me(xt)), { Stream: y, prependListener: w } = mo(), { Buffer: m } = (Fe(), Me(De)), { addAbortSignal: _ } = zr(), x = St(), v = Ke().debuglog("stream", (C) => {
2837
2837
  v = C;
2838
- }), E = fc(), S = zt(), { getHighWaterMark: I, getDefaultHighWaterMark: O } = zr(), { aggregateTwoErrors: P, codes: { ERR_INVALID_ARG_TYPE: j, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: q, ERR_STREAM_PUSH_AFTER_EOF: D, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: ae } = Ve(), { validateObject: Y } = sr(), V = f("kPaused"), { StringDecoder: re } = mc(), F = va();
2838
+ }), E = fc(), S = zt(), { getHighWaterMark: I, getDefaultHighWaterMark: O } = Vr(), { aggregateTwoErrors: P, codes: { ERR_INVALID_ARG_TYPE: j, ERR_METHOD_NOT_IMPLEMENTED: T, ERR_OUT_OF_RANGE: q, ERR_STREAM_PUSH_AFTER_EOF: D, ERR_STREAM_UNSHIFT_AFTER_END_EVENT: U }, AbortError: ae } = Ve(), { validateObject: Y } = sr(), V = f("kPaused"), { StringDecoder: re } = mc(), F = va();
2839
2839
  c(se.prototype, y.prototype), c(se, y);
2840
2840
  var Z = () => {
2841
2841
  }, { errorOrDestroy: M } = S, Q = 1, be = 2, te = 4, we = 8, K = 16, N = 32, ne = 64, W = 128, G = 256, J = 512, ge = 1024, oe = 2048, R = 4096, $ = 8192, ee = 16384, de = 32768, fe = 65536, ye = 1 << 17, H = 1 << 18;
@@ -2865,11 +2865,11 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
2865
2865
  let C;
2866
2866
  return this.destroyed || (C = this.readableEnded ? null : new ae(), this.destroy(C)), new u((L, _e) => x(this, (xe) => xe && xe !== C ? _e(xe) : L(null)));
2867
2867
  }, se.prototype.push = function(C, L) {
2868
- return Te(this, C, L, !1);
2868
+ return Ce(this, C, L, !1);
2869
2869
  }, se.prototype.unshift = function(C, L) {
2870
- return Te(this, C, L, !0);
2870
+ return Ce(this, C, L, !0);
2871
2871
  };
2872
- function Te(C, L, _e, xe) {
2872
+ function Ce(C, L, _e, xe) {
2873
2873
  v("readableAddChunk", L);
2874
2874
  let Se = C._readableState, Be;
2875
2875
  if ((Se.state & Q) === 0 && (typeof L == "string" ? (_e = _e || Se.defaultEncoding, Se.encoding !== _e && (xe && Se.encoding ? L = m.from(L, _e).toString(Se.encoding) : (L = m.from(L, _e), _e = ""))) : L instanceof m ? _e = "" : y._isUint8Array(L) ? (L = y._uint8ArrayToBuffer(L), _e = "") : L != null && (Be = new j("chunk", ["string", "Buffer", "Uint8Array"], L))), Be) M(C, Be);
@@ -2969,13 +2969,13 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
2969
2969
  }
2970
2970
  let Ze, Yt = !1;
2971
2971
  function Jt() {
2972
- v("cleanup"), C.removeListener("close", it), C.removeListener("finish", yt), Ze && C.removeListener("drain", Ze), C.removeListener("error", Et), C.removeListener("unpipe", Be), _e.removeListener("end", ze), _e.removeListener("end", At), _e.removeListener("data", cr), Yt = !0, Ze && xe.awaitDrainWriters && (!C._writableState || C._writableState.needDrain) && Ze();
2972
+ v("cleanup"), C.removeListener("close", it), C.removeListener("finish", yt), Ze && C.removeListener("drain", Ze), C.removeListener("error", Et), C.removeListener("unpipe", Be), _e.removeListener("end", ze), _e.removeListener("end", At), _e.removeListener("data", ur), Yt = !0, Ze && xe.awaitDrainWriters && (!C._writableState || C._writableState.needDrain) && Ze();
2973
2973
  }
2974
2974
  function Qt() {
2975
2975
  Yt || (xe.pipes.length === 1 && xe.pipes[0] === C ? (v("false write response, pause", 0), xe.awaitDrainWriters = C, xe.multiAwaitDrain = !1) : xe.pipes.length > 1 && xe.pipes.includes(C) && (v("false write response, pause", xe.awaitDrainWriters.size), xe.awaitDrainWriters.add(C)), _e.pause()), Ze || (Ze = Ee(_e, C), C.on("drain", Ze));
2976
2976
  }
2977
- _e.on("data", cr);
2978
- function cr(ot) {
2977
+ _e.on("data", ur);
2978
+ function ur(ot) {
2979
2979
  v("ondata");
2980
2980
  let lt = C.write(ot);
2981
2981
  v("dest.write", lt), lt === !1 && Qt();
@@ -3019,7 +3019,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3019
3019
  return xe === -1 ? this : (L.pipes.splice(xe, 1), L.pipes.length === 0 && this.pause(), C.emit("unpipe", this, _e), this);
3020
3020
  }, se.prototype.on = function(C, L) {
3021
3021
  let _e = y.prototype.on.call(this, C, L), xe = this._readableState;
3022
- return C === "data" ? (xe.readableListening = this.listenerCount("readable") > 0, xe.flowing !== !1 && this.resume()) : C === "readable" && !xe.endEmitted && !xe.readableListening && (xe.readableListening = xe.needReadable = !0, xe.flowing = !1, xe.emittedReadable = !1, v("on readable", xe.length, xe.reading), xe.length ? he(this) : xe.reading || t.nextTick(Ie, this)), _e;
3022
+ return C === "data" ? (xe.readableListening = this.listenerCount("readable") > 0, xe.flowing !== !1 && this.resume()) : C === "readable" && !xe.endEmitted && !xe.readableListening && (xe.readableListening = xe.needReadable = !0, xe.flowing = !1, xe.emittedReadable = !1, v("on readable", xe.length, xe.reading), xe.length ? he(this) : xe.reading || t.nextTick(Te, this)), _e;
3023
3023
  }, se.prototype.addListener = se.prototype.on, se.prototype.removeListener = function(C, L) {
3024
3024
  let _e = y.prototype.removeListener.call(this, C, L);
3025
3025
  return C === "readable" && t.nextTick(Ae, this), _e;
@@ -3031,7 +3031,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3031
3031
  let L = C._readableState;
3032
3032
  L.readableListening = C.listenerCount("readable") > 0, L.resumeScheduled && L[V] === !1 ? L.flowing = !0 : C.listenerCount("data") > 0 ? C.resume() : L.readableListening || (L.flowing = null);
3033
3033
  }
3034
- function Ie(C) {
3034
+ function Te(C) {
3035
3035
  v("readable nexttick read 0"), C.read(0);
3036
3036
  }
3037
3037
  se.prototype.resume = function() {
@@ -3158,14 +3158,14 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3158
3158
  }
3159
3159
  function Ye(C, L) {
3160
3160
  if (v("endReadableNT", C.endEmitted, C.length), !C.errored && !C.closeEmitted && !C.endEmitted && C.length === 0) {
3161
- if (C.endEmitted = !0, L.emit("end"), L.writable && L.allowHalfOpen === !1) t.nextTick(lr, L);
3161
+ if (C.endEmitted = !0, L.emit("end"), L.writable && L.allowHalfOpen === !1) t.nextTick(cr, L);
3162
3162
  else if (C.autoDestroy) {
3163
3163
  let _e = L._writableState;
3164
3164
  (!_e || _e.autoDestroy && (_e.finished || _e.writable === !1)) && L.destroy();
3165
3165
  }
3166
3166
  }
3167
3167
  }
3168
- function lr(C) {
3168
+ function cr(C) {
3169
3169
  C.writable && !C.writableEnded && !C.destroyed && C.end();
3170
3170
  }
3171
3171
  se.from = function(C, L) {
@@ -3185,11 +3185,11 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3185
3185
  S.destroyer(C, Se), Be(Se);
3186
3186
  } }).wrap(C);
3187
3187
  };
3188
- }), mo = pe((s, e) => {
3188
+ }), go = pe((s, e) => {
3189
3189
  le(), ue(), ce();
3190
3190
  var t = Lt(), { ArrayPrototypeSlice: r, Error: o, FunctionPrototypeSymbolHasInstance: n, ObjectDefineProperty: i, ObjectDefineProperties: a, ObjectSetPrototypeOf: l, StringPrototypeToLowerCase: c, Symbol: u, SymbolHasInstance: h } = je();
3191
3191
  e.exports = Y, Y.WritableState = U;
3192
- var { EventEmitter: p } = (Rt(), Me(xt)), g = po().Stream, { Buffer: f } = (Fe(), Me(De)), b = zt(), { addAbortSignal: y } = Wr(), { getHighWaterMark: w, getDefaultHighWaterMark: m } = zr(), { ERR_INVALID_ARG_TYPE: _, ERR_METHOD_NOT_IMPLEMENTED: x, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: E, ERR_STREAM_DESTROYED: S, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: O, ERR_STREAM_WRITE_AFTER_END: P, ERR_UNKNOWN_ENCODING: j } = Ve().codes, { errorOrDestroy: T } = b;
3192
+ var { EventEmitter: p } = (Rt(), Me(xt)), g = mo().Stream, { Buffer: f } = (Fe(), Me(De)), b = zt(), { addAbortSignal: y } = zr(), { getHighWaterMark: w, getDefaultHighWaterMark: m } = Vr(), { ERR_INVALID_ARG_TYPE: _, ERR_METHOD_NOT_IMPLEMENTED: x, ERR_MULTIPLE_CALLBACK: v, ERR_STREAM_CANNOT_PIPE: E, ERR_STREAM_DESTROYED: S, ERR_STREAM_ALREADY_FINISHED: I, ERR_STREAM_NULL_VALUES: O, ERR_STREAM_WRITE_AFTER_END: P, ERR_UNKNOWN_ENCODING: j } = Ve().codes, { errorOrDestroy: T } = b;
3193
3193
  l(Y.prototype, g.prototype), l(Y, g);
3194
3194
  function q() {
3195
3195
  }
@@ -3296,15 +3296,15 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3296
3296
  if ($.bufferProcessing = !0, ye > 1 && R._writev) {
3297
3297
  $.pendingcb -= ye - 1;
3298
3298
  let me = $.allNoop ? q : (se) => {
3299
- for (let Te = H; Te < ee.length; ++Te) ee[Te].callback(se);
3299
+ for (let Ce = H; Ce < ee.length; ++Ce) ee[Ce].callback(se);
3300
3300
  }, ve = $.allNoop && H === 0 ? ee : r(ee, H);
3301
3301
  ve.allBuffers = $.allBuffers, F(R, $, !0, $.length, ve, "", me), ae($);
3302
3302
  } else {
3303
3303
  do {
3304
3304
  let { chunk: me, encoding: ve, callback: se } = ee[H];
3305
3305
  ee[H++] = null;
3306
- let Te = fe ? 1 : me.length;
3307
- F(R, $, !1, Te, me, ve, se);
3306
+ let Ce = fe ? 1 : me.length;
3307
+ F(R, $, !1, Ce, me, ve, se);
3308
3308
  } while (H < ee.length && !$.writing);
3309
3309
  H === ee.length ? ae($) : H > 256 ? (ee.splice(0, H), $.bufferedIndex = 0) : $.bufferedIndex = H;
3310
3310
  }
@@ -3417,7 +3417,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3417
3417
  };
3418
3418
  }), gc = pe((s, e) => {
3419
3419
  le(), ue(), ce();
3420
- var t = Lt(), r = (Fe(), Me(De)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: a, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = mt(), g = St(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: b, ERR_INVALID_RETURN_VALUE: y } } = Ve(), { destroyer: w } = zt(), m = ft(), _ = Vr(), x = mo(), { createDeferredPromise: v } = Ke(), E = va(), S = globalThis.Blob || r.Blob, I = typeof S < "u" ? function(D) {
3420
+ var t = Lt(), r = (Fe(), Me(De)), { isReadable: o, isWritable: n, isIterable: i, isNodeStream: a, isReadableNodeStream: l, isWritableNodeStream: c, isDuplexNodeStream: u, isReadableStream: h, isWritableStream: p } = mt(), g = St(), { AbortError: f, codes: { ERR_INVALID_ARG_TYPE: b, ERR_INVALID_RETURN_VALUE: y } } = Ve(), { destroyer: w } = zt(), m = ft(), _ = Kr(), x = go(), { createDeferredPromise: v } = Ke(), E = va(), S = globalThis.Blob || r.Blob, I = typeof S < "u" ? function(D) {
3421
3421
  return D instanceof S;
3422
3422
  } : function(D) {
3423
3423
  return !1;
@@ -3543,7 +3543,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3543
3543
  le(), ue(), ce();
3544
3544
  var { ObjectDefineProperties: t, ObjectGetOwnPropertyDescriptor: r, ObjectKeys: o, ObjectSetPrototypeOf: n } = je();
3545
3545
  e.exports = l;
3546
- var i = Vr(), a = mo();
3546
+ var i = Kr(), a = go();
3547
3547
  n(l.prototype, i.prototype), n(l, i);
3548
3548
  {
3549
3549
  let p = o(a.prototype);
@@ -3578,7 +3578,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3578
3578
  le(), ue(), ce();
3579
3579
  var { ObjectSetPrototypeOf: t, Symbol: r } = je();
3580
3580
  e.exports = l;
3581
- var { ERR_METHOD_NOT_IMPLEMENTED: o } = Ve().codes, n = ft(), { getHighWaterMark: i } = zr();
3581
+ var { ERR_METHOD_NOT_IMPLEMENTED: o } = Ve().codes, n = ft(), { getHighWaterMark: i } = Vr();
3582
3582
  t(l.prototype, n.prototype), t(l, n);
3583
3583
  var a = r("kCallback");
3584
3584
  function l(h) {
@@ -3628,7 +3628,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3628
3628
  o.prototype._transform = function(n, i, a) {
3629
3629
  a(null, n);
3630
3630
  };
3631
- }), go = pe((s, e) => {
3631
+ }), bo = pe((s, e) => {
3632
3632
  le(), ue(), ce();
3633
3633
  var t = Lt(), { ArrayIsArray: r, Promise: o, SymbolAsyncIterator: n, SymbolDispose: i } = je(), a = St(), { once: l } = Ke(), c = zt(), u = ft(), { aggregateTwoErrors: h, codes: { ERR_INVALID_ARG_TYPE: p, ERR_INVALID_RETURN_VALUE: g, ERR_MISSING_ARGS: f, ERR_STREAM_DESTROYED: b, ERR_STREAM_PREMATURE_CLOSE: y }, AbortError: w } = Ve(), { validateFunction: m, validateAbortSignal: _ } = sr(), { isIterable: x, isReadable: v, isReadableNodeStream: E, isNodeStream: S, isTransformStream: I, isWebStream: O, isReadableStream: P, isReadableFinished: j } = mt(), T = globalThis.AbortController || or().AbortController, q, D, U;
3634
3634
  function ae(te, we, K) {
@@ -3652,7 +3652,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3652
3652
  throw new p("val", ["Readable", "Iterable", "AsyncIterable"], te);
3653
3653
  }
3654
3654
  async function* re(te) {
3655
- D || (D = Vr()), yield* D.prototype[n].call(te);
3655
+ D || (D = Kr()), yield* D.prototype[n].call(te);
3656
3656
  }
3657
3657
  async function F(te, we, K, { end: N }) {
3658
3658
  let ne, W = null, G = (oe) => {
@@ -3710,21 +3710,21 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3710
3710
  fe(ve, --ee === 0);
3711
3711
  }
3712
3712
  function fe(ve, se) {
3713
- var Te;
3713
+ var Ce;
3714
3714
  if (ve && (!oe || oe.code === "ERR_STREAM_PREMATURE_CLOSE") && (oe = ve), !(!oe && !se)) {
3715
3715
  for (; $.length; ) $.shift()(oe);
3716
- (Te = ge) === null || Te === void 0 || Te[i](), N.abort(), se && (oe || G.forEach((d) => d()), t.nextTick(we, oe, R));
3716
+ (Ce = ge) === null || Ce === void 0 || Ce[i](), N.abort(), se && (oe || G.forEach((d) => d()), t.nextTick(we, oe, R));
3717
3717
  }
3718
3718
  }
3719
3719
  let ye;
3720
3720
  for (let ve = 0; ve < te.length; ve++) {
3721
- let se = te[ve], Te = ve < te.length - 1, d = ve > 0, k = Te || K?.end !== !1, A = ve === te.length - 1;
3721
+ let se = te[ve], Ce = ve < te.length - 1, d = ve > 0, k = Ce || K?.end !== !1, A = ve === te.length - 1;
3722
3722
  if (S(se)) {
3723
3723
  let B = function(X) {
3724
3724
  X && X.name !== "AbortError" && X.code !== "ERR_STREAM_PREMATURE_CLOSE" && de(X);
3725
3725
  };
3726
3726
  if (k) {
3727
- let { destroy: X, cleanup: he } = ae(se, Te, d);
3727
+ let { destroy: X, cleanup: he } = ae(se, Ce, d);
3728
3728
  $.push(X), v(se) && A && G.push(he);
3729
3729
  }
3730
3730
  se.on("error", B), v(se) && A && G.push(() => {
@@ -3739,7 +3739,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3739
3739
  var H;
3740
3740
  ye = V((H = ye) === null || H === void 0 ? void 0 : H.readable);
3741
3741
  } else ye = V(ye);
3742
- if (ye = se(ye, { signal: ne }), Te) {
3742
+ if (ye = se(ye, { signal: ne }), Ce) {
3743
3743
  if (!x(ye, !0)) throw new g("AsyncIterable", `transform[${ve - 1}]`, ye);
3744
3744
  } else {
3745
3745
  var me;
@@ -3798,7 +3798,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3798
3798
  e.exports = { pipelineImpl: Q, pipeline: M };
3799
3799
  }), ka = pe((s, e) => {
3800
3800
  le(), ue(), ce();
3801
- var { pipeline: t } = go(), r = ft(), { destroyer: o } = zt(), { isNodeStream: n, isReadable: i, isWritable: a, isWebStream: l, isTransformStream: c, isWritableStream: u, isReadableStream: h } = mt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: g, ERR_MISSING_ARGS: f } } = Ve(), b = St();
3801
+ var { pipeline: t } = bo(), r = ft(), { destroyer: o } = zt(), { isNodeStream: n, isReadable: i, isWritable: a, isWebStream: l, isTransformStream: c, isWritableStream: u, isReadableStream: h } = mt(), { AbortError: p, codes: { ERR_INVALID_ARG_VALUE: g, ERR_MISSING_ARGS: f } } = Ve(), b = St();
3802
3802
  e.exports = function(...y) {
3803
3803
  if (y.length === 0) throw new f("streams");
3804
3804
  if (y.length === 1) return r.from(y[0]);
@@ -3894,7 +3894,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3894
3894
  };
3895
3895
  }), bc = pe((s, e) => {
3896
3896
  le(), ue(), ce();
3897
- var t = globalThis.AbortController || or().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: a } = Ve(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = sr(), h = je().Symbol("kWeak"), p = je().Symbol("kResistStopPropagation"), { finished: g } = St(), f = ka(), { addAbortSignalNoValidate: b } = Wr(), { isWritable: y, isNodeStream: w } = mt(), { deprecate: m } = Ke(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: E, NumberIsNaN: S, Promise: I, PromiseReject: O, PromiseResolve: P, PromisePrototypeThen: j, Symbol: T } = je(), q = T("kEmpty"), D = T("kEof");
3897
+ var t = globalThis.AbortController || or().AbortController, { codes: { ERR_INVALID_ARG_VALUE: r, ERR_INVALID_ARG_TYPE: o, ERR_MISSING_ARGS: n, ERR_OUT_OF_RANGE: i }, AbortError: a } = Ve(), { validateAbortSignal: l, validateInteger: c, validateObject: u } = sr(), h = je().Symbol("kWeak"), p = je().Symbol("kResistStopPropagation"), { finished: g } = St(), f = ka(), { addAbortSignalNoValidate: b } = zr(), { isWritable: y, isNodeStream: w } = mt(), { deprecate: m } = Ke(), { ArrayPrototypePush: _, Boolean: x, MathFloor: v, Number: E, NumberIsNaN: S, Promise: I, PromiseReject: O, PromiseResolve: P, PromisePrototypeThen: j, Symbol: T } = je(), q = T("kEmpty"), D = T("kEof");
3898
3898
  function U(W, G) {
3899
3899
  if (G != null && u(G, "options"), G?.signal != null && l(G.signal, "options.signal"), w(W) && !y(W)) throw new r("stream", W, "must be writable");
3900
3900
  let J = f(this, W);
@@ -3917,7 +3917,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3917
3917
  function se() {
3918
3918
  fe && !ye && H < J && $.length < ge && (fe(), fe = null);
3919
3919
  }
3920
- async function Te() {
3920
+ async function Ce() {
3921
3921
  try {
3922
3922
  for await (let d of R) {
3923
3923
  if (ye) return;
@@ -3940,7 +3940,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
3940
3940
  ye = !0, de && (de(), de = null);
3941
3941
  }
3942
3942
  }
3943
- Te();
3943
+ Ce();
3944
3944
  try {
3945
3945
  for (; ; ) {
3946
3946
  for (; $.length > 0; ) {
@@ -4072,7 +4072,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
4072
4072
  e.exports.streamReturningOperators = { asIndexedPairs: m(Y, "readable.asIndexedPairs will be removed in a future version."), drop: N, filter: M, flatMap: we, map: ae, take: ne, compose: U }, e.exports.promiseReturningOperators = { every: re, forEach: Z, reduce: be, toArray: te, some: V, find: F };
4073
4073
  }), xa = pe((s, e) => {
4074
4074
  le(), ue(), ce();
4075
- var { ArrayPrototypePop: t, Promise: r } = je(), { isIterable: o, isNodeStream: n, isWebStream: i } = mt(), { pipelineImpl: a } = go(), { finished: l } = St();
4075
+ var { ArrayPrototypePop: t, Promise: r } = je(), { isIterable: o, isNodeStream: n, isWebStream: i } = mt(), { pipelineImpl: a } = bo(), { finished: l } = St();
4076
4076
  Sa();
4077
4077
  function c(...u) {
4078
4078
  return new r((h, p) => {
@@ -4089,8 +4089,8 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
4089
4089
  e.exports = { finished: l, pipeline: c };
4090
4090
  }), Sa = pe((s, e) => {
4091
4091
  le(), ue(), ce();
4092
- var { Buffer: t } = (Fe(), Me(De)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = je(), { promisify: { custom: i } } = Ke(), { streamReturningOperators: a, promiseReturningOperators: l } = bc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ve(), u = ka(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = zr(), { pipeline: g } = go(), { destroyer: f } = zt(), b = St(), y = xa(), w = mt(), m = e.exports = po().Stream;
4093
- m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable = Vr();
4092
+ var { Buffer: t } = (Fe(), Me(De)), { ObjectDefineProperty: r, ObjectKeys: o, ReflectApply: n } = je(), { promisify: { custom: i } } = Ke(), { streamReturningOperators: a, promiseReturningOperators: l } = bc(), { codes: { ERR_ILLEGAL_CONSTRUCTOR: c } } = Ve(), u = ka(), { setDefaultHighWaterMark: h, getDefaultHighWaterMark: p } = Vr(), { pipeline: g } = bo(), { destroyer: f } = zt(), b = St(), y = xa(), w = mt(), m = e.exports = mo().Stream;
4093
+ m.isDestroyed = w.isDestroyed, m.isDisturbed = w.isDisturbed, m.isErrored = w.isErrored, m.isReadable = w.isReadable, m.isWritable = w.isWritable, m.Readable = Kr();
4094
4094
  for (let x of o(a)) {
4095
4095
  let v = function(...S) {
4096
4096
  if (new.target) throw c();
@@ -4105,8 +4105,8 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
4105
4105
  }, E = l[x];
4106
4106
  r(v, "name", { __proto__: null, value: E.name }), r(v, "length", { __proto__: null, value: E.length }), r(m.Readable.prototype, x, { __proto__: null, value: v, enumerable: !1, configurable: !0, writable: !0 });
4107
4107
  }
4108
- m.Writable = mo(), m.Duplex = ft(), m.Transform = wa(), m.PassThrough = _a(), m.pipeline = g;
4109
- var { addAbortSignal: _ } = Wr();
4108
+ m.Writable = go(), m.Duplex = ft(), m.Transform = wa(), m.PassThrough = _a(), m.pipeline = g;
4109
+ var { addAbortSignal: _ } = zr();
4110
4110
  m.addAbortSignal = _, m.finished = b, m.destroy = f, m.compose = u, m.setDefaultHighWaterMark = h, m.getDefaultHighWaterMark = p, r(m, "promises", { __proto__: null, configurable: !0, enumerable: !0, get() {
4111
4111
  return y;
4112
4112
  } }), r(g, i, { __proto__: null, enumerable: !0, get() {
@@ -4521,12 +4521,12 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
4521
4521
  };
4522
4522
  }), Sc = pe((s, e) => {
4523
4523
  le(), ue(), ce();
4524
- var t = wc(), { EventEmitter: r } = (Rt(), Me(xt)), o = _c(), n = Ea(), i = pt()("mqtt-packet:parser"), a = class yi extends r {
4524
+ var t = wc(), { EventEmitter: r } = (Rt(), Me(xt)), o = _c(), n = Ea(), i = pt()("mqtt-packet:parser"), a = class vi extends r {
4525
4525
  constructor() {
4526
4526
  super(), this.parser = this.constructor.parser;
4527
4527
  }
4528
4528
  static parser(c) {
4529
- return this instanceof yi ? (this.settings = c || {}, this._states = ["_parseHeader", "_parseLength", "_parsePayload", "_newPacket"], this._resetState(), this) : new yi().parser(c);
4529
+ return this instanceof vi ? (this.settings = c || {}, this._states = ["_parseHeader", "_parseLength", "_parsePayload", "_newPacket"], this._resetState(), this) : new vi().parser(c);
4530
4530
  }
4531
4531
  _resetState() {
4532
4532
  i("_resetState: resetting packet, error, _list, and _stateCounter"), this.packet = new o(), this.error = null, this._list = t(), this._stateCounter = 0;
@@ -5066,8 +5066,8 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
5066
5066
  l("subscribe: writing to stream: %o", t.SUBSCRIBE_HEADER), N.write(t.SUBSCRIBE_HEADER[1][J ? 1 : 0][0]), D(N, $), f(N, ge), ee !== null && ee.write();
5067
5067
  let de = !0;
5068
5068
  for (let fe of oe) {
5069
- let ye = fe.topic, H = fe.qos, me = +fe.nl, ve = +fe.rap, se = fe.rh, Te;
5070
- U(N, ye), Te = t.SUBSCRIBE_OPTIONS_QOS[H], W === 5 && (Te |= me ? t.SUBSCRIBE_OPTIONS_NL : 0, Te |= ve ? t.SUBSCRIBE_OPTIONS_RAP : 0, Te |= se ? t.SUBSCRIBE_OPTIONS_RH[se] : 0), de = N.write(r.from([Te]));
5069
+ let ye = fe.topic, H = fe.qos, me = +fe.nl, ve = +fe.rap, se = fe.rh, Ce;
5070
+ U(N, ye), Ce = t.SUBSCRIBE_OPTIONS_QOS[H], W === 5 && (Ce |= me ? t.SUBSCRIBE_OPTIONS_NL : 0, Ce |= ve ? t.SUBSCRIBE_OPTIONS_RAP : 0, Ce |= se ? t.SUBSCRIBE_OPTIONS_RH[se] : 0), de = N.write(r.from([Ce]));
5071
5071
  }
5072
5072
  return de;
5073
5073
  }
@@ -5336,7 +5336,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
5336
5336
  }), Cc = pe((s, e) => {
5337
5337
  le(), ue(), ce(), e.exports = r;
5338
5338
  function t(n) {
5339
- return n instanceof $r ? $r.from(n) : new n.constructor(n.buffer.slice(), n.byteOffset, n.length);
5339
+ return n instanceof qr ? qr.from(n) : new n.constructor(n.buffer.slice(), n.byteOffset, n.length);
5340
5340
  }
5341
5341
  function r(n) {
5342
5342
  if (n = n || {}, n.circles) return o(n);
@@ -5571,7 +5571,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
5571
5571
  s.nextTick = typeof Re?.nextTick == "function" ? Re.nextTick : (o) => {
5572
5572
  setTimeout(o, 0);
5573
5573
  }, s.MQTTJS_VERSION = Mc().version;
5574
- }), Kr = pe((s) => {
5574
+ }), Gr = pe((s) => {
5575
5575
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.ReasonCodes = void 0;
5576
5576
  var e = Vt();
5577
5577
  s.ReasonCodes = { 0: "", 1: "Unacceptable protocol version", 2: "Identifier rejected", 3: "Server unavailable", 4: "Bad username or password", 5: "Not authorized", 16: "No matching subscribers", 17: "No subscription existed", 128: "Unspecified error", 129: "Malformed Packet", 130: "Protocol Error", 131: "Implementation specific error", 132: "Unsupported Protocol Version", 133: "Client Identifier not valid", 134: "Bad User Name or Password", 135: "Not authorized", 136: "Server unavailable", 137: "Server busy", 138: "Banned", 139: "Server shutting down", 140: "Bad authentication method", 141: "Keep Alive timeout", 142: "Session taken over", 143: "Topic Filter invalid", 144: "Topic Name invalid", 145: "Packet identifier in use", 146: "Packet Identifier not found", 147: "Receive Maximum exceeded", 148: "Topic Alias invalid", 149: "Packet too large", 150: "Message rate too high", 151: "Quota exceeded", 152: "Administrative action", 153: "Payload format invalid", 154: "Retain not supported", 155: "QoS not supported", 156: "Use another server", 157: "Server moved", 158: "Shared Subscriptions not supported", 159: "Connection rate exceeded", 160: "Maximum connect time", 161: "Subscription Identifiers not supported", 162: "Wildcard Subscriptions not supported" };
@@ -5626,7 +5626,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
5626
5626
  s.default = t;
5627
5627
  }), Rc = pe((s) => {
5628
5628
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
5629
- var e = Vt(), t = Kr(), r = (o, n) => {
5629
+ var e = Vt(), t = Gr(), r = (o, n) => {
5630
5630
  let { options: i } = o, a = i.protocolVersion, l = a === 5 ? n.reasonCode : n.returnCode;
5631
5631
  if (a !== 5) {
5632
5632
  let c = new e.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${a}`, l);
@@ -6312,7 +6312,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
6312
6312
  }
6313
6313
  }, r = t;
6314
6314
  s.default = r;
6315
- }), bo = pe((s) => {
6315
+ }), yo = pe((s) => {
6316
6316
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
6317
6317
  var e = gt(), t = class extends e.Container {
6318
6318
  }, r = t;
@@ -6346,7 +6346,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
6346
6346
  s.RandomIterator = r;
6347
6347
  }), Bc = pe((s) => {
6348
6348
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
6349
- var e = r(bo()), t = Ma();
6349
+ var e = r(yo()), t = Ma();
6350
6350
  function r(a) {
6351
6351
  return a && a.t ? a : { default: a };
6352
6352
  }
@@ -6447,7 +6447,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
6447
6447
  s.default = i;
6448
6448
  }), Dc = pe((s) => {
6449
6449
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
6450
- var e = o(bo()), t = gt(), r = bt();
6450
+ var e = o(yo()), t = gt(), r = bt();
6451
6451
  function o(l) {
6452
6452
  return l && l.t ? l : { default: l };
6453
6453
  }
@@ -6632,7 +6632,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
6632
6632
  s.default = a;
6633
6633
  }), Fc = pe((s) => {
6634
6634
  le(), ue(), ce(), Object.defineProperty(s, "t", { value: !0 }), s.default = void 0;
6635
- var e = r(bo()), t = Ma();
6635
+ var e = r(yo()), t = Ma();
6636
6636
  function r(a) {
6637
6637
  return a && a.t ? a : { default: a };
6638
6638
  }
@@ -7681,7 +7681,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
7681
7681
  return i && i.__esModule ? i : { default: i };
7682
7682
  };
7683
7683
  Object.defineProperty(s, "__esModule", { value: !0 });
7684
- var t = Kr(), r = e(Gc()), o = Vt(), n = (i, a) => {
7684
+ var t = Gr(), r = e(Gc()), o = Vt(), n = (i, a) => {
7685
7685
  i.log("_handleConnack");
7686
7686
  let { options: l } = i, c = l.protocolVersion === 5 ? a.reasonCode : a.returnCode;
7687
7687
  if (clearTimeout(i.connackTimer), delete i.topicAliasSend, a.properties) {
@@ -7720,7 +7720,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
7720
7720
  return l && l.__esModule ? l : { default: l };
7721
7721
  };
7722
7722
  Object.defineProperty(s, "__esModule", { value: !0 });
7723
- var t = e(Pc()), r = e(Rc()), o = e(Yc()), n = e(Kr()), i = e(Jc()), a = (l, c, u) => {
7723
+ var t = e(Pc()), r = e(Rc()), o = e(Yc()), n = e(Gr()), i = e(Jc()), a = (l, c, u) => {
7724
7724
  let { options: h } = l;
7725
7725
  if (h.protocolVersion === 5 && h.properties && h.properties.maximumPacketSize && h.properties.maximumPacketSize < c.length) return l.emit("error", new Error(`exceeding packets size ${c.cmd}`)), l.end({ reasonCode: 149, properties: { reasonString: "Maximum packet size was exceeded" } }), l;
7726
7726
  switch (l.log("_handlePacket :: emitting packetreceive"), l.emit("packetreceive", c), c.cmd) {
@@ -7807,7 +7807,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
7807
7807
  var t = e((Rt(), Me(xt))), r = Vt(), o = class {
7808
7808
  };
7809
7809
  s.TypedEventEmitter = o, (0, r.applyMixin)(o, t.default);
7810
- }), Gr = pe((s, e) => {
7810
+ }), Yr = pe((s, e) => {
7811
7811
  le(), ue(), ce();
7812
7812
  function t(r) {
7813
7813
  "@babel/helpers - typeof";
@@ -7820,7 +7820,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
7820
7820
  e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
7821
7821
  }), eu = pe((s, e) => {
7822
7822
  le(), ue(), ce();
7823
- var t = Gr().default;
7823
+ var t = Yr().default;
7824
7824
  function r(o, n) {
7825
7825
  if (t(o) != "object" || !o) return o;
7826
7826
  var i = o[Symbol.toPrimitive];
@@ -7834,7 +7834,7 @@ var tr, bi, Dt, fa, pa, ma, ga, ba, ya, Rt = Ge(() => {
7834
7834
  e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
7835
7835
  }), tu = pe((s, e) => {
7836
7836
  le(), ue(), ce();
7837
- var t = Gr().default, r = eu();
7837
+ var t = Yr().default, r = eu();
7838
7838
  function o(n) {
7839
7839
  var i = r(n, "string");
7840
7840
  return t(i) == "symbol" ? i : i + "";
@@ -8117,7 +8117,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8117
8117
  e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
8118
8118
  }), du = pe((s, e) => {
8119
8119
  le(), ue(), ce();
8120
- var t = Gr().default;
8120
+ var t = Yr().default;
8121
8121
  function r(o) {
8122
8122
  if (o != null) {
8123
8123
  var n = o[typeof Symbol == "function" && Symbol.iterator || "@@iterator"], i = 0;
@@ -8321,7 +8321,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8321
8321
  });
8322
8322
  }), gu = pe((s, e) => {
8323
8323
  le(), ue(), ce(), (function(t, r) {
8324
- typeof s == "object" && typeof e < "u" ? r(s, Gr(), mu(), Va()) : typeof define == "function" && define.amd ? define(["exports", "@babel/runtime/helpers/typeof", "broker-factory", "fast-unique-numbers"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimersBroker = {}, t._typeof, t.brokerFactory, t.fastUniqueNumbers));
8324
+ typeof s == "object" && typeof e < "u" ? r(s, Yr(), mu(), Va()) : typeof define == "function" && define.amd ? define(["exports", "@babel/runtime/helpers/typeof", "broker-factory", "fast-unique-numbers"], r) : (t = typeof globalThis < "u" ? globalThis : t || self, r(t.workerTimersBroker = {}, t._typeof, t.brokerFactory, t.fastUniqueNumbers));
8325
8325
  })(s, function(t, r, o, n) {
8326
8326
  var i = /* @__PURE__ */ new Map([[0, null]]), a = /* @__PURE__ */ new Map([[0, null]]), l = o.createBroker({ clearInterval: function(u) {
8327
8327
  var h = u.call;
@@ -8395,7 +8395,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8395
8395
  };
8396
8396
  t.clearInterval = a, t.clearTimeout = l, t.setInterval = c, t.setTimeout = u;
8397
8397
  });
8398
- }), Yr = pe((s) => {
8398
+ }), Jr = pe((s) => {
8399
8399
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.isReactNativeBrowser = s.isWebWorker = void 0;
8400
8400
  var e = () => typeof window < "u" ? typeof navigator < "u" && navigator.userAgent?.toLowerCase().indexOf(" electron/") > -1 && Re?.versions ? !Object.prototype.hasOwnProperty.call(Re.versions, "electron") : typeof window.document < "u" : !1, t = () => !!(typeof self == "object" && self?.constructor?.name?.includes("WorkerGlobalScope") && typeof Deno > "u"), r = () => typeof navigator < "u" && navigator.product === "ReactNative", o = e() || t() || r();
8401
8401
  s.isWebWorker = t(), s.isReactNativeBrowser = r(), s.default = o;
@@ -8429,7 +8429,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8429
8429
  };
8430
8430
  })();
8431
8431
  Object.defineProperty(s, "__esModule", { value: !0 });
8432
- var o = bu(), n = r(Yr()), i = { set: o.setInterval, clear: o.clearInterval }, a = { set: (c, u) => setInterval(c, u), clear: (c) => clearInterval(c) }, l = (c) => {
8432
+ var o = bu(), n = r(Jr()), i = { set: o.setInterval, clear: o.clearInterval }, a = { set: (c, u) => setInterval(c, u), clear: (c) => clearInterval(c) }, l = (c) => {
8433
8433
  switch (c) {
8434
8434
  case "native":
8435
8435
  return a;
@@ -8487,7 +8487,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8487
8487
  }
8488
8488
  };
8489
8489
  s.default = r;
8490
- }), vi = pe((s) => {
8490
+ }), wi = pe((s) => {
8491
8491
  le(), ue(), ce();
8492
8492
  var e = s && s.__createBinding || (Object.create ? function(v, E, S, I) {
8493
8493
  I === void 0 && (I = S);
@@ -8519,12 +8519,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8519
8519
  return v && v.__esModule ? v : { default: v };
8520
8520
  };
8521
8521
  Object.defineProperty(s, "__esModule", { value: !0 });
8522
- var n = o(Tc()), i = Nt(), a = o(Oc()), l = o(pt()), c = r(Ia()), u = o(Ta()), h = o(Qc()), p = o(za()), g = o(Xc()), f = Vt(), b = Zc(), y = o(Xa()), w = r(Yr()), m = globalThis.setImmediate || ((...v) => {
8522
+ var n = o(Tc()), i = Nt(), a = o(Oc()), l = o(pt()), c = r(Ia()), u = o(Ta()), h = o(Qc()), p = o(za()), g = o(Xc()), f = Vt(), b = Zc(), y = o(Xa()), w = r(Jr()), m = globalThis.setImmediate || ((...v) => {
8523
8523
  let E = v.shift();
8524
8524
  (0, f.nextTick)(() => {
8525
8525
  E(...v);
8526
8526
  });
8527
- }), _ = { keepalive: 60, reschedulePings: !0, protocolId: "MQTT", protocolVersion: 4, reconnectPeriod: 1e3, connectTimeout: 30 * 1e3, clean: !0, resubscribe: !0, subscribeBatchSize: null, writeCache: !0, timerVariant: "auto" }, x = class wi extends b.TypedEventEmitter {
8527
+ }), _ = { keepalive: 60, reschedulePings: !0, protocolId: "MQTT", protocolVersion: 4, reconnectPeriod: 1e3, connectTimeout: 30 * 1e3, clean: !0, resubscribe: !0, subscribeBatchSize: null, writeCache: !0, timerVariant: "auto" }, x = class _i extends b.TypedEventEmitter {
8528
8528
  static VERSION = f.MQTTJS_VERSION;
8529
8529
  connected;
8530
8530
  disconnecting;
@@ -8561,7 +8561,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
8561
8561
  constructor(E, S) {
8562
8562
  super(), this.options = S || {};
8563
8563
  for (let I in _) typeof this.options[I] > "u" ? this.options[I] = _[I] : this.options[I] = S[I];
8564
- this.log = this.options.log || (0, l.default)("mqttjs:client"), this.noop = this._noop.bind(this), this.log("MqttClient :: version:", wi.VERSION), w.isWebWorker ? this.log("MqttClient :: environment", "webworker") : this.log("MqttClient :: environment", w.default ? "browser" : "node"), this.log("MqttClient :: options.protocol", S.protocol), this.log("MqttClient :: options.protocolVersion", S.protocolVersion), this.log("MqttClient :: options.username", S.username), this.log("MqttClient :: options.keepalive", S.keepalive), this.log("MqttClient :: options.reconnectPeriod", S.reconnectPeriod), this.log("MqttClient :: options.rejectUnauthorized", S.rejectUnauthorized), this.log("MqttClient :: options.properties.topicAliasMaximum", S.properties ? S.properties.topicAliasMaximum : void 0), this.options.clientId = typeof S.clientId == "string" ? S.clientId : wi.defaultId(), this.log("MqttClient :: clientId", this.options.clientId), this.options.customHandleAcks = S.protocolVersion === 5 && S.customHandleAcks ? S.customHandleAcks : (...I) => {
8564
+ this.log = this.options.log || (0, l.default)("mqttjs:client"), this.noop = this._noop.bind(this), this.log("MqttClient :: version:", _i.VERSION), w.isWebWorker ? this.log("MqttClient :: environment", "webworker") : this.log("MqttClient :: environment", w.default ? "browser" : "node"), this.log("MqttClient :: options.protocol", S.protocol), this.log("MqttClient :: options.protocolVersion", S.protocolVersion), this.log("MqttClient :: options.username", S.username), this.log("MqttClient :: options.keepalive", S.keepalive), this.log("MqttClient :: options.reconnectPeriod", S.reconnectPeriod), this.log("MqttClient :: options.rejectUnauthorized", S.rejectUnauthorized), this.log("MqttClient :: options.properties.topicAliasMaximum", S.properties ? S.properties.topicAliasMaximum : void 0), this.options.clientId = typeof S.clientId == "string" ? S.clientId : _i.defaultId(), this.log("MqttClient :: clientId", this.options.clientId), this.options.customHandleAcks = S.protocolVersion === 5 && S.customHandleAcks ? S.customHandleAcks : (...I) => {
8565
8565
  I[3](null, 0);
8566
8566
  }, this.options.writeCache || (n.default.writeToStream.cacheNumbers = !1), this.streamBuilder = E, this.messageIdProvider = typeof this.options.messageIdProvider > "u" ? new p.default() : this.options.messageIdProvider, this.outgoingStore = S.outgoingStore || new u.default(), this.incomingStore = S.incomingStore || new u.default(), this.queueQoSZero = S.queueQoSZero === void 0 ? !0 : S.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, S.properties && S.properties.topicAliasMaximum > 0 && (S.properties.topicAliasMaximum > 65535 ? this.log("MqttClient :: options.properties.topicAliasMaximum is out of range") : this.topicAliasRecv = new g.default(S.properties.topicAliasMaximum)), this.on("connect", () => {
8567
8567
  let { queue: I } = this, O = () => {
@@ -9048,8 +9048,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
9048
9048
  s.default = t;
9049
9049
  });
9050
9050
  function wu() {
9051
- if (_i) return br;
9052
- _i = !0;
9051
+ if (ki) return yr;
9052
+ ki = !0;
9053
9053
  let s = 2147483647, e = 36, t = 1, r = 26, o = 38, n = 700, i = 72, a = 128, l = "-", c = /^xn--/, u = /[^\0-\x7F]/, h = /[\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" }, g = e - t, f = Math.floor, b = String.fromCharCode;
9054
9054
  function y(P) {
9055
9055
  throw new RangeError(p[P]);
@@ -9128,7 +9128,7 @@ function wu() {
9128
9128
  }
9129
9129
  return j.join("");
9130
9130
  };
9131
- return br = { version: "2.3.1", ucs2: { decode: _, encode: x }, decode: I, encode: O, toASCII: function(P) {
9131
+ return yr = { version: "2.3.1", ucs2: { decode: _, encode: x }, decode: I, encode: O, toASCII: function(P) {
9132
9132
  return m(P, function(j) {
9133
9133
  return u.test(j) ? "xn--" + O(j) : j;
9134
9134
  });
@@ -9136,13 +9136,13 @@ function wu() {
9136
9136
  return m(P, function(j) {
9137
9137
  return c.test(j) ? I(j.slice(4).toLowerCase()) : j;
9138
9138
  });
9139
- } }, br;
9139
+ } }, yr;
9140
9140
  }
9141
- var br, _i, _t, _u = Ge(() => {
9142
- le(), ue(), ce(), br = {}, _i = !1, _t = wu(), _t.decode, _t.encode, _t.toASCII, _t.toUnicode, _t.ucs2, _t.version;
9141
+ var yr, ki, _t, _u = Ge(() => {
9142
+ le(), ue(), ce(), yr = {}, ki = !1, _t = wu(), _t.decode, _t.encode, _t.toASCII, _t.toUnicode, _t.ucs2, _t.version;
9143
9143
  });
9144
9144
  function ku() {
9145
- return xi || (xi = !0, ki = function() {
9145
+ return Si || (Si = !0, xi = function() {
9146
9146
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return !1;
9147
9147
  if (typeof Symbol.iterator == "symbol") return !0;
9148
9148
  var s = {}, e = /* @__PURE__ */ Symbol("test"), t = Object(e);
@@ -9158,48 +9158,48 @@ function ku() {
9158
9158
  if (n.value !== r || n.enumerable !== !0) return !1;
9159
9159
  }
9160
9160
  return !0;
9161
- }), ki;
9161
+ }), xi;
9162
9162
  }
9163
9163
  function xu() {
9164
- return Ei || (Ei = !0, Si = Error), Si;
9164
+ return Ai || (Ai = !0, Ei = Error), Ei;
9165
9165
  }
9166
9166
  function Su() {
9167
- return Ii || (Ii = !0, Ai = EvalError), Ai;
9167
+ return Ti || (Ti = !0, Ii = EvalError), Ii;
9168
9168
  }
9169
9169
  function Eu() {
9170
- return Ci || (Ci = !0, Ti = RangeError), Ti;
9170
+ return Oi || (Oi = !0, Ci = RangeError), Ci;
9171
9171
  }
9172
9172
  function Au() {
9173
- return Pi || (Pi = !0, Oi = ReferenceError), Oi;
9173
+ return Mi || (Mi = !0, Pi = ReferenceError), Pi;
9174
9174
  }
9175
9175
  function Za() {
9176
- return Ri || (Ri = !0, Mi = SyntaxError), Mi;
9176
+ return Li || (Li = !0, Ri = SyntaxError), Ri;
9177
9177
  }
9178
9178
  function ar() {
9179
- return Ni || (Ni = !0, Li = TypeError), Li;
9179
+ return ji || (ji = !0, Ni = TypeError), Ni;
9180
9180
  }
9181
9181
  function Iu() {
9182
- return Ui || (Ui = !0, ji = URIError), ji;
9182
+ return Bi || (Bi = !0, Ui = URIError), Ui;
9183
9183
  }
9184
9184
  function Tu() {
9185
- if (Bi) return yr;
9186
- Bi = !0;
9185
+ if (Di) return vr;
9186
+ Di = !0;
9187
9187
  var s = typeof Symbol < "u" && Symbol, e = ku();
9188
- return yr = function() {
9188
+ return vr = function() {
9189
9189
  return typeof s != "function" || typeof Symbol != "function" || typeof s("foo") != "symbol" || typeof /* @__PURE__ */ Symbol("bar") != "symbol" ? !1 : e();
9190
- }, yr;
9190
+ }, vr;
9191
9191
  }
9192
9192
  function Cu() {
9193
- if (Di) return vr;
9194
- Di = !0;
9193
+ if (Fi) return wr;
9194
+ Fi = !0;
9195
9195
  var s = { __proto__: null, foo: {} }, e = Object;
9196
- return vr = function() {
9196
+ return wr = function() {
9197
9197
  return { __proto__: s }.foo === s.foo && !(s instanceof e);
9198
- }, vr;
9198
+ }, wr;
9199
9199
  }
9200
9200
  function Ou() {
9201
- if (Fi) return wr;
9202
- Fi = !0;
9201
+ if ($i) return _r;
9202
+ $i = !0;
9203
9203
  var s = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, r = "[object Function]", o = function(a, l) {
9204
9204
  for (var c = [], u = 0; u < a.length; u += 1) c[u] = a[u];
9205
9205
  for (var h = 0; h < l.length; h += 1) c[h + a.length] = l[h];
@@ -9211,7 +9211,7 @@ function Ou() {
9211
9211
  for (var c = "", u = 0; u < a.length; u += 1) c += a[u], u + 1 < a.length && (c += l);
9212
9212
  return c;
9213
9213
  };
9214
- return wr = function(a) {
9214
+ return _r = function(a) {
9215
9215
  var l = this;
9216
9216
  if (typeof l != "function" || e.apply(l) !== r) throw new TypeError(s + l);
9217
9217
  for (var c = n(arguments, 1), u, h = function() {
@@ -9227,23 +9227,23 @@ function Ou() {
9227
9227
  b.prototype = l.prototype, u.prototype = new b(), b.prototype = null;
9228
9228
  }
9229
9229
  return u;
9230
- }, wr;
9230
+ }, _r;
9231
9231
  }
9232
- function yo() {
9233
- if ($i) return _r;
9234
- $i = !0;
9235
- var s = Ou();
9236
- return _r = Function.prototype.bind || s, _r;
9237
- }
9238
- function Pu() {
9232
+ function vo() {
9239
9233
  if (qi) return kr;
9240
9234
  qi = !0;
9241
- var s = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = yo();
9242
- return kr = t.call(s, e), kr;
9235
+ var s = Ou();
9236
+ return kr = Function.prototype.bind || s, kr;
9243
9237
  }
9244
- function Kt() {
9238
+ function Pu() {
9245
9239
  if (Hi) return xr;
9246
9240
  Hi = !0;
9241
+ var s = Function.prototype.call, e = Object.prototype.hasOwnProperty, t = vo();
9242
+ return xr = t.call(s, e), xr;
9243
+ }
9244
+ function Kt() {
9245
+ if (Wi) return Sr;
9246
+ Wi = !0;
9247
9247
  var s, e = xu(), t = Su(), r = Eu(), o = Au(), n = Za(), i = ar(), a = Iu(), l = Function, c = function(Y) {
9248
9248
  try {
9249
9249
  return l('"use strict"; return (' + Y + ").constructor;")();
@@ -9289,7 +9289,7 @@ function Kt() {
9289
9289
  Z && b && (re = b(Z.prototype));
9290
9290
  }
9291
9291
  return m[V] = re, re;
9292
- }, 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"] }, E = yo(), S = Pu(), I = E.call(Function.call, Array.prototype.concat), O = E.call(Function.apply, Array.prototype.splice), P = E.call(Function.call, String.prototype.replace), j = E.call(Function.call, String.prototype.slice), T = E.call(Function.call, RegExp.prototype.exec), q = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, D = /\\(\\)?/g, U = function(Y) {
9292
+ }, 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"] }, E = vo(), S = Pu(), I = E.call(Function.call, Array.prototype.concat), O = E.call(Function.apply, Array.prototype.splice), P = E.call(Function.call, String.prototype.replace), j = E.call(Function.call, String.prototype.slice), T = E.call(Function.call, RegExp.prototype.exec), q = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, D = /\\(\\)?/g, U = function(Y) {
9293
9293
  var V = j(Y, 0, 1), re = j(Y, -1);
9294
9294
  if (V === "%" && re !== "%") throw new n("invalid intrinsic syntax, expected closing `%`");
9295
9295
  if (re === "%" && V !== "%") throw new n("invalid intrinsic syntax, expected opening `%`");
@@ -9306,7 +9306,7 @@ function Kt() {
9306
9306
  }
9307
9307
  throw new n("intrinsic " + Y + " does not exist!");
9308
9308
  };
9309
- return xr = function(Y, V) {
9309
+ return Sr = function(Y, V) {
9310
9310
  if (typeof Y != "string" || Y.length === 0) throw new i("intrinsic name must be a non-empty string");
9311
9311
  if (arguments.length > 1 && typeof V != "boolean") throw new i('"allowMissing" argument must be a boolean');
9312
9312
  if (T(/^%?[^%]*%?$/, Y) === null) throw new n("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
@@ -9329,35 +9329,35 @@ function Kt() {
9329
9329
  }
9330
9330
  }
9331
9331
  return Q;
9332
- }, xr;
9332
+ }, Sr;
9333
9333
  }
9334
- function vo() {
9335
- if (Wi) return Sr;
9336
- Wi = !0;
9334
+ function wo() {
9335
+ if (zi) return Er;
9336
+ zi = !0;
9337
9337
  var s = Kt(), e = s("%Object.defineProperty%", !0) || !1;
9338
9338
  if (e) try {
9339
9339
  e({}, "a", { value: 1 });
9340
9340
  } catch {
9341
9341
  e = !1;
9342
9342
  }
9343
- return Sr = e, Sr;
9343
+ return Er = e, Er;
9344
9344
  }
9345
9345
  function el() {
9346
- if (zi) return Er;
9347
- zi = !0;
9346
+ if (Vi) return Ar;
9347
+ Vi = !0;
9348
9348
  var s = Kt(), e = s("%Object.getOwnPropertyDescriptor%", !0);
9349
9349
  if (e) try {
9350
9350
  e([], "length");
9351
9351
  } catch {
9352
9352
  e = null;
9353
9353
  }
9354
- return Er = e, Er;
9354
+ return Ar = e, Ar;
9355
9355
  }
9356
9356
  function Mu() {
9357
- if (Vi) return Ar;
9358
- Vi = !0;
9359
- var s = vo(), e = Za(), t = ar(), r = el();
9360
- return Ar = function(o, n, i) {
9357
+ if (Ki) return Ir;
9358
+ Ki = !0;
9359
+ var s = wo(), e = Za(), t = ar(), r = el();
9360
+ return Ir = function(o, n, i) {
9361
9361
  if (!o || typeof o != "object" && typeof o != "function") throw new t("`obj` must be an object or a function`");
9362
9362
  if (typeof n != "string" && typeof n != "symbol") throw new t("`property` must be a string or a symbol`");
9363
9363
  if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null) throw new t("`nonEnumerable`, if provided, must be a boolean or null");
@@ -9368,12 +9368,12 @@ function Mu() {
9368
9368
  if (s) s(o, n, { configurable: c === null && h ? h.configurable : !c, enumerable: a === null && h ? h.enumerable : !a, value: i, writable: l === null && h ? h.writable : !l });
9369
9369
  else if (u || !a && !l && !c) o[n] = i;
9370
9370
  else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
9371
- }, Ar;
9371
+ }, Ir;
9372
9372
  }
9373
9373
  function Ru() {
9374
- if (Ki) return Ir;
9375
- Ki = !0;
9376
- var s = vo(), e = function() {
9374
+ if (Gi) return Tr;
9375
+ Gi = !0;
9376
+ var s = wo(), e = function() {
9377
9377
  return !!s;
9378
9378
  };
9379
9379
  return e.hasArrayLengthDefineBug = function() {
@@ -9383,13 +9383,13 @@ function Ru() {
9383
9383
  } catch {
9384
9384
  return !0;
9385
9385
  }
9386
- }, Ir = e, Ir;
9386
+ }, Tr = e, Tr;
9387
9387
  }
9388
9388
  function Lu() {
9389
- if (Gi) return Tr;
9390
- Gi = !0;
9389
+ if (Yi) return Cr;
9390
+ Yi = !0;
9391
9391
  var s = Kt(), e = Mu(), t = Ru()(), r = el(), o = ar(), n = s("%Math.floor%");
9392
- return Tr = function(i, a) {
9392
+ return Cr = function(i, a) {
9393
9393
  if (typeof i != "function") throw new o("`fn` is not a function");
9394
9394
  if (typeof a != "number" || a < 0 || a > 4294967295 || n(a) !== a) throw new o("`length` must be a positive 32-bit integer");
9395
9395
  var l = arguments.length > 2 && !!arguments[2], c = !0, u = !0;
@@ -9398,12 +9398,12 @@ function Lu() {
9398
9398
  h && !h.configurable && (c = !1), h && !h.writable && (u = !1);
9399
9399
  }
9400
9400
  return (c || u || !l) && (t ? e(i, "length", a, !0, !0) : e(i, "length", a)), i;
9401
- }, Tr;
9401
+ }, Cr;
9402
9402
  }
9403
9403
  function Nu() {
9404
- if (Yi) return Ft;
9405
- Yi = !0;
9406
- var s = yo(), e = Kt(), t = Lu(), r = ar(), o = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), i = e("%Reflect.apply%", !0) || s.call(n, o), a = vo(), l = e("%Math.max%");
9404
+ if (Ji) return Ft;
9405
+ Ji = !0;
9406
+ var s = vo(), e = Kt(), t = Lu(), r = ar(), o = e("%Function.prototype.apply%"), n = e("%Function.prototype.call%"), i = e("%Reflect.apply%", !0) || s.call(n, o), a = wo(), l = e("%Math.max%");
9407
9407
  Ft = function(u) {
9408
9408
  if (typeof u != "function") throw new r("a function is required");
9409
9409
  var h = i(s, n, arguments);
@@ -9415,18 +9415,18 @@ function Nu() {
9415
9415
  return a ? a(Ft, "apply", { value: c }) : Ft.apply = c, Ft;
9416
9416
  }
9417
9417
  function ju() {
9418
- if (Ji) return Cr;
9419
- Ji = !0;
9418
+ if (Qi) return Or;
9419
+ Qi = !0;
9420
9420
  var s = Kt(), e = Nu(), t = e(s("String.prototype.indexOf"));
9421
- return Cr = function(r, o) {
9421
+ return Or = function(r, o) {
9422
9422
  var n = s(r, !!o);
9423
9423
  return typeof n == "function" && t(r, ".prototype.") > -1 ? e(n) : n;
9424
- }, Cr;
9424
+ }, Or;
9425
9425
  }
9426
- var ki, xi, Si, Ei, Ai, Ii, Ti, Ci, Oi, Pi, Mi, Ri, Li, Ni, ji, Ui, yr, Bi, vr, Di, wr, Fi, _r, $i, kr, qi, xr, Hi, Sr, Wi, Er, zi, Ar, Vi, Ir, Ki, Tr, Gi, Ft, Yi, Cr, Ji, Uu = Ge(() => {
9427
- le(), ue(), ce(), ki = {}, xi = !1, Si = {}, Ei = !1, Ai = {}, Ii = !1, Ti = {}, Ci = !1, Oi = {}, Pi = !1, Mi = {}, Ri = !1, Li = {}, Ni = !1, ji = {}, Ui = !1, yr = {}, Bi = !1, vr = {}, Di = !1, wr = {}, Fi = !1, _r = {}, $i = !1, kr = {}, qi = !1, xr = {}, Hi = !1, Sr = {}, Wi = !1, Er = {}, zi = !1, Ar = {}, Vi = !1, Ir = {}, Ki = !1, Tr = {}, Gi = !1, Ft = {}, Yi = !1, Cr = {}, Ji = !1;
9426
+ var xi, Si, Ei, Ai, Ii, Ti, Ci, Oi, Pi, Mi, Ri, Li, Ni, ji, Ui, Bi, vr, Di, wr, Fi, _r, $i, kr, qi, xr, Hi, Sr, Wi, Er, zi, Ar, Vi, Ir, Ki, Tr, Gi, Cr, Yi, Ft, Ji, Or, Qi, Uu = Ge(() => {
9427
+ le(), ue(), ce(), xi = {}, Si = !1, Ei = {}, Ai = !1, Ii = {}, Ti = !1, Ci = {}, Oi = !1, Pi = {}, Mi = !1, Ri = {}, Li = !1, Ni = {}, ji = !1, Ui = {}, Bi = !1, vr = {}, Di = !1, wr = {}, Fi = !1, _r = {}, $i = !1, kr = {}, qi = !1, xr = {}, Hi = !1, Sr = {}, Wi = !1, Er = {}, zi = !1, Ar = {}, Vi = !1, Ir = {}, Ki = !1, Tr = {}, Gi = !1, Cr = {}, Yi = !1, Ft = {}, Ji = !1, Or = {}, Qi = !1;
9428
9428
  });
9429
- function wo(s) {
9429
+ function _o(s) {
9430
9430
  throw new Error("Node.js process " + s + " is not supported by JSPM core outside of Node.js");
9431
9431
  }
9432
9432
  function Bu() {
@@ -9454,10 +9454,10 @@ function rl(s, e) {
9454
9454
  function He() {
9455
9455
  }
9456
9456
  function Fu(s) {
9457
- wo("_linkedBinding");
9457
+ _o("_linkedBinding");
9458
9458
  }
9459
9459
  function $u(s) {
9460
- wo("dlopen");
9460
+ _o("dlopen");
9461
9461
  }
9462
9462
  function qu() {
9463
9463
  return [];
@@ -9474,39 +9474,39 @@ function zu() {
9474
9474
  function Vu() {
9475
9475
  return dt.now() / 1e3;
9476
9476
  }
9477
- function Zr(s) {
9477
+ function en(s) {
9478
9478
  var e = Math.floor((Date.now() - dt.now()) * 1e-3), t = dt.now() * 1e-3, r = Math.floor(t) + e, o = Math.floor(t % 1 * 1e9);
9479
- return s && (r = r - s[0], o = o - s[1], o < 0 && (r--, o += Or)), [r, o];
9479
+ return s && (r = r - s[0], o = o - s[1], o < 0 && (r--, o += Pr)), [r, o];
9480
9480
  }
9481
9481
  function vt() {
9482
- return _o;
9482
+ return ko;
9483
9483
  }
9484
9484
  function Ku(s) {
9485
9485
  return [];
9486
9486
  }
9487
- var at, Mt, Ot, ir, Lo, No, jo, Uo, Bo, Do, Fo, $o, qo, Ho, Wo, zo, Vo, Ko, Go, Yo, Jo, Qo, Xo, Zo, es, ur, ts, rs, ns, is, os, ss, as, ls, cs, us, hs, ds, fs, ps, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, dt, en, Or, As, Is, Ts, Cs, Os, Ps, Ms, Rs, Ls, Ns, js, _o, nl = Ge(() => {
9487
+ var at, Mt, Ot, ir, Lo, No, jo, Uo, Bo, Do, Fo, $o, qo, Ho, Wo, zo, Vo, Ko, Go, Yo, Jo, Qo, Xo, Zo, es, hr, ts, rs, ns, is, os, ss, as, ls, cs, us, hs, ds, fs, ps, ms, gs, bs, ys, vs, ws, _s, ks, xs, Ss, Es, dt, tn, Pr, As, Is, Ts, Cs, Os, Ps, Ms, Rs, Ls, Ns, js, ko, nl = Ge(() => {
9488
9488
  le(), ue(), ce(), at = [], Mt = !1, ir = -1, rl.prototype.run = function() {
9489
9489
  this.fun.apply(null, this.array);
9490
9490
  }, Lo = "browser", No = "x64", jo = "browser", Uo = { PATH: "/usr/bin", LANG: navigator.language + ".UTF-8", PWD: "/", HOME: "/home", TMP: "/tmp" }, Bo = ["/usr/bin/node"], Do = [], Fo = "v16.8.0", $o = {}, qo = function(s, e) {
9491
9491
  console.warn((e ? e + ": " : "") + s);
9492
9492
  }, Ho = function(s) {
9493
- wo("binding");
9493
+ _o("binding");
9494
9494
  }, Wo = function(s) {
9495
9495
  return 0;
9496
9496
  }, zo = function() {
9497
9497
  return "/";
9498
9498
  }, Vo = function(s) {
9499
- }, Ko = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, Go = He, Yo = [], Jo = {}, Qo = !1, Xo = {}, Zo = He, es = He, ur = function() {
9499
+ }, Ko = { name: "node", sourceUrl: "", headersUrl: "", libUrl: "" }, Go = He, Yo = [], Jo = {}, Qo = !1, Xo = {}, Zo = He, es = He, hr = function() {
9500
9500
  return {};
9501
- }, ts = ur, rs = ur, ns = He, is = He, os = He, ss = {}, as = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, ls = He, cs = He, us = He, hs = He, ds = He, fs = He, ps = He, ms = void 0, gs = void 0, bs = void 0, ys = He, vs = 2, ws = 1, _s = "/bin/usr/node", ks = 9229, xs = "node", Ss = [], Es = He, dt = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, dt.now === void 0 && (en = Date.now(), dt.timing && dt.timing.navigationStart && (en = dt.timing.navigationStart), dt.now = () => Date.now() - en), Or = 1e9, Zr.bigint = function(s) {
9502
- var e = Zr(s);
9503
- return typeof BigInt > "u" ? e[0] * Or + e[1] : BigInt(e[0] * Or) + BigInt(e[1]);
9504
- }, As = 10, Is = {}, Ts = 0, Cs = vt, Os = vt, Ps = vt, Ms = vt, Rs = vt, Ls = He, Ns = vt, js = vt, _o = { version: Fo, versions: $o, arch: No, platform: jo, release: Ko, _rawDebug: Go, moduleLoadList: Yo, binding: Ho, _linkedBinding: Fu, _events: Is, _eventsCount: Ts, _maxListeners: As, on: vt, addListener: Cs, once: Os, off: Ps, removeListener: Ms, removeAllListeners: Rs, emit: Ls, prependListener: Ns, prependOnceListener: js, listeners: Ku, domain: Jo, _exiting: Qo, config: Xo, dlopen: $u, uptime: Vu, _getActiveRequests: qu, _getActiveHandles: Hu, reallyExit: Zo, _kill: es, cpuUsage: ur, resourceUsage: ts, memoryUsage: rs, kill: ns, exit: is, openStdin: os, allowedNodeEnvironmentFlags: ss, assert: Wu, features: as, _fatalExceptions: ls, setUncaughtExceptionCaptureCallback: cs, hasUncaughtExceptionCaptureCallback: zu, emitWarning: qo, nextTick: Du, _tickCallback: us, _debugProcess: hs, _debugEnd: ds, _startProfilerIdleNotifier: fs, _stopProfilerIdleNotifier: ps, stdout: ms, stdin: bs, stderr: gs, abort: ys, umask: Wo, chdir: Vo, cwd: zo, env: Uo, title: Lo, argv: Bo, execArgv: Do, pid: vs, ppid: ws, execPath: _s, debugPort: ks, hrtime: Zr, argv0: xs, _preload_modules: Ss, setSourceMapsEnabled: Es };
9501
+ }, ts = hr, rs = hr, ns = He, is = He, os = He, ss = {}, as = { inspector: !1, debug: !1, uv: !1, ipv6: !1, tls_alpn: !1, tls_sni: !1, tls_ocsp: !1, tls: !1, cached_builtins: !0 }, ls = He, cs = He, us = He, hs = He, ds = He, fs = He, ps = He, ms = void 0, gs = void 0, bs = void 0, ys = He, vs = 2, ws = 1, _s = "/bin/usr/node", ks = 9229, xs = "node", Ss = [], Es = He, dt = { now: typeof performance < "u" ? performance.now.bind(performance) : void 0, timing: typeof performance < "u" ? performance.timing : void 0 }, dt.now === void 0 && (tn = Date.now(), dt.timing && dt.timing.navigationStart && (tn = dt.timing.navigationStart), dt.now = () => Date.now() - tn), Pr = 1e9, en.bigint = function(s) {
9502
+ var e = en(s);
9503
+ return typeof BigInt > "u" ? e[0] * Pr + e[1] : BigInt(e[0] * Pr) + BigInt(e[1]);
9504
+ }, As = 10, Is = {}, Ts = 0, Cs = vt, Os = vt, Ps = vt, Ms = vt, Rs = vt, Ls = He, Ns = vt, js = vt, ko = { version: Fo, versions: $o, arch: No, platform: jo, release: Ko, _rawDebug: Go, moduleLoadList: Yo, binding: Ho, _linkedBinding: Fu, _events: Is, _eventsCount: Ts, _maxListeners: As, on: vt, addListener: Cs, once: Os, off: Ps, removeListener: Ms, removeAllListeners: Rs, emit: Ls, prependListener: Ns, prependOnceListener: js, listeners: Ku, domain: Jo, _exiting: Qo, config: Xo, dlopen: $u, uptime: Vu, _getActiveRequests: qu, _getActiveHandles: Hu, reallyExit: Zo, _kill: es, cpuUsage: hr, resourceUsage: ts, memoryUsage: rs, kill: ns, exit: is, openStdin: os, allowedNodeEnvironmentFlags: ss, assert: Wu, features: as, _fatalExceptions: ls, setUncaughtExceptionCaptureCallback: cs, hasUncaughtExceptionCaptureCallback: zu, emitWarning: qo, nextTick: Du, _tickCallback: us, _debugProcess: hs, _debugEnd: ds, _startProfilerIdleNotifier: fs, _stopProfilerIdleNotifier: ps, stdout: ms, stdin: bs, stderr: gs, abort: ys, umask: Wo, chdir: Vo, cwd: zo, env: Uo, title: Lo, argv: Bo, execArgv: Do, pid: vs, ppid: ws, execPath: _s, debugPort: ks, hrtime: en, argv0: xs, _preload_modules: Ss, setSourceMapsEnabled: Es };
9505
9505
  });
9506
9506
  function Gu() {
9507
- if (Qi) return Pr;
9508
- Qi = !0;
9509
- var s = _o;
9507
+ if (Xi) return Mr;
9508
+ Xi = !0;
9509
+ var s = ko;
9510
9510
  function e(n) {
9511
9511
  if (typeof n != "string") throw new TypeError("Path must be a string. Received " + JSON.stringify(n));
9512
9512
  }
@@ -9652,15 +9652,15 @@ function Gu() {
9652
9652
  }
9653
9653
  return u === -1 || p === -1 || b === 0 || b === 1 && u === p - 1 && u === h + 1 ? p !== -1 && (h === 0 && l ? i.base = i.name = n.slice(1, p) : i.base = i.name = n.slice(h, p)) : (h === 0 && l ? (i.name = n.slice(1, u), i.base = n.slice(1, p)) : (i.name = n.slice(h, u), i.base = n.slice(h, p)), i.ext = n.slice(u, p)), h > 0 ? i.dir = n.slice(0, h - 1) : l && (i.dir = "/"), i;
9654
9654
  }, sep: "/", delimiter: ":", win32: null, posix: null };
9655
- return o.posix = o, Pr = o, Pr;
9655
+ return o.posix = o, Mr = o, Mr;
9656
9656
  }
9657
- var Pr, Qi, Xi, Yu = Ge(() => {
9658
- le(), ue(), ce(), nl(), Pr = {}, Qi = !1, Xi = Gu();
9657
+ var Mr, Xi, Zi, Yu = Ge(() => {
9658
+ le(), ue(), ce(), nl(), Mr = {}, Xi = !1, Zi = Gu();
9659
9659
  }), il = {};
9660
9660
  Wt(il, { URL: () => pl, Url: () => cl, default: () => We, fileURLToPath: () => sl, format: () => ul, parse: () => fl, pathToFileURL: () => al, resolve: () => hl, resolveObject: () => dl });
9661
9661
  function Ju() {
9662
- if (Zi) return Mr;
9663
- Zi = !0;
9662
+ if (eo) return Rr;
9663
+ eo = !0;
9664
9664
  var s = typeof Map == "function" && Map.prototype, e = Object.getOwnPropertyDescriptor && s ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, t = s && e && typeof e.get == "function" ? e.get : null, r = s && Map.prototype.forEach, o = typeof Set == "function" && Set.prototype, n = Object.getOwnPropertyDescriptor && o ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, i = o && n && typeof n.get == "function" ? n.get : null, a = o && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, c = l ? WeakMap.prototype.has : null, u = typeof WeakSet == "function" && WeakSet.prototype, h = u ? WeakSet.prototype.has : null, p = typeof WeakRef == "function" && WeakRef.prototype, g = p ? WeakRef.prototype.deref : null, f = Boolean.prototype.valueOf, b = Object.prototype.toString, y = Function.prototype.toString, w = String.prototype.match, m = String.prototype.slice, _ = String.prototype.replace, x = String.prototype.toUpperCase, v = String.prototype.toLowerCase, E = RegExp.prototype.test, S = Array.prototype.concat, I = Array.prototype.join, O = Array.prototype.slice, P = Math.floor, j = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, T = Object.getOwnPropertySymbols, q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, D = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = 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) {
9665
9665
  return z.__proto__;
9666
9666
  } : null);
@@ -9670,14 +9670,14 @@ function Ju() {
9670
9670
  if (typeof z == "number") {
9671
9671
  var Ae = z < 0 ? -P(-z) : P(z);
9672
9672
  if (Ae !== z) {
9673
- var Ie = String(Ae), Oe = m.call(ie, Ie.length + 1);
9674
- return _.call(Ie, Ee, "$&_") + "." + _.call(_.call(Oe, /([0-9]{3})/g, "$&_"), /_$/, "");
9673
+ var Te = String(Ae), Oe = m.call(ie, Te.length + 1);
9674
+ return _.call(Te, Ee, "$&_") + "." + _.call(_.call(Oe, /([0-9]{3})/g, "$&_"), /_$/, "");
9675
9675
  }
9676
9676
  }
9677
9677
  return _.call(ie, Ee, "$&_");
9678
9678
  }
9679
9679
  var re = ll, F = re.custom, Z = G(F) ? F : null;
9680
- Mr = function z(ie, Ee, Ae, Ie) {
9680
+ Rr = function z(ie, Ee, Ae, Te) {
9681
9681
  var Oe = Ee || {};
9682
9682
  if (oe(Oe, "quoteStyle") && Oe.quoteStyle !== "single" && Oe.quoteStyle !== "double") throw new TypeError('option "quoteStyle" must be "single" or "double"');
9683
9683
  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`');
@@ -9702,18 +9702,18 @@ function Ju() {
9702
9702
  var jt = typeof Oe.depth > "u" ? 5 : Oe.depth;
9703
9703
  if (typeof Ae > "u" && (Ae = 0), Ae >= jt && jt > 0 && typeof ie == "object") return be(ie) ? "[Array]" : "[Object]";
9704
9704
  var nt = X(Oe, Ae);
9705
- if (typeof Ie > "u") Ie = [];
9706
- else if (ee(Ie, ie) >= 0) return "[Circular]";
9705
+ if (typeof Te > "u") Te = [];
9706
+ else if (ee(Te, ie) >= 0) return "[Circular]";
9707
9707
  function Ye(it, yt, At) {
9708
- if (yt && (Ie = O.call(Ie), Ie.push(yt)), At) {
9708
+ if (yt && (Te = O.call(Te), Te.push(yt)), At) {
9709
9709
  var ot = { depth: Oe.depth };
9710
- return oe(Oe, "quoteStyle") && (ot.quoteStyle = Oe.quoteStyle), z(it, ot, Ae + 1, Ie);
9710
+ return oe(Oe, "quoteStyle") && (ot.quoteStyle = Oe.quoteStyle), z(it, ot, Ae + 1, Te);
9711
9711
  }
9712
- return z(it, Oe, Ae + 1, Ie);
9712
+ return z(it, Oe, Ae + 1, Te);
9713
9713
  }
9714
9714
  if (typeof ie == "function" && !we(ie)) {
9715
- var lr = $(ie), Ut = ke(ie, Ye);
9716
- return "[Function" + (lr ? ": " + lr : " (anonymous)") + "]" + (Ut.length > 0 ? " { " + I.call(Ut, ", ") + " }" : "");
9715
+ var cr = $(ie), Ut = ke(ie, Ye);
9716
+ return "[Function" + (cr ? ": " + cr : " (anonymous)") + "]" + (Ut.length > 0 ? " { " + I.call(Ut, ", ") + " }" : "");
9717
9717
  }
9718
9718
  if (G(ie)) {
9719
9719
  var Gt = D ? _.call(String(ie), /^(Symbol\(.*\))_[^)]*$/, "$1") : q.call(ie);
@@ -9756,9 +9756,9 @@ function Ju() {
9756
9756
  if (W(ie)) return d(f.call(ie));
9757
9757
  if (N(ie)) return d(Ye(String(ie)));
9758
9758
  if (typeof window < "u" && ie === window) return "{ [object Window] }";
9759
- if (typeof globalThis < "u" && ie === globalThis || typeof Rr < "u" && ie === Rr) return "{ [object globalThis] }";
9759
+ if (typeof globalThis < "u" && ie === globalThis || typeof Lr < "u" && ie === Lr) return "{ [object globalThis] }";
9760
9760
  if (!te(ie) && !we(ie)) {
9761
- var Ze = ke(ie, Ye), Yt = Y ? Y(ie) === Object.prototype : ie instanceof Object || ie.constructor === Object, Jt = ie instanceof Object ? "" : "null prototype", Qt = !Yt && U && Object(ie) === ie && U in ie ? m.call(R(ie), 8, -1) : Jt ? "Object" : "", cr = Yt || typeof ie.constructor != "function" ? "" : ie.constructor.name ? ie.constructor.name + " " : "", Et = cr + (Qt || Jt ? "[" + I.call(S.call([], Qt || [], Jt || []), ": ") + "] " : "");
9761
+ var Ze = ke(ie, Ye), Yt = Y ? Y(ie) === Object.prototype : ie instanceof Object || ie.constructor === Object, Jt = ie instanceof Object ? "" : "null prototype", Qt = !Yt && U && Object(ie) === ie && U in ie ? m.call(R(ie), 8, -1) : Jt ? "Object" : "", ur = Yt || typeof ie.constructor != "function" ? "" : ie.constructor.name ? ie.constructor.name + " " : "", Et = ur + (Qt || Jt ? "[" + I.call(S.call([], Qt || [], Jt || []), ": ") + "] " : "");
9762
9762
  return Ze.length === 0 ? Et + "{}" : nt ? Et + "{" + he(Ze, nt) + "}" : Et + "{ " + I.call(Ze, ", ") + " }";
9763
9763
  }
9764
9764
  return String(ie);
@@ -9810,7 +9810,7 @@ function Ju() {
9810
9810
  return !1;
9811
9811
  }
9812
9812
  var ge = Object.prototype.hasOwnProperty || function(z) {
9813
- return z in (this || Rr);
9813
+ return z in (this || Lr);
9814
9814
  };
9815
9815
  function oe(z, ie) {
9816
9816
  return ge.call(z, ie);
@@ -9900,10 +9900,10 @@ function Ju() {
9900
9900
  var Ee = z.length - ie.maxStringLength, Ae = "... " + Ee + " more character" + (Ee > 1 ? "s" : "");
9901
9901
  return se(m.call(z, 0, ie.maxStringLength), ie) + Ae;
9902
9902
  }
9903
- var Ie = _.call(_.call(z, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Te);
9904
- return M(Ie, "single", ie);
9903
+ var Te = _.call(_.call(z, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ce);
9904
+ return M(Te, "single", ie);
9905
9905
  }
9906
- function Te(z) {
9906
+ function Ce(z) {
9907
9907
  var ie = z.charCodeAt(0), Ee = { 8: "b", 9: "t", 10: "n", 12: "f", 13: "r" }[ie];
9908
9908
  return Ee ? "\\" + Ee : "\\x" + (ie < 16 ? "0" : "") + x.call(ie.toString(16));
9909
9909
  }
@@ -9914,8 +9914,8 @@ function Ju() {
9914
9914
  return z + " { ? }";
9915
9915
  }
9916
9916
  function A(z, ie, Ee, Ae) {
9917
- var Ie = Ae ? he(Ee, Ae) : I.call(Ee, ", ");
9918
- return z + " (" + ie + ") {" + Ie + "}";
9917
+ var Te = Ae ? he(Ee, Ae) : I.call(Ee, ", ");
9918
+ return z + " (" + ie + ") {" + Te + "}";
9919
9919
  }
9920
9920
  function B(z) {
9921
9921
  for (var ie = 0; ie < z.length; ie++) if (ee(z[ie], `
@@ -9940,7 +9940,7 @@ function Ju() {
9940
9940
  var Ee = be(z), Ae = [];
9941
9941
  if (Ee) {
9942
9942
  Ae.length = z.length;
9943
- for (var Ie = 0; Ie < z.length; Ie++) Ae[Ie] = oe(z, Ie) ? ie(z[Ie], z) : "";
9943
+ for (var Te = 0; Te < z.length; Te++) Ae[Te] = oe(z, Te) ? ie(z[Te], z) : "";
9944
9944
  }
9945
9945
  var Oe = typeof T == "function" ? T(z) : [], et;
9946
9946
  if (D) {
@@ -9951,11 +9951,11 @@ function Ju() {
9951
9951
  if (typeof T == "function") for (var rt = 0; rt < Oe.length; rt++) ae.call(z, Oe[rt]) && Ae.push("[" + ie(Oe[rt]) + "]: " + ie(z[Oe[rt]], z));
9952
9952
  return Ae;
9953
9953
  }
9954
- return Mr;
9954
+ return Rr;
9955
9955
  }
9956
9956
  function Qu() {
9957
- if (eo) return Lr;
9958
- eo = !0;
9957
+ if (to) return Nr;
9958
+ to = !0;
9959
9959
  var s = Kt(), e = ju(), t = Ju(), r = ar(), o = s("%WeakMap%", !0), n = s("%Map%", !0), i = e("WeakMap.prototype.get", !0), a = e("WeakMap.prototype.set", !0), l = e("WeakMap.prototype.has", !0), c = e("Map.prototype.get", !0), u = e("Map.prototype.set", !0), h = e("Map.prototype.has", !0), p = function(y, w) {
9960
9960
  for (var m = y, _; (_ = m.next) !== null; m = _) if (_.key === w) return m.next = _.next, _.next = y.next, y.next = _, _;
9961
9961
  }, g = function(y, w) {
@@ -9967,7 +9967,7 @@ function Qu() {
9967
9967
  }, b = function(y, w) {
9968
9968
  return !!p(y, w);
9969
9969
  };
9970
- return Lr = function() {
9970
+ return Nr = function() {
9971
9971
  var y, w, m, _ = { assert: function(x) {
9972
9972
  if (!_.has(x)) throw new r("Side channel does not contain " + t(x));
9973
9973
  }, get: function(x) {
@@ -9987,22 +9987,22 @@ function Qu() {
9987
9987
  o && x && (typeof x == "object" || typeof x == "function") ? (y || (y = new o()), a(y, x, v)) : n ? (w || (w = new n()), u(w, x, v)) : (m || (m = { key: {}, next: null }), f(m, x, v));
9988
9988
  } };
9989
9989
  return _;
9990
- }, Lr;
9990
+ }, Nr;
9991
9991
  }
9992
- function ko() {
9993
- if (to) return Nr;
9994
- to = !0;
9992
+ function xo() {
9993
+ if (ro) return jr;
9994
+ ro = !0;
9995
9995
  var s = String.prototype.replace, e = /%20/g, t = { RFC1738: "RFC1738", RFC3986: "RFC3986" };
9996
- return Nr = { default: t.RFC3986, formatters: { RFC1738: function(r) {
9996
+ return jr = { default: t.RFC3986, formatters: { RFC1738: function(r) {
9997
9997
  return s.call(r, e, "+");
9998
9998
  }, RFC3986: function(r) {
9999
9999
  return String(r);
10000
- } }, RFC1738: t.RFC1738, RFC3986: t.RFC3986 }, Nr;
10000
+ } }, RFC1738: t.RFC1738, RFC3986: t.RFC3986 }, jr;
10001
10001
  }
10002
10002
  function ol() {
10003
- if (ro) return jr;
10004
- ro = !0;
10005
- var s = ko(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = (function() {
10003
+ if (no) return Ur;
10004
+ no = !0;
10005
+ var s = xo(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = (function() {
10006
10006
  for (var y = [], w = 0; w < 256; ++w) y.push("%" + ((w < 16 ? "0" : "") + w.toString(16)).toUpperCase());
10007
10007
  return y;
10008
10008
  })(), o = function(y) {
@@ -10096,12 +10096,12 @@ function ol() {
10096
10096
  }
10097
10097
  return w(y);
10098
10098
  };
10099
- return jr = { arrayToObject: n, assign: a, combine: f, compact: h, decode: l, encode: u, isBuffer: g, isRegExp: p, maybeMap: b, merge: i }, jr;
10099
+ return Ur = { arrayToObject: n, assign: a, combine: f, compact: h, decode: l, encode: u, isBuffer: g, isRegExp: p, maybeMap: b, merge: i }, Ur;
10100
10100
  }
10101
10101
  function Xu() {
10102
- if (no) return Ur;
10103
- no = !0;
10104
- var s = Qu(), e = ol(), t = ko(), r = Object.prototype.hasOwnProperty, o = { brackets: function(b) {
10102
+ if (io) return Br;
10103
+ io = !0;
10104
+ var s = Qu(), e = ol(), t = xo(), r = Object.prototype.hasOwnProperty, o = { brackets: function(b) {
10105
10105
  return b + "[]";
10106
10106
  }, comma: "comma", indices: function(b, y) {
10107
10107
  return b + "[" + y + "]";
@@ -10175,7 +10175,7 @@ function Xu() {
10175
10175
  var v = typeof b.allowDots > "u" ? b.encodeDotInKeys === !0 ? !0 : u.allowDots : !!b.allowDots;
10176
10176
  return { addQueryPrefix: typeof b.addQueryPrefix == "boolean" ? b.addQueryPrefix : u.addQueryPrefix, allowDots: v, allowEmptyArrays: typeof b.allowEmptyArrays == "boolean" ? !!b.allowEmptyArrays : u.allowEmptyArrays, arrayFormat: x, charset: y, charsetSentinel: typeof b.charsetSentinel == "boolean" ? b.charsetSentinel : u.charsetSentinel, commaRoundTrip: b.commaRoundTrip, delimiter: typeof b.delimiter > "u" ? u.delimiter : b.delimiter, encode: typeof b.encode == "boolean" ? b.encode : u.encode, encodeDotInKeys: typeof b.encodeDotInKeys == "boolean" ? b.encodeDotInKeys : u.encodeDotInKeys, encoder: typeof b.encoder == "function" ? b.encoder : u.encoder, encodeValuesOnly: typeof b.encodeValuesOnly == "boolean" ? b.encodeValuesOnly : u.encodeValuesOnly, filter: _, format: w, formatter: m, serializeDate: typeof b.serializeDate == "function" ? b.serializeDate : u.serializeDate, skipNulls: typeof b.skipNulls == "boolean" ? b.skipNulls : u.skipNulls, sort: typeof b.sort == "function" ? b.sort : null, strictNullHandling: typeof b.strictNullHandling == "boolean" ? b.strictNullHandling : u.strictNullHandling };
10177
10177
  };
10178
- return Ur = function(b, y) {
10178
+ return Br = function(b, y) {
10179
10179
  var w = b, m = f(y), _, x;
10180
10180
  typeof m.filter == "function" ? (x = m.filter, w = x("", w)) : n(m.filter) && (x = m.filter, _ = x);
10181
10181
  var v = [];
@@ -10188,11 +10188,11 @@ function Xu() {
10188
10188
  }
10189
10189
  var j = v.join(m.delimiter), T = m.addQueryPrefix === !0 ? "?" : "";
10190
10190
  return m.charsetSentinel && (m.charset === "iso-8859-1" ? T += "utf8=%26%2310003%3B&" : T += "utf8=%E2%9C%93&"), j.length > 0 ? T + j : "";
10191
- }, Ur;
10191
+ }, Br;
10192
10192
  }
10193
10193
  function Zu() {
10194
- if (io) return Br;
10195
- io = !0;
10194
+ if (oo) return Dr;
10195
+ oo = !0;
10196
10196
  var s = ol(), e = Object.prototype.hasOwnProperty, t = Array.isArray, r = { allowDots: !1, allowEmptyArrays: !1, allowPrototypes: !1, allowSparse: !1, arrayLimit: 20, charset: "utf-8", charsetSentinel: !1, comma: !1, decodeDotInKeys: !1, decoder: s.decode, delimiter: "&", depth: 5, duplicates: "combine", ignoreQueryPrefix: !1, interpretNumericEntities: !1, parameterLimit: 1e3, parseArrays: !0, plainObjects: !1, strictDepth: !1, strictNullHandling: !1 }, o = function(p) {
10197
10197
  return p.replace(/&#(\d+);/g, function(g, f) {
10198
10198
  return String.fromCharCode(parseInt(f, 10));
@@ -10253,7 +10253,7 @@ function Zu() {
10253
10253
  var b = typeof p.allowDots > "u" ? p.decodeDotInKeys === !0 ? !0 : r.allowDots : !!p.allowDots;
10254
10254
  return { allowDots: b, allowEmptyArrays: typeof p.allowEmptyArrays == "boolean" ? !!p.allowEmptyArrays : r.allowEmptyArrays, allowPrototypes: typeof p.allowPrototypes == "boolean" ? p.allowPrototypes : r.allowPrototypes, allowSparse: typeof p.allowSparse == "boolean" ? p.allowSparse : r.allowSparse, arrayLimit: typeof p.arrayLimit == "number" ? p.arrayLimit : r.arrayLimit, charset: g, charsetSentinel: typeof p.charsetSentinel == "boolean" ? p.charsetSentinel : r.charsetSentinel, comma: typeof p.comma == "boolean" ? p.comma : r.comma, decodeDotInKeys: typeof p.decodeDotInKeys == "boolean" ? p.decodeDotInKeys : r.decodeDotInKeys, decoder: typeof p.decoder == "function" ? p.decoder : r.decoder, delimiter: typeof p.delimiter == "string" || s.isRegExp(p.delimiter) ? p.delimiter : r.delimiter, depth: typeof p.depth == "number" || p.depth === !1 ? +p.depth : r.depth, duplicates: f, ignoreQueryPrefix: p.ignoreQueryPrefix === !0, interpretNumericEntities: typeof p.interpretNumericEntities == "boolean" ? p.interpretNumericEntities : r.interpretNumericEntities, parameterLimit: typeof p.parameterLimit == "number" ? p.parameterLimit : r.parameterLimit, parseArrays: p.parseArrays !== !1, plainObjects: typeof p.plainObjects == "boolean" ? p.plainObjects : r.plainObjects, strictDepth: typeof p.strictDepth == "boolean" ? !!p.strictDepth : r.strictDepth, strictNullHandling: typeof p.strictNullHandling == "boolean" ? p.strictNullHandling : r.strictNullHandling };
10255
10255
  };
10256
- return Br = function(p, g) {
10256
+ return Dr = function(p, g) {
10257
10257
  var f = h(g);
10258
10258
  if (p === "" || p === null || typeof p > "u") return f.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
10259
10259
  for (var b = typeof p == "string" ? l(p, f) : p, y = f.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, w = Object.keys(b), m = 0; m < w.length; ++m) {
@@ -10261,17 +10261,17 @@ function Zu() {
10261
10261
  y = s.merge(y, x, f);
10262
10262
  }
10263
10263
  return f.allowSparse === !0 ? y : s.compact(y);
10264
- }, Br;
10264
+ }, Dr;
10265
10265
  }
10266
10266
  function eh() {
10267
- if (oo) return Dr;
10268
- oo = !0;
10269
- var s = Xu(), e = Zu(), t = ko();
10270
- return Dr = { formats: t, parse: e, stringify: s }, Dr;
10267
+ if (so) return Fr;
10268
+ so = !0;
10269
+ var s = Xu(), e = Zu(), t = xo();
10270
+ return Fr = { formats: t, parse: e, stringify: s }, Fr;
10271
10271
  }
10272
10272
  function th() {
10273
- if (so) return kt;
10274
- so = !0;
10273
+ if (ao) return kt;
10274
+ ao = !0;
10275
10275
  var s = _t;
10276
10276
  function e() {
10277
10277
  this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
@@ -10434,7 +10434,7 @@ function sl(s) {
10434
10434
  if (typeof s == "string") s = new URL(s);
10435
10435
  else if (!(s instanceof URL)) throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");
10436
10436
  if (s.protocol !== "file:") throw new Deno.errors.InvalidData("invalid url scheme");
10437
- return qr ? rh(s) : nh(s);
10437
+ return Hr ? rh(s) : nh(s);
10438
10438
  }
10439
10439
  function rh(s) {
10440
10440
  let e = s.hostname, t = s.pathname;
@@ -10459,19 +10459,19 @@ function nh(s) {
10459
10459
  return decodeURIComponent(e);
10460
10460
  }
10461
10461
  function al(s) {
10462
- let e = Xi.resolve(s), t = s.charCodeAt(s.length - 1);
10463
- (t === gl || qr && t === ml) && e[e.length - 1] !== Xi.sep && (e += "/");
10462
+ let e = Zi.resolve(s), t = s.charCodeAt(s.length - 1);
10463
+ (t === gl || Hr && t === ml) && e[e.length - 1] !== Zi.sep && (e += "/");
10464
10464
  let r = new URL("file://");
10465
- return e.includes("%") && (e = e.replace(wl, "%25")), !qr && e.includes("\\") && (e = e.replace(_l, "%5C")), e.includes(`
10465
+ return e.includes("%") && (e = e.replace(wl, "%25")), !Hr && e.includes("\\") && (e = e.replace(_l, "%5C")), e.includes(`
10466
10466
  `) && (e = e.replace(kl, "%0A")), e.includes("\r") && (e = e.replace(xl, "%0D")), e.includes(" ") && (e = e.replace(Sl, "%09")), r.pathname = e, r;
10467
10467
  }
10468
- var ll, Mr, Zi, Rr, Lr, eo, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, kt, so, We, Us, cl, ul, hl, dl, fl, pl, ml, gl, bl, yl, qr, vl, wl, _l, kl, xl, Sl, ih = Ge(() => {
10469
- le(), ue(), ce(), _u(), Uu(), Yu(), nl(), ll = Object.freeze(/* @__PURE__ */ Object.create(null)), Mr = {}, Zi = !1, Rr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Lr = {}, eo = !1, Nr = {}, to = !1, jr = {}, ro = !1, Ur = {}, no = !1, Br = {}, io = !1, Dr = {}, oo = !1, kt = {}, so = !1, We = th(), We.parse, We.resolve, We.resolveObject, We.format, We.Url, Us = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, We.URL = typeof URL < "u" ? URL : null, We.pathToFileURL = al, We.fileURLToPath = sl, cl = We.Url, ul = We.format, hl = We.resolve, dl = We.resolveObject, fl = We.parse, pl = We.URL, ml = 92, gl = 47, bl = 97, yl = 122, qr = Us === "win32", vl = /\//g, wl = /%/g, _l = /\\/g, kl = /\n/g, xl = /\r/g, Sl = /\t/g;
10468
+ var ll, Rr, eo, Lr, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, Fr, so, kt, ao, We, Us, cl, ul, hl, dl, fl, pl, ml, gl, bl, yl, Hr, vl, wl, _l, kl, xl, Sl, ih = Ge(() => {
10469
+ le(), ue(), ce(), _u(), Uu(), Yu(), nl(), ll = Object.freeze(/* @__PURE__ */ Object.create(null)), Rr = {}, eo = !1, Lr = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : global, Nr = {}, to = !1, jr = {}, ro = !1, Ur = {}, no = !1, Br = {}, io = !1, Dr = {}, oo = !1, Fr = {}, so = !1, kt = {}, ao = !1, We = th(), We.parse, We.resolve, We.resolveObject, We.format, We.Url, Us = typeof Deno < "u" ? Deno.build.os === "windows" ? "win32" : Deno.build.os : void 0, We.URL = typeof URL < "u" ? URL : null, We.pathToFileURL = al, We.fileURLToPath = sl, cl = We.Url, ul = We.format, hl = We.resolve, dl = We.resolveObject, fl = We.parse, pl = We.URL, ml = 92, gl = 47, bl = 97, yl = 122, Hr = Us === "win32", vl = /\//g, wl = /%/g, _l = /\\/g, kl = /\n/g, xl = /\r/g, Sl = /\t/g;
10470
10470
  }), oh = pe((s, e) => {
10471
10471
  le(), ue(), ce(), e.exports = function() {
10472
10472
  throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object");
10473
10473
  };
10474
- }), xo = pe((s) => {
10474
+ }), So = pe((s) => {
10475
10475
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 }), s.BufferedDuplex = void 0, s.writev = r;
10476
10476
  var e = Nt(), t = (Fe(), Me(De));
10477
10477
  function r(n, i) {
@@ -10515,13 +10515,13 @@ var ll, Mr, Zi, Rr, Lr, eo, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, kt, so, We,
10515
10515
  }
10516
10516
  };
10517
10517
  s.BufferedDuplex = o;
10518
- }), hr = pe((s) => {
10518
+ }), dr = pe((s) => {
10519
10519
  le(), ue(), ce();
10520
10520
  var e = s && s.__importDefault || function(w) {
10521
10521
  return w && w.__esModule ? w : { default: w };
10522
10522
  };
10523
10523
  Object.defineProperty(s, "__esModule", { value: !0 }), s.streamBuilder = s.browserStreamBuilder = void 0;
10524
- var t = (Fe(), Me(De)), r = e(oh()), o = e(pt()), n = Nt(), i = e(Yr()), a = xo(), l = (0, o.default)("mqttjs:ws"), c = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
10524
+ var t = (Fe(), Me(De)), r = e(oh()), o = e(pt()), n = Nt(), i = e(Jr()), a = So(), l = (0, o.default)("mqttjs:ws"), c = ["rejectUnauthorized", "ca", "cert", "key", "pfx", "passphrase"];
10525
10525
  function u(w, m) {
10526
10526
  let _ = `${w.protocol}://${w.hostname}:${w.port}${w.path}`;
10527
10527
  return typeof w.transformWsUrl == "function" && (_ = w.transformWsUrl(_, w, m)), _;
@@ -10609,8 +10609,8 @@ var ll, Mr, Zi, Rr, Lr, eo, Nr, to, jr, ro, Ur, no, Br, io, Dr, oo, kt, so, We,
10609
10609
  return _;
10610
10610
  };
10611
10611
  s.browserStreamBuilder = y;
10612
- }), So = {};
10613
- Wt(So, { Server: () => Le, Socket: () => Le, Stream: () => Le, _createServerHandle: () => Le, _normalizeArgs: () => Le, _setSimultaneousAccepts: () => Le, connect: () => Le, createConnection: () => Le, createServer: () => Le, default: () => El, isIP: () => Le, isIPv4: () => Le, isIPv6: () => Le });
10612
+ }), Eo = {};
10613
+ Wt(Eo, { Server: () => Le, Socket: () => Le, Stream: () => Le, _createServerHandle: () => Le, _normalizeArgs: () => Le, _setSimultaneousAccepts: () => Le, connect: () => Le, createConnection: () => Le, createServer: () => Le, default: () => El, isIP: () => Le, isIPv4: () => Le, isIPv6: () => Le });
10614
10614
  function Le() {
10615
10615
  throw new Error("Node.js net module is not supported by JSPM core outside of Node.js");
10616
10616
  }
@@ -10624,7 +10624,7 @@ var El, Al = Ge(() => {
10624
10624
  return a && a.__esModule ? a : { default: a };
10625
10625
  };
10626
10626
  Object.defineProperty(s, "__esModule", { value: !0 });
10627
- var t = e((Al(), Me(So))), r = e(pt()), o = e(Il()), n = (0, r.default)("mqttjs:tcp"), i = (a, l) => {
10627
+ var t = e((Al(), Me(Eo))), r = e(pt()), o = e(Il()), n = (0, r.default)("mqttjs:tcp"), i = (a, l) => {
10628
10628
  if (l.port = l.port || 1883, l.hostname = l.hostname || l.host || "localhost", l.socksProxy) return (0, o.default)(l.hostname, l.port, l.socksProxy, { timeout: l.socksTimeout });
10629
10629
  let { port: c, path: u } = l, h = l.hostname;
10630
10630
  return n("port %d and host %s", c, h), t.default.createConnection({ port: c, host: h, path: u });
@@ -10640,7 +10640,7 @@ var Cl, sh = Ge(() => {
10640
10640
  return c && c.__esModule ? c : { default: c };
10641
10641
  };
10642
10642
  Object.defineProperty(s, "__esModule", { value: !0 });
10643
- var t = (sh(), Me(Tl)), r = e((Al(), Me(So))), o = e(pt()), n = e(Il()), i = (0, o.default)("mqttjs:tls");
10643
+ var t = (sh(), Me(Tl)), r = e((Al(), Me(Eo))), o = e(pt()), n = e(Il()), i = (0, o.default)("mqttjs:tls");
10644
10644
  function a(c) {
10645
10645
  let { host: u, port: h, socksProxy: p, ...g } = c;
10646
10646
  if (p !== void 0) {
@@ -10663,7 +10663,7 @@ var Cl, sh = Ge(() => {
10663
10663
  s.default = l;
10664
10664
  }), Fs = pe((s) => {
10665
10665
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
10666
- var e = (Fe(), Me(De)), t = Nt(), r = xo(), o, n, i;
10666
+ var e = (Fe(), Me(De)), t = Nt(), r = So(), o, n, i;
10667
10667
  function a() {
10668
10668
  let p = new t.Transform();
10669
10669
  return p._write = (g, f, b) => {
@@ -10718,7 +10718,7 @@ var Cl, sh = Ge(() => {
10718
10718
  s.default = h;
10719
10719
  }), $s = pe((s) => {
10720
10720
  le(), ue(), ce(), Object.defineProperty(s, "__esModule", { value: !0 });
10721
- var e = (Fe(), Me(De)), t = Nt(), r = xo(), o, n, i, a = !1;
10721
+ var e = (Fe(), Me(De)), t = Nt(), r = So(), o, n, i, a = !1;
10722
10722
  function l() {
10723
10723
  let g = new t.Transform();
10724
10724
  return g._write = (f, b, y) => {
@@ -10777,7 +10777,7 @@ var Cl, sh = Ge(() => {
10777
10777
  return h && h.__esModule ? h : { default: h };
10778
10778
  };
10779
10779
  Object.defineProperty(s, "__esModule", { value: !0 }), s.connectAsync = u;
10780
- var t = e(pt()), r = e((ih(), Me(il))), o = e(vi()), n = e(Yr());
10780
+ var t = e(pt()), r = e((ih(), Me(il))), o = e(wi()), n = e(Jr());
10781
10781
  typeof Re?.nextTick != "function" && (Re.nextTick = setImmediate);
10782
10782
  var i = (0, t.default)("mqttjs"), a = null;
10783
10783
  function l(h) {
@@ -10811,7 +10811,7 @@ var Cl, sh = Ge(() => {
10811
10811
  throw new Error(`Unknown protocol for secure connection: "${p.protocol}"!`);
10812
10812
  }
10813
10813
  } else throw new Error("Missing secure protocol key");
10814
- if (a || (a = {}, !n.default && !p.forceNativeWebSocket ? (a.ws = hr().streamBuilder, a.wss = hr().streamBuilder, a.mqtt = Bs().default, a.tcp = Bs().default, a.ssl = Ds().default, a.tls = a.ssl, a.mqtts = Ds().default) : (a.ws = hr().browserStreamBuilder, a.wss = hr().browserStreamBuilder, a.wx = Fs().default, a.wxs = Fs().default, a.ali = $s().default, a.alis = $s().default)), !a[p.protocol]) {
10814
+ if (a || (a = {}, !n.default && !p.forceNativeWebSocket ? (a.ws = dr().streamBuilder, a.wss = dr().streamBuilder, a.mqtt = Bs().default, a.tcp = Bs().default, a.ssl = Ds().default, a.tls = a.ssl, a.mqtts = Ds().default) : (a.ws = dr().browserStreamBuilder, a.wss = dr().browserStreamBuilder, a.wx = Fs().default, a.wxs = Fs().default, a.ali = $s().default, a.alis = $s().default)), !a[p.protocol]) {
10815
10815
  let b = ["mqtts", "wss"].indexOf(p.protocol) !== -1;
10816
10816
  p.protocol = ["mqtt", "mqtts", "ws", "wss", "wx", "wxs", "ali", "alis"].filter((y, w) => b && w % 2 === 0 ? !1 : typeof a[y] == "function")[0];
10817
10817
  }
@@ -10881,7 +10881,7 @@ var Cl, sh = Ge(() => {
10881
10881
  return g && g.__esModule ? g : { default: g };
10882
10882
  };
10883
10883
  Object.defineProperty(s, "__esModule", { value: !0 }), s.ReasonCodes = s.KeepaliveManager = s.UniqueMessageIdProvider = s.DefaultMessageIdProvider = s.Store = s.MqttClient = s.connectAsync = s.connect = s.Client = void 0;
10884
- var i = n(vi());
10884
+ var i = n(wi());
10885
10885
  s.MqttClient = i.default;
10886
10886
  var a = n(za());
10887
10887
  s.DefaultMessageIdProvider = a.default;
@@ -10894,8 +10894,8 @@ var Cl, sh = Ge(() => {
10894
10894
  return u.connectAsync;
10895
10895
  } });
10896
10896
  var h = n(Xa());
10897
- s.KeepaliveManager = h.default, s.Client = i.default, o(vi(), s), o(Vt(), s), o(Ia(), s);
10898
- var p = Kr();
10897
+ s.KeepaliveManager = h.default, s.Client = i.default, o(wi(), s), o(Vt(), s), o(Ia(), s);
10898
+ var p = Gr();
10899
10899
  Object.defineProperty(s, "ReasonCodes", { enumerable: !0, get: function() {
10900
10900
  return p.ReasonCodes;
10901
10901
  } });
@@ -11828,7 +11828,7 @@ function kh(s, e, t) {
11828
11828
  const o = s.type;
11829
11829
  return o && o.trim().length > 0 ? o : r && Ws[r] ? Ws[r] : t;
11830
11830
  }
11831
- function tn(s, e) {
11831
+ function rn(s, e) {
11832
11832
  return s.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
11833
11833
  }
11834
11834
  function xh(s, e) {
@@ -11864,7 +11864,7 @@ function Sh(s) {
11864
11864
  const w = c.includes("?") ? "&" : "?";
11865
11865
  c = `${c}${w}contentType={contentType}`;
11866
11866
  }
11867
- const u = tn(c, i), h = await fetch(u, {
11867
+ const u = rn(c, i), h = await fetch(u, {
11868
11868
  method: s.signMethod ?? "GET",
11869
11869
  headers: l
11870
11870
  });
@@ -11883,7 +11883,7 @@ function Sh(s) {
11883
11883
  }
11884
11884
  if (s.registerEndpoint) {
11885
11885
  const w = JSON.parse(
11886
- tn(JSON.stringify(s.registerBody ?? {}), i)
11886
+ rn(JSON.stringify(s.registerBody ?? {}), i)
11887
11887
  ), m = await fetch(s.registerEndpoint, {
11888
11888
  method: "POST",
11889
11889
  headers: { ...l, "content-type": "application/json" },
@@ -11895,7 +11895,7 @@ function Sh(s) {
11895
11895
  }
11896
11896
  }
11897
11897
  return {
11898
- url: s.viewerTemplate ? tn(s.viewerTemplate, i) : g.split("?")[0],
11898
+ url: s.viewerTemplate ? rn(s.viewerTemplate, i) : g.split("?")[0],
11899
11899
  fileName: o,
11900
11900
  contentType: n,
11901
11901
  byteSize: t.size,
@@ -12095,14 +12095,14 @@ const Ih = "^[A-Z]{4}[0-9]{5}[A-Z]$", Th = "^[A-Z]{4}0[A-Z0-9]{6}$", Ch = "^[0-9
12095
12095
  ];
12096
12096
  function Nh(s, e) {
12097
12097
  const t = s || {}, r = {
12098
- userId: Jr(e.userId),
12098
+ userId: lr(e.userId),
12099
12099
  assessmentYear: e.assessmentYear,
12100
12100
  isRevised: e.isRevised || "N"
12101
12101
  };
12102
- r.us80cAmount = Ce(t.us80cAmount), r.us80dForSelfAndFamilyAmount = Ce(t.us80dForSelfAndFamilyAmount), r.us80dForParentsAmount = Ce(t.us80dForParentsAmount), r.hasParentOverSixty = ao(t.hasParentOverSixty), r.preventiveHealthCheckUp = Ce(t.preventiveHealthCheckUp), r.medicalExpenditure = Ce(t.medicalExpenditure), r.savingBankInterest = Ce(t.savingBankInterest), r.fdInterest = Ce(t.fdInterest), r.dividend = Ce(t.dividend), r.anyOtherIncome = Ce(t.anyOtherIncome), r.cryptoSellValue = Ce(t.cryptoSellPrice), r.cryptoPurchaseAmount = Ce(t.cryptoPurchasePrice), r.vdaPurchaseCost = Ce(t.cryptoPurchasePrice), r.businessName = Pe(t.businessName), r.businessAnnualTurnOver = Ce(t.grossReceipts), r.businessNetProfit = Ce(t.netProfit), r.agricultureDetails = {
12103
- income: Ce(t.agricultureIncome)
12104
- }, r.exemptIncomeAmount = Ce(t.exemptIncome), r.exemptIncomeNature = Pe(t.exemptIncomeNature), Ce(t.exemptIncome) !== void 0 && (r.exemptIncomes = [
12105
- { name: Pe(t.exemptIncomeNature) ?? "Exempt income", value: String(Ce(t.exemptIncome)) }
12102
+ r.us80cAmount = Ie(t.us80cAmount), r.us80dForSelfAndFamilyAmount = Ie(t.us80dForSelfAndFamilyAmount), r.us80dForParentsAmount = Ie(t.us80dForParentsAmount), r.hasParentOverSixty = lo(t.hasParentOverSixty), r.preventiveHealthCheckUp = Ie(t.preventiveHealthCheckUp), r.medicalExpenditure = Ie(t.medicalExpenditure), r.savingBankInterest = Ie(t.savingBankInterest), r.fdInterest = Ie(t.fdInterest), r.dividend = Ie(t.dividend), r.anyOtherIncome = Ie(t.anyOtherIncome), r.cryptoSellValue = Ie(t.cryptoSellPrice), r.cryptoPurchaseAmount = Ie(t.cryptoPurchasePrice), r.vdaPurchaseCost = Ie(t.cryptoPurchasePrice), r.businessName = Pe(t.businessName), r.businessAnnualTurnOver = Ie(t.grossReceipts), r.businessNetProfit = Ie(t.netProfit), r.agricultureDetails = {
12103
+ income: Ie(t.agricultureIncome)
12104
+ }, r.exemptIncomeAmount = Ie(t.exemptIncome), r.exemptIncomeNature = Pe(t.exemptIncomeNature), Ie(t.exemptIncome) !== void 0 && (r.exemptIncomes = [
12105
+ { name: Pe(t.exemptIncomeNature) ?? "Exempt income", value: String(Ie(t.exemptIncome)) }
12106
12106
  ]), r.bankAccountNumber = Pe(t.bankAccountNumber), r.bankIfscCode = Pe(t.bankIfscCode), (Pe(t.bankAccountNumber) || Pe(t.bankIfscCode)) && (r.bankDetails = [
12107
12107
  { bankAccountNumber: Pe(t.bankAccountNumber), bankIfscCode: Pe(t.bankIfscCode) }
12108
12108
  ]);
@@ -12111,23 +12111,23 @@ function Nh(s, e) {
12111
12111
  flatNo: Pe(t.immovableAssetFlatNo),
12112
12112
  area: Pe(t.immovableAssetArea),
12113
12113
  pinCode: Pe(t.immovableAssetPincode),
12114
- amount: Ce(t.immovableAssetCost)
12114
+ amount: Ie(t.immovableAssetCost)
12115
12115
  };
12116
12116
  Object.values(o).some((a) => a !== void 0) && (r.immovableAsset = [o]);
12117
- const n = rn(t.hpDetails, jh);
12117
+ const n = nn(t.hpDetails, jh);
12118
12118
  n.length && (r.hpDetails = n);
12119
- const i = rn(t.salaryDetails, Uh);
12119
+ const i = nn(t.salaryDetails, Uh);
12120
12120
  if (i.length) {
12121
12121
  r.salaryIncome = i;
12122
- const a = rn(t.salaryDetails, (c) => ({
12123
- grossSalary: Ce(c.grossSalary),
12122
+ const a = nn(t.salaryDetails, (c) => ({
12123
+ grossSalary: Ie(c.grossSalary),
12124
12124
  employerName: Pe(c.employerName)
12125
12125
  }));
12126
12126
  a.length && (r.salary = a);
12127
12127
  const l = Ml(t.salaryDetails)[0] ?? {};
12128
- r.hraAmount = Ce(l.hraReceived), r.leaveTravelAllowanceAmount = Ce(l.leaveTravelAllowance), r.leaveEncashmentAllowanceAmount = Ce(l.leaveEncashment), r.anyOtherAllowanceAmount = Ce(l.anyOtherAllowance), r.salaryIncomeFlag = !0;
12128
+ r.hraAmount = Ie(l.hraReceived), r.leaveTravelAllowanceAmount = Ie(l.leaveTravelAllowance), r.leaveEncashmentAllowanceAmount = Ie(l.leaveEncashment), r.anyOtherAllowanceAmount = Ie(l.anyOtherAllowance), r.salaryIncomeFlag = !0;
12129
12129
  }
12130
- return Hr(r);
12130
+ return Wr(r);
12131
12131
  }
12132
12132
  function jh(s) {
12133
12133
  const e = {
@@ -12135,21 +12135,21 @@ function jh(s) {
12135
12135
  loanTakenFrom: Pe(s.loanTakenFrom),
12136
12136
  bankOrInstituteName: Pe(s.lenderName),
12137
12137
  loanAccountNo: Pe(s.loanAccountNumber),
12138
- loanSanctionDate: $h(s.sanctionDate),
12139
- totalLoanAmount: Ce(s.totalLoanAmount),
12140
- interest: Ce(s.homeLoanInterest)
12138
+ loanSanctionDate: qh(s.sanctionDate),
12139
+ totalLoanAmount: Ie(s.totalLoanAmount),
12140
+ interest: Ie(s.homeLoanInterest)
12141
12141
  }, t = Object.entries(e).some(([r, o]) => r !== "loanType" && o !== void 0);
12142
12142
  return {
12143
12143
  typeOfHouseProperty: Pe(s.typeOfHouseProperty),
12144
- hasRentalIncome: s.typeOfHouseProperty === "LOP" ? !0 : ao(s.hasRentalIncome),
12145
- homeLoanInterest: Ce(s.homeLoanInterest),
12146
- homeLoanPrinciple: Ce(s.homeLoanPrinciple),
12144
+ hasRentalIncome: s.typeOfHouseProperty === "LOP" ? !0 : lo(s.hasRentalIncome),
12145
+ homeLoanInterest: Ie(s.homeLoanInterest),
12146
+ homeLoanPrinciple: Ie(s.homeLoanPrinciple),
12147
12147
  housePropertyAddress: Pe(s.housePropertyAddress),
12148
12148
  housePropertyPincode: Pe(s.housePropertyPincode),
12149
- rentalIncome: Ce(s.rentalIncome),
12149
+ rentalIncome: Ie(s.rentalIncome),
12150
12150
  nameOfTenant: Pe(s.nameOfTenant),
12151
- propertyTax: Ce(s.propertyTax),
12152
- hasCoOwnedProperty: ao(s.hasCoOwnedProperty),
12151
+ propertyTax: Ie(s.propertyTax),
12152
+ hasCoOwnedProperty: lo(s.hasCoOwnedProperty),
12153
12153
  coOwnerName: Pe(s.coOwnerName),
12154
12154
  coOwnerPan: Pe(s.coOwnerPan),
12155
12155
  coOwnerShare: Pe(s.coOwnerShare),
@@ -12158,24 +12158,24 @@ function jh(s) {
12158
12158
  }
12159
12159
  function Uh(s) {
12160
12160
  return {
12161
- grossSalaryIncome: Ce(s.grossSalary),
12162
- salary: Ce(s.basicSalary),
12161
+ grossSalaryIncome: Ie(s.grossSalary),
12162
+ salary: Ie(s.basicSalary),
12163
12163
  employer: {
12164
12164
  employerName: Pe(s.employerName),
12165
12165
  employerTan: Pe(s.employerTan)
12166
12166
  },
12167
12167
  allowance: {
12168
- hraAmount: Ce(s.hraReceived),
12169
- leaveTravelAllowanceAmount: Ce(s.leaveTravelAllowance),
12170
- leaveEncashmentAllowanceAmount: Ce(s.leaveEncashment),
12171
- anyOtherAllowanceAmount: Ce(s.anyOtherAllowance)
12168
+ hraAmount: Ie(s.hraReceived),
12169
+ leaveTravelAllowanceAmount: Ie(s.leaveTravelAllowance),
12170
+ leaveEncashmentAllowanceAmount: Ie(s.leaveEncashment),
12171
+ anyOtherAllowanceAmount: Ie(s.anyOtherAllowance)
12172
12172
  }
12173
12173
  };
12174
12174
  }
12175
12175
  function Bh(s, e) {
12176
12176
  const t = [];
12177
12177
  for (const r of s) {
12178
- const o = Pe(r.employerName), n = Pe(r.employerTan), i = Ce(r.grossSalary), a = Ce(r.basicSalary), l = Ce(r.totalTdsDeposited);
12178
+ const o = Pe(r.employerName), n = Pe(r.employerTan), i = Ie(r.grossSalary), a = Ie(r.basicSalary), l = Ie(r.totalTdsDeposited);
12179
12179
  o === void 0 && n === void 0 && i === void 0 && a === void 0 && l === void 0 || t.push({
12180
12180
  grossSalary: i ?? 0,
12181
12181
  basicSalary: a ?? 0,
@@ -12185,7 +12185,7 @@ function Bh(s, e) {
12185
12185
  });
12186
12186
  }
12187
12187
  return t.length ? {
12188
- userId: Jr(e.userId),
12188
+ userId: lr(e.userId),
12189
12189
  assessmentYear: e.assessmentYear,
12190
12190
  forceUpdate: !0,
12191
12191
  salary: t
@@ -12194,7 +12194,7 @@ function Bh(s, e) {
12194
12194
  function Dh(s, e) {
12195
12195
  const t = Pe(s.aadhaarNumber), r = Pe(s.bankAccountNumber), o = Pe(s.bankIfscCode);
12196
12196
  return t === void 0 && r === void 0 && o === void 0 ? null : {
12197
- userId: Jr(e.userId),
12197
+ userId: lr(e.userId),
12198
12198
  assessmentYear: e.assessmentYear,
12199
12199
  aadhaarNumber: t ?? "",
12200
12200
  bankDetails: [{ bankAccountNumber: r, bankIfscCode: o }]
@@ -12202,20 +12202,36 @@ function Dh(s, e) {
12202
12202
  }
12203
12203
  function Fh(s, e) {
12204
12204
  return {
12205
- userId: Jr(e.userId),
12205
+ userId: lr(e.userId),
12206
+ assessmentYear: e.assessmentYear,
12207
+ savingBankInterest: Ie(s.savingBankInterest) ?? 0,
12208
+ fdInterest: Ie(s.fdInterest) ?? 0,
12209
+ dividend: Ie(s.dividend) ?? 0,
12210
+ anyOtherIncome: Ie(s.anyOtherIncome) ?? 0
12211
+ };
12212
+ }
12213
+ function $h(s, e) {
12214
+ const t = Pe(s.businessName), r = Pe(s.businessNatureOfWork), o = Ie(s.grossReceipts), n = Ie(s.netProfit);
12215
+ return t === void 0 && r === void 0 && o === void 0 && n === void 0 ? null : {
12216
+ userId: lr(e.userId),
12206
12217
  assessmentYear: e.assessmentYear,
12207
- savingBankInterest: Ce(s.savingBankInterest) ?? 0,
12208
- fdInterest: Ce(s.fdInterest) ?? 0,
12209
- dividend: Ce(s.dividend) ?? 0,
12210
- anyOtherIncome: Ce(s.anyOtherIncome) ?? 0
12218
+ presumptiveIncome: [
12219
+ {
12220
+ businessType: t ?? "",
12221
+ businessCode: r ?? "",
12222
+ cashAmount: 0,
12223
+ bankAmount: o ?? 0,
12224
+ netProfit: n ?? 0
12225
+ }
12226
+ ]
12211
12227
  };
12212
12228
  }
12213
- function Jr(s) {
12229
+ function lr(s) {
12214
12230
  if (s === void 0 || s === "") return;
12215
12231
  const e = Number(s);
12216
12232
  return Number.isFinite(e) && String(e) === String(s) ? e : s;
12217
12233
  }
12218
- function Ce(s) {
12234
+ function Ie(s) {
12219
12235
  if (s == null || s === "") return;
12220
12236
  const e = typeof s == "number" ? s : Number(s);
12221
12237
  return Number.isFinite(e) ? e : void 0;
@@ -12225,10 +12241,10 @@ function Pe(s) {
12225
12241
  const e = String(s).trim();
12226
12242
  return e === "" ? void 0 : e;
12227
12243
  }
12228
- function ao(s) {
12244
+ function lo(s) {
12229
12245
  return s === !0 || s === !1 ? s : void 0;
12230
12246
  }
12231
- function $h(s) {
12247
+ function qh(s) {
12232
12248
  const e = Pe(s);
12233
12249
  if (e)
12234
12250
  return e.includes("T") ? e : /^\d{4}-\d{2}-\d{2}$/.test(e) ? `${e}T00:00:00Z` : e;
@@ -12236,28 +12252,28 @@ function $h(s) {
12236
12252
  function Ml(s) {
12237
12253
  return Array.isArray(s) ? s.filter((e) => e && typeof e == "object") : [];
12238
12254
  }
12239
- function rn(s, e) {
12240
- return Ml(s).map((t) => Hr(e(t))).filter((t) => t !== void 0);
12255
+ function nn(s, e) {
12256
+ return Ml(s).map((t) => Wr(e(t))).filter((t) => t !== void 0);
12241
12257
  }
12242
- function Hr(s) {
12258
+ function Wr(s) {
12243
12259
  if (Array.isArray(s)) {
12244
- const e = s.map(Hr).filter((t) => t !== void 0);
12260
+ const e = s.map(Wr).filter((t) => t !== void 0);
12245
12261
  return e.length ? e : void 0;
12246
12262
  }
12247
12263
  if (s && typeof s == "object") {
12248
12264
  const e = {};
12249
12265
  for (const [t, r] of Object.entries(s)) {
12250
- const o = Hr(r);
12266
+ const o = Wr(r);
12251
12267
  o !== void 0 && (e[t] = o);
12252
12268
  }
12253
12269
  return Object.keys(e).length ? e : void 0;
12254
12270
  }
12255
12271
  return s;
12256
12272
  }
12257
- function qh(s) {
12273
+ function Hh(s) {
12258
12274
  const e = s && typeof s == "object" ? s : {}, t = {}, r = Je(e.employers), o = Je(e.taxPaid?.onSalary);
12259
12275
  r.length && (t.salaryDetails = r.map((l) => {
12260
- const c = nn(l.salary), u = nn(l.perquisites), h = nn(l.profitsInLieuOfSalaryType), p = c + u + h, g = Wh(l.allowance);
12276
+ const c = on(l.salary), u = on(l.perquisites), h = on(l.profitsInLieuOfSalaryType), p = c + u + h, g = zh(l.allowance);
12261
12277
  return {
12262
12278
  employerName: Ne(l.employerName),
12263
12279
  employerTan: Ne(l.employerTAN),
@@ -12268,7 +12284,7 @@ function qh(s) {
12268
12284
  leaveTravelAllowance: g.lta,
12269
12285
  leaveEncashment: g.leaveEncashment,
12270
12286
  anyOtherAllowance: g.other,
12271
- totalTdsDeposited: Hh(l, o, r) ?? Ue(l.totalTdsDeposited)
12287
+ totalTdsDeposited: Wh(l, o, r) ?? Ue(l.totalTdsDeposited)
12272
12288
  };
12273
12289
  }));
12274
12290
  const n = Je(e.houseProperties);
@@ -12294,20 +12310,20 @@ function qh(s) {
12294
12310
  coOwnerPan: Ne(y?.panNumber),
12295
12311
  coOwnerShare: Ue(y?.share)?.toString()
12296
12312
  };
12297
- })), t.us80cAmount = dr(Je(e.deductionUS80CDetails).map((l) => Ue(l.amount))), t.us80dForSelfAndFamilyAmount = dr(
12313
+ })), t.us80cAmount = fr(Je(e.deductionUS80CDetails).map((l) => Ue(l.amount))), t.us80dForSelfAndFamilyAmount = fr(
12298
12314
  Je(e.deductionUS80DDetails).map((l) => Ue(l.healthInsuranceAmount))
12299
- ), t.anyOtherIncome = dr(
12315
+ ), t.anyOtherIncome = fr(
12300
12316
  Je(e.incomes).filter((l) => Ne(l.incomeType) !== "SALARY" && Ne(l.incomeType) !== "BUSINESS").map((l) => Ue(l.amount))
12301
- ), t.dividend = dr(Je(e.dividendIncomes).map((l) => Ue(l.income)));
12317
+ ), t.dividend = fr(Je(e.dividendIncomes).map((l) => Ue(l.income)));
12302
12318
  const i = e.business;
12303
12319
  i && (t.businessName = Ne(i.businessName), t.grossReceipts = Ue(i.grossReceipts), t.netProfit = Ue(i.netProfit)), t.agricultureIncome = Ue(e.agriculturalDetails?.income), t.aadhaarNumber = Ne(e.aadharNumber);
12304
12320
  const a = Je(e.bankDetails)[0];
12305
12321
  return a && (t.bankAccountNumber = Ne(a.accountNumber), t.bankIfscCode = Ne(a.ifsCode)), Rl(t);
12306
12322
  }
12307
- function nn(s) {
12323
+ function on(s) {
12308
12324
  return Je(s).reduce((e, t) => e + (Ue(t.taxableAmount) ?? 0), 0);
12309
12325
  }
12310
- function Hh(s, e, t) {
12326
+ function Wh(s, e, t) {
12311
12327
  if (!e.length) return;
12312
12328
  const r = Ne(s.employerTAN)?.trim().toUpperCase();
12313
12329
  if (r) {
@@ -12322,7 +12338,7 @@ function Hh(s, e, t) {
12322
12338
  if (t.length === 1 && e.length === 1)
12323
12339
  return Ue(e[0].totalTdsDeposited);
12324
12340
  }
12325
- function Wh(s) {
12341
+ function zh(s) {
12326
12342
  const e = Je(s);
12327
12343
  if (!e.length) return {};
12328
12344
  let t, r, o, n;
@@ -12346,7 +12362,7 @@ function Wh(s) {
12346
12362
  }
12347
12363
  return { hra: t, lta: r, leaveEncashment: o, other: n };
12348
12364
  }
12349
- function dr(s) {
12365
+ function fr(s) {
12350
12366
  let e = 0, t = !1;
12351
12367
  for (const r of s)
12352
12368
  r != null && (e += r, t = !0);
@@ -12370,30 +12386,30 @@ function Rl(s) {
12370
12386
  r !== void 0 && (Array.isArray(r) ? e[t] = r.map((o) => o && typeof o == "object" ? Rl(o) : o) : e[t] = r);
12371
12387
  return e;
12372
12388
  }
12373
- function on() {
12389
+ function sn() {
12374
12390
  if (typeof window > "u") return null;
12375
12391
  const s = window, e = s.__aikaara_runtime__;
12376
12392
  if (!e || typeof e.getChatJwt != "function")
12377
12393
  return console.warn(
12378
12394
  "[smart-edit] API disabled: window.__aikaara_runtime__.getChatJwt is missing — the chat was not mounted via the SDK mountFromSlug path."
12379
12395
  ), null;
12380
- const t = s.__aikaara_descriptor__ ?? {}, r = Jh(t);
12396
+ const t = s.__aikaara_descriptor__ ?? {}, r = Xh(t);
12381
12397
  if (!r)
12382
12398
  return console.warn(
12383
12399
  "[smart-edit] API disabled: could not resolve a TaxBuddy API host from the descriptor (cloud / upload / pan / leader endpoints)."
12384
12400
  ), null;
12385
- const o = Qh(e.slug), n = typeof o?.tenantJwt == "string" ? o.tenantJwt : "", i = e.getChatJwt, a = async () => n || await i(), l = (o && o.userId != null && o.userId !== "" ? String(o.userId) : Zh(e.identity)) || void 0;
12401
+ const o = Zh(e.slug), n = typeof o?.tenantJwt == "string" ? o.tenantJwt : "", i = e.getChatJwt, a = async () => n || await i(), l = (o && o.userId != null && o.userId !== "" ? String(o.userId) : td(e.identity)) || void 0;
12386
12402
  return console.info("[smart-edit] API config — base:", r, "· userId:", l ?? "(none)"), {
12387
12403
  baseUrl: r,
12388
12404
  getToken: a,
12389
- headers: Xh(t.auth?.headers),
12390
- assessmentYear: t.itr?.assessmentYear || ed(),
12405
+ headers: ed(t.auth?.headers),
12406
+ assessmentYear: t.itr?.assessmentYear || rd(),
12391
12407
  isRevised: "N",
12392
12408
  userId: l,
12393
12409
  submitUrl: t.itr?.automationSubmitUrl || void 0
12394
12410
  };
12395
12411
  }
12396
- async function zh(s) {
12412
+ async function Vh(s) {
12397
12413
  const e = await s.getToken(), t = s.userId;
12398
12414
  if (!t)
12399
12415
  throw new Error(
@@ -12411,9 +12427,9 @@ async function zh(s) {
12411
12427
  const o = await r.text().catch(() => "");
12412
12428
  throw new Error(`[smart-edit] GET /itr/latest-itr → ${r.status} ${o.slice(0, 200)}`);
12413
12429
  }
12414
- return qh(Ao(await r.json().catch(() => ({}))));
12430
+ return Hh(Ao(await r.json().catch(() => ({}))));
12415
12431
  }
12416
- async function Vh(s, e) {
12432
+ async function Kh(s, e) {
12417
12433
  const t = await s.getToken(), r = s.userId, o = Nh(e, {
12418
12434
  userId: r,
12419
12435
  assessmentYear: s.assessmentYear,
@@ -12436,16 +12452,19 @@ async function Vh(s, e) {
12436
12452
  }
12437
12453
  return Ao(await a.json().catch(() => ({})));
12438
12454
  }
12439
- async function Kh(s, e) {
12440
- return Eo(s, `${s.baseUrl}/itr/v1/automation/salary`, e);
12441
- }
12442
12455
  async function Gh(s, e) {
12443
- return Eo(s, `${s.baseUrl}/itr/v1/automation/bank-aadhaar`, e);
12456
+ return Qr(s, `${s.baseUrl}/itr/v1/automation/salary`, e);
12444
12457
  }
12445
12458
  async function Yh(s, e) {
12446
- return Eo(s, s.submitUrl || `${s.baseUrl}/itr/v1/automation/data`, e);
12459
+ return Qr(s, `${s.baseUrl}/itr/v1/automation/bank-aadhaar`, e);
12460
+ }
12461
+ async function Jh(s, e) {
12462
+ return Qr(s, s.submitUrl || `${s.baseUrl}/itr/v1/automation/data`, e);
12447
12463
  }
12448
- async function Eo(s, e, t) {
12464
+ async function Qh(s, e) {
12465
+ return Qr(s, s.submitUrl || `${s.baseUrl}/itr/v1/automation/data`, e);
12466
+ }
12467
+ async function Qr(s, e, t) {
12449
12468
  const o = {
12450
12469
  accept: "application/json",
12451
12470
  "content-type": "application/json",
@@ -12460,7 +12479,7 @@ async function Eo(s, e, t) {
12460
12479
  }
12461
12480
  return Ao(await n.json().catch(() => ({})));
12462
12481
  }
12463
- function Jh(s) {
12482
+ function Xh(s) {
12464
12483
  const e = [
12465
12484
  s.cloud?.listEndpoint,
12466
12485
  s.cloud?.downloadEndpoint,
@@ -12478,7 +12497,7 @@ function Jh(s) {
12478
12497
  }
12479
12498
  return null;
12480
12499
  }
12481
- function Qh(s) {
12500
+ function Zh(s) {
12482
12501
  if (!s || typeof localStorage > "u") return null;
12483
12502
  try {
12484
12503
  const e = localStorage.getItem(`aikaara_sso:${s}`);
@@ -12489,7 +12508,7 @@ function Qh(s) {
12489
12508
  return null;
12490
12509
  }
12491
12510
  }
12492
- function Xh(s) {
12511
+ function ed(s) {
12493
12512
  const e = {};
12494
12513
  if (!s) return e;
12495
12514
  const t = /^(authorization|content-type|accept)$/i;
@@ -12497,7 +12516,7 @@ function Xh(s) {
12497
12516
  !t.test(r) && typeof o == "string" && (e[r] = o);
12498
12517
  return e;
12499
12518
  }
12500
- function Zh(s) {
12519
+ function td(s) {
12501
12520
  if (!s) return;
12502
12521
  const e = s.userId ?? s.id ?? s.ext_uid ?? s.extUid;
12503
12522
  return e == null || e === "" ? void 0 : String(e);
@@ -12509,11 +12528,11 @@ function Ao(s) {
12509
12528
  }
12510
12529
  return {};
12511
12530
  }
12512
- function ed() {
12531
+ function rd() {
12513
12532
  const s = /* @__PURE__ */ new Date(), e = s.getMonth() >= 3 ? s.getFullYear() : s.getFullYear() - 1;
12514
12533
  return `${e}-${e + 1}`;
12515
12534
  }
12516
- class td {
12535
+ class nd {
12517
12536
  client;
12518
12537
  panel;
12519
12538
  bubble;
@@ -12653,10 +12672,10 @@ class td {
12653
12672
  async openSmartEdit() {
12654
12673
  const e = this.ensureSmartEditModal();
12655
12674
  e.open({ schemas: Lh, data: {} });
12656
- const t = on();
12675
+ const t = sn();
12657
12676
  if (!(!t || !t.baseUrl))
12658
12677
  try {
12659
- const r = await zh(t);
12678
+ const r = await Vh(t);
12660
12679
  e.setData(r);
12661
12680
  } catch (r) {
12662
12681
  console.warn("[smart-edit] fetch failed", r), this.errorBanner.show(
@@ -12684,17 +12703,22 @@ class td {
12684
12703
  * full-record "Save & Recalculate".
12685
12704
  */
12686
12705
  async handleSectionSubmit(e, t) {
12687
- const r = on();
12706
+ const r = sn();
12688
12707
  if (!r) return;
12689
12708
  const o = { userId: r.userId, assessmentYear: r.assessmentYear };
12690
12709
  try {
12691
12710
  if (e === "salary-hra") {
12692
12711
  const n = Array.isArray(t.salaryDetails) ? t.salaryDetails : [], i = Bh(n, o);
12693
- i && await Kh(r, i);
12712
+ i && await Gh(r, i);
12694
12713
  } else if (e === "bank-details") {
12695
12714
  const n = Dh(t, o);
12696
- n && await Gh(r, n);
12697
- } else e === "other-sources" && await Yh(r, Fh(t, o));
12715
+ n && await Yh(r, n);
12716
+ } else if (e === "other-sources")
12717
+ await Jh(r, Fh(t, o));
12718
+ else if (e === "business-profession") {
12719
+ const n = $h(t, o);
12720
+ n && await Qh(r, n);
12721
+ }
12698
12722
  } catch (n) {
12699
12723
  console.warn("[smart-edit] section save failed", e, n), this.errorBanner.show("Failed to save. Please try again.", 4e3);
12700
12724
  }
@@ -12707,13 +12731,13 @@ class td {
12707
12731
  */
12708
12732
  async handleSmartEditSave(e) {
12709
12733
  console.info("[smart-edit] Save & Recalculate — persisting record");
12710
- const t = on();
12734
+ const t = sn();
12711
12735
  if (!t) {
12712
12736
  console.warn("[smart-edit] save skipped — no API config (see the warning above for why)");
12713
12737
  return;
12714
12738
  }
12715
12739
  try {
12716
- await Vh(t, e);
12740
+ await Kh(t, e);
12717
12741
  } catch (r) {
12718
12742
  console.warn("[smart-edit] save failed", r), this.errorBanner.show(
12719
12743
  "Failed to save your ITR details. Please try again.",
@@ -12729,7 +12753,7 @@ class td {
12729
12753
  }, 200)));
12730
12754
  }
12731
12755
  }
12732
- class rd extends HTMLElement {
12756
+ class id extends HTMLElement {
12733
12757
  shadow;
12734
12758
  controller = null;
12735
12759
  _config = {};
@@ -12998,7 +13022,7 @@ class rd extends HTMLElement {
12998
13022
  }
12999
13023
  async initController() {
13000
13024
  const e = this.getConfig(), t = e.transport ?? "aikaara";
13001
- (t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new td(e, this.shadow, {
13025
+ (t === "aikaara" || t === "dual") && (!e.baseUrl || !e.userToken) || (this.controller?.disconnect(), this.controller = new nd(e, this.shadow, {
13002
13026
  uploadAdapter: this._config.uploadAdapter,
13003
13027
  historyAdapter: this._config.historyAdapter
13004
13028
  }), await this.controller.connect());
@@ -13018,7 +13042,7 @@ class rd extends HTMLElement {
13018
13042
  }
13019
13043
  }
13020
13044
  }
13021
- class nd extends HTMLElement {
13045
+ class od extends HTMLElement {
13022
13046
  shadow;
13023
13047
  constructor() {
13024
13048
  super(), this.shadow = this.attachShadow({ mode: "open" });
@@ -13071,12 +13095,12 @@ class nd extends HTMLElement {
13071
13095
  t && (t.innerHTML = e);
13072
13096
  }
13073
13097
  }
13074
- const id = [
13098
+ const sd = [
13075
13099
  { id: "edit-itr", label: "Edit ITR Details", icon: "edit" }
13076
13100
  ];
13077
- class od extends HTMLElement {
13101
+ class ad extends HTMLElement {
13078
13102
  shadow;
13079
- actions = id;
13103
+ actions = sd;
13080
13104
  menuOpen = !1;
13081
13105
  outsideClickHandler = null;
13082
13106
  static get observedAttributes() {
@@ -13302,7 +13326,7 @@ class od extends HTMLElement {
13302
13326
  this.setAttribute("status", e);
13303
13327
  }
13304
13328
  }
13305
- const sd = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|pre)\b/i, ad = /&(quot|apos|amp|lt|gt|nbsp|#\d+|#x[0-9a-f]+);/i, ld = {
13329
+ const ld = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|pre)\b/i, cd = /&(quot|apos|amp|lt|gt|nbsp|#\d+|#x[0-9a-f]+);/i, ud = {
13306
13330
  "&quot;": '"',
13307
13331
  "&apos;": "'",
13308
13332
  "&lt;": "<",
@@ -13310,14 +13334,14 @@ const sd = /<\s*(br|i|b|em|strong|small|sub|sup|p|div|span|ul|ol|li|a|img|code|p
13310
13334
  "&amp;": "&",
13311
13335
  "&nbsp;": " "
13312
13336
  };
13313
- function cd(s) {
13314
- return s.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) => ld[e.toLowerCase()] ?? e).replace(/&#(\d+);/g, (e, t) => String.fromCharCode(parseInt(t, 10))).replace(/&#x([0-9a-f]+);/gi, (e, t) => String.fromCharCode(parseInt(t, 16))).replace(/&amp;/gi, "&");
13337
+ function hd(s) {
13338
+ return s.replace(/&(quot|apos|lt|gt|nbsp);/gi, (e) => ud[e.toLowerCase()] ?? e).replace(/&#(\d+);/g, (e, t) => String.fromCharCode(parseInt(t, 10))).replace(/&#x([0-9a-f]+);/gi, (e, t) => String.fromCharCode(parseInt(t, 16))).replace(/&amp;/gi, "&");
13315
13339
  }
13316
13340
  function $t(s) {
13317
- if (sd.test(s))
13341
+ if (ld.test(s))
13318
13342
  return s;
13319
- const e = ad.test(s) ? cd(s) : s;
13320
- let t = ud(e);
13343
+ const e = cd.test(s) ? hd(s) : s;
13344
+ let t = dd(e);
13321
13345
  return t = t.replace(/```(\w*)\n([\s\S]*?)```/g, (r, o, n) => `<pre><code>${n.trim()}</code></pre>`), t = t.replace(/`([^`]+)`/g, "<code>$1</code>"), t = t.replace(/\*\*(.+?)\*\*/g, "<strong>$1</strong>"), t = t.replace(/\*(.+?)\*/g, "<em>$1</em>"), t = t.replace(
13322
13346
  /\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,
13323
13347
  '<a href="$2" target="_self" rel="noopener noreferrer">$1</a>'
@@ -13329,7 +13353,7 @@ function $t(s) {
13329
13353
  }
13330
13354
  ), t = t.replace(/\n/g, "<br>"), t;
13331
13355
  }
13332
- function ud(s) {
13356
+ function dd(s) {
13333
13357
  const e = {
13334
13358
  "&": "&amp;",
13335
13359
  "<": "&lt;",
@@ -13339,7 +13363,7 @@ function ud(s) {
13339
13363
  };
13340
13364
  return s.replace(/[&<>"']/g, (t) => e[t]);
13341
13365
  }
13342
- const hd = /* @__PURE__ */ new Set([
13366
+ const fd = /* @__PURE__ */ new Set([
13343
13367
  "p",
13344
13368
  "br",
13345
13369
  "hr",
@@ -13374,7 +13398,7 @@ const hd = /* @__PURE__ */ new Set([
13374
13398
  "tr",
13375
13399
  "th",
13376
13400
  "td"
13377
- ]), dd = {
13401
+ ]), pd = {
13378
13402
  a: /* @__PURE__ */ new Set(["href", "target", "rel"]),
13379
13403
  img: /* @__PURE__ */ new Set(["src", "alt", "width", "height"]),
13380
13404
  code: /* @__PURE__ */ new Set(["class"]),
@@ -13391,12 +13415,12 @@ function Ll(s) {
13391
13415
  for (const t of e)
13392
13416
  if (t.nodeType === Node.ELEMENT_NODE) {
13393
13417
  const r = t, o = r.tagName.toLowerCase();
13394
- if (!hd.has(o)) {
13418
+ if (!fd.has(o)) {
13395
13419
  const a = document.createTextNode(r.textContent || "");
13396
13420
  s.replaceChild(a, t);
13397
13421
  continue;
13398
13422
  }
13399
- const n = dd[o] || /* @__PURE__ */ new Set(), i = Array.from(r.attributes);
13423
+ const n = pd[o] || /* @__PURE__ */ new Set(), i = Array.from(r.attributes);
13400
13424
  for (const a of i)
13401
13425
  n.has(a.name) || r.removeAttribute(a.name);
13402
13426
  if (r.hasAttribute("href")) {
@@ -13406,7 +13430,7 @@ function Ll(s) {
13406
13430
  Ll(t);
13407
13431
  }
13408
13432
  }
13409
- function fd(s, e = {}) {
13433
+ function md(s, e = {}) {
13410
13434
  const { width: t = 600, height: r = 700, closeOnTypes: o } = e, n = Math.round(window.screenX + (window.outerWidth - t) / 2), i = Math.round(window.screenY + (window.outerHeight - r) / 2), a = window.open(
13411
13435
  s,
13412
13436
  "aikaara_popup",
@@ -13424,7 +13448,7 @@ function fd(s, e = {}) {
13424
13448
  }, 500);
13425
13449
  return a;
13426
13450
  }
13427
- function pd(s) {
13451
+ function gd(s) {
13428
13452
  const e = Date.now() - s.getTime(), t = Math.round(e / 1e3);
13429
13453
  if (t < 5) return "just now";
13430
13454
  if (t < 60) return `${t}s ago`;
@@ -13435,7 +13459,7 @@ function pd(s) {
13435
13459
  const n = Math.round(o / 24);
13436
13460
  return n === 1 ? "Yesterday" : n < 7 ? `${n} d ago` : s.toLocaleDateString(void 0, { month: "short", day: "2-digit" });
13437
13461
  }
13438
- class md extends HTMLElement {
13462
+ class bd extends HTMLElement {
13439
13463
  shadow;
13440
13464
  container;
13441
13465
  welcomeMessage = "";
@@ -13688,7 +13712,7 @@ class md extends HTMLElement {
13688
13712
  if (n.role === "user") {
13689
13713
  const i = n.metadata?.attributes?.action;
13690
13714
  if (i) {
13691
- const a = gd(i);
13715
+ const a = yd(i);
13692
13716
  if (i.message_id && t.set(i.message_id, a), Object.keys(a).length > 0)
13693
13717
  for (let l = o - 1; l >= 0; l--) {
13694
13718
  const c = e[l];
@@ -13826,7 +13850,7 @@ class md extends HTMLElement {
13826
13850
  case "date":
13827
13851
  return r;
13828
13852
  case "relative":
13829
- return pd(t);
13853
+ return gd(t);
13830
13854
  case "time-24":
13831
13855
  return t.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit", hour12: !1 });
13832
13856
  case "time-seconds":
@@ -13852,7 +13876,7 @@ class md extends HTMLElement {
13852
13876
  return;
13853
13877
  }
13854
13878
  if (o === "popup") {
13855
- fd(e);
13879
+ md(e);
13856
13880
  return;
13857
13881
  }
13858
13882
  const n = this.getOrCreateModal(), i = r?.title ?? t ?? "Link";
@@ -13860,7 +13884,7 @@ class md extends HTMLElement {
13860
13884
  requestAnimationFrame(() => n.show?.(e, i));
13861
13885
  return;
13862
13886
  }
13863
- const a = bd(e), l = Nl(r.fetch.url, a), c = {
13887
+ const a = vd(e), l = Nl(r.fetch.url, a), c = {
13864
13888
  accept: "application/json",
13865
13889
  ...r.fetch.headers ?? {}
13866
13890
  }, u = r.fetch.authHeader ?? "session";
@@ -13869,7 +13893,7 @@ class md extends HTMLElement {
13869
13893
  g && (c.authorization = `Bearer ${g}`);
13870
13894
  }
13871
13895
  const h = { method: r.fetch.method ?? "GET", headers: c };
13872
- r.fetch.body && (c["content-type"] = "application/json", h.body = JSON.stringify(lo(r.fetch.body, a)));
13896
+ r.fetch.body && (c["content-type"] = "application/json", h.body = JSON.stringify(co(r.fetch.body, a)));
13873
13897
  let p = null;
13874
13898
  try {
13875
13899
  const g = await fetch(l, h);
@@ -13906,7 +13930,7 @@ class md extends HTMLElement {
13906
13930
  return e || (e = document.createElement("aikaara-link-modal"), document.body.appendChild(e)), e;
13907
13931
  }
13908
13932
  }
13909
- function gd(s) {
13933
+ function yd(s) {
13910
13934
  const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType"]), t = {};
13911
13935
  for (const [r, o] of Object.entries(s))
13912
13936
  e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
@@ -13916,7 +13940,7 @@ function zs(s, e) {
13916
13940
  const t = e.replace(/[.+^${}()|[\]\\]/g, "\\$&");
13917
13941
  return new RegExp("^" + t.replace(/\*/g, ".*").replace(/\?/g, ".") + "$", "i").test(s);
13918
13942
  }
13919
- function bd(s) {
13943
+ function vd(s) {
13920
13944
  try {
13921
13945
  const e = new URL(s), t = {};
13922
13946
  return e.searchParams.forEach((r, o) => {
@@ -13929,17 +13953,17 @@ function bd(s) {
13929
13953
  function Nl(s, e) {
13930
13954
  return s.replace(/\{(\w+)\}/g, (t, r) => e[r] ?? "");
13931
13955
  }
13932
- function lo(s, e) {
13956
+ function co(s, e) {
13933
13957
  if (typeof s == "string") return Nl(s, e);
13934
- if (Array.isArray(s)) return s.map((t) => lo(t, e));
13958
+ if (Array.isArray(s)) return s.map((t) => co(t, e));
13935
13959
  if (s && typeof s == "object") {
13936
13960
  const t = {};
13937
- for (const [r, o] of Object.entries(s)) t[r] = lo(o, e);
13961
+ for (const [r, o] of Object.entries(s)) t[r] = co(o, e);
13938
13962
  return t;
13939
13963
  }
13940
13964
  return s;
13941
13965
  }
13942
- class yd extends HTMLElement {
13966
+ class wd extends HTMLElement {
13943
13967
  shadow;
13944
13968
  templatePayload = null;
13945
13969
  attachments = [];
@@ -14055,7 +14079,7 @@ class yd extends HTMLElement {
14055
14079
  renderAttachments() {
14056
14080
  return this.attachments.length ? `<div class="attachments">${this.attachments.map(
14057
14081
  (t) => `<a class="attachment" href="${Vs(t.fileUrl)}" target="_blank" rel="noopener noreferrer">
14058
- 📎 ${vd(t.fileName)}
14082
+ 📎 ${_d(t.fileName)}
14059
14083
  </a>`
14060
14084
  ).join("")}</div>` : "";
14061
14085
  }
@@ -14063,10 +14087,10 @@ class yd extends HTMLElement {
14063
14087
  function Vs(s) {
14064
14088
  return String(s).replace(/[&<>"']/g, (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" })[e]);
14065
14089
  }
14066
- function vd(s) {
14090
+ function _d(s) {
14067
14091
  return String(s).replace(/[&<>]/g, (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;" })[e]);
14068
14092
  }
14069
- class wd extends HTMLElement {
14093
+ class kd extends HTMLElement {
14070
14094
  shadow;
14071
14095
  textarea;
14072
14096
  sendBtn;
@@ -14217,7 +14241,7 @@ class wd extends HTMLElement {
14217
14241
  this.textarea.style.height = "auto", this.textarea.style.height = Math.min(this.textarea.scrollHeight, 120) + "px";
14218
14242
  }
14219
14243
  }
14220
- class _d extends HTMLElement {
14244
+ class xd extends HTMLElement {
14221
14245
  shadow;
14222
14246
  constructor() {
14223
14247
  super(), this.shadow = this.attachShadow({ mode: "open" });
@@ -14266,7 +14290,7 @@ class _d extends HTMLElement {
14266
14290
  this.removeAttribute("visible");
14267
14291
  }
14268
14292
  }
14269
- class kd extends HTMLElement {
14293
+ class Sd extends HTMLElement {
14270
14294
  shadow;
14271
14295
  bubble;
14272
14296
  constructor() {
@@ -14331,7 +14355,7 @@ class kd extends HTMLElement {
14331
14355
  this.bubble?.classList.remove("cursor");
14332
14356
  }
14333
14357
  }
14334
- class xd extends HTMLElement {
14358
+ class Ed extends HTMLElement {
14335
14359
  shadow;
14336
14360
  container;
14337
14361
  dismissTimer = null;
@@ -14377,9 +14401,9 @@ class xd extends HTMLElement {
14377
14401
  this.container.classList.remove("visible"), this.dismissTimer && (clearTimeout(this.dismissTimer), this.dismissTimer = null);
14378
14402
  }
14379
14403
  }
14380
- const sn = /* @__PURE__ */ new Map();
14404
+ const an = /* @__PURE__ */ new Map();
14381
14405
  function jl(s) {
14382
- const e = sn.get(s);
14406
+ const e = an.get(s);
14383
14407
  if (e) return e;
14384
14408
  const t = new Promise((r, o) => {
14385
14409
  const n = document.querySelector(`script[data-aikaara-src="${CSS.escape(s)}"]`);
@@ -14397,14 +14421,14 @@ function jl(s) {
14397
14421
  ), i.addEventListener(
14398
14422
  "error",
14399
14423
  () => {
14400
- sn.delete(s), o(new Error(`Failed to load ${s}`));
14424
+ an.delete(s), o(new Error(`Failed to load ${s}`));
14401
14425
  },
14402
14426
  { once: !0 }
14403
14427
  ), document.head.appendChild(i);
14404
14428
  });
14405
- return sn.set(s, t), t;
14429
+ return an.set(s, t), t;
14406
14430
  }
14407
- function Sd(s, e = 5e3) {
14431
+ function Ad(s, e = 5e3) {
14408
14432
  return new Promise((t, r) => {
14409
14433
  const o = setTimeout(() => r(new Error(`Custom element <${s}> not registered within ${e}ms`)), e);
14410
14434
  customElements.whenDefined(s).then(() => {
@@ -14412,14 +14436,14 @@ function Sd(s, e = 5e3) {
14412
14436
  });
14413
14437
  });
14414
14438
  }
14415
- const Ed = {
14439
+ const Id = {
14416
14440
  "aikaara-template-payment-link": () => import("./AikaaraPaymentLink-C82ApGKH.mjs").then(({ registerAikaaraPaymentLink: s }) => s())
14417
14441
  };
14418
- function Ad(s) {
14442
+ function Td(s) {
14419
14443
  const e = `template:${s}`, t = window.__aikaara_descriptor__?.components?.[e];
14420
14444
  return t && t.kind === "iife-element" ? { render: t.tag, scriptUrl: t.scriptUrl, props: t.props } : window.__aikaara_descriptor__?.templates?.[s];
14421
14445
  }
14422
- class Id extends HTMLElement {
14446
+ class Cd extends HTMLElement {
14423
14447
  shadow;
14424
14448
  payloadData = null;
14425
14449
  innerMessage = "";
@@ -14443,7 +14467,7 @@ class Id extends HTMLElement {
14443
14467
  this.render(), this.addEventListener("template-action", (e) => {
14444
14468
  const t = e.detail, r = this.getAttribute("message-id");
14445
14469
  if (r && t?.attributes?.action) {
14446
- const o = Od(t.attributes.action);
14470
+ const o = Md(t.attributes.action);
14447
14471
  if (Object.keys(o).length > 0)
14448
14472
  try {
14449
14473
  localStorage.setItem(`aikaara_form:${r}`, JSON.stringify(o));
@@ -14519,8 +14543,8 @@ class Id extends HTMLElement {
14519
14543
  <slot></slot>
14520
14544
  `; this.firstChild; ) this.removeChild(this.firstChild);
14521
14545
  if (!e) return;
14522
- const r = t ? Ad(t) : void 0, o = r?.render ?? (t ? `aikaara-template-${t}` : `aikaara-template-${e}`), n = Ed[o];
14523
- if (n && !customElements.get(o) ? n().then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, i)) : r?.scriptUrl && !customElements.get(o) && jl(r.scriptUrl).then(() => Sd(o)).then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, i)), customElements.get(o)) {
14546
+ const r = t ? Td(t) : void 0, o = r?.render ?? (t ? `aikaara-template-${t}` : `aikaara-template-${e}`), n = Id[o];
14547
+ if (n && !customElements.get(o) ? n().then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] native template ${o} failed to load`, i)) : r?.scriptUrl && !customElements.get(o) && jl(r.scriptUrl).then(() => Ad(o)).then(() => this.render()).catch((i) => console.warn(`[aikaara-template-renderer] failed to lazy-load ${r.scriptUrl}`, i)), customElements.get(o)) {
14524
14548
  const i = document.createElement(o);
14525
14549
  if (r?.props) {
14526
14550
  for (const [a, l] of Object.entries(r.props))
@@ -14607,7 +14631,7 @@ class Id extends HTMLElement {
14607
14631
  */
14608
14632
  mountLinkButton(e) {
14609
14633
  const t = this.renderGen;
14610
- import("./AikaaraLinkButton-BsP3RbwR.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
14634
+ import("./AikaaraLinkButton-DaEtJOX_.mjs").then(({ registerAikaaraLinkButton: r, AikaaraLinkButton: o }) => {
14611
14635
  if (t !== this.renderGen) return;
14612
14636
  r();
14613
14637
  const n = document.createElement("aikaara-link-button");
@@ -14616,7 +14640,7 @@ class Id extends HTMLElement {
14616
14640
  url: e.url ?? "",
14617
14641
  openLinkInNewTab: e.openLinkInNewTab,
14618
14642
  orderId: e.orderId,
14619
- extra: Cd(e),
14643
+ extra: Pd(e),
14620
14644
  messageId: this.getAttribute("message-id") ?? void 0
14621
14645
  }), this.appendChild(n);
14622
14646
  });
@@ -14626,26 +14650,26 @@ class Id extends HTMLElement {
14626
14650
  t.setPayload(e), this.appendChild(t);
14627
14651
  }
14628
14652
  }
14629
- const Td = /* @__PURE__ */ new Set([
14653
+ const Od = /* @__PURE__ */ new Set([
14630
14654
  "type",
14631
14655
  "url",
14632
14656
  "name",
14633
14657
  "openLinkInNewTab",
14634
14658
  "orderId"
14635
14659
  ]);
14636
- function Cd(s) {
14660
+ function Pd(s) {
14637
14661
  const e = {};
14638
14662
  for (const [t, r] of Object.entries(s))
14639
- Td.has(t) || (e[t] = r);
14663
+ Od.has(t) || (e[t] = r);
14640
14664
  return e;
14641
14665
  }
14642
- function Od(s) {
14666
+ function Md(s) {
14643
14667
  const e = /* @__PURE__ */ new Set(["message_id", "formAction", "requestType", "serviceType"]), t = {};
14644
14668
  for (const [r, o] of Object.entries(s))
14645
14669
  e.has(r) || (Array.isArray(o) && o.every((n) => typeof n == "string") ? t[r] = o : typeof o == "string" && (t[r] = [o]));
14646
14670
  return t;
14647
14671
  }
14648
- class Pd extends HTMLElement {
14672
+ class Rd extends HTMLElement {
14649
14673
  shadow;
14650
14674
  static get observedAttributes() {
14651
14675
  return ["text", "subtext"];
@@ -14694,7 +14718,7 @@ class Pd extends HTMLElement {
14694
14718
  function Ks(s) {
14695
14719
  return String(s).replace(/[&<>]/g, (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;" })[e]);
14696
14720
  }
14697
- class Md extends HTMLElement {
14721
+ class Ld extends HTMLElement {
14698
14722
  shadow;
14699
14723
  data = null;
14700
14724
  selected = /* @__PURE__ */ new Set();
@@ -14780,7 +14804,7 @@ class Md extends HTMLElement {
14780
14804
  .row[aria-checked="true"] .check { opacity: 1; }
14781
14805
  .text { flex: 1; }
14782
14806
  </style>
14783
- <div class="row" role="checkbox" tabindex="${this.preSelectedDisabled ? "-1" : "0"}" aria-checked="${a}" aria-disabled="${this.preSelectedDisabled}" data-value="${an(i.value)}">
14807
+ <div class="row" role="checkbox" tabindex="${this.preSelectedDisabled ? "-1" : "0"}" aria-checked="${a}" aria-disabled="${this.preSelectedDisabled}" data-value="${ln(i.value)}">
14784
14808
  <span class="box" aria-hidden="true">
14785
14809
  <svg class="check" viewBox="0 0 16 16" fill="none" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
14786
14810
  <path d="M3 8 L7 12 L13 4" />
@@ -14848,7 +14872,7 @@ class Md extends HTMLElement {
14848
14872
  return `
14849
14873
  <div class="row" role="radio" tabindex="${this.preSelectedDisabled ? "-1" : "0"}"
14850
14874
  aria-checked="${l}" aria-disabled="${this.preSelectedDisabled}"
14851
- data-value="${an(a.value)}">
14875
+ data-value="${ln(a.value)}">
14852
14876
  <span class="circle" aria-hidden="true"><span class="dot"></span></span>
14853
14877
  <span class="label">${It(a.label)}</span>
14854
14878
  </div>`;
@@ -14900,7 +14924,7 @@ class Md extends HTMLElement {
14900
14924
  ${t.map(
14901
14925
  (i) => `
14902
14926
  <button class="opt" type="button"
14903
- data-value="${an(i.value)}"
14927
+ data-value="${ln(i.value)}"
14904
14928
  role="${o ? "checkbox" : "radio"}"
14905
14929
  aria-pressed="${this.selected.has(i.value)}"
14906
14930
  ${this.preSelectedDisabled ? 'disabled aria-disabled="true"' : ""}>
@@ -14916,10 +14940,10 @@ class Md extends HTMLElement {
14916
14940
  function It(s) {
14917
14941
  return String(s).replace(/[&<>]/g, (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;" })[e]);
14918
14942
  }
14919
- function an(s) {
14943
+ function ln(s) {
14920
14944
  return String(s).replace(/[&<>"']/g, (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" })[e]);
14921
14945
  }
14922
- class Rd extends HTMLElement {
14946
+ class Nd extends HTMLElement {
14923
14947
  shadow;
14924
14948
  data = null;
14925
14949
  constructor() {
@@ -14988,14 +15012,14 @@ class Rd extends HTMLElement {
14988
15012
  button:hover { background: var(--aikaara-submit-hover-bg, var(--aikaara-primary-hover, #4f46e5)); }
14989
15013
  button:disabled { opacity: var(--aikaara-submit-disabled-opacity, 0.5); cursor: not-allowed; }
14990
15014
  </style>
14991
- <button type="button">${Ld(e)}</button>
15015
+ <button type="button">${jd(e)}</button>
14992
15016
  `, this.shadow.querySelector("button").addEventListener("click", () => this.handleClick());
14993
15017
  }
14994
15018
  }
14995
- function Ld(s) {
15019
+ function jd(s) {
14996
15020
  return String(s).replace(/[&<>]/g, (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;" })[e]);
14997
15021
  }
14998
- class Nd extends HTMLElement {
15022
+ class Ud extends HTMLElement {
14999
15023
  shadow;
15000
15024
  data = null;
15001
15025
  dismissed = !1;
@@ -15074,20 +15098,20 @@ class Nd extends HTMLElement {
15074
15098
  </style>
15075
15099
  <div class="overlay" role="dialog" aria-modal="true">
15076
15100
  <div class="modal">
15077
- <div class="msg">${ln(this.data.message)}</div>
15101
+ <div class="msg">${cn(this.data.message)}</div>
15078
15102
  <div class="actions">
15079
- ${t ? `<button class="cancel" type="button">${ln(t)}</button>` : ""}
15080
- <button class="ok" type="button">${ln(e)}</button>
15103
+ ${t ? `<button class="cancel" type="button">${cn(t)}</button>` : ""}
15104
+ <button class="ok" type="button">${cn(e)}</button>
15081
15105
  </div>
15082
15106
  </div>
15083
15107
  </div>
15084
15108
  `, this.shadow.querySelector("button.ok").addEventListener("click", () => this.handleOk()), this.shadow.querySelector("button.cancel")?.addEventListener("click", () => this.dismiss());
15085
15109
  }
15086
15110
  }
15087
- function ln(s) {
15111
+ function cn(s) {
15088
15112
  return String(s).replace(/[&<>]/g, (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;" })[e]);
15089
15113
  }
15090
- class jd extends HTMLElement {
15114
+ class Bd extends HTMLElement {
15091
15115
  shadow;
15092
15116
  data = null;
15093
15117
  _value = "";
@@ -15194,7 +15218,7 @@ function Xt(s) {
15194
15218
  (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" })[e]
15195
15219
  );
15196
15220
  }
15197
- class Ud extends HTMLElement {
15221
+ class Dd extends HTMLElement {
15198
15222
  static get observedAttributes() {
15199
15223
  return ["slug", "user-id", "user-name", "user-token", "department-id", "config-base", "api-key"];
15200
15224
  }
@@ -15248,7 +15272,7 @@ class Ud extends HTMLElement {
15248
15272
  const l = Object.keys(n).length > 0 ? n : void 0;
15249
15273
  return this.mountInflight = (async () => {
15250
15274
  try {
15251
- this.mounted = await vf({
15275
+ this.mounted = await _f({
15252
15276
  container: this,
15253
15277
  slug: e,
15254
15278
  configBase: this.getAttribute("config-base") ?? void 0,
@@ -15277,7 +15301,7 @@ class Ud extends HTMLElement {
15277
15301
  })(), this.mountInflight;
15278
15302
  }
15279
15303
  }
15280
- class Bd extends HTMLElement {
15304
+ class Fd extends HTMLElement {
15281
15305
  shadow;
15282
15306
  root = null;
15283
15307
  iframe = null;
@@ -15394,7 +15418,7 @@ class Bd extends HTMLElement {
15394
15418
  });
15395
15419
  }
15396
15420
  }
15397
- const Dd = [
15421
+ const $d = [
15398
15422
  { label: "Self-filing guidance" },
15399
15423
  { label: "Smart tax suggestions" },
15400
15424
  { label: "Auto-fetch 26AS / AIS" },
@@ -15402,7 +15426,7 @@ const Dd = [
15402
15426
  { label: "Dedicated tax expert" },
15403
15427
  { label: "End-to-end filing" },
15404
15428
  { label: "Document handling" }
15405
- ], Fd = [
15429
+ ], qd = [
15406
15430
  {
15407
15431
  label: "DIY",
15408
15432
  match: ["DIY", "DIY_SALARY"],
@@ -15425,11 +15449,11 @@ const Dd = [
15425
15449
  features: [!0, !0, !0, !0, !0, !0, !0]
15426
15450
  }
15427
15451
  ];
15428
- class $d extends HTMLElement {
15452
+ class Hd extends HTMLElement {
15429
15453
  shadow;
15430
15454
  data = null;
15431
- columns = Fd;
15432
- features = Dd;
15455
+ columns = qd;
15456
+ features = $d;
15433
15457
  constructor() {
15434
15458
  super(), this.shadow = this.attachShadow({ mode: "open" });
15435
15459
  }
@@ -15511,14 +15535,14 @@ class $d extends HTMLElement {
15511
15535
  <thead>
15512
15536
  <tr>
15513
15537
  <th>Feature</th>
15514
- ${e.map((r) => `<th>${cn(r.label)}</th>`).join("")}
15538
+ ${e.map((r) => `<th>${un(r.label)}</th>`).join("")}
15515
15539
  </tr>
15516
15540
  </thead>
15517
15541
  <tbody>
15518
15542
  ${t.map(
15519
15543
  (r, o) => `
15520
15544
  <tr>
15521
- <td>${cn(r.label)}</td>
15545
+ <td>${un(r.label)}</td>
15522
15546
  ${e.map(
15523
15547
  (n) => n.features[o] ? '<td><span class="check">✓</span></td>' : '<td><span class="cross">✕</span></td>'
15524
15548
  ).join("")}
@@ -15537,7 +15561,7 @@ class $d extends HTMLElement {
15537
15561
  ${e.map((r, o) => {
15538
15562
  const n = this.priceFor(r), i = r.selectLabel.replace("{price}", n != null ? String(Math.round(n)) : "—");
15539
15563
  return `<button class="action" data-col="${o}" type="button">
15540
- <span>${cn(i)}</span>
15564
+ <span>${un(i)}</span>
15541
15565
  <small>Tap to select</small>
15542
15566
  </button>`;
15543
15567
  }).join("")}
@@ -15556,13 +15580,13 @@ class $d extends HTMLElement {
15556
15580
  });
15557
15581
  }
15558
15582
  }
15559
- function cn(s) {
15583
+ function un(s) {
15560
15584
  return s.replace(
15561
15585
  /[&<>"']/g,
15562
15586
  (e) => ({ "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" })[e]
15563
15587
  );
15564
15588
  }
15565
- class qd extends HTMLElement {
15589
+ class Wd extends HTMLElement {
15566
15590
  shadow;
15567
15591
  root = null;
15568
15592
  schemas = [];
@@ -15653,7 +15677,7 @@ class qd extends HTMLElement {
15653
15677
  `;
15654
15678
  const r = this.shadow.querySelector(".modal-body"), o = this.schemas.map(
15655
15679
  (i) => `
15656
- <button class="chip" type="button" data-section-id="${Wd(i.id)}">
15680
+ <button class="chip" type="button" data-section-id="${Vd(i.id)}">
15657
15681
  <span class="chip-icon">${i.icon ?? "📄"}</span>
15658
15682
  <span class="chip-label">${Ys(i.title)}</span>
15659
15683
  </button>`
@@ -15686,7 +15710,7 @@ class qd extends HTMLElement {
15686
15710
  e.classList.remove("view-picker"), e.classList.add("view-form");
15687
15711
  const t = this.schemas.find((n) => n.id === this.activeSectionId), r = this.shadow.querySelector(".modal-header");
15688
15712
  r.innerHTML = `
15689
- <button class="icon-btn back-btn" type="button" aria-label="Back">${Hd}</button>
15713
+ <button class="icon-btn back-btn" type="button" aria-label="Back">${zd}</button>
15690
15714
  <div class="modal-title">${Ys(t?.title ?? "Edit")}</div>
15691
15715
  <button class="icon-btn close-btn" type="button" aria-label="Close">${Gs}</button>
15692
15716
  `;
@@ -15862,14 +15886,14 @@ class qd extends HTMLElement {
15862
15886
  `;
15863
15887
  }
15864
15888
  }
15865
- const Gs = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>', Hd = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>';
15866
- function Wd(s) {
15889
+ const Gs = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>', zd = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"/><polyline points="12 19 5 12 12 5"/></svg>';
15890
+ function Vd(s) {
15867
15891
  return s.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
15868
15892
  }
15869
15893
  function Ys(s) {
15870
15894
  return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
15871
15895
  }
15872
- class zd extends HTMLElement {
15896
+ class Kd extends HTMLElement {
15873
15897
  shadow;
15874
15898
  schema = null;
15875
15899
  value = {};
@@ -16272,34 +16296,34 @@ function Tt(s) {
16272
16296
  function Qe(s) {
16273
16297
  return s.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
16274
16298
  }
16275
- function Vd() {
16299
+ function Gd() {
16276
16300
  const s = [
16277
- ["aikaara-chat-widget", rd],
16278
- ["aikaara-chat-bubble", nd],
16279
- ["aikaara-chat-header", od],
16280
- ["aikaara-message-list", md],
16281
- ["aikaara-message-bubble", yd],
16282
- ["aikaara-chat-input", wd],
16283
- ["aikaara-typing-indicator", _d],
16284
- ["aikaara-streaming-message", kd],
16285
- ["aikaara-error-banner", xd],
16286
- ["aikaara-template-renderer", Id],
16287
- ["aikaara-system-pill", Pd],
16288
- ["aikaara-option-list", Md],
16289
- ["aikaara-submit-action", Rd],
16290
- ["aikaara-modal-action", Nd],
16291
- ["aikaara-text-input", jd],
16292
- ["aikaara-chat", Ud],
16293
- ["aikaara-link-modal", Bd],
16294
- ["aikaara-compare-plans", $d],
16295
- ["aikaara-smart-edit-modal", qd],
16296
- ["aikaara-schema-form", zd]
16301
+ ["aikaara-chat-widget", id],
16302
+ ["aikaara-chat-bubble", od],
16303
+ ["aikaara-chat-header", ad],
16304
+ ["aikaara-message-list", bd],
16305
+ ["aikaara-message-bubble", wd],
16306
+ ["aikaara-chat-input", kd],
16307
+ ["aikaara-typing-indicator", xd],
16308
+ ["aikaara-streaming-message", Sd],
16309
+ ["aikaara-error-banner", Ed],
16310
+ ["aikaara-template-renderer", Cd],
16311
+ ["aikaara-system-pill", Rd],
16312
+ ["aikaara-option-list", Ld],
16313
+ ["aikaara-submit-action", Nd],
16314
+ ["aikaara-modal-action", Ud],
16315
+ ["aikaara-text-input", Bd],
16316
+ ["aikaara-chat", Dd],
16317
+ ["aikaara-link-modal", Fd],
16318
+ ["aikaara-compare-plans", Hd],
16319
+ ["aikaara-smart-edit-modal", Wd],
16320
+ ["aikaara-schema-form", Kd]
16297
16321
  ];
16298
16322
  for (const [e, t] of s)
16299
16323
  customElements.get(e) || customElements.define(e, t);
16300
16324
  }
16301
- Vd();
16302
- function fr(s, e, t = "") {
16325
+ Gd();
16326
+ function pr(s, e, t = "") {
16303
16327
  if (!e) return t;
16304
16328
  const r = e.split(".");
16305
16329
  let o = s;
@@ -16324,7 +16348,7 @@ function Js(s) {
16324
16348
  async function Ht(s) {
16325
16349
  return typeof s == "function" ? await s() : s;
16326
16350
  }
16327
- class Kd {
16351
+ class Yd {
16328
16352
  constructor(e, t) {
16329
16353
  this.descriptor = e, this.sessionToken = t;
16330
16354
  }
@@ -16369,16 +16393,16 @@ class Kd {
16369
16393
  const w = await a.text().catch(() => "");
16370
16394
  throw new Error(`Session auth failed: ${a.status} ${w.slice(0, 200)}`);
16371
16395
  }
16372
- const l = await a.json().catch(() => ({})), c = fr(l, this.descriptor.tokenPath ?? "data.token"), u = this.descriptor.tokenStripPrefix, h = u ? c.replace(new RegExp(`^${u}`, "i"), "").trim() : c;
16396
+ const l = await a.json().catch(() => ({})), c = pr(l, this.descriptor.tokenPath ?? "data.token"), u = this.descriptor.tokenStripPrefix, h = u ? c.replace(new RegExp(`^${u}`, "i"), "").trim() : c;
16373
16397
  if (!h) throw new Error("Session auth response missing token");
16374
- const p = fr(l, this.descriptor.requestIdPath ?? "data.requestId"), g = this.cache?.requestId || p || "", f = fr(l, this.descriptor.fullNamePath ?? "data.fullName"), b = fr(l, this.descriptor.userPath ?? "data.userId"), y = Js(h) || Date.now() + 3600 * 1e3;
16398
+ const p = pr(l, this.descriptor.requestIdPath ?? "data.requestId"), g = this.cache?.requestId || p || "", f = pr(l, this.descriptor.fullNamePath ?? "data.fullName"), b = pr(l, this.descriptor.userPath ?? "data.userId"), y = Js(h) || Date.now() + 3600 * 1e3;
16375
16399
  return this.cache = { token: h, requestId: g, fullName: f, userId: b, expiresAt: y }, this.cache;
16376
16400
  }
16377
16401
  }
16378
- async function Gd(s) {
16402
+ async function Jd(s) {
16379
16403
  const e = {};
16380
16404
  for (const t of s.spec) {
16381
- const r = await Yd(t, s.providers);
16405
+ const r = await Qd(t, s.providers);
16382
16406
  if (r !== void 0 && r !== "")
16383
16407
  e[t.name] = r;
16384
16408
  else {
@@ -16391,19 +16415,19 @@ async function Gd(s) {
16391
16415
  }
16392
16416
  return e;
16393
16417
  }
16394
- async function Yd(s, e) {
16418
+ async function Qd(s, e) {
16395
16419
  const t = s.key ?? s.name;
16396
16420
  switch (s.source) {
16397
16421
  case "cookie":
16398
- return Jd(t);
16422
+ return Xd(t);
16399
16423
  case "localStorage":
16400
- return pr(() => window.localStorage.getItem(t) ?? void 0);
16424
+ return mr(() => window.localStorage.getItem(t) ?? void 0);
16401
16425
  case "sessionStorage":
16402
- return pr(() => window.sessionStorage.getItem(t) ?? void 0);
16426
+ return mr(() => window.sessionStorage.getItem(t) ?? void 0);
16403
16427
  case "url_param":
16404
- return pr(() => new URL(window.location.href).searchParams.get(t) ?? void 0);
16428
+ return mr(() => new URL(window.location.href).searchParams.get(t) ?? void 0);
16405
16429
  case "header_meta":
16406
- return pr(() => document.querySelector(`meta[name="${Qd(t)}"]`)?.content ?? void 0);
16430
+ return mr(() => document.querySelector(`meta[name="${Zd(t)}"]`)?.content ?? void 0);
16407
16431
  case "callback": {
16408
16432
  const r = e?.[s.name];
16409
16433
  if (!r) return;
@@ -16414,7 +16438,7 @@ async function Yd(s, e) {
16414
16438
  return;
16415
16439
  }
16416
16440
  }
16417
- function Jd(s) {
16441
+ function Xd(s) {
16418
16442
  if (typeof document > "u") return;
16419
16443
  const e = encodeURIComponent(s), t = document.cookie ? document.cookie.split("; ") : [];
16420
16444
  for (const r of t) {
@@ -16429,18 +16453,18 @@ function Jd(s) {
16429
16453
  }
16430
16454
  }
16431
16455
  }
16432
- function pr(s) {
16456
+ function mr(s) {
16433
16457
  try {
16434
16458
  return s();
16435
16459
  } catch {
16436
16460
  return;
16437
16461
  }
16438
16462
  }
16439
- function Qd(s) {
16463
+ function Zd(s) {
16440
16464
  return s.replace(/["\\]/g, "\\$&");
16441
16465
  }
16442
- const Xd = 1800;
16443
- class Zd {
16466
+ const ef = 1800;
16467
+ class tf {
16444
16468
  constructor(e) {
16445
16469
  this.opts = e, this.cache = this.loadCache();
16446
16470
  }
@@ -16469,7 +16493,7 @@ class Zd {
16469
16493
  throw new Error(
16470
16494
  "[aikaara-chat-sdk] SsoExchangeAdapter.exchange() requires descriptor.sso.collect; v2 partner-token flow should be handled by TokenDiscoveryReader instead."
16471
16495
  );
16472
- const e = await Gd({
16496
+ const e = await Jd({
16473
16497
  spec: this.opts.descriptor.collect,
16474
16498
  providers: this.opts.providers
16475
16499
  }), t = JSON.stringify({ credentials: e }), r = {
@@ -16507,7 +16531,7 @@ class Zd {
16507
16531
  return this.cache = u, this.persistCache(u), u;
16508
16532
  }
16509
16533
  computeExpiry() {
16510
- const e = this.opts.descriptor.cacheTtlSec ?? Xd;
16534
+ const e = this.opts.descriptor.cacheTtlSec ?? ef;
16511
16535
  if (!(!this.opts.descriptor.cacheKey || e <= 0))
16512
16536
  return Date.now() + e * 1e3;
16513
16537
  }
@@ -16540,8 +16564,8 @@ class Zd {
16540
16564
  }
16541
16565
  }
16542
16566
  }
16543
- const ef = 3e4, tf = 2e3, rf = 100;
16544
- async function nf(s) {
16567
+ const rf = 3e4, nf = 2e3, of = 100;
16568
+ async function sf(s) {
16545
16569
  const { descriptor: e } = s, t = e.tokenSourceConfig ?? {};
16546
16570
  switch (e.tokenSource) {
16547
16571
  case "init": {
@@ -16550,37 +16574,37 @@ async function nf(s) {
16550
16574
  return { token: s.initToken, source: "init" };
16551
16575
  }
16552
16576
  case "query": {
16553
- const r = typeof t.key == "string" && t.key ? t.key : "token", o = sf(r);
16577
+ const r = typeof t.key == "string" && t.key ? t.key : "token", o = lf(r);
16554
16578
  if (!o) throw new Xe("query", `?${r}= not present`);
16555
16579
  return { token: o, source: "query" };
16556
16580
  }
16557
16581
  case "hash": {
16558
- const r = typeof t.key == "string" && t.key ? t.key : "token", o = af(r);
16582
+ const r = typeof t.key == "string" && t.key ? t.key : "token", o = cf(r);
16559
16583
  if (!o) throw new Xe("hash", `#${r}= not present`);
16560
16584
  return { token: o, source: "hash" };
16561
16585
  }
16562
16586
  case "postmsg": {
16563
- const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n = df(typeof t.origins == "string" ? t.origins : ""), i = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : ef;
16564
- return { token: await hf({ type: r, key: o, origins: n, timeoutMs: i }), source: "postmsg" };
16587
+ const r = typeof t.type == "string" ? t.type : "", o = typeof t.key == "string" && t.key ? t.key : "token", n = pf(typeof t.origins == "string" ? t.origins : ""), i = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : rf;
16588
+ return { token: await ff({ type: r, key: o, origins: n, timeoutMs: i }), source: "postmsg" };
16565
16589
  }
16566
16590
  case "cookie": {
16567
16591
  const r = typeof t.name == "string" && t.name ? t.name : "";
16568
16592
  if (!r) throw new Xe("cookie", "cookie.name not configured");
16569
- const o = lf(r);
16593
+ const o = uf(r);
16570
16594
  if (!o) throw new Xe("cookie", `cookie "${r}" not set`);
16571
16595
  return { token: o, source: "cookie" };
16572
16596
  }
16573
16597
  case "storage": {
16574
16598
  const r = t.store === "session" ? "session" : "local", o = typeof t.key == "string" && t.key ? t.key : "", n = typeof t.path == "string" ? t.path : "";
16575
16599
  if (!o) throw new Xe("storage", "storage.key not configured");
16576
- const i = cf(r, o, n);
16600
+ const i = hf(r, o, n);
16577
16601
  if (!i) throw new Xe("storage", `${r}Storage["${o}"] not set`);
16578
16602
  return { token: i, source: "storage" };
16579
16603
  }
16580
16604
  case "global": {
16581
16605
  const r = typeof t.path == "string" ? t.path : "";
16582
16606
  if (!r) throw new Xe("global", "global.path not configured");
16583
- const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : tf, n = typeof t.intervalMs == "number" && t.intervalMs > 0 ? t.intervalMs : rf, i = await uf(r, o, n);
16607
+ const o = typeof t.timeoutMs == "number" && t.timeoutMs > 0 ? t.timeoutMs : nf, n = typeof t.intervalMs == "number" && t.intervalMs > 0 ? t.intervalMs : of, i = await df(r, o, n);
16584
16608
  if (!i) throw new Xe("global", `window.${r} not present`);
16585
16609
  return { token: i, source: "global" };
16586
16610
  }
@@ -16593,7 +16617,7 @@ async function nf(s) {
16593
16617
  }
16594
16618
  }
16595
16619
  }
16596
- class of {
16620
+ class af {
16597
16621
  constructor(e) {
16598
16622
  this.opts = e;
16599
16623
  }
@@ -16604,7 +16628,7 @@ class of {
16604
16628
  /** Resolve the token. Returns cache if present. */
16605
16629
  async get() {
16606
16630
  if (this.cached) return this.cached;
16607
- const e = await nf(this.opts);
16631
+ const e = await sf(this.opts);
16608
16632
  return this.cached = e, e;
16609
16633
  }
16610
16634
  /**
@@ -16621,7 +16645,7 @@ class Xe extends Error {
16621
16645
  super(`[aikaara-chat-sdk] token-discovery (${e}): ${t}`), this.source = e, this.name = "TokenDiscoveryError";
16622
16646
  }
16623
16647
  }
16624
- function sf(s) {
16648
+ function lf(s) {
16625
16649
  if (!(typeof window > "u"))
16626
16650
  try {
16627
16651
  const e = window.location.search.slice(1);
@@ -16635,7 +16659,7 @@ function sf(s) {
16635
16659
  return;
16636
16660
  }
16637
16661
  }
16638
- function af(s) {
16662
+ function cf(s) {
16639
16663
  if (!(typeof window > "u"))
16640
16664
  try {
16641
16665
  const e = window.location.hash.replace(/^#/, "");
@@ -16644,7 +16668,7 @@ function af(s) {
16644
16668
  return;
16645
16669
  }
16646
16670
  }
16647
- function lf(s) {
16671
+ function uf(s) {
16648
16672
  if (typeof document > "u") return;
16649
16673
  const e = encodeURIComponent(s), t = document.cookie ? document.cookie.split("; ") : [];
16650
16674
  for (const r of t) {
@@ -16659,7 +16683,7 @@ function lf(s) {
16659
16683
  }
16660
16684
  }
16661
16685
  }
16662
- function cf(s, e, t) {
16686
+ function hf(s, e, t) {
16663
16687
  if (!(typeof window > "u"))
16664
16688
  try {
16665
16689
  const o = (s === "session" ? window.sessionStorage : window.localStorage).getItem(e);
@@ -16677,7 +16701,7 @@ function cf(s, e, t) {
16677
16701
  return;
16678
16702
  }
16679
16703
  }
16680
- async function uf(s, e, t) {
16704
+ async function df(s, e, t) {
16681
16705
  if (typeof window > "u") return;
16682
16706
  const r = Date.now() + e;
16683
16707
  for (; Date.now() < r; ) {
@@ -16692,7 +16716,7 @@ async function uf(s, e, t) {
16692
16716
  await new Promise((n) => setTimeout(n, t));
16693
16717
  }
16694
16718
  }
16695
- function hf(s) {
16719
+ function ff(s) {
16696
16720
  return new Promise((e, t) => {
16697
16721
  if (typeof window > "u") {
16698
16722
  t(new Xe("postmsg", "no window"));
@@ -16714,7 +16738,7 @@ function hf(s) {
16714
16738
  window.addEventListener("message", n);
16715
16739
  });
16716
16740
  }
16717
- function df(s) {
16741
+ function pf(s) {
16718
16742
  return s ? s.split(/[,\s]+/).map((e) => e.trim()).filter(Boolean) : [];
16719
16743
  }
16720
16744
  function Ul(s, e) {
@@ -16728,7 +16752,7 @@ function Ul(s, e) {
16728
16752
  return;
16729
16753
  return r;
16730
16754
  }
16731
- function ff() {
16755
+ function mf() {
16732
16756
  const s = typeof crypto < "u" ? crypto : null;
16733
16757
  if (s?.randomUUID) return s.randomUUID();
16734
16758
  if (s?.getRandomValues) {
@@ -16742,9 +16766,9 @@ function ff() {
16742
16766
  return (e === "x" ? t : t & 3 | 8).toString(16);
16743
16767
  });
16744
16768
  }
16745
- const pf = "aikaara_chat:requestId";
16769
+ const gf = "aikaara_chat:requestId";
16746
16770
  function Io(s, e, t) {
16747
- const r = `${pf}:${s}:${e}`;
16771
+ const r = `${gf}:${s}:${e}`;
16748
16772
  return t ? `${r}:${t}` : r;
16749
16773
  }
16750
16774
  function Bl(s, e, t) {
@@ -16754,19 +16778,19 @@ function Bl(s, e, t) {
16754
16778
  return null;
16755
16779
  }
16756
16780
  }
16757
- function mf(s, e, t, r) {
16781
+ function bf(s, e, t, r) {
16758
16782
  try {
16759
16783
  localStorage.setItem(Io(s, e, r), t);
16760
16784
  } catch {
16761
16785
  }
16762
16786
  }
16763
- function wf(s, e, t) {
16787
+ function kf(s, e, t) {
16764
16788
  try {
16765
16789
  localStorage.removeItem(Io(s, e, t));
16766
16790
  } catch {
16767
16791
  }
16768
16792
  }
16769
- async function co(s, e, t = "before-chat") {
16793
+ async function uo(s, e, t = "before-chat") {
16770
16794
  const r = s.filter((u) => (u.trigger ?? "before-chat") === t);
16771
16795
  console.log(
16772
16796
  "[aikaara-chat-sdk] preflight running",
@@ -16809,7 +16833,7 @@ async function co(s, e, t = "before-chat") {
16809
16833
  _ = x;
16810
16834
  break;
16811
16835
  }
16812
- if (y = x.status, w = await x.text().catch(() => ""), m < c.length && gf(y, w)) {
16836
+ if (y = x.status, w = await x.text().catch(() => ""), m < c.length && yf(y, w)) {
16813
16837
  const E = c[m++];
16814
16838
  console.warn(
16815
16839
  `[aikaara-chat-sdk] preflight #${u} ${g} ${p} → ${y} (transient). Retry #${m} in ${E}ms.`
@@ -16863,9 +16887,9 @@ async function co(s, e, t = "before-chat") {
16863
16887
  }
16864
16888
  return { captured: l };
16865
16889
  }
16866
- async function _f(s) {
16890
+ async function xf(s) {
16867
16891
  const e = s.steps ?? [];
16868
- return e.some((r) => r.trigger === "on-method-select") ? (await co(
16892
+ return e.some((r) => r.trigger === "on-method-select") ? (await uo(
16869
16893
  e,
16870
16894
  {
16871
16895
  sessionToken: s.sessionToken,
@@ -16879,7 +16903,7 @@ async function _f(s) {
16879
16903
  "on-method-select"
16880
16904
  )).captured : {};
16881
16905
  }
16882
- function gf(s, e) {
16906
+ function yf(s, e) {
16883
16907
  if (s === 503 || s === 504 || s === 502) return !0;
16884
16908
  if (s === 401 || s === 403) return e.trim().length === 0;
16885
16909
  if (s === 500) {
@@ -16905,7 +16929,7 @@ async function Dl(s, e) {
16905
16929
  return r;
16906
16930
  }
16907
16931
  function Fl(s, e) {
16908
- return s.replace("{projectId}", e).replace("{uuid}", ff().replace(/-/g, ""));
16932
+ return s.replace("{projectId}", e).replace("{uuid}", mf().replace(/-/g, ""));
16909
16933
  }
16910
16934
  function $l(s) {
16911
16935
  const e = s._preload;
@@ -16917,7 +16941,7 @@ function $l(s) {
16917
16941
  );
16918
16942
  t.length !== 0 && Promise.allSettled(t.map((r) => jl(r)));
16919
16943
  }
16920
- async function bf(s) {
16944
+ async function vf(s) {
16921
16945
  const e = {
16922
16946
  ...s.config ?? (s.configUrl ? await Dl(s.configUrl, s.configHeaders) : {}),
16923
16947
  ...s.overrides ?? {}
@@ -16927,7 +16951,7 @@ async function bf(s) {
16927
16951
  if ((t === "tiledesk" || t === "dual") && !r)
16928
16952
  throw new Error("mount: descriptor.tiledesk is required for tiledesk/dual transport");
16929
16953
  const o = r?.projectId ?? "", n = s.identity.userId, i = s.conversationScope || void 0, a = s.forceNewConversation ? null : Bl(n, o, i), l = r?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", c = s.conversationId ?? a ?? Fl(l, o);
16930
- (s.conversationId || !a || s.forceNewConversation) && o && mf(n, o, c, i);
16954
+ (s.conversationId || !a || s.forceNewConversation) && o && bf(n, o, c, i);
16931
16955
  const u = await s.tokenProvider(), h = s.tokenProvider, p = s.historyTokenProvider ?? h, g = r ? {
16932
16956
  mqttEndpoint: r.mqttEndpoint,
16933
16957
  jwtToken: u,
@@ -17015,13 +17039,13 @@ async function bf(s) {
17015
17039
  }
17016
17040
  };
17017
17041
  }
17018
- function yf(s) {
17042
+ function wf(s) {
17019
17043
  if (typeof s != "string") return s;
17020
17044
  const e = document.querySelector(s);
17021
17045
  if (!e) throw new Error(`mountFromSlug: container "${s}" not found`);
17022
17046
  return e;
17023
17047
  }
17024
- async function vf(s) {
17048
+ async function _f(s) {
17025
17049
  const e = (s.configBase ?? "https://api.aikaara.com").replace(/\/$/, ""), t = `${e}/api/v1/widget_configs/${encodeURIComponent(s.slug)}`;
17026
17050
  let r = null;
17027
17051
  try {
@@ -17071,7 +17095,7 @@ async function vf(s) {
17071
17095
  let i = null, a = s.user.id, l = s.user.name, c = "", u = s.user.token, h = null;
17072
17096
  const p = await Ht(s.user.token).catch(() => ""), g = typeof p == "string" && p.length > 0;
17073
17097
  if (!g && o.sso?.tokenSource) {
17074
- h = new of({
17098
+ h = new af({
17075
17099
  descriptor: {
17076
17100
  provider: o.sso.provider,
17077
17101
  flow: o.sso.flow,
@@ -17088,7 +17112,7 @@ async function vf(s) {
17088
17112
  u = async () => (await h.get()).token, s.user.identity && !s.user.identity.partnerToken && (s.user.identity.partnerToken = I.token);
17089
17113
  } else if (!g && o.sso && o.sso.collect && o.sso.collect.length > 0) {
17090
17114
  const I = `${e}/api/v1/projects/by-slug/${encodeURIComponent(s.slug)}/sso_exchange`;
17091
- i = await new Zd({
17115
+ i = await new tf({
17092
17116
  descriptor: o.sso,
17093
17117
  providers: s.user.credentialProviders,
17094
17118
  exchangeUrl: I
@@ -17096,7 +17120,7 @@ async function vf(s) {
17096
17120
  }
17097
17121
  let f = "", b = "";
17098
17122
  if (o.preflight && o.preflight.length) {
17099
- const I = await co(o.preflight, {
17123
+ const I = await uo(o.preflight, {
17100
17124
  sessionToken: u,
17101
17125
  userId: a,
17102
17126
  projectId: o.tiledesk?.projectId ?? "",
@@ -17110,7 +17134,7 @@ async function vf(s) {
17110
17134
  }
17111
17135
  I.captured.userId && (a = I.captured.userId), I.captured.requestId && (b = I.captured.requestId);
17112
17136
  }
17113
- const y = new Kd(o.auth, u);
17137
+ const y = new Yd(o.auth, u);
17114
17138
  if (f) {
17115
17139
  const I = o.tiledesk?.projectId ?? "", O = I ? Bl(a, I) : null, P = o.tiledesk?.requestIdTemplate ?? "support-group-{projectId}-{uuid}", j = O ?? (I ? Fl(P, I) : "");
17116
17140
  y.prime(f, { requestId: j, fullName: l });
@@ -17141,8 +17165,8 @@ async function vf(s) {
17141
17165
  fieldName: x.fieldName,
17142
17166
  extraFields: x.extraFields,
17143
17167
  headers: async () => ({ authorization: await v() })
17144
- }) : void 0), S = await bf({
17145
- container: yf(s.container),
17168
+ }) : void 0), S = await vf({
17169
+ container: wf(s.container),
17146
17170
  config: o,
17147
17171
  // SSO-issued Aikaara user token, used by the ActionCable transport.
17148
17172
  // Tiledesk-only widgets ignore this; falls back to `userId` inside `mount`.
@@ -17180,7 +17204,7 @@ async function vf(s) {
17180
17204
  },
17181
17205
  async runMethodSelectPreflight(I) {
17182
17206
  const O = o.preflight;
17183
- return !O || !O.length ? {} : O.some((j) => j.trigger === "on-method-select") ? (await co(
17207
+ return !O || !O.length ? {} : O.some((j) => j.trigger === "on-method-select") ? (await uo(
17184
17208
  O,
17185
17209
  {
17186
17210
  sessionToken: u,
@@ -17198,50 +17222,50 @@ async function vf(s) {
17198
17222
  }
17199
17223
  export {
17200
17224
  To as A,
17201
- vf as B,
17225
+ _f as B,
17202
17226
  ql as C,
17203
- bf as D,
17227
+ vf as D,
17204
17228
  Qs as E,
17205
17229
  Ol as F,
17206
- _f as G,
17207
- fd as H,
17208
- Ud as I,
17209
- $d as J,
17210
- Bd as K,
17211
- Nd as L,
17230
+ xf as G,
17231
+ md as H,
17232
+ Dd as I,
17233
+ Hd as J,
17234
+ Fd as K,
17235
+ Ud as L,
17212
17236
  ec as M,
17213
- Md as N,
17214
- zd as O,
17215
- qd as P,
17216
- Rd as Q,
17217
- Pd as R,
17218
- Kd as S,
17237
+ Ld as N,
17238
+ Kd as O,
17239
+ Wd as P,
17240
+ Nd as Q,
17241
+ Rd as R,
17242
+ Yd as S,
17219
17243
  ph as T,
17220
- Id as U,
17221
- jd as V,
17222
- nd as a,
17244
+ Cd as U,
17245
+ Bd as V,
17246
+ od as a,
17223
17247
  wh as b,
17224
- od as c,
17225
- wd as d,
17226
- rd as e,
17227
- xd as f,
17228
- yd as g,
17229
- md as h,
17230
- kd as i,
17231
- _d as j,
17248
+ ad as c,
17249
+ kd as d,
17250
+ id as e,
17251
+ Ed as f,
17252
+ wd as g,
17253
+ bd as h,
17254
+ Sd as i,
17255
+ xd as j,
17232
17256
  Zl as k,
17233
17257
  Xl as l,
17234
17258
  tc as m,
17235
- Zd as n,
17259
+ tf as n,
17236
17260
  Xe as o,
17237
- of as p,
17238
- wf as q,
17239
- Vd as r,
17240
- Gd as s,
17261
+ af as p,
17262
+ kf as q,
17263
+ Gd as r,
17264
+ Jd as s,
17241
17265
  Pl as t,
17242
17266
  Sh as u,
17243
17267
  Ah as v,
17244
- nf as w,
17268
+ sf as w,
17245
17269
  yh as x,
17246
17270
  bh as y,
17247
17271
  gh as z