@snmt-react-ui/city-select 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/city-select.js +644 -624
- package/package.json +3 -3
package/dist/city-select.js
CHANGED
@@ -201,8 +201,8 @@ const H1 = (e) => {
|
|
201
201
|
t[o] = r;
|
202
202
|
const i = He(r) ? [] : {};
|
203
203
|
return ct(r, (s, a) => {
|
204
|
-
const
|
205
|
-
!tt(
|
204
|
+
const d = n(s, o + 1);
|
205
|
+
!tt(d) && (i[a] = d);
|
206
206
|
}), t[o] = void 0, i;
|
207
207
|
}
|
208
208
|
}
|
@@ -357,7 +357,7 @@ function Gt(e, t, n) {
|
|
357
357
|
const r = n.metaTokens, o = n.visitor || c, i = n.dots, s = n.indexes, a = (n.Blob || typeof Blob < "u" && Blob) && C.isSpecCompliantForm(t);
|
358
358
|
if (!C.isFunction(o))
|
359
359
|
throw new TypeError("visitor must be a function");
|
360
|
-
function
|
360
|
+
function d(p) {
|
361
361
|
if (p === null) return "";
|
362
362
|
if (C.isDate(p))
|
363
363
|
return p.toISOString();
|
@@ -375,15 +375,15 @@ function Gt(e, t, n) {
|
|
375
375
|
!(C.isUndefined(R) || R === null) && t.append(
|
376
376
|
// eslint-disable-next-line no-nested-ternary
|
377
377
|
s === !0 ? Sr([g], b, i) : s === null ? g : g + "[]",
|
378
|
-
|
378
|
+
d(R)
|
379
379
|
);
|
380
380
|
}), !1;
|
381
381
|
}
|
382
|
-
return Tn(p) ? !0 : (t.append(Sr(f, g, i),
|
382
|
+
return Tn(p) ? !0 : (t.append(Sr(f, g, i), d(p)), !1);
|
383
383
|
}
|
384
|
-
const l = [],
|
384
|
+
const l = [], u = Object.assign(Z1, {
|
385
385
|
defaultVisitor: c,
|
386
|
-
convertValue:
|
386
|
+
convertValue: d,
|
387
387
|
isVisitable: Tn
|
388
388
|
});
|
389
389
|
function m(p, g) {
|
@@ -396,7 +396,7 @@ function Gt(e, t, n) {
|
|
396
396
|
f,
|
397
397
|
C.isString(v) ? v.trim() : v,
|
398
398
|
g,
|
399
|
-
|
399
|
+
u
|
400
400
|
)) === !0 && m(f, g ? g.concat(v) : [v]);
|
401
401
|
}), l.pop();
|
402
402
|
}
|
@@ -549,8 +549,8 @@ function ci(e) {
|
|
549
549
|
function t(n, r, o, i) {
|
550
550
|
let s = n[i++];
|
551
551
|
if (s === "__proto__") return !0;
|
552
|
-
const a = Number.isFinite(+s),
|
553
|
-
return s = !s && C.isArray(o) ? o.length : s,
|
552
|
+
const a = Number.isFinite(+s), d = i >= n.length;
|
553
|
+
return s = !s && C.isArray(o) ? o.length : s, d ? (C.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !a) : ((!o[s] || !C.isObject(o[s])) && (o[s] = []), t(n, r, o[s], i) && C.isArray(o[s]) && (o[s] = oa(o[s])), !a);
|
554
554
|
}
|
555
555
|
if (C.isFormData(e) && C.isFunction(e.entries)) {
|
556
556
|
const n = {};
|
@@ -709,14 +709,14 @@ let $ = class {
|
|
709
709
|
}
|
710
710
|
set(e, t, n) {
|
711
711
|
const r = this;
|
712
|
-
function o(s, a,
|
712
|
+
function o(s, a, d) {
|
713
713
|
const c = ze(a);
|
714
714
|
if (!c)
|
715
715
|
throw new Error("header name must be a non-empty string");
|
716
716
|
const l = C.findKey(r, c);
|
717
|
-
(!l || r[l] === void 0 ||
|
717
|
+
(!l || r[l] === void 0 || d === !0 || d === void 0 && r[l] !== !1) && (r[l || a] = bt(s));
|
718
718
|
}
|
719
|
-
const i = (s, a) => C.forEach(s, (
|
719
|
+
const i = (s, a) => C.forEach(s, (d, c) => o(d, c, a));
|
720
720
|
if (C.isPlainObject(e) || e instanceof this.constructor)
|
721
721
|
i(e, t);
|
722
722
|
else if (C.isString(e) && (e = e.trim()) && !ca(e))
|
@@ -867,25 +867,25 @@ function fa(e, t) {
|
|
867
867
|
const n = new Array(e), r = new Array(e);
|
868
868
|
let o = 0, i = 0, s;
|
869
869
|
return t = t !== void 0 ? t : 1e3, function(a) {
|
870
|
-
const
|
871
|
-
s || (s =
|
872
|
-
let l = i,
|
870
|
+
const d = Date.now(), c = r[i];
|
871
|
+
s || (s = d), n[o] = a, r[o] = d;
|
872
|
+
let l = i, u = 0;
|
873
873
|
for (; l !== o; )
|
874
|
-
|
875
|
-
if (o = (o + 1) % e, o === i && (i = (i + 1) % e),
|
874
|
+
u += n[l++], l = l % e;
|
875
|
+
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), d - s < t)
|
876
876
|
return;
|
877
|
-
const m = c &&
|
878
|
-
return m ? Math.round(
|
877
|
+
const m = c && d - c;
|
878
|
+
return m ? Math.round(u * 1e3 / m) : void 0;
|
879
879
|
};
|
880
880
|
}
|
881
881
|
function pa(e, t) {
|
882
882
|
let n = 0, r = 1e3 / t, o, i;
|
883
|
-
const s = (a,
|
884
|
-
n =
|
883
|
+
const s = (a, d = Date.now()) => {
|
884
|
+
n = d, o = null, i && (clearTimeout(i), i = null), e.apply(null, a);
|
885
885
|
};
|
886
886
|
return [(...a) => {
|
887
|
-
const
|
888
|
-
c >= r ? s(a,
|
887
|
+
const d = Date.now(), c = d - n;
|
888
|
+
c >= r ? s(a, d) : (o = a, i || (i = setTimeout(() => {
|
889
889
|
i = null, s(o);
|
890
890
|
}, r - c)));
|
891
891
|
}, () => o && s(o)];
|
@@ -894,20 +894,20 @@ const St = (e, t, n = 3) => {
|
|
894
894
|
let r = 0;
|
895
895
|
const o = fa(50, 250);
|
896
896
|
return pa((i) => {
|
897
|
-
const s = i.loaded, a = i.lengthComputable ? i.total : void 0,
|
897
|
+
const s = i.loaded, a = i.lengthComputable ? i.total : void 0, d = s - r, c = o(d), l = s <= a;
|
898
898
|
r = s;
|
899
|
-
const
|
899
|
+
const u = {
|
900
900
|
loaded: s,
|
901
901
|
total: a,
|
902
902
|
progress: a ? s / a : void 0,
|
903
|
-
bytes:
|
903
|
+
bytes: d,
|
904
904
|
rate: c || void 0,
|
905
905
|
estimated: c && a && l ? (a - s) / c : void 0,
|
906
906
|
event: i,
|
907
907
|
lengthComputable: a != null,
|
908
908
|
[t ? "download" : "upload"]: !0
|
909
909
|
};
|
910
|
-
e(
|
910
|
+
e(u);
|
911
911
|
}, n);
|
912
912
|
}, Mr = (e, t) => {
|
913
913
|
const n = e != null;
|
@@ -987,14 +987,14 @@ const Br = (e) => e instanceof $ ? { ...e } : e;
|
|
987
987
|
function Te(e, t) {
|
988
988
|
t = t || {};
|
989
989
|
const n = {};
|
990
|
-
function r(c, l,
|
991
|
-
return C.isPlainObject(c) && C.isPlainObject(l) ? C.merge.call({ caseless:
|
990
|
+
function r(c, l, u) {
|
991
|
+
return C.isPlainObject(c) && C.isPlainObject(l) ? C.merge.call({ caseless: u }, c, l) : C.isPlainObject(l) ? C.merge({}, l) : C.isArray(l) ? l.slice() : l;
|
992
992
|
}
|
993
|
-
function o(c, l,
|
993
|
+
function o(c, l, u) {
|
994
994
|
if (C.isUndefined(l)) {
|
995
995
|
if (!C.isUndefined(c))
|
996
|
-
return r(void 0, c,
|
997
|
-
} else return r(c, l,
|
996
|
+
return r(void 0, c, u);
|
997
|
+
} else return r(c, l, u);
|
998
998
|
}
|
999
999
|
function i(c, l) {
|
1000
1000
|
if (!C.isUndefined(l))
|
@@ -1006,13 +1006,13 @@ function Te(e, t) {
|
|
1006
1006
|
return r(void 0, c);
|
1007
1007
|
} else return r(void 0, l);
|
1008
1008
|
}
|
1009
|
-
function a(c, l,
|
1010
|
-
if (
|
1009
|
+
function a(c, l, u) {
|
1010
|
+
if (u in t)
|
1011
1011
|
return r(c, l);
|
1012
|
-
if (
|
1012
|
+
if (u in e)
|
1013
1013
|
return r(void 0, c);
|
1014
1014
|
}
|
1015
|
-
const
|
1015
|
+
const d = {
|
1016
1016
|
url: i,
|
1017
1017
|
method: i,
|
1018
1018
|
data: i,
|
@@ -1044,8 +1044,8 @@ function Te(e, t) {
|
|
1044
1044
|
headers: (c, l) => o(Br(c), Br(l), !0)
|
1045
1045
|
};
|
1046
1046
|
return C.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
|
1047
|
-
const l =
|
1048
|
-
C.isUndefined(
|
1047
|
+
const l = d[c] || o, u = l(e[c], t[c], c);
|
1048
|
+
C.isUndefined(u) && l !== a || (n[c] = u);
|
1049
1049
|
}), n;
|
1050
1050
|
}
|
1051
1051
|
const fi = (e) => {
|
@@ -1055,12 +1055,12 @@ const fi = (e) => {
|
|
1055
1055
|
"Authorization",
|
1056
1056
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
1057
1057
|
);
|
1058
|
-
let
|
1058
|
+
let d;
|
1059
1059
|
if (C.isFormData(n)) {
|
1060
1060
|
if (q.hasStandardBrowserEnv || q.hasStandardBrowserWebWorkerEnv)
|
1061
1061
|
s.setContentType(void 0);
|
1062
|
-
else if ((
|
1063
|
-
const [c, ...l] =
|
1062
|
+
else if ((d = s.getContentType()) !== !1) {
|
1063
|
+
const [c, ...l] = d ? d.split(";").map((u) => u.trim()).filter(Boolean) : [];
|
1064
1064
|
s.setContentType([c || "multipart/form-data", ...l].join("; "));
|
1065
1065
|
}
|
1066
1066
|
}
|
@@ -1074,7 +1074,7 @@ const fi = (e) => {
|
|
1074
1074
|
const r = fi(e);
|
1075
1075
|
let o = r.data;
|
1076
1076
|
const i = $.from(r.headers).normalize();
|
1077
|
-
let { responseType: s, onUploadProgress: a, onDownloadProgress:
|
1077
|
+
let { responseType: s, onUploadProgress: a, onDownloadProgress: d } = r, c, l, u, m, p;
|
1078
1078
|
function g() {
|
1079
1079
|
m && m(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
|
1080
1080
|
}
|
@@ -1116,7 +1116,7 @@ const fi = (e) => {
|
|
1116
1116
|
)), f = null;
|
1117
1117
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in f && C.forEach(i.toJSON(), function(b, x) {
|
1118
1118
|
f.setRequestHeader(x, b);
|
1119
|
-
}), C.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType),
|
1119
|
+
}), C.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType), d && ([u, p] = St(d, !0), f.addEventListener("progress", u)), a && f.upload && ([l, m] = St(a), f.upload.addEventListener("progress", l), f.upload.addEventListener("loadend", m)), (r.cancelToken || r.signal) && (c = (b) => {
|
1120
1120
|
f && (n(!b || b.type ? new Ue(null, e, f) : b), f.abort(), f = null);
|
1121
1121
|
}, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
|
1122
1122
|
const R = da(r.url);
|
@@ -1146,8 +1146,8 @@ const fi = (e) => {
|
|
1146
1146
|
}), e = null);
|
1147
1147
|
};
|
1148
1148
|
e.forEach((c) => c.addEventListener("abort", i));
|
1149
|
-
const { signal:
|
1150
|
-
return
|
1149
|
+
const { signal: d } = r;
|
1150
|
+
return d.unsubscribe = () => C.asap(a), d;
|
1151
1151
|
}
|
1152
1152
|
}, ba = function* (e, t) {
|
1153
1153
|
let n = e.byteLength;
|
@@ -1179,29 +1179,29 @@ const fi = (e) => {
|
|
1179
1179
|
}
|
1180
1180
|
}, Pr = (e, t, n, r) => {
|
1181
1181
|
const o = va(e, t);
|
1182
|
-
let i = 0, s, a = (
|
1183
|
-
s || (s = !0, r && r(
|
1182
|
+
let i = 0, s, a = (d) => {
|
1183
|
+
s || (s = !0, r && r(d));
|
1184
1184
|
};
|
1185
1185
|
return new ReadableStream({
|
1186
|
-
async pull(
|
1186
|
+
async pull(d) {
|
1187
1187
|
try {
|
1188
1188
|
const { done: c, value: l } = await o.next();
|
1189
1189
|
if (c) {
|
1190
|
-
a(),
|
1190
|
+
a(), d.close();
|
1191
1191
|
return;
|
1192
1192
|
}
|
1193
|
-
let
|
1193
|
+
let u = l.byteLength;
|
1194
1194
|
if (n) {
|
1195
|
-
let m = i +=
|
1195
|
+
let m = i += u;
|
1196
1196
|
n(m);
|
1197
1197
|
}
|
1198
|
-
|
1198
|
+
d.enqueue(new Uint8Array(l));
|
1199
1199
|
} catch (c) {
|
1200
1200
|
throw a(c), c;
|
1201
1201
|
}
|
1202
1202
|
},
|
1203
|
-
cancel(
|
1204
|
-
return a(
|
1203
|
+
cancel(d) {
|
1204
|
+
return a(d), o.return();
|
1205
1205
|
}
|
1206
1206
|
}, {
|
1207
1207
|
highWaterMark: 2
|
@@ -1255,10 +1255,10 @@ const xa = async (e) => {
|
|
1255
1255
|
cancelToken: i,
|
1256
1256
|
timeout: s,
|
1257
1257
|
onDownloadProgress: a,
|
1258
|
-
onUploadProgress:
|
1258
|
+
onUploadProgress: d,
|
1259
1259
|
responseType: c,
|
1260
1260
|
headers: l,
|
1261
|
-
withCredentials:
|
1261
|
+
withCredentials: u = "same-origin",
|
1262
1262
|
fetchOptions: m
|
1263
1263
|
} = fi(e);
|
1264
1264
|
c = c ? (c + "").toLowerCase() : "text";
|
@@ -1268,7 +1268,7 @@ const xa = async (e) => {
|
|
1268
1268
|
});
|
1269
1269
|
let v;
|
1270
1270
|
try {
|
1271
|
-
if (
|
1271
|
+
if (d && Ea && n !== "get" && n !== "head" && (v = await Oa(l, r)) !== 0) {
|
1272
1272
|
let E = new Request(t, {
|
1273
1273
|
method: "POST",
|
1274
1274
|
body: r,
|
@@ -1277,12 +1277,12 @@ const xa = async (e) => {
|
|
1277
1277
|
if (C.isFormData(r) && (S = E.headers.get("content-type")) && l.setContentType(S), E.body) {
|
1278
1278
|
const [O, A] = Mr(
|
1279
1279
|
v,
|
1280
|
-
St(jr(
|
1280
|
+
St(jr(d))
|
1281
1281
|
);
|
1282
1282
|
r = Pr(E.body, Dr, O, A);
|
1283
1283
|
}
|
1284
1284
|
}
|
1285
|
-
C.isString(
|
1285
|
+
C.isString(u) || (u = u ? "include" : "omit");
|
1286
1286
|
const R = "credentials" in Request.prototype;
|
1287
1287
|
g = new Request(t, {
|
1288
1288
|
...m,
|
@@ -1291,7 +1291,7 @@ const xa = async (e) => {
|
|
1291
1291
|
headers: l.normalize().toJSON(),
|
1292
1292
|
body: r,
|
1293
1293
|
duplex: "half",
|
1294
|
-
credentials: R ?
|
1294
|
+
credentials: R ? u : void 0
|
1295
1295
|
});
|
1296
1296
|
let b = await fetch(g);
|
1297
1297
|
const x = Mn && (c === "stream" || c === "response");
|
@@ -1362,7 +1362,7 @@ const Ir = (e) => `- ${e}`, Aa = (e) => C.isFunction(e) || e === null || e === !
|
|
1362
1362
|
}
|
1363
1363
|
if (!r) {
|
1364
1364
|
const i = Object.entries(o).map(
|
1365
|
-
([a,
|
1365
|
+
([a, d]) => `adapter ${a} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
1366
1366
|
);
|
1367
1367
|
let s = t ? i.length > 1 ? `since :
|
1368
1368
|
` + i.map(Ir).join(`
|
@@ -1431,9 +1431,9 @@ function Ta(e, t, n) {
|
|
1431
1431
|
for (; o-- > 0; ) {
|
1432
1432
|
const i = r[o], s = t[i];
|
1433
1433
|
if (s) {
|
1434
|
-
const a = e[i],
|
1435
|
-
if (
|
1436
|
-
throw new T("option " + i + " must be " +
|
1434
|
+
const a = e[i], d = a === void 0 || s(a, i, e);
|
1435
|
+
if (d !== !0)
|
1436
|
+
throw new T("option " + i + " must be " + d, T.ERR_BAD_OPTION_VALUE);
|
1437
1437
|
continue;
|
1438
1438
|
}
|
1439
1439
|
if (n !== !0)
|
@@ -1504,20 +1504,20 @@ let Ee = class {
|
|
1504
1504
|
this.interceptors.request.forEach(function(p) {
|
1505
1505
|
typeof p.runWhen == "function" && p.runWhen(t) === !1 || (a = a && p.synchronous, s.unshift(p.fulfilled, p.rejected));
|
1506
1506
|
});
|
1507
|
-
const
|
1507
|
+
const d = [];
|
1508
1508
|
this.interceptors.response.forEach(function(p) {
|
1509
|
-
|
1509
|
+
d.push(p.fulfilled, p.rejected);
|
1510
1510
|
});
|
1511
|
-
let c, l = 0,
|
1511
|
+
let c, l = 0, u;
|
1512
1512
|
if (!a) {
|
1513
1513
|
const p = [Fr.bind(this), void 0];
|
1514
|
-
for (p.unshift.apply(p, s), p.push.apply(p,
|
1514
|
+
for (p.unshift.apply(p, s), p.push.apply(p, d), u = p.length, c = Promise.resolve(t); l < u; )
|
1515
1515
|
c = c.then(p[l++], p[l++]);
|
1516
1516
|
return c;
|
1517
1517
|
}
|
1518
|
-
|
1518
|
+
u = s.length;
|
1519
1519
|
let m = t;
|
1520
|
-
for (l = 0; l <
|
1520
|
+
for (l = 0; l < u; ) {
|
1521
1521
|
const p = s[l++], g = s[l++];
|
1522
1522
|
try {
|
1523
1523
|
m = p(m);
|
@@ -1531,8 +1531,8 @@ let Ee = class {
|
|
1531
1531
|
} catch (p) {
|
1532
1532
|
return Promise.reject(p);
|
1533
1533
|
}
|
1534
|
-
for (l = 0,
|
1535
|
-
c = c.then(
|
1534
|
+
for (l = 0, u = d.length; l < u; )
|
1535
|
+
c = c.then(d[l++], d[l++]);
|
1536
1536
|
return c;
|
1537
1537
|
}
|
1538
1538
|
getUri(e) {
|
@@ -1753,9 +1753,9 @@ const Ba = ({
|
|
1753
1753
|
onChange: r,
|
1754
1754
|
disableUncheck: o = !1
|
1755
1755
|
}) => {
|
1756
|
-
const [i, s] = K(e), [a,
|
1756
|
+
const [i, s] = K(e), [a, d] = K(t);
|
1757
1757
|
se(() => {
|
1758
|
-
s(e),
|
1758
|
+
s(e), d(t);
|
1759
1759
|
}, [e, t]);
|
1760
1760
|
const { theme: c } = lt(yi);
|
1761
1761
|
return /* @__PURE__ */ h(
|
@@ -1765,7 +1765,7 @@ const Ba = ({
|
|
1765
1765
|
checked: i,
|
1766
1766
|
indeterminate: a,
|
1767
1767
|
onChange: (l) => {
|
1768
|
-
o && i || (
|
1768
|
+
o && i || (d(!1), s(l.target.checked), r && r(l));
|
1769
1769
|
},
|
1770
1770
|
children: n
|
1771
1771
|
}
|
@@ -1931,8 +1931,8 @@ const wl = (e) => {
|
|
1931
1931
|
t[o] = r;
|
1932
1932
|
const i = Ve(r) ? [] : {};
|
1933
1933
|
return ut(r, (s, a) => {
|
1934
|
-
const
|
1935
|
-
!nt(
|
1934
|
+
const d = n(s, o + 1);
|
1935
|
+
!nt(d) && (i[a] = d);
|
1936
1936
|
}), t[o] = void 0, i;
|
1937
1937
|
}
|
1938
1938
|
}
|
@@ -2087,7 +2087,7 @@ function Yt(e, t, n) {
|
|
2087
2087
|
const r = n.metaTokens, o = n.visitor || c, i = n.dots, s = n.indexes, a = (n.Blob || typeof Blob < "u" && Blob) && k.isSpecCompliantForm(t);
|
2088
2088
|
if (!k.isFunction(o))
|
2089
2089
|
throw new TypeError("visitor must be a function");
|
2090
|
-
function
|
2090
|
+
function d(p) {
|
2091
2091
|
if (p === null) return "";
|
2092
2092
|
if (k.isDate(p))
|
2093
2093
|
return p.toISOString();
|
@@ -2105,15 +2105,15 @@ function Yt(e, t, n) {
|
|
2105
2105
|
!(k.isUndefined(R) || R === null) && t.append(
|
2106
2106
|
// eslint-disable-next-line no-nested-ternary
|
2107
2107
|
s === !0 ? Wr([g], b, i) : s === null ? g : g + "[]",
|
2108
|
-
|
2108
|
+
d(R)
|
2109
2109
|
);
|
2110
2110
|
}), !1;
|
2111
2111
|
}
|
2112
|
-
return In(p) ? !0 : (t.append(Wr(f, g, i),
|
2112
|
+
return In(p) ? !0 : (t.append(Wr(f, g, i), d(p)), !1);
|
2113
2113
|
}
|
2114
|
-
const l = [],
|
2114
|
+
const l = [], u = Object.assign(vl, {
|
2115
2115
|
defaultVisitor: c,
|
2116
|
-
convertValue:
|
2116
|
+
convertValue: d,
|
2117
2117
|
isVisitable: In
|
2118
2118
|
});
|
2119
2119
|
function m(p, g) {
|
@@ -2126,7 +2126,7 @@ function Yt(e, t, n) {
|
|
2126
2126
|
f,
|
2127
2127
|
k.isString(v) ? v.trim() : v,
|
2128
2128
|
g,
|
2129
|
-
|
2129
|
+
u
|
2130
2130
|
)) === !0 && m(f, g ? g.concat(v) : [v]);
|
2131
2131
|
}), l.pop();
|
2132
2132
|
}
|
@@ -2279,8 +2279,8 @@ function Bi(e) {
|
|
2279
2279
|
function t(n, r, o, i) {
|
2280
2280
|
let s = n[i++];
|
2281
2281
|
if (s === "__proto__") return !0;
|
2282
|
-
const a = Number.isFinite(+s),
|
2283
|
-
return s = !s && k.isArray(o) ? o.length : s,
|
2282
|
+
const a = Number.isFinite(+s), d = i >= n.length;
|
2283
|
+
return s = !s && k.isArray(o) ? o.length : s, d ? (k.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !a) : ((!o[s] || !k.isObject(o[s])) && (o[s] = []), t(n, r, o[s], i) && k.isArray(o[s]) && (o[s] = Bl(o[s])), !a);
|
2284
2284
|
}
|
2285
2285
|
if (k.isFormData(e) && k.isFunction(e.entries)) {
|
2286
2286
|
const n = {};
|
@@ -2439,14 +2439,14 @@ let Y = class {
|
|
2439
2439
|
}
|
2440
2440
|
set(e, t, n) {
|
2441
2441
|
const r = this;
|
2442
|
-
function o(s, a,
|
2442
|
+
function o(s, a, d) {
|
2443
2443
|
const c = Ye(a);
|
2444
2444
|
if (!c)
|
2445
2445
|
throw new Error("header name must be a non-empty string");
|
2446
2446
|
const l = k.findKey(r, c);
|
2447
|
-
(!l || r[l] === void 0 ||
|
2447
|
+
(!l || r[l] === void 0 || d === !0 || d === void 0 && r[l] !== !1) && (r[l || a] = Rt(s));
|
2448
2448
|
}
|
2449
|
-
const i = (s, a) => k.forEach(s, (
|
2449
|
+
const i = (s, a) => k.forEach(s, (d, c) => o(d, c, a));
|
2450
2450
|
if (k.isPlainObject(e) || e instanceof this.constructor)
|
2451
2451
|
i(e, t);
|
2452
2452
|
else if (k.isString(e) && (e = e.trim()) && !Hl(e))
|
@@ -2597,25 +2597,25 @@ function Kl(e, t) {
|
|
2597
2597
|
const n = new Array(e), r = new Array(e);
|
2598
2598
|
let o = 0, i = 0, s;
|
2599
2599
|
return t = t !== void 0 ? t : 1e3, function(a) {
|
2600
|
-
const
|
2601
|
-
s || (s =
|
2602
|
-
let l = i,
|
2600
|
+
const d = Date.now(), c = r[i];
|
2601
|
+
s || (s = d), n[o] = a, r[o] = d;
|
2602
|
+
let l = i, u = 0;
|
2603
2603
|
for (; l !== o; )
|
2604
|
-
|
2605
|
-
if (o = (o + 1) % e, o === i && (i = (i + 1) % e),
|
2604
|
+
u += n[l++], l = l % e;
|
2605
|
+
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), d - s < t)
|
2606
2606
|
return;
|
2607
|
-
const m = c &&
|
2608
|
-
return m ? Math.round(
|
2607
|
+
const m = c && d - c;
|
2608
|
+
return m ? Math.round(u * 1e3 / m) : void 0;
|
2609
2609
|
};
|
2610
2610
|
}
|
2611
2611
|
function Gl(e, t) {
|
2612
2612
|
let n = 0, r = 1e3 / t, o, i;
|
2613
|
-
const s = (a,
|
2614
|
-
n =
|
2613
|
+
const s = (a, d = Date.now()) => {
|
2614
|
+
n = d, o = null, i && (clearTimeout(i), i = null), e.apply(null, a);
|
2615
2615
|
};
|
2616
2616
|
return [(...a) => {
|
2617
|
-
const
|
2618
|
-
c >= r ? s(a,
|
2617
|
+
const d = Date.now(), c = d - n;
|
2618
|
+
c >= r ? s(a, d) : (o = a, i || (i = setTimeout(() => {
|
2619
2619
|
i = null, s(o);
|
2620
2620
|
}, r - c)));
|
2621
2621
|
}, () => o && s(o)];
|
@@ -2624,20 +2624,20 @@ const Tt = (e, t, n = 3) => {
|
|
2624
2624
|
let r = 0;
|
2625
2625
|
const o = Kl(50, 250);
|
2626
2626
|
return Gl((i) => {
|
2627
|
-
const s = i.loaded, a = i.lengthComputable ? i.total : void 0,
|
2627
|
+
const s = i.loaded, a = i.lengthComputable ? i.total : void 0, d = s - r, c = o(d), l = s <= a;
|
2628
2628
|
r = s;
|
2629
|
-
const
|
2629
|
+
const u = {
|
2630
2630
|
loaded: s,
|
2631
2631
|
total: a,
|
2632
2632
|
progress: a ? s / a : void 0,
|
2633
|
-
bytes:
|
2633
|
+
bytes: d,
|
2634
2634
|
rate: c || void 0,
|
2635
2635
|
estimated: c && a && l ? (a - s) / c : void 0,
|
2636
2636
|
event: i,
|
2637
2637
|
lengthComputable: a != null,
|
2638
2638
|
[t ? "download" : "upload"]: !0
|
2639
2639
|
};
|
2640
|
-
e(
|
2640
|
+
e(u);
|
2641
2641
|
}, n);
|
2642
2642
|
}, qr = (e, t) => {
|
2643
2643
|
const n = e != null;
|
@@ -2717,14 +2717,14 @@ const zr = (e) => e instanceof Y ? { ...e } : e;
|
|
2717
2717
|
function _e(e, t) {
|
2718
2718
|
t = t || {};
|
2719
2719
|
const n = {};
|
2720
|
-
function r(c, l,
|
2721
|
-
return k.isPlainObject(c) && k.isPlainObject(l) ? k.merge.call({ caseless:
|
2720
|
+
function r(c, l, u) {
|
2721
|
+
return k.isPlainObject(c) && k.isPlainObject(l) ? k.merge.call({ caseless: u }, c, l) : k.isPlainObject(l) ? k.merge({}, l) : k.isArray(l) ? l.slice() : l;
|
2722
2722
|
}
|
2723
|
-
function o(c, l,
|
2723
|
+
function o(c, l, u) {
|
2724
2724
|
if (k.isUndefined(l)) {
|
2725
2725
|
if (!k.isUndefined(c))
|
2726
|
-
return r(void 0, c,
|
2727
|
-
} else return r(c, l,
|
2726
|
+
return r(void 0, c, u);
|
2727
|
+
} else return r(c, l, u);
|
2728
2728
|
}
|
2729
2729
|
function i(c, l) {
|
2730
2730
|
if (!k.isUndefined(l))
|
@@ -2736,13 +2736,13 @@ function _e(e, t) {
|
|
2736
2736
|
return r(void 0, c);
|
2737
2737
|
} else return r(void 0, l);
|
2738
2738
|
}
|
2739
|
-
function a(c, l,
|
2740
|
-
if (
|
2739
|
+
function a(c, l, u) {
|
2740
|
+
if (u in t)
|
2741
2741
|
return r(c, l);
|
2742
|
-
if (
|
2742
|
+
if (u in e)
|
2743
2743
|
return r(void 0, c);
|
2744
2744
|
}
|
2745
|
-
const
|
2745
|
+
const d = {
|
2746
2746
|
url: i,
|
2747
2747
|
method: i,
|
2748
2748
|
data: i,
|
@@ -2774,8 +2774,8 @@ function _e(e, t) {
|
|
2774
2774
|
headers: (c, l) => o(zr(c), zr(l), !0)
|
2775
2775
|
};
|
2776
2776
|
return k.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
|
2777
|
-
const l =
|
2778
|
-
k.isUndefined(
|
2777
|
+
const l = d[c] || o, u = l(e[c], t[c], c);
|
2778
|
+
k.isUndefined(u) && l !== a || (n[c] = u);
|
2779
2779
|
}), n;
|
2780
2780
|
}
|
2781
2781
|
const Fi = (e) => {
|
@@ -2785,12 +2785,12 @@ const Fi = (e) => {
|
|
2785
2785
|
"Authorization",
|
2786
2786
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
2787
2787
|
);
|
2788
|
-
let
|
2788
|
+
let d;
|
2789
2789
|
if (k.isFormData(n)) {
|
2790
2790
|
if (z.hasStandardBrowserEnv || z.hasStandardBrowserWebWorkerEnv)
|
2791
2791
|
s.setContentType(void 0);
|
2792
|
-
else if ((
|
2793
|
-
const [c, ...l] =
|
2792
|
+
else if ((d = s.getContentType()) !== !1) {
|
2793
|
+
const [c, ...l] = d ? d.split(";").map((u) => u.trim()).filter(Boolean) : [];
|
2794
2794
|
s.setContentType([c || "multipart/form-data", ...l].join("; "));
|
2795
2795
|
}
|
2796
2796
|
}
|
@@ -2804,7 +2804,7 @@ const Fi = (e) => {
|
|
2804
2804
|
const r = Fi(e);
|
2805
2805
|
let o = r.data;
|
2806
2806
|
const i = Y.from(r.headers).normalize();
|
2807
|
-
let { responseType: s, onUploadProgress: a, onDownloadProgress:
|
2807
|
+
let { responseType: s, onUploadProgress: a, onDownloadProgress: d } = r, c, l, u, m, p;
|
2808
2808
|
function g() {
|
2809
2809
|
m && m(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
|
2810
2810
|
}
|
@@ -2846,7 +2846,7 @@ const Fi = (e) => {
|
|
2846
2846
|
)), f = null;
|
2847
2847
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in f && k.forEach(i.toJSON(), function(b, x) {
|
2848
2848
|
f.setRequestHeader(x, b);
|
2849
|
-
}), k.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType),
|
2849
|
+
}), k.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType), d && ([u, p] = Tt(d, !0), f.addEventListener("progress", u)), a && f.upload && ([l, m] = Tt(a), f.upload.addEventListener("progress", l), f.upload.addEventListener("loadend", m)), (r.cancelToken || r.signal) && (c = (b) => {
|
2850
2850
|
f && (n(!b || b.type ? new We(null, e, f) : b), f.abort(), f = null);
|
2851
2851
|
}, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
|
2852
2852
|
const R = Wl(r.url);
|
@@ -2876,8 +2876,8 @@ const Fi = (e) => {
|
|
2876
2876
|
}), e = null);
|
2877
2877
|
};
|
2878
2878
|
e.forEach((c) => c.addEventListener("abort", i));
|
2879
|
-
const { signal:
|
2880
|
-
return
|
2879
|
+
const { signal: d } = r;
|
2880
|
+
return d.unsubscribe = () => k.asap(a), d;
|
2881
2881
|
}
|
2882
2882
|
}, Ql = function* (e, t) {
|
2883
2883
|
let n = e.byteLength;
|
@@ -2909,29 +2909,29 @@ const Fi = (e) => {
|
|
2909
2909
|
}
|
2910
2910
|
}, Yr = (e, t, n, r) => {
|
2911
2911
|
const o = ec(e, t);
|
2912
|
-
let i = 0, s, a = (
|
2913
|
-
s || (s = !0, r && r(
|
2912
|
+
let i = 0, s, a = (d) => {
|
2913
|
+
s || (s = !0, r && r(d));
|
2914
2914
|
};
|
2915
2915
|
return new ReadableStream({
|
2916
|
-
async pull(
|
2916
|
+
async pull(d) {
|
2917
2917
|
try {
|
2918
2918
|
const { done: c, value: l } = await o.next();
|
2919
2919
|
if (c) {
|
2920
|
-
a(),
|
2920
|
+
a(), d.close();
|
2921
2921
|
return;
|
2922
2922
|
}
|
2923
|
-
let
|
2923
|
+
let u = l.byteLength;
|
2924
2924
|
if (n) {
|
2925
|
-
let m = i +=
|
2925
|
+
let m = i += u;
|
2926
2926
|
n(m);
|
2927
2927
|
}
|
2928
|
-
|
2928
|
+
d.enqueue(new Uint8Array(l));
|
2929
2929
|
} catch (c) {
|
2930
2930
|
throw a(c), c;
|
2931
2931
|
}
|
2932
2932
|
},
|
2933
|
-
cancel(
|
2934
|
-
return a(
|
2933
|
+
cancel(d) {
|
2934
|
+
return a(d), o.return();
|
2935
2935
|
}
|
2936
2936
|
}, {
|
2937
2937
|
highWaterMark: 2
|
@@ -2985,10 +2985,10 @@ const oc = async (e) => {
|
|
2985
2985
|
cancelToken: i,
|
2986
2986
|
timeout: s,
|
2987
2987
|
onDownloadProgress: a,
|
2988
|
-
onUploadProgress:
|
2988
|
+
onUploadProgress: d,
|
2989
2989
|
responseType: c,
|
2990
2990
|
headers: l,
|
2991
|
-
withCredentials:
|
2991
|
+
withCredentials: u = "same-origin",
|
2992
2992
|
fetchOptions: m
|
2993
2993
|
} = Fi(e);
|
2994
2994
|
c = c ? (c + "").toLowerCase() : "text";
|
@@ -2998,7 +2998,7 @@ const oc = async (e) => {
|
|
2998
2998
|
});
|
2999
2999
|
let v;
|
3000
3000
|
try {
|
3001
|
-
if (
|
3001
|
+
if (d && rc && n !== "get" && n !== "head" && (v = await ic(l, r)) !== 0) {
|
3002
3002
|
let E = new Request(t, {
|
3003
3003
|
method: "POST",
|
3004
3004
|
body: r,
|
@@ -3007,12 +3007,12 @@ const oc = async (e) => {
|
|
3007
3007
|
if (k.isFormData(r) && (S = E.headers.get("content-type")) && l.setContentType(S), E.body) {
|
3008
3008
|
const [O, A] = qr(
|
3009
3009
|
v,
|
3010
|
-
Tt($r(
|
3010
|
+
Tt($r(d))
|
3011
3011
|
);
|
3012
3012
|
r = Yr(E.body, Jr, O, A);
|
3013
3013
|
}
|
3014
3014
|
}
|
3015
|
-
k.isString(
|
3015
|
+
k.isString(u) || (u = u ? "include" : "omit");
|
3016
3016
|
const R = "credentials" in Request.prototype;
|
3017
3017
|
g = new Request(t, {
|
3018
3018
|
...m,
|
@@ -3021,7 +3021,7 @@ const oc = async (e) => {
|
|
3021
3021
|
headers: l.normalize().toJSON(),
|
3022
3022
|
body: r,
|
3023
3023
|
duplex: "half",
|
3024
|
-
credentials: R ?
|
3024
|
+
credentials: R ? u : void 0
|
3025
3025
|
});
|
3026
3026
|
let b = await fetch(g);
|
3027
3027
|
const x = Hn && (c === "stream" || c === "response");
|
@@ -3092,7 +3092,7 @@ const Xr = (e) => `- ${e}`, ac = (e) => k.isFunction(e) || e === null || e === !
|
|
3092
3092
|
}
|
3093
3093
|
if (!r) {
|
3094
3094
|
const i = Object.entries(o).map(
|
3095
|
-
([a,
|
3095
|
+
([a, d]) => `adapter ${a} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
3096
3096
|
);
|
3097
3097
|
let s = t ? i.length > 1 ? `since :
|
3098
3098
|
` + i.map(Xr).join(`
|
@@ -3161,9 +3161,9 @@ function lc(e, t, n) {
|
|
3161
3161
|
for (; o-- > 0; ) {
|
3162
3162
|
const i = r[o], s = t[i];
|
3163
3163
|
if (s) {
|
3164
|
-
const a = e[i],
|
3165
|
-
if (
|
3166
|
-
throw new _("option " + i + " must be " +
|
3164
|
+
const a = e[i], d = a === void 0 || s(a, i, e);
|
3165
|
+
if (d !== !0)
|
3166
|
+
throw new _("option " + i + " must be " + d, _.ERR_BAD_OPTION_VALUE);
|
3167
3167
|
continue;
|
3168
3168
|
}
|
3169
3169
|
if (n !== !0)
|
@@ -3234,20 +3234,20 @@ let xe = class {
|
|
3234
3234
|
this.interceptors.request.forEach(function(p) {
|
3235
3235
|
typeof p.runWhen == "function" && p.runWhen(t) === !1 || (a = a && p.synchronous, s.unshift(p.fulfilled, p.rejected));
|
3236
3236
|
});
|
3237
|
-
const
|
3237
|
+
const d = [];
|
3238
3238
|
this.interceptors.response.forEach(function(p) {
|
3239
|
-
|
3239
|
+
d.push(p.fulfilled, p.rejected);
|
3240
3240
|
});
|
3241
|
-
let c, l = 0,
|
3241
|
+
let c, l = 0, u;
|
3242
3242
|
if (!a) {
|
3243
3243
|
const p = [Qr.bind(this), void 0];
|
3244
|
-
for (p.unshift.apply(p, s), p.push.apply(p,
|
3244
|
+
for (p.unshift.apply(p, s), p.push.apply(p, d), u = p.length, c = Promise.resolve(t); l < u; )
|
3245
3245
|
c = c.then(p[l++], p[l++]);
|
3246
3246
|
return c;
|
3247
3247
|
}
|
3248
|
-
|
3248
|
+
u = s.length;
|
3249
3249
|
let m = t;
|
3250
|
-
for (l = 0; l <
|
3250
|
+
for (l = 0; l < u; ) {
|
3251
3251
|
const p = s[l++], g = s[l++];
|
3252
3252
|
try {
|
3253
3253
|
m = p(m);
|
@@ -3261,8 +3261,8 @@ let xe = class {
|
|
3261
3261
|
} catch (p) {
|
3262
3262
|
return Promise.reject(p);
|
3263
3263
|
}
|
3264
|
-
for (l = 0,
|
3265
|
-
c = c.then(
|
3264
|
+
for (l = 0, u = d.length; l < u; )
|
3265
|
+
c = c.then(d[l++], d[l++]);
|
3266
3266
|
return c;
|
3267
3267
|
}
|
3268
3268
|
getUri(e) {
|
@@ -6380,130 +6380,130 @@ const dc = ({
|
|
6380
6380
|
disabled: i = !1,
|
6381
6381
|
onClick: s
|
6382
6382
|
}) => {
|
6383
|
-
const [a,
|
6383
|
+
const [a, d] = K(o), { theme: c } = lt(Zi), l = i ? c && c === "dark" ? B.GREY_LIGHT_4 : B.GREY_DARK_1 : r, u = i ? void 0 : s;
|
6384
6384
|
return se(() => {
|
6385
6385
|
if (o) {
|
6386
|
-
|
6386
|
+
u && !i && d(`${o} clickable`);
|
6387
6387
|
return;
|
6388
6388
|
}
|
6389
|
-
|
6390
|
-
}, [
|
6389
|
+
u && !i && d("clickable");
|
6390
|
+
}, [u, o, i]), /* @__PURE__ */ h(Fe, { children: (() => {
|
6391
6391
|
switch (e) {
|
6392
6392
|
case "nextIcon":
|
6393
|
-
return o2({ width: t, height: n, color: l, className: a, onClick:
|
6393
|
+
return o2({ width: t, height: n, color: l, className: a, onClick: u });
|
6394
6394
|
case "prevIcon":
|
6395
|
-
return i2({ width: t, height: n, color: l, className: a, onClick:
|
6395
|
+
return i2({ width: t, height: n, color: l, className: a, onClick: u });
|
6396
6396
|
case "arrowUp":
|
6397
|
-
return dc({ width: t, height: n, color: l, className: a, onClick:
|
6397
|
+
return dc({ width: t, height: n, color: l, className: a, onClick: u });
|
6398
6398
|
case "arrowDown":
|
6399
|
-
return fc({ width: t, height: n, color: l, className: a, onClick:
|
6399
|
+
return fc({ width: t, height: n, color: l, className: a, onClick: u });
|
6400
6400
|
case "info":
|
6401
|
-
return pc({ width: t, height: n, color: l, className: a, onClick:
|
6401
|
+
return pc({ width: t, height: n, color: l, className: a, onClick: u });
|
6402
6402
|
case "arrowRight":
|
6403
|
-
return gc({ width: t, height: n, color: l, className: a, onClick:
|
6403
|
+
return gc({ width: t, height: n, color: l, className: a, onClick: u });
|
6404
6404
|
case "calendar":
|
6405
|
-
return mc({ width: t, height: n, color: l, className: a, onClick:
|
6405
|
+
return mc({ width: t, height: n, color: l, className: a, onClick: u });
|
6406
6406
|
case "ok":
|
6407
|
-
return wc({ width: t, height: n, color: l, className: a, onClick:
|
6407
|
+
return wc({ width: t, height: n, color: l, className: a, onClick: u });
|
6408
6408
|
case "cancel":
|
6409
|
-
return Cc({ width: t, height: n, color: l, className: a, onClick:
|
6409
|
+
return Cc({ width: t, height: n, color: l, className: a, onClick: u });
|
6410
6410
|
case "add":
|
6411
|
-
return kc({ width: t, height: n, color: l, className: a, onClick:
|
6411
|
+
return kc({ width: t, height: n, color: l, className: a, onClick: u });
|
6412
6412
|
case "list":
|
6413
|
-
return yc({ width: t, height: n, color: l, className: a, onClick:
|
6413
|
+
return yc({ width: t, height: n, color: l, className: a, onClick: u });
|
6414
6414
|
case "dragAndDrop":
|
6415
|
-
return Lc({ width: t, height: n, color: l, className: a, onClick:
|
6415
|
+
return Lc({ width: t, height: n, color: l, className: a, onClick: u });
|
6416
6416
|
case "filter":
|
6417
|
-
return bc({ width: t, height: n, color: l, className: a, onClick:
|
6417
|
+
return bc({ width: t, height: n, color: l, className: a, onClick: u });
|
6418
6418
|
case "attention":
|
6419
|
-
return vc({ width: t, height: n, color: l, className: a, onClick:
|
6419
|
+
return vc({ width: t, height: n, color: l, className: a, onClick: u });
|
6420
6420
|
case "plus":
|
6421
|
-
return Rc({ width: t, height: n, color: l, className: a, onClick:
|
6421
|
+
return Rc({ width: t, height: n, color: l, className: a, onClick: u });
|
6422
6422
|
case "time":
|
6423
|
-
return Nc({ width: t, height: n, color: l, className: a, onClick:
|
6423
|
+
return Nc({ width: t, height: n, color: l, className: a, onClick: u });
|
6424
6424
|
case "arrowDownLong":
|
6425
6425
|
return Ec({
|
6426
6426
|
width: t,
|
6427
6427
|
height: n,
|
6428
6428
|
color: l,
|
6429
6429
|
className: a,
|
6430
|
-
onClick:
|
6430
|
+
onClick: u
|
6431
6431
|
});
|
6432
6432
|
case "users":
|
6433
|
-
return xc({ width: t, height: n, color: l, className: a, onClick:
|
6433
|
+
return xc({ width: t, height: n, color: l, className: a, onClick: u });
|
6434
6434
|
case "mySkillsMatrix":
|
6435
6435
|
return Oc({
|
6436
6436
|
width: t,
|
6437
6437
|
height: n,
|
6438
6438
|
color: l,
|
6439
6439
|
className: a,
|
6440
|
-
onClick:
|
6440
|
+
onClick: u
|
6441
6441
|
});
|
6442
6442
|
case "skills":
|
6443
|
-
return Sc({ width: t, height: n, color: l, className: a, onClick:
|
6443
|
+
return Sc({ width: t, height: n, color: l, className: a, onClick: u });
|
6444
6444
|
case "skillsMatrices":
|
6445
6445
|
return Ac({
|
6446
6446
|
width: t,
|
6447
6447
|
height: n,
|
6448
6448
|
color: l,
|
6449
6449
|
className: a,
|
6450
|
-
onClick:
|
6450
|
+
onClick: u
|
6451
6451
|
});
|
6452
6452
|
case "history":
|
6453
|
-
return Tc({ width: t, height: n, color: l, className: a, onClick:
|
6453
|
+
return Tc({ width: t, height: n, color: l, className: a, onClick: u });
|
6454
6454
|
case "logOut":
|
6455
|
-
return _c({ width: t, height: n, color: l, className: a, onClick:
|
6455
|
+
return _c({ width: t, height: n, color: l, className: a, onClick: u });
|
6456
6456
|
case "settings":
|
6457
|
-
return Mc({ width: t, height: n, color: l, className: a, onClick:
|
6457
|
+
return Mc({ width: t, height: n, color: l, className: a, onClick: u });
|
6458
6458
|
case "addSkill":
|
6459
|
-
return jc({ width: t, height: n, color: l, className: a, onClick:
|
6459
|
+
return jc({ width: t, height: n, color: l, className: a, onClick: u });
|
6460
6460
|
case "conversation":
|
6461
|
-
return Bc({ width: t, height: n, color: l, className: a, onClick:
|
6461
|
+
return Bc({ width: t, height: n, color: l, className: a, onClick: u });
|
6462
6462
|
case "trash":
|
6463
|
-
return Pc({ width: t, height: n, color: l, className: a, onClick:
|
6463
|
+
return Pc({ width: t, height: n, color: l, className: a, onClick: u });
|
6464
6464
|
case "settings4":
|
6465
|
-
return Dc({ width: t, height: n, color: l, className: a, onClick:
|
6465
|
+
return Dc({ width: t, height: n, color: l, className: a, onClick: u });
|
6466
6466
|
case "edit2":
|
6467
|
-
return Ic({ width: t, height: n, color: l, className: a, onClick:
|
6467
|
+
return Ic({ width: t, height: n, color: l, className: a, onClick: u });
|
6468
6468
|
case "notifications":
|
6469
6469
|
return Fc({
|
6470
6470
|
width: t,
|
6471
6471
|
height: n,
|
6472
6472
|
color: l,
|
6473
6473
|
className: a,
|
6474
|
-
onClick:
|
6474
|
+
onClick: u
|
6475
6475
|
});
|
6476
6476
|
case "success":
|
6477
|
-
return Hc({ width: t, height: n, color: l, className: a, onClick:
|
6477
|
+
return Hc({ width: t, height: n, color: l, className: a, onClick: u });
|
6478
6478
|
case "attentionSmall":
|
6479
6479
|
return Uc({
|
6480
6480
|
width: t,
|
6481
6481
|
height: n,
|
6482
6482
|
color: l,
|
6483
6483
|
className: a,
|
6484
|
-
onClick:
|
6484
|
+
onClick: u
|
6485
6485
|
});
|
6486
6486
|
case "errorSmall":
|
6487
|
-
return Vc({ width: t, height: n, color: l, className: a, onClick:
|
6487
|
+
return Vc({ width: t, height: n, color: l, className: a, onClick: u });
|
6488
6488
|
case "infoMedium":
|
6489
|
-
return Wc({ width: t, height: n, color: l, className: a, onClick:
|
6489
|
+
return Wc({ width: t, height: n, color: l, className: a, onClick: u });
|
6490
6490
|
case "attentionMedium":
|
6491
6491
|
return Kc({
|
6492
6492
|
width: t,
|
6493
6493
|
height: n,
|
6494
6494
|
color: l,
|
6495
6495
|
className: a,
|
6496
|
-
onClick:
|
6496
|
+
onClick: u
|
6497
6497
|
});
|
6498
6498
|
case "errorMedium":
|
6499
|
-
return Gc({ width: t, height: n, color: l, className: a, onClick:
|
6499
|
+
return Gc({ width: t, height: n, color: l, className: a, onClick: u });
|
6500
6500
|
case "faviconSkills":
|
6501
6501
|
return Jc({
|
6502
6502
|
width: t,
|
6503
6503
|
height: n,
|
6504
6504
|
color: l,
|
6505
6505
|
className: a,
|
6506
|
-
onClick:
|
6506
|
+
onClick: u
|
6507
6507
|
});
|
6508
6508
|
case "visibilityIcon":
|
6509
6509
|
return Zc({
|
@@ -6511,7 +6511,7 @@ const dc = ({
|
|
6511
6511
|
height: n,
|
6512
6512
|
color: l,
|
6513
6513
|
className: a,
|
6514
|
-
onClick:
|
6514
|
+
onClick: u
|
6515
6515
|
});
|
6516
6516
|
case "visibilityOffIcon":
|
6517
6517
|
return qc({
|
@@ -6519,7 +6519,7 @@ const dc = ({
|
|
6519
6519
|
height: n,
|
6520
6520
|
color: l,
|
6521
6521
|
className: a,
|
6522
|
-
onClick:
|
6522
|
+
onClick: u
|
6523
6523
|
});
|
6524
6524
|
case "selectArrowIcon":
|
6525
6525
|
return $c({
|
@@ -6527,7 +6527,7 @@ const dc = ({
|
|
6527
6527
|
height: n,
|
6528
6528
|
color: l,
|
6529
6529
|
className: a,
|
6530
|
-
onClick:
|
6530
|
+
onClick: u
|
6531
6531
|
});
|
6532
6532
|
case "expandArrowIcon":
|
6533
6533
|
return zc({
|
@@ -6535,7 +6535,7 @@ const dc = ({
|
|
6535
6535
|
height: n,
|
6536
6536
|
color: l,
|
6537
6537
|
className: a,
|
6538
|
-
onClick:
|
6538
|
+
onClick: u
|
6539
6539
|
});
|
6540
6540
|
case "expandActiveArrowIcon":
|
6541
6541
|
return Yc({
|
@@ -6543,84 +6543,84 @@ const dc = ({
|
|
6543
6543
|
height: n,
|
6544
6544
|
color: l,
|
6545
6545
|
className: a,
|
6546
|
-
onClick:
|
6546
|
+
onClick: u
|
6547
6547
|
});
|
6548
6548
|
case "camera":
|
6549
|
-
return Xc({ width: t, height: n, color: l, className: a, onClick:
|
6549
|
+
return Xc({ width: t, height: n, color: l, className: a, onClick: u });
|
6550
6550
|
case "sortUp":
|
6551
|
-
return Qc({ width: t, height: n, color: l, className: a, onClick:
|
6551
|
+
return Qc({ width: t, height: n, color: l, className: a, onClick: u });
|
6552
6552
|
case "sortDown":
|
6553
|
-
return e2({ width: t, height: n, color: l, className: a, onClick:
|
6553
|
+
return e2({ width: t, height: n, color: l, className: a, onClick: u });
|
6554
6554
|
case "logOut2":
|
6555
|
-
return t2({ width: t, height: n, color: l, className: a, onClick:
|
6555
|
+
return t2({ width: t, height: n, color: l, className: a, onClick: u });
|
6556
6556
|
case "search":
|
6557
|
-
return n2({ width: t, height: n, color: l, className: a, onClick:
|
6557
|
+
return n2({ width: t, height: n, color: l, className: a, onClick: u });
|
6558
6558
|
case "handRock":
|
6559
|
-
return r2({ width: t, height: n, color: l, className: a, onClick:
|
6559
|
+
return r2({ width: t, height: n, color: l, className: a, onClick: u });
|
6560
6560
|
case "arrowUpFilled":
|
6561
|
-
return a2({ width: t, height: n, color: l, className: a, onClick:
|
6561
|
+
return a2({ width: t, height: n, color: l, className: a, onClick: u });
|
6562
6562
|
case "arrowDownFilled":
|
6563
|
-
return s2({ width: t, height: n, color: l, className: a, onClick:
|
6563
|
+
return s2({ width: t, height: n, color: l, className: a, onClick: u });
|
6564
6564
|
case "link":
|
6565
|
-
return l2({ width: t, height: n, color: l, className: a, onClick:
|
6565
|
+
return l2({ width: t, height: n, color: l, className: a, onClick: u });
|
6566
6566
|
case "telegram":
|
6567
|
-
return h2({ width: t, height: n, color: l, className: a, onClick:
|
6567
|
+
return h2({ width: t, height: n, color: l, className: a, onClick: u });
|
6568
6568
|
case "mail":
|
6569
|
-
return d2({ width: t, height: n, color: l, className: a, onClick:
|
6569
|
+
return d2({ width: t, height: n, color: l, className: a, onClick: u });
|
6570
6570
|
case "github":
|
6571
|
-
return c2({ width: t, height: n, color: l, className: a, onClick:
|
6571
|
+
return c2({ width: t, height: n, color: l, className: a, onClick: u });
|
6572
6572
|
case "linkedIn":
|
6573
|
-
return u2({ width: t, height: n, color: l, className: a, onClick:
|
6573
|
+
return u2({ width: t, height: n, color: l, className: a, onClick: u });
|
6574
6574
|
case "emptyStateIcon":
|
6575
|
-
return f2({ width: t, height: n, color: l, className: a, onClick:
|
6575
|
+
return f2({ width: t, height: n, color: l, className: a, onClick: u });
|
6576
6576
|
case "filtersIcon":
|
6577
|
-
return p2({ width: t, height: n, color: l, className: a, onClick:
|
6577
|
+
return p2({ width: t, height: n, color: l, className: a, onClick: u });
|
6578
6578
|
case "dotMenuIcon":
|
6579
|
-
return g2({ width: t, height: n, color: l, className: a, onClick:
|
6579
|
+
return g2({ width: t, height: n, color: l, className: a, onClick: u });
|
6580
6580
|
case "plusCircle":
|
6581
|
-
return m2({ width: t, height: n, color: l, className: a, onClick:
|
6581
|
+
return m2({ width: t, height: n, color: l, className: a, onClick: u });
|
6582
6582
|
case "warning":
|
6583
|
-
return w2({ width: t, height: n, color: l, className: a, onClick:
|
6583
|
+
return w2({ width: t, height: n, color: l, className: a, onClick: u });
|
6584
6584
|
case "back":
|
6585
|
-
return C2({ width: t, height: n, color: l, className: a, onClick:
|
6585
|
+
return C2({ width: t, height: n, color: l, className: a, onClick: u });
|
6586
6586
|
case "bell":
|
6587
|
-
return k2({ width: t, height: n, color: l, className: a, onClick:
|
6587
|
+
return k2({ width: t, height: n, color: l, className: a, onClick: u });
|
6588
6588
|
case "contract":
|
6589
|
-
return L2({ width: t, height: n, color: l, className: a, onClick:
|
6589
|
+
return L2({ width: t, height: n, color: l, className: a, onClick: u });
|
6590
6590
|
case "trash2":
|
6591
|
-
return y2({ width: t, height: n, color: l, className: a, onClick:
|
6591
|
+
return y2({ width: t, height: n, color: l, className: a, onClick: u });
|
6592
6592
|
case "manager":
|
6593
|
-
return b2({ width: t, height: n, color: l, className: a, onClick:
|
6593
|
+
return b2({ width: t, height: n, color: l, className: a, onClick: u });
|
6594
6594
|
case "resourceManager":
|
6595
|
-
return v2({ width: t, height: n, color: l, className: a, onClick:
|
6595
|
+
return v2({ width: t, height: n, color: l, className: a, onClick: u });
|
6596
6596
|
case "settings2":
|
6597
|
-
return R2({ width: t, height: n, color: l, className: a, onClick:
|
6597
|
+
return R2({ width: t, height: n, color: l, className: a, onClick: u });
|
6598
6598
|
case "image":
|
6599
|
-
return N2({ width: t, height: n, color: l, className: a, onClick:
|
6599
|
+
return N2({ width: t, height: n, color: l, className: a, onClick: u });
|
6600
6600
|
case "upload":
|
6601
|
-
return E2({ width: t, height: n, color: l, className: a, onClick:
|
6601
|
+
return E2({ width: t, height: n, color: l, className: a, onClick: u });
|
6602
6602
|
case "edit":
|
6603
|
-
return x2({ width: t, height: n, color: l, className: a, onClick:
|
6603
|
+
return x2({ width: t, height: n, color: l, className: a, onClick: u });
|
6604
6604
|
case "location":
|
6605
|
-
return O2({ width: t, height: n, color: l, className: a, onClick:
|
6605
|
+
return O2({ width: t, height: n, color: l, className: a, onClick: u });
|
6606
6606
|
case "plus2":
|
6607
|
-
return S2({ width: t, height: n, color: l, className: a, onClick:
|
6607
|
+
return S2({ width: t, height: n, color: l, className: a, onClick: u });
|
6608
6608
|
case "search2":
|
6609
|
-
return A2({ width: t, height: n, color: l, className: a, onClick:
|
6609
|
+
return A2({ width: t, height: n, color: l, className: a, onClick: u });
|
6610
6610
|
case "fastArrowLeft":
|
6611
|
-
return T2({ width: t, height: n, color: l, className: a, onClick:
|
6611
|
+
return T2({ width: t, height: n, color: l, className: a, onClick: u });
|
6612
6612
|
case "fastArrowRight":
|
6613
|
-
return _2({ width: t, height: n, color: l, className: a, onClick:
|
6613
|
+
return _2({ width: t, height: n, color: l, className: a, onClick: u });
|
6614
6614
|
case "crossInCircle":
|
6615
|
-
return M2({ width: t, height: n, color: l, className: a, onClick:
|
6615
|
+
return M2({ width: t, height: n, color: l, className: a, onClick: u });
|
6616
6616
|
case "arrowUp2":
|
6617
|
-
return B2({ width: t, height: n, color: l, className: a, onClick:
|
6617
|
+
return B2({ width: t, height: n, color: l, className: a, onClick: u });
|
6618
6618
|
case "arrowDown2":
|
6619
|
-
return j2({ width: t, height: n, color: l, className: a, onClick:
|
6619
|
+
return j2({ width: t, height: n, color: l, className: a, onClick: u });
|
6620
6620
|
case "filledArrowLeft":
|
6621
|
-
return P2({ width: t, height: n, color: l, className: a, onClick:
|
6621
|
+
return P2({ width: t, height: n, color: l, className: a, onClick: u });
|
6622
6622
|
case "filledArrowRight":
|
6623
|
-
return D2({ width: t, height: n, color: l, className: a, onClick:
|
6623
|
+
return D2({ width: t, height: n, color: l, className: a, onClick: u });
|
6624
6624
|
default:
|
6625
6625
|
return /* @__PURE__ */ h(Fe, { children: "No Icon provided" });
|
6626
6626
|
}
|
@@ -6637,21 +6637,31 @@ const dc = ({
|
|
6637
6637
|
color: n,
|
6638
6638
|
children: r,
|
6639
6639
|
onClick: o,
|
6640
|
-
collapsed: i
|
6641
|
-
|
6642
|
-
|
6643
|
-
|
6644
|
-
|
6640
|
+
collapsed: i,
|
6641
|
+
whiteSpace: s = "wrap"
|
6642
|
+
}, a) => {
|
6643
|
+
const d = t === "h1" || t === "h2" || t === "h3" || t === "h4";
|
6644
|
+
let c = `snmt-typography snmt-typography-${t}`;
|
6645
|
+
return e && e !== "inherit" && (c += ` snmt-typography-align-${e}`), i && (c += " collapsed"), d ? /* @__PURE__ */ h(
|
6645
6646
|
I2,
|
6646
6647
|
{
|
6647
|
-
className:
|
6648
|
-
style: { color: n },
|
6648
|
+
className: c,
|
6649
|
+
style: { color: n, whiteSpace: s },
|
6649
6650
|
onClick: o,
|
6650
6651
|
level: H2[t],
|
6651
|
-
ref:
|
6652
|
+
ref: a,
|
6652
6653
|
children: r
|
6653
6654
|
}
|
6654
|
-
) : /* @__PURE__ */ h(
|
6655
|
+
) : /* @__PURE__ */ h(
|
6656
|
+
F2,
|
6657
|
+
{
|
6658
|
+
className: c,
|
6659
|
+
style: { color: n, whiteSpace: s },
|
6660
|
+
onClick: o,
|
6661
|
+
ref: a,
|
6662
|
+
children: r
|
6663
|
+
}
|
6664
|
+
);
|
6655
6665
|
}
|
6656
6666
|
);
|
6657
6667
|
var P = /* @__PURE__ */ ((e) => (e.GREY_LIGHT_0 = "var(--grey-light-0)", e.GREY_LIGHT_1 = "var(--grey-light-1)", e.GREY_LIGHT_2 = "var(--grey-light-2)", e.GREY_LIGHT_3 = "var(--grey-light-3)", e.GREY_LIGHT_4 = "var(--grey-light-4)", e.GREY_DARK_1 = "var(--grey-dark-1)", e.GREY_DARK_2 = "var(--grey-dark-2)", e.GREY_DARK_3 = "var(--grey-dark-3)", e.GREY_DARK_4 = "var(--grey-dark-4)", e.GREY_DARK_5 = "var(--grey-dark-5)", e.BLUE_PRIMARY = "var(--blue-primary)", e.BLUE_HOVER = "var(--blue-hover)", e.BLUE_LIGHT_1 = "var(--blue-light-1)", e.BLUE_LIGHT_2 = "var(--blue-light-2)", e.BLUE_LIGHT_3 = "var(--blue-light-3)", e.BLUE_LIGHT_4 = "var(--blue-light-4)", e.BLUE_DARK_1 = "var(--blue-dark-1)", e.PURPLE_LIGHT = "var(--purple-light)", e.PURPLE_DARK = "var(--purple-dark)", e.NOTIFICATION_WARNING_LIGHT = "var(--notification-warning-light)", e.NOTIFICATION_WARNING_DARK = "var(--notification-warning-dark)", e.NOTIFICATION_SUCCESS_LIGHT = "var(--notification-success-light)", e.NOTIFICATION_SUCCESS_DARK = "var(--notification-success-dark)", e.NOTIFICATION_ERROR_LIGHT = "var(--notification-error-light)", e.NOTIFICATION_ERROR_DARK = "var(--notification-error-dark)", e.NOTIFICATION_ERROR_DARK_MODE = "var(--notification-error-dark-mode)", e))(P || {});
|
@@ -6814,8 +6824,8 @@ const v0 = (e) => {
|
|
6814
6824
|
t[o] = r;
|
6815
6825
|
const i = Ke(r) ? [] : {};
|
6816
6826
|
return ft(r, (s, a) => {
|
6817
|
-
const
|
6818
|
-
!rt(
|
6827
|
+
const d = n(s, o + 1);
|
6828
|
+
!rt(d) && (i[a] = d);
|
6819
6829
|
}), t[o] = void 0, i;
|
6820
6830
|
}
|
6821
6831
|
}
|
@@ -6970,7 +6980,7 @@ function tn(e, t, n) {
|
|
6970
6980
|
const r = n.metaTokens, o = n.visitor || c, i = n.dots, s = n.indexes, a = (n.Blob || typeof Blob < "u" && Blob) && y.isSpecCompliantForm(t);
|
6971
6981
|
if (!y.isFunction(o))
|
6972
6982
|
throw new TypeError("visitor must be a function");
|
6973
|
-
function
|
6983
|
+
function d(p) {
|
6974
6984
|
if (p === null) return "";
|
6975
6985
|
if (y.isDate(p))
|
6976
6986
|
return p.toISOString();
|
@@ -6988,15 +6998,15 @@ function tn(e, t, n) {
|
|
6988
6998
|
!(y.isUndefined(R) || R === null) && t.append(
|
6989
6999
|
// eslint-disable-next-line no-nested-ternary
|
6990
7000
|
s === !0 ? ro([g], b, i) : s === null ? g : g + "[]",
|
6991
|
-
|
7001
|
+
d(R)
|
6992
7002
|
);
|
6993
7003
|
}), !1;
|
6994
7004
|
}
|
6995
|
-
return Gn(p) ? !0 : (t.append(ro(f, g, i),
|
7005
|
+
return Gn(p) ? !0 : (t.append(ro(f, g, i), d(p)), !1);
|
6996
7006
|
}
|
6997
|
-
const l = [],
|
7007
|
+
const l = [], u = Object.assign(S0, {
|
6998
7008
|
defaultVisitor: c,
|
6999
|
-
convertValue:
|
7009
|
+
convertValue: d,
|
7000
7010
|
isVisitable: Gn
|
7001
7011
|
});
|
7002
7012
|
function m(p, g) {
|
@@ -7009,7 +7019,7 @@ function tn(e, t, n) {
|
|
7009
7019
|
f,
|
7010
7020
|
y.isString(v) ? v.trim() : v,
|
7011
7021
|
g,
|
7012
|
-
|
7022
|
+
u
|
7013
7023
|
)) === !0 && m(f, g ? g.concat(v) : [v]);
|
7014
7024
|
}), l.pop();
|
7015
7025
|
}
|
@@ -7162,8 +7172,8 @@ function as(e) {
|
|
7162
7172
|
function t(n, r, o, i) {
|
7163
7173
|
let s = n[i++];
|
7164
7174
|
if (s === "__proto__") return !0;
|
7165
|
-
const a = Number.isFinite(+s),
|
7166
|
-
return s = !s && y.isArray(o) ? o.length : s,
|
7175
|
+
const a = Number.isFinite(+s), d = i >= n.length;
|
7176
|
+
return s = !s && y.isArray(o) ? o.length : s, d ? (y.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !a) : ((!o[s] || !y.isObject(o[s])) && (o[s] = []), t(n, r, o[s], i) && y.isArray(o[s]) && (o[s] = U0(o[s])), !a);
|
7167
7177
|
}
|
7168
7178
|
if (y.isFormData(e) && y.isFunction(e.entries)) {
|
7169
7179
|
const n = {};
|
@@ -7322,21 +7332,21 @@ class X {
|
|
7322
7332
|
}
|
7323
7333
|
set(t, n, r) {
|
7324
7334
|
const o = this;
|
7325
|
-
function i(a,
|
7326
|
-
const l = Je(
|
7335
|
+
function i(a, d, c) {
|
7336
|
+
const l = Je(d);
|
7327
7337
|
if (!l)
|
7328
7338
|
throw new Error("header name must be a non-empty string");
|
7329
|
-
const
|
7330
|
-
(!
|
7339
|
+
const u = y.findKey(o, l);
|
7340
|
+
(!u || o[u] === void 0 || c === !0 || c === void 0 && o[u] !== !1) && (o[u || d] = Et(a));
|
7331
7341
|
}
|
7332
|
-
const s = (a,
|
7342
|
+
const s = (a, d) => y.forEach(a, (c, l) => i(c, l, d));
|
7333
7343
|
if (y.isPlainObject(t) || t instanceof this.constructor)
|
7334
7344
|
s(t, n);
|
7335
7345
|
else if (y.isString(t) && (t = t.trim()) && !Z0(t))
|
7336
7346
|
s(K0(t), n);
|
7337
7347
|
else if (y.isHeaders(t))
|
7338
|
-
for (const [a,
|
7339
|
-
i(
|
7348
|
+
for (const [a, d] of t.entries())
|
7349
|
+
i(d, a, r);
|
7340
7350
|
else
|
7341
7351
|
t != null && i(n, t, r);
|
7342
7352
|
return this;
|
@@ -7480,25 +7490,25 @@ function Y0(e, t) {
|
|
7480
7490
|
const n = new Array(e), r = new Array(e);
|
7481
7491
|
let o = 0, i = 0, s;
|
7482
7492
|
return t = t !== void 0 ? t : 1e3, function(a) {
|
7483
|
-
const
|
7484
|
-
s || (s =
|
7485
|
-
let l = i,
|
7493
|
+
const d = Date.now(), c = r[i];
|
7494
|
+
s || (s = d), n[o] = a, r[o] = d;
|
7495
|
+
let l = i, u = 0;
|
7486
7496
|
for (; l !== o; )
|
7487
|
-
|
7488
|
-
if (o = (o + 1) % e, o === i && (i = (i + 1) % e),
|
7497
|
+
u += n[l++], l = l % e;
|
7498
|
+
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), d - s < t)
|
7489
7499
|
return;
|
7490
|
-
const m = c &&
|
7491
|
-
return m ? Math.round(
|
7500
|
+
const m = c && d - c;
|
7501
|
+
return m ? Math.round(u * 1e3 / m) : void 0;
|
7492
7502
|
};
|
7493
7503
|
}
|
7494
7504
|
function J0(e, t) {
|
7495
7505
|
let n = 0, r = 1e3 / t, o, i;
|
7496
|
-
const s = (a,
|
7497
|
-
n =
|
7506
|
+
const s = (a, d = Date.now()) => {
|
7507
|
+
n = d, o = null, i && (clearTimeout(i), i = null), e.apply(null, a);
|
7498
7508
|
};
|
7499
7509
|
return [(...a) => {
|
7500
|
-
const
|
7501
|
-
c >= r ? s(a,
|
7510
|
+
const d = Date.now(), c = d - n;
|
7511
|
+
c >= r ? s(a, d) : (o = a, i || (i = setTimeout(() => {
|
7502
7512
|
i = null, s(o);
|
7503
7513
|
}, r - c)));
|
7504
7514
|
}, () => o && s(o)];
|
@@ -7507,20 +7517,20 @@ const Mt = (e, t, n = 3) => {
|
|
7507
7517
|
let r = 0;
|
7508
7518
|
const o = Y0(50, 250);
|
7509
7519
|
return J0((i) => {
|
7510
|
-
const s = i.loaded, a = i.lengthComputable ? i.total : void 0,
|
7520
|
+
const s = i.loaded, a = i.lengthComputable ? i.total : void 0, d = s - r, c = o(d), l = s <= a;
|
7511
7521
|
r = s;
|
7512
|
-
const
|
7522
|
+
const u = {
|
7513
7523
|
loaded: s,
|
7514
7524
|
total: a,
|
7515
7525
|
progress: a ? s / a : void 0,
|
7516
|
-
bytes:
|
7526
|
+
bytes: d,
|
7517
7527
|
rate: c || void 0,
|
7518
7528
|
estimated: c && a && l ? (a - s) / c : void 0,
|
7519
7529
|
event: i,
|
7520
7530
|
lengthComputable: a != null,
|
7521
7531
|
[t ? "download" : "upload"]: !0
|
7522
7532
|
};
|
7523
|
-
e(
|
7533
|
+
e(u);
|
7524
7534
|
}, n);
|
7525
7535
|
}, ao = (e, t) => {
|
7526
7536
|
const n = e != null;
|
@@ -7600,14 +7610,14 @@ const co = (e) => e instanceof X ? { ...e } : e;
|
|
7600
7610
|
function Me(e, t) {
|
7601
7611
|
t = t || {};
|
7602
7612
|
const n = {};
|
7603
|
-
function r(c, l,
|
7604
|
-
return y.isPlainObject(c) && y.isPlainObject(l) ? y.merge.call({ caseless:
|
7613
|
+
function r(c, l, u) {
|
7614
|
+
return y.isPlainObject(c) && y.isPlainObject(l) ? y.merge.call({ caseless: u }, c, l) : y.isPlainObject(l) ? y.merge({}, l) : y.isArray(l) ? l.slice() : l;
|
7605
7615
|
}
|
7606
|
-
function o(c, l,
|
7616
|
+
function o(c, l, u) {
|
7607
7617
|
if (y.isUndefined(l)) {
|
7608
7618
|
if (!y.isUndefined(c))
|
7609
|
-
return r(void 0, c,
|
7610
|
-
} else return r(c, l,
|
7619
|
+
return r(void 0, c, u);
|
7620
|
+
} else return r(c, l, u);
|
7611
7621
|
}
|
7612
7622
|
function i(c, l) {
|
7613
7623
|
if (!y.isUndefined(l))
|
@@ -7619,13 +7629,13 @@ function Me(e, t) {
|
|
7619
7629
|
return r(void 0, c);
|
7620
7630
|
} else return r(void 0, l);
|
7621
7631
|
}
|
7622
|
-
function a(c, l,
|
7623
|
-
if (
|
7632
|
+
function a(c, l, u) {
|
7633
|
+
if (u in t)
|
7624
7634
|
return r(c, l);
|
7625
|
-
if (
|
7635
|
+
if (u in e)
|
7626
7636
|
return r(void 0, c);
|
7627
7637
|
}
|
7628
|
-
const
|
7638
|
+
const d = {
|
7629
7639
|
url: i,
|
7630
7640
|
method: i,
|
7631
7641
|
data: i,
|
@@ -7657,8 +7667,8 @@ function Me(e, t) {
|
|
7657
7667
|
headers: (c, l) => o(co(c), co(l), !0)
|
7658
7668
|
};
|
7659
7669
|
return y.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
|
7660
|
-
const l =
|
7661
|
-
y.isUndefined(
|
7670
|
+
const l = d[c] || o, u = l(e[c], t[c], c);
|
7671
|
+
y.isUndefined(u) && l !== a || (n[c] = u);
|
7662
7672
|
}), n;
|
7663
7673
|
}
|
7664
7674
|
const us = (e) => {
|
@@ -7668,12 +7678,12 @@ const us = (e) => {
|
|
7668
7678
|
"Authorization",
|
7669
7679
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
7670
7680
|
);
|
7671
|
-
let
|
7681
|
+
let d;
|
7672
7682
|
if (y.isFormData(n)) {
|
7673
7683
|
if (J.hasStandardBrowserEnv || J.hasStandardBrowserWebWorkerEnv)
|
7674
7684
|
s.setContentType(void 0);
|
7675
|
-
else if ((
|
7676
|
-
const [c, ...l] =
|
7685
|
+
else if ((d = s.getContentType()) !== !1) {
|
7686
|
+
const [c, ...l] = d ? d.split(";").map((u) => u.trim()).filter(Boolean) : [];
|
7677
7687
|
s.setContentType([c || "multipart/form-data", ...l].join("; "));
|
7678
7688
|
}
|
7679
7689
|
}
|
@@ -7687,7 +7697,7 @@ const us = (e) => {
|
|
7687
7697
|
const r = us(e);
|
7688
7698
|
let o = r.data;
|
7689
7699
|
const i = X.from(r.headers).normalize();
|
7690
|
-
let { responseType: s, onUploadProgress: a, onDownloadProgress:
|
7700
|
+
let { responseType: s, onUploadProgress: a, onDownloadProgress: d } = r, c, l, u, m, p;
|
7691
7701
|
function g() {
|
7692
7702
|
m && m(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
|
7693
7703
|
}
|
@@ -7729,7 +7739,7 @@ const us = (e) => {
|
|
7729
7739
|
)), f = null;
|
7730
7740
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in f && y.forEach(i.toJSON(), function(b, x) {
|
7731
7741
|
f.setRequestHeader(x, b);
|
7732
|
-
}), y.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType),
|
7742
|
+
}), y.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType), d && ([u, p] = Mt(d, !0), f.addEventListener("progress", u)), a && f.upload && ([l, m] = Mt(a), f.upload.addEventListener("progress", l), f.upload.addEventListener("loadend", m)), (r.cancelToken || r.signal) && (c = (b) => {
|
7733
7743
|
f && (n(!b || b.type ? new Ge(null, e, f) : b), f.abort(), f = null);
|
7734
7744
|
}, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
|
7735
7745
|
const R = z0(r.url);
|
@@ -7759,8 +7769,8 @@ const us = (e) => {
|
|
7759
7769
|
}), e = null);
|
7760
7770
|
};
|
7761
7771
|
e.forEach((c) => c.addEventListener("abort", i));
|
7762
|
-
const { signal:
|
7763
|
-
return
|
7772
|
+
const { signal: d } = r;
|
7773
|
+
return d.unsubscribe = () => y.asap(a), d;
|
7764
7774
|
}
|
7765
7775
|
}, i5 = function* (e, t) {
|
7766
7776
|
let n = e.byteLength;
|
@@ -7792,29 +7802,29 @@ const us = (e) => {
|
|
7792
7802
|
}
|
7793
7803
|
}, ho = (e, t, n, r) => {
|
7794
7804
|
const o = s5(e, t);
|
7795
|
-
let i = 0, s, a = (
|
7796
|
-
s || (s = !0, r && r(
|
7805
|
+
let i = 0, s, a = (d) => {
|
7806
|
+
s || (s = !0, r && r(d));
|
7797
7807
|
};
|
7798
7808
|
return new ReadableStream({
|
7799
|
-
async pull(
|
7809
|
+
async pull(d) {
|
7800
7810
|
try {
|
7801
7811
|
const { done: c, value: l } = await o.next();
|
7802
7812
|
if (c) {
|
7803
|
-
a(),
|
7813
|
+
a(), d.close();
|
7804
7814
|
return;
|
7805
7815
|
}
|
7806
|
-
let
|
7816
|
+
let u = l.byteLength;
|
7807
7817
|
if (n) {
|
7808
|
-
let m = i +=
|
7818
|
+
let m = i += u;
|
7809
7819
|
n(m);
|
7810
7820
|
}
|
7811
|
-
|
7821
|
+
d.enqueue(new Uint8Array(l));
|
7812
7822
|
} catch (c) {
|
7813
7823
|
throw a(c), c;
|
7814
7824
|
}
|
7815
7825
|
},
|
7816
|
-
cancel(
|
7817
|
-
return a(
|
7826
|
+
cancel(d) {
|
7827
|
+
return a(d), o.return();
|
7818
7828
|
}
|
7819
7829
|
}, {
|
7820
7830
|
highWaterMark: 2
|
@@ -7868,10 +7878,10 @@ const h5 = async (e) => {
|
|
7868
7878
|
cancelToken: i,
|
7869
7879
|
timeout: s,
|
7870
7880
|
onDownloadProgress: a,
|
7871
|
-
onUploadProgress:
|
7881
|
+
onUploadProgress: d,
|
7872
7882
|
responseType: c,
|
7873
7883
|
headers: l,
|
7874
|
-
withCredentials:
|
7884
|
+
withCredentials: u = "same-origin",
|
7875
7885
|
fetchOptions: m
|
7876
7886
|
} = us(e);
|
7877
7887
|
c = c ? (c + "").toLowerCase() : "text";
|
@@ -7881,7 +7891,7 @@ const h5 = async (e) => {
|
|
7881
7891
|
});
|
7882
7892
|
let v;
|
7883
7893
|
try {
|
7884
|
-
if (
|
7894
|
+
if (d && c5 && n !== "get" && n !== "head" && (v = await u5(l, r)) !== 0) {
|
7885
7895
|
let E = new Request(t, {
|
7886
7896
|
method: "POST",
|
7887
7897
|
body: r,
|
@@ -7890,12 +7900,12 @@ const h5 = async (e) => {
|
|
7890
7900
|
if (y.isFormData(r) && (S = E.headers.get("content-type")) && l.setContentType(S), E.body) {
|
7891
7901
|
const [O, A] = ao(
|
7892
7902
|
v,
|
7893
|
-
Mt(lo(
|
7903
|
+
Mt(lo(d))
|
7894
7904
|
);
|
7895
7905
|
r = ho(E.body, uo, O, A);
|
7896
7906
|
}
|
7897
7907
|
}
|
7898
|
-
y.isString(
|
7908
|
+
y.isString(u) || (u = u ? "include" : "omit");
|
7899
7909
|
const R = "credentials" in Request.prototype;
|
7900
7910
|
g = new Request(t, {
|
7901
7911
|
...m,
|
@@ -7904,7 +7914,7 @@ const h5 = async (e) => {
|
|
7904
7914
|
headers: l.normalize().toJSON(),
|
7905
7915
|
body: r,
|
7906
7916
|
duplex: "half",
|
7907
|
-
credentials: R ?
|
7917
|
+
credentials: R ? u : void 0
|
7908
7918
|
});
|
7909
7919
|
let b = await fetch(g);
|
7910
7920
|
const x = qn && (c === "stream" || c === "response");
|
@@ -7975,7 +7985,7 @@ const fo = (e) => `- ${e}`, f5 = (e) => y.isFunction(e) || e === null || e === !
|
|
7975
7985
|
}
|
7976
7986
|
if (!r) {
|
7977
7987
|
const i = Object.entries(o).map(
|
7978
|
-
([a,
|
7988
|
+
([a, d]) => `adapter ${a} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
7979
7989
|
);
|
7980
7990
|
let s = t ? i.length > 1 ? `since :
|
7981
7991
|
` + i.map(fo).join(`
|
@@ -8044,9 +8054,9 @@ function p5(e, t, n) {
|
|
8044
8054
|
for (; o-- > 0; ) {
|
8045
8055
|
const i = r[o], s = t[i];
|
8046
8056
|
if (s) {
|
8047
|
-
const a = e[i],
|
8048
|
-
if (
|
8049
|
-
throw new M("option " + i + " must be " +
|
8057
|
+
const a = e[i], d = a === void 0 || s(a, i, e);
|
8058
|
+
if (d !== !0)
|
8059
|
+
throw new M("option " + i + " must be " + d, M.ERR_BAD_OPTION_VALUE);
|
8050
8060
|
continue;
|
8051
8061
|
}
|
8052
8062
|
if (n !== !0)
|
@@ -8113,25 +8123,25 @@ class Oe {
|
|
8113
8123
|
}
|
8114
8124
|
), n.headers = X.concat(s, i);
|
8115
8125
|
const a = [];
|
8116
|
-
let
|
8126
|
+
let d = !0;
|
8117
8127
|
this.interceptors.request.forEach(function(g) {
|
8118
|
-
typeof g.runWhen == "function" && g.runWhen(n) === !1 || (
|
8128
|
+
typeof g.runWhen == "function" && g.runWhen(n) === !1 || (d = d && g.synchronous, a.unshift(g.fulfilled, g.rejected));
|
8119
8129
|
});
|
8120
8130
|
const c = [];
|
8121
8131
|
this.interceptors.response.forEach(function(g) {
|
8122
8132
|
c.push(g.fulfilled, g.rejected);
|
8123
8133
|
});
|
8124
|
-
let l,
|
8125
|
-
if (!
|
8134
|
+
let l, u = 0, m;
|
8135
|
+
if (!d) {
|
8126
8136
|
const g = [po.bind(this), void 0];
|
8127
|
-
for (g.unshift.apply(g, a), g.push.apply(g, c), m = g.length, l = Promise.resolve(n);
|
8128
|
-
l = l.then(g[
|
8137
|
+
for (g.unshift.apply(g, a), g.push.apply(g, c), m = g.length, l = Promise.resolve(n); u < m; )
|
8138
|
+
l = l.then(g[u++], g[u++]);
|
8129
8139
|
return l;
|
8130
8140
|
}
|
8131
8141
|
m = a.length;
|
8132
8142
|
let p = n;
|
8133
|
-
for (
|
8134
|
-
const g = a[
|
8143
|
+
for (u = 0; u < m; ) {
|
8144
|
+
const g = a[u++], f = a[u++];
|
8135
8145
|
try {
|
8136
8146
|
p = g(p);
|
8137
8147
|
} catch (v) {
|
@@ -8144,8 +8154,8 @@ class Oe {
|
|
8144
8154
|
} catch (g) {
|
8145
8155
|
return Promise.reject(g);
|
8146
8156
|
}
|
8147
|
-
for (
|
8148
|
-
l = l.then(c[
|
8157
|
+
for (u = 0, m = c.length; u < m; )
|
8158
|
+
l = l.then(c[u++], c[u++]);
|
8149
8159
|
return l;
|
8150
8160
|
}
|
8151
8161
|
getUri(t) {
|
@@ -11263,130 +11273,130 @@ const w5 = ({
|
|
11263
11273
|
disabled: i = !1,
|
11264
11274
|
onClick: s
|
11265
11275
|
}) => {
|
11266
|
-
const [a,
|
11276
|
+
const [a, d] = K(o), { theme: c } = lt(ws), l = i ? c && c === "dark" ? P.GREY_LIGHT_4 : P.GREY_DARK_1 : r, u = i ? void 0 : s;
|
11267
11277
|
return se(() => {
|
11268
11278
|
if (o) {
|
11269
|
-
|
11279
|
+
u && !i && d(`${o} clickable`);
|
11270
11280
|
return;
|
11271
11281
|
}
|
11272
|
-
|
11273
|
-
}, [
|
11282
|
+
u && !i && d("clickable");
|
11283
|
+
}, [u, o, i]), /* @__PURE__ */ h(Fe, { children: (() => {
|
11274
11284
|
switch (e) {
|
11275
11285
|
case "nextIcon":
|
11276
|
-
return c3({ width: t, height: n, color: l, className: a, onClick:
|
11286
|
+
return c3({ width: t, height: n, color: l, className: a, onClick: u });
|
11277
11287
|
case "prevIcon":
|
11278
|
-
return h3({ width: t, height: n, color: l, className: a, onClick:
|
11288
|
+
return h3({ width: t, height: n, color: l, className: a, onClick: u });
|
11279
11289
|
case "arrowUp":
|
11280
|
-
return w5({ width: t, height: n, color: l, className: a, onClick:
|
11290
|
+
return w5({ width: t, height: n, color: l, className: a, onClick: u });
|
11281
11291
|
case "arrowDown":
|
11282
|
-
return C5({ width: t, height: n, color: l, className: a, onClick:
|
11292
|
+
return C5({ width: t, height: n, color: l, className: a, onClick: u });
|
11283
11293
|
case "info":
|
11284
|
-
return k5({ width: t, height: n, color: l, className: a, onClick:
|
11294
|
+
return k5({ width: t, height: n, color: l, className: a, onClick: u });
|
11285
11295
|
case "arrowRight":
|
11286
|
-
return y5({ width: t, height: n, color: l, className: a, onClick:
|
11296
|
+
return y5({ width: t, height: n, color: l, className: a, onClick: u });
|
11287
11297
|
case "calendar":
|
11288
|
-
return L5({ width: t, height: n, color: l, className: a, onClick:
|
11298
|
+
return L5({ width: t, height: n, color: l, className: a, onClick: u });
|
11289
11299
|
case "ok":
|
11290
|
-
return b5({ width: t, height: n, color: l, className: a, onClick:
|
11300
|
+
return b5({ width: t, height: n, color: l, className: a, onClick: u });
|
11291
11301
|
case "cancel":
|
11292
|
-
return v5({ width: t, height: n, color: l, className: a, onClick:
|
11302
|
+
return v5({ width: t, height: n, color: l, className: a, onClick: u });
|
11293
11303
|
case "add":
|
11294
|
-
return R5({ width: t, height: n, color: l, className: a, onClick:
|
11304
|
+
return R5({ width: t, height: n, color: l, className: a, onClick: u });
|
11295
11305
|
case "list":
|
11296
|
-
return N5({ width: t, height: n, color: l, className: a, onClick:
|
11306
|
+
return N5({ width: t, height: n, color: l, className: a, onClick: u });
|
11297
11307
|
case "dragAndDrop":
|
11298
|
-
return E5({ width: t, height: n, color: l, className: a, onClick:
|
11308
|
+
return E5({ width: t, height: n, color: l, className: a, onClick: u });
|
11299
11309
|
case "filter":
|
11300
|
-
return x5({ width: t, height: n, color: l, className: a, onClick:
|
11310
|
+
return x5({ width: t, height: n, color: l, className: a, onClick: u });
|
11301
11311
|
case "attention":
|
11302
|
-
return O5({ width: t, height: n, color: l, className: a, onClick:
|
11312
|
+
return O5({ width: t, height: n, color: l, className: a, onClick: u });
|
11303
11313
|
case "plus":
|
11304
|
-
return S5({ width: t, height: n, color: l, className: a, onClick:
|
11314
|
+
return S5({ width: t, height: n, color: l, className: a, onClick: u });
|
11305
11315
|
case "time":
|
11306
|
-
return A5({ width: t, height: n, color: l, className: a, onClick:
|
11316
|
+
return A5({ width: t, height: n, color: l, className: a, onClick: u });
|
11307
11317
|
case "arrowDownLong":
|
11308
11318
|
return T5({
|
11309
11319
|
width: t,
|
11310
11320
|
height: n,
|
11311
11321
|
color: l,
|
11312
11322
|
className: a,
|
11313
|
-
onClick:
|
11323
|
+
onClick: u
|
11314
11324
|
});
|
11315
11325
|
case "users":
|
11316
|
-
return _5({ width: t, height: n, color: l, className: a, onClick:
|
11326
|
+
return _5({ width: t, height: n, color: l, className: a, onClick: u });
|
11317
11327
|
case "mySkillsMatrix":
|
11318
11328
|
return M5({
|
11319
11329
|
width: t,
|
11320
11330
|
height: n,
|
11321
11331
|
color: l,
|
11322
11332
|
className: a,
|
11323
|
-
onClick:
|
11333
|
+
onClick: u
|
11324
11334
|
});
|
11325
11335
|
case "skills":
|
11326
|
-
return j5({ width: t, height: n, color: l, className: a, onClick:
|
11336
|
+
return j5({ width: t, height: n, color: l, className: a, onClick: u });
|
11327
11337
|
case "skillsMatrices":
|
11328
11338
|
return B5({
|
11329
11339
|
width: t,
|
11330
11340
|
height: n,
|
11331
11341
|
color: l,
|
11332
11342
|
className: a,
|
11333
|
-
onClick:
|
11343
|
+
onClick: u
|
11334
11344
|
});
|
11335
11345
|
case "history":
|
11336
|
-
return P5({ width: t, height: n, color: l, className: a, onClick:
|
11346
|
+
return P5({ width: t, height: n, color: l, className: a, onClick: u });
|
11337
11347
|
case "logOut":
|
11338
|
-
return D5({ width: t, height: n, color: l, className: a, onClick:
|
11348
|
+
return D5({ width: t, height: n, color: l, className: a, onClick: u });
|
11339
11349
|
case "settings":
|
11340
|
-
return I5({ width: t, height: n, color: l, className: a, onClick:
|
11350
|
+
return I5({ width: t, height: n, color: l, className: a, onClick: u });
|
11341
11351
|
case "addSkill":
|
11342
|
-
return F5({ width: t, height: n, color: l, className: a, onClick:
|
11352
|
+
return F5({ width: t, height: n, color: l, className: a, onClick: u });
|
11343
11353
|
case "conversation":
|
11344
|
-
return H5({ width: t, height: n, color: l, className: a, onClick:
|
11354
|
+
return H5({ width: t, height: n, color: l, className: a, onClick: u });
|
11345
11355
|
case "trash":
|
11346
|
-
return U5({ width: t, height: n, color: l, className: a, onClick:
|
11356
|
+
return U5({ width: t, height: n, color: l, className: a, onClick: u });
|
11347
11357
|
case "settings4":
|
11348
|
-
return V5({ width: t, height: n, color: l, className: a, onClick:
|
11358
|
+
return V5({ width: t, height: n, color: l, className: a, onClick: u });
|
11349
11359
|
case "edit2":
|
11350
|
-
return W5({ width: t, height: n, color: l, className: a, onClick:
|
11360
|
+
return W5({ width: t, height: n, color: l, className: a, onClick: u });
|
11351
11361
|
case "notifications":
|
11352
11362
|
return K5({
|
11353
11363
|
width: t,
|
11354
11364
|
height: n,
|
11355
11365
|
color: l,
|
11356
11366
|
className: a,
|
11357
|
-
onClick:
|
11367
|
+
onClick: u
|
11358
11368
|
});
|
11359
11369
|
case "success":
|
11360
|
-
return G5({ width: t, height: n, color: l, className: a, onClick:
|
11370
|
+
return G5({ width: t, height: n, color: l, className: a, onClick: u });
|
11361
11371
|
case "attentionSmall":
|
11362
11372
|
return Z5({
|
11363
11373
|
width: t,
|
11364
11374
|
height: n,
|
11365
11375
|
color: l,
|
11366
11376
|
className: a,
|
11367
|
-
onClick:
|
11377
|
+
onClick: u
|
11368
11378
|
});
|
11369
11379
|
case "errorSmall":
|
11370
|
-
return q5({ width: t, height: n, color: l, className: a, onClick:
|
11380
|
+
return q5({ width: t, height: n, color: l, className: a, onClick: u });
|
11371
11381
|
case "infoMedium":
|
11372
|
-
return $5({ width: t, height: n, color: l, className: a, onClick:
|
11382
|
+
return $5({ width: t, height: n, color: l, className: a, onClick: u });
|
11373
11383
|
case "attentionMedium":
|
11374
11384
|
return z5({
|
11375
11385
|
width: t,
|
11376
11386
|
height: n,
|
11377
11387
|
color: l,
|
11378
11388
|
className: a,
|
11379
|
-
onClick:
|
11389
|
+
onClick: u
|
11380
11390
|
});
|
11381
11391
|
case "errorMedium":
|
11382
|
-
return Y5({ width: t, height: n, color: l, className: a, onClick:
|
11392
|
+
return Y5({ width: t, height: n, color: l, className: a, onClick: u });
|
11383
11393
|
case "faviconSkills":
|
11384
11394
|
return n3({
|
11385
11395
|
width: t,
|
11386
11396
|
height: n,
|
11387
11397
|
color: l,
|
11388
11398
|
className: a,
|
11389
|
-
onClick:
|
11399
|
+
onClick: u
|
11390
11400
|
});
|
11391
11401
|
case "visibilityIcon":
|
11392
11402
|
return J5({
|
@@ -11394,7 +11404,7 @@ const w5 = ({
|
|
11394
11404
|
height: n,
|
11395
11405
|
color: l,
|
11396
11406
|
className: a,
|
11397
|
-
onClick:
|
11407
|
+
onClick: u
|
11398
11408
|
});
|
11399
11409
|
case "visibilityOffIcon":
|
11400
11410
|
return X5({
|
@@ -11402,7 +11412,7 @@ const w5 = ({
|
|
11402
11412
|
height: n,
|
11403
11413
|
color: l,
|
11404
11414
|
className: a,
|
11405
|
-
onClick:
|
11415
|
+
onClick: u
|
11406
11416
|
});
|
11407
11417
|
case "selectArrowIcon":
|
11408
11418
|
return Q5({
|
@@ -11410,7 +11420,7 @@ const w5 = ({
|
|
11410
11420
|
height: n,
|
11411
11421
|
color: l,
|
11412
11422
|
className: a,
|
11413
|
-
onClick:
|
11423
|
+
onClick: u
|
11414
11424
|
});
|
11415
11425
|
case "expandArrowIcon":
|
11416
11426
|
return e3({
|
@@ -11418,7 +11428,7 @@ const w5 = ({
|
|
11418
11428
|
height: n,
|
11419
11429
|
color: l,
|
11420
11430
|
className: a,
|
11421
|
-
onClick:
|
11431
|
+
onClick: u
|
11422
11432
|
});
|
11423
11433
|
case "expandActiveArrowIcon":
|
11424
11434
|
return t3({
|
@@ -11426,84 +11436,84 @@ const w5 = ({
|
|
11426
11436
|
height: n,
|
11427
11437
|
color: l,
|
11428
11438
|
className: a,
|
11429
|
-
onClick:
|
11439
|
+
onClick: u
|
11430
11440
|
});
|
11431
11441
|
case "camera":
|
11432
|
-
return r3({ width: t, height: n, color: l, className: a, onClick:
|
11442
|
+
return r3({ width: t, height: n, color: l, className: a, onClick: u });
|
11433
11443
|
case "sortUp":
|
11434
|
-
return o3({ width: t, height: n, color: l, className: a, onClick:
|
11444
|
+
return o3({ width: t, height: n, color: l, className: a, onClick: u });
|
11435
11445
|
case "sortDown":
|
11436
|
-
return i3({ width: t, height: n, color: l, className: a, onClick:
|
11446
|
+
return i3({ width: t, height: n, color: l, className: a, onClick: u });
|
11437
11447
|
case "logOut2":
|
11438
|
-
return s3({ width: t, height: n, color: l, className: a, onClick:
|
11448
|
+
return s3({ width: t, height: n, color: l, className: a, onClick: u });
|
11439
11449
|
case "search":
|
11440
|
-
return a3({ width: t, height: n, color: l, className: a, onClick:
|
11450
|
+
return a3({ width: t, height: n, color: l, className: a, onClick: u });
|
11441
11451
|
case "handRock":
|
11442
|
-
return l3({ width: t, height: n, color: l, className: a, onClick:
|
11452
|
+
return l3({ width: t, height: n, color: l, className: a, onClick: u });
|
11443
11453
|
case "arrowUpFilled":
|
11444
|
-
return d3({ width: t, height: n, color: l, className: a, onClick:
|
11454
|
+
return d3({ width: t, height: n, color: l, className: a, onClick: u });
|
11445
11455
|
case "arrowDownFilled":
|
11446
|
-
return u3({ width: t, height: n, color: l, className: a, onClick:
|
11456
|
+
return u3({ width: t, height: n, color: l, className: a, onClick: u });
|
11447
11457
|
case "link":
|
11448
|
-
return f3({ width: t, height: n, color: l, className: a, onClick:
|
11458
|
+
return f3({ width: t, height: n, color: l, className: a, onClick: u });
|
11449
11459
|
case "telegram":
|
11450
|
-
return g3({ width: t, height: n, color: l, className: a, onClick:
|
11460
|
+
return g3({ width: t, height: n, color: l, className: a, onClick: u });
|
11451
11461
|
case "mail":
|
11452
|
-
return w3({ width: t, height: n, color: l, className: a, onClick:
|
11462
|
+
return w3({ width: t, height: n, color: l, className: a, onClick: u });
|
11453
11463
|
case "github":
|
11454
|
-
return p3({ width: t, height: n, color: l, className: a, onClick:
|
11464
|
+
return p3({ width: t, height: n, color: l, className: a, onClick: u });
|
11455
11465
|
case "linkedIn":
|
11456
|
-
return m3({ width: t, height: n, color: l, className: a, onClick:
|
11466
|
+
return m3({ width: t, height: n, color: l, className: a, onClick: u });
|
11457
11467
|
case "emptyStateIcon":
|
11458
|
-
return C3({ width: t, height: n, color: l, className: a, onClick:
|
11468
|
+
return C3({ width: t, height: n, color: l, className: a, onClick: u });
|
11459
11469
|
case "filtersIcon":
|
11460
|
-
return k3({ width: t, height: n, color: l, className: a, onClick:
|
11470
|
+
return k3({ width: t, height: n, color: l, className: a, onClick: u });
|
11461
11471
|
case "dotMenuIcon":
|
11462
|
-
return y3({ width: t, height: n, color: l, className: a, onClick:
|
11472
|
+
return y3({ width: t, height: n, color: l, className: a, onClick: u });
|
11463
11473
|
case "plusCircle":
|
11464
|
-
return L3({ width: t, height: n, color: l, className: a, onClick:
|
11474
|
+
return L3({ width: t, height: n, color: l, className: a, onClick: u });
|
11465
11475
|
case "warning":
|
11466
|
-
return b3({ width: t, height: n, color: l, className: a, onClick:
|
11476
|
+
return b3({ width: t, height: n, color: l, className: a, onClick: u });
|
11467
11477
|
case "back":
|
11468
|
-
return v3({ width: t, height: n, color: l, className: a, onClick:
|
11478
|
+
return v3({ width: t, height: n, color: l, className: a, onClick: u });
|
11469
11479
|
case "bell":
|
11470
|
-
return R3({ width: t, height: n, color: l, className: a, onClick:
|
11480
|
+
return R3({ width: t, height: n, color: l, className: a, onClick: u });
|
11471
11481
|
case "contract":
|
11472
|
-
return E3({ width: t, height: n, color: l, className: a, onClick:
|
11482
|
+
return E3({ width: t, height: n, color: l, className: a, onClick: u });
|
11473
11483
|
case "trash2":
|
11474
|
-
return N3({ width: t, height: n, color: l, className: a, onClick:
|
11484
|
+
return N3({ width: t, height: n, color: l, className: a, onClick: u });
|
11475
11485
|
case "manager":
|
11476
|
-
return x3({ width: t, height: n, color: l, className: a, onClick:
|
11486
|
+
return x3({ width: t, height: n, color: l, className: a, onClick: u });
|
11477
11487
|
case "resourceManager":
|
11478
|
-
return O3({ width: t, height: n, color: l, className: a, onClick:
|
11488
|
+
return O3({ width: t, height: n, color: l, className: a, onClick: u });
|
11479
11489
|
case "settings2":
|
11480
|
-
return S3({ width: t, height: n, color: l, className: a, onClick:
|
11490
|
+
return S3({ width: t, height: n, color: l, className: a, onClick: u });
|
11481
11491
|
case "image":
|
11482
|
-
return A3({ width: t, height: n, color: l, className: a, onClick:
|
11492
|
+
return A3({ width: t, height: n, color: l, className: a, onClick: u });
|
11483
11493
|
case "upload":
|
11484
|
-
return T3({ width: t, height: n, color: l, className: a, onClick:
|
11494
|
+
return T3({ width: t, height: n, color: l, className: a, onClick: u });
|
11485
11495
|
case "edit":
|
11486
|
-
return _3({ width: t, height: n, color: l, className: a, onClick:
|
11496
|
+
return _3({ width: t, height: n, color: l, className: a, onClick: u });
|
11487
11497
|
case "location":
|
11488
|
-
return M3({ width: t, height: n, color: l, className: a, onClick:
|
11498
|
+
return M3({ width: t, height: n, color: l, className: a, onClick: u });
|
11489
11499
|
case "plus2":
|
11490
|
-
return j3({ width: t, height: n, color: l, className: a, onClick:
|
11500
|
+
return j3({ width: t, height: n, color: l, className: a, onClick: u });
|
11491
11501
|
case "search2":
|
11492
|
-
return B3({ width: t, height: n, color: l, className: a, onClick:
|
11502
|
+
return B3({ width: t, height: n, color: l, className: a, onClick: u });
|
11493
11503
|
case "fastArrowLeft":
|
11494
|
-
return P3({ width: t, height: n, color: l, className: a, onClick:
|
11504
|
+
return P3({ width: t, height: n, color: l, className: a, onClick: u });
|
11495
11505
|
case "fastArrowRight":
|
11496
|
-
return D3({ width: t, height: n, color: l, className: a, onClick:
|
11506
|
+
return D3({ width: t, height: n, color: l, className: a, onClick: u });
|
11497
11507
|
case "crossInCircle":
|
11498
|
-
return I3({ width: t, height: n, color: l, className: a, onClick:
|
11508
|
+
return I3({ width: t, height: n, color: l, className: a, onClick: u });
|
11499
11509
|
case "arrowUp2":
|
11500
|
-
return H3({ width: t, height: n, color: l, className: a, onClick:
|
11510
|
+
return H3({ width: t, height: n, color: l, className: a, onClick: u });
|
11501
11511
|
case "arrowDown2":
|
11502
|
-
return F3({ width: t, height: n, color: l, className: a, onClick:
|
11512
|
+
return F3({ width: t, height: n, color: l, className: a, onClick: u });
|
11503
11513
|
case "filledArrowLeft":
|
11504
|
-
return U3({ width: t, height: n, color: l, className: a, onClick:
|
11514
|
+
return U3({ width: t, height: n, color: l, className: a, onClick: u });
|
11505
11515
|
case "filledArrowRight":
|
11506
|
-
return V3({ width: t, height: n, color: l, className: a, onClick:
|
11516
|
+
return V3({ width: t, height: n, color: l, className: a, onClick: u });
|
11507
11517
|
default:
|
11508
11518
|
return /* @__PURE__ */ h(Fe, { children: "No Icon provided" });
|
11509
11519
|
}
|
@@ -11669,8 +11679,8 @@ const Nh = (e) => {
|
|
11669
11679
|
t[o] = r;
|
11670
11680
|
const i = Ze(r) ? [] : {};
|
11671
11681
|
return gt(r, (s, a) => {
|
11672
|
-
const
|
11673
|
-
!ot(
|
11682
|
+
const d = n(s, o + 1);
|
11683
|
+
!ot(d) && (i[a] = d);
|
11674
11684
|
}), t[o] = void 0, i;
|
11675
11685
|
}
|
11676
11686
|
}
|
@@ -11825,7 +11835,7 @@ function an(e, t, n) {
|
|
11825
11835
|
const r = n.metaTokens, o = n.visitor || c, i = n.dots, s = n.indexes, a = (n.Blob || typeof Blob < "u" && Blob) && L.isSpecCompliantForm(t);
|
11826
11836
|
if (!L.isFunction(o))
|
11827
11837
|
throw new TypeError("visitor must be a function");
|
11828
|
-
function
|
11838
|
+
function d(p) {
|
11829
11839
|
if (p === null) return "";
|
11830
11840
|
if (L.isDate(p))
|
11831
11841
|
return p.toISOString();
|
@@ -11843,15 +11853,15 @@ function an(e, t, n) {
|
|
11843
11853
|
!(L.isUndefined(R) || R === null) && t.append(
|
11844
11854
|
// eslint-disable-next-line no-nested-ternary
|
11845
11855
|
s === !0 ? Co([g], b, i) : s === null ? g : g + "[]",
|
11846
|
-
|
11856
|
+
d(R)
|
11847
11857
|
);
|
11848
11858
|
}), !1;
|
11849
11859
|
}
|
11850
|
-
return Xn(p) ? !0 : (t.append(Co(f, g, i),
|
11860
|
+
return Xn(p) ? !0 : (t.append(Co(f, g, i), d(p)), !1);
|
11851
11861
|
}
|
11852
|
-
const l = [],
|
11862
|
+
const l = [], u = Object.assign(Th, {
|
11853
11863
|
defaultVisitor: c,
|
11854
|
-
convertValue:
|
11864
|
+
convertValue: d,
|
11855
11865
|
isVisitable: Xn
|
11856
11866
|
});
|
11857
11867
|
function m(p, g) {
|
@@ -11864,7 +11874,7 @@ function an(e, t, n) {
|
|
11864
11874
|
f,
|
11865
11875
|
L.isString(v) ? v.trim() : v,
|
11866
11876
|
g,
|
11867
|
-
|
11877
|
+
u
|
11868
11878
|
)) === !0 && m(f, g ? g.concat(v) : [v]);
|
11869
11879
|
}), l.pop();
|
11870
11880
|
}
|
@@ -12017,8 +12027,8 @@ function Ms(e) {
|
|
12017
12027
|
function t(n, r, o, i) {
|
12018
12028
|
let s = n[i++];
|
12019
12029
|
if (s === "__proto__") return !0;
|
12020
|
-
const a = Number.isFinite(+s),
|
12021
|
-
return s = !s && L.isArray(o) ? o.length : s,
|
12030
|
+
const a = Number.isFinite(+s), d = i >= n.length;
|
12031
|
+
return s = !s && L.isArray(o) ? o.length : s, d ? (L.hasOwnProp(o, s) ? o[s] = [o[s], r] : o[s] = r, !a) : ((!o[s] || !L.isObject(o[s])) && (o[s] = []), t(n, r, o[s], i) && L.isArray(o[s]) && (o[s] = Wh(o[s])), !a);
|
12022
12032
|
}
|
12023
12033
|
if (L.isFormData(e) && L.isFunction(e.entries)) {
|
12024
12034
|
const n = {};
|
@@ -12177,21 +12187,21 @@ class ee {
|
|
12177
12187
|
}
|
12178
12188
|
set(t, n, r) {
|
12179
12189
|
const o = this;
|
12180
|
-
function i(a,
|
12181
|
-
const l = Xe(
|
12190
|
+
function i(a, d, c) {
|
12191
|
+
const l = Xe(d);
|
12182
12192
|
if (!l)
|
12183
12193
|
throw new Error("header name must be a non-empty string");
|
12184
|
-
const
|
12185
|
-
(!
|
12194
|
+
const u = L.findKey(o, l);
|
12195
|
+
(!u || o[u] === void 0 || c === !0 || c === void 0 && o[u] !== !1) && (o[u || d] = Ot(a));
|
12186
12196
|
}
|
12187
|
-
const s = (a,
|
12197
|
+
const s = (a, d) => L.forEach(a, (c, l) => i(c, l, d));
|
12188
12198
|
if (L.isPlainObject(t) || t instanceof this.constructor)
|
12189
12199
|
s(t, n);
|
12190
12200
|
else if (L.isString(t) && (t = t.trim()) && !$h(t))
|
12191
12201
|
s(Zh(t), n);
|
12192
12202
|
else if (L.isHeaders(t))
|
12193
|
-
for (const [a,
|
12194
|
-
i(
|
12203
|
+
for (const [a, d] of t.entries())
|
12204
|
+
i(d, a, r);
|
12195
12205
|
else
|
12196
12206
|
t != null && i(n, t, r);
|
12197
12207
|
return this;
|
@@ -12335,25 +12345,25 @@ function Xh(e, t) {
|
|
12335
12345
|
const n = new Array(e), r = new Array(e);
|
12336
12346
|
let o = 0, i = 0, s;
|
12337
12347
|
return t = t !== void 0 ? t : 1e3, function(a) {
|
12338
|
-
const
|
12339
|
-
s || (s =
|
12340
|
-
let l = i,
|
12348
|
+
const d = Date.now(), c = r[i];
|
12349
|
+
s || (s = d), n[o] = a, r[o] = d;
|
12350
|
+
let l = i, u = 0;
|
12341
12351
|
for (; l !== o; )
|
12342
|
-
|
12343
|
-
if (o = (o + 1) % e, o === i && (i = (i + 1) % e),
|
12352
|
+
u += n[l++], l = l % e;
|
12353
|
+
if (o = (o + 1) % e, o === i && (i = (i + 1) % e), d - s < t)
|
12344
12354
|
return;
|
12345
|
-
const m = c &&
|
12346
|
-
return m ? Math.round(
|
12355
|
+
const m = c && d - c;
|
12356
|
+
return m ? Math.round(u * 1e3 / m) : void 0;
|
12347
12357
|
};
|
12348
12358
|
}
|
12349
12359
|
function Qh(e, t) {
|
12350
12360
|
let n = 0, r = 1e3 / t, o, i;
|
12351
|
-
const s = (a,
|
12352
|
-
n =
|
12361
|
+
const s = (a, d = Date.now()) => {
|
12362
|
+
n = d, o = null, i && (clearTimeout(i), i = null), e.apply(null, a);
|
12353
12363
|
};
|
12354
12364
|
return [(...a) => {
|
12355
|
-
const
|
12356
|
-
c >= r ? s(a,
|
12365
|
+
const d = Date.now(), c = d - n;
|
12366
|
+
c >= r ? s(a, d) : (o = a, i || (i = setTimeout(() => {
|
12357
12367
|
i = null, s(o);
|
12358
12368
|
}, r - c)));
|
12359
12369
|
}, () => o && s(o)];
|
@@ -12362,20 +12372,20 @@ const Bt = (e, t, n = 3) => {
|
|
12362
12372
|
let r = 0;
|
12363
12373
|
const o = Xh(50, 250);
|
12364
12374
|
return Qh((i) => {
|
12365
|
-
const s = i.loaded, a = i.lengthComputable ? i.total : void 0,
|
12375
|
+
const s = i.loaded, a = i.lengthComputable ? i.total : void 0, d = s - r, c = o(d), l = s <= a;
|
12366
12376
|
r = s;
|
12367
|
-
const
|
12377
|
+
const u = {
|
12368
12378
|
loaded: s,
|
12369
12379
|
total: a,
|
12370
12380
|
progress: a ? s / a : void 0,
|
12371
|
-
bytes:
|
12381
|
+
bytes: d,
|
12372
12382
|
rate: c || void 0,
|
12373
12383
|
estimated: c && a && l ? (a - s) / c : void 0,
|
12374
12384
|
event: i,
|
12375
12385
|
lengthComputable: a != null,
|
12376
12386
|
[t ? "download" : "upload"]: !0
|
12377
12387
|
};
|
12378
|
-
e(
|
12388
|
+
e(u);
|
12379
12389
|
}, n);
|
12380
12390
|
}, bo = (e, t) => {
|
12381
12391
|
const n = e != null;
|
@@ -12455,14 +12465,14 @@ const Ro = (e) => e instanceof ee ? { ...e } : e;
|
|
12455
12465
|
function je(e, t) {
|
12456
12466
|
t = t || {};
|
12457
12467
|
const n = {};
|
12458
|
-
function r(c, l,
|
12459
|
-
return L.isPlainObject(c) && L.isPlainObject(l) ? L.merge.call({ caseless:
|
12468
|
+
function r(c, l, u) {
|
12469
|
+
return L.isPlainObject(c) && L.isPlainObject(l) ? L.merge.call({ caseless: u }, c, l) : L.isPlainObject(l) ? L.merge({}, l) : L.isArray(l) ? l.slice() : l;
|
12460
12470
|
}
|
12461
|
-
function o(c, l,
|
12471
|
+
function o(c, l, u) {
|
12462
12472
|
if (L.isUndefined(l)) {
|
12463
12473
|
if (!L.isUndefined(c))
|
12464
|
-
return r(void 0, c,
|
12465
|
-
} else return r(c, l,
|
12474
|
+
return r(void 0, c, u);
|
12475
|
+
} else return r(c, l, u);
|
12466
12476
|
}
|
12467
12477
|
function i(c, l) {
|
12468
12478
|
if (!L.isUndefined(l))
|
@@ -12474,13 +12484,13 @@ function je(e, t) {
|
|
12474
12484
|
return r(void 0, c);
|
12475
12485
|
} else return r(void 0, l);
|
12476
12486
|
}
|
12477
|
-
function a(c, l,
|
12478
|
-
if (
|
12487
|
+
function a(c, l, u) {
|
12488
|
+
if (u in t)
|
12479
12489
|
return r(c, l);
|
12480
|
-
if (
|
12490
|
+
if (u in e)
|
12481
12491
|
return r(void 0, c);
|
12482
12492
|
}
|
12483
|
-
const
|
12493
|
+
const d = {
|
12484
12494
|
url: i,
|
12485
12495
|
method: i,
|
12486
12496
|
data: i,
|
@@ -12512,8 +12522,8 @@ function je(e, t) {
|
|
12512
12522
|
headers: (c, l) => o(Ro(c), Ro(l), !0)
|
12513
12523
|
};
|
12514
12524
|
return L.forEach(Object.keys(Object.assign({}, e, t)), function(c) {
|
12515
|
-
const l =
|
12516
|
-
L.isUndefined(
|
12525
|
+
const l = d[c] || o, u = l(e[c], t[c], c);
|
12526
|
+
L.isUndefined(u) && l !== a || (n[c] = u);
|
12517
12527
|
}), n;
|
12518
12528
|
}
|
12519
12529
|
const Ds = (e) => {
|
@@ -12523,12 +12533,12 @@ const Ds = (e) => {
|
|
12523
12533
|
"Authorization",
|
12524
12534
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
12525
12535
|
);
|
12526
|
-
let
|
12536
|
+
let d;
|
12527
12537
|
if (L.isFormData(n)) {
|
12528
12538
|
if (Q.hasStandardBrowserEnv || Q.hasStandardBrowserWebWorkerEnv)
|
12529
12539
|
s.setContentType(void 0);
|
12530
|
-
else if ((
|
12531
|
-
const [c, ...l] =
|
12540
|
+
else if ((d = s.getContentType()) !== !1) {
|
12541
|
+
const [c, ...l] = d ? d.split(";").map((u) => u.trim()).filter(Boolean) : [];
|
12532
12542
|
s.setContentType([c || "multipart/form-data", ...l].join("; "));
|
12533
12543
|
}
|
12534
12544
|
}
|
@@ -12542,7 +12552,7 @@ const Ds = (e) => {
|
|
12542
12552
|
const r = Ds(e);
|
12543
12553
|
let o = r.data;
|
12544
12554
|
const i = ee.from(r.headers).normalize();
|
12545
|
-
let { responseType: s, onUploadProgress: a, onDownloadProgress:
|
12555
|
+
let { responseType: s, onUploadProgress: a, onDownloadProgress: d } = r, c, l, u, m, p;
|
12546
12556
|
function g() {
|
12547
12557
|
m && m(), p && p(), r.cancelToken && r.cancelToken.unsubscribe(c), r.signal && r.signal.removeEventListener("abort", c);
|
12548
12558
|
}
|
@@ -12584,7 +12594,7 @@ const Ds = (e) => {
|
|
12584
12594
|
)), f = null;
|
12585
12595
|
}, o === void 0 && i.setContentType(null), "setRequestHeader" in f && L.forEach(i.toJSON(), function(b, x) {
|
12586
12596
|
f.setRequestHeader(x, b);
|
12587
|
-
}), L.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType),
|
12597
|
+
}), L.isUndefined(r.withCredentials) || (f.withCredentials = !!r.withCredentials), s && s !== "json" && (f.responseType = r.responseType), d && ([u, p] = Bt(d, !0), f.addEventListener("progress", u)), a && f.upload && ([l, m] = Bt(a), f.upload.addEventListener("progress", l), f.upload.addEventListener("loadend", m)), (r.cancelToken || r.signal) && (c = (b) => {
|
12588
12598
|
f && (n(!b || b.type ? new qe(null, e, f) : b), f.abort(), f = null);
|
12589
12599
|
}, r.cancelToken && r.cancelToken.subscribe(c), r.signal && (r.signal.aborted ? c() : r.signal.addEventListener("abort", c)));
|
12590
12600
|
const R = Jh(r.url);
|
@@ -12614,8 +12624,8 @@ const Ds = (e) => {
|
|
12614
12624
|
}), e = null);
|
12615
12625
|
};
|
12616
12626
|
e.forEach((c) => c.addEventListener("abort", i));
|
12617
|
-
const { signal:
|
12618
|
-
return
|
12627
|
+
const { signal: d } = r;
|
12628
|
+
return d.unsubscribe = () => L.asap(a), d;
|
12619
12629
|
}
|
12620
12630
|
}, au = function* (e, t) {
|
12621
12631
|
let n = e.byteLength;
|
@@ -12647,29 +12657,29 @@ const Ds = (e) => {
|
|
12647
12657
|
}
|
12648
12658
|
}, No = (e, t, n, r) => {
|
12649
12659
|
const o = lu(e, t);
|
12650
|
-
let i = 0, s, a = (
|
12651
|
-
s || (s = !0, r && r(
|
12660
|
+
let i = 0, s, a = (d) => {
|
12661
|
+
s || (s = !0, r && r(d));
|
12652
12662
|
};
|
12653
12663
|
return new ReadableStream({
|
12654
|
-
async pull(
|
12664
|
+
async pull(d) {
|
12655
12665
|
try {
|
12656
12666
|
const { done: c, value: l } = await o.next();
|
12657
12667
|
if (c) {
|
12658
|
-
a(),
|
12668
|
+
a(), d.close();
|
12659
12669
|
return;
|
12660
12670
|
}
|
12661
|
-
let
|
12671
|
+
let u = l.byteLength;
|
12662
12672
|
if (n) {
|
12663
|
-
let m = i +=
|
12673
|
+
let m = i += u;
|
12664
12674
|
n(m);
|
12665
12675
|
}
|
12666
|
-
|
12676
|
+
d.enqueue(new Uint8Array(l));
|
12667
12677
|
} catch (c) {
|
12668
12678
|
throw a(c), c;
|
12669
12679
|
}
|
12670
12680
|
},
|
12671
|
-
cancel(
|
12672
|
-
return a(
|
12681
|
+
cancel(d) {
|
12682
|
+
return a(d), o.return();
|
12673
12683
|
}
|
12674
12684
|
}, {
|
12675
12685
|
highWaterMark: 2
|
@@ -12723,10 +12733,10 @@ const du = async (e) => {
|
|
12723
12733
|
cancelToken: i,
|
12724
12734
|
timeout: s,
|
12725
12735
|
onDownloadProgress: a,
|
12726
|
-
onUploadProgress:
|
12736
|
+
onUploadProgress: d,
|
12727
12737
|
responseType: c,
|
12728
12738
|
headers: l,
|
12729
|
-
withCredentials:
|
12739
|
+
withCredentials: u = "same-origin",
|
12730
12740
|
fetchOptions: m
|
12731
12741
|
} = Ds(e);
|
12732
12742
|
c = c ? (c + "").toLowerCase() : "text";
|
@@ -12736,7 +12746,7 @@ const du = async (e) => {
|
|
12736
12746
|
});
|
12737
12747
|
let v;
|
12738
12748
|
try {
|
12739
|
-
if (
|
12749
|
+
if (d && uu && n !== "get" && n !== "head" && (v = await fu(l, r)) !== 0) {
|
12740
12750
|
let E = new Request(t, {
|
12741
12751
|
method: "POST",
|
12742
12752
|
body: r,
|
@@ -12745,12 +12755,12 @@ const du = async (e) => {
|
|
12745
12755
|
if (L.isFormData(r) && (S = E.headers.get("content-type")) && l.setContentType(S), E.body) {
|
12746
12756
|
const [O, A] = bo(
|
12747
12757
|
v,
|
12748
|
-
Bt(vo(
|
12758
|
+
Bt(vo(d))
|
12749
12759
|
);
|
12750
12760
|
r = No(E.body, Eo, O, A);
|
12751
12761
|
}
|
12752
12762
|
}
|
12753
|
-
L.isString(
|
12763
|
+
L.isString(u) || (u = u ? "include" : "omit");
|
12754
12764
|
const R = "credentials" in Request.prototype;
|
12755
12765
|
g = new Request(t, {
|
12756
12766
|
...m,
|
@@ -12759,7 +12769,7 @@ const du = async (e) => {
|
|
12759
12769
|
headers: l.normalize().toJSON(),
|
12760
12770
|
body: r,
|
12761
12771
|
duplex: "half",
|
12762
|
-
credentials: R ?
|
12772
|
+
credentials: R ? u : void 0
|
12763
12773
|
});
|
12764
12774
|
let b = await fetch(g);
|
12765
12775
|
const x = er && (c === "stream" || c === "response");
|
@@ -12830,7 +12840,7 @@ const xo = (e) => `- ${e}`, gu = (e) => L.isFunction(e) || e === null || e === !
|
|
12830
12840
|
}
|
12831
12841
|
if (!r) {
|
12832
12842
|
const i = Object.entries(o).map(
|
12833
|
-
([a,
|
12843
|
+
([a, d]) => `adapter ${a} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
12834
12844
|
);
|
12835
12845
|
let s = t ? i.length > 1 ? `since :
|
12836
12846
|
` + i.map(xo).join(`
|
@@ -12899,9 +12909,9 @@ function mu(e, t, n) {
|
|
12899
12909
|
for (; o-- > 0; ) {
|
12900
12910
|
const i = r[o], s = t[i];
|
12901
12911
|
if (s) {
|
12902
|
-
const a = e[i],
|
12903
|
-
if (
|
12904
|
-
throw new j("option " + i + " must be " +
|
12912
|
+
const a = e[i], d = a === void 0 || s(a, i, e);
|
12913
|
+
if (d !== !0)
|
12914
|
+
throw new j("option " + i + " must be " + d, j.ERR_BAD_OPTION_VALUE);
|
12905
12915
|
continue;
|
12906
12916
|
}
|
12907
12917
|
if (n !== !0)
|
@@ -12968,25 +12978,25 @@ class Se {
|
|
12968
12978
|
}
|
12969
12979
|
), n.headers = ee.concat(s, i);
|
12970
12980
|
const a = [];
|
12971
|
-
let
|
12981
|
+
let d = !0;
|
12972
12982
|
this.interceptors.request.forEach(function(g) {
|
12973
|
-
typeof g.runWhen == "function" && g.runWhen(n) === !1 || (
|
12983
|
+
typeof g.runWhen == "function" && g.runWhen(n) === !1 || (d = d && g.synchronous, a.unshift(g.fulfilled, g.rejected));
|
12974
12984
|
});
|
12975
12985
|
const c = [];
|
12976
12986
|
this.interceptors.response.forEach(function(g) {
|
12977
12987
|
c.push(g.fulfilled, g.rejected);
|
12978
12988
|
});
|
12979
|
-
let l,
|
12980
|
-
if (!
|
12989
|
+
let l, u = 0, m;
|
12990
|
+
if (!d) {
|
12981
12991
|
const g = [Oo.bind(this), void 0];
|
12982
|
-
for (g.unshift.apply(g, a), g.push.apply(g, c), m = g.length, l = Promise.resolve(n);
|
12983
|
-
l = l.then(g[
|
12992
|
+
for (g.unshift.apply(g, a), g.push.apply(g, c), m = g.length, l = Promise.resolve(n); u < m; )
|
12993
|
+
l = l.then(g[u++], g[u++]);
|
12984
12994
|
return l;
|
12985
12995
|
}
|
12986
12996
|
m = a.length;
|
12987
12997
|
let p = n;
|
12988
|
-
for (
|
12989
|
-
const g = a[
|
12998
|
+
for (u = 0; u < m; ) {
|
12999
|
+
const g = a[u++], f = a[u++];
|
12990
13000
|
try {
|
12991
13001
|
p = g(p);
|
12992
13002
|
} catch (v) {
|
@@ -12999,8 +13009,8 @@ class Se {
|
|
12999
13009
|
} catch (g) {
|
13000
13010
|
return Promise.reject(g);
|
13001
13011
|
}
|
13002
|
-
for (
|
13003
|
-
l = l.then(c[
|
13012
|
+
for (u = 0, m = c.length; u < m; )
|
13013
|
+
l = l.then(c[u++], c[u++]);
|
13004
13014
|
return l;
|
13005
13015
|
}
|
13006
13016
|
getUri(t) {
|
@@ -13247,21 +13257,31 @@ const Ws = ({ children: e, width: t, size: n = "small", onClose: r }) => {
|
|
13247
13257
|
color: n,
|
13248
13258
|
children: r,
|
13249
13259
|
onClick: o,
|
13250
|
-
collapsed: i
|
13251
|
-
|
13252
|
-
|
13253
|
-
|
13254
|
-
|
13260
|
+
collapsed: i,
|
13261
|
+
whiteSpace: s = "wrap"
|
13262
|
+
}, a) => {
|
13263
|
+
const d = t === "h1" || t === "h2" || t === "h3" || t === "h4";
|
13264
|
+
let c = `snmt-typography snmt-typography-${t}`;
|
13265
|
+
return e && e !== "inherit" && (c += ` snmt-typography-align-${e}`), i && (c += " collapsed"), d ? /* @__PURE__ */ h(
|
13255
13266
|
yu,
|
13256
13267
|
{
|
13257
|
-
className:
|
13258
|
-
style: { color: n },
|
13268
|
+
className: c,
|
13269
|
+
style: { color: n, whiteSpace: s },
|
13259
13270
|
onClick: o,
|
13260
13271
|
level: bu[t],
|
13261
|
-
ref:
|
13272
|
+
ref: a,
|
13262
13273
|
children: r
|
13263
13274
|
}
|
13264
|
-
) : /* @__PURE__ */ h(
|
13275
|
+
) : /* @__PURE__ */ h(
|
13276
|
+
Lu,
|
13277
|
+
{
|
13278
|
+
className: c,
|
13279
|
+
style: { color: n, whiteSpace: s },
|
13280
|
+
onClick: o,
|
13281
|
+
ref: a,
|
13282
|
+
children: r
|
13283
|
+
}
|
13284
|
+
);
|
13265
13285
|
}
|
13266
13286
|
), vu = ({
|
13267
13287
|
children: e,
|
@@ -13281,8 +13301,8 @@ const Ws = ({ children: e, width: t, size: n = "small", onClose: r }) => {
|
|
13281
13301
|
trigger: "click",
|
13282
13302
|
overlayClassName: `snmt-popover ${i ? "" : "padding"}`,
|
13283
13303
|
open: n ?? s,
|
13284
|
-
onOpenChange: (
|
13285
|
-
a(
|
13304
|
+
onOpenChange: (d) => {
|
13305
|
+
a(d), r == null || r(d);
|
13286
13306
|
},
|
13287
13307
|
children: e
|
13288
13308
|
}
|
@@ -13321,10 +13341,10 @@ const Ws = ({ children: e, width: t, size: n = "small", onClose: r }) => {
|
|
13321
13341
|
options: i,
|
13322
13342
|
width: s,
|
13323
13343
|
disabled: a = !1,
|
13324
|
-
required:
|
13344
|
+
required: d = !1,
|
13325
13345
|
onPopupScroll: c,
|
13326
13346
|
onSearchChange: l,
|
13327
|
-
id:
|
13347
|
+
id: u
|
13328
13348
|
}, m) => {
|
13329
13349
|
const [p, g] = K(!1), [f, v] = K(!1), [R, b] = K(!0), [x, N] = K(e), E = at(null);
|
13330
13350
|
se(() => {
|
@@ -13371,12 +13391,12 @@ const Ws = ({ children: e, width: t, size: n = "small", onClose: r }) => {
|
|
13371
13391
|
children: /* @__PURE__ */ h(
|
13372
13392
|
Qs,
|
13373
13393
|
{
|
13374
|
-
id:
|
13394
|
+
id: u,
|
13375
13395
|
ref: m,
|
13376
13396
|
showSearch: !!o,
|
13377
13397
|
filterOption: o && O,
|
13378
13398
|
onDropdownVisibleChange: S,
|
13379
|
-
placeholder: n ?
|
13399
|
+
placeholder: n ? d ? `${n}*` : n : void 0,
|
13380
13400
|
disabled: a,
|
13381
13401
|
value: x || void 0,
|
13382
13402
|
mode: r === "filter" ? "multiple" : r,
|
@@ -13529,12 +13549,12 @@ class cn {
|
|
13529
13549
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
13530
13550
|
r[o - 1] = arguments[o];
|
13531
13551
|
this.observers[t] && Array.from(this.observers[t].entries()).forEach((s) => {
|
13532
|
-
let [a,
|
13533
|
-
for (let c = 0; c <
|
13552
|
+
let [a, d] = s;
|
13553
|
+
for (let c = 0; c < d; c++)
|
13534
13554
|
a(...r);
|
13535
13555
|
}), this.observers["*"] && Array.from(this.observers["*"].entries()).forEach((s) => {
|
13536
|
-
let [a,
|
13537
|
-
for (let c = 0; c <
|
13556
|
+
let [a, d] = s;
|
13557
|
+
for (let c = 0; c < d; c++)
|
13538
13558
|
a.apply(a, [t, ...r]);
|
13539
13559
|
});
|
13540
13560
|
}
|
@@ -13637,11 +13657,11 @@ const ju = [" ", ",", "?", "!", ";"], Bu = new Mu(20), Pu = (e, t, n) => {
|
|
13637
13657
|
if (!o || typeof o != "object")
|
13638
13658
|
return;
|
13639
13659
|
let s, a = "";
|
13640
|
-
for (let
|
13641
|
-
if (
|
13642
|
-
if (["string", "number", "boolean"].indexOf(typeof s) > -1 &&
|
13660
|
+
for (let d = i; d < r.length; ++d)
|
13661
|
+
if (d !== i && (a += n), a += r[d], s = o[a], s !== void 0) {
|
13662
|
+
if (["string", "number", "boolean"].indexOf(typeof s) > -1 && d < r.length - 1)
|
13643
13663
|
continue;
|
13644
|
-
i +=
|
13664
|
+
i += d - i + 1;
|
13645
13665
|
break;
|
13646
13666
|
}
|
13647
13667
|
o = s;
|
@@ -13668,8 +13688,8 @@ class jo extends cn {
|
|
13668
13688
|
const i = o.keySeparator !== void 0 ? o.keySeparator : this.options.keySeparator, s = o.ignoreJSONStructure !== void 0 ? o.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
13669
13689
|
let a;
|
13670
13690
|
t.indexOf(".") > -1 ? a = t.split(".") : (a = [t, n], r && (Array.isArray(r) ? a.push(...r) : typeof r == "string" && i ? a.push(...r.split(i)) : a.push(r)));
|
13671
|
-
const
|
13672
|
-
return !
|
13691
|
+
const d = It(this.data, a);
|
13692
|
+
return !d && !n && !r && t.indexOf(".") > -1 && (t = a[0], n = a[1], r = a.slice(2).join(".")), d || !s || typeof r != "string" ? d : or(this.data && this.data[t] && this.data[t][n], r, i);
|
13673
13693
|
}
|
13674
13694
|
addResource(t, n, r, o) {
|
13675
13695
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
@@ -13695,11 +13715,11 @@ class jo extends cn {
|
|
13695
13715
|
skipCopy: !1
|
13696
13716
|
}, a = [t, n];
|
13697
13717
|
t.indexOf(".") > -1 && (a = t.split("."), o = r, r = n, n = a[1]), this.addNamespaces(n);
|
13698
|
-
let
|
13699
|
-
s.skipCopy || (r = JSON.parse(JSON.stringify(r))), o ? Gs(
|
13700
|
-
...
|
13718
|
+
let d = It(this.data, a) || {};
|
13719
|
+
s.skipCopy || (r = JSON.parse(JSON.stringify(r))), o ? Gs(d, r, i) : d = {
|
13720
|
+
...d,
|
13701
13721
|
...r
|
13702
|
-
}, Mo(this.data, a,
|
13722
|
+
}, Mo(this.data, a, d), s.silent || this.emit("added", t, n, r);
|
13703
13723
|
}
|
13704
13724
|
removeResourceBundle(t, n) {
|
13705
13725
|
this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit("removed", t, n);
|
@@ -13759,8 +13779,8 @@ class Ht extends cn {
|
|
13759
13779
|
let i = n.ns || this.options.defaultNS || [];
|
13760
13780
|
const s = r && t.indexOf(r) > -1, a = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !Pu(t, r, o);
|
13761
13781
|
if (s && !a) {
|
13762
|
-
const
|
13763
|
-
if (
|
13782
|
+
const d = t.match(this.interpolator.nestingRegexp);
|
13783
|
+
if (d && d.length > 0)
|
13764
13784
|
return {
|
13765
13785
|
key: t,
|
13766
13786
|
namespaces: i
|
@@ -13781,31 +13801,31 @@ class Ht extends cn {
|
|
13781
13801
|
const o = n.returnDetails !== void 0 ? n.returnDetails : this.options.returnDetails, i = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, {
|
13782
13802
|
key: s,
|
13783
13803
|
namespaces: a
|
13784
|
-
} = this.extractFromKey(t[t.length - 1], n),
|
13804
|
+
} = this.extractFromKey(t[t.length - 1], n), d = a[a.length - 1], c = n.lng || this.language, l = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
13785
13805
|
if (c && c.toLowerCase() === "cimode") {
|
13786
13806
|
if (l) {
|
13787
13807
|
const N = n.nsSeparator || this.options.nsSeparator;
|
13788
13808
|
return o ? {
|
13789
|
-
res: `${
|
13809
|
+
res: `${d}${N}${s}`,
|
13790
13810
|
usedKey: s,
|
13791
13811
|
exactUsedKey: s,
|
13792
13812
|
usedLng: c,
|
13793
|
-
usedNS:
|
13813
|
+
usedNS: d,
|
13794
13814
|
usedParams: this.getUsedParamsDetails(n)
|
13795
|
-
} : `${
|
13815
|
+
} : `${d}${N}${s}`;
|
13796
13816
|
}
|
13797
13817
|
return o ? {
|
13798
13818
|
res: s,
|
13799
13819
|
usedKey: s,
|
13800
13820
|
exactUsedKey: s,
|
13801
13821
|
usedLng: c,
|
13802
|
-
usedNS:
|
13822
|
+
usedNS: d,
|
13803
13823
|
usedParams: this.getUsedParamsDetails(n)
|
13804
13824
|
} : s;
|
13805
13825
|
}
|
13806
|
-
const
|
13807
|
-
let m =
|
13808
|
-
const p =
|
13826
|
+
const u = this.resolve(t, n);
|
13827
|
+
let m = u && u.res;
|
13828
|
+
const p = u && u.usedKey || s, g = u && u.exactUsedKey || s, f = Object.prototype.toString.apply(m), v = ["[object Number]", "[object Function]", "[object RegExp]"], R = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, b = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
13809
13829
|
if (b && m && (typeof m != "string" && typeof m != "boolean" && typeof m != "number") && v.indexOf(f) < 0 && !(typeof R == "string" && Array.isArray(m))) {
|
13810
13830
|
if (!n.returnObjects && !this.options.returnObjects) {
|
13811
13831
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
@@ -13813,7 +13833,7 @@ class Ht extends cn {
|
|
13813
13833
|
...n,
|
13814
13834
|
ns: a
|
13815
13835
|
}) : `key '${s} (${this.language})' returned an object instead of string.`;
|
13816
|
-
return o ? (
|
13836
|
+
return o ? (u.res = N, u.usedParams = this.getUsedParamsDetails(n), u) : N;
|
13817
13837
|
}
|
13818
13838
|
if (i) {
|
13819
13839
|
const N = Array.isArray(m), E = N ? [] : {}, S = N ? g : p;
|
@@ -13838,7 +13858,7 @@ class Ht extends cn {
|
|
13838
13858
|
!this.isValidLookup(m) && O && (N = !0, m = pe), this.isValidLookup(m) || (E = !0, m = s);
|
13839
13859
|
const de = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 : m, ge = O && pe !== m && this.options.updateMissing;
|
13840
13860
|
if (E || N || ge) {
|
13841
|
-
if (this.logger.log(ge ? "updateKey" : "missingKey", c,
|
13861
|
+
if (this.logger.log(ge ? "updateKey" : "missingKey", c, d, s, ge ? pe : m), i) {
|
13842
13862
|
const te = this.resolve(s, {
|
13843
13863
|
...n,
|
13844
13864
|
keySeparator: !1
|
@@ -13853,7 +13873,7 @@ class Ht extends cn {
|
|
13853
13873
|
else this.options.saveMissingTo === "all" ? D = this.languageUtils.toResolveHierarchy(n.lng || this.language) : D.push(n.lng || this.language);
|
13854
13874
|
const me = (te, Le, $e) => {
|
13855
13875
|
const Nr = O && $e !== m ? $e : de;
|
13856
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(te,
|
13876
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(te, d, Le, Nr, ge, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(te, d, Le, Nr, ge, n), this.emit("missingKey", te, d, Le, m);
|
13857
13877
|
};
|
13858
13878
|
this.options.saveMissing && (this.options.saveMissingPlurals && S ? D.forEach((te) => {
|
13859
13879
|
const Le = this.pluralResolver.getSuffixes(te, n);
|
@@ -13862,9 +13882,9 @@ class Ht extends cn {
|
|
13862
13882
|
});
|
13863
13883
|
}) : me(D, s, pe));
|
13864
13884
|
}
|
13865
|
-
m = this.extendTranslation(m, t, n,
|
13885
|
+
m = this.extendTranslation(m, t, n, u, r), E && m === s && this.options.appendNamespaceToMissingKey && (m = `${d}:${s}`), (E || N) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${d}:${s}` : s, N ? m : void 0) : m = this.options.parseMissingKeyHandler(m));
|
13866
13886
|
}
|
13867
|
-
return o ? (
|
13887
|
+
return o ? (u.res = m, u.usedParams = this.getUsedParamsDetails(n), u) : m;
|
13868
13888
|
}
|
13869
13889
|
extendTranslation(t, n, r, o, i) {
|
13870
13890
|
var s = this;
|
@@ -13889,11 +13909,11 @@ class Ht extends cn {
|
|
13889
13909
|
const m = t.match(this.interpolator.nestingRegexp);
|
13890
13910
|
l = m && m.length;
|
13891
13911
|
}
|
13892
|
-
let
|
13893
|
-
if (this.options.interpolation.defaultVariables && (
|
13912
|
+
let u = r.replace && typeof r.replace != "string" ? r.replace : r;
|
13913
|
+
if (this.options.interpolation.defaultVariables && (u = {
|
13894
13914
|
...this.options.interpolation.defaultVariables,
|
13895
|
-
...
|
13896
|
-
}), t = this.interpolator.interpolate(t,
|
13915
|
+
...u
|
13916
|
+
}), t = this.interpolator.interpolate(t, u, r.lng || this.language || o.usedLng, r), c) {
|
13897
13917
|
const m = t.match(this.interpolator.nestingRegexp), p = m && m.length;
|
13898
13918
|
l < p && (r.nest = !1);
|
13899
13919
|
}
|
@@ -13903,8 +13923,8 @@ class Ht extends cn {
|
|
13903
13923
|
return i && i[0] === p[0] && !r.context ? (s.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`), null) : s.translate(...p, n);
|
13904
13924
|
}, r)), r.interpolation && this.interpolator.reset();
|
13905
13925
|
}
|
13906
|
-
const a = r.postProcess || this.options.postProcess,
|
13907
|
-
return t != null &&
|
13926
|
+
const a = r.postProcess || this.options.postProcess, d = typeof a == "string" ? [a] : a;
|
13927
|
+
return t != null && d && d.length && r.applyPostProcessor !== !1 && (t = Zs.handle(d, t, n, this.options && this.options.postProcessPassResolved ? {
|
13908
13928
|
i18nResolved: {
|
13909
13929
|
...o,
|
13910
13930
|
usedParams: this.getUsedParamsDetails(r)
|
@@ -13914,14 +13934,14 @@ class Ht extends cn {
|
|
13914
13934
|
}
|
13915
13935
|
resolve(t) {
|
13916
13936
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r, o, i, s, a;
|
13917
|
-
return typeof t == "string" && (t = [t]), t.forEach((
|
13937
|
+
return typeof t == "string" && (t = [t]), t.forEach((d) => {
|
13918
13938
|
if (this.isValidLookup(r)) return;
|
13919
|
-
const c = this.extractFromKey(
|
13939
|
+
const c = this.extractFromKey(d, n), l = c.key;
|
13920
13940
|
o = l;
|
13921
|
-
let
|
13922
|
-
this.options.fallbackNS && (
|
13941
|
+
let u = c.namespaces;
|
13942
|
+
this.options.fallbackNS && (u = u.concat(this.options.fallbackNS));
|
13923
13943
|
const m = n.count !== void 0 && typeof n.count != "string", p = m && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), g = n.context !== void 0 && (typeof n.context == "string" || typeof n.context == "number") && n.context !== "", f = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
13924
|
-
|
13944
|
+
u.forEach((v) => {
|
13925
13945
|
this.isValidLookup(r) || (a = v, !Bo[`${f[0]}-${v}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(a) && (Bo[`${f[0]}-${v}`] = !0, this.logger.warn(`key "${o}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), f.forEach((R) => {
|
13926
13946
|
if (this.isValidLookup(r)) return;
|
13927
13947
|
s = R;
|
@@ -14256,10 +14276,10 @@ class Wu {
|
|
14256
14276
|
prefix: i,
|
14257
14277
|
prefixEscaped: s,
|
14258
14278
|
suffix: a,
|
14259
|
-
suffixEscaped:
|
14279
|
+
suffixEscaped: d,
|
14260
14280
|
formatSeparator: c,
|
14261
14281
|
unescapeSuffix: l,
|
14262
|
-
unescapePrefix:
|
14282
|
+
unescapePrefix: u,
|
14263
14283
|
nestingPrefix: m,
|
14264
14284
|
nestingPrefixEscaped: p,
|
14265
14285
|
nestingSuffix: g,
|
@@ -14268,7 +14288,7 @@ class Wu {
|
|
14268
14288
|
maxReplaces: R,
|
14269
14289
|
alwaysFormat: b
|
14270
14290
|
} = t.interpolation;
|
14271
|
-
this.escape = n !== void 0 ? n : _u, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = i ? Pe(i) : s || "{{", this.suffix = a ? Pe(a) :
|
14291
|
+
this.escape = n !== void 0 ? n : _u, this.escapeValue = r !== void 0 ? r : !0, this.useRawValueToEscape = o !== void 0 ? o : !1, this.prefix = i ? Pe(i) : s || "{{", this.suffix = a ? Pe(a) : d || "}}", this.formatSeparator = c || ",", this.unescapePrefix = l ? "" : u || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = m ? Pe(m) : p || Pe("$t("), this.nestingSuffix = g ? Pe(g) : f || Pe(")"), this.nestingOptionsSeparator = v || ",", this.maxReplaces = R || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
|
14272
14292
|
}
|
14273
14293
|
reset() {
|
14274
14294
|
this.options && this.init(this.options);
|
@@ -14279,9 +14299,9 @@ class Wu {
|
|
14279
14299
|
}
|
14280
14300
|
interpolate(t, n, r, o) {
|
14281
14301
|
let i, s, a;
|
14282
|
-
const
|
14302
|
+
const d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c = (p) => {
|
14283
14303
|
if (p.indexOf(this.formatSeparator) < 0) {
|
14284
|
-
const R = Io(n,
|
14304
|
+
const R = Io(n, d, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
14285
14305
|
return this.alwaysFormat ? this.format(R, void 0, r, {
|
14286
14306
|
...o,
|
14287
14307
|
...n,
|
@@ -14289,14 +14309,14 @@ class Wu {
|
|
14289
14309
|
}) : R;
|
14290
14310
|
}
|
14291
14311
|
const g = p.split(this.formatSeparator), f = g.shift().trim(), v = g.join(this.formatSeparator).trim();
|
14292
|
-
return this.format(Io(n,
|
14312
|
+
return this.format(Io(n, d, f, this.options.keySeparator, this.options.ignoreJSONStructure), v, r, {
|
14293
14313
|
...o,
|
14294
14314
|
...n,
|
14295
14315
|
interpolationkey: f
|
14296
14316
|
});
|
14297
14317
|
};
|
14298
14318
|
this.resetRegExp();
|
14299
|
-
const l = o && o.missingInterpolationHandler || this.options.missingInterpolationHandler,
|
14319
|
+
const l = o && o.missingInterpolationHandler || this.options.missingInterpolationHandler, u = o && o.interpolation && o.interpolation.skipOnVariables !== void 0 ? o.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
14300
14320
|
return [{
|
14301
14321
|
regex: this.regexpUnescape,
|
14302
14322
|
safeValue: (p) => xn(p)
|
@@ -14312,26 +14332,26 @@ class Wu {
|
|
14312
14332
|
s = typeof v == "string" ? v : "";
|
14313
14333
|
} else if (o && Object.prototype.hasOwnProperty.call(o, g))
|
14314
14334
|
s = "";
|
14315
|
-
else if (
|
14335
|
+
else if (u) {
|
14316
14336
|
s = i[0];
|
14317
14337
|
continue;
|
14318
14338
|
} else
|
14319
14339
|
this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`), s = "";
|
14320
14340
|
else typeof s != "string" && !this.useRawValueToEscape && (s = Ao(s));
|
14321
14341
|
const f = p.safeValue(s);
|
14322
|
-
if (t = t.replace(i[0], f),
|
14342
|
+
if (t = t.replace(i[0], f), u ? (p.regex.lastIndex += s.length, p.regex.lastIndex -= i[0].length) : p.regex.lastIndex = 0, a++, a >= this.maxReplaces)
|
14323
14343
|
break;
|
14324
14344
|
}
|
14325
14345
|
}), t;
|
14326
14346
|
}
|
14327
14347
|
nest(t, n) {
|
14328
14348
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o, i, s;
|
14329
|
-
const a = (
|
14349
|
+
const a = (d, c) => {
|
14330
14350
|
const l = this.nestingOptionsSeparator;
|
14331
|
-
if (
|
14332
|
-
const
|
14333
|
-
let m = `{${
|
14334
|
-
|
14351
|
+
if (d.indexOf(l) < 0) return d;
|
14352
|
+
const u = d.split(new RegExp(`${l}[ ]*{`));
|
14353
|
+
let m = `{${u[1]}`;
|
14354
|
+
d = u[0], m = this.interpolate(m, s);
|
14335
14355
|
const p = m.match(/'/g), g = m.match(/"/g);
|
14336
14356
|
(p && p.length % 2 === 0 && !g || g.length % 2 !== 0) && (m = m.replace(/'/g, '"'));
|
14337
14357
|
try {
|
@@ -14340,22 +14360,22 @@ class Wu {
|
|
14340
14360
|
...s
|
14341
14361
|
});
|
14342
14362
|
} catch (f) {
|
14343
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${
|
14363
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${d}`, f), `${d}${l}${m}`;
|
14344
14364
|
}
|
14345
|
-
return s.defaultValue && s.defaultValue.indexOf(this.prefix) > -1 && delete s.defaultValue,
|
14365
|
+
return s.defaultValue && s.defaultValue.indexOf(this.prefix) > -1 && delete s.defaultValue, d;
|
14346
14366
|
};
|
14347
14367
|
for (; o = this.nestingRegexp.exec(t); ) {
|
14348
|
-
let
|
14368
|
+
let d = [];
|
14349
14369
|
s = {
|
14350
14370
|
...r
|
14351
14371
|
}, s = s.replace && typeof s.replace != "string" ? s.replace : s, s.applyPostProcessor = !1, delete s.defaultValue;
|
14352
14372
|
let c = !1;
|
14353
14373
|
if (o[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(o[1])) {
|
14354
|
-
const l = o[1].split(this.formatSeparator).map((
|
14355
|
-
o[1] = l.shift(),
|
14374
|
+
const l = o[1].split(this.formatSeparator).map((u) => u.trim());
|
14375
|
+
o[1] = l.shift(), d = l, c = !0;
|
14356
14376
|
}
|
14357
14377
|
if (i = n(a.call(this, o[1].trim(), s), s), i && o[0] === t && typeof i != "string") return i;
|
14358
|
-
typeof i != "string" && (i = Ao(i)), i || (this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`), i = ""), c && (i =
|
14378
|
+
typeof i != "string" && (i = Ao(i)), i || (this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`), i = ""), c && (i = d.reduce((l, u) => this.format(l, u, r.lng, {
|
14359
14379
|
...r,
|
14360
14380
|
interpolationkey: o[1].trim()
|
14361
14381
|
}), i.trim())), t = t.replace(o[0], i), this.regexp.lastIndex = 0;
|
@@ -14372,7 +14392,7 @@ const Ku = (e) => {
|
|
14372
14392
|
const o = r[1].substring(0, r[1].length - 1);
|
14373
14393
|
t === "currency" && o.indexOf(":") < 0 ? n.currency || (n.currency = o.trim()) : t === "relativetime" && o.indexOf(":") < 0 ? n.range || (n.range = o.trim()) : o.split(";").forEach((s) => {
|
14374
14394
|
if (s) {
|
14375
|
-
const [a, ...
|
14395
|
+
const [a, ...d] = s.split(":"), c = d.join(":").trim().replace(/^'+|'+$/g, ""), l = a.trim();
|
14376
14396
|
n[l] || (n[l] = c), c === "false" && (n[l] = !1), c === "true" && (n[l] = !0), isNaN(c) || (n[l] = parseInt(c, 10));
|
14377
14397
|
}
|
14378
14398
|
});
|
@@ -14447,19 +14467,19 @@ class Gu {
|
|
14447
14467
|
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
14448
14468
|
const i = n.split(this.formatSeparator);
|
14449
14469
|
if (i.length > 1 && i[0].indexOf("(") > 1 && i[0].indexOf(")") < 0 && i.find((a) => a.indexOf(")") > -1)) {
|
14450
|
-
const a = i.findIndex((
|
14470
|
+
const a = i.findIndex((d) => d.indexOf(")") > -1);
|
14451
14471
|
i[0] = [i[0], ...i.splice(1, a)].join(this.formatSeparator);
|
14452
14472
|
}
|
14453
|
-
return i.reduce((a,
|
14473
|
+
return i.reduce((a, d) => {
|
14454
14474
|
const {
|
14455
14475
|
formatName: c,
|
14456
14476
|
formatOptions: l
|
14457
|
-
} = Ku(
|
14477
|
+
} = Ku(d);
|
14458
14478
|
if (this.formats[c]) {
|
14459
|
-
let
|
14479
|
+
let u = a;
|
14460
14480
|
try {
|
14461
14481
|
const m = o && o.formatParams && o.formatParams[o.interpolationkey] || {}, p = m.locale || m.lng || o.locale || o.lng || r;
|
14462
|
-
|
14482
|
+
u = this.formats[c](a, p, {
|
14463
14483
|
...l,
|
14464
14484
|
...o,
|
14465
14485
|
...m
|
@@ -14467,7 +14487,7 @@ class Gu {
|
|
14467
14487
|
} catch (m) {
|
14468
14488
|
this.logger.warn(m);
|
14469
14489
|
}
|
14470
|
-
return
|
14490
|
+
return u;
|
14471
14491
|
} else
|
14472
14492
|
this.logger.warn(`there was no format function for ${c}`);
|
14473
14493
|
return a;
|
@@ -14483,12 +14503,12 @@ class qu extends cn {
|
|
14483
14503
|
super(), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = o, this.logger = fe.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = o.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = o.maxRetries >= 0 ? o.maxRetries : 5, this.retryTimeout = o.retryTimeout >= 1 ? o.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(r, o.backend, o);
|
14484
14504
|
}
|
14485
14505
|
queueLoad(t, n, r, o) {
|
14486
|
-
const i = {}, s = {}, a = {},
|
14506
|
+
const i = {}, s = {}, a = {}, d = {};
|
14487
14507
|
return t.forEach((c) => {
|
14488
14508
|
let l = !0;
|
14489
|
-
n.forEach((
|
14490
|
-
const m = `${c}|${
|
14491
|
-
!r.reload && this.store.hasResourceBundle(c,
|
14509
|
+
n.forEach((u) => {
|
14510
|
+
const m = `${c}|${u}`;
|
14511
|
+
!r.reload && this.store.hasResourceBundle(c, u) ? this.state[m] = 2 : this.state[m] < 0 || (this.state[m] === 1 ? s[m] === void 0 && (s[m] = !0) : (this.state[m] = 1, l = !1, s[m] === void 0 && (s[m] = !0), i[m] === void 0 && (i[m] = !0), d[u] === void 0 && (d[u] = !0)));
|
14492
14512
|
}), l || (a[c] = !0);
|
14493
14513
|
}), (Object.keys(i).length || Object.keys(s).length) && this.queue.push({
|
14494
14514
|
pending: s,
|
@@ -14500,7 +14520,7 @@ class qu extends cn {
|
|
14500
14520
|
toLoad: Object.keys(i),
|
14501
14521
|
pending: Object.keys(s),
|
14502
14522
|
toLoadLanguages: Object.keys(a),
|
14503
|
-
toLoadNamespaces: Object.keys(
|
14523
|
+
toLoadNamespaces: Object.keys(d)
|
14504
14524
|
};
|
14505
14525
|
}
|
14506
14526
|
loaded(t, n, r) {
|
@@ -14509,15 +14529,15 @@ class qu extends cn {
|
|
14509
14529
|
skipCopy: !0
|
14510
14530
|
}), this.state[t] = n ? -1 : 2, n && r && (this.state[t] = 0);
|
14511
14531
|
const a = {};
|
14512
|
-
this.queue.forEach((
|
14513
|
-
Su(
|
14532
|
+
this.queue.forEach((d) => {
|
14533
|
+
Su(d.loaded, [i], s), Zu(d, t), n && d.errors.push(n), d.pendingCount === 0 && !d.done && (Object.keys(d.loaded).forEach((c) => {
|
14514
14534
|
a[c] || (a[c] = {});
|
14515
|
-
const l =
|
14516
|
-
l.length && l.forEach((
|
14517
|
-
a[c][
|
14535
|
+
const l = d.loaded[c];
|
14536
|
+
l.length && l.forEach((u) => {
|
14537
|
+
a[c][u] === void 0 && (a[c][u] = !0);
|
14518
14538
|
});
|
14519
|
-
}),
|
14520
|
-
}), this.emit("loaded", a), this.queue = this.queue.filter((
|
14539
|
+
}), d.done = !0, d.errors.length ? d.callback(d.errors) : d.callback());
|
14540
|
+
}), this.emit("loaded", a), this.queue = this.queue.filter((d) => !d.done);
|
14521
14541
|
}
|
14522
14542
|
read(t, n, r) {
|
14523
14543
|
let o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0, i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : this.retryTimeout, s = arguments.length > 5 ? arguments[5] : void 0;
|
@@ -14536,8 +14556,8 @@ class qu extends cn {
|
|
14536
14556
|
this.readingCalls++;
|
14537
14557
|
const a = (c, l) => {
|
14538
14558
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
14539
|
-
const
|
14540
|
-
this.read(
|
14559
|
+
const u = this.waitingReads.shift();
|
14560
|
+
this.read(u.lng, u.ns, u.fcName, u.tried, u.wait, u.callback);
|
14541
14561
|
}
|
14542
14562
|
if (c && l && o < this.maxRetries) {
|
14543
14563
|
setTimeout(() => {
|
@@ -14546,17 +14566,17 @@ class qu extends cn {
|
|
14546
14566
|
return;
|
14547
14567
|
}
|
14548
14568
|
s(c, l);
|
14549
|
-
},
|
14550
|
-
if (
|
14569
|
+
}, d = this.backend[r].bind(this.backend);
|
14570
|
+
if (d.length === 2) {
|
14551
14571
|
try {
|
14552
|
-
const c =
|
14572
|
+
const c = d(t, n);
|
14553
14573
|
c && typeof c.then == "function" ? c.then((l) => a(null, l)).catch(a) : a(null, c);
|
14554
14574
|
} catch (c) {
|
14555
14575
|
a(c);
|
14556
14576
|
}
|
14557
14577
|
return;
|
14558
14578
|
}
|
14559
|
-
return
|
14579
|
+
return d(t, n, a);
|
14560
14580
|
}
|
14561
14581
|
prepareLoading(t, n) {
|
14562
14582
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = arguments.length > 3 ? arguments[3] : void 0;
|
@@ -14594,19 +14614,19 @@ class qu extends cn {
|
|
14594
14614
|
}
|
14595
14615
|
if (!(r == null || r === "")) {
|
14596
14616
|
if (this.backend && this.backend.create) {
|
14597
|
-
const
|
14617
|
+
const d = {
|
14598
14618
|
...s,
|
14599
14619
|
isUpdate: i
|
14600
14620
|
}, c = this.backend.create.bind(this.backend);
|
14601
14621
|
if (c.length < 6)
|
14602
14622
|
try {
|
14603
14623
|
let l;
|
14604
|
-
c.length === 5 ? l = c(t, n, r, o,
|
14624
|
+
c.length === 5 ? l = c(t, n, r, o, d) : l = c(t, n, r, o), l && typeof l.then == "function" ? l.then((u) => a(null, u)).catch(a) : a(null, l);
|
14605
14625
|
} catch (l) {
|
14606
14626
|
a(l);
|
14607
14627
|
}
|
14608
14628
|
else
|
14609
|
-
c(t, n, r, o, a,
|
14629
|
+
c(t, n, r, o, a, d);
|
14610
14630
|
}
|
14611
14631
|
!t || !t[0] || this.store.addResource(t[0], n, r, o);
|
14612
14632
|
}
|
@@ -14705,10 +14725,10 @@ class it extends cn {
|
|
14705
14725
|
this.modules.logger ? fe.init(i(this.modules.logger), this.options) : fe.init(null, this.options);
|
14706
14726
|
let l;
|
14707
14727
|
this.modules.formatter ? l = this.modules.formatter : typeof Intl < "u" && (l = Gu);
|
14708
|
-
const
|
14728
|
+
const u = new Po(this.options);
|
14709
14729
|
this.store = new jo(this.options.resources, this.options);
|
14710
14730
|
const m = this.services;
|
14711
|
-
m.logger = fe, m.resourceStore = this.store, m.languageUtils =
|
14731
|
+
m.logger = fe, m.resourceStore = this.store, m.languageUtils = u, m.pluralResolver = new Vu(u, {
|
14712
14732
|
prepend: this.options.pluralSeparator,
|
14713
14733
|
compatibilityJSON: this.options.compatibilityJSON,
|
14714
14734
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
@@ -14739,14 +14759,14 @@ class it extends cn {
|
|
14739
14759
|
return t.store[l](...arguments), t;
|
14740
14760
|
};
|
14741
14761
|
});
|
14742
|
-
const
|
14743
|
-
const l = (
|
14744
|
-
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options),
|
14762
|
+
const d = Qe(), c = () => {
|
14763
|
+
const l = (u, m) => {
|
14764
|
+
this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), d.resolve(m), r(u, m);
|
14745
14765
|
};
|
14746
14766
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized) return l(null, this.t.bind(this));
|
14747
14767
|
this.changeLanguage(this.options.lng, l);
|
14748
14768
|
};
|
14749
|
-
return this.options.resources || !this.options.initImmediate ? c() : setTimeout(c, 0),
|
14769
|
+
return this.options.resources || !this.options.initImmediate ? c() : setTimeout(c, 0), d;
|
14750
14770
|
}
|
14751
14771
|
loadResources(t) {
|
14752
14772
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ct;
|
@@ -14759,7 +14779,7 @@ class it extends cn {
|
|
14759
14779
|
c !== "cimode" && i.indexOf(c) < 0 && i.push(c);
|
14760
14780
|
});
|
14761
14781
|
};
|
14762
|
-
o ? s(o) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((
|
14782
|
+
o ? s(o) : this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((d) => s(d)), this.options.preload && this.options.preload.forEach((a) => s(a)), this.services.backendConnector.load(i, this.options.ns, (a) => {
|
14763
14783
|
!a && !this.resolvedLanguage && this.language && this.setResolvedLanguage(this.language), r(a);
|
14764
14784
|
});
|
14765
14785
|
} else
|
@@ -14791,17 +14811,17 @@ class it extends cn {
|
|
14791
14811
|
this.isLanguageChangingTo = t;
|
14792
14812
|
const o = Qe();
|
14793
14813
|
this.emit("languageChanging", t);
|
14794
|
-
const i = (
|
14795
|
-
this.language =
|
14796
|
-
}, s = (
|
14814
|
+
const i = (d) => {
|
14815
|
+
this.language = d, this.languages = this.services.languageUtils.toResolveHierarchy(d), this.resolvedLanguage = void 0, this.setResolvedLanguage(d);
|
14816
|
+
}, s = (d, c) => {
|
14797
14817
|
c ? (i(c), this.translator.changeLanguage(c), this.isLanguageChangingTo = void 0, this.emit("languageChanged", c), this.logger.log("languageChanged", c)) : this.isLanguageChangingTo = void 0, o.resolve(function() {
|
14798
14818
|
return r.t(...arguments);
|
14799
|
-
}), n && n(
|
14819
|
+
}), n && n(d, function() {
|
14800
14820
|
return r.t(...arguments);
|
14801
14821
|
});
|
14802
|
-
}, a = (
|
14803
|
-
!t && !
|
14804
|
-
const c = typeof
|
14822
|
+
}, a = (d) => {
|
14823
|
+
!t && !d && this.services.languageDetector && (d = []);
|
14824
|
+
const c = typeof d == "string" ? d : this.services.languageUtils.getBestMatchFromCodes(d);
|
14805
14825
|
c && (this.language || i(c), this.translator.language || this.translator.changeLanguage(c), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(c)), this.loadResources(c, (l) => {
|
14806
14826
|
s(l, c);
|
14807
14827
|
});
|
@@ -14811,19 +14831,19 @@ class it extends cn {
|
|
14811
14831
|
getFixedT(t, n, r) {
|
14812
14832
|
var o = this;
|
14813
14833
|
const i = function(s, a) {
|
14814
|
-
let
|
14834
|
+
let d;
|
14815
14835
|
if (typeof a != "object") {
|
14816
|
-
for (var c = arguments.length, l = new Array(c > 2 ? c - 2 : 0),
|
14817
|
-
l[
|
14818
|
-
|
14836
|
+
for (var c = arguments.length, l = new Array(c > 2 ? c - 2 : 0), u = 2; u < c; u++)
|
14837
|
+
l[u - 2] = arguments[u];
|
14838
|
+
d = o.options.overloadTranslationOptionHandler([s, a].concat(l));
|
14819
14839
|
} else
|
14820
|
-
|
14840
|
+
d = {
|
14821
14841
|
...a
|
14822
14842
|
};
|
14823
|
-
|
14843
|
+
d.lng = d.lng || i.lng, d.lngs = d.lngs || i.lngs, d.ns = d.ns || i.ns, d.keyPrefix !== "" && (d.keyPrefix = d.keyPrefix || r || i.keyPrefix);
|
14824
14844
|
const m = o.options.keySeparator || ".";
|
14825
14845
|
let p;
|
14826
|
-
return
|
14846
|
+
return d.keyPrefix && Array.isArray(s) ? p = s.map((g) => `${d.keyPrefix}${m}${g}`) : p = d.keyPrefix ? `${d.keyPrefix}${m}${s}` : s, o.t(p, d);
|
14827
14847
|
};
|
14828
14848
|
return typeof t == "string" ? i.lng = t : i.lngs = t, i.ns = n, i.keyPrefix = r, i;
|
14829
14849
|
}
|
@@ -14844,8 +14864,8 @@ class it extends cn {
|
|
14844
14864
|
return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty", this.languages), !1;
|
14845
14865
|
const r = n.lng || this.resolvedLanguage || this.languages[0], o = this.options ? this.options.fallbackLng : !1, i = this.languages[this.languages.length - 1];
|
14846
14866
|
if (r.toLowerCase() === "cimode") return !0;
|
14847
|
-
const s = (a,
|
14848
|
-
const c = this.services.backendConnector.state[`${a}|${
|
14867
|
+
const s = (a, d) => {
|
14868
|
+
const c = this.services.backendConnector.state[`${a}|${d}`];
|
14849
14869
|
return c === -1 || c === 0 || c === 2;
|
14850
14870
|
};
|
14851
14871
|
if (n.precheck) {
|
@@ -14895,7 +14915,7 @@ class it extends cn {
|
|
14895
14915
|
}, i.services.utils = {
|
14896
14916
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
14897
14917
|
}, r && (i.store = new jo(this.store.data, o), i.services.resourceStore = i.store), i.translator = new Ht(i.services, o), i.translator.on("*", function(a) {
|
14898
|
-
for (var
|
14918
|
+
for (var d = arguments.length, c = new Array(d > 1 ? d - 1 : 0), l = 1; l < d; l++)
|
14899
14919
|
c[l - 1] = arguments[l];
|
14900
14920
|
i.emit(a, ...c);
|
14901
14921
|
}), i.init(o, n), i.translator.options = o, i.translator.backendConnector.services.utils = {
|
@@ -14962,8 +14982,8 @@ const qs = (e, t) => () => {
|
|
14962
14982
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
14963
14983
|
const r = t.languages[0], o = t.options ? t.options.fallbackLng : !1, i = t.languages[t.languages.length - 1];
|
14964
14984
|
if (r.toLowerCase() === "cimode") return !0;
|
14965
|
-
const s = (a,
|
14966
|
-
const c = t.services.backendConnector.state[`${a}|${
|
14985
|
+
const s = (a, d) => {
|
14986
|
+
const c = t.services.backendConnector.state[`${a}|${d}`];
|
14967
14987
|
return c === -1 || c === 2;
|
14968
14988
|
};
|
14969
14989
|
return n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !s(t.isLanguageChangingTo, e) ? !1 : !!(t.hasResourceBundle(r, e) || !t.services.backendConnector.backend || t.options.resources && !t.options.partialBundledLanguages || s(r, e) && (!o || s(i, e)));
|
@@ -15059,11 +15079,11 @@ const h6 = (e, t) => {
|
|
15059
15079
|
...t
|
15060
15080
|
}, {
|
15061
15081
|
useSuspense: a,
|
15062
|
-
keyPrefix:
|
15082
|
+
keyPrefix: d
|
15063
15083
|
} = s;
|
15064
15084
|
let c = e;
|
15065
15085
|
c = Ae(c) ? [c] : c || ["translation"], i.reportNamespaces.addUsedNamespaces && i.reportNamespaces.addUsedNamespaces(c);
|
15066
|
-
const l = (i.isInitialized || i.initializedStoreOnce) && c.every((N) => Ju(N, i, s)),
|
15086
|
+
const l = (i.isInitialized || i.initializedStoreOnce) && c.every((N) => Ju(N, i, s)), u = u6(i, t.lng || null, s.nsMode === "fallback" ? c : c[0], d), m = () => u, p = () => zs(i, t.lng || null, s.nsMode === "fallback" ? c : c[0], d), [g, f] = K(m);
|
15067
15087
|
let v = c.join();
|
15068
15088
|
t.lng && (v = `${t.lng}${v}`);
|
15069
15089
|
const R = h6(v), b = at(!0);
|
@@ -15085,7 +15105,7 @@ const h6 = (e, t) => {
|
|
15085
15105
|
};
|
15086
15106
|
}, [i, v]), se(() => {
|
15087
15107
|
b.current && l && f(m);
|
15088
|
-
}, [i,
|
15108
|
+
}, [i, d, l]);
|
15089
15109
|
const x = [g, i, l];
|
15090
15110
|
if (x.t = g, x.i18n = i, x.ready = l, l || !l && !a) return x;
|
15091
15111
|
throw new Promise((N) => {
|
@@ -15148,13 +15168,13 @@ const Zo = {
|
|
15148
15168
|
offset: 0
|
15149
15169
|
}, O6 = Ut(
|
15150
15170
|
({ width: e, selectedCountry: t, onChange: n, value: r, id: o }, i) => {
|
15151
|
-
const [s, a] = K([]), [
|
15171
|
+
const [s, a] = K([]), [d, c] = K(Zo), [l, u] = K(null), [m, p] = K([]), [, g] = K(!1), f = at(t), { locale: v, axios: R } = lt(Xs), { t: b } = d6("common", { lng: v }), x = Sn(
|
15152
15172
|
async (O) => {
|
15153
15173
|
g(!0);
|
15154
15174
|
try {
|
15155
15175
|
const A = {
|
15156
|
-
offset:
|
15157
|
-
limit:
|
15176
|
+
offset: d.offset,
|
15177
|
+
limit: d.limit
|
15158
15178
|
};
|
15159
15179
|
t && t.length > 0 && (A.countryId = t), O && (A.search = O);
|
15160
15180
|
const I = await (R == null ? void 0 : R.post("cities/search", A)), ue = (I == null ? void 0 : I.data.data) || [], pe = I == null ? void 0 : I.data.metadata.count, Be = ue.map((de) => {
|
@@ -15166,13 +15186,13 @@ const Zo = {
|
|
15166
15186
|
};
|
15167
15187
|
});
|
15168
15188
|
a(
|
15169
|
-
(de) =>
|
15170
|
-
), p(ue),
|
15189
|
+
(de) => d.offset === 0 ? Be : [...de, ...Be]
|
15190
|
+
), p(ue), u(pe);
|
15171
15191
|
} finally {
|
15172
15192
|
g(!1);
|
15173
15193
|
}
|
15174
15194
|
},
|
15175
|
-
[R,
|
15195
|
+
[R, d, t]
|
15176
15196
|
);
|
15177
15197
|
se(() => {
|
15178
15198
|
c(Zo);
|
@@ -15189,9 +15209,9 @@ const Zo = {
|
|
15189
15209
|
};
|
15190
15210
|
});
|
15191
15211
|
a(
|
15192
|
-
(A) =>
|
15212
|
+
(A) => d.offset === 0 ? O : [...A, ...O]
|
15193
15213
|
), f.current = t, r && n(r);
|
15194
|
-
}, [t, n, r, m,
|
15214
|
+
}, [t, n, r, m, d.offset]);
|
15195
15215
|
const N = L6(x), E = Sn(
|
15196
15216
|
(O) => {
|
15197
15217
|
c((A) => ({ ...A, offset: 0, search: O })), N(O);
|