@ethora/chat-component 25.7.13 → 25.7.14
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 +745 -741
- package/dist/main.js.map +1 -1
- package/dist/types/models/config.model.d.ts +3 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as h, jsxs as N, Fragment as ve } from "react/jsx-runtime";
|
|
2
2
|
import * as qe from "react";
|
|
3
|
-
import Me, { createContext as v1, useContext as
|
|
3
|
+
import Me, { createContext as v1, useContext as $A, useState as z, useRef as ce, useEffect as Ae, useDebugValue as nd, createElement as Ig, Fragment as ao, useMemo as Ce, useCallback as ee, forwardRef as Bg, PureComponent as Dg, useSyncExternalStore as Ng } from "react";
|
|
4
4
|
function Ui(n) {
|
|
5
5
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
6
6
|
}
|
|
@@ -28,30 +28,30 @@ function Sg(n) {
|
|
|
28
28
|
});
|
|
29
29
|
}), i;
|
|
30
30
|
}
|
|
31
|
-
var it = {}, tt = {}, Tn = {},
|
|
32
|
-
function
|
|
33
|
-
return id || (id = 1,
|
|
31
|
+
var it = {}, tt = {}, Tn = {}, Ao, id;
|
|
32
|
+
function ef() {
|
|
33
|
+
return id || (id = 1, Ao = class extends Error {
|
|
34
34
|
constructor(e) {
|
|
35
35
|
super(e), this.name = "TimeoutError";
|
|
36
36
|
}
|
|
37
|
-
}),
|
|
37
|
+
}), Ao;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
39
|
+
var fo, td;
|
|
40
40
|
function b1() {
|
|
41
|
-
return td || (td = 1,
|
|
41
|
+
return td || (td = 1, fo = function(e) {
|
|
42
42
|
let i;
|
|
43
43
|
const t = new Promise((r) => {
|
|
44
44
|
i = setTimeout(r, e);
|
|
45
45
|
});
|
|
46
46
|
return t.timeout = i, t;
|
|
47
|
-
}),
|
|
47
|
+
}), fo;
|
|
48
48
|
}
|
|
49
|
-
var
|
|
49
|
+
var co, rd;
|
|
50
50
|
function Tg() {
|
|
51
|
-
if (rd) return
|
|
51
|
+
if (rd) return co;
|
|
52
52
|
rd = 1;
|
|
53
|
-
const n =
|
|
54
|
-
return
|
|
53
|
+
const n = ef(), e = b1();
|
|
54
|
+
return co = function(t, r) {
|
|
55
55
|
const s = e(r);
|
|
56
56
|
function o() {
|
|
57
57
|
clearTimeout(s.timeout);
|
|
@@ -62,14 +62,14 @@ function Tg() {
|
|
|
62
62
|
throw new n();
|
|
63
63
|
})
|
|
64
64
|
]);
|
|
65
|
-
},
|
|
65
|
+
}, co;
|
|
66
66
|
}
|
|
67
|
-
var
|
|
67
|
+
var lo, sd;
|
|
68
68
|
function Mg() {
|
|
69
|
-
if (sd) return
|
|
69
|
+
if (sd) return lo;
|
|
70
70
|
sd = 1;
|
|
71
|
-
const n =
|
|
72
|
-
return
|
|
71
|
+
const n = ef();
|
|
72
|
+
return lo = function(i, t, r = "error", s) {
|
|
73
73
|
return new Promise((o, a) => {
|
|
74
74
|
let A;
|
|
75
75
|
const f = () => {
|
|
@@ -85,7 +85,7 @@ function Mg() {
|
|
|
85
85
|
f(), a(new n());
|
|
86
86
|
}, s));
|
|
87
87
|
});
|
|
88
|
-
},
|
|
88
|
+
}, lo;
|
|
89
89
|
}
|
|
90
90
|
var Jt = { exports: {} }, od;
|
|
91
91
|
function Qt() {
|
|
@@ -299,19 +299,19 @@ function Qt() {
|
|
|
299
299
|
}
|
|
300
300
|
return Jt.exports;
|
|
301
301
|
}
|
|
302
|
-
var
|
|
302
|
+
var uo, ad;
|
|
303
303
|
function Rg() {
|
|
304
|
-
return ad || (ad = 1,
|
|
304
|
+
return ad || (ad = 1, uo = function() {
|
|
305
305
|
this.promise = new Promise((e, i) => {
|
|
306
306
|
this.resolve = e, this.reject = i;
|
|
307
307
|
});
|
|
308
|
-
}),
|
|
308
|
+
}), uo;
|
|
309
309
|
}
|
|
310
310
|
var Ad;
|
|
311
311
|
function Et() {
|
|
312
312
|
if (Ad) return Tn;
|
|
313
313
|
Ad = 1;
|
|
314
|
-
const n = Tg(), e = b1(), i =
|
|
314
|
+
const n = Tg(), e = b1(), i = ef(), t = Mg(), r = Qt(), s = Rg();
|
|
315
315
|
return Tn.EventEmitter = r, Tn.timeout = n, Tn.delay = e, Tn.TimeoutError = i, Tn.promise = t, Tn.Deferred = s, Tn;
|
|
316
316
|
}
|
|
317
317
|
var an = { exports: {} }, rt = {}, fd;
|
|
@@ -324,9 +324,9 @@ function w1() {
|
|
|
324
324
|
return e === null ? null : e.replaceAll(String.raw`\20`, " ").replaceAll(String.raw`\22`, '"').replaceAll(String.raw`\26`, "&").replaceAll(String.raw`\27`, "'").replaceAll(String.raw`\2f`, "/").replaceAll(String.raw`\3a`, ":").replaceAll(String.raw`\3c`, "<").replaceAll(String.raw`\3e`, ">").replaceAll(String.raw`\40`, "@").replaceAll(String.raw`\5c`, "\\");
|
|
325
325
|
}), rt;
|
|
326
326
|
}
|
|
327
|
-
var
|
|
327
|
+
var ho, dd;
|
|
328
328
|
function y1() {
|
|
329
|
-
if (dd) return
|
|
329
|
+
if (dd) return ho;
|
|
330
330
|
dd = 1;
|
|
331
331
|
const n = w1();
|
|
332
332
|
class e {
|
|
@@ -392,20 +392,20 @@ function y1() {
|
|
|
392
392
|
}), Object.defineProperty(e.prototype, "resource", {
|
|
393
393
|
get: e.prototype.getResource,
|
|
394
394
|
set: e.prototype.setResource
|
|
395
|
-
}),
|
|
395
|
+
}), ho = e, ho;
|
|
396
396
|
}
|
|
397
|
-
var
|
|
397
|
+
var mo, cd;
|
|
398
398
|
function Pg() {
|
|
399
|
-
if (cd) return
|
|
399
|
+
if (cd) return mo;
|
|
400
400
|
cd = 1;
|
|
401
401
|
const n = y1();
|
|
402
|
-
return
|
|
402
|
+
return mo = function(i) {
|
|
403
403
|
let t, r;
|
|
404
404
|
const s = i.indexOf("/");
|
|
405
405
|
s !== -1 && (r = i.slice(s + 1), i = i.slice(0, s));
|
|
406
406
|
const o = i.indexOf("@");
|
|
407
407
|
return o !== -1 && (t = i.slice(0, o), i = i.slice(o + 1)), new n(t, i, r);
|
|
408
|
-
},
|
|
408
|
+
}, mo;
|
|
409
409
|
}
|
|
410
410
|
var ld;
|
|
411
411
|
function Bs() {
|
|
@@ -419,8 +419,8 @@ function Bs() {
|
|
|
419
419
|
return s.equals(o);
|
|
420
420
|
}, an.exports.detectEscape = e.detect, an.exports.escapeLocal = e.escape, an.exports.unescapeLocal = e.unescape, an.exports.parse = i, an.exports;
|
|
421
421
|
}
|
|
422
|
-
var
|
|
423
|
-
function
|
|
422
|
+
var po = { exports: {} }, bi = {}, ud;
|
|
423
|
+
function nf() {
|
|
424
424
|
if (ud) return bi;
|
|
425
425
|
ud = 1;
|
|
426
426
|
const n = {
|
|
@@ -468,11 +468,11 @@ function ef() {
|
|
|
468
468
|
}
|
|
469
469
|
return bi.escapeXML = r, bi.escapeXMLText = o, bi.unescapeXML = s, bi.unescapeXMLText = a, bi;
|
|
470
470
|
}
|
|
471
|
-
var
|
|
472
|
-
function
|
|
473
|
-
if (hd) return
|
|
471
|
+
var go, hd;
|
|
472
|
+
function tf() {
|
|
473
|
+
if (hd) return go;
|
|
474
474
|
hd = 1;
|
|
475
|
-
var n =
|
|
475
|
+
var n = nf();
|
|
476
476
|
class e {
|
|
477
477
|
constructor(t, r) {
|
|
478
478
|
this.name = t, this.parent = null, this.children = [], this.attrs = {}, this.setAttrs(r);
|
|
@@ -661,13 +661,13 @@ function nf() {
|
|
|
661
661
|
this.children.length === 0 ? t("/>") : this._addChildren(t);
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
|
-
return e.prototype.tree = e.prototype.root,
|
|
664
|
+
return e.prototype.tree = e.prototype.root, go = e, go;
|
|
665
665
|
}
|
|
666
|
-
var
|
|
666
|
+
var vo, md;
|
|
667
667
|
function Qg() {
|
|
668
|
-
if (md) return
|
|
668
|
+
if (md) return vo;
|
|
669
669
|
md = 1;
|
|
670
|
-
var n =
|
|
670
|
+
var n = tf();
|
|
671
671
|
function e(t, r) {
|
|
672
672
|
if (Array.isArray(r)) {
|
|
673
673
|
for (const s of r) e(t, s);
|
|
@@ -686,13 +686,13 @@ function Qg() {
|
|
|
686
686
|
e(o, a);
|
|
687
687
|
return o;
|
|
688
688
|
}
|
|
689
|
-
return
|
|
689
|
+
return vo = i, vo;
|
|
690
690
|
}
|
|
691
|
-
var
|
|
691
|
+
var bo, pd;
|
|
692
692
|
function Og() {
|
|
693
|
-
if (pd) return
|
|
693
|
+
if (pd) return bo;
|
|
694
694
|
pd = 1;
|
|
695
|
-
var n = Qt(), e =
|
|
695
|
+
var n = Qt(), e = nf();
|
|
696
696
|
const i = 0, t = 1, r = 2, s = 3, o = 4, a = 5, A = 6, f = 7, d = 8, l = 9, c = 10;
|
|
697
697
|
class u extends n.EventEmitter {
|
|
698
698
|
constructor() {
|
|
@@ -788,21 +788,21 @@ function Og() {
|
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
|
-
return
|
|
791
|
+
return bo = u, bo;
|
|
792
792
|
}
|
|
793
|
-
var
|
|
793
|
+
var wo, gd;
|
|
794
794
|
function k1() {
|
|
795
|
-
return gd || (gd = 1,
|
|
795
|
+
return gd || (gd = 1, wo = class extends Error {
|
|
796
796
|
constructor(...e) {
|
|
797
797
|
super(...e), this.name = "XMLError";
|
|
798
798
|
}
|
|
799
|
-
}),
|
|
799
|
+
}), wo;
|
|
800
800
|
}
|
|
801
|
-
var
|
|
801
|
+
var yo, vd;
|
|
802
802
|
function C1() {
|
|
803
|
-
if (vd) return
|
|
803
|
+
if (vd) return yo;
|
|
804
804
|
vd = 1;
|
|
805
|
-
const n = Og(), e =
|
|
805
|
+
const n = Og(), e = tf(), i = Qt(), t = k1();
|
|
806
806
|
class r extends i {
|
|
807
807
|
constructor() {
|
|
808
808
|
super();
|
|
@@ -844,17 +844,17 @@ function C1() {
|
|
|
844
844
|
o && this.parser.write(o);
|
|
845
845
|
}
|
|
846
846
|
}
|
|
847
|
-
return r.XMLError = t,
|
|
847
|
+
return r.XMLError = t, yo = r, yo;
|
|
848
848
|
}
|
|
849
849
|
var bd;
|
|
850
850
|
function gn() {
|
|
851
851
|
return bd || (bd = 1, function(n) {
|
|
852
|
-
const e =
|
|
852
|
+
const e = tf(), i = Qg(), t = C1(), {
|
|
853
853
|
escapeXML: r,
|
|
854
854
|
unescapeXML: s,
|
|
855
855
|
escapeXMLText: o,
|
|
856
856
|
unescapeXMLText: a
|
|
857
|
-
} =
|
|
857
|
+
} = nf(), A = k1();
|
|
858
858
|
function f(...d) {
|
|
859
859
|
return i(...d);
|
|
860
860
|
}
|
|
@@ -868,11 +868,11 @@ function gn() {
|
|
|
868
868
|
unescapeXMLText: a,
|
|
869
869
|
XMLError: A
|
|
870
870
|
});
|
|
871
|
-
}(
|
|
871
|
+
}(po)), po.exports;
|
|
872
872
|
}
|
|
873
|
-
var
|
|
874
|
-
function
|
|
875
|
-
if (wd) return
|
|
873
|
+
var ko, wd;
|
|
874
|
+
function rf() {
|
|
875
|
+
if (wd) return ko;
|
|
876
876
|
wd = 1;
|
|
877
877
|
class n extends Error {
|
|
878
878
|
constructor(i, t, r) {
|
|
@@ -890,21 +890,21 @@ function tf() {
|
|
|
890
890
|
return A.element = i, A;
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
return
|
|
893
|
+
return ko = n, ko;
|
|
894
894
|
}
|
|
895
|
-
var
|
|
895
|
+
var Co, yd;
|
|
896
896
|
function Lg() {
|
|
897
|
-
if (yd) return
|
|
897
|
+
if (yd) return Co;
|
|
898
898
|
yd = 1;
|
|
899
|
-
const n =
|
|
899
|
+
const n = rf();
|
|
900
900
|
class e extends n {
|
|
901
901
|
constructor(...t) {
|
|
902
902
|
super(...t), this.name = "StreamError";
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
return
|
|
905
|
+
return Co = e, Co;
|
|
906
906
|
}
|
|
907
|
-
var
|
|
907
|
+
var xo = { exports: {} }, kd;
|
|
908
908
|
function Fg() {
|
|
909
909
|
return kd || (kd = 1, function(n) {
|
|
910
910
|
function e(r) {
|
|
@@ -919,11 +919,11 @@ function Fg() {
|
|
|
919
919
|
return r.includes("://") ? e(r) : i(r);
|
|
920
920
|
}
|
|
921
921
|
Object.assign(n.exports, { parseURI: e, parseHost: i, parseService: t });
|
|
922
|
-
}(
|
|
922
|
+
}(xo)), xo.exports;
|
|
923
923
|
}
|
|
924
|
-
var
|
|
924
|
+
var Eo, Cd;
|
|
925
925
|
function x1() {
|
|
926
|
-
if (Cd) return
|
|
926
|
+
if (Cd) return Eo;
|
|
927
927
|
Cd = 1;
|
|
928
928
|
const { EventEmitter: n, promise: e } = Et(), i = Bs(), t = gn(), r = Lg(), { parseHost: s, parseService: o } = Fg(), a = "urn:ietf:params:xml:ns:xmpp-streams", A = "http://etherx.jabber.org/streams";
|
|
929
929
|
class f extends n {
|
|
@@ -1144,11 +1144,11 @@ function x1() {
|
|
|
1144
1144
|
socketParameters() {
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
|
-
return f.prototype.NS = "", f.prototype.Socket = null, f.prototype.Parser = null,
|
|
1147
|
+
return f.prototype.NS = "", f.prototype.Socket = null, f.prototype.Parser = null, Eo = f, Eo;
|
|
1148
1148
|
}
|
|
1149
|
-
var
|
|
1149
|
+
var Io, xd;
|
|
1150
1150
|
function jg() {
|
|
1151
|
-
if (xd) return
|
|
1151
|
+
if (xd) return Io;
|
|
1152
1152
|
xd = 1;
|
|
1153
1153
|
const n = x1();
|
|
1154
1154
|
class e extends n {
|
|
@@ -1192,7 +1192,7 @@ function jg() {
|
|
|
1192
1192
|
return this.Transport.prototype.footerElement(...t);
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
|
-
return e.prototype.NS = "jabber:client",
|
|
1195
|
+
return e.prototype.NS = "jabber:client", Io = e, Io;
|
|
1196
1196
|
}
|
|
1197
1197
|
var Ed;
|
|
1198
1198
|
function Wg() {
|
|
@@ -1201,15 +1201,15 @@ function Wg() {
|
|
|
1201
1201
|
const n = jg(), e = gn(), i = Bs();
|
|
1202
1202
|
return tt.Client = n, tt.xml = e, tt.jid = i, tt;
|
|
1203
1203
|
}
|
|
1204
|
-
var
|
|
1204
|
+
var Bo, Id;
|
|
1205
1205
|
function Gg() {
|
|
1206
|
-
return Id || (Id = 1,
|
|
1206
|
+
return Id || (Id = 1, Bo = function(e) {
|
|
1207
1207
|
return (e.split("://")[1] || e).split(":")[0].split("/")[0];
|
|
1208
|
-
}),
|
|
1208
|
+
}), Bo;
|
|
1209
1209
|
}
|
|
1210
|
-
var
|
|
1210
|
+
var Do, Bd;
|
|
1211
1211
|
function Yg() {
|
|
1212
|
-
if (Bd) return
|
|
1212
|
+
if (Bd) return Do;
|
|
1213
1213
|
Bd = 1;
|
|
1214
1214
|
const { EventEmitter: n } = Et();
|
|
1215
1215
|
class e extends n {
|
|
@@ -1243,18 +1243,18 @@ function Yg() {
|
|
|
1243
1243
|
t.removeListener("disconnect", r.disconnect), clearTimeout(s);
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
|
-
return
|
|
1246
|
+
return Do = function({ entity: t }) {
|
|
1247
1247
|
const r = new e(t);
|
|
1248
1248
|
return r.start(), r;
|
|
1249
|
-
},
|
|
1249
|
+
}, Do;
|
|
1250
1250
|
}
|
|
1251
1251
|
const _g = {}, qg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1252
1252
|
__proto__: null,
|
|
1253
1253
|
default: _g
|
|
1254
1254
|
}, Symbol.toStringTag, { value: "Module" })), Si = /* @__PURE__ */ Sg(qg);
|
|
1255
|
-
var
|
|
1255
|
+
var No, Dd;
|
|
1256
1256
|
function Hg() {
|
|
1257
|
-
if (Dd) return
|
|
1257
|
+
if (Dd) return No;
|
|
1258
1258
|
Dd = 1;
|
|
1259
1259
|
const n = Si, e = globalThis.WebSocket || n, i = Qt(), t = "ECONNERROR";
|
|
1260
1260
|
class r extends i {
|
|
@@ -1291,14 +1291,14 @@ function Hg() {
|
|
|
1291
1291
|
e === n ? this.socket.send(o, a) : (this.socket.send(o), a());
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
|
-
return
|
|
1294
|
+
return No = r, No;
|
|
1295
1295
|
}
|
|
1296
|
-
var
|
|
1296
|
+
var So, Nd;
|
|
1297
1297
|
function Ug() {
|
|
1298
|
-
if (Nd) return
|
|
1298
|
+
if (Nd) return So;
|
|
1299
1299
|
Nd = 1;
|
|
1300
1300
|
const { Parser: n, Element: e, XMLError: i } = gn();
|
|
1301
|
-
return
|
|
1301
|
+
return So = class extends n {
|
|
1302
1302
|
onStartElement(r, s) {
|
|
1303
1303
|
const o = new e(r, s), { cursor: a } = this;
|
|
1304
1304
|
a && a.append(o), this.cursor = o;
|
|
@@ -1315,11 +1315,11 @@ function Ug() {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
s.is("open", "urn:ietf:params:xml:ns:xmpp-framing") ? this.emit("start", s) : s.is("close", "urn:ietf:params:xml:ns:xmpp-framing") ? this.emit("end", s) : this.emit("element", s), this.cursor = null;
|
|
1317
1317
|
}
|
|
1318
|
-
},
|
|
1318
|
+
}, So;
|
|
1319
1319
|
}
|
|
1320
|
-
var
|
|
1320
|
+
var To, Sd;
|
|
1321
1321
|
function zg() {
|
|
1322
|
-
if (Sd) return
|
|
1322
|
+
if (Sd) return To;
|
|
1323
1323
|
Sd = 1;
|
|
1324
1324
|
const n = Hg(), e = x1(), i = gn(), t = Ug(), r = "urn:ietf:params:xml:ns:xmpp-framing";
|
|
1325
1325
|
class s extends e {
|
|
@@ -1345,21 +1345,21 @@ function zg() {
|
|
|
1345
1345
|
return /^wss?:\/\//.test(a) ? a : void 0;
|
|
1346
1346
|
}
|
|
1347
1347
|
}
|
|
1348
|
-
return s.prototype.Socket = n, s.prototype.NS = "jabber:client", s.prototype.Parser = t,
|
|
1348
|
+
return s.prototype.Socket = n, s.prototype.NS = "jabber:client", s.prototype.Parser = t, To = s, To;
|
|
1349
1349
|
}
|
|
1350
|
-
var
|
|
1350
|
+
var Mo, Td;
|
|
1351
1351
|
function Vg() {
|
|
1352
|
-
if (Td) return
|
|
1352
|
+
if (Td) return Mo;
|
|
1353
1353
|
Td = 1;
|
|
1354
1354
|
const n = zg();
|
|
1355
|
-
return
|
|
1355
|
+
return Mo = function({ entity: i }) {
|
|
1356
1356
|
i.transports.push(n);
|
|
1357
|
-
},
|
|
1357
|
+
}, Mo;
|
|
1358
1358
|
}
|
|
1359
|
-
var
|
|
1359
|
+
var Ro, Md;
|
|
1360
1360
|
function Jg() {
|
|
1361
|
-
if (Md) return
|
|
1362
|
-
Md = 1,
|
|
1361
|
+
if (Md) return Ro;
|
|
1362
|
+
Md = 1, Ro = n;
|
|
1363
1363
|
function n(e) {
|
|
1364
1364
|
if (!Array.isArray(e)) throw new TypeError("Middleware stack must be an array!");
|
|
1365
1365
|
for (const i of e)
|
|
@@ -1380,47 +1380,47 @@ function Jg() {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
};
|
|
1382
1382
|
}
|
|
1383
|
-
return
|
|
1383
|
+
return Ro;
|
|
1384
1384
|
}
|
|
1385
|
-
var
|
|
1385
|
+
var Po, Rd;
|
|
1386
1386
|
function E1() {
|
|
1387
|
-
return Rd || (Rd = 1,
|
|
1387
|
+
return Rd || (Rd = 1, Po = class {
|
|
1388
1388
|
constructor(e, i) {
|
|
1389
1389
|
this.stanza = i, this.entity = e;
|
|
1390
1390
|
const { name: t, attrs: r } = i, { type: s, id: o } = r;
|
|
1391
1391
|
this.name = t, this.id = o || "", t === "message" ? this.type = s || "normal" : t === "presence" ? this.type = s || "available" : this.type = s || "", this.from = null, this.to = null, this.local = "", this.domain = "", this.resource = "";
|
|
1392
1392
|
}
|
|
1393
|
-
}),
|
|
1393
|
+
}), Po;
|
|
1394
1394
|
}
|
|
1395
|
-
var
|
|
1395
|
+
var Qo, Pd;
|
|
1396
1396
|
function Xg() {
|
|
1397
|
-
if (Pd) return
|
|
1397
|
+
if (Pd) return Qo;
|
|
1398
1398
|
Pd = 1;
|
|
1399
1399
|
const n = E1(), e = Bs();
|
|
1400
|
-
return
|
|
1400
|
+
return Qo = class extends n {
|
|
1401
1401
|
constructor(t, r) {
|
|
1402
1402
|
super(t, r);
|
|
1403
1403
|
const { jid: s, domain: o } = t, a = r.attrs.to || s && s.toString(), A = r.attrs.from || o;
|
|
1404
1404
|
a && (this.to = new e(a)), A && (this.from = new e(A), this.local = this.from.local, this.domain = this.from.domain, this.resource = this.from.resource);
|
|
1405
1405
|
}
|
|
1406
|
-
},
|
|
1406
|
+
}, Qo;
|
|
1407
1407
|
}
|
|
1408
|
-
var
|
|
1408
|
+
var Oo, Qd;
|
|
1409
1409
|
function Kg() {
|
|
1410
|
-
if (Qd) return
|
|
1410
|
+
if (Qd) return Oo;
|
|
1411
1411
|
Qd = 1;
|
|
1412
1412
|
const n = E1(), e = Bs();
|
|
1413
|
-
return
|
|
1413
|
+
return Oo = class extends n {
|
|
1414
1414
|
constructor(t, r) {
|
|
1415
1415
|
super(t, r);
|
|
1416
1416
|
const { jid: s, domain: o } = t, a = r.attrs.from || s && s.toString(), A = r.attrs.to || o;
|
|
1417
1417
|
a && (this.from = new e(a)), A && (this.to = new e(A), this.local = this.to.local, this.domain = this.to.domain, this.resource = this.to.resource);
|
|
1418
1418
|
}
|
|
1419
|
-
},
|
|
1419
|
+
}, Oo;
|
|
1420
1420
|
}
|
|
1421
|
-
var
|
|
1421
|
+
var Lo, Od;
|
|
1422
1422
|
function Zg() {
|
|
1423
|
-
if (Od) return
|
|
1423
|
+
if (Od) return Lo;
|
|
1424
1424
|
Od = 1;
|
|
1425
1425
|
const n = Jg(), e = Xg(), i = Kg();
|
|
1426
1426
|
function t(s, o, a) {
|
|
@@ -1434,7 +1434,7 @@ function Zg() {
|
|
|
1434
1434
|
a().then((A) => A && s.send(A)).catch((A) => s.emit("error", A));
|
|
1435
1435
|
};
|
|
1436
1436
|
}
|
|
1437
|
-
return
|
|
1437
|
+
return Lo = function({ entity: o }) {
|
|
1438
1438
|
const a = [r(o)], A = [], f = t(o, a, e), d = t(o, A, i);
|
|
1439
1439
|
return o.on("element", f), o.hookOutgoing = d, {
|
|
1440
1440
|
use(l) {
|
|
@@ -1444,24 +1444,24 @@ function Zg() {
|
|
|
1444
1444
|
return A.push(l), l;
|
|
1445
1445
|
}
|
|
1446
1446
|
};
|
|
1447
|
-
},
|
|
1447
|
+
}, Lo;
|
|
1448
1448
|
}
|
|
1449
|
-
var
|
|
1449
|
+
var Fo, Ld;
|
|
1450
1450
|
function $g() {
|
|
1451
|
-
return Ld || (Ld = 1,
|
|
1451
|
+
return Ld || (Ld = 1, Fo = function() {
|
|
1452
1452
|
return async ({ stanza: e, entity: i }, t) => {
|
|
1453
1453
|
if (!e.is("features", "http://etherx.jabber.org/streams"))
|
|
1454
1454
|
return t();
|
|
1455
1455
|
!await t() && i.jid && i._status("online", i.jid);
|
|
1456
1456
|
};
|
|
1457
|
-
}),
|
|
1457
|
+
}), Fo;
|
|
1458
1458
|
}
|
|
1459
|
-
var
|
|
1459
|
+
var jo, Fd;
|
|
1460
1460
|
function e0() {
|
|
1461
|
-
if (Fd) return
|
|
1461
|
+
if (Fd) return jo;
|
|
1462
1462
|
Fd = 1;
|
|
1463
1463
|
const n = $g();
|
|
1464
|
-
return
|
|
1464
|
+
return jo = function({ middleware: i }) {
|
|
1465
1465
|
i.use(n());
|
|
1466
1466
|
function t(r, s, o) {
|
|
1467
1467
|
return i.use((a, A) => {
|
|
@@ -1475,22 +1475,22 @@ function e0() {
|
|
|
1475
1475
|
return {
|
|
1476
1476
|
use: t
|
|
1477
1477
|
};
|
|
1478
|
-
},
|
|
1478
|
+
}, jo;
|
|
1479
1479
|
}
|
|
1480
|
-
var
|
|
1480
|
+
var Wo, jd;
|
|
1481
1481
|
function n0() {
|
|
1482
|
-
return jd || (jd = 1,
|
|
1482
|
+
return jd || (jd = 1, Wo = function() {
|
|
1483
1483
|
let e;
|
|
1484
1484
|
for (; !e; )
|
|
1485
1485
|
e = Math.random().toString(36).slice(2, 12);
|
|
1486
1486
|
return e;
|
|
1487
|
-
}),
|
|
1487
|
+
}), Wo;
|
|
1488
1488
|
}
|
|
1489
|
-
var
|
|
1489
|
+
var Go, Wd;
|
|
1490
1490
|
function i0() {
|
|
1491
|
-
if (Wd) return
|
|
1491
|
+
if (Wd) return Go;
|
|
1492
1492
|
Wd = 1;
|
|
1493
|
-
const n =
|
|
1493
|
+
const n = rf();
|
|
1494
1494
|
class e extends n {
|
|
1495
1495
|
constructor(t, r, s, o) {
|
|
1496
1496
|
super(t, r, s), this.type = o, this.name = "StanzaError";
|
|
@@ -1500,11 +1500,11 @@ function i0() {
|
|
|
1500
1500
|
return r.type = t.attrs.type, r;
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
return
|
|
1503
|
+
return Go = e, Go;
|
|
1504
1504
|
}
|
|
1505
|
-
var
|
|
1505
|
+
var Yo, Gd;
|
|
1506
1506
|
function t0() {
|
|
1507
|
-
if (Gd) return
|
|
1507
|
+
if (Gd) return Yo;
|
|
1508
1508
|
Gd = 1;
|
|
1509
1509
|
const n = n0(), e = i0(), { Deferred: i } = Et(), t = Et().timeout, r = gn();
|
|
1510
1510
|
function s({ name: a, type: A }) {
|
|
@@ -1551,14 +1551,14 @@ function t0() {
|
|
|
1551
1551
|
return this._childRequest("set", ...A);
|
|
1552
1552
|
}
|
|
1553
1553
|
}
|
|
1554
|
-
return
|
|
1554
|
+
return Yo = function(...A) {
|
|
1555
1555
|
const f = new o(...A);
|
|
1556
1556
|
return f.start(), f;
|
|
1557
|
-
},
|
|
1557
|
+
}, Yo;
|
|
1558
1558
|
}
|
|
1559
|
-
var
|
|
1559
|
+
var _o, Yd;
|
|
1560
1560
|
function r0() {
|
|
1561
|
-
if (Yd) return
|
|
1561
|
+
if (Yd) return _o;
|
|
1562
1562
|
Yd = 1;
|
|
1563
1563
|
const n = gn(), e = "urn:ietf:params:xml:ns:xmpp-stanzas";
|
|
1564
1564
|
function i({ name: d, type: l }) {
|
|
@@ -1607,7 +1607,7 @@ function r0() {
|
|
|
1607
1607
|
function f(d, l, c, u) {
|
|
1608
1608
|
return (m, p) => m.type !== d | !m.element || !m.element.is(c, l) ? p() : u(m, p);
|
|
1609
1609
|
}
|
|
1610
|
-
return
|
|
1610
|
+
return _o = function({ middleware: l, entity: c }) {
|
|
1611
1611
|
return l.use(A(c)), {
|
|
1612
1612
|
get(u, m, p) {
|
|
1613
1613
|
l.use(f("get", u, m, p));
|
|
@@ -1616,14 +1616,14 @@ function r0() {
|
|
|
1616
1616
|
l.use(f("set", u, m, p));
|
|
1617
1617
|
}
|
|
1618
1618
|
};
|
|
1619
|
-
},
|
|
1619
|
+
}, _o;
|
|
1620
1620
|
}
|
|
1621
|
-
var st = { exports: {} },
|
|
1621
|
+
var st = { exports: {} }, qo = {}, Ho, _d;
|
|
1622
1622
|
function s0() {
|
|
1623
|
-
if (_d) return
|
|
1623
|
+
if (_d) return Ho;
|
|
1624
1624
|
_d = 1;
|
|
1625
1625
|
const n = C1();
|
|
1626
|
-
return
|
|
1626
|
+
return Ho = function(i) {
|
|
1627
1627
|
const t = new n();
|
|
1628
1628
|
let r = null, s = null;
|
|
1629
1629
|
if (t.on("start", (o) => {
|
|
@@ -1635,26 +1635,26 @@ function s0() {
|
|
|
1635
1635
|
}), t.write(i), t.end(), s)
|
|
1636
1636
|
throw s;
|
|
1637
1637
|
return r;
|
|
1638
|
-
},
|
|
1638
|
+
}, Ho;
|
|
1639
1639
|
}
|
|
1640
|
-
var
|
|
1640
|
+
var Uo = {}, qd;
|
|
1641
1641
|
function o0() {
|
|
1642
|
-
if (qd) return
|
|
1642
|
+
if (qd) return Uo;
|
|
1643
1643
|
qd = 1;
|
|
1644
1644
|
function n(e) {
|
|
1645
1645
|
return e.startsWith("https") || e.startsWith("wss");
|
|
1646
1646
|
}
|
|
1647
|
-
return
|
|
1647
|
+
return Uo.compare = function(i, t) {
|
|
1648
1648
|
let r;
|
|
1649
1649
|
if (n(i.uri) && !n(t.uri) ? r = -1 : !n(i.uri) && n(t.uri) ? r = 1 : r = 0, r !== 0)
|
|
1650
1650
|
return r;
|
|
1651
1651
|
let s;
|
|
1652
1652
|
return i.method === t.method ? s = 0 : i.method === "websocket" ? s = -1 : t.method === "websocket" ? s = 1 : i.method === "xbosh" ? s = -1 : t.method === "xbosh" ? s = 1 : i.method === "httppoll" ? s = -1 : t.method === "httppoll" ? s = 1 : s = 0, s !== 0 ? s : 0;
|
|
1653
|
-
},
|
|
1653
|
+
}, Uo;
|
|
1654
1654
|
}
|
|
1655
1655
|
var Hd;
|
|
1656
1656
|
function a0() {
|
|
1657
|
-
if (Hd) return
|
|
1657
|
+
if (Hd) return qo;
|
|
1658
1658
|
Hd = 1;
|
|
1659
1659
|
const n = globalThis.fetch || Si, e = s0(), i = o0().compare;
|
|
1660
1660
|
function t(r) {
|
|
@@ -1671,7 +1671,7 @@ function a0() {
|
|
|
1671
1671
|
uri: o.href
|
|
1672
1672
|
})).sort(i)).catch(() => []);
|
|
1673
1673
|
}
|
|
1674
|
-
return
|
|
1674
|
+
return qo.resolve = t, qo;
|
|
1675
1675
|
}
|
|
1676
1676
|
var Ud;
|
|
1677
1677
|
function A0() {
|
|
@@ -1685,9 +1685,9 @@ function A0() {
|
|
|
1685
1685
|
]).then(([r, s]) => [...r, ...s]);
|
|
1686
1686
|
}, n.resolve && (st.exports.dns = n), st.exports.http = e, st.exports;
|
|
1687
1687
|
}
|
|
1688
|
-
var
|
|
1688
|
+
var zo, zd;
|
|
1689
1689
|
function f0() {
|
|
1690
|
-
if (zd) return
|
|
1690
|
+
if (zd) return zo;
|
|
1691
1691
|
zd = 1;
|
|
1692
1692
|
const n = A0(), { promise: e } = Et();
|
|
1693
1693
|
async function i(s) {
|
|
@@ -1726,7 +1726,7 @@ function f0() {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
s._attachSocket(d), d.emit("connect"), s.Transport = A, s.Socket = A.prototype.Socket, s.Parser = A.prototype.Parser;
|
|
1728
1728
|
}
|
|
1729
|
-
return
|
|
1729
|
+
return zo = function({ entity: o }) {
|
|
1730
1730
|
const a = o.connect;
|
|
1731
1731
|
o.connect = async function(f) {
|
|
1732
1732
|
if (!f || /:\/\//.test(f))
|
|
@@ -1740,7 +1740,7 @@ function f0() {
|
|
|
1740
1740
|
throw o._reset(), o._status("disconnect"), l;
|
|
1741
1741
|
}
|
|
1742
1742
|
};
|
|
1743
|
-
},
|
|
1743
|
+
}, zo;
|
|
1744
1744
|
}
|
|
1745
1745
|
var Xt = {}, Vd;
|
|
1746
1746
|
function d0() {
|
|
@@ -1750,17 +1750,17 @@ function d0() {
|
|
|
1750
1750
|
return globalThis.atob(e);
|
|
1751
1751
|
}), Xt;
|
|
1752
1752
|
}
|
|
1753
|
-
var
|
|
1753
|
+
var Vo, Jd;
|
|
1754
1754
|
function c0() {
|
|
1755
|
-
if (Jd) return
|
|
1755
|
+
if (Jd) return Vo;
|
|
1756
1756
|
Jd = 1;
|
|
1757
|
-
const n =
|
|
1757
|
+
const n = rf();
|
|
1758
1758
|
class e extends n {
|
|
1759
1759
|
constructor(...t) {
|
|
1760
1760
|
super(...t), this.name = "SASLError";
|
|
1761
1761
|
}
|
|
1762
1762
|
}
|
|
1763
|
-
return
|
|
1763
|
+
return Vo = e, Vo;
|
|
1764
1764
|
}
|
|
1765
1765
|
var dt = { exports: {} }, ct = { exports: {} }, l0 = ct.exports, Xd;
|
|
1766
1766
|
function u0() {
|
|
@@ -1799,9 +1799,9 @@ function m0() {
|
|
|
1799
1799
|
});
|
|
1800
1800
|
}(dt, dt.exports)), dt.exports;
|
|
1801
1801
|
}
|
|
1802
|
-
var
|
|
1802
|
+
var Jo, Zd;
|
|
1803
1803
|
function p0() {
|
|
1804
|
-
if (Zd) return
|
|
1804
|
+
if (Zd) return Jo;
|
|
1805
1805
|
Zd = 1;
|
|
1806
1806
|
const { encode: n, decode: e } = d0(), i = c0(), t = gn(), r = m0(), s = "urn:ietf:params:xml:ns:xmpp-sasl";
|
|
1807
1807
|
function o(A) {
|
|
@@ -1848,7 +1848,7 @@ function p0() {
|
|
|
1848
1848
|
);
|
|
1849
1849
|
});
|
|
1850
1850
|
}
|
|
1851
|
-
return
|
|
1851
|
+
return Jo = function({ streamFeatures: f }, d) {
|
|
1852
1852
|
const l = new r();
|
|
1853
1853
|
return f.use("mechanisms", s, async ({ stanza: c, entity: u }) => {
|
|
1854
1854
|
const m = o(c);
|
|
@@ -1862,11 +1862,11 @@ function p0() {
|
|
|
1862
1862
|
return l.use(...c);
|
|
1863
1863
|
}
|
|
1864
1864
|
};
|
|
1865
|
-
},
|
|
1865
|
+
}, Jo;
|
|
1866
1866
|
}
|
|
1867
|
-
var
|
|
1867
|
+
var Xo, $d;
|
|
1868
1868
|
function g0() {
|
|
1869
|
-
if ($d) return
|
|
1869
|
+
if ($d) return Xo;
|
|
1870
1870
|
$d = 1;
|
|
1871
1871
|
const n = gn(), e = "urn:ietf:params:xml:ns:xmpp-bind";
|
|
1872
1872
|
function i(s) {
|
|
@@ -1881,22 +1881,22 @@ function g0() {
|
|
|
1881
1881
|
await (typeof o == "function" ? o((f) => t(a, s, f)) : t(a, s, o)), A();
|
|
1882
1882
|
};
|
|
1883
1883
|
}
|
|
1884
|
-
return
|
|
1884
|
+
return Xo = function({ streamFeatures: o, iqCaller: a }, A) {
|
|
1885
1885
|
o.use("bind", e, r({ iqCaller: a }, A));
|
|
1886
|
-
},
|
|
1886
|
+
}, Xo;
|
|
1887
1887
|
}
|
|
1888
|
-
var
|
|
1888
|
+
var Ko, ec;
|
|
1889
1889
|
function v0() {
|
|
1890
|
-
if (ec) return
|
|
1890
|
+
if (ec) return Ko;
|
|
1891
1891
|
ec = 1;
|
|
1892
1892
|
const n = gn(), e = "urn:ietf:params:xml:ns:xmpp-session";
|
|
1893
|
-
return
|
|
1893
|
+
return Ko = function({ iqCaller: t, streamFeatures: r }) {
|
|
1894
1894
|
r.use("session", e, async (s, o, a) => (a.getChild("optional") || await t.set(n("session", e)), o()));
|
|
1895
|
-
},
|
|
1895
|
+
}, Ko;
|
|
1896
1896
|
}
|
|
1897
|
-
var
|
|
1897
|
+
var Zo, nc;
|
|
1898
1898
|
function b0() {
|
|
1899
|
-
if (nc) return
|
|
1899
|
+
if (nc) return Zo;
|
|
1900
1900
|
nc = 1;
|
|
1901
1901
|
const n = gn(), e = "urn:xmpp:sm:3";
|
|
1902
1902
|
async function i(r, s, o) {
|
|
@@ -1923,7 +1923,7 @@ function b0() {
|
|
|
1923
1923
|
throw a;
|
|
1924
1924
|
return a;
|
|
1925
1925
|
}
|
|
1926
|
-
return
|
|
1926
|
+
return Zo = function({
|
|
1927
1927
|
streamFeatures: s,
|
|
1928
1928
|
entity: o,
|
|
1929
1929
|
middleware: a
|
|
@@ -1964,7 +1964,7 @@ function b0() {
|
|
|
1964
1964
|
}
|
|
1965
1965
|
f.inbound = 0;
|
|
1966
1966
|
}), f;
|
|
1967
|
-
},
|
|
1967
|
+
}, Zo;
|
|
1968
1968
|
}
|
|
1969
1969
|
var lt = { exports: {} }, ut = { exports: {} }, w0 = ut.exports, ic;
|
|
1970
1970
|
function y0() {
|
|
@@ -1995,14 +1995,14 @@ function C0() {
|
|
|
1995
1995
|
});
|
|
1996
1996
|
}(lt, lt.exports)), lt.exports;
|
|
1997
1997
|
}
|
|
1998
|
-
var
|
|
1998
|
+
var $o, rc;
|
|
1999
1999
|
function x0() {
|
|
2000
|
-
if (rc) return
|
|
2000
|
+
if (rc) return $o;
|
|
2001
2001
|
rc = 1;
|
|
2002
2002
|
const n = C0();
|
|
2003
|
-
return
|
|
2003
|
+
return $o = function(i) {
|
|
2004
2004
|
i.use(n);
|
|
2005
|
-
},
|
|
2005
|
+
}, $o;
|
|
2006
2006
|
}
|
|
2007
2007
|
var ht = { exports: {} }, mt = { exports: {} }, E0 = mt.exports, sc;
|
|
2008
2008
|
function I0() {
|
|
@@ -2035,14 +2035,14 @@ function D0() {
|
|
|
2035
2035
|
});
|
|
2036
2036
|
}(ht, ht.exports)), ht.exports;
|
|
2037
2037
|
}
|
|
2038
|
-
var
|
|
2038
|
+
var ea, ac;
|
|
2039
2039
|
function N0() {
|
|
2040
|
-
if (ac) return
|
|
2040
|
+
if (ac) return ea;
|
|
2041
2041
|
ac = 1;
|
|
2042
2042
|
const n = D0();
|
|
2043
|
-
return
|
|
2043
|
+
return ea = function(i) {
|
|
2044
2044
|
i.use(n);
|
|
2045
|
-
},
|
|
2045
|
+
}, ea;
|
|
2046
2046
|
}
|
|
2047
2047
|
var Ac;
|
|
2048
2048
|
function S0() {
|
|
@@ -2272,7 +2272,7 @@ const O0 = (n) => n.reduce((e, i) => (e[i.language] = i, e), {}), L0 = (n, e) =>
|
|
|
2272
2272
|
xmppId: i,
|
|
2273
2273
|
xmppFrom: t
|
|
2274
2274
|
};
|
|
2275
|
-
},
|
|
2275
|
+
}, sf = async (n) => (n?.body, n || console.log("Invalid arguments: data, id, and roomJid are required."), {
|
|
2276
2276
|
...n,
|
|
2277
2277
|
...n.data
|
|
2278
2278
|
}), F0 = async (n, e, i, t, r) => {
|
|
@@ -2299,7 +2299,7 @@ const O0 = (n) => n.reduce((e, i) => (e[i.language] = i, e), {}), L0 = (n, e) =>
|
|
|
2299
2299
|
console.log("No data in stanza");
|
|
2300
2300
|
return;
|
|
2301
2301
|
}
|
|
2302
|
-
const D = await
|
|
2302
|
+
const D = await sf({
|
|
2303
2303
|
data: g,
|
|
2304
2304
|
id: v,
|
|
2305
2305
|
body: x,
|
|
@@ -2443,7 +2443,7 @@ function G0(n, e) {
|
|
|
2443
2443
|
);
|
|
2444
2444
|
n.send(i);
|
|
2445
2445
|
}
|
|
2446
|
-
var
|
|
2446
|
+
var na = { exports: {} };
|
|
2447
2447
|
/**
|
|
2448
2448
|
* [js-sha256]{@link https://github.com/emn178/js-sha256}
|
|
2449
2449
|
*
|
|
@@ -2695,7 +2695,7 @@ function Y0() {
|
|
|
2695
2695
|
var g = p();
|
|
2696
2696
|
g.sha256 = g, g.sha224 = p(!0), g.sha256.hmac = C(), g.sha224.hmac = C(!0), o ? n.exports = g : (t.sha256 = g.sha256, t.sha224 = g.sha224);
|
|
2697
2697
|
})();
|
|
2698
|
-
}(
|
|
2698
|
+
}(na)), na.exports;
|
|
2699
2699
|
}
|
|
2700
2700
|
var B1 = Y0();
|
|
2701
2701
|
function D1(n, e) {
|
|
@@ -2803,7 +2803,7 @@ function S1(n, e, i, t) {
|
|
|
2803
2803
|
}), A = Un(2e3, o);
|
|
2804
2804
|
return Promise.race([a, A]);
|
|
2805
2805
|
}
|
|
2806
|
-
const T1 = "@conference.xmpp.ethoradev.com", _0 = "@xmpp.ethoradev.com",
|
|
2806
|
+
const T1 = "@conference.xmpp.ethoradev.com", _0 = "@xmpp.ethoradev.com", ia = "https://beta.ethora.com/app/chat/?chatId=";
|
|
2807
2807
|
async function q0(n, e, i) {
|
|
2808
2808
|
const t = Math.round(Math.random() * 1e5), r = n + Date.now() + t, o = `${B1.sha256(r)}${T1}`;
|
|
2809
2809
|
try {
|
|
@@ -3152,7 +3152,7 @@ class Ai {
|
|
|
3152
3152
|
}
|
|
3153
3153
|
}
|
|
3154
3154
|
Ai.prototype.tree = Ai.prototype.root;
|
|
3155
|
-
const Jn = 0,
|
|
3155
|
+
const Jn = 0, ta = 1, hc = 2, mc = 3, ra = 4, pc = 5, gc = 6, vc = 7, sa = 8, bc = 9, nv = 10;
|
|
3156
3156
|
class iv extends M1.EventEmitter {
|
|
3157
3157
|
constructor() {
|
|
3158
3158
|
super();
|
|
@@ -3176,12 +3176,12 @@ class iv extends M1.EventEmitter {
|
|
|
3176
3176
|
y !== -1 && m !== y && (m = y);
|
|
3177
3177
|
break;
|
|
3178
3178
|
}
|
|
3179
|
-
case
|
|
3179
|
+
case sa: {
|
|
3180
3180
|
const y = u.indexOf(f, m);
|
|
3181
3181
|
y !== -1 && (m = y);
|
|
3182
3182
|
break;
|
|
3183
3183
|
}
|
|
3184
|
-
case
|
|
3184
|
+
case ta: {
|
|
3185
3185
|
const y = u.indexOf("-->", m);
|
|
3186
3186
|
y !== -1 && (m = y + 2);
|
|
3187
3187
|
break;
|
|
@@ -3208,9 +3208,9 @@ class iv extends M1.EventEmitter {
|
|
|
3208
3208
|
} else u.length < m + 2 && (t = !0, m = u.length);
|
|
3209
3209
|
break;
|
|
3210
3210
|
case mc:
|
|
3211
|
-
b === 47 && d === m ? (d = m + 1, o = !0) : b === 33 ? u.substr(m + 1, 7) === "[CDATA[" ? (d = m + 8, e = bc) : u.length < m + 8 && "[CDATA[".startsWith(u.slice(m + 1)) ? (t = !0, m = u.length) : (d = void 0, e =
|
|
3211
|
+
b === 47 && d === m ? (d = m + 1, o = !0) : b === 33 ? u.substr(m + 1, 7) === "[CDATA[" ? (d = m + 8, e = bc) : u.length < m + 8 && "[CDATA[".startsWith(u.slice(m + 1)) ? (t = !0, m = u.length) : (d = void 0, e = ta) : b === 63 ? (d = void 0, e = hc) : (b <= 32 || b === 47 || b === 62) && (r = p(), m--, e = ra);
|
|
3212
3212
|
break;
|
|
3213
|
-
case
|
|
3213
|
+
case ta:
|
|
3214
3214
|
if (b === 62) {
|
|
3215
3215
|
const y = u.charCodeAt(m - 1), C = u.charCodeAt(m - 2);
|
|
3216
3216
|
(y === 45 && C === 45 || y === 93 && C === 93) && (e = Jn);
|
|
@@ -3219,7 +3219,7 @@ class iv extends M1.EventEmitter {
|
|
|
3219
3219
|
case hc:
|
|
3220
3220
|
b === 62 && u.charCodeAt(m - 1) === 63 && (e = Jn);
|
|
3221
3221
|
break;
|
|
3222
|
-
case
|
|
3222
|
+
case ra:
|
|
3223
3223
|
b === 62 ? (this._handleTagOpening(o, r, s), r = void 0, s = void 0, o = void 0, a = void 0, e = Jn, d = m + 1) : b === 47 ? a = !0 : b > 32 && (d = m, e = pc);
|
|
3224
3224
|
break;
|
|
3225
3225
|
case pc:
|
|
@@ -3229,12 +3229,12 @@ class iv extends M1.EventEmitter {
|
|
|
3229
3229
|
b === 61 && (e = vc);
|
|
3230
3230
|
break;
|
|
3231
3231
|
case vc:
|
|
3232
|
-
(b === 34 || b === 39) && (A = b, f = b === 34 ? '"' : "'", e =
|
|
3232
|
+
(b === 34 || b === 39) && (A = b, f = b === 34 ? '"' : "'", e = sa, d = m + 1);
|
|
3233
3233
|
break;
|
|
3234
|
-
case
|
|
3234
|
+
case sa:
|
|
3235
3235
|
if (b === A) {
|
|
3236
3236
|
const y = lc(p());
|
|
3237
|
-
s[l] = y, l = void 0, e =
|
|
3237
|
+
s[l] = y, l = void 0, e = ra;
|
|
3238
3238
|
}
|
|
3239
3239
|
break;
|
|
3240
3240
|
}
|
|
@@ -3276,10 +3276,10 @@ P1.prototype.DefaultElement = Ai;
|
|
|
3276
3276
|
function De(n) {
|
|
3277
3277
|
return `Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `;
|
|
3278
3278
|
}
|
|
3279
|
-
var tv = typeof Symbol == "function" && Symbol.observable || "@@observable", wc = tv,
|
|
3280
|
-
INIT: `@@redux/INIT${/* @__PURE__ */
|
|
3281
|
-
REPLACE: `@@redux/REPLACE${/* @__PURE__ */
|
|
3282
|
-
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${
|
|
3279
|
+
var tv = typeof Symbol == "function" && Symbol.observable || "@@observable", wc = tv, oa = () => Math.random().toString(36).substring(7).split("").join("."), rv = {
|
|
3280
|
+
INIT: `@@redux/INIT${/* @__PURE__ */ oa()}`,
|
|
3281
|
+
REPLACE: `@@redux/REPLACE${/* @__PURE__ */ oa()}`,
|
|
3282
|
+
PROBE_UNKNOWN_ACTION: () => `@@redux/PROBE_UNKNOWN_ACTION${oa()}`
|
|
3283
3283
|
}, ii = rv;
|
|
3284
3284
|
function Ot(n) {
|
|
3285
3285
|
if (typeof n != "object" || n === null)
|
|
@@ -3334,7 +3334,7 @@ function Rn(n) {
|
|
|
3334
3334
|
let e = typeof n;
|
|
3335
3335
|
return process.env.NODE_ENV !== "production" && (e = sv(n)), e;
|
|
3336
3336
|
}
|
|
3337
|
-
function
|
|
3337
|
+
function of(n, e, i) {
|
|
3338
3338
|
if (typeof n != "function")
|
|
3339
3339
|
throw new Error(process.env.NODE_ENV === "production" ? De(2) : `Expected the root reducer to be a function. Instead, received: '${Rn(n)}'`);
|
|
3340
3340
|
if (typeof e == "function" && typeof i == "function" || typeof i == "function" && typeof arguments[3] == "function")
|
|
@@ -3342,7 +3342,7 @@ function sf(n, e, i) {
|
|
|
3342
3342
|
if (typeof e == "function" && typeof i > "u" && (i = e, e = void 0), typeof i < "u") {
|
|
3343
3343
|
if (typeof i != "function")
|
|
3344
3344
|
throw new Error(process.env.NODE_ENV === "production" ? De(1) : `Expected the enhancer to be a function. Instead, received: '${Rn(i)}'`);
|
|
3345
|
-
return i(
|
|
3345
|
+
return i(of)(n, e);
|
|
3346
3346
|
}
|
|
3347
3347
|
let t = n, r = e, s = /* @__PURE__ */ new Map(), o = s, a = 0, A = !1;
|
|
3348
3348
|
function f() {
|
|
@@ -3588,7 +3588,7 @@ function Ns(n) {
|
|
|
3588
3588
|
const e = n[He];
|
|
3589
3589
|
return e ? e.type_ : Array.isArray(n) ? 1 : Ss(n) ? 2 : Ts(n) ? 3 : 0;
|
|
3590
3590
|
}
|
|
3591
|
-
function
|
|
3591
|
+
function rA(n, e) {
|
|
3592
3592
|
return Ns(n) === 2 ? n.has(e) : Object.prototype.hasOwnProperty.call(n, e);
|
|
3593
3593
|
}
|
|
3594
3594
|
function j1(n, e, i) {
|
|
@@ -3607,7 +3607,7 @@ function Ts(n) {
|
|
|
3607
3607
|
function Xn(n) {
|
|
3608
3608
|
return n.copy_ || n.base_;
|
|
3609
3609
|
}
|
|
3610
|
-
function
|
|
3610
|
+
function sA(n, e) {
|
|
3611
3611
|
if (Ss(n))
|
|
3612
3612
|
return new Map(n);
|
|
3613
3613
|
if (Ts(n))
|
|
@@ -3638,8 +3638,8 @@ function rA(n, e) {
|
|
|
3638
3638
|
return Object.assign(r, n);
|
|
3639
3639
|
}
|
|
3640
3640
|
}
|
|
3641
|
-
function
|
|
3642
|
-
return Ms(n) || fi(n) || !Bn(n) || (Ns(n) > 1 && (n.set = n.add = n.clear = n.delete = mv), Object.freeze(n), e && Object.entries(n).forEach(([i, t]) =>
|
|
3641
|
+
function af(n, e = !1) {
|
|
3642
|
+
return Ms(n) || fi(n) || !Bn(n) || (Ns(n) > 1 && (n.set = n.add = n.clear = n.delete = mv), Object.freeze(n), e && Object.entries(n).forEach(([i, t]) => af(t, !0))), n;
|
|
3643
3643
|
}
|
|
3644
3644
|
function mv() {
|
|
3645
3645
|
Fe(2);
|
|
@@ -3670,10 +3670,10 @@ function gv(n, e) {
|
|
|
3670
3670
|
function Cc(n, e) {
|
|
3671
3671
|
e && (di("Patches"), n.patches_ = [], n.inversePatches_ = [], n.patchListener_ = e);
|
|
3672
3672
|
}
|
|
3673
|
-
function sA(n) {
|
|
3674
|
-
oA(n), n.drafts_.forEach(vv), n.drafts_ = null;
|
|
3675
|
-
}
|
|
3676
3673
|
function oA(n) {
|
|
3674
|
+
aA(n), n.drafts_.forEach(vv), n.drafts_ = null;
|
|
3675
|
+
}
|
|
3676
|
+
function aA(n) {
|
|
3677
3677
|
n === It && (It = n.parent_);
|
|
3678
3678
|
}
|
|
3679
3679
|
function xc(n) {
|
|
@@ -3686,12 +3686,12 @@ function vv(n) {
|
|
|
3686
3686
|
function Ec(n, e) {
|
|
3687
3687
|
e.unfinalizedDrafts_ = e.drafts_.length;
|
|
3688
3688
|
const i = e.drafts_[0];
|
|
3689
|
-
return n !== void 0 && n !== i ? (i[He].modified_ && (
|
|
3689
|
+
return n !== void 0 && n !== i ? (i[He].modified_ && (oA(e), Fe(4)), Bn(n) && (n = ns(e, n), e.parent_ || is(e, n)), e.patches_ && di("Patches").generateReplacementPatches_(
|
|
3690
3690
|
i[He].base_,
|
|
3691
3691
|
n,
|
|
3692
3692
|
e.patches_,
|
|
3693
3693
|
e.inversePatches_
|
|
3694
|
-
)) : n = ns(e, i, []),
|
|
3694
|
+
)) : n = ns(e, i, []), oA(e), e.patches_ && e.patchListener_(e.patches_, e.inversePatches_), n !== L1 ? n : void 0;
|
|
3695
3695
|
}
|
|
3696
3696
|
function ns(n, e, i) {
|
|
3697
3697
|
if (Ms(e))
|
|
@@ -3725,7 +3725,7 @@ function ns(n, e, i) {
|
|
|
3725
3725
|
function Ic(n, e, i, t, r, s, o) {
|
|
3726
3726
|
if (process.env.NODE_ENV !== "production" && r === i && Fe(5), fi(r)) {
|
|
3727
3727
|
const a = s && e && e.type_ !== 3 && // Set objects are atomic since they have no keys.
|
|
3728
|
-
!
|
|
3728
|
+
!rA(e.assigned_, t) ? s.concat(t) : void 0, A = ns(n, r, a);
|
|
3729
3729
|
if (j1(i, t, A), fi(A))
|
|
3730
3730
|
n.canAutoFreeze_ = !1;
|
|
3731
3731
|
else
|
|
@@ -3738,7 +3738,7 @@ function Ic(n, e, i, t, r, s, o) {
|
|
|
3738
3738
|
}
|
|
3739
3739
|
}
|
|
3740
3740
|
function is(n, e, i = !1) {
|
|
3741
|
-
!n.parent_ && n.immer_.autoFreeze_ && n.canAutoFreeze_ &&
|
|
3741
|
+
!n.parent_ && n.immer_.autoFreeze_ && n.canAutoFreeze_ && af(e, i);
|
|
3742
3742
|
}
|
|
3743
3743
|
function bv(n, e) {
|
|
3744
3744
|
const i = Array.isArray(n), t = {
|
|
@@ -3764,20 +3764,20 @@ function bv(n, e) {
|
|
|
3764
3764
|
revoke_: null,
|
|
3765
3765
|
isManual_: !1
|
|
3766
3766
|
};
|
|
3767
|
-
let r = t, s =
|
|
3767
|
+
let r = t, s = Af;
|
|
3768
3768
|
i && (r = [t], s = Bt);
|
|
3769
3769
|
const { revoke: o, proxy: a } = Proxy.revocable(r, s);
|
|
3770
3770
|
return t.draft_ = a, t.revoke_ = o, a;
|
|
3771
3771
|
}
|
|
3772
|
-
var
|
|
3772
|
+
var Af = {
|
|
3773
3773
|
get(n, e) {
|
|
3774
3774
|
if (e === He)
|
|
3775
3775
|
return n;
|
|
3776
3776
|
const i = Xn(n);
|
|
3777
|
-
if (!
|
|
3777
|
+
if (!rA(i, e))
|
|
3778
3778
|
return wv(n, i, e);
|
|
3779
3779
|
const t = i[e];
|
|
3780
|
-
return n.finalized_ || !Bn(t) ? t : t ===
|
|
3780
|
+
return n.finalized_ || !Bn(t) ? t : t === aa(n.base_, e) ? (Aa(n), n.copy_[e] = fA(t, n)) : t;
|
|
3781
3781
|
},
|
|
3782
3782
|
has(n, e) {
|
|
3783
3783
|
return e in Xn(n);
|
|
@@ -3790,19 +3790,19 @@ var af = {
|
|
|
3790
3790
|
if (t?.set)
|
|
3791
3791
|
return t.set.call(n.draft_, i), !0;
|
|
3792
3792
|
if (!n.modified_) {
|
|
3793
|
-
const r =
|
|
3793
|
+
const r = aa(Xn(n), e), s = r?.[He];
|
|
3794
3794
|
if (s && s.base_ === i)
|
|
3795
3795
|
return n.copy_[e] = i, n.assigned_[e] = !1, !0;
|
|
3796
|
-
if (hv(i, r) && (i !== void 0 ||
|
|
3796
|
+
if (hv(i, r) && (i !== void 0 || rA(n.base_, e)))
|
|
3797
3797
|
return !0;
|
|
3798
|
-
|
|
3798
|
+
Aa(n), AA(n);
|
|
3799
3799
|
}
|
|
3800
3800
|
return n.copy_[e] === i && // special case: handle new props with value 'undefined'
|
|
3801
3801
|
(i !== void 0 || e in n.copy_) || // special case: NaN
|
|
3802
3802
|
Number.isNaN(i) && Number.isNaN(n.copy_[e]) || (n.copy_[e] = i, n.assigned_[e] = !0), !0;
|
|
3803
3803
|
},
|
|
3804
3804
|
deleteProperty(n, e) {
|
|
3805
|
-
return
|
|
3805
|
+
return aa(n.base_, e) !== void 0 || e in n.base_ ? (n.assigned_[e] = !1, Aa(n), AA(n)) : delete n.assigned_[e], n.copy_ && delete n.copy_[e], !0;
|
|
3806
3806
|
},
|
|
3807
3807
|
// Note: We never coerce `desc.value` into an Immer draft, because we can't make
|
|
3808
3808
|
// the same guarantee in ES5 mode.
|
|
@@ -3825,7 +3825,7 @@ var af = {
|
|
|
3825
3825
|
Fe(12);
|
|
3826
3826
|
}
|
|
3827
3827
|
}, Bt = {};
|
|
3828
|
-
es(
|
|
3828
|
+
es(Af, (n, e) => {
|
|
3829
3829
|
Bt[n] = function() {
|
|
3830
3830
|
return arguments[0] = arguments[0][0], e.apply(this, arguments);
|
|
3831
3831
|
};
|
|
@@ -3834,9 +3834,9 @@ Bt.deleteProperty = function(n, e) {
|
|
|
3834
3834
|
return process.env.NODE_ENV !== "production" && isNaN(parseInt(e)) && Fe(13), Bt.set.call(this, n, e, void 0);
|
|
3835
3835
|
};
|
|
3836
3836
|
Bt.set = function(n, e, i) {
|
|
3837
|
-
return process.env.NODE_ENV !== "production" && e !== "length" && isNaN(parseInt(e)) && Fe(14),
|
|
3837
|
+
return process.env.NODE_ENV !== "production" && e !== "length" && isNaN(parseInt(e)) && Fe(14), Af.set.call(this, n[0], e, i, n[0]);
|
|
3838
3838
|
};
|
|
3839
|
-
function
|
|
3839
|
+
function aa(n, e) {
|
|
3840
3840
|
const i = n[He];
|
|
3841
3841
|
return (i ? Xn(i) : n)[e];
|
|
3842
3842
|
}
|
|
@@ -3859,11 +3859,11 @@ function G1(n, e) {
|
|
|
3859
3859
|
i = Ti(i);
|
|
3860
3860
|
}
|
|
3861
3861
|
}
|
|
3862
|
-
function
|
|
3863
|
-
n.modified_ || (n.modified_ = !0, n.parent_ &&
|
|
3862
|
+
function AA(n) {
|
|
3863
|
+
n.modified_ || (n.modified_ = !0, n.parent_ && AA(n.parent_));
|
|
3864
3864
|
}
|
|
3865
|
-
function
|
|
3866
|
-
n.copy_ || (n.copy_ =
|
|
3865
|
+
function Aa(n) {
|
|
3866
|
+
n.copy_ || (n.copy_ = sA(
|
|
3867
3867
|
n.base_,
|
|
3868
3868
|
n.scope_.immer_.useStrictShallowCopy_
|
|
3869
3869
|
));
|
|
@@ -3882,16 +3882,16 @@ var yv = class {
|
|
|
3882
3882
|
typeof i != "function" && Fe(6), t !== void 0 && typeof t != "function" && Fe(7);
|
|
3883
3883
|
let r;
|
|
3884
3884
|
if (Bn(e)) {
|
|
3885
|
-
const s = xc(this), o =
|
|
3885
|
+
const s = xc(this), o = fA(e, void 0);
|
|
3886
3886
|
let a = !0;
|
|
3887
3887
|
try {
|
|
3888
3888
|
r = i(o), a = !1;
|
|
3889
3889
|
} finally {
|
|
3890
|
-
a ?
|
|
3890
|
+
a ? oA(s) : aA(s);
|
|
3891
3891
|
}
|
|
3892
3892
|
return Cc(s, t), Ec(r, s);
|
|
3893
3893
|
} else if (!e || typeof e != "object") {
|
|
3894
|
-
if (r = i(e), r === void 0 && (r = e), r === L1 && (r = void 0), this.autoFreeze_ &&
|
|
3894
|
+
if (r = i(e), r === void 0 && (r = e), r === L1 && (r = void 0), this.autoFreeze_ && af(r, !0), t) {
|
|
3895
3895
|
const s = [], o = [];
|
|
3896
3896
|
di("Patches").generateReplacementPatches_(e, r, s, o), t(s, o);
|
|
3897
3897
|
}
|
|
@@ -3909,8 +3909,8 @@ var yv = class {
|
|
|
3909
3909
|
}
|
|
3910
3910
|
createDraft(n) {
|
|
3911
3911
|
Bn(n) || Fe(8), fi(n) && (n = kv(n));
|
|
3912
|
-
const e = xc(this), i =
|
|
3913
|
-
return i[He].isManual_ = !0,
|
|
3912
|
+
const e = xc(this), i = fA(n, void 0);
|
|
3913
|
+
return i[He].isManual_ = !0, aA(e), i;
|
|
3914
3914
|
}
|
|
3915
3915
|
finishDraft(n, e) {
|
|
3916
3916
|
const i = n && n[He];
|
|
@@ -3951,7 +3951,7 @@ var yv = class {
|
|
|
3951
3951
|
);
|
|
3952
3952
|
}
|
|
3953
3953
|
};
|
|
3954
|
-
function
|
|
3954
|
+
function fA(n, e) {
|
|
3955
3955
|
const i = Ss(n) ? di("MapSet").proxyMap_(n, e) : Ts(n) ? di("MapSet").proxySet_(n, e) : bv(n, e);
|
|
3956
3956
|
return (e ? e.scope_ : W1()).drafts_.push(i), i;
|
|
3957
3957
|
}
|
|
@@ -3966,9 +3966,9 @@ function Y1(n) {
|
|
|
3966
3966
|
if (e) {
|
|
3967
3967
|
if (!e.modified_)
|
|
3968
3968
|
return e.base_;
|
|
3969
|
-
e.finalized_ = !0, i =
|
|
3969
|
+
e.finalized_ = !0, i = sA(n, e.scope_.immer_.useStrictShallowCopy_);
|
|
3970
3970
|
} else
|
|
3971
|
-
i =
|
|
3971
|
+
i = sA(n, !0);
|
|
3972
3972
|
return es(i, (t, r) => {
|
|
3973
3973
|
j1(i, t, Y1(r));
|
|
3974
3974
|
}), e && (e.finalized_ = !1), i;
|
|
@@ -4169,7 +4169,7 @@ function X1(n) {
|
|
|
4169
4169
|
const e = typeof n;
|
|
4170
4170
|
return n == null || e === "string" || e === "boolean" || e === "number" || Array.isArray(n) || Ot(n);
|
|
4171
4171
|
}
|
|
4172
|
-
function
|
|
4172
|
+
function dA(n, e = "", i = X1, t, r = [], s) {
|
|
4173
4173
|
let o;
|
|
4174
4174
|
if (!i(n))
|
|
4175
4175
|
return {
|
|
@@ -4186,7 +4186,7 @@ function fA(n, e = "", i = X1, t, r = [], s) {
|
|
|
4186
4186
|
keyPath: l,
|
|
4187
4187
|
value: d
|
|
4188
4188
|
};
|
|
4189
|
-
if (typeof d == "object" && (o =
|
|
4189
|
+
if (typeof d == "object" && (o = dA(d, l, i, t, r, s), o))
|
|
4190
4190
|
return o;
|
|
4191
4191
|
}
|
|
4192
4192
|
}
|
|
@@ -4219,7 +4219,7 @@ function Mv(n = {}) {
|
|
|
4219
4219
|
return c(u);
|
|
4220
4220
|
const m = c(u), p = U1(o, "SerializableStateInvariantMiddleware");
|
|
4221
4221
|
return !A && !(t.length && t.indexOf(u.type) !== -1) && p.measureTime(() => {
|
|
4222
|
-
const b =
|
|
4222
|
+
const b = dA(u, "", e, i, r, d);
|
|
4223
4223
|
if (b) {
|
|
4224
4224
|
const {
|
|
4225
4225
|
keyPath: y,
|
|
@@ -4231,7 +4231,7 @@ Take a look at the logic that dispatched this action: `, u, `
|
|
|
4231
4231
|
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
|
|
4232
4232
|
}
|
|
4233
4233
|
}), a || (p.measureTime(() => {
|
|
4234
|
-
const b = l.getState(), y =
|
|
4234
|
+
const b = l.getState(), y = dA(b, "", e, i, s, d);
|
|
4235
4235
|
if (y) {
|
|
4236
4236
|
const {
|
|
4237
4237
|
keyPath: C,
|
|
@@ -4360,7 +4360,7 @@ function Lv(n) {
|
|
|
4360
4360
|
throw new Error(process.env.NODE_ENV === "production" ? ge(7) : "each enhancer provided to configureStore must be a function");
|
|
4361
4361
|
process.env.NODE_ENV !== "production" && f.length && !u.includes(l) && console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");
|
|
4362
4362
|
const m = d(...u);
|
|
4363
|
-
return
|
|
4363
|
+
return of(A, o, m);
|
|
4364
4364
|
}
|
|
4365
4365
|
function Z1(n) {
|
|
4366
4366
|
const e = {}, i = [];
|
|
@@ -4447,7 +4447,7 @@ var Yv = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", _v
|
|
|
4447
4447
|
for (; i--; )
|
|
4448
4448
|
e += Yv[Math.random() * 64 | 0];
|
|
4449
4449
|
return e;
|
|
4450
|
-
}, qv = ["name", "message", "stack", "code"],
|
|
4450
|
+
}, qv = ["name", "message", "stack", "code"], fa = class {
|
|
4451
4451
|
constructor(n, e) {
|
|
4452
4452
|
this.payload = n, this.meta = e;
|
|
4453
4453
|
}
|
|
@@ -4551,15 +4551,15 @@ var Yv = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", _v
|
|
|
4551
4551
|
requestId: u,
|
|
4552
4552
|
signal: m.signal,
|
|
4553
4553
|
abort: y,
|
|
4554
|
-
rejectWithValue: (x, E) => new
|
|
4554
|
+
rejectWithValue: (x, E) => new fa(x, E),
|
|
4555
4555
|
fulfillWithValue: (x, E) => new Nc(x, E)
|
|
4556
4556
|
})).then((x) => {
|
|
4557
|
-
if (x instanceof
|
|
4557
|
+
if (x instanceof fa)
|
|
4558
4558
|
throw x;
|
|
4559
4559
|
return x instanceof Nc ? r(x.payload, u, A, x.meta) : r(x, u, A);
|
|
4560
4560
|
})]);
|
|
4561
4561
|
} catch (g) {
|
|
4562
|
-
w = g instanceof
|
|
4562
|
+
w = g instanceof fa ? o(null, u, A, g.payload, g.meta) : o(g, u, A);
|
|
4563
4563
|
} finally {
|
|
4564
4564
|
p && m.signal.removeEventListener("abort", p);
|
|
4565
4565
|
}
|
|
@@ -4737,7 +4737,7 @@ function Zv(n, e, i, t) {
|
|
|
4737
4737
|
}
|
|
4738
4738
|
return r.unwrapped = n, r;
|
|
4739
4739
|
}
|
|
4740
|
-
var
|
|
4740
|
+
var ff = /* @__PURE__ */ Kv();
|
|
4741
4741
|
function $v() {
|
|
4742
4742
|
function n(e, i) {
|
|
4743
4743
|
return {
|
|
@@ -4847,7 +4847,7 @@ function bt(n) {
|
|
|
4847
4847
|
function ts(n) {
|
|
4848
4848
|
return n ? n.replaceAll(/([A-Z])/g, "_$1").toLowerCase() : "";
|
|
4849
4849
|
}
|
|
4850
|
-
const
|
|
4850
|
+
const da = (n) => ({
|
|
4851
4851
|
description: "",
|
|
4852
4852
|
token: n?.token || "",
|
|
4853
4853
|
profileImage: n?.profileImage || "",
|
|
@@ -4913,13 +4913,13 @@ const fa = (n) => ({
|
|
|
4913
4913
|
messageId: ""
|
|
4914
4914
|
},
|
|
4915
4915
|
config: { colors: { primary: "#0052CD", secondary: "#F3F6FC" } }
|
|
4916
|
-
}, $1 =
|
|
4916
|
+
}, $1 = ff({
|
|
4917
4917
|
name: "chatSettingStore",
|
|
4918
4918
|
initialState: r2,
|
|
4919
4919
|
reducers: {
|
|
4920
4920
|
setUser: (n, e) => {
|
|
4921
|
-
n.user =
|
|
4922
|
-
|
|
4921
|
+
n.user = da(e.payload), bt(ki.ETHORA_USER).set(
|
|
4922
|
+
da(e.payload)
|
|
4923
4923
|
);
|
|
4924
4924
|
},
|
|
4925
4925
|
updateUser(n, e) {
|
|
@@ -4954,7 +4954,7 @@ const fa = (n) => ({
|
|
|
4954
4954
|
);
|
|
4955
4955
|
},
|
|
4956
4956
|
logout: (n) => {
|
|
4957
|
-
n.user =
|
|
4957
|
+
n.user = da(), n.config = void 0, localStorage.removeItem(ki.ETHORA_USER);
|
|
4958
4958
|
}
|
|
4959
4959
|
}
|
|
4960
4960
|
}), {
|
|
@@ -4964,11 +4964,11 @@ const fa = (n) => ({
|
|
|
4964
4964
|
logout: Rs,
|
|
4965
4965
|
setActiveModal: Qe,
|
|
4966
4966
|
setDeleteModal: rs,
|
|
4967
|
-
setSelectedUser:
|
|
4967
|
+
setSelectedUser: df,
|
|
4968
4968
|
updateUser: o2,
|
|
4969
4969
|
setActiveFile: Ps,
|
|
4970
4970
|
setLangSource: nh
|
|
4971
|
-
} = $1.actions, a2 = $1.reducer, Tc = (n, e) => new Date(n) < new Date(e),
|
|
4971
|
+
} = $1.actions, a2 = $1.reducer, Tc = (n, e) => new Date(n) < new Date(e), ca = (n, e) => new Date(n) > new Date(e);
|
|
4972
4972
|
function ih(n, e) {
|
|
4973
4973
|
for (const i in e)
|
|
4974
4974
|
e[i] && typeof e[i] == "object" && !Array.isArray(e[i]) ? n[i] = ih(n[i] || {}, e[i]) : n[i] = e[i];
|
|
@@ -4986,13 +4986,13 @@ function A2(n, e, i) {
|
|
|
4986
4986
|
return;
|
|
4987
4987
|
}
|
|
4988
4988
|
const r = e.date, s = n[n.length - 1], o = n[0];
|
|
4989
|
-
if (
|
|
4989
|
+
if (ca(r.toString(), s.date.toString())) {
|
|
4990
4990
|
const a = n.findIndex(
|
|
4991
4991
|
(A) => A.id === e.xmppId || A.id === e.id
|
|
4992
4992
|
);
|
|
4993
|
-
if (a !== -1 ? n[a] = { ...e, id: e.id, pending: !1 } : n.push(e), i && !n.some((A) => A.id === "delimiter-new") &&
|
|
4993
|
+
if (a !== -1 ? n[a] = { ...e, id: e.id, pending: !1 } : n.push(e), i && !n.some((A) => A.id === "delimiter-new") && ca(r.toString(), i.toString())) {
|
|
4994
4994
|
const A = n.findIndex(
|
|
4995
|
-
(f) =>
|
|
4995
|
+
(f) => ca(f.date.toString(), i.toString())
|
|
4996
4996
|
);
|
|
4997
4997
|
A !== -1 && (n.splice(A, 0, {
|
|
4998
4998
|
id: "delimiter-new",
|
|
@@ -5061,9 +5061,9 @@ const c2 = {
|
|
|
5061
5061
|
const r = t();
|
|
5062
5062
|
Object.values(r.rooms.rooms).some(
|
|
5063
5063
|
(o) => o.jid === n?.jid
|
|
5064
|
-
) || (n.jid && (e.presenceInRoomStanza(n.jid), e?.getHistoryStanza(n.jid, 10)), i(
|
|
5064
|
+
) || (n.jid && (e.presenceInRoomStanza(n.jid), e?.getHistoryStanza(n.jid, 10)), i(cf.actions.addRoomFromApi({ room: n })));
|
|
5065
5065
|
}
|
|
5066
|
-
),
|
|
5066
|
+
), cf = ff({
|
|
5067
5067
|
name: "roomMessages",
|
|
5068
5068
|
initialState: c2,
|
|
5069
5069
|
reducers: {
|
|
@@ -5239,7 +5239,7 @@ const l2 = (n, e) => e !== 0 ? n.filter((i) => Number(i.id) < e).length : 0, u2
|
|
|
5239
5239
|
deleteAllRooms: lI,
|
|
5240
5240
|
setRoomMessages: m2,
|
|
5241
5241
|
addRoomMessage: Ci,
|
|
5242
|
-
deleteRoomMessage:
|
|
5242
|
+
deleteRoomMessage: lf,
|
|
5243
5243
|
setEditAction: qn,
|
|
5244
5244
|
editRoomMessage: p2,
|
|
5245
5245
|
setComposing: g2,
|
|
@@ -5249,17 +5249,17 @@ const l2 = (n, e) => e !== 0 ? n.filter((i) => Number(i.id) < e).length : 0, u2
|
|
|
5249
5249
|
setCurrentRoom: We,
|
|
5250
5250
|
setRoomRole: v2,
|
|
5251
5251
|
setReactions: rh,
|
|
5252
|
-
setLogoutState:
|
|
5252
|
+
setLogoutState: uf,
|
|
5253
5253
|
setActiveMessage: Mc,
|
|
5254
5254
|
setCloseActiveMessage: b2,
|
|
5255
|
-
deleteRoom:
|
|
5255
|
+
deleteRoom: hf,
|
|
5256
5256
|
updateRoom: Ze,
|
|
5257
5257
|
updateUsersSet: sh,
|
|
5258
5258
|
setOpenReportModal: oh,
|
|
5259
|
-
insertUsers:
|
|
5260
|
-
} =
|
|
5259
|
+
insertUsers: mf
|
|
5260
|
+
} = cf.actions, w2 = cf.reducer, y2 = {
|
|
5261
5261
|
messageHeap: []
|
|
5262
|
-
}, ah =
|
|
5262
|
+
}, ah = ff({
|
|
5263
5263
|
name: "roomHeapStore",
|
|
5264
5264
|
initialState: y2,
|
|
5265
5265
|
reducers: {
|
|
@@ -5381,7 +5381,7 @@ function B2() {
|
|
|
5381
5381
|
}
|
|
5382
5382
|
var D2 = B2();
|
|
5383
5383
|
const Os = /* @__PURE__ */ Ui(D2);
|
|
5384
|
-
var
|
|
5384
|
+
var pf = "persist:", fh = "persist/FLUSH", gf = "persist/REHYDRATE", dh = "persist/PAUSE", ch = "persist/PERSIST", lh = "persist/PURGE", uh = "persist/REGISTER", N2 = -1;
|
|
5385
5385
|
function wt(n) {
|
|
5386
5386
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? wt = function(i) {
|
|
5387
5387
|
return typeof i;
|
|
@@ -5426,7 +5426,7 @@ function M2(n, e, i, t) {
|
|
|
5426
5426
|
}), process.env.NODE_ENV !== "production" && r && n && wt(n) === "object" && console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(n).join(", "), "'")), s;
|
|
5427
5427
|
}
|
|
5428
5428
|
function R2(n) {
|
|
5429
|
-
var e = n.blacklist || null, i = n.whitelist || null, t = n.transforms || [], r = n.throttle || 0, s = "".concat(n.keyPrefix !== void 0 ? n.keyPrefix :
|
|
5429
|
+
var e = n.blacklist || null, i = n.whitelist || null, t = n.transforms || [], r = n.throttle || 0, s = "".concat(n.keyPrefix !== void 0 ? n.keyPrefix : pf).concat(n.key), o = n.storage, a;
|
|
5430
5430
|
n.serialize === !1 ? a = function(g) {
|
|
5431
5431
|
return g;
|
|
5432
5432
|
} : typeof n.serialize == "function" ? a = n.serialize : a = P2;
|
|
@@ -5480,7 +5480,7 @@ function P2(n) {
|
|
|
5480
5480
|
return JSON.stringify(n);
|
|
5481
5481
|
}
|
|
5482
5482
|
function Q2(n) {
|
|
5483
|
-
var e = n.transforms || [], i = "".concat(n.keyPrefix !== void 0 ? n.keyPrefix :
|
|
5483
|
+
var e = n.transforms || [], i = "".concat(n.keyPrefix !== void 0 ? n.keyPrefix : pf).concat(n.key), t = n.storage, r = n.debug, s;
|
|
5484
5484
|
return n.deserialize === !1 ? s = function(a) {
|
|
5485
5485
|
return a;
|
|
5486
5486
|
} : typeof n.deserialize == "function" ? s = n.deserialize : s = O2, t.getItem(i).then(function(o) {
|
|
@@ -5502,7 +5502,7 @@ function O2(n) {
|
|
|
5502
5502
|
return JSON.parse(n);
|
|
5503
5503
|
}
|
|
5504
5504
|
function L2(n) {
|
|
5505
|
-
var e = n.storage, i = "".concat(n.keyPrefix !== void 0 ? n.keyPrefix :
|
|
5505
|
+
var e = n.storage, i = "".concat(n.keyPrefix !== void 0 ? n.keyPrefix : pf).concat(n.key);
|
|
5506
5506
|
return e.removeItem(i, F2);
|
|
5507
5507
|
}
|
|
5508
5508
|
function F2(n) {
|
|
@@ -5602,7 +5602,7 @@ function Cr(n, e) {
|
|
|
5602
5602
|
});
|
|
5603
5603
|
if (l.type === dh)
|
|
5604
5604
|
A = !0;
|
|
5605
|
-
else if (l.type ===
|
|
5605
|
+
else if (l.type === gf) {
|
|
5606
5606
|
if (a) return bn({}, p, {
|
|
5607
5607
|
_persist: bn({}, u, {
|
|
5608
5608
|
rehydrated: !0
|
|
@@ -5652,7 +5652,7 @@ function Gc(n, e) {
|
|
|
5652
5652
|
}
|
|
5653
5653
|
return i;
|
|
5654
5654
|
}
|
|
5655
|
-
function
|
|
5655
|
+
function cA(n) {
|
|
5656
5656
|
for (var e = 1; e < arguments.length; e++) {
|
|
5657
5657
|
var i = arguments[e] != null ? arguments[e] : {};
|
|
5658
5658
|
e % 2 ? Gc(i, !0).forEach(function(t) {
|
|
@@ -5673,12 +5673,12 @@ var hh = {
|
|
|
5673
5673
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : hh, i = arguments.length > 1 ? arguments[1] : void 0;
|
|
5674
5674
|
switch (i.type) {
|
|
5675
5675
|
case uh:
|
|
5676
|
-
return
|
|
5676
|
+
return cA({}, e, {
|
|
5677
5677
|
registry: [].concat(Wc(e.registry), [i.key])
|
|
5678
5678
|
});
|
|
5679
|
-
case
|
|
5679
|
+
case gf:
|
|
5680
5680
|
var t = e.registry.indexOf(i.key), r = Wc(e.registry);
|
|
5681
|
-
return r.splice(t, 1),
|
|
5681
|
+
return r.splice(t, 1), cA({}, e, {
|
|
5682
5682
|
registry: r,
|
|
5683
5683
|
bootstrapped: r.length === 0
|
|
5684
5684
|
});
|
|
@@ -5693,21 +5693,21 @@ function V2(n, e, i) {
|
|
|
5693
5693
|
t[f] && console.error('redux-persist: invalid option passed to persistStore: "'.concat(f, '". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'));
|
|
5694
5694
|
});
|
|
5695
5695
|
}
|
|
5696
|
-
var s =
|
|
5696
|
+
var s = of(z2, hh, void 0), o = function(d) {
|
|
5697
5697
|
s.dispatch({
|
|
5698
5698
|
type: uh,
|
|
5699
5699
|
key: d
|
|
5700
5700
|
});
|
|
5701
5701
|
}, a = function(d, l, c) {
|
|
5702
5702
|
var u = {
|
|
5703
|
-
type:
|
|
5703
|
+
type: gf,
|
|
5704
5704
|
payload: l,
|
|
5705
5705
|
err: c,
|
|
5706
5706
|
key: d
|
|
5707
5707
|
// dispatch to `store` to rehydrate and `persistor` to track result
|
|
5708
5708
|
};
|
|
5709
5709
|
n.dispatch(u), s.dispatch(u);
|
|
5710
|
-
}, A =
|
|
5710
|
+
}, A = cA({}, s, {
|
|
5711
5711
|
purge: function() {
|
|
5712
5712
|
var d = [];
|
|
5713
5713
|
return n.dispatch({
|
|
@@ -7366,7 +7366,7 @@ const gb = /* @__PURE__ */ Ui(pb), at = (n) => new Error(`redux-persist-transfor
|
|
|
7366
7366
|
}), Bb = Cr(
|
|
7367
7367
|
Eb,
|
|
7368
7368
|
Ib
|
|
7369
|
-
),
|
|
7369
|
+
), vf = (n) => {
|
|
7370
7370
|
const e = n.rooms;
|
|
7371
7371
|
return e.activeRoomJID ? e.rooms[e.activeRoomJID] : null;
|
|
7372
7372
|
}, J = Lv({
|
|
@@ -7412,7 +7412,7 @@ function vh(n, e) {
|
|
|
7412
7412
|
return n.apply(e, arguments);
|
|
7413
7413
|
};
|
|
7414
7414
|
}
|
|
7415
|
-
const { toString: Sb } = Object.prototype, { getPrototypeOf:
|
|
7415
|
+
const { toString: Sb } = Object.prototype, { getPrototypeOf: bf } = Object, { iterator: Ls, toStringTag: bh } = Symbol, Fs = /* @__PURE__ */ ((n) => (e) => {
|
|
7416
7416
|
const i = Sb.call(e);
|
|
7417
7417
|
return n[i] || (n[i] = i.slice(8, -1).toLowerCase());
|
|
7418
7418
|
})(/* @__PURE__ */ Object.create(null)), rn = (n) => (n = n.toLowerCase(), (e) => Fs(e) === n), js = (n) => (e) => typeof e === n, { isArray: zi } = Array, Dt = js("undefined");
|
|
@@ -7427,7 +7427,7 @@ function Mb(n) {
|
|
|
7427
7427
|
const Rb = js("string"), Ge = js("function"), yh = js("number"), Ws = (n) => n !== null && typeof n == "object", Pb = (n) => n === !0 || n === !1, Mr = (n) => {
|
|
7428
7428
|
if (Fs(n) !== "object")
|
|
7429
7429
|
return !1;
|
|
7430
|
-
const e =
|
|
7430
|
+
const e = bf(n);
|
|
7431
7431
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(bh in n) && !(Ls in n);
|
|
7432
7432
|
}, Qb = rn("Date"), Ob = rn("File"), Lb = rn("Blob"), Fb = rn("FileList"), jb = (n) => Ws(n) && Ge(n.pipe), Wb = (n) => {
|
|
7433
7433
|
let e;
|
|
@@ -7458,10 +7458,10 @@ function kh(n, e) {
|
|
|
7458
7458
|
return null;
|
|
7459
7459
|
}
|
|
7460
7460
|
const $n = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : window, Ch = (n) => !Dt(n) && n !== $n;
|
|
7461
|
-
function
|
|
7461
|
+
function lA() {
|
|
7462
7462
|
const { caseless: n } = Ch(this) && this || {}, e = {}, i = (t, r) => {
|
|
7463
7463
|
const s = n && kh(e, r) || r;
|
|
7464
|
-
Mr(e[s]) && Mr(t) ? e[s] =
|
|
7464
|
+
Mr(e[s]) && Mr(t) ? e[s] = lA(e[s], t) : Mr(t) ? e[s] = lA({}, t) : zi(t) ? e[s] = t.slice() : e[s] = t;
|
|
7465
7465
|
};
|
|
7466
7466
|
for (let t = 0, r = arguments.length; t < r; t++)
|
|
7467
7467
|
arguments[t] && Lt(arguments[t], i);
|
|
@@ -7480,7 +7480,7 @@ const zb = (n, e, i, { allOwnKeys: t } = {}) => (Lt(e, (r, s) => {
|
|
|
7480
7480
|
do {
|
|
7481
7481
|
for (r = Object.getOwnPropertyNames(n), s = r.length; s-- > 0; )
|
|
7482
7482
|
o = r[s], (!t || t(o, n, e)) && !a[o] && (e[o] = n[o], a[o] = !0);
|
|
7483
|
-
n = i !== !1 &&
|
|
7483
|
+
n = i !== !1 && bf(n);
|
|
7484
7484
|
} while (n && (!i || i(n, e)) && n !== Object.prototype);
|
|
7485
7485
|
return e;
|
|
7486
7486
|
}, Kb = (n, e, i) => {
|
|
@@ -7496,7 +7496,7 @@ const zb = (n, e, i, { allOwnKeys: t } = {}) => (Lt(e, (r, s) => {
|
|
|
7496
7496
|
for (; e-- > 0; )
|
|
7497
7497
|
i[e] = n[e];
|
|
7498
7498
|
return i;
|
|
7499
|
-
}, $b = /* @__PURE__ */ ((n) => (e) => n && e instanceof n)(typeof Uint8Array < "u" &&
|
|
7499
|
+
}, $b = /* @__PURE__ */ ((n) => (e) => n && e instanceof n)(typeof Uint8Array < "u" && bf(Uint8Array)), ew = (n, e) => {
|
|
7500
7500
|
const t = (n && n[Ls]).call(n);
|
|
7501
7501
|
let r;
|
|
7502
7502
|
for (; (r = t.next()) && !r.done; ) {
|
|
@@ -7597,7 +7597,7 @@ const dw = (n) => {
|
|
|
7597
7597
|
isTypedArray: $b,
|
|
7598
7598
|
isFileList: Fb,
|
|
7599
7599
|
forEach: Lt,
|
|
7600
|
-
merge:
|
|
7600
|
+
merge: lA,
|
|
7601
7601
|
extend: zb,
|
|
7602
7602
|
trim: Ub,
|
|
7603
7603
|
stripBOM: Vb,
|
|
@@ -7681,7 +7681,7 @@ re.from = (n, e, i, t, r, s) => {
|
|
|
7681
7681
|
}, (a) => a !== "isAxiosError"), re.call(o, n.message, e, i, t, r), o.cause = n, o.name = n.name, s && Object.assign(o, s), o;
|
|
7682
7682
|
};
|
|
7683
7683
|
const mw = null;
|
|
7684
|
-
function
|
|
7684
|
+
function uA(n) {
|
|
7685
7685
|
return O.isPlainObject(n) || O.isArray(n);
|
|
7686
7686
|
}
|
|
7687
7687
|
function Dh(n) {
|
|
@@ -7693,7 +7693,7 @@ function el(n, e, i) {
|
|
|
7693
7693
|
}).join(i ? "." : "") : e;
|
|
7694
7694
|
}
|
|
7695
7695
|
function pw(n) {
|
|
7696
|
-
return O.isArray(n) && !n.some(
|
|
7696
|
+
return O.isArray(n) && !n.some(uA);
|
|
7697
7697
|
}
|
|
7698
7698
|
const gw = O.toFlatObject(O, {}, null, function(e) {
|
|
7699
7699
|
return /^is[A-Z]/.test(e);
|
|
@@ -7735,12 +7735,12 @@ function Gs(n, e, i) {
|
|
|
7735
7735
|
);
|
|
7736
7736
|
}), !1;
|
|
7737
7737
|
}
|
|
7738
|
-
return
|
|
7738
|
+
return uA(m) ? !0 : (e.append(el(b, p, s), f(m)), !1);
|
|
7739
7739
|
}
|
|
7740
7740
|
const l = [], c = Object.assign(gw, {
|
|
7741
7741
|
defaultVisitor: d,
|
|
7742
7742
|
convertValue: f,
|
|
7743
|
-
isVisitable:
|
|
7743
|
+
isVisitable: uA
|
|
7744
7744
|
});
|
|
7745
7745
|
function u(m, p) {
|
|
7746
7746
|
if (!O.isUndefined(m)) {
|
|
@@ -7775,10 +7775,10 @@ function nl(n) {
|
|
|
7775
7775
|
return e[t];
|
|
7776
7776
|
});
|
|
7777
7777
|
}
|
|
7778
|
-
function
|
|
7778
|
+
function wf(n, e) {
|
|
7779
7779
|
this._pairs = [], n && Gs(n, this, e);
|
|
7780
7780
|
}
|
|
7781
|
-
const Nh =
|
|
7781
|
+
const Nh = wf.prototype;
|
|
7782
7782
|
Nh.append = function(e, i) {
|
|
7783
7783
|
this._pairs.push([e, i]);
|
|
7784
7784
|
};
|
|
@@ -7802,7 +7802,7 @@ function Sh(n, e, i) {
|
|
|
7802
7802
|
});
|
|
7803
7803
|
const r = i && i.serialize;
|
|
7804
7804
|
let s;
|
|
7805
|
-
if (r ? s = r(e, i) : s = O.isURLSearchParams(e) ? e.toString() : new
|
|
7805
|
+
if (r ? s = r(e, i) : s = O.isURLSearchParams(e) ? e.toString() : new wf(e, i).toString(t), s) {
|
|
7806
7806
|
const o = n.indexOf("#");
|
|
7807
7807
|
o !== -1 && (n = n.slice(0, o)), n += (n.indexOf("?") === -1 ? "?" : "&") + s;
|
|
7808
7808
|
}
|
|
@@ -7866,7 +7866,7 @@ const Th = {
|
|
|
7866
7866
|
silentJSONParsing: !0,
|
|
7867
7867
|
forcedJSONParsing: !0,
|
|
7868
7868
|
clarifyTimeoutError: !1
|
|
7869
|
-
}, bw = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
7869
|
+
}, bw = typeof URLSearchParams < "u" ? URLSearchParams : wf, ww = typeof FormData < "u" ? FormData : null, yw = typeof Blob < "u" ? Blob : null, kw = {
|
|
7870
7870
|
isBrowser: !0,
|
|
7871
7871
|
classes: {
|
|
7872
7872
|
URLSearchParams: bw,
|
|
@@ -7874,13 +7874,13 @@ const Th = {
|
|
|
7874
7874
|
Blob: yw
|
|
7875
7875
|
},
|
|
7876
7876
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
7877
|
-
},
|
|
7878
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ew =
|
|
7877
|
+
}, yf = typeof window < "u" && typeof document < "u", hA = typeof navigator == "object" && navigator || void 0, Cw = yf && (!hA || ["ReactNative", "NativeScript", "NS"].indexOf(hA.product) < 0), xw = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
7878
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Ew = yf && window.location.href || "http://localhost", Iw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7879
7879
|
__proto__: null,
|
|
7880
|
-
hasBrowserEnv:
|
|
7880
|
+
hasBrowserEnv: yf,
|
|
7881
7881
|
hasStandardBrowserEnv: Cw,
|
|
7882
7882
|
hasStandardBrowserWebWorkerEnv: xw,
|
|
7883
|
-
navigator:
|
|
7883
|
+
navigator: hA,
|
|
7884
7884
|
origin: Ew
|
|
7885
7885
|
}, Symbol.toStringTag, { value: "Module" })), Pe = {
|
|
7886
7886
|
...Iw,
|
|
@@ -8039,7 +8039,7 @@ function Rw(n) {
|
|
|
8039
8039
|
return e;
|
|
8040
8040
|
}
|
|
8041
8041
|
const Pw = (n) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());
|
|
8042
|
-
function
|
|
8042
|
+
function la(n, e, i, t, r) {
|
|
8043
8043
|
if (O.isFunction(t))
|
|
8044
8044
|
return t.call(this, e, i);
|
|
8045
8045
|
if (r && (e = i), !!O.isString(e)) {
|
|
@@ -8113,7 +8113,7 @@ let Ye = class {
|
|
|
8113
8113
|
has(e, i) {
|
|
8114
8114
|
if (e = At(e), e) {
|
|
8115
8115
|
const t = O.findKey(this, e);
|
|
8116
|
-
return !!(t && this[t] !== void 0 && (!i ||
|
|
8116
|
+
return !!(t && this[t] !== void 0 && (!i || la(this, this[t], t, i)));
|
|
8117
8117
|
}
|
|
8118
8118
|
return !1;
|
|
8119
8119
|
}
|
|
@@ -8123,7 +8123,7 @@ let Ye = class {
|
|
|
8123
8123
|
function s(o) {
|
|
8124
8124
|
if (o = At(o), o) {
|
|
8125
8125
|
const a = O.findKey(t, o);
|
|
8126
|
-
a && (!i ||
|
|
8126
|
+
a && (!i || la(t, t[a], a, i)) && (delete t[a], r = !0);
|
|
8127
8127
|
}
|
|
8128
8128
|
}
|
|
8129
8129
|
return O.isArray(e) ? e.forEach(s) : s(e), r;
|
|
@@ -8133,7 +8133,7 @@ let Ye = class {
|
|
|
8133
8133
|
let t = i.length, r = !1;
|
|
8134
8134
|
for (; t--; ) {
|
|
8135
8135
|
const s = i[t];
|
|
8136
|
-
(!e ||
|
|
8136
|
+
(!e || la(this, this[s], s, e, !0)) && (delete this[s], r = !0);
|
|
8137
8137
|
}
|
|
8138
8138
|
return r;
|
|
8139
8139
|
}
|
|
@@ -8200,7 +8200,7 @@ O.reduceDescriptors(Ye.prototype, ({ value: n }, e) => {
|
|
|
8200
8200
|
};
|
|
8201
8201
|
});
|
|
8202
8202
|
O.freezeMethods(Ye);
|
|
8203
|
-
function
|
|
8203
|
+
function ua(n, e) {
|
|
8204
8204
|
const i = this || Ft, t = e || i, r = Ye.from(t.headers);
|
|
8205
8205
|
let s = t.data;
|
|
8206
8206
|
return O.forEach(n, function(a) {
|
|
@@ -8563,8 +8563,8 @@ const Oh = (n) => {
|
|
|
8563
8563
|
}
|
|
8564
8564
|
}).headers.has("Content-Type");
|
|
8565
8565
|
return n && !e;
|
|
8566
|
-
}), Al = 64 * 1024,
|
|
8567
|
-
stream:
|
|
8566
|
+
}), Al = 64 * 1024, mA = Lh && Fh(() => O.isReadableStream(new Response("").body)), os = {
|
|
8567
|
+
stream: mA && ((n) => n.body)
|
|
8568
8568
|
};
|
|
8569
8569
|
Ys && ((n) => {
|
|
8570
8570
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
@@ -8638,8 +8638,8 @@ const Zw = async (n) => {
|
|
|
8638
8638
|
credentials: y ? l : void 0
|
|
8639
8639
|
});
|
|
8640
8640
|
let C = await fetch(m, c);
|
|
8641
|
-
const w =
|
|
8642
|
-
if (
|
|
8641
|
+
const w = mA && (f === "stream" || f === "response");
|
|
8642
|
+
if (mA && (a || w && p)) {
|
|
8643
8643
|
const g = {};
|
|
8644
8644
|
["status", "statusText", "headers"].forEach((D) => {
|
|
8645
8645
|
g[D] = C[D];
|
|
@@ -8675,12 +8675,12 @@ const Zw = async (n) => {
|
|
|
8675
8675
|
}
|
|
8676
8676
|
) : re.from(y, y && y.code, n, m);
|
|
8677
8677
|
}
|
|
8678
|
-
}),
|
|
8678
|
+
}), pA = {
|
|
8679
8679
|
http: mw,
|
|
8680
8680
|
xhr: Hw,
|
|
8681
8681
|
fetch: ey
|
|
8682
8682
|
};
|
|
8683
|
-
O.forEach(
|
|
8683
|
+
O.forEach(pA, (n, e) => {
|
|
8684
8684
|
if (n) {
|
|
8685
8685
|
try {
|
|
8686
8686
|
Object.defineProperty(n, "name", { value: e });
|
|
@@ -8698,7 +8698,7 @@ const fl = (n) => `- ${n}`, ny = (n) => O.isFunction(n) || n === null || n === !
|
|
|
8698
8698
|
for (let s = 0; s < e; s++) {
|
|
8699
8699
|
i = n[s];
|
|
8700
8700
|
let o;
|
|
8701
|
-
if (t = i, !ny(i) && (t =
|
|
8701
|
+
if (t = i, !ny(i) && (t = pA[(o = String(i)).toLowerCase()], t === void 0))
|
|
8702
8702
|
throw new re(`Unknown adapter '${o}'`);
|
|
8703
8703
|
if (t)
|
|
8704
8704
|
break;
|
|
@@ -8718,24 +8718,24 @@ const fl = (n) => `- ${n}`, ny = (n) => O.isFunction(n) || n === null || n === !
|
|
|
8718
8718
|
}
|
|
8719
8719
|
return t;
|
|
8720
8720
|
},
|
|
8721
|
-
adapters:
|
|
8721
|
+
adapters: pA
|
|
8722
8722
|
};
|
|
8723
|
-
function
|
|
8723
|
+
function ha(n) {
|
|
8724
8724
|
if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
|
|
8725
8725
|
throw new Vi(null, n);
|
|
8726
8726
|
}
|
|
8727
8727
|
function dl(n) {
|
|
8728
|
-
return
|
|
8728
|
+
return ha(n), n.headers = Ye.from(n.headers), n.data = ua.call(
|
|
8729
8729
|
n,
|
|
8730
8730
|
n.transformRequest
|
|
8731
8731
|
), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), jh.getAdapter(n.adapter || Ft.adapter)(n).then(function(t) {
|
|
8732
|
-
return
|
|
8732
|
+
return ha(n), t.data = ua.call(
|
|
8733
8733
|
n,
|
|
8734
8734
|
n.transformResponse,
|
|
8735
8735
|
t
|
|
8736
8736
|
), t.headers = Ye.from(t.headers), t;
|
|
8737
8737
|
}, function(t) {
|
|
8738
|
-
return Rh(t) || (
|
|
8738
|
+
return Rh(t) || (ha(n), t && t.response && (t.response.data = ua.call(
|
|
8739
8739
|
n,
|
|
8740
8740
|
n.transformResponse,
|
|
8741
8741
|
t.response
|
|
@@ -8996,7 +8996,7 @@ function ry(n) {
|
|
|
8996
8996
|
function sy(n) {
|
|
8997
8997
|
return O.isObject(n) && n.isAxiosError === !0;
|
|
8998
8998
|
}
|
|
8999
|
-
const
|
|
8999
|
+
const gA = {
|
|
9000
9000
|
Continue: 100,
|
|
9001
9001
|
SwitchingProtocols: 101,
|
|
9002
9002
|
Processing: 102,
|
|
@@ -9061,8 +9061,8 @@ const pA = {
|
|
|
9061
9061
|
NotExtended: 510,
|
|
9062
9062
|
NetworkAuthenticationRequired: 511
|
|
9063
9063
|
};
|
|
9064
|
-
Object.entries(
|
|
9065
|
-
|
|
9064
|
+
Object.entries(gA).forEach(([n, e]) => {
|
|
9065
|
+
gA[e] = n;
|
|
9066
9066
|
});
|
|
9067
9067
|
function Yh(n) {
|
|
9068
9068
|
const e = new ti(n), i = vh(ti.prototype.request, e);
|
|
@@ -9088,7 +9088,7 @@ ye.mergeConfig = ci;
|
|
|
9088
9088
|
ye.AxiosHeaders = Ye;
|
|
9089
9089
|
ye.formToJSON = (n) => Mh(O.isHTMLForm(n) ? new FormData(n) : n);
|
|
9090
9090
|
ye.getAdapter = jh.getAdapter;
|
|
9091
|
-
ye.HttpStatusCode =
|
|
9091
|
+
ye.HttpStatusCode = gA;
|
|
9092
9092
|
ye.default = ye;
|
|
9093
9093
|
const {
|
|
9094
9094
|
Axios: pI,
|
|
@@ -9116,7 +9116,7 @@ let jt = oy;
|
|
|
9116
9116
|
function ay(n, e) {
|
|
9117
9117
|
n && (_h = n, xe.defaults.baseURL = n), e && (jt = e);
|
|
9118
9118
|
}
|
|
9119
|
-
function
|
|
9119
|
+
function vA() {
|
|
9120
9120
|
return new Promise((n, e) => {
|
|
9121
9121
|
const i = J.getState().chatSettingStore.user;
|
|
9122
9122
|
try {
|
|
@@ -9139,13 +9139,13 @@ function gA() {
|
|
|
9139
9139
|
}
|
|
9140
9140
|
});
|
|
9141
9141
|
}
|
|
9142
|
-
let rr = !1,
|
|
9142
|
+
let rr = !1, bA = [];
|
|
9143
9143
|
const Ay = (n) => new Promise((e, i) => {
|
|
9144
|
-
|
|
9144
|
+
bA.push({ resolve: e, reject: i, config: n });
|
|
9145
9145
|
}), fy = (n) => {
|
|
9146
|
-
for (const e of
|
|
9146
|
+
for (const e of bA)
|
|
9147
9147
|
n && (e.config.headers.Authorization = n), e.resolve(xe(e.config));
|
|
9148
|
-
|
|
9148
|
+
bA = [];
|
|
9149
9149
|
};
|
|
9150
9150
|
xe.interceptors.response.use(
|
|
9151
9151
|
(n) => n,
|
|
@@ -9170,7 +9170,7 @@ xe.interceptors.response.use(
|
|
|
9170
9170
|
return Ay(e);
|
|
9171
9171
|
rr = !0;
|
|
9172
9172
|
try {
|
|
9173
|
-
const i = await
|
|
9173
|
+
const i = await vA();
|
|
9174
9174
|
return rr = !1, e.headers.Authorization = i.data.token, fy(i.data.token), xe(e);
|
|
9175
9175
|
} catch (i) {
|
|
9176
9176
|
return rr = !1, i;
|
|
@@ -9178,7 +9178,7 @@ xe.interceptors.response.use(
|
|
|
9178
9178
|
}
|
|
9179
9179
|
}
|
|
9180
9180
|
);
|
|
9181
|
-
async function
|
|
9181
|
+
async function kf() {
|
|
9182
9182
|
const n = J.getState().chatSettingStore.user.token || "";
|
|
9183
9183
|
try {
|
|
9184
9184
|
return (await xe.get("/chats/my", {
|
|
@@ -9345,7 +9345,7 @@ const gy = (n) => [...py(n)].filter(
|
|
|
9345
9345
|
console.log("No data in stanza");
|
|
9346
9346
|
return;
|
|
9347
9347
|
}
|
|
9348
|
-
const o = await
|
|
9348
|
+
const o = await sf({
|
|
9349
9349
|
data: i,
|
|
9350
9350
|
id: t,
|
|
9351
9351
|
body: r,
|
|
@@ -9354,7 +9354,7 @@ const gy = (n) => [...py(n)].filter(
|
|
|
9354
9354
|
J.getState().rooms.usersSet,
|
|
9355
9355
|
o.user.id
|
|
9356
9356
|
);
|
|
9357
|
-
a && J.dispatch(
|
|
9357
|
+
a && J.dispatch(mf({ newUsers: [a] })), J.dispatch(
|
|
9358
9358
|
Ci({
|
|
9359
9359
|
roomJID: n.attrs.from.split("/")[0],
|
|
9360
9360
|
message: o
|
|
@@ -9383,7 +9383,7 @@ const gy = (n) => [...py(n)].filter(
|
|
|
9383
9383
|
if (!e)
|
|
9384
9384
|
return;
|
|
9385
9385
|
J.dispatch(
|
|
9386
|
-
|
|
9386
|
+
lf({
|
|
9387
9387
|
roomJID: i.attrs.by,
|
|
9388
9388
|
messageId: e.attrs.id
|
|
9389
9389
|
})
|
|
@@ -9433,7 +9433,7 @@ const gy = (n) => [...py(n)].filter(
|
|
|
9433
9433
|
console.log("No data in stanza");
|
|
9434
9434
|
return;
|
|
9435
9435
|
}
|
|
9436
|
-
const s = await
|
|
9436
|
+
const s = await sf({
|
|
9437
9437
|
data: e,
|
|
9438
9438
|
id: i,
|
|
9439
9439
|
body: t,
|
|
@@ -9442,7 +9442,7 @@ const gy = (n) => [...py(n)].filter(
|
|
|
9442
9442
|
J.getState().rooms.usersSet,
|
|
9443
9443
|
s.user.id
|
|
9444
9444
|
);
|
|
9445
|
-
o && J.dispatch(
|
|
9445
|
+
o && J.dispatch(mf({ newUsers: [o] })), J.dispatch(
|
|
9446
9446
|
Ci({
|
|
9447
9447
|
roomJID: n.attrs.from,
|
|
9448
9448
|
message: s
|
|
@@ -9464,7 +9464,7 @@ const gy = (n) => [...py(n)].filter(
|
|
|
9464
9464
|
);
|
|
9465
9465
|
}
|
|
9466
9466
|
}
|
|
9467
|
-
},
|
|
9467
|
+
}, ma = (n) => {
|
|
9468
9468
|
if (n.attrs.id === "presenceInRoom" && !n.getChild("error")) {
|
|
9469
9469
|
const e = n.attrs.from.split("/")[0], i = n?.children[1]?.children[0]?.attrs.role;
|
|
9470
9470
|
J.dispatch(v2({ chatJID: e, role: i }));
|
|
@@ -9478,7 +9478,7 @@ const gy = (n) => [...py(n)].filter(
|
|
|
9478
9478
|
if (J.getState().rooms.rooms[i])
|
|
9479
9479
|
return;
|
|
9480
9480
|
e.presenceInRoomStanza(i);
|
|
9481
|
-
const a = await
|
|
9481
|
+
const a = await kf();
|
|
9482
9482
|
a.items.map((A) => {
|
|
9483
9483
|
J.dispatch(
|
|
9484
9484
|
Qs({
|
|
@@ -9553,7 +9553,7 @@ const gy = (n) => [...py(n)].filter(
|
|
|
9553
9553
|
const t = i.map((r) => r.attrs.code);
|
|
9554
9554
|
if (t.includes("110") && t.includes("321")) {
|
|
9555
9555
|
const r = n.attrs.from.split("/")[0];
|
|
9556
|
-
J.dispatch(
|
|
9556
|
+
J.dispatch(hf({ jid: r })), await kf();
|
|
9557
9557
|
}
|
|
9558
9558
|
}
|
|
9559
9559
|
}, My = async (n, e) => {
|
|
@@ -9615,13 +9615,13 @@ function Py(n, e) {
|
|
|
9615
9615
|
if (n?.attrs?.type !== "headline")
|
|
9616
9616
|
switch (n.name) {
|
|
9617
9617
|
case "message":
|
|
9618
|
-
My(n, e), wy(n), Cy(n), yy(n), ky(n), Iy(n, e), ll(n), xy(n), Ey(n, e.username),
|
|
9618
|
+
My(n, e), wy(n), Cy(n), yy(n), ky(n), Iy(n, e), ll(n), xy(n), Ey(n, e.username), ma(n);
|
|
9619
9619
|
break;
|
|
9620
9620
|
case "presence":
|
|
9621
|
-
Ty(n),
|
|
9621
|
+
Ty(n), ma(n);
|
|
9622
9622
|
break;
|
|
9623
9623
|
case "iq":
|
|
9624
|
-
Sy(n, e), ll(n),
|
|
9624
|
+
Sy(n, e), ll(n), ma(n), By(n), Dy(n);
|
|
9625
9625
|
break;
|
|
9626
9626
|
case "room-config":
|
|
9627
9627
|
Ny(n, e);
|
|
@@ -9738,7 +9738,7 @@ async function Wy(n) {
|
|
|
9738
9738
|
Object.keys(e).map((i) => Ds(n, i))
|
|
9739
9739
|
);
|
|
9740
9740
|
}
|
|
9741
|
-
function
|
|
9741
|
+
function pa(n, e, i) {
|
|
9742
9742
|
if (n.status !== "online" || n._status === "closing" || n._status === "closed")
|
|
9743
9743
|
return null;
|
|
9744
9744
|
const t = "ping-" + Date.now() + "-" + Math.floor(Math.random() * 1e4), r = q.xml(
|
|
@@ -9748,7 +9748,7 @@ function ma(n, e, i) {
|
|
|
9748
9748
|
);
|
|
9749
9749
|
return n.send(r), t;
|
|
9750
9750
|
}
|
|
9751
|
-
function
|
|
9751
|
+
function ga(n, e) {
|
|
9752
9752
|
return n.is("iq") && n.attrs.id === e && n.attrs.type === "result";
|
|
9753
9753
|
}
|
|
9754
9754
|
class Gy {
|
|
@@ -9851,7 +9851,7 @@ class Gy {
|
|
|
9851
9851
|
}), this.client.on("stanza", (e) => {
|
|
9852
9852
|
this.lastActivityTs = Date.now();
|
|
9853
9853
|
try {
|
|
9854
|
-
this.lastPingId &&
|
|
9854
|
+
this.lastPingId && ga(e, this.lastPingId) && this.handlePong();
|
|
9855
9855
|
} catch {
|
|
9856
9856
|
}
|
|
9857
9857
|
Py.bind(this, e, this)();
|
|
@@ -9867,11 +9867,11 @@ class Gy {
|
|
|
9867
9867
|
this.idlePingTimeout = setTimeout(() => {
|
|
9868
9868
|
if (this.status !== "online" || this.pingInFlight) return;
|
|
9869
9869
|
this.pingInFlight = !0;
|
|
9870
|
-
const t =
|
|
9870
|
+
const t = pa(this.client, this.host);
|
|
9871
9871
|
this.lastPingId = t;
|
|
9872
9872
|
let r = !1;
|
|
9873
9873
|
const s = (o) => {
|
|
9874
|
-
|
|
9874
|
+
ga(o, t) && (r = !0, this.pingTimeout && clearTimeout(this.pingTimeout), this.client.removeListener("stanza", s), this.lastPingId = null, this.pingInFlight = !1, this.markActivity());
|
|
9875
9875
|
};
|
|
9876
9876
|
this.client.on("stanza", s), this.pingTimeout = setTimeout(async () => {
|
|
9877
9877
|
r || (this.client.removeListener("stanza", s), this.lastPingId = null, this.pingInFlight = !1, console.warn("Ping timeout, scheduling reconnect..."), this.scheduleReconnect("ping-timeout"));
|
|
@@ -9882,12 +9882,12 @@ class Gy {
|
|
|
9882
9882
|
this.idlePingTimeout && clearTimeout(this.idlePingTimeout), this.idlePingTimeout = setTimeout(() => {
|
|
9883
9883
|
if (this.status === "online") {
|
|
9884
9884
|
this.pingInFlight = !0;
|
|
9885
|
-
const e =
|
|
9885
|
+
const e = pa(this.client, this.host);
|
|
9886
9886
|
this.lastPingId = e, this.pingTimeout = setTimeout(() => {
|
|
9887
9887
|
this.handlePingTimeout(), this.pingInFlight = !1;
|
|
9888
9888
|
}, this.pongTimeoutMs);
|
|
9889
9889
|
const i = (t) => {
|
|
9890
|
-
|
|
9890
|
+
ga(t, e) && (this.pingTimeout && clearTimeout(this.pingTimeout), this.lastPingId = null, this.pingInFlight = !1, this.client.removeListener("stanza", i), this.markActivity());
|
|
9891
9891
|
};
|
|
9892
9892
|
this.client.on("stanza", i);
|
|
9893
9893
|
}
|
|
@@ -10158,7 +10158,7 @@ class Gy {
|
|
|
10158
10158
|
}
|
|
10159
10159
|
sendPingStanza() {
|
|
10160
10160
|
if (!this.client || this.status !== "online") return;
|
|
10161
|
-
const e =
|
|
10161
|
+
const e = pa(this.client, this.host);
|
|
10162
10162
|
this.lastPingId = e, this.pingTimeout && clearTimeout(this.pingTimeout), this.pingTimeout = setTimeout(() => {
|
|
10163
10163
|
}, this.pongTimeoutMs);
|
|
10164
10164
|
}
|
|
@@ -10235,14 +10235,14 @@ class Gy {
|
|
|
10235
10235
|
}, t);
|
|
10236
10236
|
}
|
|
10237
10237
|
}
|
|
10238
|
-
let
|
|
10238
|
+
let wA = null;
|
|
10239
10239
|
function ul(n) {
|
|
10240
|
-
|
|
10240
|
+
wA = n;
|
|
10241
10241
|
}
|
|
10242
10242
|
function Yy() {
|
|
10243
|
-
if (!
|
|
10243
|
+
if (!wA)
|
|
10244
10244
|
throw new Error("XMPP client is not initialized");
|
|
10245
|
-
return
|
|
10245
|
+
return wA;
|
|
10246
10246
|
}
|
|
10247
10247
|
const as = (n, e) => {
|
|
10248
10248
|
if (n && n && Object.keys(n).length > 0) {
|
|
@@ -10362,12 +10362,12 @@ const as = (n, e) => {
|
|
|
10362
10362
|
}
|
|
10363
10363
|
);
|
|
10364
10364
|
}, ze = () => {
|
|
10365
|
-
const n =
|
|
10365
|
+
const n = $A(zh);
|
|
10366
10366
|
if (!n)
|
|
10367
10367
|
throw new Error("useXmppClient must be used within an XmppProvider");
|
|
10368
10368
|
return n;
|
|
10369
10369
|
};
|
|
10370
|
-
var sr = { exports: {} },
|
|
10370
|
+
var sr = { exports: {} }, va = {};
|
|
10371
10371
|
/**
|
|
10372
10372
|
* @license React
|
|
10373
10373
|
* use-sync-external-store-with-selector.production.js
|
|
@@ -10379,14 +10379,14 @@ var sr = { exports: {} }, ga = {};
|
|
|
10379
10379
|
*/
|
|
10380
10380
|
var hl;
|
|
10381
10381
|
function qy() {
|
|
10382
|
-
if (hl) return
|
|
10382
|
+
if (hl) return va;
|
|
10383
10383
|
hl = 1;
|
|
10384
10384
|
var n = Me;
|
|
10385
10385
|
function e(A, f) {
|
|
10386
10386
|
return A === f && (A !== 0 || 1 / A === 1 / f) || A !== A && f !== f;
|
|
10387
10387
|
}
|
|
10388
10388
|
var i = typeof Object.is == "function" ? Object.is : e, t = n.useSyncExternalStore, r = n.useRef, s = n.useEffect, o = n.useMemo, a = n.useDebugValue;
|
|
10389
|
-
return
|
|
10389
|
+
return va.useSyncExternalStoreWithSelector = function(A, f, d, l, c) {
|
|
10390
10390
|
var u = r(null);
|
|
10391
10391
|
if (u.current === null) {
|
|
10392
10392
|
var m = { hasValue: !1, value: null };
|
|
@@ -10426,9 +10426,9 @@ function qy() {
|
|
|
10426
10426
|
},
|
|
10427
10427
|
[p]
|
|
10428
10428
|
), a(p), p;
|
|
10429
|
-
},
|
|
10429
|
+
}, va;
|
|
10430
10430
|
}
|
|
10431
|
-
var
|
|
10431
|
+
var ba = {};
|
|
10432
10432
|
/**
|
|
10433
10433
|
* @license React
|
|
10434
10434
|
* use-sync-external-store-with-selector.development.js
|
|
@@ -10446,7 +10446,7 @@ function Hy() {
|
|
|
10446
10446
|
}
|
|
10447
10447
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
10448
10448
|
var e = Me, i = typeof Object.is == "function" ? Object.is : n, t = e.useSyncExternalStore, r = e.useRef, s = e.useEffect, o = e.useMemo, a = e.useDebugValue;
|
|
10449
|
-
|
|
10449
|
+
ba.useSyncExternalStoreWithSelector = function(A, f, d, l, c) {
|
|
10450
10450
|
var u = r(null);
|
|
10451
10451
|
if (u.current === null) {
|
|
10452
10452
|
var m = { hasValue: !1, value: null };
|
|
@@ -10488,7 +10488,7 @@ function Hy() {
|
|
|
10488
10488
|
[p]
|
|
10489
10489
|
), a(p), p;
|
|
10490
10490
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
10491
|
-
}()),
|
|
10491
|
+
}()), ba;
|
|
10492
10492
|
}
|
|
10493
10493
|
var pl;
|
|
10494
10494
|
function Uy() {
|
|
@@ -10618,7 +10618,7 @@ function o3(n) {
|
|
|
10618
10618
|
return /* @__PURE__ */ qe.createElement(a.Provider, { value: s }, e);
|
|
10619
10619
|
}
|
|
10620
10620
|
var a3 = o3;
|
|
10621
|
-
function
|
|
10621
|
+
function Cf(n = Hn) {
|
|
10622
10622
|
return function() {
|
|
10623
10623
|
const i = qe.useContext(n);
|
|
10624
10624
|
if (process.env.NODE_ENV !== "production" && !i)
|
|
@@ -10628,11 +10628,11 @@ function kf(n = Hn) {
|
|
|
10628
10628
|
return i;
|
|
10629
10629
|
};
|
|
10630
10630
|
}
|
|
10631
|
-
var Vh = /* @__PURE__ */
|
|
10631
|
+
var Vh = /* @__PURE__ */ Cf();
|
|
10632
10632
|
function Jh(n = Hn) {
|
|
10633
10633
|
const e = n === Hn ? Vh : (
|
|
10634
10634
|
// @ts-ignore
|
|
10635
|
-
|
|
10635
|
+
Cf(n)
|
|
10636
10636
|
), i = () => {
|
|
10637
10637
|
const { store: t } = e();
|
|
10638
10638
|
return t;
|
|
@@ -10650,7 +10650,7 @@ function f3(n = Hn) {
|
|
|
10650
10650
|
}
|
|
10651
10651
|
var be = /* @__PURE__ */ f3(), d3 = (n, e) => n === e;
|
|
10652
10652
|
function c3(n = Hn) {
|
|
10653
|
-
const e = n === Hn ? Vh :
|
|
10653
|
+
const e = n === Hn ? Vh : Cf(n), i = (t, r = {}) => {
|
|
10654
10654
|
const { equalityFn: s = d3 } = typeof r == "function" ? { equalityFn: r } : r;
|
|
10655
10655
|
if (process.env.NODE_ENV !== "production") {
|
|
10656
10656
|
if (!t)
|
|
@@ -10756,7 +10756,7 @@ var h3 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|def
|
|
|
10756
10756
|
return h3.test(n) || n.charCodeAt(0) === 111 && n.charCodeAt(1) === 110 && n.charCodeAt(2) < 91;
|
|
10757
10757
|
}
|
|
10758
10758
|
/* Z+1 */
|
|
10759
|
-
), we = "-ms-", yt = "-moz-", he = "-webkit-", Xh = "comm", Hs = "rule",
|
|
10759
|
+
), we = "-ms-", yt = "-moz-", he = "-webkit-", Xh = "comm", Hs = "rule", xf = "decl", p3 = "@import", Kh = "@keyframes", g3 = "@layer", Zh = Math.abs, Ef = String.fromCharCode, yA = Object.assign;
|
|
10760
10760
|
function v3(n, e) {
|
|
10761
10761
|
return Ie(n, 0) ^ 45 ? (((e << 2 ^ Ie(n, 0)) << 2 ^ Ie(n, 1)) << 2 ^ Ie(n, 2)) << 2 ^ Ie(n, 3) : 0;
|
|
10762
10762
|
}
|
|
@@ -10800,7 +10800,7 @@ function zs(n, e, i, t, r, s, o, a) {
|
|
|
10800
10800
|
return { value: n, root: e, parent: i, type: t, props: r, children: s, line: Us, column: Ri, length: o, return: "", siblings: a };
|
|
10801
10801
|
}
|
|
10802
10802
|
function Pn(n, e) {
|
|
10803
|
-
return
|
|
10803
|
+
return yA(zs("", null, null, "", null, null, 0, n.siblings), n, { length: -n.length }, e);
|
|
10804
10804
|
}
|
|
10805
10805
|
function wi(n) {
|
|
10806
10806
|
for (; n.root; )
|
|
@@ -10825,7 +10825,7 @@ function Or() {
|
|
|
10825
10825
|
function Vs(n, e) {
|
|
10826
10826
|
return Mi(Ji, n, e);
|
|
10827
10827
|
}
|
|
10828
|
-
function
|
|
10828
|
+
function kA(n) {
|
|
10829
10829
|
switch (n) {
|
|
10830
10830
|
// \0 \t \n \r \s whitespace token
|
|
10831
10831
|
case 0:
|
|
@@ -10869,20 +10869,20 @@ function k3(n) {
|
|
|
10869
10869
|
function C3(n) {
|
|
10870
10870
|
return Ji = "", n;
|
|
10871
10871
|
}
|
|
10872
|
-
function
|
|
10873
|
-
return $h(Vs(Je - 1,
|
|
10872
|
+
function wa(n) {
|
|
10873
|
+
return $h(Vs(Je - 1, CA(n === 91 ? n + 2 : n === 40 ? n + 1 : n)));
|
|
10874
10874
|
}
|
|
10875
10875
|
function x3(n) {
|
|
10876
10876
|
for (; (Ee = ri()) && Ee < 33; )
|
|
10877
10877
|
$e();
|
|
10878
|
-
return
|
|
10878
|
+
return kA(n) > 2 || kA(Ee) > 3 ? "" : " ";
|
|
10879
10879
|
}
|
|
10880
10880
|
function E3(n, e) {
|
|
10881
10881
|
for (; --e && $e() && !(Ee < 48 || Ee > 102 || Ee > 57 && Ee < 65 || Ee > 70 && Ee < 97); )
|
|
10882
10882
|
;
|
|
10883
10883
|
return Vs(n, Or() + (e < 6 && ri() == 32 && $e() == 32));
|
|
10884
10884
|
}
|
|
10885
|
-
function
|
|
10885
|
+
function CA(n) {
|
|
10886
10886
|
for (; $e(); )
|
|
10887
10887
|
switch (Ee) {
|
|
10888
10888
|
// ] ) " '
|
|
@@ -10891,11 +10891,11 @@ function kA(n) {
|
|
|
10891
10891
|
// " '
|
|
10892
10892
|
case 34:
|
|
10893
10893
|
case 39:
|
|
10894
|
-
n !== 34 && n !== 39 &&
|
|
10894
|
+
n !== 34 && n !== 39 && CA(Ee);
|
|
10895
10895
|
break;
|
|
10896
10896
|
// (
|
|
10897
10897
|
case 40:
|
|
10898
|
-
n === 41 &&
|
|
10898
|
+
n === 41 && CA(n);
|
|
10899
10899
|
break;
|
|
10900
10900
|
// \
|
|
10901
10901
|
case 92:
|
|
@@ -10908,10 +10908,10 @@ function I3(n, e) {
|
|
|
10908
10908
|
for (; $e() && n + Ee !== 57; )
|
|
10909
10909
|
if (n + Ee === 84 && ri() === 47)
|
|
10910
10910
|
break;
|
|
10911
|
-
return "/*" + Vs(e, Je - 1) + "*" +
|
|
10911
|
+
return "/*" + Vs(e, Je - 1) + "*" + Ef(n === 47 ? n : $e());
|
|
10912
10912
|
}
|
|
10913
10913
|
function B3(n) {
|
|
10914
|
-
for (; !
|
|
10914
|
+
for (; !kA(ri()); )
|
|
10915
10915
|
$e();
|
|
10916
10916
|
return Vs(n, Je);
|
|
10917
10917
|
}
|
|
@@ -10924,14 +10924,14 @@ function Lr(n, e, i, t, r, s, o, a, A) {
|
|
|
10924
10924
|
// (
|
|
10925
10925
|
case 40:
|
|
10926
10926
|
if (m != 108 && Ie(x, l - 1) == 58) {
|
|
10927
|
-
Qr(x += oe(
|
|
10927
|
+
Qr(x += oe(wa(C), "&", "&\f"), "&\f", Zh(f ? a[f - 1] : 0)) != -1 && (y = -1);
|
|
10928
10928
|
break;
|
|
10929
10929
|
}
|
|
10930
10930
|
// " ' [
|
|
10931
10931
|
case 34:
|
|
10932
10932
|
case 39:
|
|
10933
10933
|
case 91:
|
|
10934
|
-
x +=
|
|
10934
|
+
x += wa(C);
|
|
10935
10935
|
break;
|
|
10936
10936
|
// \t \n \r \s
|
|
10937
10937
|
case 9:
|
|
@@ -11004,7 +11004,7 @@ function Lr(n, e, i, t, r, s, o, a, A) {
|
|
|
11004
11004
|
else if (C == 125 && p++ == 0 && y3() == 125)
|
|
11005
11005
|
continue;
|
|
11006
11006
|
}
|
|
11007
|
-
switch (x +=
|
|
11007
|
+
switch (x += Ef(C), C * p) {
|
|
11008
11008
|
// &
|
|
11009
11009
|
case 38:
|
|
11010
11010
|
y = d > 0 ? 1 : (x += "\f", -1);
|
|
@@ -11015,7 +11015,7 @@ function Lr(n, e, i, t, r, s, o, a, A) {
|
|
|
11015
11015
|
break;
|
|
11016
11016
|
// @
|
|
11017
11017
|
case 64:
|
|
11018
|
-
ri() === 45 && (x +=
|
|
11018
|
+
ri() === 45 && (x += wa($e())), c = ri(), d = l = fn(w = x += B3(Or())), C++;
|
|
11019
11019
|
break;
|
|
11020
11020
|
// -
|
|
11021
11021
|
case 45:
|
|
@@ -11031,10 +11031,10 @@ function bl(n, e, i, t, r, s, o, a, A, f, d, l) {
|
|
|
11031
11031
|
return zs(n, e, i, r === 0 ? Hs : a, A, f, d, l);
|
|
11032
11032
|
}
|
|
11033
11033
|
function N3(n, e, i, t) {
|
|
11034
|
-
return zs(n, e, i, Xh,
|
|
11034
|
+
return zs(n, e, i, Xh, Ef(w3()), Mi(n, 2, -2), 0, t);
|
|
11035
11035
|
}
|
|
11036
11036
|
function wl(n, e, i, t, r) {
|
|
11037
|
-
return zs(n, e, i,
|
|
11037
|
+
return zs(n, e, i, xf, Mi(n, 0, t), Mi(n, t + 1, -1), t, r);
|
|
11038
11038
|
}
|
|
11039
11039
|
function im(n, e, i) {
|
|
11040
11040
|
switch (v3(n, e)) {
|
|
@@ -11228,7 +11228,7 @@ function S3(n, e, i, t) {
|
|
|
11228
11228
|
case g3:
|
|
11229
11229
|
if (n.children.length) break;
|
|
11230
11230
|
case p3:
|
|
11231
|
-
case
|
|
11231
|
+
case xf:
|
|
11232
11232
|
return n.return = n.return || n.value;
|
|
11233
11233
|
case Xh:
|
|
11234
11234
|
return "";
|
|
@@ -11255,7 +11255,7 @@ function M3(n) {
|
|
|
11255
11255
|
function R3(n, e, i, t) {
|
|
11256
11256
|
if (n.length > -1 && !n.return)
|
|
11257
11257
|
switch (n.type) {
|
|
11258
|
-
case
|
|
11258
|
+
case xf:
|
|
11259
11259
|
n.return = im(n.value, n.length, i);
|
|
11260
11260
|
return;
|
|
11261
11261
|
case Kh:
|
|
@@ -11267,11 +11267,11 @@ function R3(n, e, i, t) {
|
|
|
11267
11267
|
// :read-(only|write)
|
|
11268
11268
|
case ":read-only":
|
|
11269
11269
|
case ":read-write":
|
|
11270
|
-
wi(Pn(n, { props: [oe(r, /:(read-\w+)/, ":" + yt + "$1")] })), wi(Pn(n, { props: [r] })),
|
|
11270
|
+
wi(Pn(n, { props: [oe(r, /:(read-\w+)/, ":" + yt + "$1")] })), wi(Pn(n, { props: [r] })), yA(n, { props: vl(i, t) });
|
|
11271
11271
|
break;
|
|
11272
11272
|
// :placeholder
|
|
11273
11273
|
case "::placeholder":
|
|
11274
|
-
wi(Pn(n, { props: [oe(r, /:(plac\w+)/, ":" + he + "input-$1")] })), wi(Pn(n, { props: [oe(r, /:(plac\w+)/, ":" + yt + "$1")] })), wi(Pn(n, { props: [oe(r, /:(plac\w+)/, we + "input-$1")] })), wi(Pn(n, { props: [r] })),
|
|
11274
|
+
wi(Pn(n, { props: [oe(r, /:(plac\w+)/, ":" + he + "input-$1")] })), wi(Pn(n, { props: [oe(r, /:(plac\w+)/, ":" + yt + "$1")] })), wi(Pn(n, { props: [oe(r, /:(plac\w+)/, we + "input-$1")] })), wi(Pn(n, { props: [r] })), yA(n, { props: vl(i, t) });
|
|
11275
11275
|
break;
|
|
11276
11276
|
}
|
|
11277
11277
|
return "";
|
|
@@ -11326,7 +11326,7 @@ var P3 = {
|
|
|
11326
11326
|
strokeMiterlimit: 1,
|
|
11327
11327
|
strokeOpacity: 1,
|
|
11328
11328
|
strokeWidth: 1
|
|
11329
|
-
}, ui = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", tm = "active", rm = "data-styled-version", Js = "6.1.19",
|
|
11329
|
+
}, ui = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", tm = "active", rm = "data-styled-version", Js = "6.1.19", If = `/*!sc*/
|
|
11330
11330
|
`, fs = typeof window < "u" && typeof document < "u", Q3 = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), yl = /invalid hook call/i, or = /* @__PURE__ */ new Set(), O3 = function(n, e) {
|
|
11331
11331
|
if (process.env.NODE_ENV !== "production") {
|
|
11332
11332
|
var i = e ? ' with the id of "'.concat(e, '"') : "", t = "The component ".concat(n).concat(i, ` has been created dynamically.
|
|
@@ -11350,34 +11350,34 @@ See https://styled-components.com/docs/basics#define-styled-components-outside-o
|
|
|
11350
11350
|
function L3(n, e, i) {
|
|
11351
11351
|
return i === void 0 && (i = Pi), n.theme !== i.theme && n.theme || e || i.theme;
|
|
11352
11352
|
}
|
|
11353
|
-
var
|
|
11353
|
+
var xA = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), F3 = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, j3 = /(^-|-$)/g;
|
|
11354
11354
|
function kl(n) {
|
|
11355
11355
|
return n.replace(F3, "-").replace(j3, "");
|
|
11356
11356
|
}
|
|
11357
11357
|
var W3 = /(a)(d)/gi, ar = 52, Cl = function(n) {
|
|
11358
11358
|
return String.fromCharCode(n + (n > 25 ? 39 : 97));
|
|
11359
11359
|
};
|
|
11360
|
-
function
|
|
11360
|
+
function EA(n) {
|
|
11361
11361
|
var e, i = "";
|
|
11362
11362
|
for (e = Math.abs(n); e > ar; e = e / ar | 0) i = Cl(e % ar) + i;
|
|
11363
11363
|
return (Cl(e % ar) + i).replace(W3, "$1-$2");
|
|
11364
11364
|
}
|
|
11365
|
-
var
|
|
11365
|
+
var ya, sm = 5381, Zn = function(n, e) {
|
|
11366
11366
|
for (var i = e.length; i; ) n = 33 * n ^ e.charCodeAt(--i);
|
|
11367
11367
|
return n;
|
|
11368
11368
|
}, om = function(n) {
|
|
11369
11369
|
return Zn(sm, n);
|
|
11370
11370
|
};
|
|
11371
11371
|
function am(n) {
|
|
11372
|
-
return
|
|
11372
|
+
return EA(om(n) >>> 0);
|
|
11373
11373
|
}
|
|
11374
11374
|
function Am(n) {
|
|
11375
11375
|
return process.env.NODE_ENV !== "production" && typeof n == "string" && n || n.displayName || n.name || "Component";
|
|
11376
11376
|
}
|
|
11377
|
-
function
|
|
11377
|
+
function ka(n) {
|
|
11378
11378
|
return typeof n == "string" && (process.env.NODE_ENV === "production" || n.charAt(0) === n.charAt(0).toLowerCase());
|
|
11379
11379
|
}
|
|
11380
|
-
var fm = typeof Symbol == "function" && Symbol.for, dm = fm ? Symbol.for("react.memo") : 60115, G3 = fm ? Symbol.for("react.forward_ref") : 60112, Y3 = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, _3 = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, cm = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, q3 = ((
|
|
11380
|
+
var fm = typeof Symbol == "function" && Symbol.for, dm = fm ? Symbol.for("react.memo") : 60115, G3 = fm ? Symbol.for("react.forward_ref") : 60112, Y3 = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, _3 = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, cm = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, q3 = ((ya = {})[G3] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, ya[dm] = cm, ya);
|
|
11381
11381
|
function xl(n) {
|
|
11382
11382
|
return ("type" in (e = n) && e.type.$$typeof) === dm ? cm : "$$typeof" in n ? q3[n.$$typeof] : Y3;
|
|
11383
11383
|
var e;
|
|
@@ -11407,13 +11407,13 @@ function lm(n, e, i) {
|
|
|
11407
11407
|
function Qi(n) {
|
|
11408
11408
|
return typeof n == "function";
|
|
11409
11409
|
}
|
|
11410
|
-
function
|
|
11410
|
+
function Bf(n) {
|
|
11411
11411
|
return typeof n == "object" && "styledComponentId" in n;
|
|
11412
11412
|
}
|
|
11413
11413
|
function ei(n, e) {
|
|
11414
11414
|
return n && e ? "".concat(n, " ").concat(e) : n || e || "";
|
|
11415
11415
|
}
|
|
11416
|
-
function
|
|
11416
|
+
function IA(n, e) {
|
|
11417
11417
|
if (n.length === 0) return "";
|
|
11418
11418
|
for (var i = n[0], t = 1; t < n.length; t++) i += n[t];
|
|
11419
11419
|
return i;
|
|
@@ -11421,13 +11421,13 @@ function EA(n, e) {
|
|
|
11421
11421
|
function Oi(n) {
|
|
11422
11422
|
return n !== null && typeof n == "object" && n.constructor.name === Object.name && !("props" in n && n.$$typeof);
|
|
11423
11423
|
}
|
|
11424
|
-
function
|
|
11424
|
+
function BA(n, e, i) {
|
|
11425
11425
|
if (i === void 0 && (i = !1), !i && !Oi(n) && !Array.isArray(n)) return e;
|
|
11426
|
-
if (Array.isArray(e)) for (var t = 0; t < e.length; t++) n[t] =
|
|
11427
|
-
else if (Oi(e)) for (var t in e) n[t] =
|
|
11426
|
+
if (Array.isArray(e)) for (var t = 0; t < e.length; t++) n[t] = BA(n[t], e[t]);
|
|
11427
|
+
else if (Oi(e)) for (var t in e) n[t] = BA(n[t], e[t]);
|
|
11428
11428
|
return n;
|
|
11429
11429
|
}
|
|
11430
|
-
function
|
|
11430
|
+
function Df(n, e) {
|
|
11431
11431
|
Object.defineProperty(n, "toString", { value: e });
|
|
11432
11432
|
}
|
|
11433
11433
|
var J3 = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
@@ -11506,7 +11506,7 @@ var K3 = function() {
|
|
|
11506
11506
|
}, n.prototype.getGroup = function(e) {
|
|
11507
11507
|
var i = "";
|
|
11508
11508
|
if (e >= this.length || this.groupSizes[e] === 0) return i;
|
|
11509
|
-
for (var t = this.groupSizes[e], r = this.indexOfGroup(e), s = r + t, o = r; o < s; o++) i += "".concat(this.tag.getRule(o)).concat(
|
|
11509
|
+
for (var t = this.groupSizes[e], r = this.indexOfGroup(e), s = r + t, o = r; o < s; o++) i += "".concat(this.tag.getRule(o)).concat(If);
|
|
11510
11510
|
return i;
|
|
11511
11511
|
}, n;
|
|
11512
11512
|
}(), Z3 = 1 << 30, Fr = /* @__PURE__ */ new Map(), ds = /* @__PURE__ */ new Map(), jr = 1, Ar = function(n) {
|
|
@@ -11520,7 +11520,7 @@ var K3 = function() {
|
|
|
11520
11520
|
}, ek = "style[".concat(ui, "][").concat(rm, '="').concat(Js, '"]'), nk = new RegExp("^".concat(ui, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ik = function(n, e, i) {
|
|
11521
11521
|
for (var t, r = i.split(","), s = 0, o = r.length; s < o; s++) (t = r[s]) && n.registerName(e, t);
|
|
11522
11522
|
}, tk = function(n, e) {
|
|
11523
|
-
for (var i, t = ((i = e.textContent) !== null && i !== void 0 ? i : "").split(
|
|
11523
|
+
for (var i, t = ((i = e.textContent) !== null && i !== void 0 ? i : "").split(If), r = [], s = 0, o = t.length; s < o; s++) {
|
|
11524
11524
|
var a = t[s].trim();
|
|
11525
11525
|
if (a) {
|
|
11526
11526
|
var A = a.match(nk);
|
|
@@ -11600,7 +11600,7 @@ var um = function(n) {
|
|
|
11600
11600
|
function n(e, i, t) {
|
|
11601
11601
|
e === void 0 && (e = Pi), i === void 0 && (i = {});
|
|
11602
11602
|
var r = this;
|
|
11603
|
-
this.options = je(je({}, Ak), e), this.gs = i, this.names = new Map(t), this.server = !!e.isServer, !this.server && fs && Dl && (Dl = !1, Bl(this)),
|
|
11603
|
+
this.options = je(je({}, Ak), e), this.gs = i, this.names = new Map(t), this.server = !!e.isServer, !this.server && fs && Dl && (Dl = !1, Bl(this)), Df(this, function() {
|
|
11604
11604
|
return function(s) {
|
|
11605
11605
|
for (var o = s.getTag(), a = o.length, A = "", f = function(l) {
|
|
11606
11606
|
var c = function(y) {
|
|
@@ -11612,7 +11612,7 @@ var um = function(n) {
|
|
|
11612
11612
|
var p = "".concat(ui, ".g").concat(l, '[id="').concat(c, '"]'), b = "";
|
|
11613
11613
|
u !== void 0 && u.forEach(function(y) {
|
|
11614
11614
|
y.length > 0 && (b += "".concat(y, ","));
|
|
11615
|
-
}), A += "".concat(m).concat(p, '{content:"').concat(b, '"}').concat(
|
|
11615
|
+
}), A += "".concat(m).concat(p, '{content:"').concat(b, '"}').concat(If);
|
|
11616
11616
|
}, d = 0; d < a; d++) f(d);
|
|
11617
11617
|
return A;
|
|
11618
11618
|
}(r);
|
|
@@ -11677,25 +11677,25 @@ function ck(n) {
|
|
|
11677
11677
|
return u.name || Xi(15), Zn(c, u.name);
|
|
11678
11678
|
}, sm).toString() : "", l;
|
|
11679
11679
|
}
|
|
11680
|
-
var lk = new hm(),
|
|
11680
|
+
var lk = new hm(), DA = ck(), pm = Me.createContext({ shouldForwardProp: void 0, styleSheet: lk, stylis: DA });
|
|
11681
11681
|
pm.Consumer;
|
|
11682
11682
|
Me.createContext(void 0);
|
|
11683
11683
|
function Nl() {
|
|
11684
|
-
return
|
|
11684
|
+
return $A(pm);
|
|
11685
11685
|
}
|
|
11686
|
-
var
|
|
11686
|
+
var NA = function() {
|
|
11687
11687
|
function n(e, i) {
|
|
11688
11688
|
var t = this;
|
|
11689
11689
|
this.inject = function(r, s) {
|
|
11690
|
-
s === void 0 && (s =
|
|
11690
|
+
s === void 0 && (s = DA);
|
|
11691
11691
|
var o = t.name + s.hash;
|
|
11692
11692
|
r.hasNameForId(t.id, o) || r.insertRules(t.id, o, s(t.rules, o, "@keyframes"));
|
|
11693
|
-
}, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = i,
|
|
11693
|
+
}, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = i, Df(this, function() {
|
|
11694
11694
|
throw Xi(12, String(t.name));
|
|
11695
11695
|
});
|
|
11696
11696
|
}
|
|
11697
11697
|
return n.prototype.getName = function(e) {
|
|
11698
|
-
return e === void 0 && (e =
|
|
11698
|
+
return e === void 0 && (e = DA), this.name + e.hash;
|
|
11699
11699
|
}, n;
|
|
11700
11700
|
}(), uk = function(n) {
|
|
11701
11701
|
return n >= "A" && n <= "Z";
|
|
@@ -11720,21 +11720,21 @@ var gm = function(n) {
|
|
|
11720
11720
|
};
|
|
11721
11721
|
function si(n, e, i, t) {
|
|
11722
11722
|
if (gm(n)) return [];
|
|
11723
|
-
if (
|
|
11723
|
+
if (Bf(n)) return [".".concat(n.styledComponentId)];
|
|
11724
11724
|
if (Qi(n)) {
|
|
11725
11725
|
if (!Qi(s = n) || s.prototype && s.prototype.isReactComponent || !e) return [n];
|
|
11726
11726
|
var r = n(e);
|
|
11727
|
-
return process.env.NODE_ENV === "production" || typeof r != "object" || Array.isArray(r) || r instanceof
|
|
11727
|
+
return process.env.NODE_ENV === "production" || typeof r != "object" || Array.isArray(r) || r instanceof NA || Oi(r) || r === null || console.error("".concat(Am(n), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), si(r, e, i, t);
|
|
11728
11728
|
}
|
|
11729
11729
|
var s;
|
|
11730
|
-
return n instanceof
|
|
11730
|
+
return n instanceof NA ? i ? (n.inject(i, t), [n.getName(t)]) : [n] : Oi(n) ? vm(n) : Array.isArray(n) ? Array.prototype.concat.apply(Xs, n.map(function(o) {
|
|
11731
11731
|
return si(o, e, i, t);
|
|
11732
11732
|
})) : [n.toString()];
|
|
11733
11733
|
}
|
|
11734
11734
|
function hk(n) {
|
|
11735
11735
|
for (var e = 0; e < n.length; e += 1) {
|
|
11736
11736
|
var i = n[e];
|
|
11737
|
-
if (Qi(i) && !
|
|
11737
|
+
if (Qi(i) && !Bf(i)) return !1;
|
|
11738
11738
|
}
|
|
11739
11739
|
return !0;
|
|
11740
11740
|
}
|
|
@@ -11746,7 +11746,7 @@ var mk = om(Js), pk = function() {
|
|
|
11746
11746
|
var r = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, i, t) : "";
|
|
11747
11747
|
if (this.isStatic && !t.hash) if (this.staticRulesId && i.hasNameForId(this.componentId, this.staticRulesId)) r = ei(r, this.staticRulesId);
|
|
11748
11748
|
else {
|
|
11749
|
-
var s =
|
|
11749
|
+
var s = IA(si(this.rules, e, i, t)), o = EA(Zn(this.baseHash, s) >>> 0);
|
|
11750
11750
|
if (!i.hasNameForId(this.componentId, o)) {
|
|
11751
11751
|
var a = t(s, ".".concat(o), void 0, this.componentId);
|
|
11752
11752
|
i.insertRules(this.componentId, o, a);
|
|
@@ -11758,12 +11758,12 @@ var mk = om(Js), pk = function() {
|
|
|
11758
11758
|
var l = this.rules[d];
|
|
11759
11759
|
if (typeof l == "string") f += l, process.env.NODE_ENV !== "production" && (A = Zn(A, l));
|
|
11760
11760
|
else if (l) {
|
|
11761
|
-
var c =
|
|
11761
|
+
var c = IA(si(l, e, i, t));
|
|
11762
11762
|
A = Zn(A, c + d), f += c;
|
|
11763
11763
|
}
|
|
11764
11764
|
}
|
|
11765
11765
|
if (f) {
|
|
11766
|
-
var u =
|
|
11766
|
+
var u = EA(A >>> 0);
|
|
11767
11767
|
i.hasNameForId(this.componentId, u) || i.insertRules(this.componentId, u, t(f, ".".concat(u), void 0, this.componentId)), r = ei(r, u);
|
|
11768
11768
|
}
|
|
11769
11769
|
}
|
|
@@ -11771,15 +11771,15 @@ var mk = om(Js), pk = function() {
|
|
|
11771
11771
|
}, n;
|
|
11772
11772
|
}(), bm = Me.createContext(void 0);
|
|
11773
11773
|
bm.Consumer;
|
|
11774
|
-
var
|
|
11774
|
+
var Ca = {}, Tl = /* @__PURE__ */ new Set();
|
|
11775
11775
|
function gk(n, e, i) {
|
|
11776
|
-
var t =
|
|
11776
|
+
var t = Bf(n), r = n, s = !ka(n), o = e.attrs, a = o === void 0 ? Xs : o, A = e.componentId, f = A === void 0 ? function(k, g) {
|
|
11777
11777
|
var v = typeof k != "string" ? "sc" : kl(k);
|
|
11778
|
-
|
|
11779
|
-
var x = "".concat(v, "-").concat(am(Js + v +
|
|
11778
|
+
Ca[v] = (Ca[v] || 0) + 1;
|
|
11779
|
+
var x = "".concat(v, "-").concat(am(Js + v + Ca[v]));
|
|
11780
11780
|
return g ? "".concat(g, "-").concat(x) : x;
|
|
11781
11781
|
}(e.displayName, e.parentComponentId) : A, d = e.displayName, l = d === void 0 ? function(k) {
|
|
11782
|
-
return
|
|
11782
|
+
return ka(k) ? "styled.".concat(k) : "Styled(".concat(Am(k), ")");
|
|
11783
11783
|
}(n) : d, c = e.displayName && e.componentId ? "".concat(kl(e.displayName), "-").concat(e.componentId) : e.componentId || f, u = t && r.attrs ? r.attrs.concat(a).filter(Boolean) : a, m = e.shouldForwardProp;
|
|
11784
11784
|
if (t && r.shouldForwardProp) {
|
|
11785
11785
|
var p = r.shouldForwardProp;
|
|
@@ -11794,7 +11794,7 @@ function gk(n, e, i) {
|
|
|
11794
11794
|
function C(k, g) {
|
|
11795
11795
|
return function(v, x, E) {
|
|
11796
11796
|
var D = v.attrs, I = v.componentStyle, B = v.defaultProps, M = v.foldedComponentIds, T = v.styledComponentId, Q = v.target, j = Me.useContext(bm), _ = Nl(), U = v.shouldForwardProp || _.shouldForwardProp;
|
|
11797
|
-
process.env.NODE_ENV !== "production" &&
|
|
11797
|
+
process.env.NODE_ENV !== "production" && nd(T);
|
|
11798
11798
|
var ne = L3(x, j, B) || Pi, X = function(G, V, K) {
|
|
11799
11799
|
for (var Z, te = je(je({}, V), { className: void 0, theme: K }), ae = 0; ae < G.length; ae += 1) {
|
|
11800
11800
|
var ke = Qi(Z = G[ae]) ? Z(te) : Z;
|
|
@@ -11802,14 +11802,14 @@ function gk(n, e, i) {
|
|
|
11802
11802
|
}
|
|
11803
11803
|
return V.className && (te.className = ei(te.className, V.className)), te;
|
|
11804
11804
|
}(D, x, ne), W = X.as || Q, R = {};
|
|
11805
|
-
for (var P in X) X[P] === void 0 || P[0] === "$" || P === "as" || P === "theme" && X.theme === ne || (P === "forwardedAs" ? R.as = X.forwardedAs : U && !U(P, W) || (R[P] = X[P], U || process.env.NODE_ENV !== "development" || m3(P) || Tl.has(P) || !
|
|
11805
|
+
for (var P in X) X[P] === void 0 || P[0] === "$" || P === "as" || P === "theme" && X.theme === ne || (P === "forwardedAs" ? R.as = X.forwardedAs : U && !U(P, W) || (R[P] = X[P], U || process.env.NODE_ENV !== "development" || m3(P) || Tl.has(P) || !xA.has(W) || (Tl.add(P), console.warn('styled-components: it looks like an unknown prop "'.concat(P, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
|
|
11806
11806
|
var L = function(G, V) {
|
|
11807
11807
|
var K = Nl(), Z = G.generateAndInjectStyles(V, K.styleSheet, K.stylis);
|
|
11808
|
-
return process.env.NODE_ENV !== "production" &&
|
|
11808
|
+
return process.env.NODE_ENV !== "production" && nd(Z), Z;
|
|
11809
11809
|
}(I, X);
|
|
11810
11810
|
process.env.NODE_ENV !== "production" && v.warnTooManyClasses && v.warnTooManyClasses(L);
|
|
11811
11811
|
var F = ei(M, T);
|
|
11812
|
-
return L && (F += " " + L), X.className && (F += " " + X.className), R[
|
|
11812
|
+
return L && (F += " " + L), X.className && (F += " " + X.className), R[ka(W) && !xA.has(W) ? "class" : "className"] = F, E && (R.ref = E), Ig(W, R);
|
|
11813
11813
|
}(w, k, g);
|
|
11814
11814
|
}
|
|
11815
11815
|
C.displayName = l;
|
|
@@ -11819,7 +11819,7 @@ function gk(n, e, i) {
|
|
|
11819
11819
|
}, set: function(k) {
|
|
11820
11820
|
this._foldedDefaultProps = t ? function(g) {
|
|
11821
11821
|
for (var v = [], x = 1; x < arguments.length; x++) v[x - 1] = arguments[x];
|
|
11822
|
-
for (var E = 0, D = v; E < D.length; E++)
|
|
11822
|
+
for (var E = 0, D = v; E < D.length; E++) BA(g, D[E], !0);
|
|
11823
11823
|
return g;
|
|
11824
11824
|
}({}, r.defaultProps, k) : k;
|
|
11825
11825
|
} }), process.env.NODE_ENV !== "production" && (O3(l, c), w.warnTooManyClasses = /* @__PURE__ */ function(k, g) {
|
|
@@ -11839,7 +11839,7 @@ Example:
|
|
|
11839
11839
|
<Component />`), x = !0, v = {};
|
|
11840
11840
|
}
|
|
11841
11841
|
};
|
|
11842
|
-
}(l, c)),
|
|
11842
|
+
}(l, c)), Df(w, function() {
|
|
11843
11843
|
return ".".concat(w.styledComponentId);
|
|
11844
11844
|
}), s && lm(w, n, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), w;
|
|
11845
11845
|
}
|
|
@@ -11856,29 +11856,29 @@ function Li(n) {
|
|
|
11856
11856
|
var t = n;
|
|
11857
11857
|
return e.length === 0 && t.length === 1 && typeof t[0] == "string" ? si(t) : Rl(si(Ml(t, e)));
|
|
11858
11858
|
}
|
|
11859
|
-
function
|
|
11859
|
+
function SA(n, e, i) {
|
|
11860
11860
|
if (i === void 0 && (i = Pi), !e) throw Xi(1, e);
|
|
11861
11861
|
var t = function(r) {
|
|
11862
11862
|
for (var s = [], o = 1; o < arguments.length; o++) s[o - 1] = arguments[o];
|
|
11863
11863
|
return n(e, i, Li.apply(void 0, li([r], s, !1)));
|
|
11864
11864
|
};
|
|
11865
11865
|
return t.attrs = function(r) {
|
|
11866
|
-
return
|
|
11866
|
+
return SA(n, e, je(je({}, i), { attrs: Array.prototype.concat(i.attrs, r).filter(Boolean) }));
|
|
11867
11867
|
}, t.withConfig = function(r) {
|
|
11868
|
-
return
|
|
11868
|
+
return SA(n, e, je(je({}, i), r));
|
|
11869
11869
|
}, t;
|
|
11870
11870
|
}
|
|
11871
11871
|
var wm = function(n) {
|
|
11872
|
-
return
|
|
11872
|
+
return SA(gk, n);
|
|
11873
11873
|
}, S = wm;
|
|
11874
|
-
|
|
11874
|
+
xA.forEach(function(n) {
|
|
11875
11875
|
S[n] = wm(n);
|
|
11876
11876
|
});
|
|
11877
11877
|
function sn(n) {
|
|
11878
11878
|
for (var e = [], i = 1; i < arguments.length; i++) e[i - 1] = arguments[i];
|
|
11879
11879
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
|
|
11880
|
-
var t =
|
|
11881
|
-
return new
|
|
11880
|
+
var t = IA(Li.apply(void 0, li([n], e, !1))), r = am(t);
|
|
11881
|
+
return new NA(r, t);
|
|
11882
11882
|
}
|
|
11883
11883
|
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
11884
11884
|
Perhaps you're looking to import 'styled-components/native'?
|
|
@@ -12290,7 +12290,7 @@ const Qk = S.div`
|
|
|
12290
12290
|
left: 16px;
|
|
12291
12291
|
`, Jk = S.span`
|
|
12292
12292
|
margin-right: 5px;
|
|
12293
|
-
`,
|
|
12293
|
+
`, xa = S.span`
|
|
12294
12294
|
font-size: 24px;
|
|
12295
12295
|
line-height: 0;
|
|
12296
12296
|
animation: ${zk} 1.5s infinite;
|
|
@@ -12302,13 +12302,13 @@ const Qk = S.div`
|
|
|
12302
12302
|
&:nth-child(3) {
|
|
12303
12303
|
animation-delay: 0.4s;
|
|
12304
12304
|
}
|
|
12305
|
-
`,
|
|
12305
|
+
`, Nf = ({ usersTyping: n = ["User"], style: e }) => {
|
|
12306
12306
|
let i;
|
|
12307
12307
|
return n.length === 1 ? i = `${n[0]} is typing` : n.length === 2 ? i = `${n[0]} and ${n[1]} are typing` : n.length > 2 ? i = `${n.length} people are typing` : i = "", /* @__PURE__ */ N(Vk, { style: { ...e }, children: [
|
|
12308
12308
|
/* @__PURE__ */ h(Jk, { children: i }),
|
|
12309
|
-
/* @__PURE__ */ h(
|
|
12310
|
-
/* @__PURE__ */ h(
|
|
12311
|
-
/* @__PURE__ */ h(
|
|
12309
|
+
/* @__PURE__ */ h(xa, { children: "." }),
|
|
12310
|
+
/* @__PURE__ */ h(xa, { children: "." }),
|
|
12311
|
+
/* @__PURE__ */ h(xa, { children: "." })
|
|
12312
12312
|
] });
|
|
12313
12313
|
}, Xk = sn`
|
|
12314
12314
|
0% { opacity: 0.2; }
|
|
@@ -12378,7 +12378,7 @@ const Qk = S.div`
|
|
|
12378
12378
|
`, Zk = S.span`
|
|
12379
12379
|
margin-right: 8px;
|
|
12380
12380
|
font-weight: 500;
|
|
12381
|
-
`,
|
|
12381
|
+
`, Ea = S.span`
|
|
12382
12382
|
font-size: 20px;
|
|
12383
12383
|
line-height: 0;
|
|
12384
12384
|
animation: ${Xk} 1.5s infinite;
|
|
@@ -12396,7 +12396,7 @@ S.span`
|
|
|
12396
12396
|
font-style: italic;
|
|
12397
12397
|
opacity: 0.8;
|
|
12398
12398
|
`;
|
|
12399
|
-
const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n.length === 2 ? `${n[0]} and ${n[1]} are typing` : n.length > 2 ? `${n.length} people are typing` : "",
|
|
12399
|
+
const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n.length === 2 ? `${n[0]} and ${n[1]} are typing` : n.length > 2 ? `${n.length} people are typing` : "", Sf = ({
|
|
12400
12400
|
usersTyping: n = [],
|
|
12401
12401
|
text: e,
|
|
12402
12402
|
position: i = "bottom",
|
|
@@ -12416,9 +12416,9 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
12416
12416
|
}
|
|
12417
12417
|
) : /* @__PURE__ */ N(Kk, { position: i, style: t, children: [
|
|
12418
12418
|
/* @__PURE__ */ h(Zk, { children: o }),
|
|
12419
|
-
/* @__PURE__ */ h(
|
|
12420
|
-
/* @__PURE__ */ h(
|
|
12421
|
-
/* @__PURE__ */ h(
|
|
12419
|
+
/* @__PURE__ */ h(Ea, { children: "." }),
|
|
12420
|
+
/* @__PURE__ */ h(Ea, { children: "." }),
|
|
12421
|
+
/* @__PURE__ */ h(Ea, { children: "." })
|
|
12422
12422
|
] });
|
|
12423
12423
|
}, e4 = S.div`
|
|
12424
12424
|
display: flex;
|
|
@@ -12538,15 +12538,19 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
12538
12538
|
className: a
|
|
12539
12539
|
}) => {
|
|
12540
12540
|
const A = e.user.id === r, f = new Date(e.date);
|
|
12541
|
-
if (e?.isSystemMessage === "true")
|
|
12542
|
-
|
|
12541
|
+
if (e?.isSystemMessage === "true") {
|
|
12542
|
+
const l = t?.whitelistSystemMessage?.includes(
|
|
12543
|
+
e.user.id
|
|
12544
|
+
), c = t?.customSystemMessage;
|
|
12545
|
+
return c && (l || !t?.whitelistSystemMessage) ? /* @__PURE__ */ h(ao, { children: /* @__PURE__ */ h(c, { message: e, isUser: !1, isReply: !1 }) }, e.id) : /* @__PURE__ */ N(ao, { children: [
|
|
12543
12546
|
s && /* @__PURE__ */ h(Ll, { date: f, colors: t?.colors }),
|
|
12544
12547
|
/* @__PURE__ */ h(o4, { messageText: e.body, colors: t?.colors })
|
|
12545
12548
|
] }, e.id);
|
|
12549
|
+
}
|
|
12546
12550
|
if (e?.id === "delimiter-new")
|
|
12547
12551
|
return /* @__PURE__ */ h(Cm, { color: t?.colors?.primary });
|
|
12548
12552
|
const d = n || Ek;
|
|
12549
|
-
return /* @__PURE__ */ N(
|
|
12553
|
+
return /* @__PURE__ */ N(ao, { children: [
|
|
12550
12554
|
s && !i && e.id !== "delimiter-new" && /* @__PURE__ */ h(Ll, { date: f, colors: t?.colors }),
|
|
12551
12555
|
/* @__PURE__ */ h(
|
|
12552
12556
|
d,
|
|
@@ -12760,7 +12764,7 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
12760
12764
|
)
|
|
12761
12765
|
]
|
|
12762
12766
|
}
|
|
12763
|
-
),
|
|
12767
|
+
), TA = ({ color: n = "#0052CD", ...e }) => /* @__PURE__ */ h(
|
|
12764
12768
|
"svg",
|
|
12765
12769
|
{
|
|
12766
12770
|
width: "40",
|
|
@@ -12825,7 +12829,7 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
12825
12829
|
)
|
|
12826
12830
|
]
|
|
12827
12831
|
}
|
|
12828
|
-
),
|
|
12832
|
+
), Tf = ({ color: n = "#8C8C8C", ...e }) => /* @__PURE__ */ h(
|
|
12829
12833
|
"svg",
|
|
12830
12834
|
{
|
|
12831
12835
|
width: "24",
|
|
@@ -13029,7 +13033,7 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
13029
13033
|
)
|
|
13030
13034
|
]
|
|
13031
13035
|
}
|
|
13032
|
-
),
|
|
13036
|
+
), Mf = ({
|
|
13033
13037
|
fill: n = "#E53935",
|
|
13034
13038
|
color: e = "#8C8C8C",
|
|
13035
13039
|
width: i = 24,
|
|
@@ -13687,7 +13691,7 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
13687
13691
|
);
|
|
13688
13692
|
}),
|
|
13689
13693
|
t?.customTypingIndicator?.enabled && a && /* @__PURE__ */ h(
|
|
13690
|
-
|
|
13694
|
+
Sf,
|
|
13691
13695
|
{
|
|
13692
13696
|
usersTyping: f || ["User"],
|
|
13693
13697
|
text: t.customTypingIndicator.text,
|
|
@@ -13697,7 +13701,7 @@ const $k = (n) => n.length === 0 ? "" : n.length === 1 ? `${n[0]} is typing` : n
|
|
|
13697
13701
|
isVisible: a
|
|
13698
13702
|
}
|
|
13699
13703
|
),
|
|
13700
|
-
!t?.customTypingIndicator?.enabled && t?.disableHeader && a && /* @__PURE__ */ h(
|
|
13704
|
+
!t?.customTypingIndicator?.enabled && t?.disableHeader && a && /* @__PURE__ */ h(Nf, { usersTyping: f || ["User"] })
|
|
13701
13705
|
]
|
|
13702
13706
|
}
|
|
13703
13707
|
),
|
|
@@ -13965,12 +13969,12 @@ const R4 = S.div`
|
|
|
13965
13969
|
] }),
|
|
13966
13970
|
/* @__PURE__ */ N("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
13967
13971
|
/* @__PURE__ */ h(se, { onClick: p, EndIcon: /* @__PURE__ */ h(xm, {}), unstyled: !0 }),
|
|
13968
|
-
/* @__PURE__ */ h(se, { onClick: b, EndIcon: /* @__PURE__ */ h(
|
|
13972
|
+
/* @__PURE__ */ h(se, { onClick: b, EndIcon: /* @__PURE__ */ h(TA, {}), unstyled: !0 })
|
|
13969
13973
|
] })
|
|
13970
13974
|
] }) : /* @__PURE__ */ h(se, { onClick: m, EndIcon: /* @__PURE__ */ h(l4, {}) });
|
|
13971
13975
|
};
|
|
13972
13976
|
let Ne = 0;
|
|
13973
|
-
const
|
|
13977
|
+
const Rf = (n) => {
|
|
13974
13978
|
const e = {
|
|
13975
13979
|
"&": "&",
|
|
13976
13980
|
"<": "<",
|
|
@@ -13984,7 +13988,7 @@ const Mf = (n) => {
|
|
|
13984
13988
|
"‑": "-"
|
|
13985
13989
|
};
|
|
13986
13990
|
return n.replace(/&[a-zA-Z0-9#]+;/g, (i) => e[i] || i);
|
|
13987
|
-
},
|
|
13991
|
+
}, Ia = (n) => {
|
|
13988
13992
|
const e = /(https?:\/\/[\w.-]+(?:\.[\w.-]+)+[\w\-\._~:\/?#[\]@!\$&'()\*\+,;=.]+)/g, i = [];
|
|
13989
13993
|
let t = 0;
|
|
13990
13994
|
if (!n) return i;
|
|
@@ -14008,16 +14012,16 @@ const Mf = (n) => {
|
|
|
14008
14012
|
return t < n.length && i.push(n.slice(t)), i;
|
|
14009
14013
|
}, kn = (n) => {
|
|
14010
14014
|
const e = [];
|
|
14011
|
-
let i =
|
|
14015
|
+
let i = Rf(n);
|
|
14012
14016
|
const t = /(\*\*\*|\*\*|\*|`)(.*?)\1/;
|
|
14013
14017
|
for (; i.length > 0; ) {
|
|
14014
14018
|
const r = i.match(t);
|
|
14015
14019
|
if (!r) {
|
|
14016
|
-
e.push(...
|
|
14020
|
+
e.push(...Ia(i));
|
|
14017
14021
|
break;
|
|
14018
14022
|
}
|
|
14019
14023
|
const s = r[0], o = r.index, a = r[1];
|
|
14020
|
-
o > 0 && e.push(...
|
|
14024
|
+
o > 0 && e.push(...Ia(i.substring(0, o)));
|
|
14021
14025
|
let A = null, f = r[2];
|
|
14022
14026
|
a === "`" ? A = /* @__PURE__ */ h(
|
|
14023
14027
|
"code",
|
|
@@ -14039,16 +14043,16 @@ const Mf = (n) => {
|
|
|
14039
14043
|
children: /* @__PURE__ */ h("em", { style: { fontStyle: "italic" }, children: kn(f) }, `i-${Ne++}`)
|
|
14040
14044
|
},
|
|
14041
14045
|
`bi-${Ne++}`
|
|
14042
|
-
) : a === "**" ? A = /* @__PURE__ */ h("strong", { style: { fontWeight: "bold" }, children: kn(f) }, `b-${Ne++}`) : a === "*" && (A = /* @__PURE__ */ h("em", { style: { fontStyle: "italic" }, children: kn(f) }, `i-${Ne++}`)), A ? (e.push(A), i = i.substring(o + s.length)) : (e.push(...
|
|
14046
|
+
) : a === "**" ? A = /* @__PURE__ */ h("strong", { style: { fontWeight: "bold" }, children: kn(f) }, `b-${Ne++}`) : a === "*" && (A = /* @__PURE__ */ h("em", { style: { fontStyle: "italic" }, children: kn(f) }, `i-${Ne++}`)), A ? (e.push(A), i = i.substring(o + s.length)) : (e.push(...Ia(s)), i = i.substring(o + s.length));
|
|
14043
14047
|
}
|
|
14044
14048
|
return e;
|
|
14045
|
-
},
|
|
14049
|
+
}, Ba = (n) => {
|
|
14046
14050
|
const e = n.trim();
|
|
14047
14051
|
return /^\|?[\s]*[\-\:]+[\s\|\-\:]*\|?[\s]*$/.test(e) && e.includes("-");
|
|
14048
14052
|
}, jl = (n) => {
|
|
14049
|
-
const t =
|
|
14053
|
+
const t = Rf(n.trim()).replace(/\u00A0/g, " ").replace(/^\||\|$/g, "").split(new RegExp("(?<!\\\\)\\|")).map((r) => r.replace(/\\\|/g, "|").trim());
|
|
14050
14054
|
return t.length > 0 ? t : [""];
|
|
14051
|
-
},
|
|
14055
|
+
}, MA = (n) => {
|
|
14052
14056
|
const e = n.split(`
|
|
14053
14057
|
`), i = [];
|
|
14054
14058
|
Ne = 0;
|
|
@@ -14214,11 +14218,11 @@ const Mf = (n) => {
|
|
|
14214
14218
|
);
|
|
14215
14219
|
continue;
|
|
14216
14220
|
}
|
|
14217
|
-
if (d.includes("|") && d !== "" && !
|
|
14221
|
+
if (d.includes("|") && d !== "" && !Ba(d) && !d.match(/^\s*-?\s*\[[\sxX]\]/)) {
|
|
14218
14222
|
let u = A + 1;
|
|
14219
14223
|
for (; u < e.length && e[u].trim() === ""; )
|
|
14220
14224
|
u++;
|
|
14221
|
-
if (u < e.length &&
|
|
14225
|
+
if (u < e.length && Ba(e[u].trim())) {
|
|
14222
14226
|
a();
|
|
14223
14227
|
const m = [];
|
|
14224
14228
|
let p = 0;
|
|
@@ -14231,7 +14235,7 @@ const Mf = (n) => {
|
|
|
14231
14235
|
y++;
|
|
14232
14236
|
continue;
|
|
14233
14237
|
}
|
|
14234
|
-
if (k.includes("|") && !
|
|
14238
|
+
if (k.includes("|") && !Ba(k) && !k.match(/^\s*-?\s*\[[\sxX]\]/)) {
|
|
14235
14239
|
let g = jl(k);
|
|
14236
14240
|
for (; g.length < p; )
|
|
14237
14241
|
g.push("");
|
|
@@ -14310,7 +14314,7 @@ const Mf = (n) => {
|
|
|
14310
14314
|
const y = m.toLowerCase() === "[x]";
|
|
14311
14315
|
t.push({
|
|
14312
14316
|
type: "checkbox",
|
|
14313
|
-
content:
|
|
14317
|
+
content: Rf(p),
|
|
14314
14318
|
depth: b,
|
|
14315
14319
|
checked: y
|
|
14316
14320
|
});
|
|
@@ -14516,7 +14520,7 @@ const Mf = (n) => {
|
|
|
14516
14520
|
...r?.secondarySendButton.buttonStyles
|
|
14517
14521
|
},
|
|
14518
14522
|
EndIcon: /* @__PURE__ */ h(
|
|
14519
|
-
|
|
14523
|
+
TA,
|
|
14520
14524
|
{
|
|
14521
14525
|
color: y.length > 0 ? "#fff" : !u || u === "" ? "#D4D4D8" : "#fff"
|
|
14522
14526
|
}
|
|
@@ -14530,7 +14534,7 @@ const Mf = (n) => {
|
|
|
14530
14534
|
onClick: () => B(),
|
|
14531
14535
|
disabled: u === "" || a,
|
|
14532
14536
|
EndIcon: /* @__PURE__ */ h(
|
|
14533
|
-
|
|
14537
|
+
TA,
|
|
14534
14538
|
{
|
|
14535
14539
|
color: y.length > 0 ? "#fff" : !u || u === "" ? "#D4D4D8" : "#fff"
|
|
14536
14540
|
}
|
|
@@ -14561,7 +14565,7 @@ const Mf = (n) => {
|
|
|
14561
14565
|
borderRadius: 12,
|
|
14562
14566
|
color: "#141414"
|
|
14563
14567
|
},
|
|
14564
|
-
children: (c ||
|
|
14568
|
+
children: (c || MA)(u)
|
|
14565
14569
|
}
|
|
14566
14570
|
),
|
|
14567
14571
|
/* @__PURE__ */ h(
|
|
@@ -14574,7 +14578,7 @@ const Mf = (n) => {
|
|
|
14574
14578
|
),
|
|
14575
14579
|
y.length > 0 && /* @__PURE__ */ h(P4, { children: j })
|
|
14576
14580
|
] });
|
|
14577
|
-
},
|
|
14581
|
+
}, Pf = (n) => n !== "animated" && n !== "expanded" && n !== "direction", H4 = S.div.withConfig({ shouldForwardProp: Pf })`
|
|
14578
14582
|
position: relative;
|
|
14579
14583
|
display: flex;
|
|
14580
14584
|
align-items: center;
|
|
@@ -14591,11 +14595,11 @@ const Mf = (n) => {
|
|
|
14591
14595
|
cursor: pointer;
|
|
14592
14596
|
padding: 0 ${e ? "16px" : "0"};
|
|
14593
14597
|
`};
|
|
14594
|
-
`, U4 = S.div.withConfig({ shouldForwardProp:
|
|
14598
|
+
`, U4 = S.div.withConfig({ shouldForwardProp: Pf })`
|
|
14595
14599
|
padding: 3.5px;
|
|
14596
14600
|
color: #999;
|
|
14597
14601
|
cursor: pointer;
|
|
14598
|
-
`, z4 = S.input.withConfig({ shouldForwardProp:
|
|
14602
|
+
`, z4 = S.input.withConfig({ shouldForwardProp: Pf })`
|
|
14599
14603
|
background-color: transparent;
|
|
14600
14604
|
border: none;
|
|
14601
14605
|
outline: none;
|
|
@@ -14857,7 +14861,7 @@ const Om = S.div`
|
|
|
14857
14861
|
`, oi = S.span`
|
|
14858
14862
|
color: #141414;
|
|
14859
14863
|
font-size: 16px;
|
|
14860
|
-
`,
|
|
14864
|
+
`, RA = S(se)`
|
|
14861
14865
|
width: 100%;
|
|
14862
14866
|
`;
|
|
14863
14867
|
S.div`
|
|
@@ -15172,7 +15176,7 @@ const h6 = () => u6().__FIREBASE_DEFAULTS__, m6 = () => {
|
|
|
15172
15176
|
}
|
|
15173
15177
|
const e = n && Ym(n[1]);
|
|
15174
15178
|
return e && JSON.parse(e);
|
|
15175
|
-
},
|
|
15179
|
+
}, Qf = () => {
|
|
15176
15180
|
try {
|
|
15177
15181
|
return f6() || h6() || m6() || p6();
|
|
15178
15182
|
} catch (n) {
|
|
@@ -15181,13 +15185,13 @@ const h6 = () => u6().__FIREBASE_DEFAULTS__, m6 = () => {
|
|
|
15181
15185
|
}
|
|
15182
15186
|
}, g6 = (n) => {
|
|
15183
15187
|
var e, i;
|
|
15184
|
-
return (i = (e =
|
|
15188
|
+
return (i = (e = Qf()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || i === void 0 ? void 0 : i[n];
|
|
15185
15189
|
}, _m = () => {
|
|
15186
15190
|
var n;
|
|
15187
|
-
return (n =
|
|
15191
|
+
return (n = Qf()) === null || n === void 0 ? void 0 : n.config;
|
|
15188
15192
|
}, qm = (n) => {
|
|
15189
15193
|
var e;
|
|
15190
|
-
return (e =
|
|
15194
|
+
return (e = Qf()) === null || e === void 0 ? void 0 : e[`_${n}`];
|
|
15191
15195
|
};
|
|
15192
15196
|
/**
|
|
15193
15197
|
* @license
|
|
@@ -15521,7 +15525,7 @@ class Q6 {
|
|
|
15521
15525
|
next: e,
|
|
15522
15526
|
error: i,
|
|
15523
15527
|
complete: t
|
|
15524
|
-
}, r.next === void 0 && (r.next =
|
|
15528
|
+
}, r.next === void 0 && (r.next = Da), r.error === void 0 && (r.error = Da), r.complete === void 0 && (r.complete = Da);
|
|
15525
15529
|
const s = this.unsubscribeOne.bind(this, this.observers.length);
|
|
15526
15530
|
return this.finalized && this.task.then(() => {
|
|
15527
15531
|
try {
|
|
@@ -15567,7 +15571,7 @@ function O6(n, e) {
|
|
|
15567
15571
|
return !0;
|
|
15568
15572
|
return !1;
|
|
15569
15573
|
}
|
|
15570
|
-
function
|
|
15574
|
+
function Da() {
|
|
15571
15575
|
}
|
|
15572
15576
|
/**
|
|
15573
15577
|
* @license
|
|
@@ -15974,7 +15978,7 @@ function z6() {
|
|
|
15974
15978
|
IDBCursor.prototype.continuePrimaryKey
|
|
15975
15979
|
]);
|
|
15976
15980
|
}
|
|
15977
|
-
const Um = /* @__PURE__ */ new WeakMap(),
|
|
15981
|
+
const Um = /* @__PURE__ */ new WeakMap(), PA = /* @__PURE__ */ new WeakMap(), zm = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), Of = /* @__PURE__ */ new WeakMap();
|
|
15978
15982
|
function V6(n) {
|
|
15979
15983
|
const e = new Promise((i, t) => {
|
|
15980
15984
|
const r = () => {
|
|
@@ -15989,10 +15993,10 @@ function V6(n) {
|
|
|
15989
15993
|
return e.then((i) => {
|
|
15990
15994
|
i instanceof IDBCursor && Um.set(i, n);
|
|
15991
15995
|
}).catch(() => {
|
|
15992
|
-
}),
|
|
15996
|
+
}), Of.set(e, n), e;
|
|
15993
15997
|
}
|
|
15994
15998
|
function J6(n) {
|
|
15995
|
-
if (
|
|
15999
|
+
if (PA.has(n))
|
|
15996
16000
|
return;
|
|
15997
16001
|
const e = new Promise((i, t) => {
|
|
15998
16002
|
const r = () => {
|
|
@@ -16004,13 +16008,13 @@ function J6(n) {
|
|
|
16004
16008
|
};
|
|
16005
16009
|
n.addEventListener("complete", s), n.addEventListener("error", o), n.addEventListener("abort", o);
|
|
16006
16010
|
});
|
|
16007
|
-
|
|
16011
|
+
PA.set(n, e);
|
|
16008
16012
|
}
|
|
16009
|
-
let
|
|
16013
|
+
let QA = {
|
|
16010
16014
|
get(n, e, i) {
|
|
16011
16015
|
if (n instanceof IDBTransaction) {
|
|
16012
16016
|
if (e === "done")
|
|
16013
|
-
return
|
|
16017
|
+
return PA.get(n);
|
|
16014
16018
|
if (e === "objectStoreNames")
|
|
16015
16019
|
return n.objectStoreNames || zm.get(n);
|
|
16016
16020
|
if (e === "store")
|
|
@@ -16026,30 +16030,30 @@ let PA = {
|
|
|
16026
16030
|
}
|
|
16027
16031
|
};
|
|
16028
16032
|
function X6(n) {
|
|
16029
|
-
|
|
16033
|
+
QA = n(QA);
|
|
16030
16034
|
}
|
|
16031
16035
|
function K6(n) {
|
|
16032
16036
|
return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...i) {
|
|
16033
|
-
const t = n.call(
|
|
16037
|
+
const t = n.call(Sa(this), e, ...i);
|
|
16034
16038
|
return zm.set(t, e.sort ? e.sort() : [e]), Gn(t);
|
|
16035
16039
|
} : z6().includes(n) ? function(...e) {
|
|
16036
|
-
return n.apply(
|
|
16040
|
+
return n.apply(Sa(this), e), Gn(Um.get(this));
|
|
16037
16041
|
} : function(...e) {
|
|
16038
|
-
return Gn(n.apply(
|
|
16042
|
+
return Gn(n.apply(Sa(this), e));
|
|
16039
16043
|
};
|
|
16040
16044
|
}
|
|
16041
16045
|
function Z6(n) {
|
|
16042
|
-
return typeof n == "function" ? K6(n) : (n instanceof IDBTransaction && J6(n), H6(n, U6()) ? new Proxy(n,
|
|
16046
|
+
return typeof n == "function" ? K6(n) : (n instanceof IDBTransaction && J6(n), H6(n, U6()) ? new Proxy(n, QA) : n);
|
|
16043
16047
|
}
|
|
16044
16048
|
function Gn(n) {
|
|
16045
16049
|
if (n instanceof IDBRequest)
|
|
16046
16050
|
return V6(n);
|
|
16047
|
-
if (
|
|
16048
|
-
return
|
|
16051
|
+
if (Na.has(n))
|
|
16052
|
+
return Na.get(n);
|
|
16049
16053
|
const e = Z6(n);
|
|
16050
|
-
return e !== n && (
|
|
16054
|
+
return e !== n && (Na.set(n, e), Of.set(e, n)), e;
|
|
16051
16055
|
}
|
|
16052
|
-
const
|
|
16056
|
+
const Sa = (n) => Of.get(n);
|
|
16053
16057
|
function $6(n, e, { blocked: i, upgrade: t, blocking: r, terminated: s } = {}) {
|
|
16054
16058
|
const o = indexedDB.open(n, e), a = Gn(o);
|
|
16055
16059
|
return t && o.addEventListener("upgradeneeded", (A) => {
|
|
@@ -16064,12 +16068,12 @@ function $6(n, e, { blocked: i, upgrade: t, blocking: r, terminated: s } = {}) {
|
|
|
16064
16068
|
}).catch(() => {
|
|
16065
16069
|
}), a;
|
|
16066
16070
|
}
|
|
16067
|
-
const e9 = ["get", "getKey", "getAll", "getAllKeys", "count"], n9 = ["put", "add", "delete", "clear"],
|
|
16071
|
+
const e9 = ["get", "getKey", "getAll", "getAllKeys", "count"], n9 = ["put", "add", "delete", "clear"], Ta = /* @__PURE__ */ new Map();
|
|
16068
16072
|
function ql(n, e) {
|
|
16069
16073
|
if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
|
|
16070
16074
|
return;
|
|
16071
|
-
if (
|
|
16072
|
-
return
|
|
16075
|
+
if (Ta.get(e))
|
|
16076
|
+
return Ta.get(e);
|
|
16073
16077
|
const i = e.replace(/FromIndex$/, ""), t = e !== i, r = n9.includes(i);
|
|
16074
16078
|
if (
|
|
16075
16079
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
@@ -16084,7 +16088,7 @@ function ql(n, e) {
|
|
|
16084
16088
|
r && A.done
|
|
16085
16089
|
]))[0];
|
|
16086
16090
|
};
|
|
16087
|
-
return
|
|
16091
|
+
return Ta.set(e, s), s;
|
|
16088
16092
|
}
|
|
16089
16093
|
X6((n) => ({
|
|
16090
16094
|
...n,
|
|
@@ -16127,7 +16131,7 @@ function t9(n) {
|
|
|
16127
16131
|
const e = n.getComponent();
|
|
16128
16132
|
return e?.type === "VERSION";
|
|
16129
16133
|
}
|
|
16130
|
-
const
|
|
16134
|
+
const OA = "@firebase/app", Hl = "0.13.1";
|
|
16131
16135
|
/**
|
|
16132
16136
|
* @license
|
|
16133
16137
|
* Copyright 2019 Google LLC
|
|
@@ -16161,8 +16165,8 @@ const Dn = new Hm("@firebase/app"), r9 = "@firebase/app-compat", s9 = "@firebase
|
|
|
16161
16165
|
* See the License for the specific language governing permissions and
|
|
16162
16166
|
* limitations under the License.
|
|
16163
16167
|
*/
|
|
16164
|
-
const
|
|
16165
|
-
[
|
|
16168
|
+
const LA = "[DEFAULT]", T9 = {
|
|
16169
|
+
[OA]: "fire-core",
|
|
16166
16170
|
[r9]: "fire-core-compat",
|
|
16167
16171
|
[o9]: "fire-analytics",
|
|
16168
16172
|
[s9]: "fire-analytics-compat",
|
|
@@ -16208,7 +16212,7 @@ const OA = "[DEFAULT]", T9 = {
|
|
|
16208
16212
|
* See the License for the specific language governing permissions and
|
|
16209
16213
|
* limitations under the License.
|
|
16210
16214
|
*/
|
|
16211
|
-
const us = /* @__PURE__ */ new Map(), M9 = /* @__PURE__ */ new Map(),
|
|
16215
|
+
const us = /* @__PURE__ */ new Map(), M9 = /* @__PURE__ */ new Map(), FA = /* @__PURE__ */ new Map();
|
|
16212
16216
|
function Ul(n, e) {
|
|
16213
16217
|
try {
|
|
16214
16218
|
n.container.addComponent(e);
|
|
@@ -16218,9 +16222,9 @@ function Ul(n, e) {
|
|
|
16218
16222
|
}
|
|
16219
16223
|
function St(n) {
|
|
16220
16224
|
const e = n.name;
|
|
16221
|
-
if (
|
|
16225
|
+
if (FA.has(e))
|
|
16222
16226
|
return Dn.debug(`There were multiple attempts to register component ${e}.`), !1;
|
|
16223
|
-
|
|
16227
|
+
FA.set(e, n);
|
|
16224
16228
|
for (const i of us.values())
|
|
16225
16229
|
Ul(i, n);
|
|
16226
16230
|
for (const i of M9.values())
|
|
@@ -16344,7 +16348,7 @@ const Yt = S9;
|
|
|
16344
16348
|
function Jm(n, e = {}) {
|
|
16345
16349
|
let i = n;
|
|
16346
16350
|
typeof e != "object" && (e = { name: e });
|
|
16347
|
-
const t = Object.assign({ name:
|
|
16351
|
+
const t = Object.assign({ name: LA, automaticDataCollectionEnabled: !0 }, e), r = t.name;
|
|
16348
16352
|
if (typeof r != "string" || !r)
|
|
16349
16353
|
throw Yn.create("bad-app-name", {
|
|
16350
16354
|
appName: String(r)
|
|
@@ -16361,14 +16365,14 @@ function Jm(n, e = {}) {
|
|
|
16361
16365
|
throw Yn.create("duplicate-app", { appName: r });
|
|
16362
16366
|
}
|
|
16363
16367
|
const o = new W6(r);
|
|
16364
|
-
for (const A of
|
|
16368
|
+
for (const A of FA.values())
|
|
16365
16369
|
o.addComponent(A);
|
|
16366
16370
|
const a = new P9(i, t, o);
|
|
16367
16371
|
return us.set(r, a), a;
|
|
16368
16372
|
}
|
|
16369
|
-
function Q9(n =
|
|
16373
|
+
function Q9(n = LA) {
|
|
16370
16374
|
const e = us.get(n);
|
|
16371
|
-
if (!e && n ===
|
|
16375
|
+
if (!e && n === LA && _m())
|
|
16372
16376
|
return Jm();
|
|
16373
16377
|
if (!e)
|
|
16374
16378
|
throw Yn.create("no-app", { appName: n });
|
|
@@ -16410,9 +16414,9 @@ function Ei(n, e, i) {
|
|
|
16410
16414
|
* limitations under the License.
|
|
16411
16415
|
*/
|
|
16412
16416
|
const O9 = "firebase-heartbeat-database", L9 = 1, Tt = "firebase-heartbeat-store";
|
|
16413
|
-
let
|
|
16417
|
+
let Ma = null;
|
|
16414
16418
|
function Xm() {
|
|
16415
|
-
return
|
|
16419
|
+
return Ma || (Ma = $6(O9, L9, {
|
|
16416
16420
|
upgrade: (n, e) => {
|
|
16417
16421
|
switch (e) {
|
|
16418
16422
|
case 0:
|
|
@@ -16427,7 +16431,7 @@ function Xm() {
|
|
|
16427
16431
|
throw Yn.create("idb-open", {
|
|
16428
16432
|
originalErrorMessage: n.message
|
|
16429
16433
|
});
|
|
16430
|
-
})),
|
|
16434
|
+
})), Ma;
|
|
16431
16435
|
}
|
|
16432
16436
|
async function F9(n) {
|
|
16433
16437
|
try {
|
|
@@ -16639,10 +16643,10 @@ function H9(n) {
|
|
|
16639
16643
|
(e) => new G9(e),
|
|
16640
16644
|
"PRIVATE"
|
|
16641
16645
|
/* ComponentType.PRIVATE */
|
|
16642
|
-
)), Ei(
|
|
16646
|
+
)), Ei(OA, Hl, n), Ei(OA, Hl, "esm2017"), Ei("fire-js", "");
|
|
16643
16647
|
}
|
|
16644
16648
|
H9("");
|
|
16645
|
-
function
|
|
16649
|
+
function Lf(n, e) {
|
|
16646
16650
|
var i = {};
|
|
16647
16651
|
for (var t in n) Object.prototype.hasOwnProperty.call(n, t) && e.indexOf(t) < 0 && (i[t] = n[t]);
|
|
16648
16652
|
if (n != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -16696,19 +16700,19 @@ function Yr(n, ...e) {
|
|
|
16696
16700
|
* limitations under the License.
|
|
16697
16701
|
*/
|
|
16698
16702
|
function pn(n, ...e) {
|
|
16699
|
-
throw
|
|
16703
|
+
throw jf(n, ...e);
|
|
16700
16704
|
}
|
|
16701
16705
|
function nn(n, ...e) {
|
|
16702
|
-
return
|
|
16706
|
+
return jf(n, ...e);
|
|
16703
16707
|
}
|
|
16704
|
-
function
|
|
16708
|
+
function Ff(n, e, i) {
|
|
16705
16709
|
const t = Object.assign(Object.assign({}, U9()), { [e]: i });
|
|
16706
16710
|
return new Wt("auth", "Firebase", t).create(e, {
|
|
16707
16711
|
appName: n.name
|
|
16708
16712
|
});
|
|
16709
16713
|
}
|
|
16710
16714
|
function ai(n) {
|
|
16711
|
-
return
|
|
16715
|
+
return Ff(n, "operation-not-supported-in-this-environment", "Operations that alter the current user are not supported in conjunction with FirebaseServerApp");
|
|
16712
16716
|
}
|
|
16713
16717
|
function V9(n, e, i) {
|
|
16714
16718
|
const t = i;
|
|
@@ -16717,9 +16721,9 @@ function V9(n, e, i) {
|
|
|
16717
16721
|
n,
|
|
16718
16722
|
"argument-error"
|
|
16719
16723
|
/* AuthErrorCode.ARGUMENT_ERROR */
|
|
16720
|
-
),
|
|
16724
|
+
), Ff(n, "argument-error", `Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`);
|
|
16721
16725
|
}
|
|
16722
|
-
function
|
|
16726
|
+
function jf(n, ...e) {
|
|
16723
16727
|
if (typeof n != "string") {
|
|
16724
16728
|
const i = e[0], t = [...e.slice(1)];
|
|
16725
16729
|
return t[0] && (t[0].appName = n.name), n._errorFactory.create(i, ...t);
|
|
@@ -16728,7 +16732,7 @@ function Ff(n, ...e) {
|
|
|
16728
16732
|
}
|
|
16729
16733
|
function ie(n, e, ...i) {
|
|
16730
16734
|
if (!n)
|
|
16731
|
-
throw
|
|
16735
|
+
throw jf(e, ...i);
|
|
16732
16736
|
}
|
|
16733
16737
|
function xn(n) {
|
|
16734
16738
|
const e = "INTERNAL ASSERTION FAILED: " + n;
|
|
@@ -16753,7 +16757,7 @@ function Nn(n, e) {
|
|
|
16753
16757
|
* See the License for the specific language governing permissions and
|
|
16754
16758
|
* limitations under the License.
|
|
16755
16759
|
*/
|
|
16756
|
-
function
|
|
16760
|
+
function jA() {
|
|
16757
16761
|
var n;
|
|
16758
16762
|
return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
|
|
16759
16763
|
}
|
|
@@ -16840,7 +16844,7 @@ class _t {
|
|
|
16840
16844
|
* See the License for the specific language governing permissions and
|
|
16841
16845
|
* limitations under the License.
|
|
16842
16846
|
*/
|
|
16843
|
-
function
|
|
16847
|
+
function Wf(n, e) {
|
|
16844
16848
|
Nn(n.emulator, "Emulator should always be set here");
|
|
16845
16849
|
const { url: i } = n.emulator;
|
|
16846
16850
|
return e ? `${i}${e.startsWith("/") ? e.slice(1) : e}` : i;
|
|
@@ -17015,7 +17019,7 @@ const $9 = [
|
|
|
17015
17019
|
"/v1/token"
|
|
17016
17020
|
/* Endpoint.TOKEN */
|
|
17017
17021
|
], eC = new _t(3e4, 6e4);
|
|
17018
|
-
function
|
|
17022
|
+
function Gf(n, e) {
|
|
17019
17023
|
return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
|
|
17020
17024
|
}
|
|
17021
17025
|
async function $i(n, e, i, t, r = {}) {
|
|
@@ -17063,7 +17067,7 @@ async function np(n, e, i) {
|
|
|
17063
17067
|
throw dr(n, "user-disabled", o);
|
|
17064
17068
|
const d = t[A] || A.toLowerCase().replace(/[_\s]+/g, "-");
|
|
17065
17069
|
if (f)
|
|
17066
|
-
throw
|
|
17070
|
+
throw Ff(n, d, f);
|
|
17067
17071
|
pn(n, d);
|
|
17068
17072
|
}
|
|
17069
17073
|
} catch (r) {
|
|
@@ -17079,7 +17083,7 @@ async function nC(n, e, i, t, r = {}) {
|
|
|
17079
17083
|
}), s;
|
|
17080
17084
|
}
|
|
17081
17085
|
async function ip(n, e, i, t) {
|
|
17082
|
-
const r = `${e}${i}?${t}`, s = n, o = s.config.emulator ?
|
|
17086
|
+
const r = `${e}${i}?${t}`, s = n, o = s.config.emulator ? Wf(n.config, r) : `${n.config.apiScheme}://${r}`;
|
|
17083
17087
|
return $9.includes(i) && (await s._persistenceManagerAvailable, s._getPersistenceType() === "COOKIE") ? s._getPersistence()._getFinalTarget(o).toString() : o;
|
|
17084
17088
|
}
|
|
17085
17089
|
class iC {
|
|
@@ -17152,7 +17156,7 @@ function Ct(n) {
|
|
|
17152
17156
|
}
|
|
17153
17157
|
}
|
|
17154
17158
|
async function rC(n, e = !1) {
|
|
17155
|
-
const i = Zi(n), t = await i.getIdToken(e), r =
|
|
17159
|
+
const i = Zi(n), t = await i.getIdToken(e), r = Yf(t);
|
|
17156
17160
|
ie(
|
|
17157
17161
|
r && r.exp && r.auth_time && r.iat,
|
|
17158
17162
|
i.auth,
|
|
@@ -17163,17 +17167,17 @@ async function rC(n, e = !1) {
|
|
|
17163
17167
|
return {
|
|
17164
17168
|
claims: r,
|
|
17165
17169
|
token: t,
|
|
17166
|
-
authTime: Ct(
|
|
17167
|
-
issuedAtTime: Ct(
|
|
17168
|
-
expirationTime: Ct(
|
|
17170
|
+
authTime: Ct(Ra(r.auth_time)),
|
|
17171
|
+
issuedAtTime: Ct(Ra(r.iat)),
|
|
17172
|
+
expirationTime: Ct(Ra(r.exp)),
|
|
17169
17173
|
signInProvider: o || null,
|
|
17170
17174
|
signInSecondFactor: s?.sign_in_second_factor || null
|
|
17171
17175
|
};
|
|
17172
17176
|
}
|
|
17173
|
-
function
|
|
17177
|
+
function Ra(n) {
|
|
17174
17178
|
return Number(n) * 1e3;
|
|
17175
17179
|
}
|
|
17176
|
-
function
|
|
17180
|
+
function Yf(n) {
|
|
17177
17181
|
const [e, i, t] = n.split(".");
|
|
17178
17182
|
if (e === void 0 || i === void 0 || t === void 0)
|
|
17179
17183
|
return Yr("JWT malformed, contained fewer than 3 sections"), null;
|
|
@@ -17185,7 +17189,7 @@ function Gf(n) {
|
|
|
17185
17189
|
}
|
|
17186
17190
|
}
|
|
17187
17191
|
function Kl(n) {
|
|
17188
|
-
const e =
|
|
17192
|
+
const e = Yf(n);
|
|
17189
17193
|
return ie(
|
|
17190
17194
|
e,
|
|
17191
17195
|
"internal-error"
|
|
@@ -17306,7 +17310,7 @@ class oC {
|
|
|
17306
17310
|
* See the License for the specific language governing permissions and
|
|
17307
17311
|
* limitations under the License.
|
|
17308
17312
|
*/
|
|
17309
|
-
class
|
|
17313
|
+
class WA {
|
|
17310
17314
|
constructor(e, i) {
|
|
17311
17315
|
this.createdAt = e, this.lastLoginAt = i, this._initializeTime();
|
|
17312
17316
|
}
|
|
@@ -17359,7 +17363,7 @@ async function ps(n) {
|
|
|
17359
17363
|
phoneNumber: s.phoneNumber || null,
|
|
17360
17364
|
tenantId: s.tenantId || null,
|
|
17361
17365
|
providerData: a,
|
|
17362
|
-
metadata: new
|
|
17366
|
+
metadata: new WA(s.createdAt, s.lastLoginAt),
|
|
17363
17367
|
isAnonymous: d
|
|
17364
17368
|
};
|
|
17365
17369
|
Object.assign(n, l);
|
|
@@ -17373,7 +17377,7 @@ function AC(n, e) {
|
|
|
17373
17377
|
}
|
|
17374
17378
|
function tp(n) {
|
|
17375
17379
|
return n.map((e) => {
|
|
17376
|
-
var { providerId: i } = e, t =
|
|
17380
|
+
var { providerId: i } = e, t = Lf(e, ["providerId"]);
|
|
17377
17381
|
return {
|
|
17378
17382
|
providerId: i,
|
|
17379
17383
|
uid: t.rawId || "",
|
|
@@ -17424,7 +17428,7 @@ async function fC(n, e) {
|
|
|
17424
17428
|
};
|
|
17425
17429
|
}
|
|
17426
17430
|
async function dC(n, e) {
|
|
17427
|
-
return $i(n, "POST", "/v2/accounts:revokeToken",
|
|
17431
|
+
return $i(n, "POST", "/v2/accounts:revokeToken", Gf(n, e));
|
|
17428
17432
|
}
|
|
17429
17433
|
/**
|
|
17430
17434
|
* @license
|
|
@@ -17541,8 +17545,8 @@ function Mn(n, e) {
|
|
|
17541
17545
|
}
|
|
17542
17546
|
class Ke {
|
|
17543
17547
|
constructor(e) {
|
|
17544
|
-
var { uid: i, auth: t, stsTokenManager: r } = e, s =
|
|
17545
|
-
this.providerId = "firebase", this.proactiveRefresh = new oC(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = i, this.auth = t, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new
|
|
17548
|
+
var { uid: i, auth: t, stsTokenManager: r } = e, s = Lf(e, ["uid", "auth", "stsTokenManager"]);
|
|
17549
|
+
this.providerId = "firebase", this.proactiveRefresh = new oC(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = i, this.auth = t, this.stsTokenManager = r, this.accessToken = r.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new WA(s.createdAt || void 0, s.lastLoginAt || void 0);
|
|
17546
17550
|
}
|
|
17547
17551
|
async getIdToken(e) {
|
|
17548
17552
|
const i = await Mt(this, this.stsTokenManager.getToken(this.auth, e));
|
|
@@ -17708,7 +17712,7 @@ class Ke {
|
|
|
17708
17712
|
phoneNumber: r.phoneNumber || null,
|
|
17709
17713
|
tenantId: r.tenantId || null,
|
|
17710
17714
|
providerData: s,
|
|
17711
|
-
metadata: new
|
|
17715
|
+
metadata: new WA(r.createdAt, r.lastLoginAt),
|
|
17712
17716
|
isAnonymous: !(r.email && r.passwordHash) && !s?.length
|
|
17713
17717
|
};
|
|
17714
17718
|
return Object.assign(A, f), A;
|
|
@@ -17940,18 +17944,18 @@ function dp(n = Oe()) {
|
|
|
17940
17944
|
function cp(n = Oe()) {
|
|
17941
17945
|
return /webos/i.test(n);
|
|
17942
17946
|
}
|
|
17943
|
-
function
|
|
17947
|
+
function _f(n = Oe()) {
|
|
17944
17948
|
return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
|
|
17945
17949
|
}
|
|
17946
17950
|
function cC(n = Oe()) {
|
|
17947
17951
|
var e;
|
|
17948
|
-
return
|
|
17952
|
+
return _f(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
|
|
17949
17953
|
}
|
|
17950
17954
|
function lC() {
|
|
17951
17955
|
return B6() && document.documentMode === 10;
|
|
17952
17956
|
}
|
|
17953
17957
|
function lp(n = Oe()) {
|
|
17954
|
-
return
|
|
17958
|
+
return _f(n) || fp(n) || cp(n) || dp(n) || /windows phone/i.test(n) || Ap(n);
|
|
17955
17959
|
}
|
|
17956
17960
|
/**
|
|
17957
17961
|
* @license
|
|
@@ -18056,7 +18060,7 @@ class uC {
|
|
|
18056
18060
|
* limitations under the License.
|
|
18057
18061
|
*/
|
|
18058
18062
|
async function hC(n, e = {}) {
|
|
18059
|
-
return $i(n, "GET", "/v2/passwordPolicy",
|
|
18063
|
+
return $i(n, "GET", "/v2/passwordPolicy", Gf(n, e));
|
|
18060
18064
|
}
|
|
18061
18065
|
/**
|
|
18062
18066
|
* @license
|
|
@@ -18532,7 +18536,7 @@ class nu {
|
|
|
18532
18536
|
* See the License for the specific language governing permissions and
|
|
18533
18537
|
* limitations under the License.
|
|
18534
18538
|
*/
|
|
18535
|
-
let
|
|
18539
|
+
let qf = {
|
|
18536
18540
|
async loadJS() {
|
|
18537
18541
|
throw new Error("Unable to load external scripts");
|
|
18538
18542
|
},
|
|
@@ -18541,13 +18545,13 @@ let _f = {
|
|
|
18541
18545
|
gapiScript: ""
|
|
18542
18546
|
};
|
|
18543
18547
|
function vC(n) {
|
|
18544
|
-
|
|
18548
|
+
qf = n;
|
|
18545
18549
|
}
|
|
18546
18550
|
function bC(n) {
|
|
18547
|
-
return
|
|
18551
|
+
return qf.loadJS(n);
|
|
18548
18552
|
}
|
|
18549
18553
|
function wC() {
|
|
18550
|
-
return
|
|
18554
|
+
return qf.gapiScript;
|
|
18551
18555
|
}
|
|
18552
18556
|
function yC(n) {
|
|
18553
18557
|
return `__${n}${Math.floor(Math.random() * 1e6)}`;
|
|
@@ -18705,7 +18709,7 @@ class mp {
|
|
|
18705
18709
|
* limitations under the License.
|
|
18706
18710
|
*/
|
|
18707
18711
|
async function Di(n, e) {
|
|
18708
|
-
return nC(n, "POST", "/v1/accounts:signInWithIdp",
|
|
18712
|
+
return nC(n, "POST", "/v1/accounts:signInWithIdp", Gf(n, e));
|
|
18709
18713
|
}
|
|
18710
18714
|
/**
|
|
18711
18715
|
* @license
|
|
@@ -18758,7 +18762,7 @@ class mi extends mp {
|
|
|
18758
18762
|
* @returns If the JSON input does not represent an {@link AuthCredential}, null is returned.
|
|
18759
18763
|
*/
|
|
18760
18764
|
static fromJSON(e) {
|
|
18761
|
-
const i = typeof e == "string" ? JSON.parse(e) : e, { providerId: t, signInMethod: r } = i, s =
|
|
18765
|
+
const i = typeof e == "string" ? JSON.parse(e) : e, { providerId: t, signInMethod: r } = i, s = Lf(i, ["providerId", "signInMethod"]);
|
|
18762
18766
|
if (!t || !r)
|
|
18763
18767
|
return null;
|
|
18764
18768
|
const o = new mi(t, r);
|
|
@@ -18809,7 +18813,7 @@ class mi extends mp {
|
|
|
18809
18813
|
* See the License for the specific language governing permissions and
|
|
18810
18814
|
* limitations under the License.
|
|
18811
18815
|
*/
|
|
18812
|
-
class
|
|
18816
|
+
class Hf {
|
|
18813
18817
|
/**
|
|
18814
18818
|
* Constructor for generic OAuth providers.
|
|
18815
18819
|
*
|
|
@@ -18862,7 +18866,7 @@ class qf {
|
|
|
18862
18866
|
* See the License for the specific language governing permissions and
|
|
18863
18867
|
* limitations under the License.
|
|
18864
18868
|
*/
|
|
18865
|
-
class qt extends
|
|
18869
|
+
class qt extends Hf {
|
|
18866
18870
|
constructor() {
|
|
18867
18871
|
super(...arguments), this.scopes = [];
|
|
18868
18872
|
}
|
|
@@ -19276,7 +19280,7 @@ async function NC(n, e, i = !1) {
|
|
|
19276
19280
|
"internal-error"
|
|
19277
19281
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
19278
19282
|
);
|
|
19279
|
-
const o =
|
|
19283
|
+
const o = Yf(s.idToken);
|
|
19280
19284
|
ie(
|
|
19281
19285
|
o,
|
|
19282
19286
|
t,
|
|
@@ -19628,7 +19632,7 @@ no.receivers = [];
|
|
|
19628
19632
|
* See the License for the specific language governing permissions and
|
|
19629
19633
|
* limitations under the License.
|
|
19630
19634
|
*/
|
|
19631
|
-
function
|
|
19635
|
+
function Uf(n = "", e = 10) {
|
|
19632
19636
|
let i = "";
|
|
19633
19637
|
for (let t = 0; t < e; t++)
|
|
19634
19638
|
i += Math.floor(Math.random() * 10);
|
|
@@ -19684,7 +19688,7 @@ class LC {
|
|
|
19684
19688
|
);
|
|
19685
19689
|
let s, o;
|
|
19686
19690
|
return new Promise((a, A) => {
|
|
19687
|
-
const f =
|
|
19691
|
+
const f = Uf("", 20);
|
|
19688
19692
|
r.port1.start();
|
|
19689
19693
|
const d = setTimeout(() => {
|
|
19690
19694
|
A(new Error(
|
|
@@ -19826,7 +19830,7 @@ function _C() {
|
|
|
19826
19830
|
const n = indexedDB.deleteDatabase(kp);
|
|
19827
19831
|
return new Ht(n).toPromise();
|
|
19828
19832
|
}
|
|
19829
|
-
function
|
|
19833
|
+
function GA() {
|
|
19830
19834
|
const n = indexedDB.open(kp, YC);
|
|
19831
19835
|
return new Promise((e, i) => {
|
|
19832
19836
|
n.addEventListener("error", () => {
|
|
@@ -19840,7 +19844,7 @@ function WA() {
|
|
|
19840
19844
|
}
|
|
19841
19845
|
}), n.addEventListener("success", async () => {
|
|
19842
19846
|
const t = n.result;
|
|
19843
|
-
t.objectStoreNames.contains(bs) ? e(t) : (t.close(), await _C(), e(await
|
|
19847
|
+
t.objectStoreNames.contains(bs) ? e(t) : (t.close(), await _C(), e(await GA()));
|
|
19844
19848
|
});
|
|
19845
19849
|
});
|
|
19846
19850
|
}
|
|
@@ -19867,7 +19871,7 @@ class xp {
|
|
|
19867
19871
|
});
|
|
19868
19872
|
}
|
|
19869
19873
|
async _openDb() {
|
|
19870
|
-
return this.db ? this.db : (this.db = await
|
|
19874
|
+
return this.db ? this.db : (this.db = await GA(), this.db);
|
|
19871
19875
|
}
|
|
19872
19876
|
async _withRetries(e) {
|
|
19873
19877
|
let i = 0;
|
|
@@ -19948,7 +19952,7 @@ class xp {
|
|
|
19948
19952
|
try {
|
|
19949
19953
|
if (!indexedDB)
|
|
19950
19954
|
return !1;
|
|
19951
|
-
const e = await
|
|
19955
|
+
const e = await GA();
|
|
19952
19956
|
return await ru(e, vs, "1"), await su(e, vs), !0;
|
|
19953
19957
|
} catch {
|
|
19954
19958
|
}
|
|
@@ -20052,7 +20056,7 @@ function Ep(n, e) {
|
|
|
20052
20056
|
* See the License for the specific language governing permissions and
|
|
20053
20057
|
* limitations under the License.
|
|
20054
20058
|
*/
|
|
20055
|
-
class
|
|
20059
|
+
class zf extends mp {
|
|
20056
20060
|
constructor(e) {
|
|
20057
20061
|
super(
|
|
20058
20062
|
"custom",
|
|
@@ -20083,7 +20087,7 @@ class Uf extends mp {
|
|
|
20083
20087
|
}
|
|
20084
20088
|
}
|
|
20085
20089
|
function VC(n) {
|
|
20086
|
-
return SC(n.auth, new
|
|
20090
|
+
return SC(n.auth, new zf(n), n.bypassAuthState);
|
|
20087
20091
|
}
|
|
20088
20092
|
function JC(n) {
|
|
20089
20093
|
const { auth: e, user: i } = n;
|
|
@@ -20092,7 +20096,7 @@ function JC(n) {
|
|
|
20092
20096
|
e,
|
|
20093
20097
|
"internal-error"
|
|
20094
20098
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
20095
|
-
), NC(i, new
|
|
20099
|
+
), NC(i, new zf(n), n.bypassAuthState);
|
|
20096
20100
|
}
|
|
20097
20101
|
async function XC(n) {
|
|
20098
20102
|
const { auth: e, user: i } = n;
|
|
@@ -20101,7 +20105,7 @@ async function XC(n) {
|
|
|
20101
20105
|
e,
|
|
20102
20106
|
"internal-error"
|
|
20103
20107
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
20104
|
-
), DC(i, new
|
|
20108
|
+
), DC(i, new zf(n), n.bypassAuthState);
|
|
20105
20109
|
}
|
|
20106
20110
|
/**
|
|
20107
20111
|
* @license
|
|
@@ -20211,7 +20215,7 @@ async function ZC(n, e, i) {
|
|
|
20211
20215
|
/* AuthErrorCode.OPERATION_NOT_SUPPORTED */
|
|
20212
20216
|
));
|
|
20213
20217
|
const t = eo(n);
|
|
20214
|
-
V9(n, e,
|
|
20218
|
+
V9(n, e, Hf);
|
|
20215
20219
|
const r = Ep(t, i);
|
|
20216
20220
|
return new ni(t, "signInViaPopup", e, r).executeNotNull();
|
|
20217
20221
|
}
|
|
@@ -20230,7 +20234,7 @@ class ni extends Ip {
|
|
|
20230
20234
|
}
|
|
20231
20235
|
async onExecution() {
|
|
20232
20236
|
Nn(this.filter.length === 1, "Popup operations only handle one event");
|
|
20233
|
-
const e =
|
|
20237
|
+
const e = Uf();
|
|
20234
20238
|
this.authWindow = await this.resolver._openPopup(
|
|
20235
20239
|
this.auth,
|
|
20236
20240
|
this.provider,
|
|
@@ -20494,7 +20498,7 @@ async function l5(n) {
|
|
|
20494
20498
|
);
|
|
20495
20499
|
}
|
|
20496
20500
|
function u5(n) {
|
|
20497
|
-
const e =
|
|
20501
|
+
const e = jA(), { protocol: i, hostname: t } = new URL(e);
|
|
20498
20502
|
if (n.startsWith("chrome-extension://")) {
|
|
20499
20503
|
const o = new URL(n);
|
|
20500
20504
|
return o.hostname === "" && t === "" ? i === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : i === "chrome-extension:" && o.hostname === t;
|
|
@@ -20613,7 +20617,7 @@ function k5(n) {
|
|
|
20613
20617
|
"auth-domain-config-required"
|
|
20614
20618
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
20615
20619
|
);
|
|
20616
|
-
const i = e.emulator ?
|
|
20620
|
+
const i = e.emulator ? Wf(e, b5) : `https://${n.config.authDomain}/${v5}`, t = {
|
|
20617
20621
|
apiKey: e.apiKey,
|
|
20618
20622
|
appName: n.name,
|
|
20619
20623
|
v: Yt
|
|
@@ -20758,7 +20762,7 @@ async function fu(n, e, i, t, r, s) {
|
|
|
20758
20762
|
v: Yt,
|
|
20759
20763
|
eventId: r
|
|
20760
20764
|
};
|
|
20761
|
-
if (e instanceof
|
|
20765
|
+
if (e instanceof Hf) {
|
|
20762
20766
|
e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", R6(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
|
|
20763
20767
|
for (const [d, l] of Object.entries({}))
|
|
20764
20768
|
o[d] = l;
|
|
@@ -20775,7 +20779,7 @@ async function fu(n, e, i, t, r, s) {
|
|
|
20775
20779
|
return `${P5(n)}?${Gt(a).slice(1)}${f}`;
|
|
20776
20780
|
}
|
|
20777
20781
|
function P5({ config: n }) {
|
|
20778
|
-
return n.emulator ?
|
|
20782
|
+
return n.emulator ? Wf(n, M5) : `https://${n.authDomain}/${T5}`;
|
|
20779
20783
|
}
|
|
20780
20784
|
/**
|
|
20781
20785
|
* @license
|
|
@@ -20793,7 +20797,7 @@ function P5({ config: n }) {
|
|
|
20793
20797
|
* See the License for the specific language governing permissions and
|
|
20794
20798
|
* limitations under the License.
|
|
20795
20799
|
*/
|
|
20796
|
-
const
|
|
20800
|
+
const Pa = "webStorageSupport";
|
|
20797
20801
|
class Q5 {
|
|
20798
20802
|
constructor() {
|
|
20799
20803
|
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = wp, this._completeRedirectFn = s5, this._overrideRedirectResult = i5;
|
|
@@ -20803,12 +20807,12 @@ class Q5 {
|
|
|
20803
20807
|
async _openPopup(e, i, t, r) {
|
|
20804
20808
|
var s;
|
|
20805
20809
|
Nn((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
|
|
20806
|
-
const o = await fu(e, i, t,
|
|
20807
|
-
return N5(e, o,
|
|
20810
|
+
const o = await fu(e, i, t, jA(), r);
|
|
20811
|
+
return N5(e, o, Uf());
|
|
20808
20812
|
}
|
|
20809
20813
|
async _openRedirect(e, i, t, r) {
|
|
20810
20814
|
await this._originValidation(e);
|
|
20811
|
-
const s = await fu(e, i, t,
|
|
20815
|
+
const s = await fu(e, i, t, jA(), r);
|
|
20812
20816
|
return FC(s), new Promise(() => {
|
|
20813
20817
|
});
|
|
20814
20818
|
}
|
|
@@ -20836,9 +20840,9 @@ class Q5 {
|
|
|
20836
20840
|
}), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: t }, this.iframes[e._key()] = i, t;
|
|
20837
20841
|
}
|
|
20838
20842
|
_isIframeWebStorageSupported(e, i) {
|
|
20839
|
-
this.iframes[e._key()].send(
|
|
20843
|
+
this.iframes[e._key()].send(Pa, { type: Pa }, (r) => {
|
|
20840
20844
|
var s;
|
|
20841
|
-
const o = (s = r?.[0]) === null || s === void 0 ? void 0 : s[
|
|
20845
|
+
const o = (s = r?.[0]) === null || s === void 0 ? void 0 : s[Pa];
|
|
20842
20846
|
o !== void 0 && i(!!o), pn(
|
|
20843
20847
|
e,
|
|
20844
20848
|
"internal-error"
|
|
@@ -20851,7 +20855,7 @@ class Q5 {
|
|
|
20851
20855
|
return this.originValidationPromises[i] || (this.originValidationPromises[i] = l5(e)), this.originValidationPromises[i];
|
|
20852
20856
|
}
|
|
20853
20857
|
get _shouldInitProactively() {
|
|
20854
|
-
return lp() || op() ||
|
|
20858
|
+
return lp() || op() || _f();
|
|
20855
20859
|
}
|
|
20856
20860
|
}
|
|
20857
20861
|
const O5 = Q5;
|
|
@@ -21148,7 +21152,7 @@ const Z5 = async () => {
|
|
|
21148
21152
|
return console.error(i), {};
|
|
21149
21153
|
}
|
|
21150
21154
|
};
|
|
21151
|
-
function
|
|
21155
|
+
function Vf(n) {
|
|
21152
21156
|
const e = J.getState().chatSettingStore.user.token;
|
|
21153
21157
|
return xe.post("/files/", n, {
|
|
21154
21158
|
headers: {
|
|
@@ -21543,17 +21547,17 @@ const Tp = ({
|
|
|
21543
21547
|
)
|
|
21544
21548
|
] });
|
|
21545
21549
|
}, Ut = () => {
|
|
21546
|
-
const n =
|
|
21550
|
+
const n = $A(Mp);
|
|
21547
21551
|
if (!n)
|
|
21548
21552
|
throw new Error("useToast must be used within a ToastProvider");
|
|
21549
21553
|
return n;
|
|
21550
21554
|
}, b7 = [
|
|
21551
21555
|
{ name: "Public", id: "public" },
|
|
21552
21556
|
{ name: "Members-only", id: "group" }
|
|
21553
|
-
],
|
|
21557
|
+
], Jf = be, Rp = () => {
|
|
21554
21558
|
const n = de(
|
|
21555
21559
|
(j) => j.chatSettingStore.config
|
|
21556
|
-
), e =
|
|
21560
|
+
), e = Jf(), { client: i } = ze(), { showToast: t } = Ut();
|
|
21557
21561
|
_e();
|
|
21558
21562
|
const [r, s] = z(!1), [o, a] = z(!1), [A, f] = z("0"), [d, l] = z(""), [c, u] = z(""), [m, p] = z({
|
|
21559
21563
|
name: "Public",
|
|
@@ -21600,7 +21604,7 @@ const Tp = ({
|
|
|
21600
21604
|
}), a(!0), v) {
|
|
21601
21605
|
let j = new FormData();
|
|
21602
21606
|
j.append("files", b);
|
|
21603
|
-
const U = (await
|
|
21607
|
+
const U = (await Vf(j))?.data?.results?.[0]?.location;
|
|
21604
21608
|
if (n?.newArch) {
|
|
21605
21609
|
const ne = k.map((W) => W.xmppUsername), X = await dy({
|
|
21606
21610
|
title: d,
|
|
@@ -21985,14 +21989,14 @@ function N7() {
|
|
|
21985
21989
|
case l:
|
|
21986
21990
|
return Vt;
|
|
21987
21991
|
default:
|
|
21988
|
-
var
|
|
21989
|
-
switch (
|
|
21992
|
+
var ed = Vt && Vt.$$typeof;
|
|
21993
|
+
switch (ed) {
|
|
21990
21994
|
case a:
|
|
21991
21995
|
case d:
|
|
21992
21996
|
case m:
|
|
21993
21997
|
case u:
|
|
21994
21998
|
case o:
|
|
21995
|
-
return
|
|
21999
|
+
return ed;
|
|
21996
22000
|
default:
|
|
21997
22001
|
return on;
|
|
21998
22002
|
}
|
|
@@ -22054,9 +22058,9 @@ object-assign
|
|
|
22054
22058
|
(c) Sindre Sorhus
|
|
22055
22059
|
@license MIT
|
|
22056
22060
|
*/
|
|
22057
|
-
var
|
|
22061
|
+
var Qa, vu;
|
|
22058
22062
|
function S7() {
|
|
22059
|
-
if (vu) return
|
|
22063
|
+
if (vu) return Qa;
|
|
22060
22064
|
vu = 1;
|
|
22061
22065
|
var n = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
22062
22066
|
function t(s) {
|
|
@@ -22086,7 +22090,7 @@ function S7() {
|
|
|
22086
22090
|
return !1;
|
|
22087
22091
|
}
|
|
22088
22092
|
}
|
|
22089
|
-
return
|
|
22093
|
+
return Qa = r() ? Object.assign : function(s, o) {
|
|
22090
22094
|
for (var a, A = t(s), f, d = 1; d < arguments.length; d++) {
|
|
22091
22095
|
a = Object(arguments[d]);
|
|
22092
22096
|
for (var l in a)
|
|
@@ -22098,27 +22102,27 @@ function S7() {
|
|
|
22098
22102
|
}
|
|
22099
22103
|
}
|
|
22100
22104
|
return A;
|
|
22101
|
-
},
|
|
22105
|
+
}, Qa;
|
|
22102
22106
|
}
|
|
22103
|
-
var
|
|
22104
|
-
function
|
|
22105
|
-
if (bu) return
|
|
22107
|
+
var Oa, bu;
|
|
22108
|
+
function Xf() {
|
|
22109
|
+
if (bu) return Oa;
|
|
22106
22110
|
bu = 1;
|
|
22107
22111
|
var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
22108
|
-
return
|
|
22112
|
+
return Oa = n, Oa;
|
|
22109
22113
|
}
|
|
22110
|
-
var
|
|
22114
|
+
var La, wu;
|
|
22111
22115
|
function Op() {
|
|
22112
|
-
return wu || (wu = 1,
|
|
22116
|
+
return wu || (wu = 1, La = Function.call.bind(Object.prototype.hasOwnProperty)), La;
|
|
22113
22117
|
}
|
|
22114
|
-
var
|
|
22118
|
+
var Fa, yu;
|
|
22115
22119
|
function T7() {
|
|
22116
|
-
if (yu) return
|
|
22120
|
+
if (yu) return Fa;
|
|
22117
22121
|
yu = 1;
|
|
22118
22122
|
var n = function() {
|
|
22119
22123
|
};
|
|
22120
22124
|
if (process.env.NODE_ENV !== "production") {
|
|
22121
|
-
var e = /* @__PURE__ */
|
|
22125
|
+
var e = /* @__PURE__ */ Xf(), i = {}, t = /* @__PURE__ */ Op();
|
|
22122
22126
|
n = function(s) {
|
|
22123
22127
|
var o = "Warning: " + s;
|
|
22124
22128
|
typeof console < "u" && console.error(o);
|
|
@@ -22158,13 +22162,13 @@ function T7() {
|
|
|
22158
22162
|
}
|
|
22159
22163
|
return r.resetWarningCache = function() {
|
|
22160
22164
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
22161
|
-
},
|
|
22165
|
+
}, Fa = r, Fa;
|
|
22162
22166
|
}
|
|
22163
|
-
var
|
|
22167
|
+
var ja, ku;
|
|
22164
22168
|
function M7() {
|
|
22165
|
-
if (ku) return
|
|
22169
|
+
if (ku) return ja;
|
|
22166
22170
|
ku = 1;
|
|
22167
|
-
var n = Qp(), e = S7(), i = /* @__PURE__ */
|
|
22171
|
+
var n = Qp(), e = S7(), i = /* @__PURE__ */ Xf(), t = /* @__PURE__ */ Op(), r = /* @__PURE__ */ T7(), s = function() {
|
|
22168
22172
|
};
|
|
22169
22173
|
process.env.NODE_ENV !== "production" && (s = function(a) {
|
|
22170
22174
|
var A = "Warning: " + a;
|
|
@@ -22177,7 +22181,7 @@ function M7() {
|
|
|
22177
22181
|
function o() {
|
|
22178
22182
|
return null;
|
|
22179
22183
|
}
|
|
22180
|
-
return
|
|
22184
|
+
return ja = function(a, A) {
|
|
22181
22185
|
var f = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
|
|
22182
22186
|
function l(W) {
|
|
22183
22187
|
var R = W && (f && W[f] || W[d]);
|
|
@@ -22479,18 +22483,18 @@ Valid keys: ` + JSON.stringify(Object.keys(W), null, " ")
|
|
|
22479
22483
|
return !W.constructor || !W.constructor.name ? c : W.constructor.name;
|
|
22480
22484
|
}
|
|
22481
22485
|
return u.checkPropTypes = r, u.resetWarningCache = r.resetWarningCache, u.PropTypes = u, u;
|
|
22482
|
-
},
|
|
22486
|
+
}, ja;
|
|
22483
22487
|
}
|
|
22484
|
-
var
|
|
22488
|
+
var Wa, Cu;
|
|
22485
22489
|
function R7() {
|
|
22486
|
-
if (Cu) return
|
|
22490
|
+
if (Cu) return Wa;
|
|
22487
22491
|
Cu = 1;
|
|
22488
|
-
var n = /* @__PURE__ */
|
|
22492
|
+
var n = /* @__PURE__ */ Xf();
|
|
22489
22493
|
function e() {
|
|
22490
22494
|
}
|
|
22491
22495
|
function i() {
|
|
22492
22496
|
}
|
|
22493
|
-
return i.resetWarningCache = e,
|
|
22497
|
+
return i.resetWarningCache = e, Wa = function() {
|
|
22494
22498
|
function t(o, a, A, f, d, l) {
|
|
22495
22499
|
if (l !== n) {
|
|
22496
22500
|
var c = new Error(
|
|
@@ -22527,7 +22531,7 @@ function R7() {
|
|
|
22527
22531
|
resetWarningCache: e
|
|
22528
22532
|
};
|
|
22529
22533
|
return s.PropTypes = s, s;
|
|
22530
|
-
},
|
|
22534
|
+
}, Wa;
|
|
22531
22535
|
}
|
|
22532
22536
|
var xu;
|
|
22533
22537
|
function Lp() {
|
|
@@ -22539,27 +22543,27 @@ function Lp() {
|
|
|
22539
22543
|
cr.exports = /* @__PURE__ */ R7()();
|
|
22540
22544
|
return cr.exports;
|
|
22541
22545
|
}
|
|
22542
|
-
var
|
|
22546
|
+
var Ga, Eu;
|
|
22543
22547
|
function Fp() {
|
|
22544
|
-
return Eu || (Eu = 1,
|
|
22548
|
+
return Eu || (Eu = 1, Ga = {
|
|
22545
22549
|
L: 1,
|
|
22546
22550
|
M: 0,
|
|
22547
22551
|
Q: 3,
|
|
22548
22552
|
H: 2
|
|
22549
|
-
}),
|
|
22553
|
+
}), Ga;
|
|
22550
22554
|
}
|
|
22551
|
-
var
|
|
22555
|
+
var Ya, Iu;
|
|
22552
22556
|
function jp() {
|
|
22553
|
-
return Iu || (Iu = 1,
|
|
22557
|
+
return Iu || (Iu = 1, Ya = {
|
|
22554
22558
|
MODE_NUMBER: 1,
|
|
22555
22559
|
MODE_ALPHA_NUM: 2,
|
|
22556
22560
|
MODE_8BIT_BYTE: 4,
|
|
22557
22561
|
MODE_KANJI: 8
|
|
22558
|
-
}),
|
|
22562
|
+
}), Ya;
|
|
22559
22563
|
}
|
|
22560
|
-
var
|
|
22564
|
+
var _a, Bu;
|
|
22561
22565
|
function P7() {
|
|
22562
|
-
if (Bu) return
|
|
22566
|
+
if (Bu) return _a;
|
|
22563
22567
|
Bu = 1;
|
|
22564
22568
|
var n = jp();
|
|
22565
22569
|
function e(i) {
|
|
@@ -22573,11 +22577,11 @@ function P7() {
|
|
|
22573
22577
|
for (var t = 0; t < this.data.length; t++)
|
|
22574
22578
|
i.put(this.data.charCodeAt(t), 8);
|
|
22575
22579
|
}
|
|
22576
|
-
},
|
|
22580
|
+
}, _a = e, _a;
|
|
22577
22581
|
}
|
|
22578
|
-
var
|
|
22582
|
+
var qa, Du;
|
|
22579
22583
|
function Q7() {
|
|
22580
|
-
if (Du) return
|
|
22584
|
+
if (Du) return qa;
|
|
22581
22585
|
Du = 1;
|
|
22582
22586
|
var n = Fp();
|
|
22583
22587
|
function e(i, t) {
|
|
@@ -22809,11 +22813,11 @@ function Q7() {
|
|
|
22809
22813
|
default:
|
|
22810
22814
|
return;
|
|
22811
22815
|
}
|
|
22812
|
-
},
|
|
22816
|
+
}, qa = e, qa;
|
|
22813
22817
|
}
|
|
22814
|
-
var
|
|
22818
|
+
var Ha, Nu;
|
|
22815
22819
|
function O7() {
|
|
22816
|
-
if (Nu) return
|
|
22820
|
+
if (Nu) return Ha;
|
|
22817
22821
|
Nu = 1;
|
|
22818
22822
|
function n() {
|
|
22819
22823
|
this.buffer = new Array(), this.length = 0;
|
|
@@ -22834,11 +22838,11 @@ function O7() {
|
|
|
22834
22838
|
var i = Math.floor(this.length / 8);
|
|
22835
22839
|
this.buffer.length <= i && this.buffer.push(0), e && (this.buffer[i] |= 128 >>> this.length % 8), this.length++;
|
|
22836
22840
|
}
|
|
22837
|
-
},
|
|
22841
|
+
}, Ha = n, Ha;
|
|
22838
22842
|
}
|
|
22839
|
-
var
|
|
22843
|
+
var Ua, Su;
|
|
22840
22844
|
function Wp() {
|
|
22841
|
-
if (Su) return
|
|
22845
|
+
if (Su) return Ua;
|
|
22842
22846
|
Su = 1;
|
|
22843
22847
|
for (var n = {
|
|
22844
22848
|
glog: function(i) {
|
|
@@ -22861,11 +22865,11 @@ function Wp() {
|
|
|
22861
22865
|
n.EXP_TABLE[e] = n.EXP_TABLE[e - 4] ^ n.EXP_TABLE[e - 5] ^ n.EXP_TABLE[e - 6] ^ n.EXP_TABLE[e - 8];
|
|
22862
22866
|
for (var e = 0; e < 255; e++)
|
|
22863
22867
|
n.LOG_TABLE[n.EXP_TABLE[e]] = e;
|
|
22864
|
-
return
|
|
22868
|
+
return Ua = n, Ua;
|
|
22865
22869
|
}
|
|
22866
|
-
var
|
|
22870
|
+
var za, Tu;
|
|
22867
22871
|
function Gp() {
|
|
22868
|
-
if (Tu) return
|
|
22872
|
+
if (Tu) return za;
|
|
22869
22873
|
Tu = 1;
|
|
22870
22874
|
var n = Wp();
|
|
22871
22875
|
function e(i, t) {
|
|
@@ -22899,11 +22903,11 @@ function Gp() {
|
|
|
22899
22903
|
r[s] ^= n.gexp(n.glog(i.get(s)) + t);
|
|
22900
22904
|
return new e(r, 0).mod(i);
|
|
22901
22905
|
}
|
|
22902
|
-
},
|
|
22906
|
+
}, za = e, za;
|
|
22903
22907
|
}
|
|
22904
|
-
var
|
|
22908
|
+
var Va, Mu;
|
|
22905
22909
|
function L7() {
|
|
22906
|
-
if (Mu) return
|
|
22910
|
+
if (Mu) return Va;
|
|
22907
22911
|
Mu = 1;
|
|
22908
22912
|
var n = jp(), e = Gp(), i = Wp(), t = {
|
|
22909
22913
|
PATTERN000: 0,
|
|
@@ -23075,11 +23079,11 @@ function L7() {
|
|
|
23075
23079
|
return a += b * 10, a;
|
|
23076
23080
|
}
|
|
23077
23081
|
};
|
|
23078
|
-
return
|
|
23082
|
+
return Va = r, Va;
|
|
23079
23083
|
}
|
|
23080
|
-
var
|
|
23084
|
+
var Ja, Ru;
|
|
23081
23085
|
function F7() {
|
|
23082
|
-
if (Ru) return
|
|
23086
|
+
if (Ru) return Ja;
|
|
23083
23087
|
Ru = 1;
|
|
23084
23088
|
var n = P7(), e = Q7(), i = O7(), t = L7(), r = Gp();
|
|
23085
23089
|
function s(a, A) {
|
|
@@ -23225,7 +23229,7 @@ function F7() {
|
|
|
23225
23229
|
for (var m = 0; m < A.length; m++)
|
|
23226
23230
|
y < u[m].length && (x[E++] = u[m][y]);
|
|
23227
23231
|
return x;
|
|
23228
|
-
},
|
|
23232
|
+
}, Ja = s, Ja;
|
|
23229
23233
|
}
|
|
23230
23234
|
var ur = {}, Pu;
|
|
23231
23235
|
function j7() {
|
|
@@ -23414,7 +23418,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23414
23418
|
{
|
|
23415
23419
|
size: 256,
|
|
23416
23420
|
style: { width: "100%", height: "70%", maxWidth: "100%" },
|
|
23417
|
-
value: `${t?.qrUrl ||
|
|
23421
|
+
value: `${t?.qrUrl || ia}${e}`,
|
|
23418
23422
|
viewBox: "0 0 256 256"
|
|
23419
23423
|
}
|
|
23420
23424
|
) }),
|
|
@@ -23431,7 +23435,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23431
23435
|
/* @__PURE__ */ h(
|
|
23432
23436
|
ls,
|
|
23433
23437
|
{
|
|
23434
|
-
value: `${t?.qrUrl ||
|
|
23438
|
+
value: `${t?.qrUrl || ia}${e.split("@")[0]}`,
|
|
23435
23439
|
disabled: !0,
|
|
23436
23440
|
style: { width: "80%" }
|
|
23437
23441
|
}
|
|
@@ -23441,7 +23445,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23441
23445
|
{
|
|
23442
23446
|
text: "Copy",
|
|
23443
23447
|
onClick: () => qp(
|
|
23444
|
-
`${t?.qrUrl ||
|
|
23448
|
+
`${t?.qrUrl || ia}${e.split("@")[0]}`
|
|
23445
23449
|
)
|
|
23446
23450
|
}
|
|
23447
23451
|
)
|
|
@@ -23460,7 +23464,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23460
23464
|
isModalOpen: n,
|
|
23461
23465
|
setIsModalOpen: e
|
|
23462
23466
|
}) => {
|
|
23463
|
-
const i = be(), t = de((o) =>
|
|
23467
|
+
const i = be(), t = de((o) => vf(o)), r = () => e(!1);
|
|
23464
23468
|
return n && /* @__PURE__ */ h(Ki, { children: /* @__PURE__ */ N(Fi, { children: [
|
|
23465
23469
|
/* @__PURE__ */ h(hi, { onClick: r, style: { fontSize: 24 }, children: "×" }),
|
|
23466
23470
|
/* @__PURE__ */ h(ji, { children: "Delete this chat ?" }),
|
|
@@ -23480,7 +23484,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23480
23484
|
{
|
|
23481
23485
|
onClick: async () => {
|
|
23482
23486
|
try {
|
|
23483
|
-
await my(t.jid.split("@")[0]), i(
|
|
23487
|
+
await my(t.jid.split("@")[0]), i(hf({ jid: t.jid })), r();
|
|
23484
23488
|
} catch (o) {
|
|
23485
23489
|
console.error("Failed to delete chat:", o);
|
|
23486
23490
|
}
|
|
@@ -23494,11 +23498,11 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23494
23498
|
] })
|
|
23495
23499
|
] }) });
|
|
23496
23500
|
}, H7 = () => {
|
|
23497
|
-
const { showToast: n } = Ut(), e = be(), [i, t] = z(!1), [r, s] = z(!1), [o, a] = z([]), A = de((c) =>
|
|
23501
|
+
const { showToast: n } = Ut(), e = be(), [i, t] = z(!1), [r, s] = z(!1), [o, a] = z([]), A = de((c) => vf(c)), f = () => s(!0), d = () => {
|
|
23498
23502
|
s(!1), a([]);
|
|
23499
23503
|
};
|
|
23500
23504
|
return /* @__PURE__ */ N(ve, { children: [
|
|
23501
|
-
/* @__PURE__ */ h(
|
|
23505
|
+
/* @__PURE__ */ h(RA, { variant: "filled", unstyled: !0, onClick: f, children: "Add more Users" }),
|
|
23502
23506
|
r && /* @__PURE__ */ h(Ki, { children: /* @__PURE__ */ N(Fi, { children: [
|
|
23503
23507
|
/* @__PURE__ */ h(hi, { onClick: d, style: { fontSize: 24 }, children: "×" }),
|
|
23504
23508
|
/* @__PURE__ */ h(
|
|
@@ -23586,7 +23590,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23586
23590
|
() => [
|
|
23587
23591
|
{
|
|
23588
23592
|
label: "Delete chat",
|
|
23589
|
-
icon: /* @__PURE__ */ h(
|
|
23593
|
+
icon: /* @__PURE__ */ h(Mf, {}),
|
|
23590
23594
|
onClick: () => {
|
|
23591
23595
|
o(!0);
|
|
23592
23596
|
},
|
|
@@ -23594,11 +23598,11 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23594
23598
|
}
|
|
23595
23599
|
],
|
|
23596
23600
|
[]
|
|
23597
|
-
), f = be(), { client: d } = ze(), { user: l } = _e(), c = de((C) =>
|
|
23601
|
+
), f = be(), { client: d } = ze(), { user: l } = _e(), c = de((C) => vf(C)), u = async (C) => {
|
|
23598
23602
|
try {
|
|
23599
23603
|
let w = new FormData();
|
|
23600
23604
|
w.append("files", C);
|
|
23601
|
-
const g = (await
|
|
23605
|
+
const g = (await Vf(w))?.data?.results?.[0]?.location;
|
|
23602
23606
|
g && (d.setRoomImageStanza(c.jid, g, "icon", "none"), f(
|
|
23603
23607
|
Ze({ jid: c.jid, updates: { icon: g } })
|
|
23604
23608
|
));
|
|
@@ -23637,7 +23641,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23637
23641
|
d.setRoomImageStanza(c.jid, null, "icon", "none"), f(Ze({ jid: c.jid, updates: { icon: null } }));
|
|
23638
23642
|
}, b = (C) => {
|
|
23639
23643
|
f(Qe(me.PROFILE)), f(
|
|
23640
|
-
|
|
23644
|
+
df({
|
|
23641
23645
|
id: C._id,
|
|
23642
23646
|
firstName: C.firstName,
|
|
23643
23647
|
lastName: C.lastName,
|
|
@@ -23688,7 +23692,7 @@ const Y7 = /* @__PURE__ */ Ui(G7), Yp = S.div`
|
|
|
23688
23692
|
se,
|
|
23689
23693
|
{
|
|
23690
23694
|
style: { padding: 8, maxHeight: "40px" },
|
|
23691
|
-
EndIcon: /* @__PURE__ */ h(
|
|
23695
|
+
EndIcon: /* @__PURE__ */ h(Tf, {}),
|
|
23692
23696
|
unstyled: !0
|
|
23693
23697
|
}
|
|
23694
23698
|
)
|
|
@@ -24665,14 +24669,14 @@ const Fu = S.div`
|
|
|
24665
24669
|
], x8 = ({
|
|
24666
24670
|
handleCloseModal: n
|
|
24667
24671
|
}) => {
|
|
24668
|
-
const e =
|
|
24672
|
+
const e = Jf(), { client: i } = ze();
|
|
24669
24673
|
tn();
|
|
24670
24674
|
const { showToast: t } = Ut(), { config: r, user: s, selectedUser: o, langSource: a } = de(
|
|
24671
24675
|
(g) => g.chatSettingStore
|
|
24672
24676
|
), [A, f] = z(!1), d = ee(() => {
|
|
24673
|
-
e(
|
|
24677
|
+
e(df()), n();
|
|
24674
24678
|
}, []), l = ee(() => {
|
|
24675
|
-
e(Rs()), e(
|
|
24679
|
+
e(Rs()), e(uf());
|
|
24676
24680
|
}, []), c = Ce(
|
|
24677
24681
|
() => [
|
|
24678
24682
|
{
|
|
@@ -24754,7 +24758,7 @@ const Fu = S.div`
|
|
|
24754
24758
|
{
|
|
24755
24759
|
options: c,
|
|
24756
24760
|
position: "left",
|
|
24757
|
-
menuIcon: /* @__PURE__ */ h(
|
|
24761
|
+
menuIcon: /* @__PURE__ */ h(Tf, {})
|
|
24758
24762
|
}
|
|
24759
24763
|
)
|
|
24760
24764
|
] })
|
|
@@ -24786,7 +24790,7 @@ const Fu = S.div`
|
|
|
24786
24790
|
] }),
|
|
24787
24791
|
o && /* @__PURE__ */ N(ve, { children: [
|
|
24788
24792
|
/* @__PURE__ */ h(
|
|
24789
|
-
|
|
24793
|
+
RA,
|
|
24790
24794
|
{
|
|
24791
24795
|
StartIcon: /* @__PURE__ */ h(x4, {}),
|
|
24792
24796
|
onClick: b,
|
|
@@ -24795,7 +24799,7 @@ const Fu = S.div`
|
|
|
24795
24799
|
}
|
|
24796
24800
|
),
|
|
24797
24801
|
/* @__PURE__ */ h(
|
|
24798
|
-
|
|
24802
|
+
RA,
|
|
24799
24803
|
{
|
|
24800
24804
|
onClick: () => qp(o.id),
|
|
24801
24805
|
variant: "filled",
|
|
@@ -24954,7 +24958,7 @@ const Fu = S.div`
|
|
|
24954
24958
|
height: 20px;
|
|
24955
24959
|
object-fit: cover;
|
|
24956
24960
|
pointer-events: none;
|
|
24957
|
-
`,
|
|
24961
|
+
`, Kf = S.div`
|
|
24958
24962
|
width: 100%;
|
|
24959
24963
|
height: 100%;
|
|
24960
24964
|
position: relative;
|
|
@@ -25009,7 +25013,7 @@ const Fu = S.div`
|
|
|
25009
25013
|
},
|
|
25010
25014
|
children: [
|
|
25011
25015
|
/* @__PURE__ */ N(N8, { children: [
|
|
25012
|
-
/* @__PURE__ */ h(
|
|
25016
|
+
/* @__PURE__ */ h(Kf, { children: /* @__PURE__ */ h(S8, { src: e, muted: !0, playsInline: !0 }) }),
|
|
25013
25017
|
/* @__PURE__ */ h(T8, { children: "▶" })
|
|
25014
25018
|
] }),
|
|
25015
25019
|
/* @__PURE__ */ h(vi, { children: i || "file" })
|
|
@@ -25047,7 +25051,7 @@ const Fu = S.div`
|
|
|
25047
25051
|
gap: "4px"
|
|
25048
25052
|
},
|
|
25049
25053
|
children: [
|
|
25050
|
-
/* @__PURE__ */ h(P8, { children: /* @__PURE__ */ h(
|
|
25054
|
+
/* @__PURE__ */ h(P8, { children: /* @__PURE__ */ h(Kf, { children: /* @__PURE__ */ h(D8, { src: e }) }) }),
|
|
25051
25055
|
/* @__PURE__ */ h(vi, { children: i || "file" })
|
|
25052
25056
|
]
|
|
25053
25057
|
}
|
|
@@ -25140,7 +25144,7 @@ const Fu = S.div`
|
|
|
25140
25144
|
gap: "4px"
|
|
25141
25145
|
},
|
|
25142
25146
|
children: [
|
|
25143
|
-
/* @__PURE__ */ h(W8, { children: /* @__PURE__ */ h(
|
|
25147
|
+
/* @__PURE__ */ h(W8, { children: /* @__PURE__ */ h(Kf, { children: /* @__PURE__ */ h(j8, { children: "▶" }) }) }),
|
|
25144
25148
|
/* @__PURE__ */ h(vi, { children: "audio" })
|
|
25145
25149
|
]
|
|
25146
25150
|
}
|
|
@@ -25250,7 +25254,7 @@ const Fu = S.div`
|
|
|
25250
25254
|
},
|
|
25251
25255
|
children: [
|
|
25252
25256
|
n.composing ? /* @__PURE__ */ h(
|
|
25253
|
-
|
|
25257
|
+
Nf,
|
|
25254
25258
|
{
|
|
25255
25259
|
usersTyping: n.composingList,
|
|
25256
25260
|
style: { color: i ? "#fff" : "#141414" }
|
|
@@ -25276,7 +25280,7 @@ const Fu = S.div`
|
|
|
25276
25280
|
},
|
|
25277
25281
|
e
|
|
25278
25282
|
);
|
|
25279
|
-
},
|
|
25283
|
+
}, YA = ({
|
|
25280
25284
|
chats: n,
|
|
25281
25285
|
burgerMenu: e = !1,
|
|
25282
25286
|
onRoomClick: i,
|
|
@@ -25317,7 +25321,7 @@ const Fu = S.div`
|
|
|
25317
25321
|
(v) => !t && c === v.jid,
|
|
25318
25322
|
[c]
|
|
25319
25323
|
), k = ee(async () => {
|
|
25320
|
-
r && (await r.close(), s(null)), d(
|
|
25324
|
+
r && (await r.close(), s(null)), d(uf()), d(Rs());
|
|
25321
25325
|
}, []), g = Ce(
|
|
25322
25326
|
() => [
|
|
25323
25327
|
{
|
|
@@ -25428,7 +25432,7 @@ const Fu = S.div`
|
|
|
25428
25432
|
se,
|
|
25429
25433
|
{
|
|
25430
25434
|
style: { padding: 8, maxHeight: "40px" },
|
|
25431
|
-
EndIcon: /* @__PURE__ */ h(
|
|
25435
|
+
EndIcon: /* @__PURE__ */ h(Tf, {}),
|
|
25432
25436
|
unstyled: !0
|
|
25433
25437
|
}
|
|
25434
25438
|
)
|
|
@@ -25449,7 +25453,7 @@ const U8 = ({
|
|
|
25449
25453
|
Ze({ jid: l.jid, updates: { ...l, unreadMessages: 0 } })
|
|
25450
25454
|
), i(We({ roomJID: l.jid })), i(Le({ chatJID: l.jid, loading: !0 }));
|
|
25451
25455
|
}, d = ee(() => {
|
|
25452
|
-
if (t.leaveTheRoomStanza(s), i(
|
|
25456
|
+
if (t.leaveTheRoomStanza(s), i(hf({ jid: s })), Object.keys(r).length < 1 || s === Object.keys(r)[0]) {
|
|
25453
25457
|
const c = `${window.location.pathname}`;
|
|
25454
25458
|
window.history.pushState(null, "", c), i(We({ roomJID: null }));
|
|
25455
25459
|
return;
|
|
@@ -25467,7 +25471,7 @@ const U8 = ({
|
|
|
25467
25471
|
}
|
|
25468
25472
|
),
|
|
25469
25473
|
a?.chatHeaderBurgerMenu && r && /* @__PURE__ */ h(
|
|
25470
|
-
|
|
25474
|
+
YA,
|
|
25471
25475
|
{
|
|
25472
25476
|
chats: Object.values(r),
|
|
25473
25477
|
burgerMenu: !0,
|
|
@@ -25494,7 +25498,7 @@ const U8 = ({
|
|
|
25494
25498
|
Pl,
|
|
25495
25499
|
{
|
|
25496
25500
|
style: { color: "#8C8C8C", fontSize: "14px" },
|
|
25497
|
-
children: o ? /* @__PURE__ */ h(
|
|
25501
|
+
children: o ? /* @__PURE__ */ h(Nf, { usersTyping: n?.composingList }) : `${H8(n?.usersCnt)} ${n?.usersCnt === 1 ? "user" : "users"}`
|
|
25498
25502
|
}
|
|
25499
25503
|
)
|
|
25500
25504
|
] })
|
|
@@ -25635,15 +25639,15 @@ for (let n = 0; n < 256; ++n)
|
|
|
25635
25639
|
function rx(n, e = 0) {
|
|
25636
25640
|
return (Be[n[e + 0]] + Be[n[e + 1]] + Be[n[e + 2]] + Be[n[e + 3]] + "-" + Be[n[e + 4]] + Be[n[e + 5]] + "-" + Be[n[e + 6]] + Be[n[e + 7]] + "-" + Be[n[e + 8]] + Be[n[e + 9]] + "-" + Be[n[e + 10]] + Be[n[e + 11]] + Be[n[e + 12]] + Be[n[e + 13]] + Be[n[e + 14]] + Be[n[e + 15]]).toLowerCase();
|
|
25637
25641
|
}
|
|
25638
|
-
let
|
|
25642
|
+
let Xa;
|
|
25639
25643
|
const sx = new Uint8Array(16);
|
|
25640
25644
|
function ox() {
|
|
25641
|
-
if (!
|
|
25645
|
+
if (!Xa) {
|
|
25642
25646
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
25643
25647
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
25644
|
-
|
|
25648
|
+
Xa = crypto.getRandomValues.bind(crypto);
|
|
25645
25649
|
}
|
|
25646
|
-
return
|
|
25650
|
+
return Xa(sx);
|
|
25647
25651
|
}
|
|
25648
25652
|
const ax = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Wu = { randomUUID: ax };
|
|
25649
25653
|
function Ur(n, e, i) {
|
|
@@ -25964,7 +25968,7 @@ const Ax = (n) => {
|
|
|
25964
25968
|
try {
|
|
25965
25969
|
const g = new FormData();
|
|
25966
25970
|
g.append("files", m);
|
|
25967
|
-
const v = await
|
|
25971
|
+
const v = await Vf(g);
|
|
25968
25972
|
for (const x of v.data.results) {
|
|
25969
25973
|
const E = {
|
|
25970
25974
|
firstName: o.firstName,
|
|
@@ -26034,10 +26038,10 @@ const Ax = (n) => {
|
|
|
26034
26038
|
isLastMessageFromUserAndProcessing: d
|
|
26035
26039
|
};
|
|
26036
26040
|
}, Vp = () => {
|
|
26037
|
-
const { client: n } = ze(), e =
|
|
26041
|
+
const { client: n } = ze(), e = Jf();
|
|
26038
26042
|
return ee(
|
|
26039
26043
|
async (t, r) => {
|
|
26040
|
-
const s = await
|
|
26044
|
+
const s = await kf();
|
|
26041
26045
|
return s?.items?.forEach((o) => {
|
|
26042
26046
|
e(
|
|
26043
26047
|
Qs({
|
|
@@ -26099,7 +26103,7 @@ const Ax = (n) => {
|
|
|
26099
26103
|
}, 100);
|
|
26100
26104
|
return () => clearTimeout(o);
|
|
26101
26105
|
}, [s]), { sendStartComposing: r, sendEndComposing: s };
|
|
26102
|
-
},
|
|
26106
|
+
}, Ka = Me.memo(
|
|
26103
26107
|
({ CustomMessageComponent: n, handleBackClick: e }) => {
|
|
26104
26108
|
const { client: i } = ze(), t = be(), [r, s] = z(!1), { user: o, config: a } = _e(), {
|
|
26105
26109
|
roomsList: A,
|
|
@@ -26159,7 +26163,7 @@ const Ax = (n) => {
|
|
|
26159
26163
|
timestamp: (/* @__PURE__ */ new Date()).getTime()
|
|
26160
26164
|
})
|
|
26161
26165
|
), t(
|
|
26162
|
-
|
|
26166
|
+
lf({
|
|
26163
26167
|
roomJID: f,
|
|
26164
26168
|
messageId: "delimiter-new"
|
|
26165
26169
|
})
|
|
@@ -26218,7 +26222,7 @@ const Ax = (n) => {
|
|
|
26218
26222
|
}
|
|
26219
26223
|
),
|
|
26220
26224
|
a?.customTypingIndicator?.enabled && (a.customTypingIndicator.position === "overlay" || a.customTypingIndicator.position === "floating") && A[f]?.composing && /* @__PURE__ */ h(
|
|
26221
|
-
|
|
26225
|
+
Sf,
|
|
26222
26226
|
{
|
|
26223
26227
|
usersTyping: A[f]?.composingList || ["User"],
|
|
26224
26228
|
text: a.customTypingIndicator.text,
|
|
@@ -26927,7 +26931,7 @@ class px extends zt {
|
|
|
26927
26931
|
this.unsubscribe();
|
|
26928
26932
|
}
|
|
26929
26933
|
}
|
|
26930
|
-
class
|
|
26934
|
+
class Za extends zt {
|
|
26931
26935
|
constructor(e = new AudioContext()) {
|
|
26932
26936
|
super(), this.bufferNode = null, this.playStartTime = 0, this.playedDuration = 0, this._muted = !1, this._playbackRate = 1, this._duration = void 0, this.buffer = null, this.currentSrc = "", this.paused = !0, this.crossOrigin = null, this.seeking = !1, this.autoplay = !1, this.addEventListener = this.on, this.removeEventListener = this.un, this.audioContext = e, this.gainNode = this.audioContext.createGain(), this.gainNode.connect(this.audioContext.destination);
|
|
26933
26937
|
}
|
|
@@ -27031,7 +27035,7 @@ class Pt extends mx {
|
|
|
27031
27035
|
return new Pt(e);
|
|
27032
27036
|
}
|
|
27033
27037
|
constructor(e) {
|
|
27034
|
-
const i = e.media || (e.backend === "WebAudio" ? new
|
|
27038
|
+
const i = e.media || (e.backend === "WebAudio" ? new Za() : void 0);
|
|
27035
27039
|
super({ media: i, mediaControls: e.mediaControls, autoplay: e.autoplay, playbackRate: e.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this.options = Object.assign({}, gx, e), this.timer = new px();
|
|
27036
27040
|
const t = i ? void 0 : this.getMediaElement();
|
|
27037
27041
|
this.renderer = new _i(this.options, t), this.initPlayerEvents(), this.initRendererEvents(), this.initTimerEvents(), this.initPlugins();
|
|
@@ -27154,7 +27158,7 @@ class Pt extends mx {
|
|
|
27154
27158
|
});
|
|
27155
27159
|
if (!e && !i) {
|
|
27156
27160
|
const a = this.getMediaElement();
|
|
27157
|
-
a instanceof
|
|
27161
|
+
a instanceof Za && (a.duration = o);
|
|
27158
27162
|
}
|
|
27159
27163
|
if (t) this.decodedData = pr.createBuffer(t, o || 0);
|
|
27160
27164
|
else if (i) {
|
|
@@ -27226,7 +27230,7 @@ class Pt extends mx {
|
|
|
27226
27230
|
return Te(this, void 0, void 0, function* () {
|
|
27227
27231
|
e != null && this.setTime(e);
|
|
27228
27232
|
const r = yield t.play.call(this);
|
|
27229
|
-
return i != null && (this.media instanceof
|
|
27233
|
+
return i != null && (this.media instanceof Za ? this.media.stopAt(i) : this.stopAtPosition = i), r;
|
|
27230
27234
|
});
|
|
27231
27235
|
}
|
|
27232
27236
|
playPause() {
|
|
@@ -27443,7 +27447,7 @@ function ng(n) {
|
|
|
27443
27447
|
var e = n.parentNode;
|
|
27444
27448
|
e && e.removeChild(n);
|
|
27445
27449
|
}
|
|
27446
|
-
function
|
|
27450
|
+
function _A(n, e, i) {
|
|
27447
27451
|
var t, r, s, o = {};
|
|
27448
27452
|
for (s in e) s == "key" ? t = e[s] : s == "ref" ? r = e[s] : o[s] = e[s];
|
|
27449
27453
|
if (arguments.length > 2 && (o.children = arguments.length > 3 ? so.call(arguments, 2) : i), typeof n == "function" && n.defaultProps != null) for (s in n.defaultProps) o[s] === void 0 && (o[s] = n.defaultProps[s]);
|
|
@@ -27501,7 +27505,7 @@ function ks() {
|
|
|
27501
27505
|
return e.__v.__b - i.__v.__b;
|
|
27502
27506
|
}), xt = [], n.some(function(e) {
|
|
27503
27507
|
var i, t, r, s, o, a;
|
|
27504
|
-
e.__d && (o = (s = (i = e).__v).__e, (a = i.__P) && (t = [], (r = Wn({}, s)).__v = s.__v + 1,
|
|
27508
|
+
e.__d && (o = (s = (i = e).__v).__e, (a = i.__P) && (t = [], (r = Wn({}, s)).__v = s.__v + 1, Zf(a, s, r, i.__n, a.ownerSVGElement !== void 0, s.__h != null ? [
|
|
27505
27509
|
o
|
|
27506
27510
|
] : null, t, o ?? Hi(s), s.__h), og(t, s), s.__e != o && ig(s)));
|
|
27507
27511
|
});
|
|
@@ -27519,7 +27523,7 @@ function tg(n, e, i, t, r, s, o, a, A, f) {
|
|
|
27519
27523
|
}
|
|
27520
27524
|
c = null;
|
|
27521
27525
|
}
|
|
27522
|
-
|
|
27526
|
+
Zf(n, u, c = c || ys, r, s, o, a, A, f), m = u.__e, (l = u.ref) && c.ref != l && (b || (b = []), c.ref && b.push(c.ref, null, u), b.push(l, u.__c || m, u)), m != null ? (p == null && (p = m), typeof u.type == "function" && u.__k === c.__k ? u.__d = A = rg(u, A, n) : A = sg(n, u, c, y, m, A), typeof i.type == "function" && (i.__d = A)) : A && c.__e == A && A.parentNode != n && (A = Hi(c));
|
|
27523
27527
|
}
|
|
27524
27528
|
for (i.__e = p, d = C; d--; ) y[d] != null && (typeof i.type == "function" && y[d].__e != null && y[d].__e == i.__d && (i.__d = Hi(t, d + 1)), Ag(y[d], y[d]));
|
|
27525
27529
|
if (b) for (d = 0; d < b.length; d++) ag(b[d], b[++d], b[++d]);
|
|
@@ -27576,7 +27580,7 @@ function zu(n) {
|
|
|
27576
27580
|
function Vu(n) {
|
|
27577
27581
|
this.l[n.type + !0]($.event ? $.event(n) : n);
|
|
27578
27582
|
}
|
|
27579
|
-
function
|
|
27583
|
+
function Zf(n, e, i, t, r, s, o, a, A) {
|
|
27580
27584
|
var f, d, l, c, u, m, p, b, y, C, w, k = e.type;
|
|
27581
27585
|
if (e.constructor !== void 0) return null;
|
|
27582
27586
|
i.__h != null && (A = i.__h, a = e.__e = i.__e, e.__h = null, s = [
|
|
@@ -27667,7 +27671,7 @@ function xx(n, e, i) {
|
|
|
27667
27671
|
}
|
|
27668
27672
|
function fg(n, e, i) {
|
|
27669
27673
|
var t, r, s;
|
|
27670
|
-
$.__ && $.__(n, e), r = (t = typeof i == "function") ? null : i && i.__k || e.__k, s = [],
|
|
27674
|
+
$.__ && $.__(n, e), r = (t = typeof i == "function") ? null : i && i.__k || e.__k, s = [], Zf(e, n = (!t && i || e).__k = _A(qi, null, [
|
|
27671
27675
|
n
|
|
27672
27676
|
]), r || ys, ys, e.ownerSVGElement !== void 0, !t && i ? [
|
|
27673
27677
|
i
|
|
@@ -27729,7 +27733,7 @@ var _n = {
|
|
|
27729
27733
|
set: Ix,
|
|
27730
27734
|
get: Bx
|
|
27731
27735
|
};
|
|
27732
|
-
const
|
|
27736
|
+
const $a = /* @__PURE__ */ new Map(), Dx = [
|
|
27733
27737
|
{
|
|
27734
27738
|
v: 15,
|
|
27735
27739
|
emoji: "🫨"
|
|
@@ -27787,9 +27791,9 @@ function Sx() {
|
|
|
27787
27791
|
return !dg("🇨🇦");
|
|
27788
27792
|
}
|
|
27789
27793
|
function dg(n) {
|
|
27790
|
-
if (
|
|
27794
|
+
if ($a.has(n)) return $a.get(n);
|
|
27791
27795
|
const e = Tx(n);
|
|
27792
|
-
return
|
|
27796
|
+
return $a.set(n, e), e;
|
|
27793
27797
|
}
|
|
27794
27798
|
const Tx = (() => {
|
|
27795
27799
|
let n = null;
|
|
@@ -27815,7 +27819,7 @@ var Ju = {
|
|
|
27815
27819
|
latestVersion: Nx,
|
|
27816
27820
|
noCountryFlags: Sx
|
|
27817
27821
|
};
|
|
27818
|
-
const
|
|
27822
|
+
const qA = [
|
|
27819
27823
|
"+1",
|
|
27820
27824
|
"grinning",
|
|
27821
27825
|
"kissing_heart",
|
|
@@ -27844,8 +27848,8 @@ function Rx({ maxFrequentRows: n, perLine: e }) {
|
|
|
27844
27848
|
let i = [];
|
|
27845
27849
|
if (!Se) {
|
|
27846
27850
|
Se = {};
|
|
27847
|
-
for (let s in
|
|
27848
|
-
const o =
|
|
27851
|
+
for (let s in qA.slice(0, e)) {
|
|
27852
|
+
const o = qA[s];
|
|
27849
27853
|
Se[o] = e - s, i.push(o);
|
|
27850
27854
|
}
|
|
27851
27855
|
return i;
|
|
@@ -27867,7 +27871,7 @@ function Rx({ maxFrequentRows: n, perLine: e }) {
|
|
|
27867
27871
|
var cg = {
|
|
27868
27872
|
add: Mx,
|
|
27869
27873
|
get: Rx,
|
|
27870
|
-
DEFAULTS:
|
|
27874
|
+
DEFAULTS: qA
|
|
27871
27875
|
}, lg = {};
|
|
27872
27876
|
lg = JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');
|
|
27873
27877
|
var Cn = {
|
|
@@ -28039,17 +28043,17 @@ var Cn = {
|
|
|
28039
28043
|
}
|
|
28040
28044
|
};
|
|
28041
28045
|
let Re = null, fe = null;
|
|
28042
|
-
const
|
|
28046
|
+
const eA = {};
|
|
28043
28047
|
async function Xu(n) {
|
|
28044
|
-
if (
|
|
28048
|
+
if (eA[n]) return eA[n];
|
|
28045
28049
|
const i = await (await fetch(n)).json();
|
|
28046
|
-
return
|
|
28050
|
+
return eA[n] = i, i;
|
|
28047
28051
|
}
|
|
28048
|
-
let
|
|
28052
|
+
let nA = null, ug = null, hg = !1;
|
|
28049
28053
|
function oo(n, { caller: e } = {}) {
|
|
28050
|
-
return
|
|
28054
|
+
return nA || (nA = new Promise((i) => {
|
|
28051
28055
|
ug = i;
|
|
28052
|
-
})), n ? Px(n) : e && !hg && console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),
|
|
28056
|
+
})), n ? Px(n) : e && !hg && console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`), nA;
|
|
28053
28057
|
}
|
|
28054
28058
|
async function Px(n) {
|
|
28055
28059
|
hg = !0;
|
|
@@ -28170,12 +28174,12 @@ function pg(n, e, i, t) {
|
|
|
28170
28174
|
return r && (s != null && r.value && typeof r.value != typeof s && (typeof r.value == "boolean" ? s = s != "false" : s = r.value.constructor(s)), r.transform && s && (s = r.transform(s)), (s == null || r.choices && r.choices.indexOf(s) == -1) && (s = r.value)), s;
|
|
28171
28175
|
}
|
|
28172
28176
|
const Qx = /^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;
|
|
28173
|
-
let
|
|
28177
|
+
let HA = null;
|
|
28174
28178
|
function Ox(n) {
|
|
28175
28179
|
return n.id ? n : fe.emojis[n] || fe.emojis[fe.aliases[n]] || fe.emojis[fe.natives[n]];
|
|
28176
28180
|
}
|
|
28177
28181
|
function Lx() {
|
|
28178
|
-
|
|
28182
|
+
HA = null;
|
|
28179
28183
|
}
|
|
28180
28184
|
async function Fx(n, { maxResults: e, caller: i } = {}) {
|
|
28181
28185
|
if (!n || !n.trim().length) return null;
|
|
@@ -28184,7 +28188,7 @@ async function Fx(n, { maxResults: e, caller: i } = {}) {
|
|
|
28184
28188
|
});
|
|
28185
28189
|
const t = n.toLowerCase().replace(/(\w)-/, "$1 ").split(/[\s|,]+/).filter((a, A, f) => a.trim() && f.indexOf(a) == A);
|
|
28186
28190
|
if (!t.length) return;
|
|
28187
|
-
let r =
|
|
28191
|
+
let r = HA || (HA = Object.values(fe.emojis)), s, o;
|
|
28188
28192
|
for (const a of t) {
|
|
28189
28193
|
if (!r.length) break;
|
|
28190
28194
|
s = [], o = {};
|
|
@@ -28432,7 +28436,7 @@ var Es = {
|
|
|
28432
28436
|
categories: _x,
|
|
28433
28437
|
search: qx
|
|
28434
28438
|
};
|
|
28435
|
-
function
|
|
28439
|
+
function UA(n) {
|
|
28436
28440
|
let { id: e, skin: i, emoji: t } = n;
|
|
28437
28441
|
if (n.shortcodes) {
|
|
28438
28442
|
const a = n.shortcodes.match(Ni.SHORTCODES_REGEX);
|
|
@@ -28530,7 +28534,7 @@ class bg extends gg {
|
|
|
28530
28534
|
const e = mg(this.props, vg, this);
|
|
28531
28535
|
e.element = this, e.ref = (i) => {
|
|
28532
28536
|
this.component = i;
|
|
28533
|
-
}, await oo(), !this.disconnected && fg(/* @__PURE__ */ Y(
|
|
28537
|
+
}, await oo(), !this.disconnected && fg(/* @__PURE__ */ Y(UA, {
|
|
28534
28538
|
...e
|
|
28535
28539
|
}), this);
|
|
28536
28540
|
}
|
|
@@ -28540,13 +28544,13 @@ class bg extends gg {
|
|
|
28540
28544
|
}
|
|
28541
28545
|
Ve(bg, "Props", vg);
|
|
28542
28546
|
typeof customElements < "u" && !customElements.get("em-emoji") && customElements.define("em-emoji", bg);
|
|
28543
|
-
var Ku,
|
|
28547
|
+
var Ku, zA = [], Zu = $.__b, $u = $.__r, e1 = $.diffed, n1 = $.__c, i1 = $.unmount;
|
|
28544
28548
|
function zx() {
|
|
28545
28549
|
var n;
|
|
28546
|
-
for (
|
|
28550
|
+
for (zA.sort(function(e, i) {
|
|
28547
28551
|
return e.__v.__b - i.__v.__b;
|
|
28548
|
-
}); n =
|
|
28549
|
-
n.__H.__h.forEach(Vr), n.__H.__h.forEach(
|
|
28552
|
+
}); n = zA.pop(); ) if (n.__P) try {
|
|
28553
|
+
n.__H.__h.forEach(Vr), n.__H.__h.forEach(VA), n.__H.__h = [];
|
|
28550
28554
|
} catch (e) {
|
|
28551
28555
|
n.__H.__h = [], $.__e(e, n.__v);
|
|
28552
28556
|
}
|
|
@@ -28556,11 +28560,11 @@ $.__b = function(n) {
|
|
|
28556
28560
|
}, $.__r = function(n) {
|
|
28557
28561
|
$u && $u(n);
|
|
28558
28562
|
var e = n.__c.__H;
|
|
28559
|
-
e && (e.__h.forEach(Vr), e.__h.forEach(
|
|
28563
|
+
e && (e.__h.forEach(Vr), e.__h.forEach(VA), e.__h = []);
|
|
28560
28564
|
}, $.diffed = function(n) {
|
|
28561
28565
|
e1 && e1(n);
|
|
28562
28566
|
var e = n.__c;
|
|
28563
|
-
e && e.__H && e.__H.__h.length && (
|
|
28567
|
+
e && e.__H && e.__H.__h.length && (zA.push(e) !== 1 && Ku === $.requestAnimationFrame || ((Ku = $.requestAnimationFrame) || function(i) {
|
|
28564
28568
|
var t, r = function() {
|
|
28565
28569
|
clearTimeout(s), t1 && cancelAnimationFrame(t), setTimeout(i);
|
|
28566
28570
|
}, s = setTimeout(r, 100);
|
|
@@ -28570,7 +28574,7 @@ $.__b = function(n) {
|
|
|
28570
28574
|
e.some(function(i) {
|
|
28571
28575
|
try {
|
|
28572
28576
|
i.__h.forEach(Vr), i.__h = i.__h.filter(function(t) {
|
|
28573
|
-
return !t.__ ||
|
|
28577
|
+
return !t.__ || VA(t);
|
|
28574
28578
|
});
|
|
28575
28579
|
} catch (t) {
|
|
28576
28580
|
e.some(function(r) {
|
|
@@ -28594,7 +28598,7 @@ function Vr(n) {
|
|
|
28594
28598
|
var e = n.__c;
|
|
28595
28599
|
typeof e == "function" && (n.__c = void 0, e());
|
|
28596
28600
|
}
|
|
28597
|
-
function
|
|
28601
|
+
function VA(n) {
|
|
28598
28602
|
n.__c = n.__();
|
|
28599
28603
|
}
|
|
28600
28604
|
function Vx(n, e) {
|
|
@@ -28624,7 +28628,7 @@ $.__e = function(n, e, i) {
|
|
|
28624
28628
|
Jx(n, e, i);
|
|
28625
28629
|
};
|
|
28626
28630
|
var o1 = $.unmount;
|
|
28627
|
-
function
|
|
28631
|
+
function iA() {
|
|
28628
28632
|
this.__u = 0, this.t = null, this.__b = null;
|
|
28629
28633
|
}
|
|
28630
28634
|
function wg(n) {
|
|
@@ -28637,7 +28641,7 @@ function gr() {
|
|
|
28637
28641
|
$.unmount = function(n) {
|
|
28638
28642
|
var e = n.__c;
|
|
28639
28643
|
e && e.__R && e.__R(), e && n.__h === !0 && (n.type = null), o1 && o1(n);
|
|
28640
|
-
}, (
|
|
28644
|
+
}, (iA.prototype = new hn()).__c = function(n, e) {
|
|
28641
28645
|
var i = e.__c, t = this;
|
|
28642
28646
|
t.t == null && (t.t = []), t.t.push(i);
|
|
28643
28647
|
var r = wg(t.__v), s = !1, o = function() {
|
|
@@ -28663,9 +28667,9 @@ $.unmount = function(n) {
|
|
|
28663
28667
|
t.__u++ || A || t.setState({
|
|
28664
28668
|
__e: t.__b = t.__v.__k[0]
|
|
28665
28669
|
}), n.then(o, o);
|
|
28666
|
-
},
|
|
28670
|
+
}, iA.prototype.componentWillUnmount = function() {
|
|
28667
28671
|
this.t = [];
|
|
28668
|
-
},
|
|
28672
|
+
}, iA.prototype.render = function(n, e) {
|
|
28669
28673
|
if (this.__b) {
|
|
28670
28674
|
if (this.__v.__k) {
|
|
28671
28675
|
var i = document.createElement("div"), t = this.__v.__k[0].__c;
|
|
@@ -28679,9 +28683,9 @@ $.unmount = function(n) {
|
|
|
28679
28683
|
}
|
|
28680
28684
|
this.__b = null;
|
|
28681
28685
|
}
|
|
28682
|
-
var r = e.__e &&
|
|
28686
|
+
var r = e.__e && _A(qi, null, n.fallback);
|
|
28683
28687
|
return r && (r.__h = null), [
|
|
28684
|
-
|
|
28688
|
+
_A(qi, null, e.__e ? null : n.children),
|
|
28685
28689
|
r
|
|
28686
28690
|
];
|
|
28687
28691
|
};
|
|
@@ -29171,7 +29175,7 @@ class oE extends hn {
|
|
|
29171
29175
|
height: this.props.emojiButtonSize,
|
|
29172
29176
|
fontSize: this.props.emojiButtonSize
|
|
29173
29177
|
},
|
|
29174
|
-
children: /* @__PURE__ */ Y(
|
|
29178
|
+
children: /* @__PURE__ */ Y(UA, {
|
|
29175
29179
|
emoji: e,
|
|
29176
29180
|
id: i ? this.props.noResultsEmoji || "cry" : this.props.previewEmoji || (this.props.previewPosition == "top" ? "point_down" : "point_up"),
|
|
29177
29181
|
set: this.props.set,
|
|
@@ -29243,7 +29247,7 @@ class oE extends hn {
|
|
|
29243
29247
|
backgroundColor: this.props.emojiButtonColors ? this.props.emojiButtonColors[(t - 1) % this.props.emojiButtonColors.length] : void 0
|
|
29244
29248
|
}
|
|
29245
29249
|
}),
|
|
29246
|
-
/* @__PURE__ */ Y(
|
|
29250
|
+
/* @__PURE__ */ Y(UA, {
|
|
29247
29251
|
emoji: e,
|
|
29248
29252
|
set: this.props.set,
|
|
29249
29253
|
size: this.props.emojiSize,
|
|
@@ -29634,7 +29638,7 @@ class oE extends hn {
|
|
|
29634
29638
|
};
|
|
29635
29639
|
}
|
|
29636
29640
|
}
|
|
29637
|
-
class
|
|
29641
|
+
class $f extends Ux {
|
|
29638
29642
|
async connectedCallback() {
|
|
29639
29643
|
const e = mg(this.props, Cn, this);
|
|
29640
29644
|
e.element = this, e.ref = (i) => {
|
|
@@ -29649,8 +29653,8 @@ class Zf extends Ux {
|
|
|
29649
29653
|
});
|
|
29650
29654
|
}
|
|
29651
29655
|
}
|
|
29652
|
-
Ve(
|
|
29653
|
-
typeof customElements < "u" && !customElements.get("em-emoji-picker") && customElements.define("em-emoji-picker",
|
|
29656
|
+
Ve($f, "Props", Cn);
|
|
29657
|
+
typeof customElements < "u" && !customElements.get("em-emoji-picker") && customElements.define("em-emoji-picker", $f);
|
|
29654
29658
|
var yg = {};
|
|
29655
29659
|
yg = `:host {
|
|
29656
29660
|
width: min-content;
|
|
@@ -30370,7 +30374,7 @@ button {
|
|
|
30370
30374
|
`;
|
|
30371
30375
|
function kg(n) {
|
|
30372
30376
|
const e = ce(null), i = ce(null);
|
|
30373
|
-
return i.current && i.current.update(n), Ae(() => (i.current = new
|
|
30377
|
+
return i.current && i.current.update(n), Ae(() => (i.current = new $f({
|
|
30374
30378
|
...n,
|
|
30375
30379
|
ref: e
|
|
30376
30380
|
}), () => {
|
|
@@ -30445,7 +30449,7 @@ const cE = S.div`
|
|
|
30445
30449
|
z-index: 999;
|
|
30446
30450
|
background: #000;
|
|
30447
30451
|
background-color: transparent;
|
|
30448
|
-
`,
|
|
30452
|
+
`, tA = S.div`
|
|
30449
30453
|
border: 1px solid var(--colors-background-bg-prymary-5, #0052cd0d);
|
|
30450
30454
|
`, wr = {
|
|
30451
30455
|
REPLY: "Reply",
|
|
@@ -30456,7 +30460,7 @@ const cE = S.div`
|
|
|
30456
30460
|
REPLY: v4,
|
|
30457
30461
|
COPY: g4,
|
|
30458
30462
|
EDIT: Ks,
|
|
30459
|
-
DELETE:
|
|
30463
|
+
DELETE: Mf
|
|
30460
30464
|
}, uE = ["joy", "heart", "fire", "+1", "smile", "scream"], hE = ({
|
|
30461
30465
|
isReply: n,
|
|
30462
30466
|
isUser: e,
|
|
@@ -30564,20 +30568,20 @@ const cE = S.div`
|
|
|
30564
30568
|
/* @__PURE__ */ h(yr.REPLY, {}),
|
|
30565
30569
|
" "
|
|
30566
30570
|
] }),
|
|
30567
|
-
/* @__PURE__ */ h(
|
|
30571
|
+
/* @__PURE__ */ h(tA, {})
|
|
30568
30572
|
] }),
|
|
30569
30573
|
/* @__PURE__ */ N(br, { onClick: () => b(i.body), children: [
|
|
30570
30574
|
wr.COPY,
|
|
30571
30575
|
/* @__PURE__ */ h(yr.COPY, {})
|
|
30572
30576
|
] }),
|
|
30573
|
-
/* @__PURE__ */ h(
|
|
30577
|
+
/* @__PURE__ */ h(tA, {}),
|
|
30574
30578
|
e && /* @__PURE__ */ N(ve, { children: [
|
|
30575
30579
|
/* @__PURE__ */ N(br, { onClick: a, children: [
|
|
30576
30580
|
wr.EDIT,
|
|
30577
30581
|
/* @__PURE__ */ h(yr.EDIT, {}),
|
|
30578
30582
|
" "
|
|
30579
30583
|
] }),
|
|
30580
|
-
/* @__PURE__ */ h(
|
|
30584
|
+
/* @__PURE__ */ h(tA, {})
|
|
30581
30585
|
] }),
|
|
30582
30586
|
(e || f?.[d].role === "moderator") && /* @__PURE__ */ N(br, { onClick: C, children: [
|
|
30583
30587
|
wr.DELETE,
|
|
@@ -30699,7 +30703,7 @@ const cE = S.div`
|
|
|
30699
30703
|
align-items: center;
|
|
30700
30704
|
justify-content: center;
|
|
30701
30705
|
`, kE = () => /* @__PURE__ */ N(wE, { children: [
|
|
30702
|
-
/* @__PURE__ */ h(yE, { children: /* @__PURE__ */ h(
|
|
30706
|
+
/* @__PURE__ */ h(yE, { children: /* @__PURE__ */ h(Mf, { width: 18, height: 18, fill: "#8C8C8C" }) }),
|
|
30703
30707
|
/* @__PURE__ */ h("p", { style: { margin: 0, color: "#8C8C8C" }, children: "This message was deleted." })
|
|
30704
30708
|
] }), CE = S.div`
|
|
30705
30709
|
gap: 8px;
|
|
@@ -30903,7 +30907,7 @@ const cE = S.div`
|
|
|
30903
30907
|
}, y = () => {
|
|
30904
30908
|
p.current && (clearTimeout(p.current), p.current = null);
|
|
30905
30909
|
}, C = (D) => {
|
|
30906
|
-
D?.name !== "Deleted User" && (f(Qe(me.PROFILE)), f(
|
|
30910
|
+
D?.name !== "Deleted User" && (f(Qe(me.PROFILE)), f(df(D)));
|
|
30907
30911
|
}, w = () => {
|
|
30908
30912
|
if (f(qn({ isEdit: !1 })), !i && n.mainMessage) {
|
|
30909
30913
|
const D = JSON.parse(n.mainMessage);
|
|
@@ -30960,7 +30964,7 @@ const cE = S.div`
|
|
|
30960
30964
|
[...n.reaction[s.xmppUsername]?.emoji || [], D],
|
|
30961
30965
|
{ firstName: s.firstName, lastName: s.lastName }
|
|
30962
30966
|
);
|
|
30963
|
-
}, x = o?.messageTextFilter?.enabled ?
|
|
30967
|
+
}, x = o?.messageTextFilter?.enabled ? MA(o?.messageTextFilter.filterFunction(n.body)) : MA(n.body), E = A.has(n.id) || n?.pending || !1;
|
|
30964
30968
|
return /* @__PURE__ */ N(ve, { children: [
|
|
30965
30969
|
/* @__PURE__ */ N(
|
|
30966
30970
|
Dk,
|
|
@@ -31489,7 +31493,7 @@ const cE = S.div`
|
|
|
31489
31493
|
}
|
|
31490
31494
|
),
|
|
31491
31495
|
A?.customTypingIndicator?.enabled && (A.customTypingIndicator.position === "overlay" || A.customTypingIndicator.position === "floating") && o[n.roomJid]?.composing && /* @__PURE__ */ h(
|
|
31492
|
-
|
|
31496
|
+
Sf,
|
|
31493
31497
|
{
|
|
31494
31498
|
usersTyping: o[n.roomJid]?.composingList || ["User"],
|
|
31495
31499
|
text: A.customTypingIndicator.text,
|
|
@@ -31690,11 +31694,11 @@ const cE = S.div`
|
|
|
31690
31694
|
]
|
|
31691
31695
|
}
|
|
31692
31696
|
);
|
|
31693
|
-
},
|
|
31697
|
+
}, JA = "@ethora/chat-component-qrChatId", qE = () => {
|
|
31694
31698
|
try {
|
|
31695
31699
|
const n = new URLSearchParams(window.location.search), e = n.get("qrChatId");
|
|
31696
31700
|
if (e) {
|
|
31697
|
-
localStorage.setItem(
|
|
31701
|
+
localStorage.setItem(JA, e), n.delete("qrChatId");
|
|
31698
31702
|
const i = window.location.pathname + (n.toString() ? `?${n.toString()}` : "") + window.location.hash;
|
|
31699
31703
|
window.history.replaceState({}, "", i);
|
|
31700
31704
|
}
|
|
@@ -31707,10 +31711,10 @@ const cE = S.div`
|
|
|
31707
31711
|
qE();
|
|
31708
31712
|
}, []), Ae(() => {
|
|
31709
31713
|
try {
|
|
31710
|
-
const r = localStorage.getItem(
|
|
31714
|
+
const r = localStorage.getItem(JA);
|
|
31711
31715
|
if (r) {
|
|
31712
31716
|
const s = e ? `${r}@${e}` : `${r}@conference.xmpp.ethoradev.com`;
|
|
31713
|
-
n({ roomJID: s }), localStorage.removeItem(
|
|
31717
|
+
n({ roomJID: s }), localStorage.removeItem(JA), t(!0);
|
|
31714
31718
|
}
|
|
31715
31719
|
} catch (r) {
|
|
31716
31720
|
console.error("Error using QR chat selection:", r);
|
|
@@ -31775,7 +31779,7 @@ const cE = S.div`
|
|
|
31775
31779
|
const y = await by(
|
|
31776
31780
|
u
|
|
31777
31781
|
);
|
|
31778
|
-
y && y.length > 0 && J.dispatch(
|
|
31782
|
+
y && y.length > 0 && J.dispatch(mf({ newUsers: y })), J.dispatch(
|
|
31779
31783
|
m2({
|
|
31780
31784
|
roomJID: f,
|
|
31781
31785
|
messages: u
|
|
@@ -31792,7 +31796,7 @@ const cE = S.div`
|
|
|
31792
31796
|
}
|
|
31793
31797
|
console.log("All rooms processed");
|
|
31794
31798
|
};
|
|
31795
|
-
function
|
|
31799
|
+
function XA(n, e) {
|
|
31796
31800
|
if (!e)
|
|
31797
31801
|
return !1;
|
|
31798
31802
|
if (Array.isArray(e)) {
|
|
@@ -31818,7 +31822,7 @@ async function zE(n, e, i, t, r = 10, s = 7500) {
|
|
|
31818
31822
|
for (; o <= r; ) {
|
|
31819
31823
|
try {
|
|
31820
31824
|
if (a = await i(n, e), t && Array.isArray(a)) {
|
|
31821
|
-
if (
|
|
31825
|
+
if (XA(
|
|
31822
31826
|
t,
|
|
31823
31827
|
a
|
|
31824
31828
|
))
|
|
@@ -31869,14 +31873,14 @@ const JE = ({
|
|
|
31869
31873
|
if (!y.xmppUsername)
|
|
31870
31874
|
a(!0), console.log("Error, no user");
|
|
31871
31875
|
else if (UE({ roomJID: n, wasAutoSelected: e, config: i, dispatch: t }), l)
|
|
31872
|
-
i?.newArch && i?.enableRoomsRetry?.enabled && (
|
|
31876
|
+
i?.newArch && i?.enableRoomsRetry?.enabled && (XA(
|
|
31873
31877
|
n,
|
|
31874
31878
|
b
|
|
31875
31879
|
) || await C()), s(!0), await l.getChatsPrivateStoreRequestStanza().then(
|
|
31876
31880
|
async (g) => {
|
|
31877
31881
|
as(g, t), d.current || (await g1(p, l), d.current = !0), u(l);
|
|
31878
31882
|
}
|
|
31879
|
-
), i?.refreshTokens?.enabled &&
|
|
31883
|
+
), i?.refreshTokens?.enabled && vA();
|
|
31880
31884
|
else
|
|
31881
31885
|
try {
|
|
31882
31886
|
s(!1), a(!1), console.log("No client, so initing one");
|
|
@@ -31890,7 +31894,7 @@ const JE = ({
|
|
|
31890
31894
|
s(!0), await Uh(g, b);
|
|
31891
31895
|
else if (i?.newArch) {
|
|
31892
31896
|
const v = await w(g);
|
|
31893
|
-
i?.enableRoomsRetry?.enabled && (
|
|
31897
|
+
i?.enableRoomsRetry?.enabled && (XA(
|
|
31894
31898
|
n,
|
|
31895
31899
|
v
|
|
31896
31900
|
) || await C()), s(!0);
|
|
@@ -31900,7 +31904,7 @@ const JE = ({
|
|
|
31900
31904
|
async (v) => {
|
|
31901
31905
|
as(v, t), d.current || (await g1(p, g), d.current = !0), u(g);
|
|
31902
31906
|
}
|
|
31903
|
-
), i?.refreshTokens?.enabled &&
|
|
31907
|
+
), i?.refreshTokens?.enabled && vA();
|
|
31904
31908
|
} catch (g) {
|
|
31905
31909
|
console.log("err", g);
|
|
31906
31910
|
}
|
|
@@ -32048,14 +32052,14 @@ const JE = ({
|
|
|
32048
32052
|
},
|
|
32049
32053
|
children: [
|
|
32050
32054
|
!i?.disableRooms && p && (f ? !a && /* @__PURE__ */ h(
|
|
32051
|
-
|
|
32055
|
+
YA,
|
|
32052
32056
|
{
|
|
32053
32057
|
chats: Object.values(p),
|
|
32054
32058
|
onRoomClick: k,
|
|
32055
32059
|
isSmallScreen: f
|
|
32056
32060
|
}
|
|
32057
32061
|
) : /* @__PURE__ */ h(
|
|
32058
|
-
|
|
32062
|
+
YA,
|
|
32059
32063
|
{
|
|
32060
32064
|
chats: Object.values(p),
|
|
32061
32065
|
onRoomClick: k
|
|
@@ -32069,13 +32073,13 @@ const JE = ({
|
|
|
32069
32073
|
customMessageComponent: e || ft
|
|
32070
32074
|
}
|
|
32071
32075
|
) : /* @__PURE__ */ h(
|
|
32072
|
-
|
|
32076
|
+
Ka,
|
|
32073
32077
|
{
|
|
32074
32078
|
CustomMessageComponent: e || ft,
|
|
32075
32079
|
handleBackClick: m
|
|
32076
32080
|
}
|
|
32077
32081
|
) : i?.disableRooms ? /* @__PURE__ */ h(
|
|
32078
|
-
|
|
32082
|
+
Ka,
|
|
32079
32083
|
{
|
|
32080
32084
|
CustomMessageComponent: e || ft,
|
|
32081
32085
|
handleBackClick: m
|
|
@@ -32088,7 +32092,7 @@ const JE = ({
|
|
|
32088
32092
|
customMessageComponent: e || ft
|
|
32089
32093
|
}
|
|
32090
32094
|
) : /* @__PURE__ */ h(
|
|
32091
|
-
|
|
32095
|
+
Ka,
|
|
32092
32096
|
{
|
|
32093
32097
|
CustomMessageComponent: e || ft
|
|
32094
32098
|
}
|
|
@@ -32216,10 +32220,10 @@ function nI(n, e, i) {
|
|
|
32216
32220
|
function iI(n, e) {
|
|
32217
32221
|
return e && (Jr(e) === "object" || typeof e == "function") ? e : Xr(n);
|
|
32218
32222
|
}
|
|
32219
|
-
function
|
|
32220
|
-
return
|
|
32223
|
+
function KA(n) {
|
|
32224
|
+
return KA = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
|
|
32221
32225
|
return i.__proto__ || Object.getPrototypeOf(i);
|
|
32222
|
-
},
|
|
32226
|
+
}, KA(n);
|
|
32223
32227
|
}
|
|
32224
32228
|
function Xr(n) {
|
|
32225
32229
|
if (n === void 0)
|
|
@@ -32229,12 +32233,12 @@ function Xr(n) {
|
|
|
32229
32233
|
function tI(n, e) {
|
|
32230
32234
|
if (typeof e != "function" && e !== null)
|
|
32231
32235
|
throw new TypeError("Super expression must either be null or a function");
|
|
32232
|
-
n.prototype = Object.create(e && e.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), e &&
|
|
32236
|
+
n.prototype = Object.create(e && e.prototype, { constructor: { value: n, writable: !0, configurable: !0 } }), e && ZA(n, e);
|
|
32233
32237
|
}
|
|
32234
|
-
function
|
|
32235
|
-
return
|
|
32238
|
+
function ZA(n, e) {
|
|
32239
|
+
return ZA = Object.setPrototypeOf || function(t, r) {
|
|
32236
32240
|
return t.__proto__ = r, t;
|
|
32237
|
-
},
|
|
32241
|
+
}, ZA(n, e);
|
|
32238
32242
|
}
|
|
32239
32243
|
function Kr(n, e, i) {
|
|
32240
32244
|
return e in n ? Object.defineProperty(n, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : n[e] = i, n;
|
|
@@ -32246,7 +32250,7 @@ var Eg = /* @__PURE__ */ function(n) {
|
|
|
32246
32250
|
$E(this, e);
|
|
32247
32251
|
for (var r = arguments.length, s = new Array(r), o = 0; o < r; o++)
|
|
32248
32252
|
s[o] = arguments[o];
|
|
32249
|
-
return t = iI(this, (i =
|
|
32253
|
+
return t = iI(this, (i = KA(e)).call.apply(i, [this].concat(s))), Kr(Xr(t), "state", {
|
|
32250
32254
|
bootstrapped: !1
|
|
32251
32255
|
}), Kr(Xr(t), "_unsubscribe", void 0), Kr(Xr(t), "handlePersistorState", function() {
|
|
32252
32256
|
var a = t.props.persistor, A = a.getState(), f = A.bootstrapped;
|
|
@@ -32306,7 +32310,7 @@ const RI = Me.memo(
|
|
|
32306
32310
|
};
|
|
32307
32311
|
}, QI = {
|
|
32308
32312
|
performLogout: () => {
|
|
32309
|
-
J.dispatch(Rs()), J.dispatch(
|
|
32313
|
+
J.dispatch(Rs()), J.dispatch(uf()), J.dispatch(k2());
|
|
32310
32314
|
}
|
|
32311
32315
|
};
|
|
32312
32316
|
async function OI(n, e = {}) {
|
|
@@ -32318,7 +32322,7 @@ async function OI(n, e = {}) {
|
|
|
32318
32322
|
}
|
|
32319
32323
|
try {
|
|
32320
32324
|
J.dispatch(
|
|
32321
|
-
|
|
32325
|
+
lf({ roomJID: o, messageId: a })
|
|
32322
32326
|
);
|
|
32323
32327
|
} catch {
|
|
32324
32328
|
}
|