@sawport/peers-caller 1.0.0-alpha.7 → 1.0.0-alpha.9

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.
@@ -183,33 +183,33 @@ function oa(r, e, t) {
183
183
  return (e + t) * 3 / 4 - t;
184
184
  }
185
185
  function aa(r) {
186
- var e, t = Eo(r), s = t[0], u = t[1], l = new ra(oa(r, s, u)), g = 0, f = u > 0 ? s - 4 : s, c;
187
- for (c = 0; c < f; c += 4)
186
+ var e, t = Eo(r), s = t[0], f = t[1], l = new ra(oa(r, s, f)), g = 0, u = f > 0 ? s - 4 : s, c;
187
+ for (c = 0; c < u; c += 4)
188
188
  e = je[r.charCodeAt(c)] << 18 | je[r.charCodeAt(c + 1)] << 12 | je[r.charCodeAt(c + 2)] << 6 | je[r.charCodeAt(c + 3)], l[g++] = e >> 16 & 255, l[g++] = e >> 8 & 255, l[g++] = e & 255;
189
- return u === 2 && (e = je[r.charCodeAt(c)] << 2 | je[r.charCodeAt(c + 1)] >> 4, l[g++] = e & 255), u === 1 && (e = je[r.charCodeAt(c)] << 10 | je[r.charCodeAt(c + 1)] << 4 | je[r.charCodeAt(c + 2)] >> 2, l[g++] = e >> 8 & 255, l[g++] = e & 255), l;
189
+ return f === 2 && (e = je[r.charCodeAt(c)] << 2 | je[r.charCodeAt(c + 1)] >> 4, l[g++] = e & 255), f === 1 && (e = je[r.charCodeAt(c)] << 10 | je[r.charCodeAt(c + 1)] << 4 | je[r.charCodeAt(c + 2)] >> 2, l[g++] = e >> 8 & 255, l[g++] = e & 255), l;
190
190
  }
191
191
  function sa(r) {
192
192
  return Ye[r >> 18 & 63] + Ye[r >> 12 & 63] + Ye[r >> 6 & 63] + Ye[r & 63];
193
193
  }
194
194
  function la(r, e, t) {
195
- for (var s, u = [], l = e; l < t; l += 3)
196
- s = (r[l] << 16 & 16711680) + (r[l + 1] << 8 & 65280) + (r[l + 2] & 255), u.push(sa(s));
197
- return u.join("");
195
+ for (var s, f = [], l = e; l < t; l += 3)
196
+ s = (r[l] << 16 & 16711680) + (r[l + 1] << 8 & 65280) + (r[l + 2] & 255), f.push(sa(s));
197
+ return f.join("");
198
198
  }
199
199
  function ca(r) {
200
- for (var e, t = r.length, s = t % 3, u = [], l = 16383, g = 0, f = t - s; g < f; g += l)
201
- u.push(la(r, g, g + l > f ? f : g + l));
202
- return s === 1 ? (e = r[t - 1], u.push(
200
+ for (var e, t = r.length, s = t % 3, f = [], l = 16383, g = 0, u = t - s; g < u; g += l)
201
+ f.push(la(r, g, g + l > u ? u : g + l));
202
+ return s === 1 ? (e = r[t - 1], f.push(
203
203
  Ye[e >> 2] + Ye[e << 4 & 63] + "=="
204
- )) : s === 2 && (e = (r[t - 2] << 8) + r[t - 1], u.push(
204
+ )) : s === 2 && (e = (r[t - 2] << 8) + r[t - 1], f.push(
205
205
  Ye[e >> 10] + Ye[e >> 4 & 63] + Ye[e << 2 & 63] + "="
206
- )), u.join("");
206
+ )), f.join("");
207
207
  }
208
208
  var En = {};
209
209
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
210
- En.read = function(r, e, t, s, u) {
211
- var l, g, f = u * 8 - s - 1, c = (1 << f) - 1, v = c >> 1, h = -7, I = t ? u - 1 : 0, B = t ? -1 : 1, q = r[e + I];
212
- for (I += B, l = q & (1 << -h) - 1, q >>= -h, h += f; h > 0; l = l * 256 + r[e + I], I += B, h -= 8)
210
+ En.read = function(r, e, t, s, f) {
211
+ var l, g, u = f * 8 - s - 1, c = (1 << u) - 1, v = c >> 1, h = -7, I = t ? f - 1 : 0, B = t ? -1 : 1, q = r[e + I];
212
+ for (I += B, l = q & (1 << -h) - 1, q >>= -h, h += u; h > 0; l = l * 256 + r[e + I], I += B, h -= 8)
213
213
  ;
214
214
  for (g = l & (1 << -h) - 1, l >>= -h, h += s; h > 0; g = g * 256 + r[e + I], I += B, h -= 8)
215
215
  ;
@@ -222,11 +222,11 @@ En.read = function(r, e, t, s, u) {
222
222
  }
223
223
  return (q ? -1 : 1) * g * Math.pow(2, l - s);
224
224
  };
225
- En.write = function(r, e, t, s, u, l) {
226
- var g, f, c, v = l * 8 - u - 1, h = (1 << v) - 1, I = h >> 1, B = u === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, q = s ? 0 : l - 1, b = s ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
227
- for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (f = isNaN(e) ? 1 : 0, g = h) : (g = Math.floor(Math.log(e) / Math.LN2), e * (c = Math.pow(2, -g)) < 1 && (g--, c *= 2), g + I >= 1 ? e += B / c : e += B * Math.pow(2, 1 - I), e * c >= 2 && (g++, c /= 2), g + I >= h ? (f = 0, g = h) : g + I >= 1 ? (f = (e * c - 1) * Math.pow(2, u), g = g + I) : (f = e * Math.pow(2, I - 1) * Math.pow(2, u), g = 0)); u >= 8; r[t + q] = f & 255, q += b, f /= 256, u -= 8)
225
+ En.write = function(r, e, t, s, f, l) {
226
+ var g, u, c, v = l * 8 - f - 1, h = (1 << v) - 1, I = h >> 1, B = f === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0, q = s ? 0 : l - 1, b = s ? 1 : -1, N = e < 0 || e === 0 && 1 / e < 0 ? 1 : 0;
227
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (u = isNaN(e) ? 1 : 0, g = h) : (g = Math.floor(Math.log(e) / Math.LN2), e * (c = Math.pow(2, -g)) < 1 && (g--, c *= 2), g + I >= 1 ? e += B / c : e += B * Math.pow(2, 1 - I), e * c >= 2 && (g++, c /= 2), g + I >= h ? (u = 0, g = h) : g + I >= 1 ? (u = (e * c - 1) * Math.pow(2, f), g = g + I) : (u = e * Math.pow(2, I - 1) * Math.pow(2, f), g = 0)); f >= 8; r[t + q] = u & 255, q += b, u /= 256, f -= 8)
228
228
  ;
229
- for (g = g << u | f, v += u; v > 0; r[t + q] = g & 255, q += b, g /= 256, v -= 8)
229
+ for (g = g << f | u, v += f; v > 0; r[t + q] = g & 255, q += b, g /= 256, v -= 8)
230
230
  ;
231
231
  r[t + q - b] |= N * 128;
232
232
  };
@@ -239,9 +239,9 @@ En.write = function(r, e, t, s, u, l) {
239
239
  (function(r) {
240
240
  const e = Lt, t = En, s = typeof Symbol == "function" && typeof Symbol.for == "function" ? Symbol.for("nodejs.util.inspect.custom") : null;
241
241
  r.Buffer = h, r.SlowBuffer = k, r.INSPECT_MAX_BYTES = 50;
242
- const u = 2147483647;
243
- r.kMaxLength = u;
244
- const { Uint8Array: l, ArrayBuffer: g, SharedArrayBuffer: f } = globalThis;
242
+ const f = 2147483647;
243
+ r.kMaxLength = f;
244
+ const { Uint8Array: l, ArrayBuffer: g, SharedArrayBuffer: u } = globalThis;
245
245
  h.TYPED_ARRAY_SUPPORT = c(), !h.TYPED_ARRAY_SUPPORT && typeof console != "undefined" && typeof console.error == "function" && console.error(
246
246
  "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
247
247
  );
@@ -269,7 +269,7 @@ En.write = function(r, e, t, s, u, l) {
269
269
  }
270
270
  });
271
271
  function v(d) {
272
- if (d > u)
272
+ if (d > f)
273
273
  throw new RangeError('The value "' + d + '" is invalid for option "size"');
274
274
  const n = new l(d);
275
275
  return Object.setPrototypeOf(n, h.prototype), n;
@@ -294,7 +294,7 @@ En.write = function(r, e, t, s, u, l) {
294
294
  throw new TypeError(
295
295
  "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof d
296
296
  );
297
- if (Be(d, g) || d && Be(d.buffer, g) || typeof f != "undefined" && (Be(d, f) || d && Be(d.buffer, f)))
297
+ if (Be(d, g) || d && Be(d.buffer, g) || typeof u != "undefined" && (Be(d, u) || d && Be(d.buffer, u)))
298
298
  return R(d, n, o);
299
299
  if (typeof d == "number")
300
300
  throw new TypeError(
@@ -374,8 +374,8 @@ En.write = function(r, e, t, s, u, l) {
374
374
  return T(d.data);
375
375
  }
376
376
  function P(d) {
377
- if (d >= u)
378
- throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + u.toString(16) + " bytes");
377
+ if (d >= f)
378
+ throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + f.toString(16) + " bytes");
379
379
  return d | 0;
380
380
  }
381
381
  function k(d) {
@@ -1260,21 +1260,21 @@ typeof setImmediate == "undefined" && (globalThis.setImmediate = (r, ...e) => se
1260
1260
  typeof clearImmediate == "undefined" && (globalThis.clearImmediate = (r) => {
1261
1261
  clearTimeout(r);
1262
1262
  });
1263
- var fa = Object.defineProperty, ha = (r, e, t) => e in r ? fa(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, et = (r, e, t) => ha(r, typeof e != "symbol" ? e + "" : e, t), Ve = (r, e, t) => new Promise((s, u) => {
1263
+ var fa = Object.defineProperty, ha = (r, e, t) => e in r ? fa(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, et = (r, e, t) => ha(r, typeof e != "symbol" ? e + "" : e, t), Ve = (r, e, t) => new Promise((s, f) => {
1264
1264
  var l = (c) => {
1265
1265
  try {
1266
- f(t.next(c));
1266
+ u(t.next(c));
1267
1267
  } catch (v) {
1268
- u(v);
1268
+ f(v);
1269
1269
  }
1270
1270
  }, g = (c) => {
1271
1271
  try {
1272
- f(t.throw(c));
1272
+ u(t.throw(c));
1273
1273
  } catch (v) {
1274
- u(v);
1274
+ f(v);
1275
1275
  }
1276
- }, f = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
1277
- f((t = t.apply(r, e)).next());
1276
+ }, u = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
1277
+ u((t = t.apply(r, e)).next());
1278
1278
  });
1279
1279
  class da {
1280
1280
  constructor(e, t, s = "/apis/video-call") {
@@ -1333,8 +1333,8 @@ class da {
1333
1333
  var s;
1334
1334
  if (!this.isConnected())
1335
1335
  throw new Error("Socket not connected");
1336
- console.log(`[CallSocket] Emitting ${e}:`, t), (s = this.socket) == null || s.emit(e, t, (u) => {
1337
- u != null && u.error && console.error(`[CallSocket] Error in ${e}:`, u.error);
1336
+ console.log(`[CallSocket] Emitting ${e}:`, t), (s = this.socket) == null || s.emit(e, t, (f) => {
1337
+ f != null && f.error && console.error(`[CallSocket] Error in ${e}:`, f.error);
1338
1338
  });
1339
1339
  }
1340
1340
  /**
@@ -1344,13 +1344,13 @@ class da {
1344
1344
  return Ve(this, null, function* () {
1345
1345
  if (!this.isConnected())
1346
1346
  throw new Error("Socket not connected");
1347
- return console.log(`[CallSocket] Emitting ${e} with response:`, t), new Promise((u, l) => {
1347
+ return console.log(`[CallSocket] Emitting ${e} with response:`, t), new Promise((f, l) => {
1348
1348
  var g;
1349
- const f = setTimeout(() => {
1349
+ const u = setTimeout(() => {
1350
1350
  l(new Error(`Timeout waiting for response to ${e}`));
1351
1351
  }, s);
1352
1352
  console.log(`[CallSocket] about to emit: ${e}...`), (g = this.socket) == null || g.emit(e, t, (c) => {
1353
- clearTimeout(f), c != null && c.error ? (console.error(`[CallSocket] Error in ${e}:`, c.error), l(new Error(c.error))) : (console.log(`[CallSocket] Response for ${e}:`, c), u(c));
1353
+ clearTimeout(u), c != null && c.error ? (console.error(`[CallSocket] Error in ${e}:`, c.error), l(new Error(c.error))) : (console.log(`[CallSocket] Response for ${e}:`, c), f(c));
1354
1354
  });
1355
1355
  });
1356
1356
  });
@@ -1451,11 +1451,12 @@ class da {
1451
1451
  /**
1452
1452
  * End recording
1453
1453
  */
1454
- endRecording(e, t) {
1454
+ endRecording(e, t, s) {
1455
1455
  return Ve(this, null, function* () {
1456
1456
  return this.emitWithResponse("call.recording.end", {
1457
1457
  roomId: e,
1458
- recordingId: t
1458
+ recordingId: t,
1459
+ transcripts: s
1459
1460
  });
1460
1461
  });
1461
1462
  }
@@ -1512,21 +1513,21 @@ class da {
1512
1513
  };
1513
1514
  }
1514
1515
  }
1515
- var pa = Object.defineProperty, ga = (r, e, t) => e in r ? pa(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, gt = (r, e, t) => ga(r, typeof e != "symbol" ? e + "" : e, t), Et = (r, e, t) => new Promise((s, u) => {
1516
+ var pa = Object.defineProperty, ga = (r, e, t) => e in r ? pa(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, gt = (r, e, t) => ga(r, typeof e != "symbol" ? e + "" : e, t), Et = (r, e, t) => new Promise((s, f) => {
1516
1517
  var l = (c) => {
1517
1518
  try {
1518
- f(t.next(c));
1519
+ u(t.next(c));
1519
1520
  } catch (v) {
1520
- u(v);
1521
+ f(v);
1521
1522
  }
1522
1523
  }, g = (c) => {
1523
1524
  try {
1524
- f(t.throw(c));
1525
+ u(t.throw(c));
1525
1526
  } catch (v) {
1526
- u(v);
1527
+ f(v);
1527
1528
  }
1528
- }, f = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
1529
- f((t = t.apply(r, e)).next());
1529
+ }, u = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
1530
+ u((t = t.apply(r, e)).next());
1530
1531
  });
1531
1532
  class ya {
1532
1533
  constructor(e = { video: !0, audio: !0 }) {
@@ -1598,8 +1599,8 @@ class ya {
1598
1599
  console.warn("[CallMediaStream] No stream available for audio toggle");
1599
1600
  return;
1600
1601
  }
1601
- t.getAudioTracks().forEach((u) => {
1602
- u.enabled = e;
1602
+ t.getAudioTracks().forEach((f) => {
1603
+ f.enabled = e;
1603
1604
  }), console.log(`[CallMediaStream] Audio ${e ? "enabled" : "disabled"}`);
1604
1605
  }
1605
1606
  /**
@@ -1611,8 +1612,8 @@ class ya {
1611
1612
  console.warn("[CallMediaStream] No stream available for video toggle");
1612
1613
  return;
1613
1614
  }
1614
- t.getVideoTracks().forEach((u) => {
1615
- u.enabled = e;
1615
+ t.getVideoTracks().forEach((f) => {
1616
+ f.enabled = e;
1616
1617
  }), console.log(`[CallMediaStream] Video ${e ? "enabled" : "disabled"}`);
1617
1618
  }
1618
1619
  /**
@@ -1800,14 +1801,14 @@ var Ct = { exports: {} }, qt, Mn;
1800
1801
  function ma() {
1801
1802
  if (Mn) return qt;
1802
1803
  Mn = 1;
1803
- var r = 1e3, e = r * 60, t = e * 60, s = t * 24, u = s * 7, l = s * 365.25;
1804
+ var r = 1e3, e = r * 60, t = e * 60, s = t * 24, f = s * 7, l = s * 365.25;
1804
1805
  qt = function(h, I) {
1805
1806
  I = I || {};
1806
1807
  var B = typeof h;
1807
1808
  if (B === "string" && h.length > 0)
1808
1809
  return g(h);
1809
1810
  if (B === "number" && isFinite(h))
1810
- return I.long ? c(h) : f(h);
1811
+ return I.long ? c(h) : u(h);
1811
1812
  throw new Error(
1812
1813
  "val is not a non-empty string or a valid number. val=" + JSON.stringify(h)
1813
1814
  );
@@ -1829,7 +1830,7 @@ function ma() {
1829
1830
  case "weeks":
1830
1831
  case "week":
1831
1832
  case "w":
1832
- return B * u;
1833
+ return B * f;
1833
1834
  case "days":
1834
1835
  case "day":
1835
1836
  case "d":
@@ -1864,7 +1865,7 @@ function ma() {
1864
1865
  }
1865
1866
  }
1866
1867
  }
1867
- function f(h) {
1868
+ function u(h) {
1868
1869
  var I = Math.abs(h);
1869
1870
  return I >= s ? Math.round(h / s) + "d" : I >= t ? Math.round(h / t) + "h" : I >= e ? Math.round(h / e) + "m" : I >= r ? Math.round(h / r) + "s" : h + "ms";
1870
1871
  }
@@ -1883,7 +1884,7 @@ function va() {
1883
1884
  if (Ln) return Wt;
1884
1885
  Ln = 1;
1885
1886
  function r(e) {
1886
- s.debug = s, s.default = s, s.coerce = v, s.disable = f, s.enable = l, s.enabled = c, s.humanize = ma(), s.destroy = h, Object.keys(e).forEach((I) => {
1887
+ s.debug = s, s.default = s, s.coerce = v, s.disable = u, s.enable = l, s.enabled = c, s.humanize = ma(), s.destroy = h, Object.keys(e).forEach((I) => {
1887
1888
  s[I] = e[I];
1888
1889
  }), s.names = [], s.skips = [], s.formatters = {};
1889
1890
  function t(I) {
@@ -1913,7 +1914,7 @@ function va() {
1913
1914
  return C;
1914
1915
  }), s.formatArgs.call(R, m), (R.log || s.log).apply(R, m);
1915
1916
  }
1916
- return T.namespace = I, T.useColors = s.useColors(), T.color = s.selectColor(I), T.extend = u, T.destroy = s.destroy, Object.defineProperty(T, "enabled", {
1917
+ return T.namespace = I, T.useColors = s.useColors(), T.color = s.selectColor(I), T.extend = f, T.destroy = s.destroy, Object.defineProperty(T, "enabled", {
1917
1918
  enumerable: !0,
1918
1919
  configurable: !1,
1919
1920
  get: () => q !== null ? q : (b !== s.namespaces && (b = s.namespaces, N = s.enabled(I)), N),
@@ -1922,7 +1923,7 @@ function va() {
1922
1923
  }
1923
1924
  }), typeof s.init == "function" && s.init(T), T;
1924
1925
  }
1925
- function u(I, B) {
1926
+ function f(I, B) {
1926
1927
  const q = s(this.namespace + (typeof B == "undefined" ? ":" : B) + I);
1927
1928
  return q.log = this.log, q;
1928
1929
  }
@@ -1945,7 +1946,7 @@ function va() {
1945
1946
  b++;
1946
1947
  return b === B.length;
1947
1948
  }
1948
- function f() {
1949
+ function u() {
1949
1950
  const I = [
1950
1951
  ...s.names,
1951
1952
  ...s.skips.map((B) => "-" + B)
@@ -1974,7 +1975,7 @@ function va() {
1974
1975
  var Nn;
1975
1976
  function wa() {
1976
1977
  return Nn || (Nn = 1, function(r, e) {
1977
- e.formatArgs = s, e.save = u, e.load = l, e.useColors = t, e.storage = g(), e.destroy = /* @__PURE__ */ (() => {
1978
+ e.formatArgs = s, e.save = f, e.load = l, e.useColors = t, e.storage = g(), e.destroy = /* @__PURE__ */ (() => {
1978
1979
  let c = !1;
1979
1980
  return () => {
1980
1981
  c || (c = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
@@ -2081,7 +2082,7 @@ function wa() {
2081
2082
  }
2082
2083
  e.log = console.debug || console.log || (() => {
2083
2084
  });
2084
- function u(c) {
2085
+ function f(c) {
2085
2086
  try {
2086
2087
  c ? e.storage.setItem("debug", c) : e.storage.removeItem("debug");
2087
2088
  } catch (v) {
@@ -2102,8 +2103,8 @@ function wa() {
2102
2103
  }
2103
2104
  }
2104
2105
  r.exports = va()(e);
2105
- const { formatters: f } = r.exports;
2106
- f.j = function(c) {
2106
+ const { formatters: u } = r.exports;
2107
+ u.j = function(c) {
2107
2108
  try {
2108
2109
  return JSON.stringify(c);
2109
2110
  } catch (v) {
@@ -2130,9 +2131,9 @@ function mt() {
2130
2131
  Object.defineProperties(r, { __esModule: { value: !0 }, [Symbol.toStringTag]: { value: "Module" } });
2131
2132
  var e = {}, t = {};
2132
2133
  t.byteLength = h, t.toByteArray = B, t.fromByteArray = N;
2133
- for (var s = [], u = [], l = typeof Uint8Array != "undefined" ? Uint8Array : Array, g = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", f = 0, c = g.length; f < c; ++f)
2134
- s[f] = g[f], u[g.charCodeAt(f)] = f;
2135
- u[45] = 62, u[95] = 63;
2134
+ for (var s = [], f = [], l = typeof Uint8Array != "undefined" ? Uint8Array : Array, g = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = 0, c = g.length; u < c; ++u)
2135
+ s[u] = g[u], f[g.charCodeAt(u)] = u;
2136
+ f[45] = 62, f[95] = 63;
2136
2137
  function v(R) {
2137
2138
  var A = R.length;
2138
2139
  if (A % 4 > 0)
@@ -2152,8 +2153,8 @@ function mt() {
2152
2153
  function B(R) {
2153
2154
  var A, P = v(R), k = P[0], S = P[1], C = new l(I(R, k, S)), M = 0, W = S > 0 ? k - 4 : k, X;
2154
2155
  for (X = 0; X < W; X += 4)
2155
- A = u[R.charCodeAt(X)] << 18 | u[R.charCodeAt(X + 1)] << 12 | u[R.charCodeAt(X + 2)] << 6 | u[R.charCodeAt(X + 3)], C[M++] = A >> 16 & 255, C[M++] = A >> 8 & 255, C[M++] = A & 255;
2156
- return S === 2 && (A = u[R.charCodeAt(X)] << 2 | u[R.charCodeAt(X + 1)] >> 4, C[M++] = A & 255), S === 1 && (A = u[R.charCodeAt(X)] << 10 | u[R.charCodeAt(X + 1)] << 4 | u[R.charCodeAt(X + 2)] >> 2, C[M++] = A >> 8 & 255, C[M++] = A & 255), C;
2156
+ A = f[R.charCodeAt(X)] << 18 | f[R.charCodeAt(X + 1)] << 12 | f[R.charCodeAt(X + 2)] << 6 | f[R.charCodeAt(X + 3)], C[M++] = A >> 16 & 255, C[M++] = A >> 8 & 255, C[M++] = A & 255;
2157
+ return S === 2 && (A = f[R.charCodeAt(X)] << 2 | f[R.charCodeAt(X + 1)] >> 4, C[M++] = A & 255), S === 1 && (A = f[R.charCodeAt(X)] << 10 | f[R.charCodeAt(X + 1)] << 4 | f[R.charCodeAt(X + 2)] >> 2, C[M++] = A >> 8 & 255, C[M++] = A & 255), C;
2157
2158
  }
2158
2159
  function q(R) {
2159
2160
  return s[R >> 18 & 63] + s[R >> 12 & 63] + s[R >> 6 & 63] + s[R & 63];
@@ -3151,23 +3152,23 @@ var Un;
3151
3152
  function Co() {
3152
3153
  return Un || (Un = 1, function(r, e) {
3153
3154
  var t = mt(), s = t.Buffer;
3154
- function u(g, f) {
3155
+ function f(g, u) {
3155
3156
  for (var c in g)
3156
- f[c] = g[c];
3157
+ u[c] = g[c];
3157
3158
  }
3158
- s.from && s.alloc && s.allocUnsafe && s.allocUnsafeSlow ? r.exports = t : (u(t, e), e.Buffer = l);
3159
- function l(g, f, c) {
3160
- return s(g, f, c);
3159
+ s.from && s.alloc && s.allocUnsafe && s.allocUnsafeSlow ? r.exports = t : (f(t, e), e.Buffer = l);
3160
+ function l(g, u, c) {
3161
+ return s(g, u, c);
3161
3162
  }
3162
- l.prototype = Object.create(s.prototype), u(s, l), l.from = function(g, f, c) {
3163
+ l.prototype = Object.create(s.prototype), f(s, l), l.from = function(g, u, c) {
3163
3164
  if (typeof g == "number")
3164
3165
  throw new TypeError("Argument must not be a number");
3165
- return s(g, f, c);
3166
- }, l.alloc = function(g, f, c) {
3166
+ return s(g, u, c);
3167
+ }, l.alloc = function(g, u, c) {
3167
3168
  if (typeof g != "number")
3168
3169
  throw new TypeError("Argument must be a number");
3169
3170
  var v = s(g);
3170
- return f !== void 0 ? typeof c == "string" ? v.fill(f, c) : v.fill(f) : v.fill(0), v;
3171
+ return u !== void 0 ? typeof c == "string" ? v.fill(u, c) : v.fill(u) : v.fill(0), v;
3171
3172
  }, l.allocUnsafe = function(g) {
3172
3173
  if (typeof g != "number")
3173
3174
  throw new TypeError("Argument must be a number");
@@ -3188,19 +3189,19 @@ function Sa() {
3188
3189
  throw new Error(`Secure random number generation is not supported by this browser.
3189
3190
  Use Chrome, Firefox or Internet Explorer 11`);
3190
3191
  }
3191
- var s = Co().Buffer, u = globalThis.crypto || globalThis.msCrypto;
3192
- u && u.getRandomValues ? Rt.exports = l : Rt.exports = t;
3193
- function l(g, f) {
3192
+ var s = Co().Buffer, f = globalThis.crypto || globalThis.msCrypto;
3193
+ f && f.getRandomValues ? Rt.exports = l : Rt.exports = t;
3194
+ function l(g, u) {
3194
3195
  if (g > e) throw new RangeError("requested too many random bytes");
3195
3196
  var c = s.allocUnsafe(g);
3196
3197
  if (g > 0)
3197
3198
  if (g > r)
3198
3199
  for (var v = 0; v < g; v += r)
3199
- u.getRandomValues(c.slice(v, v + r));
3200
+ f.getRandomValues(c.slice(v, v + r));
3200
3201
  else
3201
- u.getRandomValues(c);
3202
- return typeof f == "function" ? oe.nextTick(function() {
3203
- f(null, c);
3202
+ f.getRandomValues(c);
3203
+ return typeof u == "function" ? oe.nextTick(function() {
3204
+ u(null, c);
3204
3205
  }) : c;
3205
3206
  }
3206
3207
  return Rt.exports;
@@ -3220,7 +3221,7 @@ function Rn() {
3220
3221
  function s(P) {
3221
3222
  console && console.warn && console.warn(P);
3222
3223
  }
3223
- var u = Number.isNaN || function(k) {
3224
+ var f = Number.isNaN || function(k) {
3224
3225
  return k !== k;
3225
3226
  };
3226
3227
  function l() {
@@ -3228,7 +3229,7 @@ function Rn() {
3228
3229
  }
3229
3230
  At.exports = l, At.exports.once = m, l.EventEmitter = l, l.prototype._events = void 0, l.prototype._eventsCount = 0, l.prototype._maxListeners = void 0;
3230
3231
  var g = 10;
3231
- function f(P) {
3232
+ function u(P) {
3232
3233
  if (typeof P != "function")
3233
3234
  throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof P);
3234
3235
  }
@@ -3238,14 +3239,14 @@ function Rn() {
3238
3239
  return g;
3239
3240
  },
3240
3241
  set: function(P) {
3241
- if (typeof P != "number" || P < 0 || u(P))
3242
+ if (typeof P != "number" || P < 0 || f(P))
3242
3243
  throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + P + ".");
3243
3244
  g = P;
3244
3245
  }
3245
3246
  }), l.init = function() {
3246
3247
  (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
3247
3248
  }, l.prototype.setMaxListeners = function(k) {
3248
- if (typeof k != "number" || k < 0 || u(k))
3249
+ if (typeof k != "number" || k < 0 || f(k))
3249
3250
  throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + k + ".");
3250
3251
  return this._maxListeners = k, this;
3251
3252
  };
@@ -3280,7 +3281,7 @@ function Rn() {
3280
3281
  };
3281
3282
  function v(P, k, S, C) {
3282
3283
  var M, W, X;
3283
- if (f(S), W = P._events, W === void 0 ? (W = P._events = /* @__PURE__ */ Object.create(null), P._eventsCount = 0) : (W.newListener !== void 0 && (P.emit(
3284
+ if (u(S), W = P._events, W === void 0 ? (W = P._events = /* @__PURE__ */ Object.create(null), P._eventsCount = 0) : (W.newListener !== void 0 && (P.emit(
3284
3285
  "newListener",
3285
3286
  k,
3286
3287
  S.listener ? S.listener : S
@@ -3307,12 +3308,12 @@ function Rn() {
3307
3308
  return M.listener = S, C.wrapFn = M, M;
3308
3309
  }
3309
3310
  l.prototype.once = function(k, S) {
3310
- return f(S), this.on(k, I(this, k, S)), this;
3311
+ return u(S), this.on(k, I(this, k, S)), this;
3311
3312
  }, l.prototype.prependOnceListener = function(k, S) {
3312
- return f(S), this.prependListener(k, I(this, k, S)), this;
3313
+ return u(S), this.prependListener(k, I(this, k, S)), this;
3313
3314
  }, l.prototype.removeListener = function(k, S) {
3314
3315
  var C, M, W, X, te;
3315
- if (f(S), M = this._events, M === void 0)
3316
+ if (u(S), M = this._events, M === void 0)
3316
3317
  return this;
3317
3318
  if (C = M[k], C === void 0)
3318
3319
  return this;
@@ -3431,8 +3432,8 @@ function Po() {
3431
3432
  var e = {}, t = Symbol("test"), s = Object(t);
3432
3433
  if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(s) !== "[object Symbol]")
3433
3434
  return !1;
3434
- var u = 42;
3435
- e[t] = u;
3435
+ var f = 42;
3436
+ e[t] = f;
3436
3437
  for (var l in e)
3437
3438
  return !1;
3438
3439
  if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
@@ -3441,11 +3442,11 @@ function Po() {
3441
3442
  if (g.length !== 1 || g[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
3442
3443
  return !1;
3443
3444
  if (typeof Object.getOwnPropertyDescriptor == "function") {
3444
- var f = (
3445
+ var u = (
3445
3446
  /** @type {PropertyDescriptor} */
3446
3447
  Object.getOwnPropertyDescriptor(e, t)
3447
3448
  );
3448
- if (f.value !== u || f.enumerable !== !0)
3449
+ if (u.value !== f || u.enumerable !== !0)
3449
3450
  return !1;
3450
3451
  }
3451
3452
  return !0;
@@ -3585,7 +3586,7 @@ var wr, hi;
3585
3586
  function Fa() {
3586
3587
  if (hi) return wr;
3587
3588
  hi = 1;
3588
- var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, s = "[object Function]", u = function(c, v) {
3589
+ var r = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, t = Math.max, s = "[object Function]", f = function(c, v) {
3589
3590
  for (var h = [], I = 0; I < c.length; I += 1)
3590
3591
  h[I] = c[I];
3591
3592
  for (var B = 0; B < v.length; B += 1)
@@ -3595,9 +3596,9 @@ function Fa() {
3595
3596
  for (var h = [], I = v, B = 0; I < c.length; I += 1, B += 1)
3596
3597
  h[B] = c[I];
3597
3598
  return h;
3598
- }, g = function(f, c) {
3599
- for (var v = "", h = 0; h < f.length; h += 1)
3600
- v += f[h], h + 1 < f.length && (v += c);
3599
+ }, g = function(u, c) {
3600
+ for (var v = "", h = 0; h < u.length; h += 1)
3601
+ v += u[h], h + 1 < u.length && (v += c);
3601
3602
  return v;
3602
3603
  };
3603
3604
  return wr = function(c) {
@@ -3608,13 +3609,13 @@ function Fa() {
3608
3609
  if (this instanceof I) {
3609
3610
  var m = v.apply(
3610
3611
  this,
3611
- u(h, arguments)
3612
+ f(h, arguments)
3612
3613
  );
3613
3614
  return Object(m) === m ? m : this;
3614
3615
  }
3615
3616
  return v.apply(
3616
3617
  c,
3617
- u(h, arguments)
3618
+ f(h, arguments)
3618
3619
  );
3619
3620
  }, q = t(0, v.length - h.length), b = [], N = 0; N < q; N++)
3620
3621
  b[N] = "$" + N;
@@ -3679,11 +3680,11 @@ function $a() {
3679
3680
  Object.prototype,
3680
3681
  /** @type {keyof typeof Object.prototype} */
3681
3682
  "__proto__"
3682
- ), u = Object, l = u.getPrototypeOf;
3683
+ ), f = Object, l = f.getPrototypeOf;
3683
3684
  return Pr = s && typeof s.get == "function" ? r([s.get]) : typeof l == "function" ? (
3684
3685
  /** @type {import('./get')} */
3685
- function(f) {
3686
- return l(f == null ? f : u(f));
3686
+ function(u) {
3687
+ return l(u == null ? u : f(u));
3687
3688
  }
3688
3689
  ) : !1, Pr;
3689
3690
  }
@@ -3692,14 +3693,14 @@ function In() {
3692
3693
  if (bi) return Tr;
3693
3694
  bi = 1;
3694
3695
  var r = Io(), e = Bo(), t = /* @__PURE__ */ $a();
3695
- return Tr = r ? function(u) {
3696
- return r(u);
3697
- } : e ? function(u) {
3698
- if (!u || typeof u != "object" && typeof u != "function")
3696
+ return Tr = r ? function(f) {
3697
+ return r(f);
3698
+ } : e ? function(f) {
3699
+ if (!f || typeof f != "object" && typeof f != "function")
3699
3700
  throw new TypeError("getProto: not an object");
3700
- return e(u);
3701
- } : t ? function(u) {
3702
- return t(u);
3701
+ return e(f);
3702
+ } : t ? function(f) {
3703
+ return t(f);
3703
3704
  } : null, Tr;
3704
3705
  }
3705
3706
  var Ar, Si;
@@ -3713,13 +3714,13 @@ var Ir, _i;
3713
3714
  function Mo() {
3714
3715
  if (_i) return Ir;
3715
3716
  _i = 1;
3716
- var r, e = /* @__PURE__ */ To(), t = /* @__PURE__ */ _a(), s = /* @__PURE__ */ Ea(), u = /* @__PURE__ */ Ca(), l = /* @__PURE__ */ Ra(), g = /* @__PURE__ */ Ao(), f = /* @__PURE__ */ vt(), c = /* @__PURE__ */ Pa(), v = /* @__PURE__ */ Ta(), h = /* @__PURE__ */ Aa(), I = /* @__PURE__ */ Ia(), B = /* @__PURE__ */ Ba(), q = /* @__PURE__ */ ka(), b = /* @__PURE__ */ Oa(), N = /* @__PURE__ */ La(), T = Function, m = function(Z) {
3717
+ var r, e = /* @__PURE__ */ To(), t = /* @__PURE__ */ _a(), s = /* @__PURE__ */ Ea(), f = /* @__PURE__ */ Ca(), l = /* @__PURE__ */ Ra(), g = /* @__PURE__ */ Ao(), u = /* @__PURE__ */ vt(), c = /* @__PURE__ */ Pa(), v = /* @__PURE__ */ Ta(), h = /* @__PURE__ */ Aa(), I = /* @__PURE__ */ Ia(), B = /* @__PURE__ */ Ba(), q = /* @__PURE__ */ ka(), b = /* @__PURE__ */ Oa(), N = /* @__PURE__ */ La(), T = Function, m = function(Z) {
3717
3718
  try {
3718
3719
  return T('"use strict"; return (' + Z + ").constructor;")();
3719
3720
  } catch (Q) {
3720
3721
  }
3721
3722
  }, R = /* @__PURE__ */ ft(), A = /* @__PURE__ */ Dt(), P = function() {
3722
- throw new f();
3723
+ throw new u();
3723
3724
  }, k = R ? function() {
3724
3725
  try {
3725
3726
  return arguments.callee, P;
@@ -3779,7 +3780,7 @@ function Mo() {
3779
3780
  "%parseInt%": parseInt,
3780
3781
  "%Promise%": typeof Promise == "undefined" ? r : Promise,
3781
3782
  "%Proxy%": typeof Proxy == "undefined" ? r : Proxy,
3782
- "%RangeError%": u,
3783
+ "%RangeError%": f,
3783
3784
  "%ReferenceError%": l,
3784
3785
  "%Reflect%": typeof Reflect == "undefined" ? r : Reflect,
3785
3786
  "%RegExp%": RegExp,
@@ -3792,7 +3793,7 @@ function Mo() {
3792
3793
  "%SyntaxError%": g,
3793
3794
  "%ThrowTypeError%": k,
3794
3795
  "%TypedArray%": ue,
3795
- "%TypeError%": f,
3796
+ "%TypeError%": u,
3796
3797
  "%Uint8Array%": typeof Uint8Array == "undefined" ? r : Uint8Array,
3797
3798
  "%Uint8ClampedArray%": typeof Uint8ClampedArray == "undefined" ? r : Uint8ClampedArray,
3798
3799
  "%Uint16Array%": typeof Uint16Array == "undefined" ? r : Uint16Array,
@@ -3905,7 +3906,7 @@ function Mo() {
3905
3906
  if (we(Te, w) && (z = Te[w], w = "%" + z[0] + "%"), we(fe, w)) {
3906
3907
  var ee = fe[w];
3907
3908
  if (ee === U && (ee = Ee(w)), typeof ee == "undefined" && !y)
3908
- throw new f("intrinsic " + Q + " exists, but is not available. Please file an issue!");
3909
+ throw new u("intrinsic " + Q + " exists, but is not available. Please file an issue!");
3909
3910
  return {
3910
3911
  alias: z,
3911
3912
  name: w,
@@ -3916,9 +3917,9 @@ function Mo() {
3916
3917
  };
3917
3918
  return Ir = function(Q, y) {
3918
3919
  if (typeof Q != "string" || Q.length === 0)
3919
- throw new f("intrinsic name must be a non-empty string");
3920
+ throw new u("intrinsic name must be a non-empty string");
3920
3921
  if (arguments.length > 1 && typeof y != "boolean")
3921
- throw new f('"allowMissing" argument must be a boolean');
3922
+ throw new u('"allowMissing" argument must be a boolean');
3922
3923
  if (J(/^%?[^%]*%?$/, Q) === null)
3923
3924
  throw new g("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3924
3925
  var w = F(Q), z = w.length > 0 ? w[0] : "", ee = G("%" + z + "%", y), se = ee.name, ne = ee.value, ae = !1, Oe = ee.alias;
@@ -3932,7 +3933,7 @@ function Mo() {
3932
3933
  else if (ne != null) {
3933
3934
  if (!(Le in ne)) {
3934
3935
  if (!y)
3935
- throw new f("base intrinsic for " + Q + " exists, but the property is not available.");
3936
+ throw new u("base intrinsic for " + Q + " exists, but the property is not available.");
3936
3937
  return;
3937
3938
  }
3938
3939
  if (R && H + 1 >= w.length) {
@@ -3951,12 +3952,12 @@ function bt() {
3951
3952
  if (Ei) return Br;
3952
3953
  Ei = 1;
3953
3954
  var r = /* @__PURE__ */ Mo(), e = An(), t = e([r("%String.prototype.indexOf%")]);
3954
- return Br = function(u, l) {
3955
+ return Br = function(f, l) {
3955
3956
  var g = (
3956
3957
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
3957
- r(u, !!l)
3958
+ r(f, !!l)
3958
3959
  );
3959
- return typeof g == "function" && t(u, ".prototype.") > -1 ? e(
3960
+ return typeof g == "function" && t(f, ".prototype.") > -1 ? e(
3960
3961
  /** @type {const} */
3961
3962
  [g]
3962
3963
  ) : g;
@@ -3966,28 +3967,28 @@ var kr, Ci;
3966
3967
  function ja() {
3967
3968
  if (Ci) return kr;
3968
3969
  Ci = 1;
3969
- var r = Nt()(), e = /* @__PURE__ */ bt(), t = e("Object.prototype.toString"), s = function(f) {
3970
- return r && f && typeof f == "object" && Symbol.toStringTag in f ? !1 : t(f) === "[object Arguments]";
3971
- }, u = function(f) {
3972
- return s(f) ? !0 : f !== null && typeof f == "object" && "length" in f && typeof f.length == "number" && f.length >= 0 && t(f) !== "[object Array]" && "callee" in f && t(f.callee) === "[object Function]";
3970
+ var r = Nt()(), e = /* @__PURE__ */ bt(), t = e("Object.prototype.toString"), s = function(u) {
3971
+ return r && u && typeof u == "object" && Symbol.toStringTag in u ? !1 : t(u) === "[object Arguments]";
3972
+ }, f = function(u) {
3973
+ return s(u) ? !0 : u !== null && typeof u == "object" && "length" in u && typeof u.length == "number" && u.length >= 0 && t(u) !== "[object Array]" && "callee" in u && t(u.callee) === "[object Function]";
3973
3974
  }, l = function() {
3974
3975
  return s(arguments);
3975
3976
  }();
3976
- return s.isLegacyArguments = u, kr = l ? s : u, kr;
3977
+ return s.isLegacyArguments = f, kr = l ? s : f, kr;
3977
3978
  }
3978
3979
  var Or, Ri;
3979
3980
  function xa() {
3980
3981
  if (Ri) return Or;
3981
3982
  Ri = 1;
3982
- var r = /* @__PURE__ */ bt(), e = Nt()(), t = /* @__PURE__ */ Oo(), s = /* @__PURE__ */ ft(), u;
3983
+ var r = /* @__PURE__ */ bt(), e = Nt()(), t = /* @__PURE__ */ Oo(), s = /* @__PURE__ */ ft(), f;
3983
3984
  if (e) {
3984
- var l = r("RegExp.prototype.exec"), g = {}, f = function() {
3985
+ var l = r("RegExp.prototype.exec"), g = {}, u = function() {
3985
3986
  throw g;
3986
3987
  }, c = {
3987
- toString: f,
3988
- valueOf: f
3988
+ toString: u,
3989
+ valueOf: u
3989
3990
  };
3990
- typeof Symbol.toPrimitive == "symbol" && (c[Symbol.toPrimitive] = f), u = function(B) {
3991
+ typeof Symbol.toPrimitive == "symbol" && (c[Symbol.toPrimitive] = u), f = function(B) {
3991
3992
  if (!B || typeof B != "object")
3992
3993
  return !1;
3993
3994
  var q = (
@@ -4013,11 +4014,11 @@ function xa() {
4013
4014
  };
4014
4015
  } else {
4015
4016
  var v = r("Object.prototype.toString"), h = "[object RegExp]";
4016
- u = function(B) {
4017
+ f = function(B) {
4017
4018
  return !B || typeof B != "object" && typeof B != "function" ? !1 : v(B) === h;
4018
4019
  };
4019
4020
  }
4020
- return Or = u, Or;
4021
+ return Or = f, Or;
4021
4022
  }
4022
4023
  var Mr, Pi;
4023
4024
  function qa() {
@@ -4027,8 +4028,8 @@ function qa() {
4027
4028
  return Mr = function(l) {
4028
4029
  if (!e(l))
4029
4030
  throw new s("`regex` must be a RegExp");
4030
- return function(f) {
4031
- return t(l, f) !== null;
4031
+ return function(u) {
4032
+ return t(l, u) !== null;
4032
4033
  };
4033
4034
  }, Mr;
4034
4035
  }
@@ -4036,7 +4037,7 @@ var Lr, Ti;
4036
4037
  function Wa() {
4037
4038
  if (Ti) return Lr;
4038
4039
  Ti = 1;
4039
- var r = /* @__PURE__ */ bt(), e = /* @__PURE__ */ qa(), t = e(/^\s*(?:function)?\*/), s = Nt()(), u = In(), l = r("Object.prototype.toString"), g = r("Function.prototype.toString"), f = function() {
4040
+ var r = /* @__PURE__ */ bt(), e = /* @__PURE__ */ qa(), t = e(/^\s*(?:function)?\*/), s = Nt()(), f = In(), l = r("Object.prototype.toString"), g = r("Function.prototype.toString"), u = function() {
4040
4041
  if (!s)
4041
4042
  return !1;
4042
4043
  try {
@@ -4053,16 +4054,16 @@ function Wa() {
4053
4054
  var I = l(h);
4054
4055
  return I === "[object GeneratorFunction]";
4055
4056
  }
4056
- if (!u)
4057
+ if (!f)
4057
4058
  return !1;
4058
4059
  if (typeof c == "undefined") {
4059
- var B = f();
4060
+ var B = u();
4060
4061
  c = B ? (
4061
4062
  /** @type {GeneratorFunctionConstructor} */
4062
- u(B)
4063
+ f(B)
4063
4064
  ) : !1;
4064
4065
  }
4065
- return u(h) === c;
4066
+ return f(h) === c;
4066
4067
  }, Lr;
4067
4068
  }
4068
4069
  var Nr, Ai;
@@ -4084,10 +4085,10 @@ function Ga() {
4084
4085
  }
4085
4086
  else
4086
4087
  e = null;
4087
- var u = /^\s*class\b/, l = function(A) {
4088
+ var f = /^\s*class\b/, l = function(A) {
4088
4089
  try {
4089
4090
  var P = r.call(A);
4090
- return u.test(P);
4091
+ return f.test(P);
4091
4092
  } catch (k) {
4092
4093
  return !1;
4093
4094
  }
@@ -4097,15 +4098,15 @@ function Ga() {
4097
4098
  } catch (P) {
4098
4099
  return !1;
4099
4100
  }
4100
- }, f = Object.prototype.toString, c = "[object Object]", v = "[object Function]", h = "[object GeneratorFunction]", I = "[object HTMLAllCollection]", B = "[object HTML document.all class]", q = "[object HTMLCollection]", b = typeof Symbol == "function" && !!Symbol.toStringTag, N = !(0 in [,]), T = function() {
4101
+ }, u = Object.prototype.toString, c = "[object Object]", v = "[object Function]", h = "[object GeneratorFunction]", I = "[object HTMLAllCollection]", B = "[object HTML document.all class]", q = "[object HTMLCollection]", b = typeof Symbol == "function" && !!Symbol.toStringTag, N = !(0 in [,]), T = function() {
4101
4102
  return !1;
4102
4103
  };
4103
4104
  if (typeof document == "object") {
4104
4105
  var m = document.all;
4105
- f.call(m) === f.call(document.all) && (T = function(A) {
4106
+ u.call(m) === u.call(document.all) && (T = function(A) {
4106
4107
  if ((N || !A) && (typeof A == "undefined" || typeof A == "object"))
4107
4108
  try {
4108
- var P = f.call(A);
4109
+ var P = u.call(A);
4109
4110
  return (P === I || P === B || P === q || P === c) && A("") == null;
4110
4111
  } catch (k) {
4111
4112
  }
@@ -4133,7 +4134,7 @@ function Ga() {
4133
4134
  return g(A);
4134
4135
  if (l(A))
4135
4136
  return !1;
4136
- var P = f.call(A);
4137
+ var P = u.call(A);
4137
4138
  return P !== v && P !== h && !/^\[object HTML/.test(P) ? !1 : g(A);
4138
4139
  }, Nr;
4139
4140
  }
@@ -4144,21 +4145,21 @@ function Va() {
4144
4145
  var r = Ga(), e = Object.prototype.toString, t = Object.prototype.hasOwnProperty, s = function(c, v, h) {
4145
4146
  for (var I = 0, B = c.length; I < B; I++)
4146
4147
  t.call(c, I) && (h == null ? v(c[I], I, c) : v.call(h, c[I], I, c));
4147
- }, u = function(c, v, h) {
4148
+ }, f = function(c, v, h) {
4148
4149
  for (var I = 0, B = c.length; I < B; I++)
4149
4150
  h == null ? v(c.charAt(I), I, c) : v.call(h, c.charAt(I), I, c);
4150
4151
  }, l = function(c, v, h) {
4151
4152
  for (var I in c)
4152
4153
  t.call(c, I) && (h == null ? v(c[I], I, c) : v.call(h, c[I], I, c));
4153
4154
  };
4154
- function g(f) {
4155
- return e.call(f) === "[object Array]";
4155
+ function g(u) {
4156
+ return e.call(u) === "[object Array]";
4156
4157
  }
4157
4158
  return Dr = function(c, v, h) {
4158
4159
  if (!r(v))
4159
4160
  throw new TypeError("iterator must be a function");
4160
4161
  var I;
4161
- arguments.length >= 3 && (I = h), g(c) ? s(c, v, I) : typeof c == "string" ? u(c, v, I) : l(c, v, I);
4162
+ arguments.length >= 3 && (I = h), g(c) ? s(c, v, I) : typeof c == "string" ? f(c, v, I) : l(c, v, I);
4162
4163
  }, Dr;
4163
4164
  }
4164
4165
  var Fr, Bi;
@@ -4184,8 +4185,8 @@ function Ha() {
4184
4185
  ki = 1;
4185
4186
  var r = /* @__PURE__ */ za(), e = globalThis;
4186
4187
  return Ur = function() {
4187
- for (var s = [], u = 0; u < r.length; u++)
4188
- typeof e[r[u]] == "function" && (s[s.length] = r[u]);
4188
+ for (var s = [], f = 0; f < r.length; f++)
4189
+ typeof e[r[f]] == "function" && (s[s.length] = r[f]);
4189
4190
  return s;
4190
4191
  }, Ur;
4191
4192
  }
@@ -4194,7 +4195,7 @@ function Ja() {
4194
4195
  if (Oi) return jr;
4195
4196
  Oi = 1;
4196
4197
  var r = /* @__PURE__ */ Dt(), e = /* @__PURE__ */ Ao(), t = /* @__PURE__ */ vt(), s = /* @__PURE__ */ ft();
4197
- return jr = function(l, g, f) {
4198
+ return jr = function(l, g, u) {
4198
4199
  if (!l || typeof l != "object" && typeof l != "function")
4199
4200
  throw new t("`obj` must be an object or a function`");
4200
4201
  if (typeof g != "string" && typeof g != "symbol")
@@ -4212,11 +4213,11 @@ function Ja() {
4212
4213
  r(l, g, {
4213
4214
  configurable: h === null && B ? B.configurable : !h,
4214
4215
  enumerable: c === null && B ? B.enumerable : !c,
4215
- value: f,
4216
+ value: u,
4216
4217
  writable: v === null && B ? B.writable : !v
4217
4218
  });
4218
4219
  else if (I || !c && !v && !h)
4219
- l[g] = f;
4220
+ l[g] = u;
4220
4221
  else
4221
4222
  throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
4222
4223
  }, jr;
@@ -4242,30 +4243,30 @@ var qr, Li;
4242
4243
  function Ka() {
4243
4244
  if (Li) return qr;
4244
4245
  Li = 1;
4245
- var r = /* @__PURE__ */ Mo(), e = /* @__PURE__ */ Ja(), t = /* @__PURE__ */ Ya()(), s = /* @__PURE__ */ ft(), u = /* @__PURE__ */ vt(), l = r("%Math.floor%");
4246
- return qr = function(f, c) {
4247
- if (typeof f != "function")
4248
- throw new u("`fn` is not a function");
4246
+ var r = /* @__PURE__ */ Mo(), e = /* @__PURE__ */ Ja(), t = /* @__PURE__ */ Ya()(), s = /* @__PURE__ */ ft(), f = /* @__PURE__ */ vt(), l = r("%Math.floor%");
4247
+ return qr = function(u, c) {
4248
+ if (typeof u != "function")
4249
+ throw new f("`fn` is not a function");
4249
4250
  if (typeof c != "number" || c < 0 || c > 4294967295 || l(c) !== c)
4250
- throw new u("`length` must be a positive 32-bit integer");
4251
+ throw new f("`length` must be a positive 32-bit integer");
4251
4252
  var v = arguments.length > 2 && !!arguments[2], h = !0, I = !0;
4252
- if ("length" in f && s) {
4253
- var B = s(f, "length");
4253
+ if ("length" in u && s) {
4254
+ var B = s(u, "length");
4254
4255
  B && !B.configurable && (h = !1), B && !B.writable && (I = !1);
4255
4256
  }
4256
4257
  return (h || I || !v) && (t ? e(
4257
4258
  /** @type {Parameters<define>[0]} */
4258
- f,
4259
+ u,
4259
4260
  "length",
4260
4261
  c,
4261
4262
  !0,
4262
4263
  !0
4263
4264
  ) : e(
4264
4265
  /** @type {Parameters<define>[0]} */
4265
- f,
4266
+ u,
4266
4267
  "length",
4267
4268
  c
4268
- )), f;
4269
+ )), u;
4269
4270
  }, qr;
4270
4271
  }
4271
4272
  var Wr, Ni;
@@ -4280,34 +4281,34 @@ function Xa() {
4280
4281
  var Di;
4281
4282
  function Za() {
4282
4283
  return Di || (Di = 1, function(r) {
4283
- var e = /* @__PURE__ */ Ka(), t = /* @__PURE__ */ Dt(), s = An(), u = Xa();
4284
+ var e = /* @__PURE__ */ Ka(), t = /* @__PURE__ */ Dt(), s = An(), f = Xa();
4284
4285
  r.exports = function(g) {
4285
- var f = s(arguments), c = g.length - (arguments.length - 1);
4286
+ var u = s(arguments), c = g.length - (arguments.length - 1);
4286
4287
  return e(
4287
- f,
4288
+ u,
4288
4289
  1 + (c > 0 ? c : 0),
4289
4290
  !0
4290
4291
  );
4291
- }, t ? t(r.exports, "apply", { value: u }) : r.exports.apply = u;
4292
+ }, t ? t(r.exports, "apply", { value: f }) : r.exports.apply = f;
4292
4293
  }($r)), $r.exports;
4293
4294
  }
4294
4295
  var Gr, Fi;
4295
4296
  function Lo() {
4296
4297
  if (Fi) return Gr;
4297
4298
  Fi = 1;
4298
- var r = Va(), e = /* @__PURE__ */ Ha(), t = Za(), s = /* @__PURE__ */ bt(), u = /* @__PURE__ */ ft(), l = In(), g = s("Object.prototype.toString"), f = Nt()(), c = globalThis, v = e(), h = s("String.prototype.slice"), I = s("Array.prototype.indexOf", !0) || function(T, m) {
4299
+ var r = Va(), e = /* @__PURE__ */ Ha(), t = Za(), s = /* @__PURE__ */ bt(), f = /* @__PURE__ */ ft(), l = In(), g = s("Object.prototype.toString"), u = Nt()(), c = globalThis, v = e(), h = s("String.prototype.slice"), I = s("Array.prototype.indexOf", !0) || function(T, m) {
4299
4300
  for (var R = 0; R < T.length; R += 1)
4300
4301
  if (T[R] === m)
4301
4302
  return R;
4302
4303
  return -1;
4303
4304
  }, B = { __proto__: null };
4304
- f && u && l ? r(v, function(N) {
4305
+ u && f && l ? r(v, function(N) {
4305
4306
  var T = new c[N]();
4306
4307
  if (Symbol.toStringTag in T && l) {
4307
- var m = l(T), R = u(m, Symbol.toStringTag);
4308
+ var m = l(T), R = f(m, Symbol.toStringTag);
4308
4309
  if (!R && m) {
4309
4310
  var A = l(m);
4310
- R = u(A, Symbol.toStringTag);
4311
+ R = f(A, Symbol.toStringTag);
4311
4312
  }
4312
4313
  B["$" + N] = t(R.get);
4313
4314
  }
@@ -4354,11 +4355,11 @@ function Lo() {
4354
4355
  return Gr = function(T) {
4355
4356
  if (!T || typeof T != "object")
4356
4357
  return !1;
4357
- if (!f) {
4358
+ if (!u) {
4358
4359
  var m = h(g(T), 8, -1);
4359
4360
  return I(v, m) > -1 ? m : m !== "Object" ? !1 : b(T);
4360
4361
  }
4361
- return u ? q(T) : null;
4362
+ return f ? q(T) : null;
4362
4363
  }, Gr;
4363
4364
  }
4364
4365
  var Vr, Ui;
@@ -4373,14 +4374,14 @@ function Qa() {
4373
4374
  var $i;
4374
4375
  function es() {
4375
4376
  return $i || ($i = 1, function(r) {
4376
- var e = /* @__PURE__ */ ja(), t = Wa(), s = /* @__PURE__ */ Lo(), u = /* @__PURE__ */ Qa();
4377
+ var e = /* @__PURE__ */ ja(), t = Wa(), s = /* @__PURE__ */ Lo(), f = /* @__PURE__ */ Qa();
4377
4378
  function l(H) {
4378
4379
  return H.call.bind(H);
4379
4380
  }
4380
- var g = typeof BigInt != "undefined", f = typeof Symbol != "undefined", c = l(Object.prototype.toString), v = l(Number.prototype.valueOf), h = l(String.prototype.valueOf), I = l(Boolean.prototype.valueOf);
4381
+ var g = typeof BigInt != "undefined", u = typeof Symbol != "undefined", c = l(Object.prototype.toString), v = l(Number.prototype.valueOf), h = l(String.prototype.valueOf), I = l(Boolean.prototype.valueOf);
4381
4382
  if (g)
4382
4383
  var B = l(BigInt.prototype.valueOf);
4383
- if (f)
4384
+ if (u)
4384
4385
  var q = l(Symbol.prototype.valueOf);
4385
4386
  function b(H, Me) {
4386
4387
  if (typeof H != "object")
@@ -4391,13 +4392,13 @@ function es() {
4391
4392
  return !1;
4392
4393
  }
4393
4394
  }
4394
- r.isArgumentsObject = e, r.isGeneratorFunction = t, r.isTypedArray = u;
4395
+ r.isArgumentsObject = e, r.isGeneratorFunction = t, r.isTypedArray = f;
4395
4396
  function N(H) {
4396
4397
  return typeof Promise != "undefined" && H instanceof Promise || H !== null && typeof H == "object" && typeof H.then == "function" && typeof H.catch == "function";
4397
4398
  }
4398
4399
  r.isPromise = N;
4399
4400
  function T(H) {
4400
- return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? ArrayBuffer.isView(H) : u(H) || V(H);
4401
+ return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? ArrayBuffer.isView(H) : f(H) || V(H);
4401
4402
  }
4402
4403
  r.isArrayBufferView = T;
4403
4404
  function m(H) {
@@ -4537,7 +4538,7 @@ function es() {
4537
4538
  }
4538
4539
  r.isBigIntObject = se;
4539
4540
  function ne(H) {
4540
- return f && b(H, q);
4541
+ return u && b(H, q);
4541
4542
  }
4542
4543
  r.isSymbolObject = ne;
4543
4544
  function ae(H) {
@@ -4635,14 +4636,14 @@ function No() {
4635
4636
  }
4636
4637
  return re;
4637
4638
  };
4638
- var s = {}, u = /^$/;
4639
+ var s = {}, f = /^$/;
4639
4640
  if (oe.env.NODE_DEBUG) {
4640
4641
  var l = oe.env.NODE_DEBUG;
4641
- l = l.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), u = new RegExp("^" + l + "$", "i");
4642
+ l = l.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), f = new RegExp("^" + l + "$", "i");
4642
4643
  }
4643
4644
  r.debuglog = function($) {
4644
4645
  if ($ = $.toUpperCase(), !s[$])
4645
- if (u.test($)) {
4646
+ if (f.test($)) {
4646
4647
  var V = oe.pid;
4647
4648
  s[$] = function() {
4648
4649
  var J = r.format.apply(r, arguments);
@@ -4658,7 +4659,7 @@ function No() {
4658
4659
  seen: [],
4659
4660
  stylize: c
4660
4661
  };
4661
- return arguments.length >= 3 && (J.depth = arguments[2]), arguments.length >= 4 && (J.colors = arguments[3]), m(V) ? J.showHidden = V : V && r._extend(J, V), C(J.showHidden) && (J.showHidden = !1), C(J.depth) && (J.depth = 2), C(J.colors) && (J.colors = !1), C(J.customInspect) && (J.customInspect = !0), J.colors && (J.stylize = f), h(J, $, J.depth);
4662
+ return arguments.length >= 3 && (J.depth = arguments[2]), arguments.length >= 4 && (J.colors = arguments[3]), m(V) ? J.showHidden = V : V && r._extend(J, V), C(J.showHidden) && (J.showHidden = !1), C(J.depth) && (J.depth = 2), C(J.colors) && (J.colors = !1), C(J.customInspect) && (J.customInspect = !0), J.colors && (J.stylize = u), h(J, $, J.depth);
4662
4663
  }
4663
4664
  r.inspect = g, g.colors = {
4664
4665
  bold: [1, 22],
@@ -4685,7 +4686,7 @@ function No() {
4685
4686
  // "name": intentionally not styling
4686
4687
  regexp: "red"
4687
4688
  };
4688
- function f($, V) {
4689
+ function u($, V) {
4689
4690
  var J = g.styles[V];
4690
4691
  return J ? "\x1B[" + g.colors[J][0] + "m" + $ + "\x1B[" + g.colors[J][1] + "m" : $;
4691
4692
  }
@@ -5009,20 +5010,20 @@ function rs() {
5009
5010
  if (!(b instanceof N))
5010
5011
  throw new TypeError("Cannot call a class as a function");
5011
5012
  }
5012
- function u(b, N) {
5013
+ function f(b, N) {
5013
5014
  for (var T = 0; T < N.length; T++) {
5014
5015
  var m = N[T];
5015
5016
  m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(b, g(m.key), m);
5016
5017
  }
5017
5018
  }
5018
5019
  function l(b, N, T) {
5019
- return N && u(b.prototype, N), Object.defineProperty(b, "prototype", { writable: !1 }), b;
5020
+ return N && f(b.prototype, N), Object.defineProperty(b, "prototype", { writable: !1 }), b;
5020
5021
  }
5021
5022
  function g(b) {
5022
- var N = f(b, "string");
5023
+ var N = u(b, "string");
5023
5024
  return typeof N == "symbol" ? N : String(N);
5024
5025
  }
5025
- function f(b, N) {
5026
+ function u(b, N) {
5026
5027
  if (typeof b != "object" || b === null) return b;
5027
5028
  var T = b[Symbol.toPrimitive];
5028
5029
  if (T !== void 0) {
@@ -5146,14 +5147,14 @@ var Jr, Gi;
5146
5147
  function Do() {
5147
5148
  if (Gi) return Jr;
5148
5149
  Gi = 1;
5149
- function r(g, f) {
5150
+ function r(g, u) {
5150
5151
  var c = this, v = this._readableState && this._readableState.destroyed, h = this._writableState && this._writableState.destroyed;
5151
- return v || h ? (f ? f(g) : g && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, oe.nextTick(u, this, g)) : oe.nextTick(u, this, g)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(g || null, function(I) {
5152
- !f && I ? c._writableState ? c._writableState.errorEmitted ? oe.nextTick(t, c) : (c._writableState.errorEmitted = !0, oe.nextTick(e, c, I)) : oe.nextTick(e, c, I) : f ? (oe.nextTick(t, c), f(I)) : oe.nextTick(t, c);
5152
+ return v || h ? (u ? u(g) : g && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, oe.nextTick(f, this, g)) : oe.nextTick(f, this, g)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(g || null, function(I) {
5153
+ !u && I ? c._writableState ? c._writableState.errorEmitted ? oe.nextTick(t, c) : (c._writableState.errorEmitted = !0, oe.nextTick(e, c, I)) : oe.nextTick(e, c, I) : u ? (oe.nextTick(t, c), u(I)) : oe.nextTick(t, c);
5153
5154
  }), this);
5154
5155
  }
5155
- function e(g, f) {
5156
- u(g, f), t(g);
5156
+ function e(g, u) {
5157
+ f(g, u), t(g);
5157
5158
  }
5158
5159
  function t(g) {
5159
5160
  g._writableState && !g._writableState.emitClose || g._readableState && !g._readableState.emitClose || g.emit("close");
@@ -5161,12 +5162,12 @@ function Do() {
5161
5162
  function s() {
5162
5163
  this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
5163
5164
  }
5164
- function u(g, f) {
5165
- g.emit("error", f);
5165
+ function f(g, u) {
5166
+ g.emit("error", u);
5166
5167
  }
5167
- function l(g, f) {
5168
+ function l(g, u) {
5168
5169
  var c = g._readableState, v = g._writableState;
5169
- c && c.autoDestroy || v && v.autoDestroy ? g.destroy(f) : g.emit("error", f);
5170
+ c && c.autoDestroy || v && v.autoDestroy ? g.destroy(u) : g.emit("error", u);
5170
5171
  }
5171
5172
  return Jr = {
5172
5173
  destroy: r,
@@ -5178,11 +5179,11 @@ var Yr = {}, Vi;
5178
5179
  function dt() {
5179
5180
  if (Vi) return Yr;
5180
5181
  Vi = 1;
5181
- function r(f, c) {
5182
- f.prototype = Object.create(c.prototype), f.prototype.constructor = f, f.__proto__ = c;
5182
+ function r(u, c) {
5183
+ u.prototype = Object.create(c.prototype), u.prototype.constructor = u, u.__proto__ = c;
5183
5184
  }
5184
5185
  var e = {};
5185
- function t(f, c, v) {
5186
+ function t(u, c, v) {
5186
5187
  v || (v = Error);
5187
5188
  function h(B, q, b) {
5188
5189
  return typeof c == "string" ? c : c(B, q, b);
@@ -5194,45 +5195,45 @@ function dt() {
5194
5195
  }
5195
5196
  return q;
5196
5197
  }(v);
5197
- I.prototype.name = v.name, I.prototype.code = f, e[f] = I;
5198
+ I.prototype.name = v.name, I.prototype.code = u, e[u] = I;
5198
5199
  }
5199
- function s(f, c) {
5200
- if (Array.isArray(f)) {
5201
- var v = f.length;
5202
- return f = f.map(function(h) {
5200
+ function s(u, c) {
5201
+ if (Array.isArray(u)) {
5202
+ var v = u.length;
5203
+ return u = u.map(function(h) {
5203
5204
  return String(h);
5204
- }), v > 2 ? "one of ".concat(c, " ").concat(f.slice(0, v - 1).join(", "), ", or ") + f[v - 1] : v === 2 ? "one of ".concat(c, " ").concat(f[0], " or ").concat(f[1]) : "of ".concat(c, " ").concat(f[0]);
5205
+ }), v > 2 ? "one of ".concat(c, " ").concat(u.slice(0, v - 1).join(", "), ", or ") + u[v - 1] : v === 2 ? "one of ".concat(c, " ").concat(u[0], " or ").concat(u[1]) : "of ".concat(c, " ").concat(u[0]);
5205
5206
  } else
5206
- return "of ".concat(c, " ").concat(String(f));
5207
+ return "of ".concat(c, " ").concat(String(u));
5207
5208
  }
5208
- function u(f, c, v) {
5209
- return f.substr(0, c.length) === c;
5209
+ function f(u, c, v) {
5210
+ return u.substr(0, c.length) === c;
5210
5211
  }
5211
- function l(f, c, v) {
5212
- return (v === void 0 || v > f.length) && (v = f.length), f.substring(v - c.length, v) === c;
5212
+ function l(u, c, v) {
5213
+ return (v === void 0 || v > u.length) && (v = u.length), u.substring(v - c.length, v) === c;
5213
5214
  }
5214
- function g(f, c, v) {
5215
- return typeof v != "number" && (v = 0), v + c.length > f.length ? !1 : f.indexOf(c, v) !== -1;
5215
+ function g(u, c, v) {
5216
+ return typeof v != "number" && (v = 0), v + c.length > u.length ? !1 : u.indexOf(c, v) !== -1;
5216
5217
  }
5217
- return t("ERR_INVALID_OPT_VALUE", function(f, c) {
5218
- return 'The value "' + c + '" is invalid for option "' + f + '"';
5219
- }, TypeError), t("ERR_INVALID_ARG_TYPE", function(f, c, v) {
5218
+ return t("ERR_INVALID_OPT_VALUE", function(u, c) {
5219
+ return 'The value "' + c + '" is invalid for option "' + u + '"';
5220
+ }, TypeError), t("ERR_INVALID_ARG_TYPE", function(u, c, v) {
5220
5221
  var h;
5221
- typeof c == "string" && u(c, "not ") ? (h = "must not be", c = c.replace(/^not /, "")) : h = "must be";
5222
+ typeof c == "string" && f(c, "not ") ? (h = "must not be", c = c.replace(/^not /, "")) : h = "must be";
5222
5223
  var I;
5223
- if (l(f, " argument"))
5224
- I = "The ".concat(f, " ").concat(h, " ").concat(s(c, "type"));
5224
+ if (l(u, " argument"))
5225
+ I = "The ".concat(u, " ").concat(h, " ").concat(s(c, "type"));
5225
5226
  else {
5226
- var B = g(f, ".") ? "property" : "argument";
5227
- I = 'The "'.concat(f, '" ').concat(B, " ").concat(h, " ").concat(s(c, "type"));
5227
+ var B = g(u, ".") ? "property" : "argument";
5228
+ I = 'The "'.concat(u, '" ').concat(B, " ").concat(h, " ").concat(s(c, "type"));
5228
5229
  }
5229
5230
  return I += ". Received type ".concat(typeof v), I;
5230
- }, TypeError), t("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), t("ERR_METHOD_NOT_IMPLEMENTED", function(f) {
5231
- return "The " + f + " method is not implemented";
5232
- }), t("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), t("ERR_STREAM_DESTROYED", function(f) {
5233
- return "Cannot call " + f + " after a stream was destroyed";
5234
- }), t("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), t("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), t("ERR_STREAM_WRITE_AFTER_END", "write after end"), t("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), t("ERR_UNKNOWN_ENCODING", function(f) {
5235
- return "Unknown encoding: " + f;
5231
+ }, TypeError), t("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), t("ERR_METHOD_NOT_IMPLEMENTED", function(u) {
5232
+ return "The " + u + " method is not implemented";
5233
+ }), t("ERR_STREAM_PREMATURE_CLOSE", "Premature close"), t("ERR_STREAM_DESTROYED", function(u) {
5234
+ return "Cannot call " + u + " after a stream was destroyed";
5235
+ }), t("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"), t("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"), t("ERR_STREAM_WRITE_AFTER_END", "write after end"), t("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError), t("ERR_UNKNOWN_ENCODING", function(u) {
5236
+ return "Unknown encoding: " + u;
5236
5237
  }, TypeError), t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"), Yr.codes = e, Yr;
5237
5238
  }
5238
5239
  var Kr, zi;
@@ -5240,17 +5241,17 @@ function Fo() {
5240
5241
  if (zi) return Kr;
5241
5242
  zi = 1;
5242
5243
  var r = dt().codes.ERR_INVALID_OPT_VALUE;
5243
- function e(s, u, l) {
5244
- return s.highWaterMark != null ? s.highWaterMark : u ? s[l] : null;
5244
+ function e(s, f, l) {
5245
+ return s.highWaterMark != null ? s.highWaterMark : f ? s[l] : null;
5245
5246
  }
5246
- function t(s, u, l, g) {
5247
- var f = e(u, g, l);
5248
- if (f != null) {
5249
- if (!(isFinite(f) && Math.floor(f) === f) || f < 0) {
5247
+ function t(s, f, l, g) {
5248
+ var u = e(f, g, l);
5249
+ if (u != null) {
5250
+ if (!(isFinite(u) && Math.floor(u) === u) || u < 0) {
5250
5251
  var c = g ? l : "highWaterMark";
5251
- throw new r(c, f);
5252
+ throw new r(c, u);
5252
5253
  }
5253
- return Math.floor(f);
5254
+ return Math.floor(u);
5254
5255
  }
5255
5256
  return s.objectMode ? 16 : 16 * 1024;
5256
5257
  }
@@ -5265,12 +5266,12 @@ function ns() {
5265
5266
  function r(t, s) {
5266
5267
  if (e("noDeprecation"))
5267
5268
  return t;
5268
- var u = !1;
5269
+ var f = !1;
5269
5270
  function l() {
5270
- if (!u) {
5271
+ if (!f) {
5271
5272
  if (e("throwDeprecation"))
5272
5273
  throw new Error(s);
5273
- e("traceDeprecation") ? console.trace(s) : console.warn(s), u = !0;
5274
+ e("traceDeprecation") ? console.trace(s) : console.warn(s), f = !0;
5274
5275
  }
5275
5276
  return t.apply(this, arguments);
5276
5277
  }
@@ -5279,7 +5280,7 @@ function ns() {
5279
5280
  function e(t) {
5280
5281
  try {
5281
5282
  if (!globalThis.localStorage) return !1;
5282
- } catch (u) {
5283
+ } catch (f) {
5283
5284
  return !1;
5284
5285
  }
5285
5286
  var s = globalThis.localStorage[t];
@@ -5301,13 +5302,13 @@ function Uo() {
5301
5302
  M.WritableState = S;
5302
5303
  var t = {
5303
5304
  deprecate: ns()
5304
- }, s = Ro(), u = mt().Buffer, l = (typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof self != "undefined" ? self : {}).Uint8Array || function() {
5305
+ }, s = Ro(), f = mt().Buffer, l = (typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof self != "undefined" ? self : {}).Uint8Array || function() {
5305
5306
  };
5306
5307
  function g(D) {
5307
- return u.from(D);
5308
+ return f.from(D);
5308
5309
  }
5309
- function f(D) {
5310
- return u.isBuffer(D) || D instanceof l;
5310
+ function u(D) {
5311
+ return f.isBuffer(D) || D instanceof l;
5311
5312
  }
5312
5313
  var c = Do(), v = Fo(), h = v.getHighWaterMark, I = dt().codes, B = I.ERR_INVALID_ARG_TYPE, q = I.ERR_METHOD_NOT_IMPLEMENTED, b = I.ERR_MULTIPLE_CALLBACK, N = I.ERR_STREAM_CANNOT_PIPE, T = I.ERR_STREAM_DESTROYED, m = I.ERR_STREAM_NULL_VALUES, R = I.ERR_STREAM_WRITE_AFTER_END, A = I.ERR_UNKNOWN_ENCODING, P = c.errorOrDestroy;
5313
5314
  ht()(M, s);
@@ -5360,8 +5361,8 @@ function Uo() {
5360
5361
  return G === null ? Q = new m() : typeof G != "string" && !F.objectMode && (Q = new B("chunk", ["string", "Buffer"], G)), Q ? (P(D, Q), oe.nextTick(Z, Q), !1) : !0;
5361
5362
  }
5362
5363
  M.prototype.write = function(D, F, G) {
5363
- var Z = this._writableState, Q = !1, y = !Z.objectMode && f(D);
5364
- return y && !u.isBuffer(D) && (D = g(D)), typeof F == "function" && (G = F, F = null), y ? F = "buffer" : F || (F = Z.defaultEncoding), typeof G != "function" && (G = k), Z.ending ? W(this, G) : (y || X(this, Z, D, G)) && (Z.pendingcb++, Q = U(this, Z, y, D, F, G)), Q;
5364
+ var Z = this._writableState, Q = !1, y = !Z.objectMode && u(D);
5365
+ return y && !f.isBuffer(D) && (D = g(D)), typeof F == "function" && (G = F, F = null), y ? F = "buffer" : F || (F = Z.defaultEncoding), typeof G != "function" && (G = k), Z.ending ? W(this, G) : (y || X(this, Z, D, G)) && (Z.pendingcb++, Q = U(this, Z, y, D, F, G)), Q;
5365
5366
  }, M.prototype.cork = function() {
5366
5367
  this._writableState.corked++;
5367
5368
  }, M.prototype.uncork = function() {
@@ -5380,7 +5381,7 @@ function Uo() {
5380
5381
  }
5381
5382
  });
5382
5383
  function te(D, F, G) {
5383
- return !D.objectMode && D.decodeStrings !== !1 && typeof F == "string" && (F = u.from(F, G)), F;
5384
+ return !D.objectMode && D.decodeStrings !== !1 && typeof F == "string" && (F = f.from(F, G)), F;
5384
5385
  }
5385
5386
  Object.defineProperty(M.prototype, "writableHighWaterMark", {
5386
5387
  // making it explicit this property is not enumerable
@@ -5526,13 +5527,13 @@ function ut() {
5526
5527
  Qr = g;
5527
5528
  var e = $o(), t = Uo();
5528
5529
  ht()(g, e);
5529
- for (var s = r(t.prototype), u = 0; u < s.length; u++) {
5530
- var l = s[u];
5530
+ for (var s = r(t.prototype), f = 0; f < s.length; f++) {
5531
+ var l = s[f];
5531
5532
  g.prototype[l] || (g.prototype[l] = t.prototype[l]);
5532
5533
  }
5533
5534
  function g(v) {
5534
5535
  if (!(this instanceof g)) return new g(v);
5535
- e.call(this, v), t.call(this, v), this.allowHalfOpen = !0, v && (v.readable === !1 && (this.readable = !1), v.writable === !1 && (this.writable = !1), v.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", f)));
5536
+ e.call(this, v), t.call(this, v), this.allowHalfOpen = !0, v && (v.readable === !1 && (this.readable = !1), v.writable === !1 && (this.writable = !1), v.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", u)));
5536
5537
  }
5537
5538
  Object.defineProperty(g.prototype, "writableHighWaterMark", {
5538
5539
  // making it explicit this property is not enumerable
@@ -5559,7 +5560,7 @@ function ut() {
5559
5560
  return this._writableState.length;
5560
5561
  }
5561
5562
  });
5562
- function f() {
5563
+ function u() {
5563
5564
  this._writableState.ended || oe.nextTick(c, this);
5564
5565
  }
5565
5566
  function c(v) {
@@ -5629,8 +5630,8 @@ function Xi() {
5629
5630
  if (typeof R != "string" && (r.isEncoding === e || !e(m))) throw new Error("Unknown encoding: " + m);
5630
5631
  return R || m;
5631
5632
  }
5632
- en.StringDecoder = u;
5633
- function u(m) {
5633
+ en.StringDecoder = f;
5634
+ function f(m) {
5634
5635
  this.encoding = s(m);
5635
5636
  var R;
5636
5637
  switch (this.encoding) {
@@ -5649,7 +5650,7 @@ function Xi() {
5649
5650
  }
5650
5651
  this.lastNeed = 0, this.lastTotal = 0, this.lastChar = r.allocUnsafe(R);
5651
5652
  }
5652
- u.prototype.write = function(m) {
5653
+ f.prototype.write = function(m) {
5653
5654
  if (m.length === 0) return "";
5654
5655
  var R, A;
5655
5656
  if (this.lastNeed) {
@@ -5658,7 +5659,7 @@ function Xi() {
5658
5659
  } else
5659
5660
  A = 0;
5660
5661
  return A < m.length ? R ? R + this.text(m, A) : this.text(m, A) : R || "";
5661
- }, u.prototype.end = h, u.prototype.text = v, u.prototype.fillLast = function(m) {
5662
+ }, f.prototype.end = h, f.prototype.text = v, f.prototype.fillLast = function(m) {
5662
5663
  if (this.lastNeed <= m.length)
5663
5664
  return m.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
5664
5665
  m.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, m.length), this.lastNeed -= m.length;
@@ -5672,7 +5673,7 @@ function Xi() {
5672
5673
  var k = l(R[P]);
5673
5674
  return k >= 0 ? (k > 0 && (m.lastNeed = k - 1), k) : --P < A || k === -2 ? 0 : (k = l(R[P]), k >= 0 ? (k > 0 && (m.lastNeed = k - 2), k) : --P < A || k === -2 ? 0 : (k = l(R[P]), k >= 0 ? (k > 0 && (k === 2 ? k = 0 : m.lastNeed = k - 3), k) : 0));
5674
5675
  }
5675
- function f(m, R, A) {
5676
+ function u(m, R, A) {
5676
5677
  if ((R[0] & 192) !== 128)
5677
5678
  return m.lastNeed = 0, "�";
5678
5679
  if (m.lastNeed > 1 && R.length > 1) {
@@ -5683,7 +5684,7 @@ function Xi() {
5683
5684
  }
5684
5685
  }
5685
5686
  function c(m) {
5686
- var R = this.lastTotal - this.lastNeed, A = f(this, m);
5687
+ var R = this.lastTotal - this.lastNeed, A = u(this, m);
5687
5688
  if (A !== void 0) return A;
5688
5689
  if (this.lastNeed <= m.length)
5689
5690
  return m.copy(this.lastChar, R, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
@@ -5746,7 +5747,7 @@ function Bn() {
5746
5747
  return function() {
5747
5748
  if (!g) {
5748
5749
  g = !0;
5749
- for (var f = arguments.length, c = new Array(f), v = 0; v < f; v++)
5750
+ for (var u = arguments.length, c = new Array(u), v = 0; v < u; v++)
5750
5751
  c[v] = arguments[v];
5751
5752
  l.apply(this, c);
5752
5753
  }
@@ -5757,23 +5758,23 @@ function Bn() {
5757
5758
  function s(l) {
5758
5759
  return l.setHeader && typeof l.abort == "function";
5759
5760
  }
5760
- function u(l, g, f) {
5761
- if (typeof g == "function") return u(l, null, g);
5762
- g || (g = {}), f = e(f || t);
5761
+ function f(l, g, u) {
5762
+ if (typeof g == "function") return f(l, null, g);
5763
+ g || (g = {}), u = e(u || t);
5763
5764
  var c = g.readable || g.readable !== !1 && l.readable, v = g.writable || g.writable !== !1 && l.writable, h = function() {
5764
5765
  l.writable || B();
5765
5766
  }, I = l._writableState && l._writableState.finished, B = function() {
5766
- v = !1, I = !0, c || f.call(l);
5767
+ v = !1, I = !0, c || u.call(l);
5767
5768
  }, q = l._readableState && l._readableState.endEmitted, b = function() {
5768
- c = !1, q = !0, v || f.call(l);
5769
+ c = !1, q = !0, v || u.call(l);
5769
5770
  }, N = function(A) {
5770
- f.call(l, A);
5771
+ u.call(l, A);
5771
5772
  }, T = function() {
5772
5773
  var A;
5773
5774
  if (c && !q)
5774
- return (!l._readableState || !l._readableState.ended) && (A = new r()), f.call(l, A);
5775
+ return (!l._readableState || !l._readableState.ended) && (A = new r()), u.call(l, A);
5775
5776
  if (v && !I)
5776
- return (!l._writableState || !l._writableState.ended) && (A = new r()), f.call(l, A);
5777
+ return (!l._writableState || !l._writableState.ended) && (A = new r()), u.call(l, A);
5777
5778
  }, m = function() {
5778
5779
  l.req.on("finish", B);
5779
5780
  };
@@ -5781,7 +5782,7 @@ function Bn() {
5781
5782
  l.removeListener("complete", B), l.removeListener("abort", T), l.removeListener("request", m), l.req && l.req.removeListener("finish", B), l.removeListener("end", h), l.removeListener("close", h), l.removeListener("finish", B), l.removeListener("end", b), l.removeListener("error", N), l.removeListener("close", T);
5782
5783
  };
5783
5784
  }
5784
- return tn = u, tn;
5785
+ return tn = f, tn;
5785
5786
  }
5786
5787
  var rn, Qi;
5787
5788
  function is() {
@@ -5805,7 +5806,7 @@ function is() {
5805
5806
  }
5806
5807
  return (P === "string" ? String : Number)(A);
5807
5808
  }
5808
- var u = Bn(), l = Symbol("lastResolve"), g = Symbol("lastReject"), f = Symbol("error"), c = Symbol("ended"), v = Symbol("lastPromise"), h = Symbol("handlePromise"), I = Symbol("stream");
5809
+ var f = Bn(), l = Symbol("lastResolve"), g = Symbol("lastReject"), u = Symbol("error"), c = Symbol("ended"), v = Symbol("lastPromise"), h = Symbol("handlePromise"), I = Symbol("stream");
5809
5810
  function B(A, P) {
5810
5811
  return {
5811
5812
  value: A,
@@ -5839,7 +5840,7 @@ function is() {
5839
5840
  return this[I];
5840
5841
  },
5841
5842
  next: function() {
5842
- var P = this, k = this[f];
5843
+ var P = this, k = this[u];
5843
5844
  if (k !== null)
5844
5845
  return Promise.reject(k);
5845
5846
  if (this[c])
@@ -5847,7 +5848,7 @@ function is() {
5847
5848
  if (this[I].destroyed)
5848
5849
  return new Promise(function(W, X) {
5849
5850
  oe.nextTick(function() {
5850
- P[f] ? X(P[f]) : W(B(void 0, !0));
5851
+ P[u] ? X(P[u]) : W(B(void 0, !0));
5851
5852
  });
5852
5853
  });
5853
5854
  var S = this[v], C;
@@ -5884,7 +5885,7 @@ function is() {
5884
5885
  }), e(k, g, {
5885
5886
  value: null,
5886
5887
  writable: !0
5887
- }), e(k, f, {
5888
+ }), e(k, u, {
5888
5889
  value: null,
5889
5890
  writable: !0
5890
5891
  }), e(k, c, {
@@ -5897,10 +5898,10 @@ function is() {
5897
5898
  },
5898
5899
  writable: !0
5899
5900
  }), k));
5900
- return S[v] = null, u(P, function(C) {
5901
+ return S[v] = null, f(P, function(C) {
5901
5902
  if (C && C.code !== "ERR_STREAM_PREMATURE_CLOSE") {
5902
5903
  var M = S[g];
5903
- M !== null && (S[v] = null, S[l] = null, S[g] = null, M(C)), S[f] = C;
5904
+ M !== null && (S[v] = null, S[l] = null, S[g] = null, M(C)), S[u] = C;
5904
5905
  return;
5905
5906
  }
5906
5907
  var W = S[l];
@@ -5923,16 +5924,16 @@ function $o() {
5923
5924
  W.ReadableState = M, Rn().EventEmitter;
5924
5925
  var e = function(w, z) {
5925
5926
  return w.listeners(z).length;
5926
- }, t = Ro(), s = mt().Buffer, u = (typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof self != "undefined" ? self : {}).Uint8Array || function() {
5927
+ }, t = Ro(), s = mt().Buffer, f = (typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof self != "undefined" ? self : {}).Uint8Array || function() {
5927
5928
  };
5928
5929
  function l(y) {
5929
5930
  return s.from(y);
5930
5931
  }
5931
5932
  function g(y) {
5932
- return s.isBuffer(y) || y instanceof u;
5933
+ return s.isBuffer(y) || y instanceof f;
5933
5934
  }
5934
- var f = No(), c;
5935
- f && f.debuglog ? c = f.debuglog("stream") : c = function() {
5935
+ var u = No(), c;
5936
+ u && u.debuglog ? c = u.debuglog("stream") : c = function() {
5936
5937
  };
5937
5938
  var v = rs(), h = Do(), I = Fo(), B = I.getHighWaterMark, q = dt().codes, b = q.ERR_INVALID_ARG_TYPE, N = q.ERR_STREAM_PUSH_AFTER_EOF, T = q.ERR_METHOD_NOT_IMPLEMENTED, m = q.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, R, A, P;
5938
5939
  ht()(W, t);
@@ -6256,9 +6257,9 @@ function $o() {
6256
6257
  var an, ro;
6257
6258
  function jo() {
6258
6259
  if (ro) return an;
6259
- ro = 1, an = f;
6260
- var r = dt().codes, e = r.ERR_METHOD_NOT_IMPLEMENTED, t = r.ERR_MULTIPLE_CALLBACK, s = r.ERR_TRANSFORM_ALREADY_TRANSFORMING, u = r.ERR_TRANSFORM_WITH_LENGTH_0, l = ut();
6261
- ht()(f, l);
6260
+ ro = 1, an = u;
6261
+ var r = dt().codes, e = r.ERR_METHOD_NOT_IMPLEMENTED, t = r.ERR_MULTIPLE_CALLBACK, s = r.ERR_TRANSFORM_ALREADY_TRANSFORMING, f = r.ERR_TRANSFORM_WITH_LENGTH_0, l = ut();
6262
+ ht()(u, l);
6262
6263
  function g(h, I) {
6263
6264
  var B = this._transformState;
6264
6265
  B.transforming = !1;
@@ -6269,8 +6270,8 @@ function jo() {
6269
6270
  var b = this._readableState;
6270
6271
  b.reading = !1, (b.needReadable || b.length < b.highWaterMark) && this._read(b.highWaterMark);
6271
6272
  }
6272
- function f(h) {
6273
- if (!(this instanceof f)) return new f(h);
6273
+ function u(h) {
6274
+ if (!(this instanceof u)) return new u(h);
6274
6275
  l.call(this, h), this._transformState = {
6275
6276
  afterTransform: g.bind(this),
6276
6277
  needTransform: !1,
@@ -6286,27 +6287,27 @@ function jo() {
6286
6287
  v(h, I, B);
6287
6288
  }) : v(this, null, null);
6288
6289
  }
6289
- f.prototype.push = function(h, I) {
6290
+ u.prototype.push = function(h, I) {
6290
6291
  return this._transformState.needTransform = !1, l.prototype.push.call(this, h, I);
6291
- }, f.prototype._transform = function(h, I, B) {
6292
+ }, u.prototype._transform = function(h, I, B) {
6292
6293
  B(new e("_transform()"));
6293
- }, f.prototype._write = function(h, I, B) {
6294
+ }, u.prototype._write = function(h, I, B) {
6294
6295
  var q = this._transformState;
6295
6296
  if (q.writecb = B, q.writechunk = h, q.writeencoding = I, !q.transforming) {
6296
6297
  var b = this._readableState;
6297
6298
  (q.needTransform || b.needReadable || b.length < b.highWaterMark) && this._read(b.highWaterMark);
6298
6299
  }
6299
- }, f.prototype._read = function(h) {
6300
+ }, u.prototype._read = function(h) {
6300
6301
  var I = this._transformState;
6301
6302
  I.writechunk !== null && !I.transforming ? (I.transforming = !0, this._transform(I.writechunk, I.writeencoding, I.afterTransform)) : I.needTransform = !0;
6302
- }, f.prototype._destroy = function(h, I) {
6303
+ }, u.prototype._destroy = function(h, I) {
6303
6304
  l.prototype._destroy.call(this, h, function(B) {
6304
6305
  I(B);
6305
6306
  });
6306
6307
  };
6307
6308
  function v(h, I, B) {
6308
6309
  if (I) return h.emit("error", I);
6309
- if (B != null && h.push(B), h._writableState.length) throw new u();
6310
+ if (B != null && h.push(B), h._writableState.length) throw new f();
6310
6311
  if (h._transformState.transforming) throw new s();
6311
6312
  return h.push(null);
6312
6313
  }
@@ -6322,8 +6323,8 @@ function as() {
6322
6323
  if (!(this instanceof e)) return new e(t);
6323
6324
  r.call(this, t);
6324
6325
  }
6325
- return e.prototype._transform = function(t, s, u) {
6326
- u(null, t);
6326
+ return e.prototype._transform = function(t, s, f) {
6327
+ f(null, t);
6327
6328
  }, sn;
6328
6329
  }
6329
6330
  var ln, io;
@@ -6337,14 +6338,14 @@ function ss() {
6337
6338
  q || (q = !0, B.apply(void 0, arguments));
6338
6339
  };
6339
6340
  }
6340
- var t = dt().codes, s = t.ERR_MISSING_ARGS, u = t.ERR_STREAM_DESTROYED;
6341
+ var t = dt().codes, s = t.ERR_MISSING_ARGS, f = t.ERR_STREAM_DESTROYED;
6341
6342
  function l(B) {
6342
6343
  if (B) throw B;
6343
6344
  }
6344
6345
  function g(B) {
6345
6346
  return B.setHeader && typeof B.abort == "function";
6346
6347
  }
6347
- function f(B, q, b, N) {
6348
+ function u(B, q, b, N) {
6348
6349
  N = e(N);
6349
6350
  var T = !1;
6350
6351
  B.on("close", function() {
@@ -6361,7 +6362,7 @@ function ss() {
6361
6362
  if (!T && !m) {
6362
6363
  if (m = !0, g(B)) return B.abort();
6363
6364
  if (typeof B.destroy == "function") return B.destroy();
6364
- N(R || new u("pipe"));
6365
+ N(R || new f("pipe"));
6365
6366
  }
6366
6367
  };
6367
6368
  }
@@ -6382,7 +6383,7 @@ function ss() {
6382
6383
  throw new s("streams");
6383
6384
  var T, m = q.map(function(R, A) {
6384
6385
  var P = A < q.length - 1, k = A > 0;
6385
- return f(R, P, k, function(S) {
6386
+ return u(R, P, k, function(S) {
6386
6387
  T || (T = S), S && m.forEach(c), !P && (m.forEach(c), N(T));
6387
6388
  });
6388
6389
  });
@@ -6411,25 +6412,25 @@ function us() {
6411
6412
  if (so) return un;
6412
6413
  so = 1;
6413
6414
  function r(t, s) {
6414
- for (const u in s)
6415
- Object.defineProperty(t, u, {
6416
- value: s[u],
6415
+ for (const f in s)
6416
+ Object.defineProperty(t, f, {
6417
+ value: s[f],
6417
6418
  enumerable: !0,
6418
6419
  configurable: !0
6419
6420
  });
6420
6421
  return t;
6421
6422
  }
6422
- function e(t, s, u) {
6423
+ function e(t, s, f) {
6423
6424
  if (!t || typeof t == "string")
6424
6425
  throw new TypeError("Please pass an Error to err-code");
6425
- u || (u = {}), typeof s == "object" && (u = s, s = ""), s && (u.code = s);
6426
+ f || (f = {}), typeof s == "object" && (f = s, s = ""), s && (f.code = s);
6426
6427
  try {
6427
- return r(t, u);
6428
+ return r(t, f);
6428
6429
  } catch (l) {
6429
- u.message = t.message, u.stack = t.stack;
6430
+ f.message = t.message, f.stack = t.stack;
6430
6431
  const g = function() {
6431
6432
  };
6432
- return g.prototype = Object.create(Object.getPrototypeOf(t)), r(new g(), u);
6433
+ return g.prototype = Object.create(Object.getPrototypeOf(t)), r(new g(), f);
6433
6434
  }
6434
6435
  }
6435
6436
  return un = e, un;
@@ -6439,7 +6440,7 @@ var fn, lo;
6439
6440
  function fs() {
6440
6441
  if (lo) return fn;
6441
6442
  lo = 1;
6442
- const r = wa()("simple-peer"), e = ba(), t = Sa(), s = ls(), u = cs(), l = us(), { Buffer: g } = mt(), f = 64 * 1024, c = 5 * 1e3, v = 5 * 1e3;
6443
+ const r = wa()("simple-peer"), e = ba(), t = Sa(), s = ls(), f = cs(), l = us(), { Buffer: g } = mt(), u = 64 * 1024, c = 5 * 1e3, v = 5 * 1e3;
6443
6444
  function h(q) {
6444
6445
  return q.replace(/a=ice-options:trickle\s\n/g, "");
6445
6446
  }
@@ -6624,7 +6625,7 @@ function fs() {
6624
6625
  }
6625
6626
  }
6626
6627
  _needsNegotiation() {
6627
- this._debug("_needsNegotiation"), !this._batchedNegotiation && (this._batchedNegotiation = !0, u(() => {
6628
+ this._debug("_needsNegotiation"), !this._batchedNegotiation && (this._batchedNegotiation = !0, f(() => {
6628
6629
  this._batchedNegotiation = !1, this.initiator || !this._firstNegotiation ? (this._debug("starting batched negotiation"), this.negotiate()) : this._debug("non-initiator initial negotiation request discarded"), this._firstNegotiation = !1;
6629
6630
  }));
6630
6631
  }
@@ -6648,7 +6649,7 @@ function fs() {
6648
6649
  });
6649
6650
  }
6650
6651
  _destroy(b, N) {
6651
- this.destroyed || this.destroying || (this.destroying = !0, this._debug("destroying (error: %s)", b && (b.message || b)), u(() => {
6652
+ this.destroyed || this.destroying || (this.destroying = !0, this._debug("destroying (error: %s)", b && (b.message || b)), f(() => {
6652
6653
  if (this.destroyed = !0, this.destroying = !1, this._debug("destroy (error: %s)", b && (b.message || b)), this.readable = this.writable = !1, this._readableState.ended || this.push(null), this._writableState.finished || this.end(), this._connected = !1, this._pcReady = !1, this._channelReady = !1, this._remoteTracks = null, this._remoteStreams = null, this._senderMap = null, clearInterval(this._closingInterval), this._closingInterval = null, clearInterval(this._interval), this._interval = null, this._chunk = null, this._cb = null, this._onFinishBound && this.removeListener("finish", this._onFinishBound), this._onFinishBound = null, this._channel) {
6653
6654
  try {
6654
6655
  this._channel.close();
@@ -6669,7 +6670,7 @@ function fs() {
6669
6670
  _setupData(b) {
6670
6671
  if (!b.channel)
6671
6672
  return this.destroy(l(new Error("Data channel event is missing `channel` property"), "ERR_DATA_CHANNEL"));
6672
- this._channel = b.channel, this._channel.binaryType = "arraybuffer", typeof this._channel.bufferedAmountLowThreshold == "number" && (this._channel.bufferedAmountLowThreshold = f), this.channelName = this._channel.label, this._channel.onmessage = (T) => {
6673
+ this._channel = b.channel, this._channel.binaryType = "arraybuffer", typeof this._channel.bufferedAmountLowThreshold == "number" && (this._channel.bufferedAmountLowThreshold = u), this.channelName = this._channel.label, this._channel.onmessage = (T) => {
6673
6674
  this._onChannelMessage(T);
6674
6675
  }, this._channel.onbufferedamountlow = () => {
6675
6676
  this._onChannelBufferedAmountLow();
@@ -6696,7 +6697,7 @@ function fs() {
6696
6697
  } catch (m) {
6697
6698
  return this.destroy(l(m, "ERR_DATA_CHANNEL"));
6698
6699
  }
6699
- this._channel.bufferedAmount > f ? (this._debug("start backpressure: bufferedAmount %d", this._channel.bufferedAmount), this._cb = T) : T(null);
6700
+ this._channel.bufferedAmount > u ? (this._debug("start backpressure: bufferedAmount %d", this._channel.bufferedAmount), this._cb = T) : T(null);
6700
6701
  } else
6701
6702
  this._debug("write before connect"), this._chunk = b, this._cb = T;
6702
6703
  }
@@ -6841,7 +6842,7 @@ function fs() {
6841
6842
  b();
6842
6843
  }
6843
6844
  _onInterval() {
6844
- !this._cb || !this._channel || this._channel.bufferedAmount > f || this._onChannelBufferedAmountLow();
6845
+ !this._cb || !this._channel || this._channel.bufferedAmount > u || this._onChannelBufferedAmountLow();
6845
6846
  }
6846
6847
  _onSignalingStateChange() {
6847
6848
  this.destroyed || (this._pc.signalingState === "stable" && (this._isNegotiating = !1, this._debug("flushing sender queue", this._sendersAwaitingStable), this._sendersAwaitingStable.forEach((b) => {
@@ -6880,7 +6881,7 @@ function fs() {
6880
6881
  this._debug("on track"), this.emit("track", b.track, N), this._remoteTracks.push({
6881
6882
  track: b.track,
6882
6883
  stream: N
6883
- }), !this._remoteStreams.some((T) => T.id === N.id) && (this._remoteStreams.push(N), u(() => {
6884
+ }), !this._remoteStreams.some((T) => T.id === N.id) && (this._remoteStreams.push(N), f(() => {
6884
6885
  this._debug("on stream"), this.emit("stream", N);
6885
6886
  }));
6886
6887
  });
@@ -6904,21 +6905,21 @@ function fs() {
6904
6905
  }
6905
6906
  var hs = fs();
6906
6907
  const ds = /* @__PURE__ */ Cn(hs);
6907
- var ps = Object.defineProperty, gs = (r, e, t) => e in r ? ps(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, tt = (r, e, t) => gs(r, typeof e != "symbol" ? e + "" : e, t), hn = (r, e, t) => new Promise((s, u) => {
6908
+ var ps = Object.defineProperty, gs = (r, e, t) => e in r ? ps(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, tt = (r, e, t) => gs(r, typeof e != "symbol" ? e + "" : e, t), hn = (r, e, t) => new Promise((s, f) => {
6908
6909
  var l = (c) => {
6909
6910
  try {
6910
- f(t.next(c));
6911
+ u(t.next(c));
6911
6912
  } catch (v) {
6912
- u(v);
6913
+ f(v);
6913
6914
  }
6914
6915
  }, g = (c) => {
6915
6916
  try {
6916
- f(t.throw(c));
6917
+ u(t.throw(c));
6917
6918
  } catch (v) {
6918
- u(v);
6919
+ f(v);
6919
6920
  }
6920
- }, f = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
6921
- f((t = t.apply(r, e)).next());
6921
+ }, u = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
6922
+ u((t = t.apply(r, e)).next());
6922
6923
  });
6923
6924
  class ys {
6924
6925
  constructor(e, t, s = {}) {
@@ -6968,11 +6969,11 @@ class ys {
6968
6969
  `[CallPeerConnection] Signaling to ${this.remoteUserId}:`,
6969
6970
  e.type
6970
6971
  ), this.peer.signal(e);
6971
- } catch (u) {
6972
+ } catch (f) {
6972
6973
  console.error(
6973
6974
  `[CallPeerConnection] Failed to signal to ${this.remoteUserId}:`,
6974
- u
6975
- ), (s = (t = this.events).onError) == null || s.call(t, u);
6975
+ f
6976
+ ), (s = (t = this.events).onError) == null || s.call(t, f);
6976
6977
  }
6977
6978
  }
6978
6979
  /**
@@ -6988,11 +6989,11 @@ class ys {
6988
6989
  }
6989
6990
  try {
6990
6991
  this.localStream && this.removeStream(this.localStream), this.localStream = e, this.peer.addStream(e), console.log(`[CallPeerConnection] Stream added to ${this.remoteUserId}`);
6991
- } catch (u) {
6992
+ } catch (f) {
6992
6993
  console.error(
6993
6994
  `[CallPeerConnection] Failed to add stream to ${this.remoteUserId}:`,
6994
- u
6995
- ), (s = (t = this.events).onError) == null || s.call(t, u);
6995
+ f
6996
+ ), (s = (t = this.events).onError) == null || s.call(t, f);
6996
6997
  }
6997
6998
  }
6998
6999
  /**
@@ -7010,18 +7011,18 @@ class ys {
7010
7011
  this.peer.removeStream(e), this.localStream === e && (this.localStream = null), console.log(
7011
7012
  `[CallPeerConnection] Stream removed from ${this.remoteUserId}`
7012
7013
  );
7013
- } catch (u) {
7014
+ } catch (f) {
7014
7015
  console.error(
7015
7016
  `[CallPeerConnection] Failed to remove stream from ${this.remoteUserId}:`,
7016
- u
7017
- ), (s = (t = this.events).onError) == null || s.call(t, u);
7017
+ f
7018
+ ), (s = (t = this.events).onError) == null || s.call(t, f);
7018
7019
  }
7019
7020
  }
7020
7021
  /**
7021
7022
  * Replace a track in the peer connection (useful for screen sharing)
7022
7023
  */
7023
7024
  replaceTrack(e, t) {
7024
- var s, u;
7025
+ var s, f;
7025
7026
  if (!this.peer) {
7026
7027
  console.error(
7027
7028
  `[CallPeerConnection] Cannot replace track for ${this.remoteUserId}: peer not initialized`
@@ -7040,7 +7041,7 @@ class ys {
7040
7041
  );
7041
7042
  return;
7042
7043
  }
7043
- const g = this.localStream.getTracks().some((f) => f.id === e.id);
7044
+ const g = this.localStream.getTracks().some((u) => u.id === e.id);
7044
7045
  g || console.warn(
7045
7046
  `[CallPeerConnection] Old track not found in local stream for ${this.remoteUserId}, attempting replacement anyway`
7046
7047
  );
@@ -7048,11 +7049,11 @@ class ys {
7048
7049
  this.peer.replaceTrack(e, t, this.localStream), g && this.localStream.removeTrack(e), this.localStream.addTrack(t), console.log(
7049
7050
  `[CallPeerConnection] ${t.kind} track replaced for ${this.remoteUserId} (${e.id} -> ${t.id})`
7050
7051
  );
7051
- } catch (f) {
7052
+ } catch (u) {
7052
7053
  throw console.error(
7053
7054
  `[CallPeerConnection] Failed to replace track for ${this.remoteUserId}:`,
7054
- f
7055
- ), (u = (s = this.events).onError) == null || u.call(s, f), f;
7055
+ u
7056
+ ), (f = (s = this.events).onError) == null || f.call(s, u), u;
7056
7057
  }
7057
7058
  }
7058
7059
  /**
@@ -7090,11 +7091,11 @@ class ys {
7090
7091
  }
7091
7092
  try {
7092
7093
  this.peer.send(JSON.stringify(e));
7093
- } catch (u) {
7094
+ } catch (f) {
7094
7095
  console.error(
7095
7096
  `[CallPeerConnection] Failed to send data to ${this.remoteUserId}:`,
7096
- u
7097
- ), (s = (t = this.events).onError) == null || s.call(t, u);
7097
+ f
7098
+ ), (s = (t = this.events).onError) == null || s.call(t, f);
7098
7099
  }
7099
7100
  }
7100
7101
  /**
@@ -7112,10 +7113,10 @@ class ys {
7112
7113
  const t = this.peer._pc;
7113
7114
  if (!t) return;
7114
7115
  const s = t.getSenders();
7115
- for (const u of s)
7116
- if (u.track) {
7117
- const l = u.getParameters();
7118
- l.encodings || (l.encodings = [{}]), l.encodings[0].maxBitrate = e * 1e3, yield u.setParameters(l);
7116
+ for (const f of s)
7117
+ if (f.track) {
7118
+ const l = f.getParameters();
7119
+ l.encodings || (l.encodings = [{}]), l.encodings[0].maxBitrate = e * 1e3, yield f.setParameters(l);
7119
7120
  }
7120
7121
  console.log(
7121
7122
  `[CallPeerConnection] Bandwidth limit set to ${e}kbps for ${this.remoteUserId}`
@@ -7190,19 +7191,19 @@ class ys {
7190
7191
  setupPeerEventListeners() {
7191
7192
  if (!this.peer) return;
7192
7193
  this.peer.on("signal", (t) => {
7193
- var s, u;
7194
+ var s, f;
7194
7195
  console.log(
7195
7196
  `[CallPeerConnection] Signal from ${this.remoteUserId}:`,
7196
7197
  t.type
7197
- ), (u = (s = this.events).onSignal) == null || u.call(s, t);
7198
+ ), (f = (s = this.events).onSignal) == null || f.call(s, t);
7198
7199
  }), this.peer.on("connect", () => {
7199
7200
  var t, s;
7200
7201
  console.log(`[CallPeerConnection] Connected to ${this.remoteUserId}`), this.connectionState = "connected", (s = (t = this.events).onConnect) == null || s.call(t);
7201
7202
  }), this.peer.on("data", (t) => {
7202
- var s, u;
7203
+ var s, f;
7203
7204
  try {
7204
7205
  const l = JSON.parse(t.toString());
7205
- (u = (s = this.events).onData) == null || u.call(s, l);
7206
+ (f = (s = this.events).onData) == null || f.call(s, l);
7206
7207
  } catch (l) {
7207
7208
  console.error(
7208
7209
  `[CallPeerConnection] Failed to parse data from ${this.remoteUserId}:`,
@@ -7210,27 +7211,27 @@ class ys {
7210
7211
  );
7211
7212
  }
7212
7213
  }), this.peer.on("stream", (t) => {
7213
- var s, u;
7214
+ var s, f;
7214
7215
  console.log(
7215
7216
  `[CallPeerConnection] Stream received from ${this.remoteUserId}`
7216
- ), (u = (s = this.events).onStream) == null || u.call(s, t);
7217
+ ), (f = (s = this.events).onStream) == null || f.call(s, t);
7217
7218
  }), this.peer.on("track", (t, s) => {
7218
- var u, l;
7219
+ var f, l;
7219
7220
  console.log(
7220
7221
  `[CallPeerConnection] Track received from ${this.remoteUserId}:`,
7221
7222
  t.kind
7222
- ), (l = (u = this.events).onTrack) == null || l.call(u, t, s);
7223
+ ), (l = (f = this.events).onTrack) == null || l.call(f, t, s);
7223
7224
  }), this.peer.on("close", () => {
7224
7225
  var t, s;
7225
7226
  console.log(
7226
7227
  `[CallPeerConnection] Connection closed with ${this.remoteUserId}`
7227
7228
  ), this.connectionState = "closed", (s = (t = this.events).onClose) == null || s.call(t);
7228
7229
  }), this.peer.on("error", (t) => {
7229
- var s, u;
7230
+ var s, f;
7230
7231
  console.error(
7231
7232
  `[CallPeerConnection] Error with ${this.remoteUserId}:`,
7232
7233
  t
7233
- ), this.connectionState = "failed", (u = (s = this.events).onError) == null || u.call(s, t);
7234
+ ), this.connectionState = "failed", (f = (s = this.events).onError) == null || f.call(s, t);
7234
7235
  });
7235
7236
  const e = this.peer._pc;
7236
7237
  e && e.addEventListener("connectionstatechange", () => {
@@ -7274,11 +7275,11 @@ const co = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, yt
7274
7275
  const s = yt.get(t.name);
7275
7276
  if (s)
7276
7277
  return pt({ type: "tracked", store: r }, s);
7277
- const u = {
7278
+ const f = {
7278
7279
  connection: e.connect(t),
7279
7280
  stores: {}
7280
7281
  };
7281
- return yt.set(t.name, u), pt({ type: "tracked", store: r }, u);
7282
+ return yt.set(t.name, f), pt({ type: "tracked", store: r }, f);
7282
7283
  }, vs = (r, e) => {
7283
7284
  if (e === void 0) return;
7284
7285
  const t = yt.get(r);
@@ -7287,57 +7288,57 @@ const co = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, yt
7287
7288
  var e, t;
7288
7289
  if (!r) return;
7289
7290
  const s = r.split(`
7290
- `), u = s.findIndex(
7291
+ `), f = s.findIndex(
7291
7292
  (g) => g.includes("api.setState")
7292
7293
  );
7293
- if (u < 0) return;
7294
- const l = ((e = s[u + 1]) == null ? void 0 : e.trim()) || "";
7294
+ if (f < 0) return;
7295
+ const l = ((e = s[f + 1]) == null ? void 0 : e.trim()) || "";
7295
7296
  return (t = /.+ (.+) .+/.exec(l)) == null ? void 0 : t[1];
7296
- }, bs = (r, e = {}) => (t, s, u) => {
7297
- const N = e, { enabled: l, anonymousActionType: g, store: f } = N, c = jt(N, ["enabled", "anonymousActionType", "store"]);
7297
+ }, bs = (r, e = {}) => (t, s, f) => {
7298
+ const N = e, { enabled: l, anonymousActionType: g, store: u } = N, c = jt(N, ["enabled", "anonymousActionType", "store"]);
7298
7299
  let v;
7299
7300
  try {
7300
7301
  v = (l != null ? l : (co ? "production" : void 0) !== "production") && window.__REDUX_DEVTOOLS_EXTENSION__;
7301
7302
  } catch (m) {
7302
7303
  }
7303
7304
  if (!v)
7304
- return r(t, s, u);
7305
- const T = ms(f, v, c), { connection: h } = T, I = jt(T, ["connection"]);
7305
+ return r(t, s, f);
7306
+ const T = ms(u, v, c), { connection: h } = T, I = jt(T, ["connection"]);
7306
7307
  let B = !0;
7307
- u.setState = (m, R, A) => {
7308
+ f.setState = (m, R, A) => {
7308
7309
  const P = t(m, R);
7309
7310
  if (!B) return P;
7310
7311
  const k = A === void 0 ? {
7311
7312
  type: g || ws(new Error().stack) || "anonymous"
7312
7313
  } : typeof A == "string" ? { type: A } : A;
7313
- return f === void 0 ? (h == null || h.send(k, s()), P) : (h == null || h.send(
7314
+ return u === void 0 ? (h == null || h.send(k, s()), P) : (h == null || h.send(
7314
7315
  $t(pt({}, k), {
7315
- type: `${f}/${k.type}`
7316
+ type: `${u}/${k.type}`
7316
7317
  }),
7317
7318
  $t(pt({}, Bt(c.name)), {
7318
- [f]: u.getState()
7319
+ [u]: f.getState()
7319
7320
  })
7320
7321
  ), P);
7321
- }, u.devtools = {
7322
+ }, f.devtools = {
7322
7323
  cleanup: () => {
7323
- h && typeof h.unsubscribe == "function" && h.unsubscribe(), vs(c.name, f);
7324
+ h && typeof h.unsubscribe == "function" && h.unsubscribe(), vs(c.name, u);
7324
7325
  }
7325
7326
  };
7326
7327
  const q = (...m) => {
7327
7328
  const R = B;
7328
7329
  B = !1, t(...m), B = R;
7329
- }, b = r(u.setState, s, u);
7330
- if (I.type === "untracked" ? h == null || h.init(b) : (I.stores[I.store] = u, h == null || h.init(
7330
+ }, b = r(f.setState, s, f);
7331
+ if (I.type === "untracked" ? h == null || h.init(b) : (I.stores[I.store] = f, h == null || h.init(
7331
7332
  Object.fromEntries(
7332
7333
  Object.entries(I.stores).map(([m, R]) => [
7333
7334
  m,
7334
7335
  m === I.store ? b : R.getState()
7335
7336
  ])
7336
7337
  )
7337
- )), u.dispatchFromDevtools && typeof u.dispatch == "function") {
7338
+ )), f.dispatchFromDevtools && typeof f.dispatch == "function") {
7338
7339
  let m = !1;
7339
- const R = u.dispatch;
7340
- u.dispatch = (...A) => {
7340
+ const R = f.dispatch;
7341
+ f.dispatch = (...A) => {
7341
7342
  (co ? "production" : void 0) !== "production" && A[0].type === "__setState" && !m && (console.warn(
7342
7343
  '[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'
7343
7344
  ), m = !0), R(...A);
@@ -7357,7 +7358,7 @@ const co = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, yt
7357
7358
  m.payload,
7358
7359
  (A) => {
7359
7360
  if (A.type === "__setState") {
7360
- if (f === void 0) {
7361
+ if (u === void 0) {
7361
7362
  q(A.state);
7362
7363
  return;
7363
7364
  }
@@ -7368,46 +7369,46 @@ const co = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 }, yt
7368
7369
  and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
7369
7370
  `
7370
7371
  );
7371
- const P = A.state[f];
7372
+ const P = A.state[u];
7372
7373
  if (P == null)
7373
7374
  return;
7374
- JSON.stringify(u.getState()) !== JSON.stringify(P) && q(P);
7375
+ JSON.stringify(f.getState()) !== JSON.stringify(P) && q(P);
7375
7376
  return;
7376
7377
  }
7377
- u.dispatchFromDevtools && typeof u.dispatch == "function" && u.dispatch(A);
7378
+ f.dispatchFromDevtools && typeof f.dispatch == "function" && f.dispatch(A);
7378
7379
  }
7379
7380
  );
7380
7381
  case "DISPATCH":
7381
7382
  switch (m.payload.type) {
7382
7383
  case "RESET":
7383
- return q(b), f === void 0 ? h == null ? void 0 : h.init(u.getState()) : h == null ? void 0 : h.init(Bt(c.name));
7384
+ return q(b), u === void 0 ? h == null ? void 0 : h.init(f.getState()) : h == null ? void 0 : h.init(Bt(c.name));
7384
7385
  case "COMMIT":
7385
- if (f === void 0) {
7386
- h == null || h.init(u.getState());
7386
+ if (u === void 0) {
7387
+ h == null || h.init(f.getState());
7387
7388
  return;
7388
7389
  }
7389
7390
  return h == null ? void 0 : h.init(Bt(c.name));
7390
7391
  case "ROLLBACK":
7391
7392
  return dn(m.state, (A) => {
7392
- if (f === void 0) {
7393
- q(A), h == null || h.init(u.getState());
7393
+ if (u === void 0) {
7394
+ q(A), h == null || h.init(f.getState());
7394
7395
  return;
7395
7396
  }
7396
- q(A[f]), h == null || h.init(Bt(c.name));
7397
+ q(A[u]), h == null || h.init(Bt(c.name));
7397
7398
  });
7398
7399
  case "JUMP_TO_STATE":
7399
7400
  case "JUMP_TO_ACTION":
7400
7401
  return dn(m.state, (A) => {
7401
- if (f === void 0) {
7402
+ if (u === void 0) {
7402
7403
  q(A);
7403
7404
  return;
7404
7405
  }
7405
- JSON.stringify(u.getState()) !== JSON.stringify(A[f]) && q(A[f]);
7406
+ JSON.stringify(f.getState()) !== JSON.stringify(A[u]) && q(A[u]);
7406
7407
  });
7407
7408
  case "IMPORT_STATE": {
7408
7409
  const { nextLiftedState: A } = m.payload, P = (R = A.computedStates.slice(-1)[0]) == null ? void 0 : R.state;
7409
7410
  if (!P) return;
7410
- q(f === void 0 ? P : P[f]), h == null || h.send(
7411
+ q(u === void 0 ? P : P[u]), h == null || h.send(
7411
7412
  null,
7412
7413
  // FIXME no-any
7413
7414
  A
@@ -7478,7 +7479,7 @@ const fo = {
7478
7479
  ),
7479
7480
  removeParticipant: (e) => r(
7480
7481
  (t) => {
7481
- const s = t.participants, { [e]: u } = s;
7482
+ const s = t.participants, { [e]: f } = s;
7482
7483
  return { participants: Ps(s, [Rs(e)]) };
7483
7484
  },
7484
7485
  !1,
@@ -7557,32 +7558,32 @@ var Os = Object.defineProperty, Ms = Object.defineProperties, Ls = Object.getOwn
7557
7558
  for (var t of ho(e))
7558
7559
  Ds.call(e, t) && bn(r, t, e[t]);
7559
7560
  return r;
7560
- }, Fs = (r, e) => Ms(r, Ls(e)), at = (r, e, t) => bn(r, typeof e != "symbol" ? e + "" : e, t), kt = (r, e, t) => new Promise((s, u) => {
7561
+ }, Fs = (r, e) => Ms(r, Ls(e)), at = (r, e, t) => bn(r, typeof e != "symbol" ? e + "" : e, t), kt = (r, e, t) => new Promise((s, f) => {
7561
7562
  var l = (c) => {
7562
7563
  try {
7563
- f(t.next(c));
7564
+ u(t.next(c));
7564
7565
  } catch (v) {
7565
- u(v);
7566
+ f(v);
7566
7567
  }
7567
7568
  }, g = (c) => {
7568
7569
  try {
7569
- f(t.throw(c));
7570
+ u(t.throw(c));
7570
7571
  } catch (v) {
7571
- u(v);
7572
+ f(v);
7572
7573
  }
7573
- }, f = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
7574
- f((t = t.apply(r, e)).next());
7574
+ }, u = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
7575
+ u((t = t.apply(r, e)).next());
7575
7576
  });
7576
7577
  class po extends Wo {
7577
7578
  constructor(e, t = {}, s = !1) {
7578
7579
  super(Ue), at(this, "userId"), at(this, "mediaStream", null), at(this, "peerConnections", /* @__PURE__ */ new Map()), at(this, "remoteStreams", /* @__PURE__ */ new Map()), at(this, "isLocalParticipant", !1), at(this, "callbacks"), this.userId = e, this.callbacks = t, this.isLocalParticipant = s;
7579
- const u = {
7580
+ const f = {
7580
7581
  userId: e,
7581
7582
  videoOn: !0,
7582
7583
  audioOn: !0,
7583
7584
  screenSharing: !1
7584
7585
  };
7585
- this.isLocalParticipant && this.state.setLocalParticipant(u), this.state.addParticipant(u);
7586
+ this.isLocalParticipant && this.state.setLocalParticipant(f), this.state.addParticipant(f);
7586
7587
  }
7587
7588
  /**
7588
7589
  * Initialize participant with media stream
@@ -7599,11 +7600,11 @@ class po extends Wo {
7599
7600
  this.updateState(l), console.log(
7600
7601
  `[CallParticipant] Participant ${this.userId} initialized successfully`
7601
7602
  );
7602
- } catch (u) {
7603
+ } catch (f) {
7603
7604
  throw console.error(
7604
7605
  `[CallParticipant] Failed to initialize participant ${this.userId}:`,
7605
- u
7606
- ), (s = (t = this.callbacks).onError) == null || s.call(t, u), u;
7606
+ f
7607
+ ), (s = (t = this.callbacks).onError) == null || s.call(t, f), f;
7607
7608
  }
7608
7609
  });
7609
7610
  }
@@ -7612,7 +7613,7 @@ class po extends Wo {
7612
7613
  */
7613
7614
  createPeerConnection(e, t, s) {
7614
7615
  return kt(this, null, function* () {
7615
- var u, l;
7616
+ var f, l;
7616
7617
  try {
7617
7618
  if (console.log(
7618
7619
  `[CallParticipant] Creating peer connection from ${this.userId} to ${e}`
@@ -7655,17 +7656,17 @@ class po extends Wo {
7655
7656
  c
7656
7657
  ), (h = (v = this.callbacks).onError) == null || h.call(v, c);
7657
7658
  }
7658
- }, f = new ys(
7659
+ }, u = new ys(
7659
7660
  e,
7660
7661
  Fs(gn({}, t), { initiator: s }),
7661
7662
  g
7662
7663
  );
7663
- yield f.createConnection(this.getCurrentStream()), this.peerConnections.set(e, f);
7664
+ yield u.createConnection(this.getCurrentStream()), this.peerConnections.set(e, u);
7664
7665
  } catch (g) {
7665
7666
  throw console.error(
7666
7667
  `[CallParticipant] Failed to create peer connection from ${this.userId} to ${e}:`,
7667
7668
  g
7668
- ), (l = (u = this.callbacks).onError) == null || l.call(u, g), g;
7669
+ ), (l = (f = this.callbacks).onError) == null || l.call(f, g), g;
7669
7670
  }
7670
7671
  });
7671
7672
  }
@@ -7706,11 +7707,11 @@ class po extends Wo {
7706
7707
  if (!this.mediaStream)
7707
7708
  throw new Error("Media stream not initialized");
7708
7709
  console.log(`[CallParticipant] Starting screen share for ${this.userId}`);
7709
- const s = yield this.mediaStream.startScreenShare(), u = this.mediaStream.getScreenVideoTrack(), l = this.mediaStream.getCameraVideoTrack();
7710
- if (!u)
7710
+ const s = yield this.mediaStream.startScreenShare(), f = this.mediaStream.getScreenVideoTrack(), l = this.mediaStream.getCameraVideoTrack();
7711
+ if (!f)
7711
7712
  throw new Error("Failed to get screen video track");
7712
- for (const [g, f] of this.peerConnections)
7713
- l ? (f.replaceTrack(l, u), console.log(
7713
+ for (const [g, u] of this.peerConnections)
7714
+ l ? (u.replaceTrack(l, f), console.log(
7714
7715
  `[CallParticipant] Screen video track replaced for connection with ${g}`
7715
7716
  )) : console.warn(
7716
7717
  `[CallParticipant] No camera video track to replace for ${g}`
@@ -7744,16 +7745,16 @@ class po extends Wo {
7744
7745
  "[CallParticipant] Screen video track found:",
7745
7746
  !!s
7746
7747
  );
7747
- const u = yield this.mediaStream.stopScreenShare(), l = this.mediaStream.getCameraVideoTrack();
7748
- if (console.log("[CallParticipant] Camera stream:", !!u), console.log("[CallParticipant] Camera video track:", !!l), !l)
7748
+ const f = yield this.mediaStream.stopScreenShare(), l = this.mediaStream.getCameraVideoTrack();
7749
+ if (console.log("[CallParticipant] Camera stream:", !!f), console.log("[CallParticipant] Camera video track:", !!l), !l)
7749
7750
  throw new Error("Failed to get camera video track");
7750
- for (const [g, f] of this.peerConnections)
7751
+ for (const [g, u] of this.peerConnections)
7751
7752
  try {
7752
- s && l ? (f.replaceTrack(s, l), console.log(
7753
+ s && l ? (u.replaceTrack(s, l), console.log(
7753
7754
  `[CallParticipant] Camera video track restored for connection with ${g}`
7754
7755
  )) : (console.log(
7755
7756
  `[CallParticipant] Updating entire stream for connection with ${g}`
7756
- ), f.addStream(u));
7757
+ ), u.addStream(f));
7757
7758
  } catch (c) {
7758
7759
  console.warn(
7759
7760
  `[CallParticipant] Failed to replace track for ${g}, trying stream replacement:`,
@@ -7762,10 +7763,10 @@ class po extends Wo {
7762
7763
  }
7763
7764
  if (this.updateState({
7764
7765
  screenSharing: !1,
7765
- stream: u
7766
+ stream: f
7766
7767
  }), this.isLocalParticipant && this.mediaStream) {
7767
7768
  const g = this.mediaStream.getVideoElement();
7768
- g && (g.srcObject = u, console.log(
7769
+ g && (g.srcObject = f, console.log(
7769
7770
  `[CallParticipant] Updated local video element for ${this.userId}`
7770
7771
  ));
7771
7772
  }
@@ -7862,11 +7863,11 @@ class po extends Wo {
7862
7863
  */
7863
7864
  updateState(e) {
7864
7865
  var t, s;
7865
- const u = this.getState();
7866
+ const f = this.getState();
7866
7867
  if (Object.keys(e).some(
7867
- (g) => u[g] !== e[g]
7868
+ (g) => f[g] !== e[g]
7868
7869
  )) {
7869
- const g = gn(gn({}, u), e);
7870
+ const g = gn(gn({}, f), e);
7870
7871
  this.isLocalParticipant && this.state.setLocalParticipant(g), this.state.updateParticipant(this.userId, e), (s = (t = this.callbacks).onStateChanged) == null || s.call(t, this.userId, e);
7871
7872
  }
7872
7873
  }
@@ -7900,10 +7901,10 @@ var yn = { exports: {} }, go;
7900
7901
  function Us() {
7901
7902
  return go || (go = 1, function(r) {
7902
7903
  function e(t, s) {
7903
- var u = "Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";
7904
+ var f = "Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";
7904
7905
  (function(S) {
7905
7906
  typeof RecordRTC == "undefined" && S && typeof window == "undefined" && typeof globalThis != "undefined" && (globalThis.navigator = {
7906
- userAgent: u,
7907
+ userAgent: f,
7907
7908
  getUserMedia: function() {
7908
7909
  }
7909
7910
  }, globalThis.console || (globalThis.console = {}), (typeof globalThis.console.log == "undefined" || typeof globalThis.console.error == "undefined") && (globalThis.console.error = globalThis.console.log = globalThis.console.log || function() {
@@ -7948,8 +7949,8 @@ function Us() {
7948
7949
  }
7949
7950
  }), S.window = globalThis);
7950
7951
  })(typeof globalThis != "undefined" ? globalThis : null), s = s || "multi-streams-mixer";
7951
- var l = [], g = !1, f = document.createElement("canvas"), c = f.getContext("2d");
7952
- f.style.opacity = 0, f.style.position = "absolute", f.style.zIndex = -1, f.style.top = "-1000em", f.style.left = "-1000em", f.className = s, (document.body || document.documentElement).appendChild(f), this.disableLogs = !1, this.frameInterval = 10, this.width = 360, this.height = 240, this.useGainNode = !0;
7952
+ var l = [], g = !1, u = document.createElement("canvas"), c = u.getContext("2d");
7953
+ u.style.opacity = 0, u.style.position = "absolute", u.style.zIndex = -1, u.style.top = "-1000em", u.style.left = "-1000em", u.className = s, (document.body || document.documentElement).appendChild(u), this.disableLogs = !1, this.frameInterval = 10, this.width = 360, this.height = 240, this.useGainNode = !0;
7953
7954
  var v = this, h = window.AudioContext;
7954
7955
  typeof h == "undefined" && (typeof webkitAudioContext != "undefined" && (h = webkitAudioContext), typeof mozAudioContext != "undefined" && (h = mozAudioContext));
7955
7956
  var I = window.URL;
@@ -7974,13 +7975,13 @@ function Us() {
7974
7975
  if (l.forEach(function(X) {
7975
7976
  X.stream || (X.stream = {}), X.stream.fullcanvas ? C = X : M.push(X);
7976
7977
  }), C)
7977
- f.width = C.stream.width, f.height = C.stream.height;
7978
+ u.width = C.stream.width, u.height = C.stream.height;
7978
7979
  else if (M.length) {
7979
- f.width = S > 1 ? M[0].width * 2 : M[0].width;
7980
+ u.width = S > 1 ? M[0].width * 2 : M[0].width;
7980
7981
  var W = 1;
7981
- (S === 3 || S === 4) && (W = 2), (S === 5 || S === 6) && (W = 3), (S === 7 || S === 8) && (W = 4), (S === 9 || S === 10) && (W = 5), f.height = M[0].height * W;
7982
+ (S === 3 || S === 4) && (W = 2), (S === 5 || S === 6) && (W = 3), (S === 7 || S === 8) && (W = 4), (S === 9 || S === 10) && (W = 5), u.height = M[0].height * W;
7982
7983
  } else
7983
- f.width = v.width || 360, f.height = v.height || 240;
7984
+ u.width = v.width || 360, u.height = v.height || 240;
7984
7985
  C && C instanceof HTMLVideoElement && T(C), M.forEach(function(X, te) {
7985
7986
  T(X, te);
7986
7987
  }), setTimeout(N, v.frameInterval);
@@ -8006,13 +8007,13 @@ function Us() {
8006
8007
  function R() {
8007
8008
  k();
8008
8009
  var S;
8009
- "captureStream" in f ? S = f.captureStream() : "mozCaptureStream" in f ? S = f.mozCaptureStream() : v.disableLogs || console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");
8010
+ "captureStream" in u ? S = u.captureStream() : "mozCaptureStream" in u ? S = u.mozCaptureStream() : v.disableLogs || console.error("Upgrade to latest Chrome or otherwise enable this flag: chrome://flags/#enable-experimental-web-platform-features");
8010
8011
  var C = new B();
8011
8012
  return S.getTracks().filter(function(M) {
8012
8013
  return M.kind === "video";
8013
8014
  }).forEach(function(M) {
8014
8015
  C.addTrack(M);
8015
- }), f.stream = C, C;
8016
+ }), u.stream = C, C;
8016
8017
  }
8017
8018
  function A() {
8018
8019
  q.AudioContextConstructor || (q.AudioContextConstructor = new q.AudioContext()), v.audioContext = q.AudioContextConstructor, v.audioSources = [], v.useGainNode === !0 && (v.gainNode = v.audioContext.createGain(), v.gainNode.connect(v.audioContext.destination), v.gainNode.gain.value = 0);
@@ -8060,7 +8061,7 @@ function Us() {
8060
8061
  }, this.releaseStreams = function() {
8061
8062
  l = [], g = !0, v.gainNode && (v.gainNode.disconnect(), v.gainNode = null), v.audioSources.length && (v.audioSources.forEach(function(S) {
8062
8063
  S.disconnect();
8063
- }), v.audioSources = []), v.audioDestination && (v.audioDestination.disconnect(), v.audioDestination = null), v.audioContext && v.audioContext.close(), v.audioContext = null, c.clearRect(0, 0, f.width, f.height), f.stream && (f.stream.stop(), f.stream = null);
8064
+ }), v.audioSources = []), v.audioDestination && (v.audioDestination.disconnect(), v.audioDestination = null), v.audioContext && v.audioContext.close(), v.audioContext = null, c.clearRect(0, 0, u.width, u.height), u.stream && (u.stream.stop(), u.stream = null);
8064
8065
  }, this.resetVideoStreams = function(S) {
8065
8066
  S && !(S instanceof Array) && (S = [S]), k(S);
8066
8067
  };
@@ -8098,9 +8099,9 @@ class Ws extends qs {
8098
8099
  qe(this, "currentStamp", 0);
8099
8100
  qe(this, "start", () => (this.recognition.start(), this.recognition.stream = this.track, this.recognizing = !0, this.startTime = performance.now(), this));
8100
8101
  qe(this, "stop", () => (this.recognition.stop(), this.recognizing = !1, this.endTime = performance.now(), this));
8101
- ("webkitSpeechRecognition" in window || "SpeechRecognition" in window) && (this.recognition = new (window.SpeechRecognition || window.webkitSpeechRecognition)(), this.recognition.continuous = !0, this.recognition.interimResults = !0, this.recognition.lang = s, this.track = t, this.recognition.onstart = this.emit("start"), this.recognition.onend = () => this.emit("end"), this.recognition.onresult = (u) => {
8102
- const { results: l, resultIndex: g } = u;
8103
- let f = "";
8102
+ ("webkitSpeechRecognition" in window || "SpeechRecognition" in window) && (this.recognition = new (window.SpeechRecognition || window.webkitSpeechRecognition)(), this.recognition.continuous = !0, this.recognition.interimResults = !0, this.recognition.lang = s, this.track = t, this.recognition.onstart = this.emit("start"), this.recognition.onend = () => this.emit("end"), this.recognition.onresult = (f) => {
8103
+ const { results: l, resultIndex: g } = f;
8104
+ let u = "";
8104
8105
  if (l[g].isFinal && l[g][0].transcript) {
8105
8106
  const c = {
8106
8107
  sentence: l[g][0].transcript,
@@ -8110,11 +8111,11 @@ class Ws extends qs {
8110
8111
  };
8111
8112
  this.transcripts.push(c), this.emit("sentence", c);
8112
8113
  } else
8113
- this.currentStamp = (/* @__PURE__ */ new Date()).getTime(), f += l[g][0].transcript, this.emit("interim", {
8114
- sentence: f,
8114
+ this.currentStamp = (/* @__PURE__ */ new Date()).getTime(), u += l[g][0].transcript, this.emit("interim", {
8115
+ sentence: u,
8115
8116
  timeStamp: this.currentStamp
8116
8117
  });
8117
- this.emit("result", u);
8118
+ this.emit("result", f);
8118
8119
  });
8119
8120
  }
8120
8121
  }
@@ -8125,21 +8126,21 @@ var Gs = Object.defineProperty, yo = Object.getOwnPropertySymbols, Vs = Object.p
8125
8126
  for (var t of yo(e))
8126
8127
  zs.call(e, t) && Sn(r, t, e[t]);
8127
8128
  return r;
8128
- }, st = (r, e, t) => Sn(r, typeof e != "symbol" ? e + "" : e, t), mn = (r, e, t) => new Promise((s, u) => {
8129
+ }, st = (r, e, t) => Sn(r, typeof e != "symbol" ? e + "" : e, t), mn = (r, e, t) => new Promise((s, f) => {
8129
8130
  var l = (c) => {
8130
8131
  try {
8131
- f(t.next(c));
8132
+ u(t.next(c));
8132
8133
  } catch (v) {
8133
- u(v);
8134
+ f(v);
8134
8135
  }
8135
8136
  }, g = (c) => {
8136
8137
  try {
8137
- f(t.throw(c));
8138
+ u(t.throw(c));
8138
8139
  } catch (v) {
8139
- u(v);
8140
+ f(v);
8140
8141
  }
8141
- }, f = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
8142
- f((t = t.apply(r, e)).next());
8142
+ }, u = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
8143
+ u((t = t.apply(r, e)).next());
8143
8144
  });
8144
8145
  class Js {
8145
8146
  constructor(e = {}, t = {}) {
@@ -8157,7 +8158,7 @@ class Js {
8157
8158
  */
8158
8159
  startRecording(e, t) {
8159
8160
  return mn(this, null, function* () {
8160
- var s, u, l, g;
8161
+ var s, f, l, g;
8161
8162
  try {
8162
8163
  if (console.log(
8163
8164
  "[CallRecorder] Starting recording with",
@@ -8168,8 +8169,8 @@ class Js {
8168
8169
  if (!t)
8169
8170
  throw new Error("Recording data is required");
8170
8171
  this.mixer = new js(e), this.mixer.frameInterval = 1, this.mixer.startDrawingFrames();
8171
- const f = e[0];
8172
- f && f.getAudioTracks().length > 0 && (this.localTranscriber = new Ws(f)), MediaRecorder.isTypeSupported(this.config.mimeType) || (console.warn(
8172
+ const u = e[0];
8173
+ u && u.getAudioTracks().length > 0 && (this.localTranscriber = new Ws(u)), MediaRecorder.isTypeSupported(this.config.mimeType) || (console.warn(
8173
8174
  "[CallRecorder] Preferred mime type not supported, falling back to default"
8174
8175
  ), this.config.mimeType = "video/webm");
8175
8176
  const c = this.mixer.getMixedStream();
@@ -8177,9 +8178,9 @@ class Js {
8177
8178
  mimeType: this.config.mimeType,
8178
8179
  videoBitsPerSecond: this.config.videoBitsPerSecond,
8179
8180
  audioBitsPerSecond: this.config.audioBitsPerSecond
8180
- }), this.setupRecorderEventHandlers(t), this.recorder.start(this.config.interval), this.isRecording = !0, this.localTranscriber && this.localTranscriber.start(), (u = (s = this.callbacks).onRecordingStarted) == null || u.call(s, t), console.log("[CallRecorder] Recording started successfully");
8181
- } catch (f) {
8182
- throw console.error("[CallRecorder] Failed to start recording:", f), (g = (l = this.callbacks).onError) == null || g.call(l, f), f;
8181
+ }), this.setupRecorderEventHandlers(t), this.recorder.start(this.config.interval), this.isRecording = !0, this.localTranscriber && this.localTranscriber.start(), (f = (s = this.callbacks).onRecordingStarted) == null || f.call(s, t), console.log("[CallRecorder] Recording started successfully");
8182
+ } catch (u) {
8183
+ throw console.error("[CallRecorder] Failed to start recording:", u), (g = (l = this.callbacks).onError) == null || g.call(l, u), u;
8183
8184
  }
8184
8185
  });
8185
8186
  }
@@ -8190,13 +8191,13 @@ class Js {
8190
8191
  return mn(this, null, function* () {
8191
8192
  var e, t;
8192
8193
  try {
8193
- if (console.log("[CallRecorder] Stopping recording"), !this.isRecording || !this.recorder)
8194
- return console.warn("[CallRecorder] No active recording to stop"), [];
8195
- this.recorder.stop(), this.isRecording = !1;
8196
- let s = [];
8197
- return this.localTranscriber && (this.localTranscriber.stop(), s = this.localTranscriber.transcripts || []), this.mixer && this.mixer.releaseStreams(), console.log("[CallRecorder] Recording stopped successfully"), s;
8194
+ if (console.log("[CallRecorder] Stopping recording"), !this.isRecording || !this.recorder) {
8195
+ console.warn("[CallRecorder] No active recording to stop");
8196
+ return;
8197
+ }
8198
+ this.recorder.stop(), this.isRecording = !1, this.localTranscriber && this.localTranscriber.stop(), this.mixer && this.mixer.releaseStreams(), console.log("[CallRecorder] Recording stopped successfully");
8198
8199
  } catch (s) {
8199
- return console.error("[CallRecorder] Failed to stop recording:", s), (t = (e = this.callbacks).onError) == null || t.call(e, s), [];
8200
+ console.error("[CallRecorder] Failed to stop recording:", s), (t = (e = this.callbacks).onError) == null || t.call(e, s);
8200
8201
  }
8201
8202
  });
8202
8203
  }
@@ -8211,16 +8212,16 @@ class Js {
8211
8212
  */
8212
8213
  setupRecorderEventHandlers(e) {
8213
8214
  this.recorder && (this.recorder.ondataavailable = (t) => {
8214
- var s, u;
8215
- t.data && t.data.size > 0 && ((u = (s = this.callbacks).onRecordingChunk) == null || u.call(s, t.data, e));
8215
+ var s, f;
8216
+ t.data && t.data.size > 0 && ((f = (s = this.callbacks).onRecordingChunk) == null || f.call(s, t.data, e));
8216
8217
  }, this.recorder.onstart = () => {
8217
8218
  console.log("[CallRecorder] MediaRecorder started");
8218
8219
  }, this.recorder.onstop = () => {
8219
8220
  var t, s;
8220
- console.log("[CallRecorder] MediaRecorder stopped"), (s = (t = this.callbacks).onRecordingStopped) == null || s.call(t, e);
8221
+ console.log("[CallRecorder] MediaRecorder stopped"), (s = (t = this.callbacks).onRecordingStopped) == null || s.call(t, e, this.getTranscripts());
8221
8222
  }, this.recorder.onerror = (t) => {
8222
- var s, u;
8223
- console.error("[CallRecorder] MediaRecorder error:", t), (u = (s = this.callbacks).onError) == null || u.call(s, new Error(`Recording error: ${t}`));
8223
+ var s, f;
8224
+ console.error("[CallRecorder] MediaRecorder error:", t), (f = (s = this.callbacks).onError) == null || f.call(s, new Error(`Recording error: ${t}`));
8224
8225
  });
8225
8226
  }
8226
8227
  /**
@@ -8284,21 +8285,21 @@ var Ys = Object.defineProperty, Ks = Object.defineProperties, Xs = Object.getOwn
8284
8285
  for (var t of mo(e))
8285
8286
  Qs.call(e, t) && _n(r, t, e[t]);
8286
8287
  return r;
8287
- }, tl = (r, e) => Ks(r, Xs(e)), We = (r, e, t) => _n(r, typeof e != "symbol" ? e + "" : e, t), ke = (r, e, t) => new Promise((s, u) => {
8288
+ }, tl = (r, e) => Ks(r, Xs(e)), We = (r, e, t) => _n(r, typeof e != "symbol" ? e + "" : e, t), ke = (r, e, t) => new Promise((s, f) => {
8288
8289
  var l = (c) => {
8289
8290
  try {
8290
- f(t.next(c));
8291
+ u(t.next(c));
8291
8292
  } catch (v) {
8292
- u(v);
8293
+ f(v);
8293
8294
  }
8294
8295
  }, g = (c) => {
8295
8296
  try {
8296
- f(t.throw(c));
8297
+ u(t.throw(c));
8297
8298
  } catch (v) {
8298
- u(v);
8299
+ f(v);
8299
8300
  }
8300
- }, f = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
8301
- f((t = t.apply(r, e)).next());
8301
+ }, u = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
8302
+ u((t = t.apply(r, e)).next());
8302
8303
  });
8303
8304
  class rl extends Wo {
8304
8305
  constructor(e, t = {}) {
@@ -8358,18 +8359,18 @@ class rl extends Wo {
8358
8359
  yield this.localParticipant.initialize(l);
8359
8360
  }
8360
8361
  this.state.setIsCalling(!0), this.state.setCallStatus("connecting"), console.log("[PeersCaller] Starting call for room:", this.config.roomId);
8361
- const u = yield this.socket.startCall(this.config.roomId);
8362
- if (console.log("[PeersCaller] Received call.start response:", u), u.success)
8363
- this.state.setCallStatus("connected"), u.participants.forEach((l) => {
8362
+ const f = yield this.socket.startCall(this.config.roomId);
8363
+ if (console.log("[PeersCaller] Received call.start response:", f), f.success)
8364
+ this.state.setCallStatus("connected"), f.participants.forEach((l) => {
8364
8365
  l !== this.config.userId && this.handleParticipantJoined(l);
8365
- }), console.log("[PeersCaller] Call started successfully"), (s = (t = this.callbacks).onCallStarted) == null || s.call(t, u);
8366
+ }), console.log("[PeersCaller] Call started successfully"), (s = (t = this.callbacks).onCallStarted) == null || s.call(t, f);
8366
8367
  else {
8367
8368
  this.state.setIsCalling(!1), this.state.setCallStatus("idle");
8368
8369
  const l = "Failed to start call on server";
8369
8370
  throw this.handleError("SIGNALING_ERROR", l), console.error("[PeersCaller] Call start failed:", l), new Error(l);
8370
8371
  }
8371
- } catch (u) {
8372
- throw console.error("[PeersCaller] Failed to start call:", u), this.handleError("MEDIA_ACCESS_DENIED", `Failed to start call: ${u}`), u;
8372
+ } catch (f) {
8373
+ throw console.error("[PeersCaller] Failed to start call:", f), this.handleError("MEDIA_ACCESS_DENIED", `Failed to start call: ${f}`), f;
8373
8374
  }
8374
8375
  });
8375
8376
  }
@@ -8388,19 +8389,19 @@ class rl extends Wo {
8388
8389
  `Cannot join call: ${t.status === "full" ? "Call is full" : "Unable to join"}`
8389
8390
  );
8390
8391
  if (this.state.setCallStatus("connecting"), this.localParticipant && !this.localParticipant.getCurrentStream()) {
8391
- const u = {
8392
+ const f = {
8392
8393
  video: typeof (e == null ? void 0 : e.video) == "boolean" ? e.video : !0,
8393
8394
  audio: typeof (e == null ? void 0 : e.audio) == "boolean" ? e.audio : !0
8394
8395
  };
8395
8396
  console.log(
8396
8397
  "[PeersCaller] Initializing local media with config:",
8397
- u
8398
- ), yield this.localParticipant.initialize(u);
8398
+ f
8399
+ ), yield this.localParticipant.initialize(f);
8399
8400
  }
8400
8401
  console.log("[PeersCaller] Joining call for room:", this.config.roomId);
8401
8402
  const s = yield this.socket.joinRoom(this.config.roomId);
8402
- console.log("[PeersCaller] Received call.join response:", s), this.state.setCallStatus("connected"), this.state.setIsCalling(!0), s.participants.forEach((u) => {
8403
- u !== this.config.userId && this.handleParticipantJoined(u);
8403
+ console.log("[PeersCaller] Received call.join response:", s), this.state.setCallStatus("connected"), this.state.setIsCalling(!0), s.participants.forEach((f) => {
8404
+ f !== this.config.userId && this.handleParticipantJoined(f);
8404
8405
  }), console.log("[PeersCaller] Joined call successfully");
8405
8406
  } catch (t) {
8406
8407
  throw console.error("[PeersCaller] Failed to join call:", t), this.state.setCallStatus("idle"), this.handleError("INVALID_ROOM_ID", `Failed to join call: ${t}`), t;
@@ -8502,27 +8503,31 @@ class rl extends Wo {
8502
8503
  console.warn("[PeersCaller] Recording already in progress");
8503
8504
  return;
8504
8505
  }
8505
- const u = [], l = (s = this.localParticipant) == null ? void 0 : s.getCurrentStream();
8506
- l && u.push(l);
8506
+ const f = [], l = (s = this.localParticipant) == null ? void 0 : s.getCurrentStream();
8507
+ l && f.push(l);
8507
8508
  for (const g of this.participants.values()) {
8508
- const f = g.getAllRemoteStreams();
8509
- u.push(...f.values());
8509
+ const u = g.getCurrentStream();
8510
+ u && f.push(u);
8510
8511
  }
8511
- if (u.length === 0)
8512
+ if (f.length === 0)
8512
8513
  throw new Error("No streams available for recording");
8513
8514
  this.recorder = new Js(t, {
8514
8515
  onRecordingStarted: (g) => {
8515
8516
  this.socket.startRecording(this.config.roomId, g.id);
8516
8517
  },
8517
- onRecordingChunk: (g, f) => {
8518
+ onRecordingChunk: (g, u) => {
8518
8519
  this.socket.sendRecordingChunk(
8519
8520
  this.config.roomId,
8520
- f.id,
8521
+ u.id,
8521
8522
  g
8522
8523
  );
8523
8524
  },
8524
- onRecordingStopped: (g) => {
8525
- this.socket.endRecording(this.config.roomId, g.id);
8525
+ onRecordingStopped: (g, u) => {
8526
+ this.socket.endRecording(
8527
+ this.config.roomId,
8528
+ g.id,
8529
+ u
8530
+ );
8526
8531
  },
8527
8532
  onTranscriptReceived: (g) => {
8528
8533
  this.socket.sendTranscript(this.config.roomId, g.text);
@@ -8530,12 +8535,12 @@ class rl extends Wo {
8530
8535
  onError: (g) => {
8531
8536
  this.handleError("RECORDING_FAILED", g.message);
8532
8537
  }
8533
- }), yield this.recorder.startRecording(u, e), this.state.setIsRecording(!0), console.log("[PeersCaller] Recording started successfully");
8534
- } catch (u) {
8535
- throw console.error("[PeersCaller] Failed to start recording:", u), this.handleError(
8538
+ }), yield this.recorder.startRecording(f, e), this.state.setIsRecording(!0), console.log("[PeersCaller] Recording started successfully");
8539
+ } catch (f) {
8540
+ throw console.error("[PeersCaller] Failed to start recording:", f), this.handleError(
8536
8541
  "RECORDING_FAILED",
8537
- `Failed to start recording: ${u}`
8538
- ), u;
8542
+ `Failed to start recording: ${f}`
8543
+ ), f;
8539
8544
  }
8540
8545
  });
8541
8546
  }
@@ -8654,10 +8659,10 @@ class rl extends Wo {
8654
8659
  });
8655
8660
  };
8656
8661
  this.socket.on("call.participants", s), this.eventListeners.set("call.participants", s);
8657
- const u = () => {
8662
+ const f = () => {
8658
8663
  this.state.setIsCalling(!1);
8659
8664
  };
8660
- this.socket.on("call.left", u), this.eventListeners.set("call.left", u);
8665
+ this.socket.on("call.left", f), this.eventListeners.set("call.left", f);
8661
8666
  const l = (T) => {
8662
8667
  var m, R;
8663
8668
  console.error("[PeersCaller] Server error:", T), (R = (m = this.callbacks).onError) == null || R.call(m, T.error, T.message);
@@ -8667,10 +8672,10 @@ class rl extends Wo {
8667
8672
  this.handleOffer(T.from, T.offer);
8668
8673
  };
8669
8674
  this.socket.on("call.offer", g), this.eventListeners.set("call.offer", g);
8670
- const f = (T) => {
8675
+ const u = (T) => {
8671
8676
  this.handleAnswer(T.from, T.answer);
8672
8677
  };
8673
- this.socket.on("call.answer", f), this.eventListeners.set("call.answer", f);
8678
+ this.socket.on("call.answer", u), this.eventListeners.set("call.answer", u);
8674
8679
  const c = (T) => {
8675
8680
  this.handleCandidate(T.from, T.candidate);
8676
8681
  };
@@ -8732,32 +8737,32 @@ class rl extends Wo {
8732
8737
  return;
8733
8738
  }
8734
8739
  console.log(`[PeersCaller] Participant ${e} joined`);
8735
- const u = new po(
8740
+ const f = new po(
8736
8741
  e,
8737
8742
  {
8738
- onStreamReceived: (f, c) => {
8743
+ onStreamReceived: (u, c) => {
8739
8744
  var v, h;
8740
- (h = (v = this.callbacks).onStreamReceived) == null || h.call(v, f, c);
8745
+ (h = (v = this.callbacks).onStreamReceived) == null || h.call(v, u, c);
8741
8746
  },
8742
- onPeerConnected: (f) => {
8747
+ onPeerConnected: (u) => {
8743
8748
  console.log(
8744
- `[PeersCaller] Peer connection established with ${f}`
8749
+ `[PeersCaller] Peer connection established with ${u}`
8745
8750
  );
8746
8751
  },
8747
- onPeerDisconnected: (f) => {
8748
- this.handleParticipantLeft(f);
8752
+ onPeerDisconnected: (u) => {
8753
+ this.handleParticipantLeft(u);
8749
8754
  },
8750
- onSignal: (f, c, v) => {
8751
- this.forwardSignalToServer(f, c, v);
8755
+ onSignal: (u, c, v) => {
8756
+ this.forwardSignalToServer(u, c, v);
8752
8757
  },
8753
- onError: (f) => {
8754
- this.handleError("PEER_CONNECTION_FAILED", f.message);
8758
+ onError: (u) => {
8759
+ this.handleError("PEER_CONNECTION_FAILED", u.message);
8755
8760
  }
8756
8761
  },
8757
8762
  !1
8758
8763
  // isLocalParticipant = false
8759
8764
  );
8760
- if (this.participants.set(e, u), !this.localParticipant) {
8765
+ if (this.participants.set(e, f), !this.localParticipant) {
8761
8766
  console.error(
8762
8767
  "[PeersCaller] Cannot create peer connection - local participant not initialized"
8763
8768
  );
@@ -8778,10 +8783,10 @@ class rl extends Wo {
8778
8783
  audioOn: !0,
8779
8784
  screenSharing: !1
8780
8785
  });
8781
- } catch (u) {
8786
+ } catch (f) {
8782
8787
  console.error(
8783
8788
  `[PeersCaller] Failed to handle participant ${e} joining:`,
8784
- u
8789
+ f
8785
8790
  );
8786
8791
  }
8787
8792
  });
@@ -8886,8 +8891,8 @@ class rl extends Wo {
8886
8891
  * Handle participant state update
8887
8892
  */
8888
8893
  handleParticipantStateUpdate(e, t) {
8889
- var s, u;
8890
- this.state.updateParticipant(e, t), (u = (s = this.callbacks).onParticipantStateChanged) == null || u.call(s, e, t);
8894
+ var s, f;
8895
+ this.state.updateParticipant(e, t), (f = (s = this.callbacks).onParticipantStateChanged) == null || f.call(s, e, t);
8891
8896
  }
8892
8897
  /**
8893
8898
  * Handle participant left
@@ -8895,8 +8900,8 @@ class rl extends Wo {
8895
8900
  handleParticipantLeft(e) {
8896
8901
  var t, s;
8897
8902
  console.log(`[PeersCaller] Participant ${e} left`);
8898
- const u = this.participants.get(e);
8899
- u && (u.cleanup(), this.participants.delete(e)), this.state.removeParticipant(e), (s = (t = this.callbacks).onParticipantLeft) == null || s.call(t, e);
8903
+ const f = this.participants.get(e);
8904
+ f && (f.cleanup(), this.participants.delete(e)), this.state.removeParticipant(e), (s = (t = this.callbacks).onParticipantLeft) == null || s.call(t, e);
8900
8905
  }
8901
8906
  /**
8902
8907
  * Handle call ended notification from server
@@ -8909,8 +8914,8 @@ class rl extends Wo {
8909
8914
  );
8910
8915
  try {
8911
8916
  this.recorder && this.state.isRecording && (yield this.stopRecording()), this.cleanupAllParticipants(), this.state.setIsCalling(!1), this.state.setCallStatus("idle"), this.state.clearParticipants(), (s = (t = this.callbacks).onCallEnded) == null || s.call(t, e), console.log("[PeersCaller] Call ended cleanup completed");
8912
- } catch (u) {
8913
- console.error("[PeersCaller] Error handling call ended:", u);
8917
+ } catch (f) {
8918
+ console.error("[PeersCaller] Error handling call ended:", f);
8914
8919
  }
8915
8920
  });
8916
8921
  }
@@ -8940,8 +8945,8 @@ class rl extends Wo {
8940
8945
  * Handle errors with proper categorization
8941
8946
  */
8942
8947
  handleError(e, t) {
8943
- var s, u;
8944
- console.error(`[PeersCaller] ${e}: ${t}`), this.state.setError(e, t), (u = (s = this.callbacks).onError) == null || u.call(s, e, t);
8948
+ var s, f;
8949
+ console.error(`[PeersCaller] ${e}: ${t}`), this.state.setError(e, t), (f = (s = this.callbacks).onError) == null || f.call(s, e, t);
8945
8950
  }
8946
8951
  /**
8947
8952
  * Fetch ICE servers from the backend
@@ -8999,39 +9004,39 @@ class rl extends Wo {
8999
9004
  ), this.config.debug && console.log("[PeersCaller] Unknown signal data:", s);
9000
9005
  break;
9001
9006
  }
9002
- } catch (u) {
9007
+ } catch (f) {
9003
9008
  console.error(
9004
9009
  `[PeersCaller] Failed to forward signal from ${e} to ${t}:`,
9005
- u
9006
- ), this.handleError("SIGNALING_ERROR", `Failed to forward signal: ${u}`);
9010
+ f
9011
+ ), this.handleError("SIGNALING_ERROR", `Failed to forward signal: ${f}`);
9007
9012
  }
9008
9013
  }
9009
9014
  }
9010
- var Je = (r, e, t) => new Promise((s, u) => {
9015
+ var Je = (r, e, t) => new Promise((s, f) => {
9011
9016
  var l = (c) => {
9012
9017
  try {
9013
- f(t.next(c));
9018
+ u(t.next(c));
9014
9019
  } catch (v) {
9015
- u(v);
9020
+ f(v);
9016
9021
  }
9017
9022
  }, g = (c) => {
9018
9023
  try {
9019
- f(t.throw(c));
9024
+ u(t.throw(c));
9020
9025
  } catch (v) {
9021
- u(v);
9026
+ f(v);
9022
9027
  }
9023
- }, f = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
9024
- f((t = t.apply(r, e)).next());
9028
+ }, u = (c) => c.done ? s(c.value) : Promise.resolve(c.value).then(l, g);
9029
+ u((t = t.apply(r, e)).next());
9025
9030
  });
9026
9031
  function _l(r) {
9027
- const [e, t] = it(null), [s, u] = it(!1), l = Xo(!1), g = Ue((C) => C), f = Object.values(
9032
+ const [e, t] = it(null), [s, f] = it(!1), l = Xo(!1), g = Ue((C) => C), u = Object.values(
9028
9033
  Ue((C) => C.participants)
9029
9034
  ), c = Ue((C) => C.localParticipant), v = Ue((C) => C.callStatus === "connected"), h = Ue((C) => C.isRecording), I = Ue((C) => C.error), B = Fe(() => Je(null, null, function* () {
9030
9035
  if (!(l.current || e))
9031
9036
  try {
9032
9037
  l.current = !0;
9033
9038
  const C = new rl(r, r.callbacks);
9034
- yield C.initialize(), t(C), u(!0);
9039
+ yield C.initialize(), t(C), f(!0);
9035
9040
  } catch (C) {
9036
9041
  throw console.error("[useVideoCall] Failed to initialize:", C), l.current = !1, C;
9037
9042
  }
@@ -9081,7 +9086,7 @@ function _l(r) {
9081
9086
  if (!e) throw new Error("PeersCaller not initialized");
9082
9087
  return e.stopRecording();
9083
9088
  }), [e]), S = Fe(() => {
9084
- e && (e.cleanup(), t(null), u(!1), l.current = !1);
9089
+ e && (e.cleanup(), t(null), f(!1), l.current = !1);
9085
9090
  }, [e]);
9086
9091
  return ct(() => {
9087
9092
  r.autoInitialize && !s && !l.current && B().catch(console.error);
@@ -9103,7 +9108,7 @@ function _l(r) {
9103
9108
  stopRecording: k,
9104
9109
  // State
9105
9110
  callState: g,
9106
- participants: f,
9111
+ participants: u,
9107
9112
  localParticipant: c,
9108
9113
  isConnected: v,
9109
9114
  isRecording: h,
@@ -9116,13 +9121,13 @@ function _l(r) {
9116
9121
  function El(r) {
9117
9122
  const [e, t] = it(
9118
9123
  null
9119
- ), [s, u] = it(null), l = Ue((g) => g.participants[r]);
9124
+ ), [s, f] = it(null), l = Ue((g) => g.participants[r]);
9120
9125
  return ct(() => {
9121
9126
  var g;
9122
9127
  if (l != null && l.stream) {
9123
- if (u(l.stream), !e) {
9124
- const f = document.createElement("video");
9125
- f.autoplay = !0, f.playsInline = !0, f.muted = r === ((g = Ue.getState().localParticipant) == null ? void 0 : g.userId), t(f);
9128
+ if (f(l.stream), !e) {
9129
+ const u = document.createElement("video");
9130
+ u.autoplay = !0, u.playsInline = !0, u.muted = r === ((g = Ue.getState().localParticipant) == null ? void 0 : g.userId), t(u);
9126
9131
  }
9127
9132
  e && (e.srcObject = l.stream);
9128
9133
  }
@@ -9152,49 +9157,49 @@ function Cl() {
9152
9157
  };
9153
9158
  }
9154
9159
  function Rl() {
9155
- const [r, e] = it({ videoDevices: [], audioDevices: [] }), [t, s] = it({ camera: null, microphone: null }), u = Fe(() => Je(null, null, function* () {
9160
+ const [r, e] = it({ videoDevices: [], audioDevices: [] }), [t, s] = it({ camera: null, microphone: null }), f = Fe(() => Je(null, null, function* () {
9156
9161
  try {
9157
- const f = yield navigator.mediaDevices.enumerateDevices();
9162
+ const u = yield navigator.mediaDevices.enumerateDevices();
9158
9163
  e({
9159
- videoDevices: f.filter((c) => c.kind === "videoinput"),
9160
- audioDevices: f.filter((c) => c.kind === "audioinput")
9164
+ videoDevices: u.filter((c) => c.kind === "videoinput"),
9165
+ audioDevices: u.filter((c) => c.kind === "audioinput")
9161
9166
  });
9162
- } catch (f) {
9163
- console.error("[useMediaDevices] Failed to get devices:", f);
9167
+ } catch (u) {
9168
+ console.error("[useMediaDevices] Failed to get devices:", u);
9164
9169
  }
9165
9170
  }), []), l = Fe(() => Je(null, null, function* () {
9166
9171
  try {
9167
9172
  if ("permissions" in navigator) {
9168
- const f = yield navigator.permissions.query({
9173
+ const u = yield navigator.permissions.query({
9169
9174
  name: "camera"
9170
9175
  }), c = yield navigator.permissions.query({
9171
9176
  name: "microphone"
9172
9177
  });
9173
9178
  s({
9174
- camera: f.state,
9179
+ camera: u.state,
9175
9180
  microphone: c.state
9176
9181
  });
9177
9182
  }
9178
- } catch (f) {
9179
- console.error("[useMediaDevices] Failed to check permissions:", f);
9183
+ } catch (u) {
9184
+ console.error("[useMediaDevices] Failed to check permissions:", u);
9180
9185
  }
9181
9186
  }), []), g = Fe(() => Je(null, null, function* () {
9182
9187
  try {
9183
9188
  return (yield navigator.mediaDevices.getUserMedia({
9184
9189
  video: !0,
9185
9190
  audio: !0
9186
- })).getTracks().forEach((c) => c.stop()), yield l(), yield u(), !0;
9187
- } catch (f) {
9188
- return console.error("[useMediaDevices] Failed to request permissions:", f), !1;
9191
+ })).getTracks().forEach((c) => c.stop()), yield l(), yield f(), !0;
9192
+ } catch (u) {
9193
+ return console.error("[useMediaDevices] Failed to request permissions:", u), !1;
9189
9194
  }
9190
- }), [l, u]);
9195
+ }), [l, f]);
9191
9196
  return ct(() => {
9192
- var f;
9193
- u(), l();
9197
+ var u;
9198
+ f(), l();
9194
9199
  const c = () => {
9195
- u();
9200
+ f();
9196
9201
  };
9197
- return (f = navigator.mediaDevices) == null || f.addEventListener(
9202
+ return (u = navigator.mediaDevices) == null || u.addEventListener(
9198
9203
  "devicechange",
9199
9204
  c
9200
9205
  ), () => {
@@ -9204,10 +9209,10 @@ function Rl() {
9204
9209
  c
9205
9210
  );
9206
9211
  };
9207
- }, [u, l]), {
9212
+ }, [f, l]), {
9208
9213
  devices: r,
9209
9214
  permissions: t,
9210
- getDevices: u,
9215
+ getDevices: f,
9211
9216
  checkPermissions: l,
9212
9217
  requestPermissions: g
9213
9218
  };
@@ -9246,8 +9251,8 @@ const Al = () => `peer_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`
9246
9251
  };
9247
9252
  };
9248
9253
  function kl(r, e, t) {
9249
- const s = `[${r}] ${e}`, u = new Error(s);
9250
- return t && (u.details = t), u;
9254
+ const s = `[${r}] ${e}`, f = new Error(s);
9255
+ return t && (f.details = t), f;
9251
9256
  }
9252
9257
  function Ol() {
9253
9258
  const r = {