@ethora/chat-component 24.12.37 → 24.12.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -43,24 +43,24 @@ function Vh() {
43
43
  return a === l && (a !== 0 || 1 / a === 1 / l) || a !== a && l !== l;
44
44
  }
45
45
  var A = typeof Object.is == "function" ? Object.is : e, r = t.useSyncExternalStore, n = t.useRef, s = t.useEffect, o = t.useMemo, i = t.useDebugValue;
46
- return ts.useSyncExternalStoreWithSelector = function(a, l, c, d, f) {
46
+ return ts.useSyncExternalStoreWithSelector = function(a, l, c, d, h) {
47
47
  var p = n(null);
48
48
  if (p.current === null) {
49
- var h = { hasValue: !1, value: null };
50
- p.current = h;
51
- } else h = p.current;
49
+ var f = { hasValue: !1, value: null };
50
+ p.current = f;
51
+ } else f = p.current;
52
52
  p = o(function() {
53
53
  function w(b) {
54
54
  if (!C) {
55
- if (C = !0, E = b, b = d(b), f !== void 0 && h.hasValue) {
56
- var m = h.value;
57
- if (f(m, b)) return v = m;
55
+ if (C = !0, E = b, b = d(b), h !== void 0 && f.hasValue) {
56
+ var m = f.value;
57
+ if (h(m, b)) return v = m;
58
58
  }
59
59
  return v = b;
60
60
  }
61
61
  if (m = v, A(E, b)) return m;
62
62
  var y = d(b);
63
- return f !== void 0 && f(m, y) ? m : (E = b, v = y);
63
+ return h !== void 0 && h(m, y) ? m : (E = b, v = y);
64
64
  }
65
65
  var C = !1, E, v, B = c === void 0 ? null : c;
66
66
  return [function() {
@@ -68,10 +68,10 @@ function Vh() {
68
68
  }, B === null ? void 0 : function() {
69
69
  return w(B());
70
70
  }];
71
- }, [l, c, d, f]);
71
+ }, [l, c, d, h]);
72
72
  var g = r(a, p[0], p[1]);
73
73
  return s(function() {
74
- h.hasValue = !0, h.value = g;
74
+ f.hasValue = !0, f.value = g;
75
75
  }, [g]), i(g), g;
76
76
  }, ts;
77
77
  }
@@ -95,17 +95,17 @@ function Xh() {
95
95
  return l === c && (l !== 0 || 1 / l === 1 / c) || l !== l && c !== c;
96
96
  }
97
97
  var A = typeof Object.is == "function" ? Object.is : e, r = t.useSyncExternalStore, n = t.useRef, s = t.useEffect, o = t.useMemo, i = t.useDebugValue;
98
- function a(l, c, d, f, p) {
99
- var h = n(null), g;
100
- h.current === null ? (g = {
98
+ function a(l, c, d, h, p) {
99
+ var f = n(null), g;
100
+ f.current === null ? (g = {
101
101
  hasValue: !1,
102
102
  value: null
103
- }, h.current = g) : g = h.current;
103
+ }, f.current = g) : g = f.current;
104
104
  var w = o(function() {
105
105
  var B = !1, b, m, y = function(S) {
106
106
  if (!B) {
107
107
  B = !0, b = S;
108
- var M = f(S);
108
+ var M = h(S);
109
109
  if (p !== void 0 && g.hasValue) {
110
110
  var I = g.value;
111
111
  if (p(I, M))
@@ -116,7 +116,7 @@ function Xh() {
116
116
  var j = b, G = m;
117
117
  if (A(j, S))
118
118
  return G;
119
- var ee = f(S);
119
+ var ee = h(S);
120
120
  return p !== void 0 && p(G, ee) ? G : (b = S, m = ee, ee);
121
121
  }, O = d === void 0 ? null : d, N = function() {
122
122
  return y(c());
@@ -124,7 +124,7 @@ function Xh() {
124
124
  return y(O());
125
125
  };
126
126
  return [N, R];
127
- }, [c, d, f, p]), C = w[0], E = w[1], v = r(l, C, E);
127
+ }, [c, d, h, p]), C = w[0], E = w[1], v = r(l, C, E);
128
128
  return s(function() {
129
129
  g.hasValue = !0, g.value = v;
130
130
  }, [v]), i(v), v;
@@ -185,7 +185,7 @@ function _h(t = Lt) {
185
185
  getServerState: l,
186
186
  stabilityCheck: c,
187
187
  identityFunctionCheck: d
188
- } = e(), f = Re.useRef(!0), p = Re.useCallback(
188
+ } = e(), h = Re.useRef(!0), p = Re.useCallback(
189
189
  {
190
190
  [r.name](g) {
191
191
  const w = r(g);
@@ -198,7 +198,7 @@ function _h(t = Lt) {
198
198
  identityFunctionCheck: d,
199
199
  ...o
200
200
  };
201
- if (E === "always" || E === "once" && f.current) {
201
+ if (E === "always" || E === "once" && h.current) {
202
202
  const v = r(g);
203
203
  if (!s(w, v)) {
204
204
  let B;
@@ -219,7 +219,7 @@ Selectors that return a new reference (such as an object or an array) should be
219
219
  );
220
220
  }
221
221
  }
222
- if ((C === "always" || C === "once" && f.current) && w === g) {
222
+ if ((C === "always" || C === "once" && h.current) && w === g) {
223
223
  let v;
224
224
  try {
225
225
  throw new Error();
@@ -232,20 +232,20 @@ Selectors that return the entire state are almost certainly a mistake, as they w
232
232
  { stack: v }
233
233
  );
234
234
  }
235
- f.current && (f.current = !1);
235
+ h.current && (h.current = !1);
236
236
  }
237
237
  return w;
238
238
  }
239
239
  }[r.name],
240
240
  [r, c, o.stabilityCheck]
241
- ), h = _c(
241
+ ), f = _c(
242
242
  a.addNestedSub,
243
243
  i.getState,
244
244
  l || i.getState,
245
245
  p,
246
246
  s
247
247
  );
248
- return Re.useDebugValue(h), h;
248
+ return Re.useDebugValue(f), f;
249
249
  };
250
250
  return Object.assign(A, {
251
251
  withTypes: () => A
@@ -307,7 +307,7 @@ function tf(t, e) {
307
307
  r.notify();
308
308
  }
309
309
  function a() {
310
- h.onStateChange && h.onStateChange();
310
+ f.onStateChange && f.onStateChange();
311
311
  }
312
312
  function l() {
313
313
  return s;
@@ -318,22 +318,22 @@ function tf(t, e) {
318
318
  function d() {
319
319
  n--, A && n === 0 && (A(), A = void 0, r.clear(), r = Pi);
320
320
  }
321
- function f() {
321
+ function h() {
322
322
  s || (s = !0, c());
323
323
  }
324
324
  function p() {
325
325
  s && (s = !1, d());
326
326
  }
327
- const h = {
327
+ const f = {
328
328
  addNestedSub: o,
329
329
  notifyNestedSubs: i,
330
330
  handleChangeWrapper: a,
331
331
  isSubscribed: l,
332
- trySubscribe: f,
332
+ trySubscribe: h,
333
333
  tryUnsubscribe: p,
334
334
  getListeners: () => r
335
335
  };
336
- return h;
336
+ return f;
337
337
  }
338
338
  var Af = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", rf = typeof navigator < "u" && navigator.product === "ReactNative", nf = Af || rf ? Re.useLayoutEffect : Re.useEffect;
339
339
  function sf({
@@ -483,7 +483,7 @@ function el(t, e, A) {
483
483
  }
484
484
  };
485
485
  }
486
- function f(w) {
486
+ function h(w) {
487
487
  if (!or(w))
488
488
  throw new Error(process.env.NODE_ENV === "production" ? Ie(7) : `Actions must be plain objects. Instead, the actual type was: '${It(w)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);
489
489
  if (typeof w.type > "u")
@@ -504,11 +504,11 @@ function el(t, e, A) {
504
504
  function p(w) {
505
505
  if (typeof w != "function")
506
506
  throw new Error(process.env.NODE_ENV === "production" ? Ie(10) : `Expected the nextReducer to be a function. Instead, received: '${It(w)}`);
507
- r = w, f({
507
+ r = w, h({
508
508
  type: Ut.REPLACE
509
509
  });
510
510
  }
511
- function h() {
511
+ function f() {
512
512
  const w = d;
513
513
  return {
514
514
  /**
@@ -535,14 +535,14 @@ function el(t, e, A) {
535
535
  }
536
536
  };
537
537
  }
538
- return f({
538
+ return h({
539
539
  type: Ut.INIT
540
540
  }), {
541
- dispatch: f,
541
+ dispatch: h,
542
542
  subscribe: d,
543
543
  getState: c,
544
544
  replaceReducer: p,
545
- [Ti]: h
545
+ [Ti]: f
546
546
  };
547
547
  }
548
548
  function Ri(t) {
@@ -602,12 +602,12 @@ function tl(t) {
602
602
  let l = !1;
603
603
  const c = {};
604
604
  for (let d = 0; d < r.length; d++) {
605
- const f = r[d], p = A[f], h = i[f], g = p(h, a);
605
+ const h = r[d], p = A[h], f = i[h], g = p(f, a);
606
606
  if (typeof g > "u") {
607
607
  const w = a && a.type;
608
- throw new Error(process.env.NODE_ENV === "production" ? Ie(14) : `When called with an action of type ${w ? `"${String(w)}"` : "(unknown type)"}, the slice reducer for key "${f}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
608
+ throw new Error(process.env.NODE_ENV === "production" ? Ie(14) : `When called with an action of type ${w ? `"${String(w)}"` : "(unknown type)"}, the slice reducer for key "${h}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`);
609
609
  }
610
- c[f] = g, l = l || g !== h;
610
+ c[h] = g, l = l || g !== f;
611
611
  }
612
612
  return l = l || r.length !== Object.keys(i).length, l ? c : i;
613
613
  };
@@ -1215,18 +1215,18 @@ function Mo(t, e = {}) {
1215
1215
  var d;
1216
1216
  let i = A;
1217
1217
  const { length: a } = arguments;
1218
- for (let f = 0, p = a; f < p; f++) {
1219
- const h = arguments[f];
1220
- if (typeof h == "function" || typeof h == "object" && h !== null) {
1218
+ for (let h = 0, p = a; h < p; h++) {
1219
+ const f = arguments[h];
1220
+ if (typeof f == "function" || typeof f == "object" && f !== null) {
1221
1221
  let g = i.o;
1222
1222
  g === null && (i.o = g = /* @__PURE__ */ new WeakMap());
1223
- const w = g.get(h);
1224
- w === void 0 ? (i = br(), g.set(h, i)) : i = w;
1223
+ const w = g.get(f);
1224
+ w === void 0 ? (i = br(), g.set(f, i)) : i = w;
1225
1225
  } else {
1226
1226
  let g = i.p;
1227
1227
  g === null && (i.p = g = /* @__PURE__ */ new Map());
1228
- const w = g.get(h);
1229
- w === void 0 ? (i = br(), g.set(h, i)) : i = w;
1228
+ const w = g.get(f);
1229
+ w === void 0 ? (i = br(), g.set(f, i)) : i = w;
1230
1230
  }
1231
1231
  }
1232
1232
  const l = i;
@@ -1234,8 +1234,8 @@ function Mo(t, e = {}) {
1234
1234
  if (i.s === Fi)
1235
1235
  c = i.v;
1236
1236
  else if (c = t.apply(null, arguments), s++, r) {
1237
- const f = ((d = n == null ? void 0 : n.deref) == null ? void 0 : d.call(n)) ?? n;
1238
- f != null && r(f, c) && (c = f, s !== 0 && s--), n = typeof c == "object" && c !== null || typeof c == "function" ? new Qf(c) : c;
1237
+ const h = ((d = n == null ? void 0 : n.deref) == null ? void 0 : d.call(n)) ?? n;
1238
+ h != null && r(h, c) && (c = h, s !== 0 && s--), n = typeof c == "object" && c !== null || typeof c == "function" ? new Qf(c) : c;
1239
1239
  }
1240
1240
  return l.s = Fi, l.v = c, c;
1241
1241
  }
@@ -1260,11 +1260,11 @@ function ul(t, ...e) {
1260
1260
  ...a
1261
1261
  }, {
1262
1262
  memoize: d,
1263
- memoizeOptions: f = [],
1263
+ memoizeOptions: h = [],
1264
1264
  argsMemoize: p = Mo,
1265
- argsMemoizeOptions: h = [],
1265
+ argsMemoizeOptions: f = [],
1266
1266
  devModeChecks: g = {}
1267
- } = c, w = Hi(f), C = Hi(h), E = Lf(n), v = d(function() {
1267
+ } = c, w = Hi(h), C = Hi(f), E = Lf(n), v = d(function() {
1268
1268
  return s++, l.apply(
1269
1269
  null,
1270
1270
  arguments
@@ -1483,11 +1483,11 @@ function gl(t, e = [], A, r, n = !1, s = "") {
1483
1483
  const l = e.length > 0;
1484
1484
  for (let c in a) {
1485
1485
  const d = s ? s + "." + c : c;
1486
- if (l && e.some((h) => h instanceof RegExp ? h.test(d) : d === h))
1486
+ if (l && e.some((f) => f instanceof RegExp ? f.test(d) : d === f))
1487
1487
  continue;
1488
- const f = gl(t, e, A.children[c], r[c], i, d);
1489
- if (f.wasMutated)
1490
- return f;
1488
+ const h = gl(t, e, A.children[c], r[c], i, d);
1489
+ if (h.wasMutated)
1490
+ return h;
1491
1491
  }
1492
1492
  return {
1493
1493
  wasMutated: !1
@@ -1501,15 +1501,15 @@ function _f(t = {}) {
1501
1501
  return JSON.stringify(i, A(a, c), l);
1502
1502
  }, A = function(i, a) {
1503
1503
  let l = [], c = [];
1504
- return a || (a = function(d, f) {
1505
- return l[0] === f ? "[Circular ~]" : "[Circular ~." + c.slice(0, l.indexOf(f)).join(".") + "]";
1506
- }), function(d, f) {
1504
+ return a || (a = function(d, h) {
1505
+ return l[0] === h ? "[Circular ~]" : "[Circular ~." + c.slice(0, l.indexOf(h)).join(".") + "]";
1506
+ }), function(d, h) {
1507
1507
  if (l.length > 0) {
1508
1508
  var p = l.indexOf(this);
1509
- ~p ? l.splice(p + 1) : l.push(this), ~p ? c.splice(p, 1 / 0, d) : c.push(d), ~l.indexOf(f) && (f = a.call(this, d, f));
1509
+ ~p ? l.splice(p + 1) : l.push(this), ~p ? c.splice(p, 1 / 0, d) : c.push(d), ~l.indexOf(h) && (h = a.call(this, d, h));
1510
1510
  } else
1511
- l.push(f);
1512
- return i == null ? f : i.call(this, d, f);
1511
+ l.push(h);
1512
+ return i == null ? h : i.call(this, d, h);
1513
1513
  };
1514
1514
  }, {
1515
1515
  isImmutable: r = Zf,
@@ -1521,17 +1521,17 @@ function _f(t = {}) {
1521
1521
  getState: i
1522
1522
  }) => {
1523
1523
  let a = i(), l = o(a), c;
1524
- return (d) => (f) => {
1524
+ return (d) => (h) => {
1525
1525
  const p = hl(s, "ImmutableStateInvariantMiddleware");
1526
1526
  p.measureTime(() => {
1527
1527
  if (a = i(), c = l.detectMutations(), l = o(a), c.wasMutated)
1528
1528
  throw new Error(process.env.NODE_ENV === "production" ? ie(19) : `A state mutation was detected between dispatches, in the path '${c.path || ""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
1529
1529
  });
1530
- const h = d(f);
1530
+ const f = d(h);
1531
1531
  return p.measureTime(() => {
1532
1532
  if (a = i(), c = l.detectMutations(), l = o(a), c.wasMutated)
1533
- throw new Error(process.env.NODE_ENV === "production" ? ie(20) : `A state mutation was detected inside a dispatch, in the path: ${c.path || ""}. Take a look at the reducer(s) handling the action ${e(f)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
1534
- }), p.warnIfExceeded(), h;
1533
+ throw new Error(process.env.NODE_ENV === "production" ? ie(20) : `A state mutation was detected inside a dispatch, in the path: ${c.path || ""}. Take a look at the reducer(s) handling the action ${e(h)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
1534
+ }), p.warnIfExceeded(), f;
1535
1535
  };
1536
1536
  };
1537
1537
  }
@@ -1587,10 +1587,10 @@ function $f(t = {}) {
1587
1587
  ignoreActions: a = !1,
1588
1588
  disableCache: l = !1
1589
1589
  } = t, c = !l && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
1590
- return (d) => (f) => (p) => {
1590
+ return (d) => (h) => (p) => {
1591
1591
  if (!Al(p))
1592
- return f(p);
1593
- const h = f(p), g = hl(o, "SerializableStateInvariantMiddleware");
1592
+ return h(p);
1593
+ const f = h(p), g = hl(o, "SerializableStateInvariantMiddleware");
1594
1594
  return !a && !(r.length && r.indexOf(p.type) !== -1) && g.measureTime(() => {
1595
1595
  const w = Xs(p, "", e, A, n, c);
1596
1596
  if (w) {
@@ -1614,7 +1614,7 @@ Take a look at the logic that dispatched this action: `, p, `
1614
1614
  Take a look at the reducer(s) handling this action type: ${p.type}.
1615
1615
  (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
1616
1616
  }
1617
- }), g.warnIfExceeded()), h;
1617
+ }), g.warnIfExceeded()), f;
1618
1618
  };
1619
1619
  }
1620
1620
  }
@@ -1658,9 +1658,9 @@ var ep = () => function(e) {
1658
1658
  // Override the base `store.subscribe` method to keep original listeners
1659
1659
  // from running if we're delaying notifications
1660
1660
  subscribe(c) {
1661
- const d = () => n && c(), f = r.subscribe(d);
1661
+ const d = () => n && c(), h = r.subscribe(d);
1662
1662
  return i.add(c), () => {
1663
- f(), i.delete(c);
1663
+ h(), i.delete(c);
1664
1664
  };
1665
1665
  },
1666
1666
  // Override the base `store.dispatch` method so that we can check actions
@@ -1704,7 +1704,7 @@ function sp(t) {
1704
1704
  throw new Error(process.env.NODE_ENV === "production" ? ie(3) : "when using a middleware builder function, an array of middleware must be returned");
1705
1705
  } else
1706
1706
  a = e();
1707
- if (!yt && a.some((h) => typeof h != "function"))
1707
+ if (!yt && a.some((f) => typeof f != "function"))
1708
1708
  throw new Error(process.env.NODE_ENV === "production" ? ie(4) : "each middleware provided to configureStore must be a function");
1709
1709
  let l = tn;
1710
1710
  n && (l = Vf({
@@ -1715,13 +1715,13 @@ function sp(t) {
1715
1715
  const c = wf(...a), d = np(c);
1716
1716
  if (!yt && o && typeof o != "function")
1717
1717
  throw new Error(process.env.NODE_ENV === "production" ? ie(5) : "`enhancers` field must be a callback");
1718
- let f = typeof o == "function" ? o(d) : d();
1719
- if (!yt && !Array.isArray(f))
1718
+ let h = typeof o == "function" ? o(d) : d();
1719
+ if (!yt && !Array.isArray(h))
1720
1720
  throw new Error(process.env.NODE_ENV === "production" ? ie(6) : "`enhancers` callback must return an array");
1721
- if (!yt && f.some((h) => typeof h != "function"))
1721
+ if (!yt && h.some((f) => typeof f != "function"))
1722
1722
  throw new Error(process.env.NODE_ENV === "production" ? ie(7) : "each enhancer provided to configureStore must be a function");
1723
- !yt && a.length && !f.includes(c) && console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");
1724
- const p = l(...f);
1723
+ !yt && a.length && !h.includes(c) && console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");
1724
+ const p = l(...h);
1725
1725
  return el(i, s, p);
1726
1726
  }
1727
1727
  function vl(t) {
@@ -1784,15 +1784,15 @@ function ip(t, e) {
1784
1784
  return p === void 0 ? c : p;
1785
1785
  } else {
1786
1786
  if (mt(c))
1787
- return ll(c, (f) => d(f, a));
1787
+ return ll(c, (h) => d(h, a));
1788
1788
  {
1789
- const f = d(c, a);
1790
- if (f === void 0) {
1789
+ const h = d(c, a);
1790
+ if (h === void 0) {
1791
1791
  if (c === null)
1792
1792
  return c;
1793
1793
  throw new Error(process.env.NODE_ENV === "production" ? ie(9) : "A case reducer on a non-draftable value must not return undefined");
1794
1794
  }
1795
- return f;
1795
+ return h;
1796
1796
  }
1797
1797
  }
1798
1798
  return c;
@@ -1874,13 +1874,13 @@ function dp({
1874
1874
  b && y.addDefaultCase(b);
1875
1875
  });
1876
1876
  }
1877
- const f = (v) => v, p = /* @__PURE__ */ new Map();
1878
- let h;
1877
+ const h = (v) => v, p = /* @__PURE__ */ new Map();
1878
+ let f;
1879
1879
  function g(v, B) {
1880
- return h || (h = d()), h(v, B);
1880
+ return f || (f = d()), f(v, B);
1881
1881
  }
1882
1882
  function w() {
1883
- return h || (h = d()), h.getInitialState();
1883
+ return f || (f = d()), f.getInitialState();
1884
1884
  }
1885
1885
  function C(v, B = !1) {
1886
1886
  function b(y) {
@@ -1893,7 +1893,7 @@ function dp({
1893
1893
  }
1894
1894
  return O;
1895
1895
  }
1896
- function m(y = f) {
1896
+ function m(y = h) {
1897
1897
  const O = zi(p, B, {
1898
1898
  insert: () => /* @__PURE__ */ new WeakMap()
1899
1899
  });
@@ -3066,79 +3066,79 @@ class w1 extends g1.EventEmitter {
3066
3066
  constructor() {
3067
3067
  super();
3068
3068
  let e = Yt, A, r, n, s, o, i, a, l, c = 0, d;
3069
- this._handleTagOpening = function(p, h, g) {
3070
- p ? this.emit("endElement", h) : (this.emit("startElement", h, g), i && this.emit("endElement", h));
3069
+ this._handleTagOpening = function(p, f, g) {
3070
+ p ? this.emit("endElement", f) : (this.emit("startElement", f, g), i && this.emit("endElement", f));
3071
3071
  }, this.write = function(p) {
3072
3072
  typeof p != "string" && (p = p.toString());
3073
- let h = 0;
3074
- A && (p = A + p, h += r ? 0 : A.length, r = !1, A = null);
3073
+ let f = 0;
3074
+ A && (p = A + p, f += r ? 0 : A.length, r = !1, A = null);
3075
3075
  function g() {
3076
3076
  if (typeof c == "number") {
3077
- const w = p.slice(c, h);
3077
+ const w = p.slice(c, f);
3078
3078
  return c = void 0, w;
3079
3079
  }
3080
3080
  }
3081
- for (; h < p.length; h++) {
3081
+ for (; f < p.length; f++) {
3082
3082
  switch (e) {
3083
3083
  case Yt: {
3084
- const C = p.indexOf("<", h);
3085
- C !== -1 && h !== C && (h = C);
3084
+ const C = p.indexOf("<", f);
3085
+ C !== -1 && f !== C && (f = C);
3086
3086
  break;
3087
3087
  }
3088
3088
  case ds: {
3089
- const C = p.indexOf(l, h);
3090
- C !== -1 && (h = C);
3089
+ const C = p.indexOf(l, f);
3090
+ C !== -1 && (f = C);
3091
3091
  break;
3092
3092
  }
3093
3093
  case ls: {
3094
- const C = p.indexOf("-->", h);
3095
- C !== -1 && (h = C + 2);
3094
+ const C = p.indexOf("-->", f);
3095
+ C !== -1 && (f = C + 2);
3096
3096
  break;
3097
3097
  }
3098
3098
  case m1: {
3099
- const C = p.indexOf("]]>", h);
3100
- C !== -1 && (h = C + 2);
3099
+ const C = p.indexOf("]]>", f);
3100
+ C !== -1 && (f = C + 2);
3101
3101
  break;
3102
3102
  }
3103
3103
  }
3104
- const w = p.charCodeAt(h);
3104
+ const w = p.charCodeAt(f);
3105
3105
  switch (e) {
3106
3106
  case Yt:
3107
3107
  if (w === 60) {
3108
3108
  const C = g();
3109
- C && this.emit("text", Zi.unescapeXML(C)), e = _i, c = h + 1, s = {};
3109
+ C && this.emit("text", Zi.unescapeXML(C)), e = _i, c = f + 1, s = {};
3110
3110
  }
3111
3111
  break;
3112
3112
  case Aa:
3113
3113
  if (w === 93)
3114
- if (p.substr(h + 1, 2) === "]>") {
3114
+ if (p.substr(f + 1, 2) === "]>") {
3115
3115
  const C = g();
3116
3116
  C && this.emit("text", C), e = Yt;
3117
- } else p.length < h + 2 && (r = !0, h = p.length);
3117
+ } else p.length < f + 2 && (r = !0, f = p.length);
3118
3118
  break;
3119
3119
  case _i:
3120
- w === 47 && c === h ? (c = h + 1, o = !0) : w === 33 ? p.substr(h + 1, 7) === "[CDATA[" ? (c = h + 8, e = Aa) : p.length < h + 8 && "[CDATA[".startsWith(p.slice(h + 1)) ? (r = !0, h = p.length) : (c = void 0, e = ls) : w === 63 ? (c = void 0, e = Ki) : (w <= 32 || w === 47 || w === 62) && (n = g(), h--, e = us);
3120
+ w === 47 && c === f ? (c = f + 1, o = !0) : w === 33 ? p.substr(f + 1, 7) === "[CDATA[" ? (c = f + 8, e = Aa) : p.length < f + 8 && "[CDATA[".startsWith(p.slice(f + 1)) ? (r = !0, f = p.length) : (c = void 0, e = ls) : w === 63 ? (c = void 0, e = Ki) : (w <= 32 || w === 47 || w === 62) && (n = g(), f--, e = us);
3121
3121
  break;
3122
3122
  case ls:
3123
3123
  if (w === 62) {
3124
- const C = p.charCodeAt(h - 1), E = p.charCodeAt(h - 2);
3124
+ const C = p.charCodeAt(f - 1), E = p.charCodeAt(f - 2);
3125
3125
  (C === 45 && E === 45 || C === 93 && E === 93) && (e = Yt);
3126
3126
  }
3127
3127
  break;
3128
3128
  case Ki:
3129
- w === 62 && p.charCodeAt(h - 1) === 63 && (e = Yt);
3129
+ w === 62 && p.charCodeAt(f - 1) === 63 && (e = Yt);
3130
3130
  break;
3131
3131
  case us:
3132
- w === 62 ? (this._handleTagOpening(o, n, s), n = void 0, s = void 0, o = void 0, i = void 0, e = Yt, c = h + 1) : w === 47 ? i = !0 : w > 32 && (c = h, e = $i);
3132
+ w === 62 ? (this._handleTagOpening(o, n, s), n = void 0, s = void 0, o = void 0, i = void 0, e = Yt, c = f + 1) : w === 47 ? i = !0 : w > 32 && (c = f, e = $i);
3133
3133
  break;
3134
3134
  case $i:
3135
- (w <= 32 || w === 61) && (d = g(), h--, e = ea);
3135
+ (w <= 32 || w === 61) && (d = g(), f--, e = ea);
3136
3136
  break;
3137
3137
  case ea:
3138
3138
  w === 61 && (e = ta);
3139
3139
  break;
3140
3140
  case ta:
3141
- (w === 34 || w === 39) && (a = w, l = w === 34 ? '"' : "'", e = ds, c = h + 1);
3141
+ (w === 34 || w === 39) && (a = w, l = w === 34 ? '"' : "'", e = ds, c = f + 1);
3142
3142
  break;
3143
3143
  case ds:
3144
3144
  if (w === a) {
@@ -4238,16 +4238,16 @@ const { xml: y0, jid: E0, Client: x0 } = In, D0 = Y1, I0 = z1, N0 = sg, B0 = gg,
4238
4238
  function H0(t = {}) {
4239
4239
  const { resource: e, credentials: A, username: r, password: n, ...s } = t, { domain: o, service: i } = s;
4240
4240
  !o && i && (s.domain = D0(i));
4241
- const a = new x0(s), l = I0({ entity: a }), c = N0({ entity: a }), d = B0({ entity: a }), f = O0({ middleware: d }), p = S0({ middleware: d, entity: a }), h = P0({ middleware: d, entity: a }), g = T0({ entity: a }), w = R0({ streamFeatures: f }, A || { username: r, password: n }), C = M0({
4242
- streamFeatures: f,
4241
+ const a = new x0(s), l = I0({ entity: a }), c = N0({ entity: a }), d = B0({ entity: a }), h = O0({ middleware: d }), p = S0({ middleware: d, entity: a }), f = P0({ middleware: d, entity: a }), g = T0({ entity: a }), w = R0({ streamFeatures: h }, A || { username: r, password: n }), C = M0({
4242
+ streamFeatures: h,
4243
4243
  entity: a,
4244
4244
  middleware: d
4245
4245
  }), E = k0(
4246
- { iqCaller: p, streamFeatures: f },
4246
+ { iqCaller: p, streamFeatures: h },
4247
4247
  e
4248
4248
  ), v = L0({
4249
4249
  iqCaller: p,
4250
- streamFeatures: f
4250
+ streamFeatures: h
4251
4251
  }), B = Object.entries({ plain: Q0, anonymous: j0 }).map(([b, m]) => ({
4252
4252
  [b]: m(w)
4253
4253
  }));
@@ -4256,9 +4256,9 @@ function H0(t = {}) {
4256
4256
  reconnect: l,
4257
4257
  websocket: c,
4258
4258
  middleware: d,
4259
- streamFeatures: f,
4259
+ streamFeatures: h,
4260
4260
  iqCaller: p,
4261
- iqCallee: h,
4261
+ iqCallee: f,
4262
4262
  resolve: g,
4263
4263
  sasl: w,
4264
4264
  resourceBinding: E,
@@ -4338,21 +4338,21 @@ async function ou(t) {
4338
4338
  }, n = new Promise((o, i) => {
4339
4339
  try {
4340
4340
  A = (l) => {
4341
- var c;
4341
+ var c, d;
4342
4342
  if (l.is("iq") && l.attrs.id === e) {
4343
- let d = (c = l.getChild("query")) == null ? void 0 : c.getChild("chatjson");
4344
- if (d) {
4345
- const f = JSON.parse(d.attrs.value);
4346
- Object.entries(f).map(
4347
- ([h, g]) => ({
4348
- jid: h,
4349
- timestamp: g
4343
+ let h = (c = l.getChild("query")) == null ? void 0 : c.getChild("chatjson");
4344
+ if (h && ((d = h == null ? void 0 : h.attrs) != null && d.value)) {
4345
+ const p = JSON.parse(h.attrs.value);
4346
+ Object.entries(p).map(
4347
+ ([g, w]) => ({
4348
+ jid: g,
4349
+ timestamp: w
4350
4350
  })
4351
- ).forEach(({ jid: h, timestamp: g }) => {
4352
- h && le.dispatch(
4351
+ ).forEach(({ jid: g, timestamp: w }) => {
4352
+ g && le.dispatch(
4353
4353
  qs({
4354
- chatJID: h,
4355
- timestamp: Number(g || 0)
4354
+ chatJID: g,
4355
+ timestamp: Number(w || 0)
4356
4356
  })
4357
4357
  );
4358
4358
  });
@@ -4448,17 +4448,17 @@ const G0 = async (t, e, A, r, n) => {
4448
4448
  const i = () => {
4449
4449
  t.off("stanza", o);
4450
4450
  }, a = new Promise((c, d) => {
4451
- let f = [];
4452
- o = (h) => {
4451
+ let h = [];
4452
+ o = (f) => {
4453
4453
  var w, C, E;
4454
- const g = h.getChild("result");
4455
- if (h.is("message") && h.attrs.from && h.attrs.from.startsWith(e) && g) {
4454
+ const g = f.getChild("result");
4455
+ if (f.is("message") && f.attrs.from && f.attrs.from.startsWith(e) && g) {
4456
4456
  const v = (w = g.getChild("forwarded")) == null ? void 0 : w.getChild("message");
4457
- f.push(v);
4457
+ h.push(v);
4458
4458
  }
4459
- if (h.is("iq") && h.attrs.id === s && h.attrs.type === "result") {
4459
+ if (f.is("iq") && f.attrs.id === s && f.attrs.type === "result") {
4460
4460
  let v = [];
4461
- for (const B of f) {
4461
+ for (const B of h) {
4462
4462
  const b = (C = B.getChild("body")) == null ? void 0 : C.getText();
4463
4463
  if (b) {
4464
4464
  let m = {};
@@ -4481,7 +4481,7 @@ const G0 = async (t, e, A, r, n) => {
4481
4481
  }
4482
4482
  i(), c(v);
4483
4483
  }
4484
- h.is("iq") && h.attrs.id === s && h.attrs.type === "error" && (i(), d());
4484
+ f.is("iq") && f.attrs.id === s && f.attrs.type === "error" && (i(), d());
4485
4485
  }, t == null || t.on("stanza", o);
4486
4486
  const p = Q(
4487
4487
  "iq",
@@ -4501,7 +4501,7 @@ const G0 = async (t, e, A, r, n) => {
4501
4501
  )
4502
4502
  )
4503
4503
  );
4504
- t == null || t.send(p).catch((h) => console.log("err on load", h));
4504
+ t == null || t.send(p).catch((f) => console.log("err on load", f));
4505
4505
  }), l = lA(1e4, i);
4506
4506
  try {
4507
4507
  return await Promise.race([a, l]);
@@ -4510,14 +4510,14 @@ const G0 = async (t, e, A, r, n) => {
4510
4510
  }
4511
4511
  }, V0 = (t, e, A, r, n, s, o, i, a, l, c, d) => {
4512
4512
  var p;
4513
- const f = Date.now().toString();
4513
+ const h = Date.now().toString();
4514
4514
  try {
4515
- const h = Q(
4515
+ const f = Q(
4516
4516
  "message",
4517
4517
  {
4518
4518
  to: e,
4519
4519
  type: "groupchat",
4520
- id: f
4520
+ id: h
4521
4521
  },
4522
4522
  Q("data", {
4523
4523
  xmlns: `wss://${d || "xmpp.ethoradev.com:5443"}/ws`,
@@ -4538,9 +4538,9 @@ const G0 = async (t, e, A, r, n) => {
4538
4538
  }),
4539
4539
  Q("body", {}, o)
4540
4540
  );
4541
- t.send(h);
4542
- } catch (h) {
4543
- console.error("An error occurred while sending message:", h);
4541
+ t.send(f);
4542
+ } catch (f) {
4543
+ console.error("An error occurred while sending message:", f);
4544
4544
  }
4545
4545
  };
4546
4546
  function X0(t, e, A) {
@@ -4682,26 +4682,26 @@ var iu = { exports: {} };
4682
4682
  2756734187,
4683
4683
  3204031479,
4684
4684
  3329325298
4685
- ], f = ["hex", "array", "digest", "arrayBuffer"], p = [];
4685
+ ], h = ["hex", "array", "digest", "arrayBuffer"], p = [];
4686
4686
  (r.JS_SHA256_NO_NODE_JS || !Array.isArray) && (Array.isArray = function(m) {
4687
4687
  return Object.prototype.toString.call(m) === "[object Array]";
4688
4688
  }), i && (r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(m) {
4689
4689
  return typeof m == "object" && m.buffer && m.buffer.constructor === ArrayBuffer;
4690
4690
  });
4691
- var h = function(m, y) {
4691
+ var f = function(m, y) {
4692
4692
  return function(O) {
4693
4693
  return new v(y, !0).update(O)[m]();
4694
4694
  };
4695
4695
  }, g = function(m) {
4696
- var y = h("hex", m);
4696
+ var y = f("hex", m);
4697
4697
  s && (y = w(y, m)), y.create = function() {
4698
4698
  return new v(m);
4699
4699
  }, y.update = function(R) {
4700
4700
  return y.create().update(R);
4701
4701
  };
4702
- for (var O = 0; O < f.length; ++O) {
4703
- var N = f[O];
4704
- y[N] = h(N, m);
4702
+ for (var O = 0; O < h.length; ++O) {
4703
+ var N = h[O];
4704
+ y[N] = f(N, m);
4705
4705
  }
4706
4706
  return y;
4707
4707
  }, w = function(m, y) {
@@ -4728,8 +4728,8 @@ var iu = { exports: {} };
4728
4728
  }, y.update = function(R, S) {
4729
4729
  return y.create(R).update(S);
4730
4730
  };
4731
- for (var O = 0; O < f.length; ++O) {
4732
- var N = f[O];
4731
+ for (var O = 0; O < h.length; ++O) {
4732
+ var N = h[O];
4733
4733
  y[N] = C(N, m);
4734
4734
  }
4735
4735
  return y;
@@ -4864,12 +4864,12 @@ function Z0(t, e) {
4864
4864
  const c = l.getChildren("x");
4865
4865
  if (c.length === 2) {
4866
4866
  const d = c.find(
4867
- (f) => f.attrs.xmlns === "http://jabber.org/protocol/muc#user"
4867
+ (h) => h.attrs.xmlns === "http://jabber.org/protocol/muc#user"
4868
4868
  );
4869
4869
  if (d) {
4870
- const f = d.getChildren("status");
4871
- f || (r(), i("!statuses"));
4872
- const p = f.map((h) => h.attrs.code);
4870
+ const h = d.getChildren("status");
4871
+ h || (r(), i("!statuses"));
4872
+ const p = h.map((f) => f.attrs.code);
4873
4873
  p.includes("201") && p.includes("110") ? (console.log("createRoomPresence:resolve true"), r(), o(!0)) : (console.log(
4874
4874
  "createRoomPresence:reject, such room already exists"
4875
4875
  ), r(), o(!0));
@@ -5156,23 +5156,23 @@ const im = async (t) => {
5156
5156
  );
5157
5157
  }
5158
5158
  }, lm = async (t) => {
5159
- var e, A, r, n, s, o, i, a, l, c, d, f;
5159
+ var e, A, r, n, s, o, i, a, l, c, d, h;
5160
5160
  if (t.is("message") && t.children[0].attrs.xmlns === "urn:xmpp:mam:2") {
5161
- const p = (r = (A = (e = t.getChild("result")) == null ? void 0 : e.getChild("forwarded")) == null ? void 0 : A.getChild("message")) == null ? void 0 : r.getChild("body"), h = (o = (s = (n = t.getChild("result")) == null ? void 0 : n.getChild("forwarded")) == null ? void 0 : s.getChild("message")) == null ? void 0 : o.getChild("data"), g = (l = (a = (i = t.getChild("result")) == null ? void 0 : i.getChild("forwarded")) == null ? void 0 : a.getChild("message")) == null ? void 0 : l.getChild("deleted"), w = (d = (c = t.getChild("result")) == null ? void 0 : c.getChild("forwarded")) == null ? void 0 : d.getChild("delay"), C = (f = t.getChild("result")) == null ? void 0 : f.attrs.id;
5161
+ const p = (r = (A = (e = t.getChild("result")) == null ? void 0 : e.getChild("forwarded")) == null ? void 0 : A.getChild("message")) == null ? void 0 : r.getChild("body"), f = (o = (s = (n = t.getChild("result")) == null ? void 0 : n.getChild("forwarded")) == null ? void 0 : s.getChild("message")) == null ? void 0 : o.getChild("data"), g = (l = (a = (i = t.getChild("result")) == null ? void 0 : i.getChild("forwarded")) == null ? void 0 : a.getChild("message")) == null ? void 0 : l.getChild("deleted"), w = (d = (c = t.getChild("result")) == null ? void 0 : c.getChild("forwarded")) == null ? void 0 : d.getChild("delay"), C = (h = t.getChild("result")) == null ? void 0 : h.attrs.id;
5162
5162
  if (!w) {
5163
5163
  if (t.getChild("subject")) {
5164
5164
  console.log("Subject.");
5165
5165
  return;
5166
5166
  }
5167
- if (!h || !p || !C) {
5167
+ if (!f || !p || !C) {
5168
5168
  console.log("Missing required elements in message history.");
5169
5169
  return;
5170
5170
  }
5171
5171
  }
5172
- if (!(h != null && h.attrs) || !h.attrs.senderFirstName || !h.attrs.senderLastName || !h.attrs.senderJID)
5172
+ if (!(f != null && f.attrs) || !f.attrs.senderFirstName || !f.attrs.senderLastName || !f.attrs.senderJID)
5173
5173
  return;
5174
5174
  const E = await cu(
5175
- h.attrs,
5175
+ f.attrs,
5176
5176
  p,
5177
5177
  C,
5178
5178
  t.attrs.from,
@@ -5242,7 +5242,7 @@ const im = async (t) => {
5242
5242
  }, mm = (t, e) => {
5243
5243
  var A, r;
5244
5244
  t.attrs.id === "getUserRooms" && Array.isArray((A = t.getChild("query")) == null ? void 0 : A.children) && ((r = t.getChild("query")) == null || r.children.forEach(async (n) => {
5245
- var i, a, l, c, d, f, p, h;
5245
+ var i, a, l, c, d, h, p, f;
5246
5246
  const s = le.getState().rooms.rooms;
5247
5247
  if (!Object.values(s).some(
5248
5248
  (g) => {
@@ -5259,8 +5259,8 @@ const im = async (t) => {
5259
5259
  usersCnt: Number(((c = n == null ? void 0 : n.attrs) == null ? void 0 : c.users_cnt) || 0),
5260
5260
  messages: [],
5261
5261
  isLoading: !1,
5262
- roomBg: ((d = n == null ? void 0 : n.attrs) == null ? void 0 : d.room_background) !== "none" ? (f = n == null ? void 0 : n.attrs) == null ? void 0 : f.room_background : null,
5263
- icon: ((p = n == null ? void 0 : n.attrs) == null ? void 0 : p.room_thumbnail) !== "none" ? (h = n == null ? void 0 : n.attrs) == null ? void 0 : h.room_thumbnail : null,
5262
+ roomBg: ((d = n == null ? void 0 : n.attrs) == null ? void 0 : d.room_background) !== "none" ? (h = n == null ? void 0 : n.attrs) == null ? void 0 : h.room_background : null,
5263
+ icon: ((p = n == null ? void 0 : n.attrs) == null ? void 0 : p.room_thumbnail) !== "none" ? (f = n == null ? void 0 : n.attrs) == null ? void 0 : f.room_thumbnail : null,
5264
5264
  unreadMessages: 0,
5265
5265
  lastViewedTimestamp: 0
5266
5266
  };
@@ -5448,17 +5448,17 @@ class vm {
5448
5448
  }
5449
5449
  }
5450
5450
  const lu = Fh(null), Cm = ({ children: t }) => {
5451
- const [e, A] = z(null), [r, n] = z(null), [s, o] = z(null), [i, a] = z(0), l = async (d, f) => {
5451
+ const [e, A] = z(null), [r, n] = z(null), [s, o] = z(null), [i, a] = z(0), l = async (d, h) => {
5452
5452
  if (e)
5453
5453
  return console.log("Returning existing client."), A(e), e;
5454
5454
  try {
5455
- const p = new vm(d, f);
5456
- return A(p), await new Promise((h, g) => {
5455
+ const p = new vm(d, h);
5456
+ return A(p), await new Promise((f, g) => {
5457
5457
  const w = () => {
5458
- p.status === "online" ? h() : p.status === "error" ? g(new Error("Failed to connect.")) : setTimeout(w, 500);
5458
+ p.status === "online" ? f() : p.status === "error" ? g(new Error("Failed to connect.")) : setTimeout(w, 500);
5459
5459
  };
5460
5460
  w();
5461
- }), n(d), o(f), A(p), a(0), p;
5461
+ }), n(d), o(h), A(p), a(0), p;
5462
5462
  } catch (p) {
5463
5463
  throw console.error("Error initializing client:", p), A(null), p;
5464
5464
  }
@@ -5670,10 +5670,10 @@ function Qm(t) {
5670
5670
  return Rm(Gr("", null, null, null, [""], t = Tm(t), 0, [0], t));
5671
5671
  }
5672
5672
  function Gr(t, e, A, r, n, s, o, i, a) {
5673
- for (var l = 0, c = 0, d = o, f = 0, p = 0, h = 0, g = 1, w = 1, C = 1, E = 0, v = "", B = n, b = s, m = r, y = v; w; )
5674
- switch (h = E, E = Xe()) {
5673
+ for (var l = 0, c = 0, d = o, h = 0, p = 0, f = 0, g = 1, w = 1, C = 1, E = 0, v = "", B = n, b = s, m = r, y = v; w; )
5674
+ switch (f = E, E = Xe()) {
5675
5675
  case 40:
5676
- if (h != 108 && xe(y, d - 1) == 58) {
5676
+ if (f != 108 && xe(y, d - 1) == 58) {
5677
5677
  Wr(y += K(gs(E), "&", "&\f"), "&\f", hu(l ? i[l - 1] : 0)) != -1 && (C = -1);
5678
5678
  break;
5679
5679
  }
@@ -5686,7 +5686,7 @@ function Gr(t, e, A, r, n, s, o, i, a) {
5686
5686
  case 10:
5687
5687
  case 13:
5688
5688
  case 32:
5689
- y += km(h);
5689
+ y += km(f);
5690
5690
  break;
5691
5691
  case 92:
5692
5692
  y += Lm(zr() - 1, 7);
@@ -5720,7 +5720,7 @@ function Gr(t, e, A, r, n, s, o, i, a) {
5720
5720
  if (c === 0)
5721
5721
  Gr(y, e, m, m, B, s, d, i, b);
5722
5722
  else
5723
- switch (f === 99 && xe(y, 3) === 110 ? 100 : f) {
5723
+ switch (h === 99 && xe(y, 3) === 110 ? 100 : h) {
5724
5724
  case 100:
5725
5725
  case 108:
5726
5726
  case 109:
@@ -5734,7 +5734,7 @@ function Gr(t, e, A, r, n, s, o, i, a) {
5734
5734
  l = c = p = 0, g = C = 1, v = y = "", d = o;
5735
5735
  break;
5736
5736
  case 58:
5737
- d = 1 + $e(y), p = h;
5737
+ d = 1 + $e(y), p = f;
5738
5738
  default:
5739
5739
  if (g < 1) {
5740
5740
  if (E == 123)
@@ -5750,17 +5750,17 @@ function Gr(t, e, A, r, n, s, o, i, a) {
5750
5750
  i[l++] = ($e(y) - 1) * C, C = 1;
5751
5751
  break;
5752
5752
  case 64:
5753
- Zt() === 45 && (y += gs(Xe())), f = Zt(), c = d = $e(v = y += jm(zr())), E++;
5753
+ Zt() === 45 && (y += gs(Xe())), h = Zt(), c = d = $e(v = y += jm(zr())), E++;
5754
5754
  break;
5755
5755
  case 45:
5756
- h === 45 && $e(y) == 2 && (g = 0);
5756
+ f === 45 && $e(y) == 2 && (g = 0);
5757
5757
  }
5758
5758
  }
5759
5759
  return s;
5760
5760
  }
5761
5761
  function xa(t, e, A, r, n, s, o, i, a, l, c, d) {
5762
- for (var f = n - 1, p = n === 0 ? s : [""], h = pu(p), g = 0, w = 0, C = 0; g < r; ++g)
5763
- for (var E = 0, v = vA(t, f + 1, f = hu(w = o[g])), B = t; E < h; ++E)
5762
+ for (var h = n - 1, p = n === 0 ? s : [""], f = pu(p), g = 0, w = 0, C = 0; g < r; ++g)
5763
+ for (var E = 0, v = vA(t, h + 1, h = hu(w = o[g])), B = t; E < f; ++E)
5764
5764
  (B = fu(w > 0 ? p[E] + " " + v : K(v, /&\f/g, p[E]))) && (a[C++] = B);
5765
5765
  return Ln(t, e, A, n === 0 ? Rn : i, a, l, c, d);
5766
5766
  }
@@ -6295,16 +6295,16 @@ var Bu = function(t) {
6295
6295
  }(this)), _o(this, function() {
6296
6296
  return function(s) {
6297
6297
  for (var o = s.getTag(), i = o.length, a = "", l = function(d) {
6298
- var f = function(C) {
6298
+ var h = function(C) {
6299
6299
  return cn.get(C);
6300
6300
  }(d);
6301
- if (f === void 0) return "continue";
6302
- var p = s.names.get(f), h = o.getGroup(d);
6303
- if (p === void 0 || h.length === 0) return "continue";
6304
- var g = "".concat(nA, ".g").concat(d, '[id="').concat(f, '"]'), w = "";
6301
+ if (h === void 0) return "continue";
6302
+ var p = s.names.get(h), f = o.getGroup(d);
6303
+ if (p === void 0 || f.length === 0) return "continue";
6304
+ var g = "".concat(nA, ".g").concat(d, '[id="').concat(h, '"]'), w = "";
6305
6305
  p !== void 0 && p.forEach(function(C) {
6306
6306
  C.length > 0 && (w += "".concat(C, ","));
6307
- }), a += "".concat(h).concat(g, '{content:"').concat(w, '"}').concat(Jo);
6307
+ }), a += "".concat(f).concat(g, '{content:"').concat(w, '"}').concat(Jo);
6308
6308
  }, c = 0; c < i; c++) l(c);
6309
6309
  return a;
6310
6310
  }(n);
@@ -6348,23 +6348,23 @@ function Su(t, e) {
6348
6348
  });
6349
6349
  }
6350
6350
  function C2(t) {
6351
- var e, A, r, n = yA, s = n.options, o = s === void 0 ? yA : s, i = n.plugins, a = i === void 0 ? Qn : i, l = function(f, p, h) {
6352
- return h.startsWith(A) && h.endsWith(A) && h.replaceAll(A, "").length > 0 ? ".".concat(e) : f;
6351
+ var e, A, r, n = yA, s = n.options, o = s === void 0 ? yA : s, i = n.plugins, a = i === void 0 ? Qn : i, l = function(h, p, f) {
6352
+ return f.startsWith(A) && f.endsWith(A) && f.replaceAll(A, "").length > 0 ? ".".concat(e) : h;
6353
6353
  }, c = a.slice();
6354
- c.push(function(f) {
6355
- f.type === Rn && f.value.includes("&") && (f.props[0] = f.props[0].replace(b2, A).replace(r, l));
6354
+ c.push(function(h) {
6355
+ h.type === Rn && h.value.includes("&") && (h.props[0] = h.props[0].replace(b2, A).replace(r, l));
6356
6356
  }), o.prefix && c.push(zm), c.push(Ym);
6357
- var d = function(f, p, h, g) {
6358
- p === void 0 && (p = ""), h === void 0 && (h = ""), g === void 0 && (g = "&"), e = g, A = p, r = new RegExp("\\".concat(A, "\\b"), "g");
6359
- var w = f.replace(v2, ""), C = Qm(h || p ? "".concat(h, " ").concat(p, " { ").concat(w, " }") : w);
6357
+ var d = function(h, p, f, g) {
6358
+ p === void 0 && (p = ""), f === void 0 && (f = ""), g === void 0 && (g = "&"), e = g, A = p, r = new RegExp("\\".concat(A, "\\b"), "g");
6359
+ var w = h.replace(v2, ""), C = Qm(f || p ? "".concat(f, " ").concat(p, " { ").concat(w, " }") : w);
6360
6360
  o.namespace && (C = Su(C, o.namespace));
6361
6361
  var E = [];
6362
6362
  return an(C, Fm(c.concat(Wm(function(v) {
6363
6363
  return E.push(v);
6364
6364
  })))), E;
6365
6365
  };
6366
- return d.hash = a.length ? a.reduce(function(f, p) {
6367
- return p.name || TA(15), Vt(f, p.name);
6366
+ return d.hash = a.length ? a.reduce(function(h, p) {
6367
+ return p.name || TA(15), Vt(h, p.name);
6368
6368
  }, vu).toString() : "", d;
6369
6369
  }
6370
6370
  var y2 = new Ou(), co = C2(), Pu = ke.createContext({ shouldForwardProp: void 0, styleSheet: y2, stylis: co });
@@ -6448,8 +6448,8 @@ var D2 = Cu(jn), I2 = function() {
6448
6448
  var d = this.rules[c];
6449
6449
  if (typeof d == "string") l += d, process.env.NODE_ENV !== "production" && (a = Vt(a, d));
6450
6450
  else if (d) {
6451
- var f = io(Kt(d, e, A, r));
6452
- a = Vt(a, f + c), l += f;
6451
+ var h = io(Kt(d, e, A, r));
6452
+ a = Vt(a, h + c), l += h;
6453
6453
  }
6454
6454
  }
6455
6455
  if (l) {
@@ -6470,17 +6470,17 @@ function N2(t, e, A) {
6470
6470
  return b ? "".concat(b, "-").concat(y) : y;
6471
6471
  }(e.displayName, e.parentComponentId) : a, c = e.displayName, d = c === void 0 ? function(B) {
6472
6472
  return ws(B) ? "styled.".concat(B) : "Styled(".concat(Eu(B), ")");
6473
- }(t) : c, f = e.displayName && e.componentId ? "".concat(Na(e.displayName), "-").concat(e.componentId) : e.componentId || l, p = r && n.attrs ? n.attrs.concat(i).filter(Boolean) : i, h = e.shouldForwardProp;
6473
+ }(t) : c, h = e.displayName && e.componentId ? "".concat(Na(e.displayName), "-").concat(e.componentId) : e.componentId || l, p = r && n.attrs ? n.attrs.concat(i).filter(Boolean) : i, f = e.shouldForwardProp;
6474
6474
  if (r && n.shouldForwardProp) {
6475
6475
  var g = n.shouldForwardProp;
6476
6476
  if (e.shouldForwardProp) {
6477
6477
  var w = e.shouldForwardProp;
6478
- h = function(B, b) {
6478
+ f = function(B, b) {
6479
6479
  return g(B, b) && w(B, b);
6480
6480
  };
6481
- } else h = g;
6481
+ } else f = g;
6482
6482
  }
6483
- var C = new I2(A, f, r ? n.componentStyle : void 0);
6483
+ var C = new I2(A, h, r ? n.componentStyle : void 0);
6484
6484
  function E(B, b) {
6485
6485
  return function(m, y, O) {
6486
6486
  var N = m.attrs, R = m.componentStyle, S = m.defaultProps, M = m.foldedComponentIds, I = m.styledComponentId, j = m.target, G = ke.useContext(ku), ee = Ra(), Y = m.shouldForwardProp || ee.shouldForwardProp;
@@ -6504,7 +6504,7 @@ function N2(t, e, A) {
6504
6504
  }
6505
6505
  E.displayName = d;
6506
6506
  var v = ke.forwardRef(E);
6507
- return v.attrs = p, v.componentStyle = C, v.displayName = d, v.shouldForwardProp = h, v.foldedComponentIds = r ? Xt(n.foldedComponentIds, n.styledComponentId) : "", v.styledComponentId = f, v.target = r ? n.target : t, Object.defineProperty(v, "defaultProps", { get: function() {
6507
+ return v.attrs = p, v.componentStyle = C, v.displayName = d, v.shouldForwardProp = f, v.foldedComponentIds = r ? Xt(n.foldedComponentIds, n.styledComponentId) : "", v.styledComponentId = h, v.target = r ? n.target : t, Object.defineProperty(v, "defaultProps", { get: function() {
6508
6508
  return this._foldedDefaultProps;
6509
6509
  }, set: function(B) {
6510
6510
  this._foldedDefaultProps = r ? function(b) {
@@ -6512,7 +6512,7 @@ function N2(t, e, A) {
6512
6512
  for (var O = 0, N = m; O < N.length; O++) ao(b, N[O], !0);
6513
6513
  return b;
6514
6514
  }({}, n.defaultProps, B) : B;
6515
- } }), process.env.NODE_ENV !== "production" && (Xm(d, f), v.warnTooManyClasses = /* @__PURE__ */ function(B, b) {
6515
+ } }), process.env.NODE_ENV !== "production" && (Xm(d, h), v.warnTooManyClasses = /* @__PURE__ */ function(B, b) {
6516
6516
  var m = {}, y = !1;
6517
6517
  return function(O) {
6518
6518
  if (!y && (m[O] = !0, Object.keys(m).length >= 200)) {
@@ -6529,7 +6529,7 @@ Example:
6529
6529
  <Component />`), y = !0, m = {};
6530
6530
  }
6531
6531
  };
6532
- }(d, f)), _o(v, function() {
6532
+ }(d, h)), _o(v, function() {
6533
6533
  return ".".concat(v.styledComponentId);
6534
6534
  }), s && Nu(v, t, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), v;
6535
6535
  }
@@ -7120,12 +7120,12 @@ const ln = x.div`
7120
7120
  })), [l, l.length]), d = Ee(
7121
7121
  () => i && i.user.id === e.walletAddress,
7122
7122
  [i, e.walletAddress]
7123
- ), f = Ee(() => o ? c.filter(
7123
+ ), h = Ee(() => o ? c.filter(
7124
7124
  (I) => I.roomJid === r && I.isReply && I.isReply === "true" && I.mainMessage && JSON.parse(I.mainMessage).id === i.id
7125
7125
  ) : c.filter(
7126
7126
  (I) => I.showInChannel === "true" || (!I.isReply || I.isReply === "false") && !I.mainMessage
7127
- ), [l, l.length]), p = be(null), h = be(null), g = be(
7128
- f[f.length - 1]
7127
+ ), [l, l.length]), p = be(null), f = be(null), g = be(
7128
+ h[h.length - 1]
7129
7129
  ), w = be(!1), C = be(0), E = be(null), v = be(!0), B = () => {
7130
7130
  const I = p.current;
7131
7131
  return I ? {
@@ -7143,16 +7143,16 @@ const ln = x.div`
7143
7143
  const I = B();
7144
7144
  if (I && I.top < 150 && !w.current) {
7145
7145
  E.current = B();
7146
- const G = f[0];
7146
+ const G = h[0];
7147
7147
  (j = G == null ? void 0 : G.user) != null && j.id && (w.current = !0, A(
7148
- f[0].roomJid,
7148
+ h[0].roomJid,
7149
7149
  30,
7150
- Number(f[0].id)
7150
+ Number(h[0].id)
7151
7151
  ).finally(() => {
7152
- w.current = !1, g.current = f[f.length - 1], b();
7152
+ w.current = !1, g.current = h[h.length - 1], b();
7153
7153
  }));
7154
7154
  }
7155
- }, [A, f.length]), y = () => {
7155
+ }, [A, h.length]), y = () => {
7156
7156
  const I = p.current;
7157
7157
  I && (v.current = I.scrollHeight - I.clientHeight <= I.scrollTop + 10, m());
7158
7158
  }, O = $(() => {
@@ -7164,14 +7164,14 @@ const ln = x.div`
7164
7164
  }, 50);
7165
7165
  };
7166
7166
  ge(() => {
7167
- const I = h.current;
7167
+ const I = f.current;
7168
7168
  return I && I.addEventListener("scroll", N, !0), () => {
7169
7169
  I && I.removeEventListener("scroll", N, !0);
7170
7170
  };
7171
7171
  }, []), ge(() => {
7172
7172
  v.current && O();
7173
- }, [f.length]), ge(() => {
7174
- if (f.length > 30) {
7173
+ }, [h.length]), ge(() => {
7174
+ if (h.length > 30) {
7175
7175
  const I = p.current;
7176
7176
  if (I && E.current) {
7177
7177
  const j = E.current.top + (I.scrollHeight - E.current.height);
@@ -7179,9 +7179,9 @@ const ln = x.div`
7179
7179
  }
7180
7180
  E.current = null;
7181
7181
  }
7182
- }, [f.length, a]);
7182
+ }, [h.length, a]);
7183
7183
  let R = null;
7184
- return /* @__PURE__ */ u(R2, { ref: h, children: /* @__PURE__ */ D(
7184
+ return /* @__PURE__ */ u(R2, { ref: f, children: /* @__PURE__ */ D(
7185
7185
  T2,
7186
7186
  {
7187
7187
  ref: p,
@@ -7201,12 +7201,12 @@ const ln = x.div`
7201
7201
  /* @__PURE__ */ u(
7202
7202
  aw,
7203
7203
  {
7204
- reply: f.length,
7204
+ reply: h.length,
7205
7205
  colors: n == null ? void 0 : n.colors
7206
7206
  }
7207
7207
  )
7208
7208
  ] }),
7209
- f.map((I) => {
7209
+ h.map((I) => {
7210
7210
  const j = new Date(I.date).toDateString(), G = j !== R;
7211
7211
  return R = j, /* @__PURE__ */ u(
7212
7212
  gw,
@@ -8259,11 +8259,11 @@ const yw = x.div`
8259
8259
  l.current = setInterval(() => {
8260
8260
  o((C) => C + 1);
8261
8261
  }, 1e3);
8262
- }, []), f = $(() => {
8262
+ }, []), h = $(() => {
8263
8263
  l.current && clearInterval(l.current);
8264
8264
  }, []), p = () => {
8265
8265
  n(null), o(0), t(!1), a.current = [], i.current && i.current.stream.getTracks().forEach((C) => C.stop());
8266
- }, h = $(async () => {
8266
+ }, f = $(async () => {
8267
8267
  const C = await navigator.mediaDevices.getUserMedia({ audio: !0 }), E = new MediaRecorder(C);
8268
8268
  i.current = E, E.ondataavailable = (v) => {
8269
8269
  a.current.push(v.data);
@@ -8272,9 +8272,9 @@ const yw = x.div`
8272
8272
  n(v);
8273
8273
  }, a.current = [], E.start(), t(!0), d();
8274
8274
  }, [d, t]), g = () => {
8275
- i.current && (i.current.stop(), f(), p());
8275
+ i.current && (i.current.stop(), h(), p());
8276
8276
  }, w = () => {
8277
- i.current && (i.current.stop(), f(), i.current.onstop = () => {
8277
+ i.current && (i.current.stop(), h(), i.current.onstop = () => {
8278
8278
  const C = new Blob(a.current);
8279
8279
  A(C), p();
8280
8280
  });
@@ -8288,7 +8288,7 @@ const yw = x.div`
8288
8288
  /* @__PURE__ */ u(ae, { onClick: g, EndIcon: /* @__PURE__ */ u(Qu, {}), unstyled: !0 }),
8289
8289
  /* @__PURE__ */ u(ae, { onClick: w, EndIcon: /* @__PURE__ */ u(Hu, {}), unstyled: !0 })
8290
8290
  ] })
8291
- ] }) : /* @__PURE__ */ u(ae, { onClick: h, EndIcon: /* @__PURE__ */ u(Sw, {}) });
8291
+ ] }) : /* @__PURE__ */ u(ae, { onClick: f, EndIcon: /* @__PURE__ */ u(Sw, {}) });
8292
8292
  }, Uu = ({
8293
8293
  sendMessage: t,
8294
8294
  sendMedia: e,
@@ -8299,14 +8299,14 @@ const yw = x.div`
8299
8299
  isLoading: o
8300
8300
  }) => {
8301
8301
  var O, N, R;
8302
- const [i, a] = z(""), [l, c] = z(!1), [d, f] = z([]), p = be(null), h = $(() => {
8302
+ const [i, a] = z(""), [l, c] = z(!1), [d, h] = z([]), p = be(null), f = $(() => {
8303
8303
  p.current && p.current.click();
8304
8304
  }, []), g = $(
8305
8305
  (S) => {
8306
8306
  const M = S.target.files;
8307
8307
  if (M) {
8308
8308
  const I = Array.from(M);
8309
- f((j) => {
8309
+ h((j) => {
8310
8310
  const G = new Set(j.map((ce) => ce.name)), ee = I.filter(
8311
8311
  (ce) => !G.has(ce.name)
8312
8312
  );
@@ -8322,7 +8322,7 @@ const yw = x.div`
8322
8322
  }, C = () => {
8323
8323
  r == null || r();
8324
8324
  }, E = $((S) => {
8325
- f((M) => M.filter((I) => I !== S));
8325
+ h((M) => M.filter((I) => I !== S));
8326
8326
  }, []), v = $(
8327
8327
  (S) => {
8328
8328
  a(S.target.value);
@@ -8334,7 +8334,7 @@ const yw = x.div`
8334
8334
  }, [s]);
8335
8335
  const B = $(
8336
8336
  (S) => {
8337
- d.length > 0 ? (console.log(d), console.log("Files sent:", d[0]), e(d[0], "media"), c(!1)) : S ? (e(S, "audio"), console.log(S), console.log("Audio sent:", S), c(!1)) : (console.log("sending default", i), t(i)), a(""), f([]);
8337
+ d.length > 0 ? (console.log(d), console.log("Files sent:", d[0]), e(d[0], "media"), c(!1)) : S ? (e(S, "audio"), console.log(S), console.log("Audio sent:", S), c(!1)) : (console.log("sending default", i), t(i)), a(""), h([]);
8338
8338
  },
8339
8339
  [d, i, t, e]
8340
8340
  ), b = $(
@@ -8371,7 +8371,7 @@ const yw = x.div`
8371
8371
  !(n != null && n.disableMedia) && /* @__PURE__ */ u(
8372
8372
  ae,
8373
8373
  {
8374
- onClick: h,
8374
+ onClick: f,
8375
8375
  disabled: !1,
8376
8376
  EndIcon: /* @__PURE__ */ u(Ow, {})
8377
8377
  }
@@ -8475,16 +8475,16 @@ const yw = x.div`
8475
8475
  s(!0);
8476
8476
  }, c = () => {
8477
8477
  o || s(!1);
8478
- }, d = (f) => {
8479
- i(!!f.target.value);
8478
+ }, d = (h) => {
8479
+ i(!!h.target.value);
8480
8480
  };
8481
8481
  return ge(() => {
8482
8482
  if (n && e) {
8483
- const f = setTimeout(() => {
8483
+ const h = setTimeout(() => {
8484
8484
  var p;
8485
8485
  (p = a.current) == null || p.focus();
8486
8486
  }, 250);
8487
- return () => clearTimeout(f);
8487
+ return () => clearTimeout(h);
8488
8488
  }
8489
8489
  }, [n, e]), /* @__PURE__ */ D(
8490
8490
  _w,
@@ -8500,8 +8500,8 @@ const yw = x.div`
8500
8500
  animated: e,
8501
8501
  expanded: n,
8502
8502
  onClick: () => {
8503
- var f;
8504
- return (f = a.current) == null ? void 0 : f.focus();
8503
+ var h;
8504
+ return (h = a.current) == null ? void 0 : h.focus();
8505
8505
  },
8506
8506
  children: t
8507
8507
  }
@@ -8889,8 +8889,8 @@ const td = function(t) {
8889
8889
  const A = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
8890
8890
  for (let n = 0; n < t.length; n += 3) {
8891
8891
  const s = t[n], o = n + 1 < t.length, i = o ? t[n + 1] : 0, a = n + 2 < t.length, l = a ? t[n + 2] : 0, c = s >> 2, d = (s & 3) << 4 | i >> 4;
8892
- let f = (i & 15) << 2 | l >> 6, p = l & 63;
8893
- a || (p = 64, o || (f = 64)), r.push(A[c], A[d], A[f], A[p]);
8892
+ let h = (i & 15) << 2 | l >> 6, p = l & 63;
8893
+ a || (p = 64, o || (h = 64)), r.push(A[c], A[d], A[h], A[p]);
8894
8894
  }
8895
8895
  return r.join("");
8896
8896
  },
@@ -8942,12 +8942,12 @@ const td = function(t) {
8942
8942
  const d = n < t.length ? A[t.charAt(n)] : 64;
8943
8943
  if (++n, s == null || i == null || l == null || d == null)
8944
8944
  throw new wb();
8945
- const f = s << 2 | i >> 4;
8946
- if (r.push(f), l !== 64) {
8945
+ const h = s << 2 | i >> 4;
8946
+ if (r.push(h), l !== 64) {
8947
8947
  const p = i << 4 & 240 | l >> 2;
8948
8948
  if (r.push(p), d !== 64) {
8949
- const h = l << 6 & 192 | d;
8950
- r.push(h);
8949
+ const f = l << 6 & 192 | d;
8950
+ r.push(f);
8951
8951
  }
8952
8952
  }
8953
8953
  }
@@ -11368,7 +11368,7 @@ class pt {
11368
11368
  }
11369
11369
  static _fromJSON(e, A) {
11370
11370
  var r, n, s, o, i, a, l, c;
11371
- const d = (r = A.displayName) !== null && r !== void 0 ? r : void 0, f = (n = A.email) !== null && n !== void 0 ? n : void 0, p = (s = A.phoneNumber) !== null && s !== void 0 ? s : void 0, h = (o = A.photoURL) !== null && o !== void 0 ? o : void 0, g = (i = A.tenantId) !== null && i !== void 0 ? i : void 0, w = (a = A._redirectEventId) !== null && a !== void 0 ? a : void 0, C = (l = A.createdAt) !== null && l !== void 0 ? l : void 0, E = (c = A.lastLoginAt) !== null && c !== void 0 ? c : void 0, { uid: v, emailVerified: B, isAnonymous: b, providerData: m, stsTokenManager: y } = A;
11371
+ const d = (r = A.displayName) !== null && r !== void 0 ? r : void 0, h = (n = A.email) !== null && n !== void 0 ? n : void 0, p = (s = A.phoneNumber) !== null && s !== void 0 ? s : void 0, f = (o = A.photoURL) !== null && o !== void 0 ? o : void 0, g = (i = A.tenantId) !== null && i !== void 0 ? i : void 0, w = (a = A._redirectEventId) !== null && a !== void 0 ? a : void 0, C = (l = A.createdAt) !== null && l !== void 0 ? l : void 0, E = (c = A.lastLoginAt) !== null && c !== void 0 ? c : void 0, { uid: v, emailVerified: B, isAnonymous: b, providerData: m, stsTokenManager: y } = A;
11372
11372
  V(
11373
11373
  v && y,
11374
11374
  e,
@@ -11381,7 +11381,7 @@ class pt {
11381
11381
  e,
11382
11382
  "internal-error"
11383
11383
  /* AuthErrorCode.INTERNAL_ERROR */
11384
- ), Et(d, e.name), Et(f, e.name), V(
11384
+ ), Et(d, e.name), Et(h, e.name), V(
11385
11385
  typeof B == "boolean",
11386
11386
  e,
11387
11387
  "internal-error"
@@ -11391,15 +11391,15 @@ class pt {
11391
11391
  e,
11392
11392
  "internal-error"
11393
11393
  /* AuthErrorCode.INTERNAL_ERROR */
11394
- ), Et(p, e.name), Et(h, e.name), Et(g, e.name), Et(w, e.name), Et(C, e.name), Et(E, e.name);
11394
+ ), Et(p, e.name), Et(f, e.name), Et(g, e.name), Et(w, e.name), Et(C, e.name), Et(E, e.name);
11395
11395
  const N = new pt({
11396
11396
  uid: v,
11397
11397
  auth: e,
11398
- email: f,
11398
+ email: h,
11399
11399
  emailVerified: B,
11400
11400
  displayName: d,
11401
11401
  isAnonymous: b,
11402
- photoURL: h,
11402
+ photoURL: f,
11403
11403
  phoneNumber: p,
11404
11404
  tenantId: g,
11405
11405
  stsTokenManager: O,
@@ -13408,9 +13408,9 @@ class j3 {
13408
13408
  o = {
13409
13409
  messageChannel: n,
13410
13410
  onMessage(d) {
13411
- const f = d;
13412
- if (f.data.eventId === l)
13413
- switch (f.data.status) {
13411
+ const h = d;
13412
+ if (h.data.eventId === l)
13413
+ switch (h.data.status) {
13414
13414
  case "ack":
13415
13415
  clearTimeout(c), s = setTimeout(
13416
13416
  () => {
@@ -13424,7 +13424,7 @@ class j3 {
13424
13424
  );
13425
13425
  break;
13426
13426
  case "done":
13427
- clearTimeout(s), i(f.data.response);
13427
+ clearTimeout(s), i(h.data.response);
13428
13428
  break;
13429
13429
  default:
13430
13430
  clearTimeout(c), clearTimeout(s), a(new Error(
@@ -14410,7 +14410,7 @@ function OC(t, e, A, r = DC, n = IC) {
14410
14410
  left: o
14411
14411
  }), l = Oe().toLowerCase();
14412
14412
  A && (i = xd(l) ? NC : A), yd(l) && (e = e || BC, a.scrollbars = "yes");
14413
- const c = Object.entries(a).reduce((f, [p, h]) => `${f}${p}=${h},`, "");
14413
+ const c = Object.entries(a).reduce((h, [p, f]) => `${h}${p}=${f},`, "");
14414
14414
  if (u3(l) && i !== "_self")
14415
14415
  return SC(e || "", i), new ac(null);
14416
14416
  const d = window.open(e || "", i, c);
@@ -15102,20 +15102,20 @@ function Un(t, e, A) {
15102
15102
  const r = A.metaTokens, n = A.visitor || c, s = A.dots, o = A.indexes, a = (A.Blob || typeof Blob < "u" && Blob) && P.isSpecCompliantForm(e);
15103
15103
  if (!P.isFunction(n))
15104
15104
  throw new TypeError("visitor must be a function");
15105
- function l(h) {
15106
- if (h === null) return "";
15107
- if (P.isDate(h))
15108
- return h.toISOString();
15109
- if (!a && P.isBlob(h))
15105
+ function l(f) {
15106
+ if (f === null) return "";
15107
+ if (P.isDate(f))
15108
+ return f.toISOString();
15109
+ if (!a && P.isBlob(f))
15110
15110
  throw new J("Blob is not supported. Use a Buffer instead.");
15111
- return P.isArrayBuffer(h) || P.isTypedArray(h) ? a && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
15111
+ return P.isArrayBuffer(f) || P.isTypedArray(f) ? a && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
15112
15112
  }
15113
- function c(h, g, w) {
15114
- let C = h;
15115
- if (h && !w && typeof h == "object") {
15113
+ function c(f, g, w) {
15114
+ let C = f;
15115
+ if (f && !w && typeof f == "object") {
15116
15116
  if (P.endsWith(g, "{}"))
15117
- g = r ? g : g.slice(0, -2), h = JSON.stringify(h);
15118
- else if (P.isArray(h) && ky(h) || (P.isFileList(h) || P.endsWith(g, "[]")) && (C = P.toArray(h)))
15117
+ g = r ? g : g.slice(0, -2), f = JSON.stringify(f);
15118
+ else if (P.isArray(f) && ky(f) || (P.isFileList(f) || P.endsWith(g, "[]")) && (C = P.toArray(f)))
15119
15119
  return g = th(g), C.forEach(function(v, B) {
15120
15120
  !(P.isUndefined(v) || v === null) && e.append(
15121
15121
  // eslint-disable-next-line no-nested-ternary
@@ -15124,24 +15124,24 @@ function Un(t, e, A) {
15124
15124
  );
15125
15125
  }), !1;
15126
15126
  }
15127
- return xo(h) ? !0 : (e.append(pc(w, g, s), l(h)), !1);
15127
+ return xo(f) ? !0 : (e.append(pc(w, g, s), l(f)), !1);
15128
15128
  }
15129
- const d = [], f = Object.assign(Ly, {
15129
+ const d = [], h = Object.assign(Ly, {
15130
15130
  defaultVisitor: c,
15131
15131
  convertValue: l,
15132
15132
  isVisitable: xo
15133
15133
  });
15134
- function p(h, g) {
15135
- if (!P.isUndefined(h)) {
15136
- if (d.indexOf(h) !== -1)
15134
+ function p(f, g) {
15135
+ if (!P.isUndefined(f)) {
15136
+ if (d.indexOf(f) !== -1)
15137
15137
  throw Error("Circular reference detected in " + g.join("."));
15138
- d.push(h), P.forEach(h, function(C, E) {
15138
+ d.push(f), P.forEach(f, function(C, E) {
15139
15139
  (!(P.isUndefined(C) || C === null) && n.call(
15140
15140
  e,
15141
15141
  C,
15142
15142
  P.isString(E) ? E.trim() : E,
15143
15143
  g,
15144
- f
15144
+ h
15145
15145
  )) === !0 && p(C, g ? g.concat(E) : [E]);
15146
15146
  }), d.pop();
15147
15147
  }
@@ -15613,13 +15613,13 @@ function A7(t, e) {
15613
15613
  return e = e !== void 0 ? e : 1e3, function(a) {
15614
15614
  const l = Date.now(), c = r[s];
15615
15615
  o || (o = l), A[n] = a, r[n] = l;
15616
- let d = s, f = 0;
15616
+ let d = s, h = 0;
15617
15617
  for (; d !== n; )
15618
- f += A[d++], d = d % t;
15618
+ h += A[d++], d = d % t;
15619
15619
  if (n = (n + 1) % t, n === s && (s = (s + 1) % t), l - o < e)
15620
15620
  return;
15621
15621
  const p = c && l - c;
15622
- return p ? Math.round(f * 1e3 / p) : void 0;
15622
+ return p ? Math.round(h * 1e3 / p) : void 0;
15623
15623
  };
15624
15624
  }
15625
15625
  function r7(t, e) {
@@ -15779,8 +15779,8 @@ function iA(t, e) {
15779
15779
  headers: (l, c) => n(bc(l), bc(c), !0)
15780
15780
  };
15781
15781
  return P.forEach(Object.keys(Object.assign({}, t, e)), function(c) {
15782
- const d = a[c] || n, f = d(t[c], e[c], c);
15783
- P.isUndefined(f) && d !== i || (A[c] = f);
15782
+ const d = a[c] || n, h = d(t[c], e[c], c);
15783
+ P.isUndefined(h) && d !== i || (A[c] = h);
15784
15784
  }), A;
15785
15785
  }
15786
15786
  const ch = (t) => {
@@ -15841,22 +15841,22 @@ const ch = (t) => {
15841
15841
  }, c.onerror = function() {
15842
15842
  r(new J("Network Error", J.ERR_NETWORK, n, c)), c = null;
15843
15843
  }, c.ontimeout = function() {
15844
- let h = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
15844
+ let f = n.timeout ? "timeout of " + n.timeout + "ms exceeded" : "timeout exceeded";
15845
15845
  const g = n.transitional || nh;
15846
- n.timeoutErrorMessage && (h = n.timeoutErrorMessage), r(new J(
15847
- h,
15846
+ n.timeoutErrorMessage && (f = n.timeoutErrorMessage), r(new J(
15847
+ f,
15848
15848
  g.clarifyTimeoutError ? J.ETIMEDOUT : J.ECONNABORTED,
15849
15849
  n,
15850
15850
  c
15851
15851
  )), c = null;
15852
- }, s === void 0 && o.setContentType(null), "setRequestHeader" in c && P.forEach(o.toJSON(), function(h, g) {
15853
- c.setRequestHeader(g, h);
15852
+ }, s === void 0 && o.setContentType(null), "setRequestHeader" in c && P.forEach(o.toJSON(), function(f, g) {
15853
+ c.setRequestHeader(g, f);
15854
15854
  }), P.isUndefined(n.withCredentials) || (c.withCredentials = !!n.withCredentials), i && i !== "json" && (c.responseType = n.responseType), typeof n.onDownloadProgress == "function" && c.addEventListener("progress", wn(n.onDownloadProgress, !0)), typeof n.onUploadProgress == "function" && c.upload && c.upload.addEventListener("progress", wn(n.onUploadProgress)), (n.cancelToken || n.signal) && (a = (p) => {
15855
15855
  c && (r(!p || p.type ? new jA(null, t, c) : p), c.abort(), c = null);
15856
15856
  }, n.cancelToken && n.cancelToken.subscribe(a), n.signal && (n.signal.aborted ? a() : n.signal.addEventListener("abort", a)));
15857
- const f = t7(n.url);
15858
- if (f && Ue.protocols.indexOf(f) === -1) {
15859
- r(new J("Unsupported protocol " + f + ":", J.ERR_BAD_REQUEST, t));
15857
+ const h = t7(n.url);
15858
+ if (h && Ue.protocols.indexOf(h) === -1) {
15859
+ r(new J("Unsupported protocol " + h + ":", J.ERR_BAD_REQUEST, t));
15860
15860
  return;
15861
15861
  }
15862
15862
  c.send(s || null);
@@ -15974,10 +15974,10 @@ const f7 = async (t) => {
15974
15974
  responseType: l,
15975
15975
  headers: c,
15976
15976
  withCredentials: d = "same-origin",
15977
- fetchOptions: f
15977
+ fetchOptions: h
15978
15978
  } = ch(t);
15979
15979
  l = l ? (l + "").toLowerCase() : "text";
15980
- let [p, h] = n || s || o ? l7([n, s], o) : [], g, w;
15980
+ let [p, f] = n || s || o ? l7([n, s], o) : [], g, w;
15981
15981
  const C = () => {
15982
15982
  !g && setTimeout(() => {
15983
15983
  p && p.unsubscribe();
@@ -15997,7 +15997,7 @@ const f7 = async (t) => {
15997
15997
  ), null, Do));
15998
15998
  }
15999
15999
  P.isString(d) || (d = d ? "cors" : "omit"), w = new Request(e, {
16000
- ...f,
16000
+ ...h,
16001
16001
  signal: p,
16002
16002
  method: A.toUpperCase(),
16003
16003
  headers: c.normalize().toJSON(),
@@ -16023,7 +16023,7 @@ const f7 = async (t) => {
16023
16023
  }
16024
16024
  l = l || "text";
16025
16025
  let b = await bn[P.findKey(bn, l) || "text"](v, t);
16026
- return !B && C(), h && h(), await new Promise((m, y) => {
16026
+ return !B && C(), f && f(), await new Promise((m, y) => {
16027
16027
  ih(m, y, {
16028
16028
  data: b,
16029
16029
  headers: Te.from(v.headers),
@@ -16205,8 +16205,8 @@ class eA {
16205
16205
  );
16206
16206
  s && P.forEach(
16207
16207
  ["delete", "get", "head", "post", "put", "patch", "common"],
16208
- (h) => {
16209
- delete s[h];
16208
+ (f) => {
16209
+ delete s[f];
16210
16210
  }
16211
16211
  ), A.headers = Te.concat(o, s);
16212
16212
  const i = [];
@@ -16218,19 +16218,19 @@ class eA {
16218
16218
  this.interceptors.response.forEach(function(g) {
16219
16219
  l.push(g.fulfilled, g.rejected);
16220
16220
  });
16221
- let c, d = 0, f;
16221
+ let c, d = 0, h;
16222
16222
  if (!a) {
16223
- const h = [xc.bind(this), void 0];
16224
- for (h.unshift.apply(h, i), h.push.apply(h, l), f = h.length, c = Promise.resolve(A); d < f; )
16225
- c = c.then(h[d++], h[d++]);
16223
+ const f = [xc.bind(this), void 0];
16224
+ for (f.unshift.apply(f, i), f.push.apply(f, l), h = f.length, c = Promise.resolve(A); d < h; )
16225
+ c = c.then(f[d++], f[d++]);
16226
16226
  return c;
16227
16227
  }
16228
- f = i.length;
16228
+ h = i.length;
16229
16229
  let p = A;
16230
- for (d = 0; d < f; ) {
16231
- const h = i[d++], g = i[d++];
16230
+ for (d = 0; d < h; ) {
16231
+ const f = i[d++], g = i[d++];
16232
16232
  try {
16233
- p = h(p);
16233
+ p = f(p);
16234
16234
  } catch (w) {
16235
16235
  g.call(this, w);
16236
16236
  break;
@@ -16238,10 +16238,10 @@ class eA {
16238
16238
  }
16239
16239
  try {
16240
16240
  c = xc.call(this, p);
16241
- } catch (h) {
16242
- return Promise.reject(h);
16241
+ } catch (f) {
16242
+ return Promise.reject(f);
16243
16243
  }
16244
- for (d = 0, f = l.length; d < f; )
16244
+ for (d = 0, h = l.length; d < h; )
16245
16245
  c = c.then(l[d++], l[d++]);
16246
16246
  return c;
16247
16247
  }
@@ -16620,11 +16620,11 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], aA = ({
16620
16620
  if (!g) return "";
16621
16621
  const w = g.trim().split(" "), C = ((B = (v = w[0]) == null ? void 0 : v[0]) == null ? void 0 : B.toUpperCase()) || "", E = ((m = (b = w[w.length - 1]) == null ? void 0 : b[0]) == null ? void 0 : m.toUpperCase()) || "";
16622
16622
  return C + E;
16623
- }, f = () => !e && t ? d(t) : "", p = (g) => {
16623
+ }, h = () => !e && t ? d(t) : "", p = (g) => {
16624
16624
  var C;
16625
16625
  const w = (C = g.target.files) == null ? void 0 : C[0];
16626
16626
  w && (r != null && r.onUpload) && r.onUpload(w);
16627
- }, h = () => {
16627
+ }, f = () => {
16628
16628
  var g;
16629
16629
  r != null && r.active && ((g = document.getElementById("avatar-file-input")) == null || g.click());
16630
16630
  };
@@ -16641,7 +16641,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], aA = ({
16641
16641
  bgColor: e ? "transparent" : l,
16642
16642
  size: A,
16643
16643
  isClickable: o || s === "participant" && !!(r != null && r.active),
16644
- onClick: h,
16644
+ onClick: f,
16645
16645
  style: { fontSize: A >= 64 ? "24px" : "18px" },
16646
16646
  color: c,
16647
16647
  children: [
@@ -16652,7 +16652,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], aA = ({
16652
16652
  alt: "avatar icon",
16653
16653
  size: A
16654
16654
  }
16655
- ) : i || f(),
16655
+ ) : i || h(),
16656
16656
  (r == null ? void 0 : r.active) && /* @__PURE__ */ D(pe, { children: [
16657
16657
  /* @__PURE__ */ u(
16658
16658
  ew,
@@ -16684,19 +16684,19 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], aA = ({
16684
16684
  var y;
16685
16685
  const t = re(
16686
16686
  (O) => O.chatSettingStore.config
16687
- ), e = me(), { client: A } = ze(), [r, n] = z(!1), [s, o] = z(""), [i, a] = z(""), [l, c] = z(null), [d, f] = z({ name: "", description: "" }), p = Ee(
16687
+ ), e = me(), { client: A } = ze(), [r, n] = z(!1), [s, o] = z(""), [i, a] = z(""), [l, c] = z(null), [d, h] = z({ name: "", description: "" }), p = Ee(
16688
16688
  () => s.length >= 3 && i.length >= 5,
16689
16689
  [s, i]
16690
- ), h = (O) => O.trim().length < 3 ? "Room name must be at least 3 characters." : "", g = (O) => O.trim().length < 5 ? "Room description must be at least 5 characters." : "", w = (O) => {
16690
+ ), f = (O) => O.trim().length < 3 ? "Room name must be at least 3 characters." : "", g = (O) => O.trim().length < 5 ? "Room description must be at least 5 characters." : "", w = (O) => {
16691
16691
  console.log("adsasd");
16692
16692
  const N = O.target.value;
16693
- o(N), f((R) => ({
16693
+ o(N), h((R) => ({
16694
16694
  ...R,
16695
- name: h(N)
16695
+ name: f(N)
16696
16696
  }));
16697
16697
  }, C = (O) => {
16698
16698
  const N = O.target.value;
16699
- a(N), f((R) => ({
16699
+ a(N), h((R) => ({
16700
16700
  ...R,
16701
16701
  description: g(N)
16702
16702
  }));
@@ -16716,7 +16716,7 @@ const Nc = ["#f44336", "#2196f3", "#4caf50", "#ff9800"], aA = ({
16716
16716
  s,
16717
16717
  i
16718
16718
  );
16719
- A.setRoomImageStanza(j, I, "icon", "none"), A.getRoomsStanza(), e(rt({ roomJID: j })), e(JA({ jid: j, updates: { icon: I } })), n(!1), f({ name: "", description: "" }), o(""), a("");
16719
+ A.setRoomImageStanza(j, I, "icon", "none"), A.getRoomsStanza(), e(rt({ roomJID: j })), e(JA({ jid: j, updates: { icon: I } })), n(!1), h({ name: "", description: "" }), o(""), a("");
16720
16720
  }
16721
16721
  };
16722
16722
  return /* @__PURE__ */ D(pe, { children: [
@@ -16923,7 +16923,7 @@ var Bc;
16923
16923
  function j7() {
16924
16924
  if (Bc) return ne;
16925
16925
  Bc = 1;
16926
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, A = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, a = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, w = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, E = t ? Symbol.for("react.scope") : 60119;
16926
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, A = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, a = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, h = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, f = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, w = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, E = t ? Symbol.for("react.scope") : 60119;
16927
16927
  function v(b) {
16928
16928
  if (typeof b == "object" && b !== null) {
16929
16929
  var m = b.$$typeof;
@@ -16941,7 +16941,7 @@ function j7() {
16941
16941
  switch (b = b && b.$$typeof, b) {
16942
16942
  case i:
16943
16943
  case c:
16944
- case h:
16944
+ case f:
16945
16945
  case p:
16946
16946
  case o:
16947
16947
  return b;
@@ -16957,7 +16957,7 @@ function j7() {
16957
16957
  function B(b) {
16958
16958
  return v(b) === l;
16959
16959
  }
16960
- return ne.AsyncMode = a, ne.ConcurrentMode = l, ne.ContextConsumer = i, ne.ContextProvider = o, ne.Element = e, ne.ForwardRef = c, ne.Fragment = r, ne.Lazy = h, ne.Memo = p, ne.Portal = A, ne.Profiler = s, ne.StrictMode = n, ne.Suspense = d, ne.isAsyncMode = function(b) {
16960
+ return ne.AsyncMode = a, ne.ConcurrentMode = l, ne.ContextConsumer = i, ne.ContextProvider = o, ne.Element = e, ne.ForwardRef = c, ne.Fragment = r, ne.Lazy = f, ne.Memo = p, ne.Portal = A, ne.Profiler = s, ne.StrictMode = n, ne.Suspense = d, ne.isAsyncMode = function(b) {
16961
16961
  return B(b) || v(b) === a;
16962
16962
  }, ne.isConcurrentMode = B, ne.isContextConsumer = function(b) {
16963
16963
  return v(b) === i;
@@ -16970,7 +16970,7 @@ function j7() {
16970
16970
  }, ne.isFragment = function(b) {
16971
16971
  return v(b) === r;
16972
16972
  }, ne.isLazy = function(b) {
16973
- return v(b) === h;
16973
+ return v(b) === f;
16974
16974
  }, ne.isMemo = function(b) {
16975
16975
  return v(b) === p;
16976
16976
  }, ne.isPortal = function(b) {
@@ -16982,7 +16982,7 @@ function j7() {
16982
16982
  }, ne.isSuspense = function(b) {
16983
16983
  return v(b) === d;
16984
16984
  }, ne.isValidElementType = function(b) {
16985
- return typeof b == "string" || typeof b == "function" || b === r || b === l || b === s || b === n || b === d || b === f || typeof b == "object" && b !== null && (b.$$typeof === h || b.$$typeof === p || b.$$typeof === o || b.$$typeof === i || b.$$typeof === c || b.$$typeof === w || b.$$typeof === C || b.$$typeof === E || b.$$typeof === g);
16985
+ return typeof b == "string" || typeof b == "function" || b === r || b === l || b === s || b === n || b === d || b === h || typeof b == "object" && b !== null && (b.$$typeof === f || b.$$typeof === p || b.$$typeof === o || b.$$typeof === i || b.$$typeof === c || b.$$typeof === w || b.$$typeof === C || b.$$typeof === E || b.$$typeof === g);
16986
16986
  }, ne.typeOf = v, ne;
16987
16987
  }
16988
16988
  var se = {};
@@ -16997,10 +16997,10 @@ var se = {};
16997
16997
  var Oc;
16998
16998
  function Q7() {
16999
16999
  return Oc || (Oc = 1, process.env.NODE_ENV !== "production" && function() {
17000
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, A = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, a = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, f = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, w = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, E = t ? Symbol.for("react.scope") : 60119;
17000
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, A = t ? Symbol.for("react.portal") : 60106, r = t ? Symbol.for("react.fragment") : 60107, n = t ? Symbol.for("react.strict_mode") : 60108, s = t ? Symbol.for("react.profiler") : 60114, o = t ? Symbol.for("react.provider") : 60109, i = t ? Symbol.for("react.context") : 60110, a = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, c = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, h = t ? Symbol.for("react.suspense_list") : 60120, p = t ? Symbol.for("react.memo") : 60115, f = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, w = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, E = t ? Symbol.for("react.scope") : 60119;
17001
17001
  function v(L) {
17002
17002
  return typeof L == "string" || typeof L == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
17003
- L === r || L === l || L === s || L === n || L === d || L === f || typeof L == "object" && L !== null && (L.$$typeof === h || L.$$typeof === p || L.$$typeof === o || L.$$typeof === i || L.$$typeof === c || L.$$typeof === w || L.$$typeof === C || L.$$typeof === E || L.$$typeof === g);
17003
+ L === r || L === l || L === s || L === n || L === d || L === h || typeof L == "object" && L !== null && (L.$$typeof === f || L.$$typeof === p || L.$$typeof === o || L.$$typeof === i || L.$$typeof === c || L.$$typeof === w || L.$$typeof === C || L.$$typeof === E || L.$$typeof === g);
17004
17004
  }
17005
17005
  function B(L) {
17006
17006
  if (typeof L == "object" && L !== null) {
@@ -17021,7 +17021,7 @@ function Q7() {
17021
17021
  switch (xi) {
17022
17022
  case i:
17023
17023
  case c:
17024
- case h:
17024
+ case f:
17025
17025
  case p:
17026
17026
  case o:
17027
17027
  return xi;
@@ -17034,7 +17034,7 @@ function Q7() {
17034
17034
  }
17035
17035
  }
17036
17036
  }
17037
- var b = a, m = l, y = i, O = o, N = e, R = c, S = r, M = h, I = p, j = A, G = s, ee = n, Y = d, ce = !1;
17037
+ var b = a, m = l, y = i, O = o, N = e, R = c, S = r, M = f, I = p, j = A, G = s, ee = n, Y = d, ce = !1;
17038
17038
  function F(L) {
17039
17039
  return ce || (ce = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(L) || B(L) === a;
17040
17040
  }
@@ -17057,7 +17057,7 @@ function Q7() {
17057
17057
  return B(L) === r;
17058
17058
  }
17059
17059
  function q(L) {
17060
- return B(L) === h;
17060
+ return B(L) === f;
17061
17061
  }
17062
17062
  function Z(L) {
17063
17063
  return B(L) === p;
@@ -17125,8 +17125,8 @@ function H7() {
17125
17125
  e.call(i, d) && (a[d] = i[d]);
17126
17126
  if (t) {
17127
17127
  l = t(i);
17128
- for (var f = 0; f < l.length; f++)
17129
- A.call(i, l[f]) && (a[l[f]] = i[l[f]]);
17128
+ for (var h = 0; h < l.length; h++)
17129
+ A.call(i, l[h]) && (a[l[h]] = i[l[h]]);
17130
17130
  }
17131
17131
  }
17132
17132
  return a;
@@ -17167,14 +17167,14 @@ function Y7() {
17167
17167
  var d;
17168
17168
  try {
17169
17169
  if (typeof s[c] != "function") {
17170
- var f = Error(
17170
+ var h = Error(
17171
17171
  (a || "React class") + ": " + i + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
17172
17172
  );
17173
- throw f.name = "Invariant Violation", f;
17173
+ throw h.name = "Invariant Violation", h;
17174
17174
  }
17175
17175
  d = s[c](o, c, a, i, null, e);
17176
- } catch (h) {
17177
- d = h;
17176
+ } catch (f) {
17177
+ d = f;
17178
17178
  }
17179
17179
  if (d && !(d instanceof Error) && t(
17180
17180
  (a || "React class") + ": type specification of " + i + " `" + c + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof d + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
@@ -17216,7 +17216,7 @@ function F7() {
17216
17216
  if (typeof k == "function")
17217
17217
  return k;
17218
17218
  }
17219
- var f = "<<anonymous>>", p = {
17219
+ var h = "<<anonymous>>", p = {
17220
17220
  array: C("array"),
17221
17221
  bigint: C("bigint"),
17222
17222
  bool: C("boolean"),
@@ -17237,7 +17237,7 @@ function F7() {
17237
17237
  shape: M,
17238
17238
  exact: I
17239
17239
  };
17240
- function h(T, k) {
17240
+ function f(T, k) {
17241
17241
  return T === k ? T !== 0 || 1 / T === 1 / k : T !== T && k !== k;
17242
17242
  }
17243
17243
  function g(T, k) {
@@ -17248,7 +17248,7 @@ function F7() {
17248
17248
  if (process.env.NODE_ENV !== "production")
17249
17249
  var k = {}, H = 0;
17250
17250
  function X(U, q, Z, _, te, Ae, ye) {
17251
- if (_ = _ || f, Ae = Ae || Z, ye !== A) {
17251
+ if (_ = _ || h, Ae = Ae || Z, ye !== A) {
17252
17252
  if (a) {
17253
17253
  var L = new Error(
17254
17254
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -17327,7 +17327,7 @@ function F7() {
17327
17327
  function m(T) {
17328
17328
  function k(H, X, W, U, q) {
17329
17329
  if (!(H[X] instanceof T)) {
17330
- var Z = T.name || f, _ = F(H[X]);
17330
+ var Z = T.name || h, _ = F(H[X]);
17331
17331
  return new g("Invalid " + U + " `" + q + "` of type " + ("`" + _ + "` supplied to `" + W + "`, expected ") + ("instance of `" + Z + "`."));
17332
17332
  }
17333
17333
  return null;
@@ -17341,7 +17341,7 @@ function F7() {
17341
17341
  ) : s("Invalid argument supplied to oneOf, expected an array.")), o;
17342
17342
  function k(H, X, W, U, q) {
17343
17343
  for (var Z = H[X], _ = 0; _ < T.length; _++)
17344
- if (h(Z, T[_]))
17344
+ if (f(Z, T[_]))
17345
17345
  return null;
17346
17346
  var te = JSON.stringify(T, function(ye, L) {
17347
17347
  var _e = Y(L);
@@ -17508,7 +17508,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
17508
17508
  }
17509
17509
  }
17510
17510
  function F(T) {
17511
- return !T.constructor || !T.constructor.name ? f : T.constructor.name;
17511
+ return !T.constructor || !T.constructor.name ? h : T.constructor.name;
17512
17512
  }
17513
17513
  return p.checkPropTypes = n, p.resetWarningCache = n.resetWarningCache, p.PropTypes = p, p;
17514
17514
  }, Ms;
@@ -17525,10 +17525,10 @@ function W7() {
17525
17525
  return A.resetWarningCache = e, js = function() {
17526
17526
  function r(o, i, a, l, c, d) {
17527
17527
  if (d !== t) {
17528
- var f = new Error(
17528
+ var h = new Error(
17529
17529
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
17530
17530
  );
17531
- throw f.name = "Invariant Violation", f;
17531
+ throw h.name = "Invariant Violation", h;
17532
17532
  }
17533
17533
  }
17534
17534
  r.isRequired = r;
@@ -18211,11 +18211,11 @@ At.createBytes = function(t, e) {
18211
18211
  for (var c = 0; c < s[i].length; c++)
18212
18212
  s[i][c] = 255 & t.buffer[c + A];
18213
18213
  A += a;
18214
- var d = Ht.getErrorCorrectPolynomial(l), f = new _7(s[i], d.getLength() - 1), p = f.mod(d);
18214
+ var d = Ht.getErrorCorrectPolynomial(l), h = new _7(s[i], d.getLength() - 1), p = h.mod(d);
18215
18215
  o[i] = new Array(d.getLength() - 1);
18216
18216
  for (var c = 0; c < o[i].length; c++) {
18217
- var h = c + p.getLength() - o[i].length;
18218
- o[i][c] = h >= 0 ? p.get(h) : 0;
18217
+ var f = c + p.getLength() - o[i].length;
18218
+ o[i][c] = f >= 0 ? p.get(f) : 0;
18219
18219
  }
18220
18220
  }
18221
18221
  for (var g = 0, c = 0; c < e.length; c++)
@@ -18303,19 +18303,19 @@ var f4 = {
18303
18303
  size: lt.default.number,
18304
18304
  value: lt.default.string.isRequired
18305
18305
  }, Kn = (0, Sh.forwardRef)(function(t, e) {
18306
- var A = t.bgColor, r = A === void 0 ? "#FFFFFF" : A, n = t.fgColor, s = n === void 0 ? "#000000" : n, o = t.level, i = o === void 0 ? "L" : o, a = t.size, l = a === void 0 ? 256 : a, c = t.value, d = h4(t, ["bgColor", "fgColor", "level", "size", "value"]), f = new c4.default(-1, i4.default[i]);
18307
- f.addData(c), f.make();
18308
- var p = f.modules;
18306
+ var A = t.bgColor, r = A === void 0 ? "#FFFFFF" : A, n = t.fgColor, s = n === void 0 ? "#000000" : n, o = t.level, i = o === void 0 ? "L" : o, a = t.size, l = a === void 0 ? 256 : a, c = t.value, d = h4(t, ["bgColor", "fgColor", "level", "size", "value"]), h = new c4.default(-1, i4.default[i]);
18307
+ h.addData(c), h.make();
18308
+ var p = h.modules;
18309
18309
  return l4.default.createElement(d4.default, n4({}, d, {
18310
18310
  bgColor: r,
18311
- bgD: p.map(function(h, g) {
18312
- return h.map(function(w, C) {
18311
+ bgD: p.map(function(f, g) {
18312
+ return f.map(function(w, C) {
18313
18313
  return w ? "" : "M " + C + " " + g + " l 1 0 0 1 -1 0 Z";
18314
18314
  }).join(" ");
18315
18315
  }).join(" "),
18316
18316
  fgColor: s,
18317
- fgD: p.map(function(h, g) {
18318
- return h.map(function(w, C) {
18317
+ fgD: p.map(function(f, g) {
18318
+ return f.map(function(w, C) {
18319
18319
  return w ? "M " + C + " " + g + " l 1 0 0 1 -1 0 Z" : "";
18320
18320
  }).join(" ");
18321
18321
  }).join(" "),
@@ -18442,19 +18442,19 @@ const Ph = x.div`
18442
18442
  }) => {
18443
18443
  var c, d;
18444
18444
  const [e, A] = z(!1), [r, n] = z(!1), s = me();
18445
- re((f) => f.chatSettingStore);
18446
- const { client: o } = ze(), i = re((f) => Fp(f));
18445
+ re((h) => h.chatSettingStore);
18446
+ const { client: o } = ze(), i = re((h) => Fp(h));
18447
18447
  ge(() => {
18448
- var f;
18449
- return A(!0), o.getRoomMembersStanza(i.jid), ((f = i.roomMembers) == null ? void 0 : f.length) > 0 && A(!1), () => {
18448
+ var h;
18449
+ return A(!0), o.getRoomMembersStanza(i.jid), ((h = i.roomMembers) == null ? void 0 : h.length) > 0 && A(!1), () => {
18450
18450
  };
18451
18451
  }, [(c = i.roomMembers) == null ? void 0 : c.length]);
18452
- const a = async (f) => {
18453
- var p, h, g;
18452
+ const a = async (h) => {
18453
+ var p, f, g;
18454
18454
  try {
18455
18455
  let w = new FormData();
18456
- w.append("files", f);
18457
- const C = await vi(w), E = (g = (h = (p = C == null ? void 0 : C.data) == null ? void 0 : p.results) == null ? void 0 : h[0]) == null ? void 0 : g.location;
18456
+ w.append("files", h);
18457
+ const C = await vi(w), E = (g = (f = (p = C == null ? void 0 : C.data) == null ? void 0 : p.results) == null ? void 0 : f[0]) == null ? void 0 : g.location;
18458
18458
  if (!E)
18459
18459
  throw new Error("No location found in upload result.");
18460
18460
  o.setRoomImageStanza(i.jid, E, "icon", "none"), s(
@@ -18502,7 +18502,7 @@ const Ph = x.div`
18502
18502
  /* @__PURE__ */ u($A, { children: "Description" }),
18503
18503
  /* @__PURE__ */ u(IA, { children: "Chat's Description" })
18504
18504
  ] }),
18505
- /* @__PURE__ */ u(sA, { style: { padding: "8px 16px" }, children: e ? /* @__PURE__ */ u(RA, {}) : (d = i == null ? void 0 : i.roomMembers) == null ? void 0 : d.map((f, p) => /* @__PURE__ */ D(
18505
+ /* @__PURE__ */ u(sA, { style: { padding: "8px 16px" }, children: e ? /* @__PURE__ */ u(RA, {}) : (d = i == null ? void 0 : i.roomMembers) == null ? void 0 : d.map((h, p) => /* @__PURE__ */ D(
18506
18506
  "div",
18507
18507
  {
18508
18508
  style: {
@@ -18524,7 +18524,7 @@ const Ph = x.div`
18524
18524
  },
18525
18525
  children: [
18526
18526
  /* @__PURE__ */ D("div", { style: { display: "flex", gap: "8px" }, children: [
18527
- /* @__PURE__ */ u(aA, { name: f.name, size: 40 }),
18527
+ /* @__PURE__ */ u(aA, { name: h.name, size: 40 }),
18528
18528
  /* @__PURE__ */ D(
18529
18529
  "div",
18530
18530
  {
@@ -18535,23 +18535,23 @@ const Ph = x.div`
18535
18535
  alignItems: "start"
18536
18536
  },
18537
18537
  children: [
18538
- /* @__PURE__ */ u(IA, { style: { fontSize: "16px", fontWeight: 600 }, children: f.name }),
18539
- /* @__PURE__ */ u($A, { children: new Date(f.last_active * 1e3).toLocaleString() })
18538
+ /* @__PURE__ */ u(IA, { style: { fontSize: "16px", fontWeight: 600 }, children: h.name }),
18539
+ /* @__PURE__ */ u($A, { children: new Date(h.last_active * 1e3).toLocaleString() })
18540
18540
  ]
18541
18541
  }
18542
18542
  )
18543
18543
  ] }),
18544
- f.role !== "none" && /* @__PURE__ */ u(
18544
+ h.role !== "none" && /* @__PURE__ */ u(
18545
18545
  "div",
18546
18546
  {
18547
18547
  style: {
18548
- backgroundColor: f.ban_status !== "banned" ? "#F3F6FC" : "#FFEBEE",
18549
- color: f.ban_status !== "banned" ? "#0052CD" : "#F44336",
18548
+ backgroundColor: h.ban_status !== "banned" ? "#F3F6FC" : "#FFEBEE",
18549
+ color: h.ban_status !== "banned" ? "#0052CD" : "#F44336",
18550
18550
  padding: "5px 8px",
18551
18551
  borderRadius: "16px",
18552
18552
  fontSize: "12px"
18553
18553
  },
18554
- children: f.role
18554
+ children: h.role
18555
18555
  }
18556
18556
  )
18557
18557
  ]
@@ -19138,7 +19138,7 @@ const Yc = x.div`
19138
19138
  `, F4 = ({
19139
19139
  handleCloseModal: t
19140
19140
  }) => {
19141
- var f, p, h, g;
19141
+ var h, p, f, g;
19142
19142
  const e = me(), { user: A, config: r } = re(
19143
19143
  (w) => w.chatSettingStore
19144
19144
  ), n = (w) => e(Pt(w)), [s, o] = z(A == null ? void 0 : A.isProfileOpen), [i, a] = z(A == null ? void 0 : A.isAssetsOpen), [l, c] = z(null), d = (w, C) => {
@@ -19168,7 +19168,7 @@ const Yc = x.div`
19168
19168
  /* @__PURE__ */ u(
19169
19169
  Mr,
19170
19170
  {
19171
- radioColor: (f = r == null ? void 0 : r.colors) == null ? void 0 : f.primary,
19171
+ radioColor: (h = r == null ? void 0 : r.colors) == null ? void 0 : h.primary,
19172
19172
  type: "radio",
19173
19173
  checked: s === !0,
19174
19174
  onChange: () => o(!0)
@@ -19199,7 +19199,7 @@ const Yc = x.div`
19199
19199
  /* @__PURE__ */ u(
19200
19200
  Mr,
19201
19201
  {
19202
- radioColor: (h = r == null ? void 0 : r.colors) == null ? void 0 : h.primary,
19202
+ radioColor: (f = r == null ? void 0 : r.colors) == null ? void 0 : f.primary,
19203
19203
  type: "radio",
19204
19204
  checked: i === !0,
19205
19205
  onChange: () => a(!0)
@@ -19237,10 +19237,10 @@ const Yc = x.div`
19237
19237
  modalUser: e,
19238
19238
  config: A
19239
19239
  }) => {
19240
- var h, g, w;
19240
+ var f, g, w;
19241
19241
  const r = me(), [n, s] = z((e == null ? void 0 : e.firstName) || ""), [o, i] = z((e == null ? void 0 : e.lastName) || ""), [a, l] = z((e == null ? void 0 : e.description) || ""), [c, d] = z(
19242
19242
  e == null ? void 0 : e.profileImage
19243
- ), f = async () => {
19243
+ ), h = async () => {
19244
19244
  try {
19245
19245
  let C = new FormData();
19246
19246
  if (typeof c == "string" && c.startsWith("data:image/")) {
@@ -19280,7 +19280,7 @@ const Yc = x.div`
19280
19280
  rightMenu: /* @__PURE__ */ u(
19281
19281
  ae,
19282
19282
  {
19283
- onClick: f,
19283
+ onClick: h,
19284
19284
  variant: "outlined",
19285
19285
  style: { width: "128px" },
19286
19286
  children: "Save"
@@ -19316,7 +19316,7 @@ const Yc = x.div`
19316
19316
  /* @__PURE__ */ u(
19317
19317
  VA,
19318
19318
  {
19319
- color: (h = A == null ? void 0 : A.colors) == null ? void 0 : h.primary,
19319
+ color: (f = A == null ? void 0 : A.colors) == null ? void 0 : f.primary,
19320
19320
  placeholder: "First Name",
19321
19321
  label: "First Name",
19322
19322
  value: n,
@@ -19356,7 +19356,7 @@ const Yc = x.div`
19356
19356
  e(xl()), t();
19357
19357
  }, []), d = $(() => {
19358
19358
  e(Qo()), e(Bl());
19359
- }, []), f = Ee(
19359
+ }, []), h = Ee(
19360
19360
  () => [
19361
19361
  {
19362
19362
  label: "Log Out",
@@ -19370,7 +19370,7 @@ const Yc = x.div`
19370
19370
  []
19371
19371
  ), p = $(() => {
19372
19372
  i(!0);
19373
- }, []), h = $(async () => {
19373
+ }, []), f = $(async () => {
19374
19374
  var O, N;
19375
19375
  l(!0);
19376
19376
  const E = to(n.defaultWallet.walletAddress), v = to(s.id), b = [E, v].sort().join(".").toLowerCase(), m = [
@@ -19396,7 +19396,7 @@ const Yc = x.div`
19396
19396
  /* @__PURE__ */ u(
19397
19397
  ei,
19398
19398
  {
19399
- options: f,
19399
+ options: h,
19400
19400
  position: "left",
19401
19401
  menuIcon: /* @__PURE__ */ u(Yu, {})
19402
19402
  }
@@ -19422,7 +19422,7 @@ const Yc = x.div`
19422
19422
  db,
19423
19423
  {
19424
19424
  StartIcon: /* @__PURE__ */ u(Fw, {}),
19425
- onClick: h,
19425
+ onClick: f,
19426
19426
  variant: "filled",
19427
19427
  children: "Message"
19428
19428
  }
@@ -19559,8 +19559,8 @@ const Yc = x.div`
19559
19559
  },
19560
19560
  [(i = t == null ? void 0 : t.messages) == null ? void 0 : i.length]
19561
19561
  ), o = (c) => {
19562
- const d = new Date(c), f = d.getHours().toString().padStart(2, "0"), p = d.getMinutes().toString().padStart(2, "0");
19563
- return `${f}:${p}`;
19562
+ const d = new Date(c), h = d.getHours().toString().padStart(2, "0"), p = d.getMinutes().toString().padStart(2, "0");
19563
+ return `${h}:${p}`;
19564
19564
  };
19565
19565
  return /* @__PURE__ */ D(
19566
19566
  S7,
@@ -19709,7 +19709,7 @@ const Yc = x.div`
19709
19709
  onRoomClick: A,
19710
19710
  isSmallScreen: r
19711
19711
  }) => {
19712
- const { client: n, setClient: s } = ze(), [o, i] = z(!1), [a, l] = z(""), c = me(), { config: d } = QA(), { activeRoomJID: f } = re((b) => b.rooms), p = be(null), h = $((b) => {
19712
+ const { client: n, setClient: s } = ze(), [o, i] = z(!1), [a, l] = z(""), c = me(), { config: d } = QA(), { activeRoomJID: h } = re((b) => b.rooms), p = be(null), f = $((b) => {
19713
19713
  p.current && !p.current.contains(b.target) && i(!1);
19714
19714
  }, []), g = $(
19715
19715
  (b) => {
@@ -19731,13 +19731,13 @@ const Yc = x.div`
19731
19731
  }, [t, a]);
19732
19732
  ge(() => {
19733
19733
  if (e)
19734
- return document.addEventListener("mousedown", h), () => {
19735
- document.removeEventListener("mousedown", h);
19734
+ return document.addEventListener("mousedown", f), () => {
19735
+ document.removeEventListener("mousedown", f);
19736
19736
  };
19737
- }, [e, h]);
19737
+ }, [e, f]);
19738
19738
  const E = $(
19739
- (b) => f === b.jid,
19740
- [f]
19739
+ (b) => h === b.jid,
19740
+ [h]
19741
19741
  ), v = $(async () => {
19742
19742
  n && (await n.close(), s(null)), c(Bl()), c(Qo());
19743
19743
  }, []), B = Ee(
@@ -20065,34 +20065,34 @@ const Yc = x.div`
20065
20065
  [r]
20066
20066
  ), s = $(
20067
20067
  async (o, i, a, l, c, d) => {
20068
- let f = new FormData();
20069
- f.append("files", o), vi(f).then((p) => {
20070
- console.log("Upload successful", p), p.data.results.map(async (h) => {
20068
+ let h = new FormData();
20069
+ h.append("files", o), vi(h).then((p) => {
20070
+ console.log("Upload successful", p), p.data.results.map(async (f) => {
20071
20071
  const g = {
20072
20072
  firstName: A.firstName,
20073
20073
  lastName: A.lastName,
20074
20074
  walletAddress: A.walletAddress,
20075
- createdAt: h.createdAt,
20076
- expiresAt: h.expiresAt,
20077
- fileName: h.filename,
20078
- isVisible: h == null ? void 0 : h.isVisible,
20079
- location: h.location,
20080
- locationPreview: h.locationPreview,
20081
- mimetype: h.mimetype,
20082
- originalName: h == null ? void 0 : h.originalname,
20083
- ownerKey: h == null ? void 0 : h.ownerKey,
20084
- size: h.size,
20085
- duration: h == null ? void 0 : h.duration,
20086
- updatedAt: h == null ? void 0 : h.updatedAt,
20087
- userId: h == null ? void 0 : h.userId,
20088
- attachmentId: h == null ? void 0 : h._id,
20075
+ createdAt: f.createdAt,
20076
+ expiresAt: f.expiresAt,
20077
+ fileName: f.filename,
20078
+ isVisible: f == null ? void 0 : f.isVisible,
20079
+ location: f.location,
20080
+ locationPreview: f.locationPreview,
20081
+ mimetype: f.mimetype,
20082
+ originalName: f == null ? void 0 : f.originalname,
20083
+ ownerKey: f == null ? void 0 : f.ownerKey,
20084
+ size: f.size,
20085
+ duration: f == null ? void 0 : f.duration,
20086
+ updatedAt: f == null ? void 0 : f.updatedAt,
20087
+ userId: f == null ? void 0 : f.userId,
20088
+ attachmentId: f == null ? void 0 : f._id,
20089
20089
  wrappable: !0,
20090
20090
  roomJid: a,
20091
20091
  showInChannel: c || !1,
20092
20092
  isReply: l || !1,
20093
20093
  mainMessage: d || "",
20094
- isPrivate: h == null ? void 0 : h.isPrivate,
20095
- __v: h.__v
20094
+ isPrivate: f == null ? void 0 : f.isPrivate,
20095
+ __v: f.__v
20096
20096
  };
20097
20097
  console.log(g, "data to send media"), t == null || t.sendMediaMessageStanza(a, g);
20098
20098
  });
@@ -20147,11 +20147,11 @@ const Yc = x.div`
20147
20147
  activeRoomJID: l,
20148
20148
  editAction: c,
20149
20149
  loading: d,
20150
- globalLoading: f,
20150
+ globalLoading: h,
20151
20151
  roomMessages: p
20152
- } = DA(), { sendMessage: h, sendMedia: g } = Lh(), { sendStartComposing: w, sendEndComposing: C } = a9(), E = $(
20152
+ } = DA(), { sendMessage: f, sendMedia: g } = Lh(), { sendStartComposing: w, sendEndComposing: C } = a9(), E = $(
20153
20153
  (R) => {
20154
- h(R, l);
20154
+ f(R, l);
20155
20155
  },
20156
20156
  [l]
20157
20157
  ), v = $(
@@ -20195,7 +20195,7 @@ const Yc = x.div`
20195
20195
  a,
20196
20196
  i,
20197
20197
  p.length
20198
- ), ((m = Object.keys(a)) == null ? void 0 : m.length) < 1 && !d && !f ? /* @__PURE__ */ D(P2, { children: [
20198
+ ), ((m = Object.keys(a)) == null ? void 0 : m.length) < 1 && !d && !h ? /* @__PURE__ */ D(P2, { children: [
20199
20199
  "No room. Let's create one!",
20200
20200
  /* @__PURE__ */ u(gh, {})
20201
20201
  ] }) : !l || !(a != null && a[l]) ? /* @__PURE__ */ u(s9, {}) : /* @__PURE__ */ D(
@@ -20213,7 +20213,7 @@ const Yc = x.div`
20213
20213
  handleBackClick: e
20214
20214
  }
20215
20215
  ),
20216
- d || f ? /* @__PURE__ */ u(RA, { color: (y = i == null ? void 0 : i.colors) == null ? void 0 : y.primary }) : Object.keys(a).length < 1 || !l ? /* @__PURE__ */ u(Wu, {}) : (O = a[l]) != null && O.messages && ((N = a[l]) == null ? void 0 : N.messages.length) < 1 ? /* @__PURE__ */ u(Z4, {}) : /* @__PURE__ */ u(
20216
+ d || h ? /* @__PURE__ */ u(RA, { color: (y = i == null ? void 0 : i.colors) == null ? void 0 : y.primary }) : Object.keys(a).length < 1 || !l ? /* @__PURE__ */ u(Wu, {}) : (O = a[l]) != null && O.messages && ((N = a[l]) == null ? void 0 : N.messages.length) < 1 ? /* @__PURE__ */ u(Z4, {}) : /* @__PURE__ */ u(
20217
20217
  ju,
20218
20218
  {
20219
20219
  loadMoreMessages: B,
@@ -20389,8 +20389,8 @@ const d9 = { fetchBlob: function(t, e, A) {
20389
20389
  let a = 0;
20390
20390
  const l = (d) => Be(this, void 0, void 0, function* () {
20391
20391
  a += (d == null ? void 0 : d.length) || 0;
20392
- const f = Math.round(a / i * 100);
20393
- s(f);
20392
+ const h = Math.round(a / i * 100);
20393
+ s(h);
20394
20394
  }), c = () => Be(this, void 0, void 0, function* () {
20395
20395
  let d;
20396
20396
  try {
@@ -20538,16 +20538,16 @@ class OA extends mr {
20538
20538
  const c = (d) => {
20539
20539
  if (d.button !== o) return;
20540
20540
  d.preventDefault(), d.stopPropagation();
20541
- let f = d.clientX, p = d.clientY, h = !1;
20541
+ let h = d.clientX, p = d.clientY, f = !1;
20542
20542
  const g = Date.now(), w = (b) => {
20543
20543
  if (b.preventDefault(), b.stopPropagation(), a && Date.now() - g < i) return;
20544
- const m = b.clientX, y = b.clientY, O = m - f, N = y - p;
20545
- if (h || Math.abs(O) > s || Math.abs(N) > s) {
20544
+ const m = b.clientX, y = b.clientY, O = m - h, N = y - p;
20545
+ if (f || Math.abs(O) > s || Math.abs(N) > s) {
20546
20546
  const R = e.getBoundingClientRect(), { left: S, top: M } = R;
20547
- h || (r == null || r(f - S, p - M), h = !0), A(O, N, m - S, y - M), f = m, p = y;
20547
+ f || (r == null || r(h - S, p - M), f = !0), A(O, N, m - S, y - M), h = m, p = y;
20548
20548
  }
20549
20549
  }, C = (b) => {
20550
- if (h) {
20550
+ if (f) {
20551
20551
  const m = b.clientX, y = b.clientY, O = e.getBoundingClientRect(), { left: N, top: R } = O;
20552
20552
  n == null || n(m - N, y - R);
20553
20553
  }
@@ -20555,9 +20555,9 @@ class OA extends mr {
20555
20555
  }, E = (b) => {
20556
20556
  b.relatedTarget && b.relatedTarget !== document.documentElement || C(b);
20557
20557
  }, v = (b) => {
20558
- h && (b.stopPropagation(), b.preventDefault());
20558
+ f && (b.stopPropagation(), b.preventDefault());
20559
20559
  }, B = (b) => {
20560
- h && b.preventDefault();
20560
+ f && b.preventDefault();
20561
20561
  };
20562
20562
  document.addEventListener("pointermove", w), document.addEventListener("pointerup", C), document.addEventListener("pointerout", E), document.addEventListener("pointercancel", E), document.addEventListener("touchmove", B, { passive: !1 }), document.addEventListener("click", v, { capture: !0 }), l = () => {
20563
20563
  document.removeEventListener("pointermove", w), document.removeEventListener("pointerup", C), document.removeEventListener("pointerout", E), document.removeEventListener("pointercancel", E), document.removeEventListener("touchmove", B), setTimeout(() => {
@@ -20714,7 +20714,7 @@ class OA extends mr {
20714
20714
  return Math.max(1, window.devicePixelRatio || 1);
20715
20715
  }
20716
20716
  renderBarWaveform(e, A, r, n) {
20717
- const s = e[0], o = e[1] || e[0], i = s.length, { width: a, height: l } = r.canvas, c = l / 2, d = this.getPixelRatio(), f = A.barWidth ? A.barWidth * d : 1, p = A.barGap ? A.barGap * d : A.barWidth ? f / 2 : 0, h = A.barRadius || 0, g = a / (f + p) / i, w = h && "roundRect" in r ? "roundRect" : "rect";
20717
+ const s = e[0], o = e[1] || e[0], i = s.length, { width: a, height: l } = r.canvas, c = l / 2, d = this.getPixelRatio(), h = A.barWidth ? A.barWidth * d : 1, p = A.barGap ? A.barGap * d : A.barWidth ? h / 2 : 0, f = A.barRadius || 0, g = a / (h + p) / i, w = f && "roundRect" in r ? "roundRect" : "rect";
20718
20718
  r.beginPath();
20719
20719
  let C = 0, E = 0, v = 0;
20720
20720
  for (let B = 0; B <= i; B++) {
@@ -20722,7 +20722,7 @@ class OA extends mr {
20722
20722
  if (b > C) {
20723
20723
  const O = Math.round(E * c * n), N = O + Math.round(v * c * n) || 1;
20724
20724
  let R = c - O;
20725
- A.barAlign === "top" ? R = 0 : A.barAlign === "bottom" && (R = l - N), r[w](C * (f + p), R, f, N, h), C = b, E = 0, v = 0;
20725
+ A.barAlign === "top" ? R = 0 : A.barAlign === "bottom" && (R = l - N), r[w](C * (h + p), R, h, N, f), C = b, E = 0, v = 0;
20726
20726
  }
20727
20727
  const m = Math.abs(s[B] || 0), y = Math.abs(o[B] || 0);
20728
20728
  m > E && (E = m), y > v && (v = y);
@@ -20733,17 +20733,17 @@ class OA extends mr {
20733
20733
  const s = (o) => {
20734
20734
  const i = e[o] || e[0], a = i.length, { height: l } = r.canvas, c = l / 2, d = r.canvas.width / a;
20735
20735
  r.moveTo(0, c);
20736
- let f = 0, p = 0;
20737
- for (let h = 0; h <= a; h++) {
20738
- const g = Math.round(h * d);
20739
- if (g > f) {
20736
+ let h = 0, p = 0;
20737
+ for (let f = 0; f <= a; f++) {
20738
+ const g = Math.round(f * d);
20739
+ if (g > h) {
20740
20740
  const C = c + (Math.round(p * c * n) || 1) * (o === 0 ? -1 : 1);
20741
- r.lineTo(f, C), f = g, p = 0;
20741
+ r.lineTo(h, C), h = g, p = 0;
20742
20742
  }
20743
- const w = Math.abs(i[h] || 0);
20743
+ const w = Math.abs(i[f] || 0);
20744
20744
  w > p && (p = w);
20745
20745
  }
20746
- r.lineTo(f, c);
20746
+ r.lineTo(h, c);
20747
20747
  };
20748
20748
  r.beginPath(), s(0), s(1), r.fill(), r.closePath();
20749
20749
  }
@@ -20761,8 +20761,8 @@ class OA extends mr {
20761
20761
  l.width = Math.round(r * a), l.height = Math.round(n * a), l.style.width = `${r}px`, l.style.height = `${n}px`, l.style.left = `${Math.round(s)}px`, o.appendChild(l);
20762
20762
  const c = l.getContext("2d");
20763
20763
  if (this.renderWaveform(e, A, c), l.width > 0 && l.height > 0) {
20764
- const d = l.cloneNode(), f = d.getContext("2d");
20765
- f.drawImage(l, 0, 0), f.globalCompositeOperation = "source-in", f.fillStyle = this.convertColorValues(A.progressColor), f.fillRect(0, 0, l.width, l.height), i.appendChild(d);
20764
+ const d = l.cloneNode(), h = d.getContext("2d");
20765
+ h.drawImage(l, 0, 0), h.globalCompositeOperation = "source-in", h.fillStyle = this.convertColorValues(A.progressColor), h.fillRect(0, 0, l.width, l.height), i.appendChild(d);
20766
20766
  }
20767
20767
  }
20768
20768
  renderMultiCanvas(e, A, r, n, s, o) {
@@ -20772,7 +20772,7 @@ class OA extends mr {
20772
20772
  const w = A.barWidth || 0.5, C = w + (A.barGap || w / 2);
20773
20773
  c % C != 0 && (c = Math.floor(c / C) * C);
20774
20774
  }
20775
- const f = (w) => {
20775
+ const h = (w) => {
20776
20776
  if (w < 0 || w >= p || d[w]) return;
20777
20777
  d[w] = !0;
20778
20778
  const C = w * c, E = Math.min(l - C, c);
@@ -20784,24 +20784,24 @@ class OA extends mr {
20784
20784
  this.renderSingleCanvas(v, A, E, n, C, s, o);
20785
20785
  }, p = Math.ceil(l / c);
20786
20786
  if (!this.isScrollable) {
20787
- for (let w = 0; w < p; w++) f(w);
20787
+ for (let w = 0; w < p; w++) h(w);
20788
20788
  return;
20789
20789
  }
20790
- const h = this.scrollContainer.scrollLeft / l, g = Math.floor(h * p);
20791
- f(g - 1), f(g), f(g + 1), p > 1 && (this.unsubscribeOnScroll = this.on("scroll", () => {
20790
+ const f = this.scrollContainer.scrollLeft / l, g = Math.floor(f * p);
20791
+ h(g - 1), h(g), h(g + 1), p > 1 && (this.unsubscribeOnScroll = this.on("scroll", () => {
20792
20792
  const { scrollLeft: w } = this.scrollContainer, C = Math.floor(w / l * p);
20793
- Object.keys(d).length > OA.MAX_NODES && (s.innerHTML = "", o.innerHTML = "", d = {}), f(C - 1), f(C), f(C + 1);
20793
+ Object.keys(d).length > OA.MAX_NODES && (s.innerHTML = "", o.innerHTML = "", d = {}), h(C - 1), h(C), h(C + 1);
20794
20794
  }));
20795
20795
  }
20796
20796
  renderChannel(e, A, r, n) {
20797
20797
  var { overlay: s } = A, o = function(c, d) {
20798
- var f = {};
20799
- for (var p in c) Object.prototype.hasOwnProperty.call(c, p) && d.indexOf(p) < 0 && (f[p] = c[p]);
20798
+ var h = {};
20799
+ for (var p in c) Object.prototype.hasOwnProperty.call(c, p) && d.indexOf(p) < 0 && (h[p] = c[p]);
20800
20800
  if (c != null && typeof Object.getOwnPropertySymbols == "function") {
20801
- var h = 0;
20802
- for (p = Object.getOwnPropertySymbols(c); h < p.length; h++) d.indexOf(p[h]) < 0 && Object.prototype.propertyIsEnumerable.call(c, p[h]) && (f[p[h]] = c[p[h]]);
20801
+ var f = 0;
20802
+ for (p = Object.getOwnPropertySymbols(c); f < p.length; f++) d.indexOf(p[f]) < 0 && Object.prototype.propertyIsEnumerable.call(c, p[f]) && (h[p[f]] = c[p[f]]);
20803
20803
  }
20804
- return f;
20804
+ return h;
20805
20805
  }(A, ["overlay"]);
20806
20806
  const i = document.createElement("div"), a = this.getHeight(o.height, o.splitChannels);
20807
20807
  i.style.height = `${a}px`, s && n > 0 && (i.style.marginTop = `-${a}px`), this.canvasWrapper.style.minHeight = `${a}px`, this.canvasWrapper.appendChild(i);
@@ -20849,8 +20849,8 @@ class OA extends mr {
20849
20849
  A && this.options.autoCenter && c > 0 && (this.scrollContainer.scrollLeft += Math.min(c, 10));
20850
20850
  }
20851
20851
  {
20852
- const c = this.scrollContainer.scrollLeft, d = c / n, f = (c + s) / n;
20853
- this.emit("scroll", d, f, c, c + s);
20852
+ const c = this.scrollContainer.scrollLeft, d = c / n, h = (c + s) / n;
20853
+ this.emit("scroll", d, h, c, c + s);
20854
20854
  }
20855
20855
  }
20856
20856
  renderProgress(e, A) {
@@ -21161,12 +21161,12 @@ class sr extends h9 {
21161
21161
  const i = this.decodedData.getChannelData(o), a = [], l = i.length / A;
21162
21162
  for (let c = 0; c < A; c++) {
21163
21163
  const d = i.slice(Math.floor(c * l), Math.ceil((c + 1) * l));
21164
- let f = 0;
21164
+ let h = 0;
21165
21165
  for (let p = 0; p < d.length; p++) {
21166
- const h = d[p];
21167
- Math.abs(h) > Math.abs(f) && (f = h);
21166
+ const f = d[p];
21167
+ Math.abs(f) > Math.abs(h) && (h = f);
21168
21168
  }
21169
- a.push(Math.round(f * r) / r);
21169
+ a.push(Math.round(h * r) / r);
21170
21170
  }
21171
21171
  s.push(a);
21172
21172
  }
@@ -21436,11 +21436,11 @@ const g9 = ({ src: t }) => {
21436
21436
  }) => {
21437
21437
  ze(), me();
21438
21438
  const a = re(
21439
- (f) => f.chatSettingStore.config
21439
+ (h) => h.chatSettingStore.config
21440
21440
  ), l = () => {
21441
21441
  a != null && a.disableInteractions || n({ visible: !1, x: 0, y: 0 });
21442
- }, c = (f) => {
21443
- navigator.clipboard.writeText(f);
21442
+ }, c = (h) => {
21443
+ navigator.clipboard.writeText(h);
21444
21444
  }, d = () => {
21445
21445
  s();
21446
21446
  };
@@ -21624,7 +21624,7 @@ const g9 = ({ src: t }) => {
21624
21624
  }, 500);
21625
21625
  }, d = () => {
21626
21626
  l.current && (clearTimeout(l.current), l.current = null);
21627
- }, f = (b) => {
21627
+ }, h = (b) => {
21628
21628
  n(Je(he.PROFILE)), n(xl(b));
21629
21629
  }, p = () => {
21630
21630
  if (n(AA({ isEdit: !1 })), !A && t.mainMessage) {
@@ -21636,7 +21636,7 @@ const g9 = ({ src: t }) => {
21636
21636
  return n(
21637
21637
  Vi({ id: t.id, chatJID: t.roomJid })
21638
21638
  );
21639
- }, h = () => {
21639
+ }, f = () => {
21640
21640
  n(
21641
21641
  sn({
21642
21642
  isDeleteModal: !0,
@@ -21665,7 +21665,7 @@ const g9 = ({ src: t }) => {
21665
21665
  !e && /* @__PURE__ */ u(
21666
21666
  G2,
21667
21667
  {
21668
- onClick: () => f(t.user),
21668
+ onClick: () => h(t.user),
21669
21669
  children: (C = t.user) != null && C.profileImage && t.user.profileImage !== "" ? /* @__PURE__ */ u(
21670
21670
  z2,
21671
21671
  {
@@ -21734,13 +21734,13 @@ const g9 = ({ src: t }) => {
21734
21734
  setContextMenu: i,
21735
21735
  contextMenu: o,
21736
21736
  handleReplyMessage: p,
21737
- handleDeleteMessage: h,
21737
+ handleDeleteMessage: f,
21738
21738
  handleEditMessage: g
21739
21739
  }
21740
21740
  )
21741
21741
  ] });
21742
21742
  }), Qh = ({ config: t }) => {
21743
- var h, g, w, C;
21743
+ var f, g, w, C;
21744
21744
  const e = me(), [A, r] = z(""), [n, s] = z(""), [o, i] = z(!1), [a, l] = z({ email: "", password: "" }), c = () => {
21745
21745
  let E = "", v = "";
21746
21746
  return /\S+@\S+\.\S+/.test(A) || (E = "Invalid email format"), n.length < 6 && (v = "Password must be at least 6 characters long"), { emailError: E, passwordError: v };
@@ -21764,7 +21764,7 @@ const g9 = ({ src: t }) => {
21764
21764
  return console.error("Login failed:", v), i(!1), null;
21765
21765
  }
21766
21766
  i(!1);
21767
- }, [A, n, e]), f = async (E) => {
21767
+ }, [A, n, e]), h = async (E) => {
21768
21768
  var B, b, m;
21769
21769
  i(!0), E.preventDefault();
21770
21770
  const v = "google";
@@ -21838,7 +21838,7 @@ const g9 = ({ src: t }) => {
21838
21838
  placeholder: "Email",
21839
21839
  onChange: (E) => r(E.target.value),
21840
21840
  style: {
21841
- border: `1px solid ${t ? (h = t.colors) == null ? void 0 : h.primary : "#3498db"}`
21841
+ border: `1px solid ${t ? (f = t.colors) == null ? void 0 : f.primary : "#3498db"}`
21842
21842
  }
21843
21843
  }
21844
21844
  ),
@@ -21893,7 +21893,7 @@ const g9 = ({ src: t }) => {
21893
21893
  /* @__PURE__ */ u(
21894
21894
  ae,
21895
21895
  {
21896
- onClick: f,
21896
+ onClick: h,
21897
21897
  style: { width: "100%", height: "40px" },
21898
21898
  text: /* @__PURE__ */ u(pe, { children: "Login with Google" }),
21899
21899
  EndIcon: /* @__PURE__ */ u(Pw, { style: { height: "24px" } }),
@@ -22004,9 +22004,9 @@ const g9 = ({ src: t }) => {
22004
22004
  customMessageComponent: A
22005
22005
  }) => {
22006
22006
  var y, O;
22007
- const { client: r } = ze(), n = me(), { loading: s, globalLoading: o, roomsList: i, editAction: a } = DA(), { config: l } = QA(), { sendMessage: c, sendMedia: d } = Lh(), [f, p] = z(!1), [h, g] = z(!1), w = $(
22007
+ const { client: r } = ze(), n = me(), { loading: s, globalLoading: o, roomsList: i, editAction: a } = DA(), { config: l } = QA(), { sendMessage: c, sendMedia: d } = Lh(), [h, p] = z(!1), [f, g] = z(!1), w = $(
22008
22008
  async (N, R, S) => {
22009
- f || (p(!0), r == null || r.getHistoryStanza(N, R, S).then(() => {
22009
+ h || (p(!0), r == null || r.getHistoryStanza(N, R, S).then(() => {
22010
22010
  p(!1);
22011
22011
  }));
22012
22012
  },
@@ -22017,7 +22017,7 @@ const g9 = ({ src: t }) => {
22017
22017
  N,
22018
22018
  t.roomJid,
22019
22019
  !0,
22020
- h,
22020
+ f,
22021
22021
  Uc(t)
22022
22022
  );
22023
22023
  },
@@ -22074,7 +22074,7 @@ const g9 = ({ src: t }) => {
22074
22074
  user: e,
22075
22075
  roomJID: t.roomJid,
22076
22076
  config: l,
22077
- loading: f,
22077
+ loading: h,
22078
22078
  activeMessage: t,
22079
22079
  isReply: !0
22080
22080
  }
@@ -22090,7 +22090,7 @@ const g9 = ({ src: t }) => {
22090
22090
  {
22091
22091
  accentColor: ((y = l == null ? void 0 : l.colors) == null ? void 0 : y.primary) || "#0052CD",
22092
22092
  type: "checkbox",
22093
- checked: h,
22093
+ checked: f,
22094
22094
  onChange: (N) => g(N.target.checked)
22095
22095
  }
22096
22096
  ),
@@ -22149,12 +22149,12 @@ const g9 = ({ src: t }) => {
22149
22149
  {
22150
22150
  ref: c,
22151
22151
  onInput: () => {
22152
- const f = c.current;
22153
- f && (f.style.height = "auto", f.style.height = `${f.scrollHeight}px`);
22152
+ const h = c.current;
22153
+ h && (h.style.height = "auto", h.style.height = `${h.scrollHeight}px`);
22154
22154
  },
22155
22155
  id: "additionalDetails",
22156
22156
  value: o,
22157
- onChange: (f) => i(f.target.value),
22157
+ onChange: (h) => i(h.target.value),
22158
22158
  placeholder: "Additional Details"
22159
22159
  }
22160
22160
  ) }),
@@ -22187,15 +22187,15 @@ const g9 = ({ src: t }) => {
22187
22187
  ge(() => {
22188
22188
  const c = () => {
22189
22189
  !e && i.size !== t.length && (console.log("Processing queue..."), t.forEach(async (p) => {
22190
- i.has(p) || (await r(p, 20), a((h) => new Set(h).add(p)));
22190
+ i.has(p) || (await r(p, 20), a((f) => new Set(f).add(p)));
22191
22191
  }));
22192
22192
  }, d = () => {
22193
22193
  s || (o(!0), l.current = setInterval(c, 1e3));
22194
- }, f = () => {
22194
+ }, h = () => {
22195
22195
  o(!1), l.current && (clearInterval(l.current), l.current = null);
22196
22196
  };
22197
- return !e && !A ? d() : f(), () => {
22198
- f();
22197
+ return !e && !A ? d() : h(), () => {
22198
+ h();
22199
22199
  };
22200
22200
  }, [
22201
22201
  t.length,
@@ -22217,7 +22217,7 @@ const g9 = ({ src: t }) => {
22217
22217
  activeModal: o,
22218
22218
  deleteModal: i,
22219
22219
  client: a
22220
- } = QA(), [l, c] = z(!1), [d, f] = z(!1), [p, h] = z(!1), [g, w] = z(!1);
22220
+ } = QA(), [l, c] = z(!1), [d, h] = z(!1), [p, f] = z(!1), [g, w] = z(!1);
22221
22221
  ge(() => {
22222
22222
  const Y = () => {
22223
22223
  w(window.innerWidth < 768);
@@ -22227,7 +22227,7 @@ const g9 = ({ src: t }) => {
22227
22227
  };
22228
22228
  }, [window.innerWidth]);
22229
22229
  const C = (Y) => {
22230
- h(Y);
22230
+ f(Y);
22231
22231
  }, E = me(), { client: v, initializeClient: B, setClient: b } = ze(), { rooms: m, activeRoomJID: y } = re(
22232
22232
  (Y) => Y.rooms
22233
22233
  ), O = Ee(() => {
@@ -22256,7 +22256,7 @@ const g9 = ({ src: t }) => {
22256
22256
  var ce, F, T, k;
22257
22257
  E(Dp(r));
22258
22258
  try {
22259
- !s.defaultWallet || (s == null ? void 0 : s.defaultWallet.walletAddress) === "" ? (f(!0), console.log("Error, no user")) : !v && !a ? (f(!1), console.log("No client, so initing one"), await B(
22259
+ !s.defaultWallet || (s == null ? void 0 : s.defaultWallet.walletAddress) === "" ? (h(!0), console.log("Error, no user")) : !v && !a ? (h(!1), console.log("No client, so initing one"), await B(
22260
22260
  (ce = s.defaultWallet) == null ? void 0 : ce.walletAddress,
22261
22261
  s.xmppPassword
22262
22262
  ).then((H) => {
@@ -22271,7 +22271,7 @@ const g9 = ({ src: t }) => {
22271
22271
  v.getChatsPrivateStoreRequestStanza(), v.setVCardStanza(`${s.firstName} ${s.lastName}`);
22272
22272
  }), v.getChatsPrivateStoreRequestStanza(), c(!0), (k = r == null ? void 0 : r.refreshTokens) != null && k.enabled && $r()), E(Jt({ loading: !1 }));
22273
22273
  } catch (H) {
22274
- f(!0), c(!1), E(Jt({ loading: !1 })), console.log(H);
22274
+ h(!0), c(!1), E(Jt({ loading: !1 })), console.log(H);
22275
22275
  }
22276
22276
  })();
22277
22277
  }, [s.xmppPassword, s.defaultWallet]), ge(() => {
@@ -22393,7 +22393,7 @@ const g9 = ({ src: t }) => {
22393
22393
  }
22394
22394
  }, []), s = me();
22395
22395
  return ge(() => {
22396
- var i, a, l, c, d, f, p, h, g, w;
22396
+ var i, a, l, c, d, h, p, f, g, w;
22397
22397
  if ((a = (i = t == null ? void 0 : t.config) == null ? void 0 : i.userLogin) != null && a.enabled && ((c = (l = t == null ? void 0 : t.config) == null ? void 0 : l.userLogin) != null && c.user)) {
22398
22398
  console.log("hehrehre"), s(Pt(t.config.userLogin.user));
22399
22399
  return;
@@ -22401,14 +22401,14 @@ const g9 = ({ src: t }) => {
22401
22401
  const o = WA(
22402
22402
  "@ethora/chat-component-user"
22403
22403
  ).get();
22404
- return o && (console.log("Login data storedUser", o), s(Pt(o))), (f = (d = t.config) == null ? void 0 : d.jwtLogin) != null && f.enabled && (async () => {
22404
+ return o && (console.log("Login data storedUser", o), s(Pt(o))), (h = (d = t.config) == null ? void 0 : d.jwtLogin) != null && h.enabled && (async () => {
22405
22405
  try {
22406
22406
  const E = await I7(t.config.jwtLogin.token);
22407
22407
  E && s(Pt(E));
22408
22408
  } catch (E) {
22409
22409
  console.log("error with jwt login", E), A(!0), console.log("Error, no user");
22410
22410
  }
22411
- })(), !((p = t.config) != null && p.googleLogin) && !((h = t.config) != null && h.defaultLogin) && !((g = t.config) != null && g.jwtLogin) && !((w = t.config) != null && w.userLogin) && r.xmppUsername === "" && (async () => {
22411
+ })(), !((p = t.config) != null && p.googleLogin) && !((f = t.config) != null && f.defaultLogin) && !((g = t.config) != null && g.jwtLogin) && !((w = t.config) != null && w.userLogin) && r.xmppUsername === "" && (async () => {
22412
22412
  try {
22413
22413
  const E = await n();
22414
22414
  E && s(Pt(E));