@ukpc-lib/react 0.12.1-dev.9 → 0.12.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/components/FavoriteMenu/components/MenuItem.d.ts +2 -5
- package/dist/components/FavoriteMenu/data.json.d.ts +2414 -0
- package/dist/components/FavoriteMenu/models/MenuItemDto.d.ts +1 -0
- package/dist/components/GlobalMenu/components/MenuItem.d.ts +1 -2
- package/dist/components/GlobalMenu/data.json.d.ts +1146 -1982
- package/dist/components/index.cjs +22 -18
- package/dist/components/index.js +1792 -2059
- package/dist/components/main.d.ts +0 -1
- package/dist/index.esm2017-09df9812.js +40618 -0
- package/dist/index.esm2017-ef3751d6.cjs +1101 -0
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +6 -8
- package/web-components-bundle/access-denied/index.js +3 -2
- package/web-components-bundle/favorite-menu/index.js +8 -6
- package/web-components-bundle/global-menu/index.js +7 -5
- package/web-components-bundle/global-topbar/index.js +6 -8
- package/web-components-bundle/has-permission/index.js +7 -4
- package/web-components-bundle/index-7afe1760.js +44169 -0
- package/web-components-bundle/{index-T58UE-6b.js → index-c91ec106.js} +393 -378
- package/web-components-bundle/react-to-web-component-d5889290.js +6388 -0
- package/web-components-bundle/react-toastify.esm-d8df41b8.js +339 -0
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +4 -3
- package/dist/components/BaseBreadcrumb/index.d.ts +0 -17
- package/dist/index.esm2017-D13q7k3i.js +0 -41293
- package/dist/index.esm2017-DIs_XI9p.cjs +0 -1078
- package/web-components-bundle/base-breadcrumbs/index.js +0 -5
- package/web-components-bundle/clsx-DB4S2d7J.js +0 -22
- package/web-components-bundle/index-BSe1av43.js +0 -48
- package/web-components-bundle/index-BziS9Had.js +0 -5410
- package/web-components-bundle/index-DSZn86FM.js +0 -39978
- package/web-components-bundle/page-not-found/index.js +0 -6
- package/web-components-bundle/react-to-web-component-CXwKHjZr.js +0 -6388
- package/web-components-bundle/react-toastify.esm-CrTD7cpE.js +0 -320
- package/web-components-bundle/setPrototypeOf-BVKdEITT.js +0 -14
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { r as $, c as ce, g as
|
|
2
|
-
|
|
3
|
-
function Gt(i, e) {
|
|
1
|
+
import { r as $, c as ce, g as Wt, s as Gt, j as E } from "./react-to-web-component-d5889290.js";
|
|
2
|
+
function Qt(i, e) {
|
|
4
3
|
for (var t = 0; t < e.length; t++) {
|
|
5
4
|
const n = e[t];
|
|
6
5
|
if (typeof n != "string" && !Array.isArray(n)) {
|
|
@@ -28,33 +27,43 @@ function B(i, e) {
|
|
|
28
27
|
if (!(i instanceof e))
|
|
29
28
|
throw new TypeError("Cannot call a class as a function");
|
|
30
29
|
}
|
|
31
|
-
function
|
|
30
|
+
function Yt(i, e) {
|
|
32
31
|
if (U(i) != "object" || !i)
|
|
33
32
|
return i;
|
|
34
33
|
var t = i[Symbol.toPrimitive];
|
|
35
34
|
if (t !== void 0) {
|
|
36
|
-
var n = t.call(i, e);
|
|
35
|
+
var n = t.call(i, e || "default");
|
|
37
36
|
if (U(n) != "object")
|
|
38
37
|
return n;
|
|
39
38
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
40
39
|
}
|
|
41
40
|
return (e === "string" ? String : Number)(i);
|
|
42
41
|
}
|
|
43
|
-
function
|
|
44
|
-
var e =
|
|
42
|
+
function Rt(i) {
|
|
43
|
+
var e = Yt(i, "string");
|
|
45
44
|
return U(e) == "symbol" ? e : e + "";
|
|
46
45
|
}
|
|
47
|
-
function
|
|
46
|
+
function qe(i, e) {
|
|
48
47
|
for (var t = 0; t < e.length; t++) {
|
|
49
48
|
var n = e[t];
|
|
50
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i,
|
|
49
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, Rt(n.key), n);
|
|
51
50
|
}
|
|
52
51
|
}
|
|
53
52
|
function H(i, e, t) {
|
|
54
|
-
return e &&
|
|
53
|
+
return e && qe(i.prototype, e), t && qe(i, t), Object.defineProperty(i, "prototype", {
|
|
55
54
|
writable: !1
|
|
56
55
|
}), i;
|
|
57
56
|
}
|
|
57
|
+
function Z(i) {
|
|
58
|
+
if (i === void 0)
|
|
59
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
60
|
+
return i;
|
|
61
|
+
}
|
|
62
|
+
function Ne(i, e) {
|
|
63
|
+
return Ne = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, n) {
|
|
64
|
+
return t.__proto__ = n, t;
|
|
65
|
+
}, Ne(i, e);
|
|
66
|
+
}
|
|
58
67
|
function Se(i, e) {
|
|
59
68
|
if (typeof e != "function" && e !== null)
|
|
60
69
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -66,14 +75,14 @@ function Se(i, e) {
|
|
|
66
75
|
}
|
|
67
76
|
}), Object.defineProperty(i, "prototype", {
|
|
68
77
|
writable: !1
|
|
69
|
-
}), e &&
|
|
78
|
+
}), e && Ne(i, e);
|
|
70
79
|
}
|
|
71
80
|
function de(i, e) {
|
|
72
81
|
if (e && (U(e) == "object" || typeof e == "function"))
|
|
73
82
|
return e;
|
|
74
83
|
if (e !== void 0)
|
|
75
84
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
76
|
-
return
|
|
85
|
+
return Z(i);
|
|
77
86
|
}
|
|
78
87
|
function X(i) {
|
|
79
88
|
return X = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
@@ -81,43 +90,43 @@ function X(i) {
|
|
|
81
90
|
}, X(i);
|
|
82
91
|
}
|
|
83
92
|
function W(i, e, t) {
|
|
84
|
-
return (e =
|
|
93
|
+
return (e = Rt(e)) in i ? Object.defineProperty(i, e, {
|
|
85
94
|
value: t,
|
|
86
95
|
enumerable: !0,
|
|
87
96
|
configurable: !0,
|
|
88
97
|
writable: !0
|
|
89
98
|
}) : i[e] = t, i;
|
|
90
99
|
}
|
|
91
|
-
function
|
|
100
|
+
function Et(i) {
|
|
92
101
|
if (Array.isArray(i))
|
|
93
102
|
return i;
|
|
94
103
|
}
|
|
95
|
-
function
|
|
104
|
+
function Zt(i) {
|
|
96
105
|
if (typeof Symbol < "u" && i[Symbol.iterator] != null || i["@@iterator"] != null)
|
|
97
106
|
return Array.from(i);
|
|
98
107
|
}
|
|
99
|
-
function
|
|
108
|
+
function Ke(i, e) {
|
|
100
109
|
(e == null || e > i.length) && (e = i.length);
|
|
101
110
|
for (var t = 0, n = Array(e); t < e; t++)
|
|
102
111
|
n[t] = i[t];
|
|
103
112
|
return n;
|
|
104
113
|
}
|
|
105
|
-
function
|
|
114
|
+
function _t(i, e) {
|
|
106
115
|
if (i) {
|
|
107
116
|
if (typeof i == "string")
|
|
108
|
-
return
|
|
117
|
+
return Ke(i, e);
|
|
109
118
|
var t = {}.toString.call(i).slice(8, -1);
|
|
110
|
-
return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ?
|
|
119
|
+
return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Ke(i, e) : void 0;
|
|
111
120
|
}
|
|
112
121
|
}
|
|
113
|
-
function
|
|
122
|
+
function Ct() {
|
|
114
123
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
115
124
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
116
125
|
}
|
|
117
|
-
function
|
|
118
|
-
return
|
|
126
|
+
function en(i) {
|
|
127
|
+
return Et(i) || Zt(i) || _t(i) || Ct();
|
|
119
128
|
}
|
|
120
|
-
function
|
|
129
|
+
function ze(i, e) {
|
|
121
130
|
var t = Object.keys(i);
|
|
122
131
|
if (Object.getOwnPropertySymbols) {
|
|
123
132
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -130,15 +139,15 @@ function Ke(i, e) {
|
|
|
130
139
|
function Ve(i) {
|
|
131
140
|
for (var e = 1; e < arguments.length; e++) {
|
|
132
141
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
133
|
-
e % 2 ?
|
|
142
|
+
e % 2 ? ze(Object(t), !0).forEach(function(n) {
|
|
134
143
|
W(i, n, t[n]);
|
|
135
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
144
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : ze(Object(t)).forEach(function(n) {
|
|
136
145
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
137
146
|
});
|
|
138
147
|
}
|
|
139
148
|
return i;
|
|
140
149
|
}
|
|
141
|
-
var
|
|
150
|
+
var tn = {
|
|
142
151
|
type: "logger",
|
|
143
152
|
log: function(e) {
|
|
144
153
|
this.output("log", e);
|
|
@@ -152,7 +161,7 @@ var en = {
|
|
|
152
161
|
output: function(e, t) {
|
|
153
162
|
console && console[e] && console[e].apply(console, t);
|
|
154
163
|
}
|
|
155
|
-
},
|
|
164
|
+
}, nn = function() {
|
|
156
165
|
function i(e) {
|
|
157
166
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
158
167
|
B(this, i), this.init(e, t);
|
|
@@ -161,7 +170,7 @@ var en = {
|
|
|
161
170
|
key: "init",
|
|
162
171
|
value: function(t) {
|
|
163
172
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
164
|
-
this.prefix = n.prefix || "i18next:", this.logger = t ||
|
|
173
|
+
this.prefix = n.prefix || "i18next:", this.logger = t || tn, this.options = n, this.debug = n.debug;
|
|
165
174
|
}
|
|
166
175
|
}, {
|
|
167
176
|
key: "setDebug",
|
|
@@ -214,7 +223,7 @@ var en = {
|
|
|
214
223
|
return t = t || this.options, t.prefix = t.prefix || this.prefix, new i(this.logger, t);
|
|
215
224
|
}
|
|
216
225
|
}]), i;
|
|
217
|
-
}(), J = new
|
|
226
|
+
}(), J = new nn(), ee = function() {
|
|
218
227
|
function i() {
|
|
219
228
|
B(this, i), this.observers = {};
|
|
220
229
|
}
|
|
@@ -265,15 +274,15 @@ function se() {
|
|
|
265
274
|
});
|
|
266
275
|
return t.resolve = i, t.reject = e, t;
|
|
267
276
|
}
|
|
268
|
-
function
|
|
277
|
+
function Je(i) {
|
|
269
278
|
return i == null ? "" : "" + i;
|
|
270
279
|
}
|
|
271
|
-
function
|
|
280
|
+
function rn(i, e, t) {
|
|
272
281
|
i.forEach(function(n) {
|
|
273
282
|
e[n] && (t[n] = e[n]);
|
|
274
283
|
});
|
|
275
284
|
}
|
|
276
|
-
function
|
|
285
|
+
function Ue(i, e, t) {
|
|
277
286
|
function n(s) {
|
|
278
287
|
return s && s.indexOf("###") > -1 ? s.replace(/###/g, ".") : s;
|
|
279
288
|
}
|
|
@@ -291,32 +300,32 @@ function Fe(i, e, t) {
|
|
|
291
300
|
k: n(a.shift())
|
|
292
301
|
};
|
|
293
302
|
}
|
|
294
|
-
function
|
|
295
|
-
var n =
|
|
303
|
+
function Xe(i, e, t) {
|
|
304
|
+
var n = Ue(i, e, Object), r = n.obj, a = n.k;
|
|
296
305
|
r[a] = t;
|
|
297
306
|
}
|
|
298
|
-
function
|
|
299
|
-
var r =
|
|
300
|
-
a[o] = a[o] || [], a[o].push(t);
|
|
307
|
+
function an(i, e, t, n) {
|
|
308
|
+
var r = Ue(i, e, Object), a = r.obj, o = r.k;
|
|
309
|
+
a[o] = a[o] || [], n && (a[o] = a[o].concat(t)), n || a[o].push(t);
|
|
301
310
|
}
|
|
302
311
|
function ye(i, e) {
|
|
303
|
-
var t =
|
|
312
|
+
var t = Ue(i, e), n = t.obj, r = t.k;
|
|
304
313
|
if (n)
|
|
305
314
|
return n[r];
|
|
306
315
|
}
|
|
307
|
-
function
|
|
316
|
+
function on(i, e, t) {
|
|
308
317
|
var n = ye(i, t);
|
|
309
318
|
return n !== void 0 ? n : ye(e, t);
|
|
310
319
|
}
|
|
311
|
-
function
|
|
320
|
+
function Nt(i, e, t) {
|
|
312
321
|
for (var n in e)
|
|
313
|
-
n !== "__proto__" && n !== "constructor" && (n in i ? typeof i[n] == "string" || i[n] instanceof String || typeof e[n] == "string" || e[n] instanceof String ? t && (i[n] = e[n]) :
|
|
322
|
+
n !== "__proto__" && n !== "constructor" && (n in i ? typeof i[n] == "string" || i[n] instanceof String || typeof e[n] == "string" || e[n] instanceof String ? t && (i[n] = e[n]) : Nt(i[n], e[n], t) : i[n] = e[n]);
|
|
314
323
|
return i;
|
|
315
324
|
}
|
|
316
325
|
function re(i) {
|
|
317
326
|
return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
318
327
|
}
|
|
319
|
-
var
|
|
328
|
+
var sn = {
|
|
320
329
|
"&": "&",
|
|
321
330
|
"<": "<",
|
|
322
331
|
">": ">",
|
|
@@ -324,15 +333,15 @@ var on = {
|
|
|
324
333
|
"'": "'",
|
|
325
334
|
"/": "/"
|
|
326
335
|
};
|
|
327
|
-
function
|
|
336
|
+
function un(i) {
|
|
328
337
|
return typeof i == "string" ? i.replace(/[&<>"'\/]/g, function(e) {
|
|
329
|
-
return
|
|
338
|
+
return sn[e];
|
|
330
339
|
}) : i;
|
|
331
340
|
}
|
|
332
|
-
var xe = typeof window < "u" && window.navigator && typeof window.navigator.userAgentData > "u" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1,
|
|
333
|
-
function
|
|
341
|
+
var xe = typeof window < "u" && window.navigator && typeof window.navigator.userAgentData > "u" && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, fn = [" ", ",", "?", "!", ";"];
|
|
342
|
+
function cn(i, e, t) {
|
|
334
343
|
e = e || "", t = t || "";
|
|
335
|
-
var n =
|
|
344
|
+
var n = fn.filter(function(s) {
|
|
336
345
|
return e.indexOf(s) < 0 && t.indexOf(s) < 0;
|
|
337
346
|
});
|
|
338
347
|
if (n.length === 0)
|
|
@@ -375,7 +384,7 @@ function be(i, e) {
|
|
|
375
384
|
return r;
|
|
376
385
|
}
|
|
377
386
|
}
|
|
378
|
-
function
|
|
387
|
+
function We(i, e) {
|
|
379
388
|
var t = Object.keys(i);
|
|
380
389
|
if (Object.getOwnPropertySymbols) {
|
|
381
390
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -388,16 +397,16 @@ function Xe(i, e) {
|
|
|
388
397
|
function ge(i) {
|
|
389
398
|
for (var e = 1; e < arguments.length; e++) {
|
|
390
399
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
391
|
-
e % 2 ?
|
|
400
|
+
e % 2 ? We(Object(t), !0).forEach(function(n) {
|
|
392
401
|
W(i, n, t[n]);
|
|
393
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
402
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : We(Object(t)).forEach(function(n) {
|
|
394
403
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
395
404
|
});
|
|
396
405
|
}
|
|
397
406
|
return i;
|
|
398
407
|
}
|
|
399
|
-
function
|
|
400
|
-
var e =
|
|
408
|
+
function ln(i) {
|
|
409
|
+
var e = dn();
|
|
401
410
|
return function() {
|
|
402
411
|
var n = X(i), r;
|
|
403
412
|
if (e) {
|
|
@@ -408,7 +417,7 @@ function cn(i) {
|
|
|
408
417
|
return de(this, r);
|
|
409
418
|
};
|
|
410
419
|
}
|
|
411
|
-
function
|
|
420
|
+
function dn() {
|
|
412
421
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
413
422
|
return !1;
|
|
414
423
|
if (typeof Proxy == "function")
|
|
@@ -420,15 +429,15 @@ function ln() {
|
|
|
420
429
|
return !1;
|
|
421
430
|
}
|
|
422
431
|
}
|
|
423
|
-
var
|
|
432
|
+
var pn = function(i) {
|
|
424
433
|
Se(t, i);
|
|
425
|
-
var e =
|
|
434
|
+
var e = ln(t);
|
|
426
435
|
function t(n) {
|
|
427
436
|
var r, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
428
437
|
ns: ["translation"],
|
|
429
438
|
defaultNS: "translation"
|
|
430
439
|
};
|
|
431
|
-
return B(this, t), r = e.call(this), xe &&
|
|
440
|
+
return B(this, t), r = e.call(this), xe && ee.call(Z(r)), r.data = n || {}, r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.options.ignoreJSONStructure === void 0 && (r.options.ignoreJSONStructure = !0), r;
|
|
432
441
|
}
|
|
433
442
|
return H(t, [{
|
|
434
443
|
key: "addNamespaces",
|
|
@@ -455,7 +464,7 @@ var dn = function(i) {
|
|
|
455
464
|
var u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
456
465
|
silent: !1
|
|
457
466
|
}, d = u.keySeparator !== void 0 ? u.keySeparator : this.options.keySeparator, c = [r, a];
|
|
458
|
-
o && (c = c.concat(d ? o.split(d) : o)), r.indexOf(".") > -1 && (c = r.split("."), s = a, a = c[1]), this.addNamespaces(a),
|
|
467
|
+
o && (c = c.concat(d ? o.split(d) : o)), r.indexOf(".") > -1 && (c = r.split("."), s = a, a = c[1]), this.addNamespaces(a), Xe(this.data, c, s), u.silent || this.emit("added", r, a, o, s);
|
|
459
468
|
}
|
|
460
469
|
}, {
|
|
461
470
|
key: "addResources",
|
|
@@ -477,7 +486,7 @@ var dn = function(i) {
|
|
|
477
486
|
}, c = [r, a];
|
|
478
487
|
r.indexOf(".") > -1 && (c = r.split("."), s = o, o = a, a = c[1]), this.addNamespaces(a);
|
|
479
488
|
var f = ye(this.data, c) || {};
|
|
480
|
-
s ?
|
|
489
|
+
s ? Nt(f, o, u) : f = ge(ge({}, f), o), Xe(this.data, c, f), d.silent || this.emit("added", r, a, o);
|
|
481
490
|
}
|
|
482
491
|
}, {
|
|
483
492
|
key: "removeResourceBundle",
|
|
@@ -513,7 +522,7 @@ var dn = function(i) {
|
|
|
513
522
|
return this.data;
|
|
514
523
|
}
|
|
515
524
|
}]), t;
|
|
516
|
-
}(
|
|
525
|
+
}(ee), At = {
|
|
517
526
|
processors: {},
|
|
518
527
|
addPostProcessor: function(e) {
|
|
519
528
|
this.processors[e.name] = e;
|
|
@@ -525,7 +534,7 @@ var dn = function(i) {
|
|
|
525
534
|
}), t;
|
|
526
535
|
}
|
|
527
536
|
};
|
|
528
|
-
function
|
|
537
|
+
function Ge(i, e) {
|
|
529
538
|
var t = Object.keys(i);
|
|
530
539
|
if (Object.getOwnPropertySymbols) {
|
|
531
540
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -538,16 +547,16 @@ function We(i, e) {
|
|
|
538
547
|
function T(i) {
|
|
539
548
|
for (var e = 1; e < arguments.length; e++) {
|
|
540
549
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
541
|
-
e % 2 ?
|
|
550
|
+
e % 2 ? Ge(Object(t), !0).forEach(function(n) {
|
|
542
551
|
W(i, n, t[n]);
|
|
543
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
552
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ge(Object(t)).forEach(function(n) {
|
|
544
553
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
545
554
|
});
|
|
546
555
|
}
|
|
547
556
|
return i;
|
|
548
557
|
}
|
|
549
|
-
function
|
|
550
|
-
var e =
|
|
558
|
+
function gn(i) {
|
|
559
|
+
var e = hn();
|
|
551
560
|
return function() {
|
|
552
561
|
var n = X(i), r;
|
|
553
562
|
if (e) {
|
|
@@ -558,7 +567,7 @@ function pn(i) {
|
|
|
558
567
|
return de(this, r);
|
|
559
568
|
};
|
|
560
569
|
}
|
|
561
|
-
function
|
|
570
|
+
function hn() {
|
|
562
571
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
563
572
|
return !1;
|
|
564
573
|
if (typeof Proxy == "function")
|
|
@@ -570,12 +579,12 @@ function gn() {
|
|
|
570
579
|
return !1;
|
|
571
580
|
}
|
|
572
581
|
}
|
|
573
|
-
var
|
|
582
|
+
var Qe = {}, Ye = function(i) {
|
|
574
583
|
Se(t, i);
|
|
575
|
-
var e =
|
|
584
|
+
var e = gn(t);
|
|
576
585
|
function t(n) {
|
|
577
586
|
var r, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
578
|
-
return B(this, t), r = e.call(this), xe &&
|
|
587
|
+
return B(this, t), r = e.call(this), xe && ee.call(Z(r)), rn(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], n, Z(r)), r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.logger = J.create("translator"), r;
|
|
579
588
|
}
|
|
580
589
|
return H(t, [{
|
|
581
590
|
key: "changeLanguage",
|
|
@@ -598,7 +607,7 @@ var Ge = {}, Qe = function(i) {
|
|
|
598
607
|
value: function(r, a) {
|
|
599
608
|
var o = a.nsSeparator !== void 0 ? a.nsSeparator : this.options.nsSeparator;
|
|
600
609
|
o === void 0 && (o = ":");
|
|
601
|
-
var s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, u = a.ns || this.options.defaultNS || [], d = o && r.indexOf(o) > -1, c = !this.options.userDefinedKeySeparator && !a.keySeparator && !this.options.userDefinedNsSeparator && !a.nsSeparator && !
|
|
610
|
+
var s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, u = a.ns || this.options.defaultNS || [], d = o && r.indexOf(o) > -1, c = !this.options.userDefinedKeySeparator && !a.keySeparator && !this.options.userDefinedNsSeparator && !a.nsSeparator && !cn(r, o, s);
|
|
602
611
|
if (d && !c) {
|
|
603
612
|
var f = r.match(this.interpolator.nestingRegexp);
|
|
604
613
|
if (f && f.length > 0)
|
|
@@ -641,17 +650,17 @@ var Ge = {}, Qe = function(i) {
|
|
|
641
650
|
usedNS: g
|
|
642
651
|
} : f;
|
|
643
652
|
}
|
|
644
|
-
var v = this.resolve(r, a), m = v && v.res, S = v && v.usedKey || f, x = v && v.exactUsedKey || f, k = Object.prototype.toString.apply(m), D = ["[object Number]", "[object Function]", "[object RegExp]"], I = a.joinArrays !== void 0 ? a.joinArrays : this.options.joinArrays,
|
|
645
|
-
if (
|
|
653
|
+
var v = this.resolve(r, a), m = v && v.res, S = v && v.usedKey || f, x = v && v.exactUsedKey || f, k = Object.prototype.toString.apply(m), D = ["[object Number]", "[object Function]", "[object RegExp]"], I = a.joinArrays !== void 0 ? a.joinArrays : this.options.joinArrays, C = !this.i18nFormat || this.i18nFormat.handleAsObject, R = typeof m != "string" && typeof m != "boolean" && typeof m != "number";
|
|
654
|
+
if (C && m && R && D.indexOf(k) < 0 && !(typeof I == "string" && k === "[object Array]")) {
|
|
646
655
|
if (!a.returnObjects && !this.options.returnObjects) {
|
|
647
656
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
648
|
-
var
|
|
657
|
+
var _ = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, m, T(T({}, a), {}, {
|
|
649
658
|
ns: p
|
|
650
659
|
})) : "key '".concat(f, " (").concat(this.language, ")' returned an object instead of string.");
|
|
651
|
-
return u ? (v.res =
|
|
660
|
+
return u ? (v.res = _, v) : _;
|
|
652
661
|
}
|
|
653
662
|
if (d) {
|
|
654
|
-
var
|
|
663
|
+
var Y = k === "[object Array]", A = Y ? [] : {}, Pe = Y ? x : S;
|
|
655
664
|
for (var q in m)
|
|
656
665
|
if (Object.prototype.hasOwnProperty.call(m, q)) {
|
|
657
666
|
var l = "".concat(Pe).concat(d).concat(q);
|
|
@@ -662,18 +671,18 @@ var Ge = {}, Qe = function(i) {
|
|
|
662
671
|
}
|
|
663
672
|
m = A;
|
|
664
673
|
}
|
|
665
|
-
} else if (
|
|
674
|
+
} else if (C && typeof I == "string" && k === "[object Array]")
|
|
666
675
|
m = m.join(I), m && (m = this.extendTranslation(m, r, a, o));
|
|
667
676
|
else {
|
|
668
677
|
var h = !1, O = !1, j = a.count !== void 0 && typeof a.count != "string", L = t.hasDefaultValue(a), P = j ? this.pluralResolver.getSuffix(b, a.count, a) : "", K = a["defaultValue".concat(P)] || a.defaultValue;
|
|
669
678
|
!this.isValidLookup(m) && L && (h = !0, m = K), this.isValidLookup(m) || (O = !0, m = f);
|
|
670
|
-
var je = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, F = je && O ? void 0 : m,
|
|
671
|
-
if (O || h ||
|
|
672
|
-
if (this.logger.log(
|
|
673
|
-
var
|
|
679
|
+
var je = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, F = je && O ? void 0 : m, z = L && K !== m && this.options.updateMissing;
|
|
680
|
+
if (O || h || z) {
|
|
681
|
+
if (this.logger.log(z ? "updateKey" : "missingKey", b, g, f, z ? K : m), d) {
|
|
682
|
+
var Be = this.resolve(f, T(T({}, a), {}, {
|
|
674
683
|
keySeparator: !1
|
|
675
684
|
}));
|
|
676
|
-
|
|
685
|
+
Be && Be.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
677
686
|
}
|
|
678
687
|
var oe = [], pe = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
|
|
679
688
|
if (this.options.saveMissingTo === "fallback" && pe && pe[0])
|
|
@@ -681,15 +690,15 @@ var Ge = {}, Qe = function(i) {
|
|
|
681
690
|
oe.push(pe[ke]);
|
|
682
691
|
else
|
|
683
692
|
this.options.saveMissingTo === "all" ? oe = this.languageUtils.toResolveHierarchy(a.lng || this.language) : oe.push(a.lng || this.language);
|
|
684
|
-
var
|
|
685
|
-
var
|
|
686
|
-
s.options.missingKeyHandler ? s.options.missingKeyHandler(ne, g, Re,
|
|
693
|
+
var He = function(ne, Re, Me) {
|
|
694
|
+
var $e = L && Me !== m ? Me : F;
|
|
695
|
+
s.options.missingKeyHandler ? s.options.missingKeyHandler(ne, g, Re, $e, z, a) : s.backendConnector && s.backendConnector.saveMissing && s.backendConnector.saveMissing(ne, g, Re, $e, z, a), s.emit("missingKey", ne, g, Re, m);
|
|
687
696
|
};
|
|
688
697
|
this.options.saveMissing && (this.options.saveMissingPlurals && j ? oe.forEach(function(Le) {
|
|
689
698
|
s.pluralResolver.getSuffixes(Le, a).forEach(function(ne) {
|
|
690
|
-
|
|
699
|
+
He([Le], f + ne, a["defaultValue".concat(ne)] || K);
|
|
691
700
|
});
|
|
692
|
-
}) :
|
|
701
|
+
}) : He(oe, f, K));
|
|
693
702
|
}
|
|
694
703
|
m = this.extendTranslation(m, r, a, v, o), O && m === f && this.options.appendNamespaceToMissingKey && (m = "".concat(g, ":").concat(f)), (O || h) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? m = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? "".concat(g, ":").concat(f) : f, h ? m : void 0) : m = this.options.parseMissingKeyHandler(m));
|
|
695
704
|
}
|
|
@@ -724,7 +733,7 @@ var Ge = {}, Qe = function(i) {
|
|
|
724
733
|
}, o)), o.interpolation && this.interpolator.reset();
|
|
725
734
|
}
|
|
726
735
|
var w = o.postProcess || this.options.postProcess, v = typeof w == "string" ? [w] : w;
|
|
727
|
-
return r != null && v && v.length && o.applyPostProcessor !== !1 && (r =
|
|
736
|
+
return r != null && v && v.length && o.applyPostProcessor !== !1 && (r = At.handle(v, r, a, this.options && this.options.postProcessPassResolved ? T({
|
|
728
737
|
i18nResolved: s
|
|
729
738
|
}, o) : o, this)), r;
|
|
730
739
|
}
|
|
@@ -740,7 +749,7 @@ var Ge = {}, Qe = function(i) {
|
|
|
740
749
|
a.options.fallbackNS && (y = y.concat(a.options.fallbackNS));
|
|
741
750
|
var w = o.count !== void 0 && typeof o.count != "string", v = w && !o.ordinal && o.count === 0 && a.pluralResolver.shouldUseIntlApi(), m = o.context !== void 0 && (typeof o.context == "string" || typeof o.context == "number") && o.context !== "", S = o.lngs ? o.lngs : a.languageUtils.toResolveHierarchy(o.lng || a.language, o.fallbackLng);
|
|
742
751
|
y.forEach(function(x) {
|
|
743
|
-
a.isValidLookup(s) || (f = x, !
|
|
752
|
+
a.isValidLookup(s) || (f = x, !Qe["".concat(S[0], "-").concat(x)] && a.utils && a.utils.hasLoadedNamespace && !a.utils.hasLoadedNamespace(f) && (Qe["".concat(S[0], "-").concat(x)] = !0, a.logger.warn('key "'.concat(u, '" for languages "').concat(S.join(", "), `" won't get resolved as namespace "`).concat(f, '" 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!!!")), S.forEach(function(k) {
|
|
744
753
|
if (!a.isValidLookup(s)) {
|
|
745
754
|
c = k;
|
|
746
755
|
var D = [b];
|
|
@@ -749,14 +758,14 @@ var Ge = {}, Qe = function(i) {
|
|
|
749
758
|
else {
|
|
750
759
|
var I;
|
|
751
760
|
w && (I = a.pluralResolver.getSuffix(k, o.count, o));
|
|
752
|
-
var
|
|
753
|
-
if (w && (D.push(b + I), v && D.push(b +
|
|
761
|
+
var C = "".concat(a.options.pluralSeparator, "zero");
|
|
762
|
+
if (w && (D.push(b + I), v && D.push(b + C)), m) {
|
|
754
763
|
var R = "".concat(b).concat(a.options.contextSeparator).concat(o.context);
|
|
755
|
-
D.push(R), w && (D.push(R + I), v && D.push(R +
|
|
764
|
+
D.push(R), w && (D.push(R + I), v && D.push(R + C));
|
|
756
765
|
}
|
|
757
766
|
}
|
|
758
|
-
for (var
|
|
759
|
-
a.isValidLookup(s) || (d =
|
|
767
|
+
for (var _; _ = D.pop(); )
|
|
768
|
+
a.isValidLookup(s) || (d = _, s = a.getResource(k, x, _, o));
|
|
760
769
|
}
|
|
761
770
|
}));
|
|
762
771
|
});
|
|
@@ -790,11 +799,11 @@ var Ge = {}, Qe = function(i) {
|
|
|
790
799
|
return !1;
|
|
791
800
|
}
|
|
792
801
|
}]), t;
|
|
793
|
-
}(
|
|
802
|
+
}(ee);
|
|
794
803
|
function Ee(i) {
|
|
795
804
|
return i.charAt(0).toUpperCase() + i.slice(1);
|
|
796
805
|
}
|
|
797
|
-
var
|
|
806
|
+
var Ze = function() {
|
|
798
807
|
function i(e) {
|
|
799
808
|
B(this, i), this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = J.create("languageUtils");
|
|
800
809
|
}
|
|
@@ -879,7 +888,7 @@ var Ye = function() {
|
|
|
879
888
|
}), o;
|
|
880
889
|
}
|
|
881
890
|
}]), i;
|
|
882
|
-
}(),
|
|
891
|
+
}(), vn = [{
|
|
883
892
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
884
893
|
nr: [1, 2],
|
|
885
894
|
fc: 1
|
|
@@ -971,7 +980,7 @@ var Ye = function() {
|
|
|
971
980
|
lngs: ["he", "iw"],
|
|
972
981
|
nr: [1, 2, 20, 21],
|
|
973
982
|
fc: 22
|
|
974
|
-
}],
|
|
983
|
+
}], mn = {
|
|
975
984
|
1: function(e) {
|
|
976
985
|
return +(e > 1);
|
|
977
986
|
},
|
|
@@ -1038,7 +1047,7 @@ var Ye = function() {
|
|
|
1038
1047
|
22: function(e) {
|
|
1039
1048
|
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
|
1040
1049
|
}
|
|
1041
|
-
},
|
|
1050
|
+
}, yn = ["v1", "v2", "v3"], et = {
|
|
1042
1051
|
zero: 0,
|
|
1043
1052
|
one: 1,
|
|
1044
1053
|
two: 2,
|
|
@@ -1046,21 +1055,21 @@ var Ye = function() {
|
|
|
1046
1055
|
many: 4,
|
|
1047
1056
|
other: 5
|
|
1048
1057
|
};
|
|
1049
|
-
function
|
|
1058
|
+
function bn() {
|
|
1050
1059
|
var i = {};
|
|
1051
|
-
return
|
|
1060
|
+
return vn.forEach(function(e) {
|
|
1052
1061
|
e.lngs.forEach(function(t) {
|
|
1053
1062
|
i[t] = {
|
|
1054
1063
|
numbers: e.nr,
|
|
1055
|
-
plurals:
|
|
1064
|
+
plurals: mn[e.fc]
|
|
1056
1065
|
};
|
|
1057
1066
|
});
|
|
1058
1067
|
}), i;
|
|
1059
1068
|
}
|
|
1060
|
-
var
|
|
1069
|
+
var wn = function() {
|
|
1061
1070
|
function i(e) {
|
|
1062
1071
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1063
|
-
B(this, i), this.languageUtils = e, this.options = t, this.logger = J.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules =
|
|
1072
|
+
B(this, i), this.languageUtils = e, this.options = t, this.logger = J.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = bn();
|
|
1064
1073
|
}
|
|
1065
1074
|
return H(i, [{
|
|
1066
1075
|
key: "addRule",
|
|
@@ -1100,7 +1109,7 @@ var bn = function() {
|
|
|
1100
1109
|
value: function(t) {
|
|
1101
1110
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = this.getRule(t, r);
|
|
1102
1111
|
return a ? this.shouldUseIntlApi() ? a.resolvedOptions().pluralCategories.sort(function(o, s) {
|
|
1103
|
-
return
|
|
1112
|
+
return et[o] - et[s];
|
|
1104
1113
|
}).map(function(o) {
|
|
1105
1114
|
return "".concat(n.options.prepend).concat(o);
|
|
1106
1115
|
}) : a.numbers.map(function(o) {
|
|
@@ -1126,11 +1135,11 @@ var bn = function() {
|
|
|
1126
1135
|
}, {
|
|
1127
1136
|
key: "shouldUseIntlApi",
|
|
1128
1137
|
value: function() {
|
|
1129
|
-
return !
|
|
1138
|
+
return !yn.includes(this.options.compatibilityJSON);
|
|
1130
1139
|
}
|
|
1131
1140
|
}]), i;
|
|
1132
1141
|
}();
|
|
1133
|
-
function
|
|
1142
|
+
function tt(i, e) {
|
|
1134
1143
|
var t = Object.keys(i);
|
|
1135
1144
|
if (Object.getOwnPropertySymbols) {
|
|
1136
1145
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -1143,19 +1152,19 @@ function et(i, e) {
|
|
|
1143
1152
|
function M(i) {
|
|
1144
1153
|
for (var e = 1; e < arguments.length; e++) {
|
|
1145
1154
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1146
|
-
e % 2 ?
|
|
1155
|
+
e % 2 ? tt(Object(t), !0).forEach(function(n) {
|
|
1147
1156
|
W(i, n, t[n]);
|
|
1148
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
1157
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : tt(Object(t)).forEach(function(n) {
|
|
1149
1158
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1150
1159
|
});
|
|
1151
1160
|
}
|
|
1152
1161
|
return i;
|
|
1153
1162
|
}
|
|
1154
|
-
function
|
|
1155
|
-
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a =
|
|
1163
|
+
function nt(i, e, t) {
|
|
1164
|
+
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = on(i, e, t);
|
|
1156
1165
|
return !a && r && typeof t == "string" && (a = be(i, t, n), a === void 0 && (a = be(e, t, n))), a;
|
|
1157
1166
|
}
|
|
1158
|
-
var
|
|
1167
|
+
var On = function() {
|
|
1159
1168
|
function i() {
|
|
1160
1169
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1161
1170
|
B(this, i), this.logger = J.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || function(t) {
|
|
@@ -1170,7 +1179,7 @@ var wn = function() {
|
|
|
1170
1179
|
escapeValue: !0
|
|
1171
1180
|
});
|
|
1172
1181
|
var n = t.interpolation;
|
|
1173
|
-
this.escape = n.escape !== void 0 ? n.escape :
|
|
1182
|
+
this.escape = n.escape !== void 0 ? n.escape : un, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? re(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? re(n.suffix) : n.suffixEscaped || "}}", this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ",", this.unescapePrefix = n.unescapeSuffix ? "" : n.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : n.unescapeSuffix || "", this.nestingPrefix = n.nestingPrefix ? re(n.nestingPrefix) : n.nestingPrefixEscaped || re("$t("), this.nestingSuffix = n.nestingSuffix ? re(n.nestingSuffix) : n.nestingSuffixEscaped || re(")"), this.nestingOptionsSeparator = n.nestingOptionsSeparator ? n.nestingOptionsSeparator : n.nestingOptionsSeparator || ",", this.maxReplaces = n.maxReplaces ? n.maxReplaces : 1e3, this.alwaysFormat = n.alwaysFormat !== void 0 ? n.alwaysFormat : !1, this.resetRegExp();
|
|
1174
1183
|
}
|
|
1175
1184
|
}, {
|
|
1176
1185
|
key: "reset",
|
|
@@ -1196,13 +1205,13 @@ var wn = function() {
|
|
|
1196
1205
|
}
|
|
1197
1206
|
var p = function(v) {
|
|
1198
1207
|
if (v.indexOf(o.formatSeparator) < 0) {
|
|
1199
|
-
var m =
|
|
1208
|
+
var m = nt(n, c, v, o.options.keySeparator, o.options.ignoreJSONStructure);
|
|
1200
1209
|
return o.alwaysFormat ? o.format(m, void 0, r, M(M(M({}, a), n), {}, {
|
|
1201
1210
|
interpolationkey: v
|
|
1202
1211
|
})) : m;
|
|
1203
1212
|
}
|
|
1204
1213
|
var S = v.split(o.formatSeparator), x = S.shift().trim(), k = S.join(o.formatSeparator).trim();
|
|
1205
|
-
return o.format(
|
|
1214
|
+
return o.format(nt(n, c, x, o.options.keySeparator, o.options.ignoreJSONStructure), k, r, M(M(M({}, a), n), {}, {
|
|
1206
1215
|
interpolationkey: x
|
|
1207
1216
|
}));
|
|
1208
1217
|
};
|
|
@@ -1233,7 +1242,7 @@ var wn = function() {
|
|
|
1233
1242
|
} else
|
|
1234
1243
|
o.logger.warn("missed to pass in variable ".concat(v, " for interpolating ").concat(t)), u = "";
|
|
1235
1244
|
else
|
|
1236
|
-
typeof u != "string" && !o.useRawValueToEscape && (u =
|
|
1245
|
+
typeof u != "string" && !o.useRawValueToEscape && (u = Je(u));
|
|
1237
1246
|
var S = w.safeValue(u);
|
|
1238
1247
|
if (t = t.replace(s[0], S), b ? (w.regex.lastIndex += u.length, w.regex.lastIndex -= s[0].length) : w.regex.lastIndex = 0, d++, d >= o.maxReplaces)
|
|
1239
1248
|
break;
|
|
@@ -1271,7 +1280,7 @@ var wn = function() {
|
|
|
1271
1280
|
}
|
|
1272
1281
|
if (s = n(d.call(this, o[1].trim(), u), u), s && o[0] === t && typeof s != "string")
|
|
1273
1282
|
return s;
|
|
1274
|
-
typeof s != "string" && (s =
|
|
1283
|
+
typeof s != "string" && (s = Je(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(t)), s = ""), f && (s = c.reduce(function(g, b) {
|
|
1275
1284
|
return r.format(g, b, a.lng, M(M({}, a), {}, {
|
|
1276
1285
|
interpolationkey: o[1].trim()
|
|
1277
1286
|
}));
|
|
@@ -1281,7 +1290,7 @@ var wn = function() {
|
|
|
1281
1290
|
}
|
|
1282
1291
|
}]), i;
|
|
1283
1292
|
}();
|
|
1284
|
-
function
|
|
1293
|
+
function rt(i, e) {
|
|
1285
1294
|
var t = Object.keys(i);
|
|
1286
1295
|
if (Object.getOwnPropertySymbols) {
|
|
1287
1296
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -1294,15 +1303,15 @@ function nt(i, e) {
|
|
|
1294
1303
|
function G(i) {
|
|
1295
1304
|
for (var e = 1; e < arguments.length; e++) {
|
|
1296
1305
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1297
|
-
e % 2 ?
|
|
1306
|
+
e % 2 ? rt(Object(t), !0).forEach(function(n) {
|
|
1298
1307
|
W(i, n, t[n]);
|
|
1299
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
1308
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : rt(Object(t)).forEach(function(n) {
|
|
1300
1309
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1301
1310
|
});
|
|
1302
1311
|
}
|
|
1303
1312
|
return i;
|
|
1304
1313
|
}
|
|
1305
|
-
function
|
|
1314
|
+
function Sn(i) {
|
|
1306
1315
|
var e = i.toLowerCase().trim(), t = {};
|
|
1307
1316
|
if (i.indexOf("(") > -1) {
|
|
1308
1317
|
var n = i.split("(");
|
|
@@ -1316,7 +1325,7 @@ function On(i) {
|
|
|
1316
1325
|
var a = r.split(";");
|
|
1317
1326
|
a.forEach(function(o) {
|
|
1318
1327
|
if (o) {
|
|
1319
|
-
var s = o.split(":"), u =
|
|
1328
|
+
var s = o.split(":"), u = en(s), d = u[0], c = u.slice(1), f = c.join(":").trim().replace(/^'+|'+$/g, "");
|
|
1320
1329
|
t[d.trim()] || (t[d.trim()] = f), f === "false" && (t[d.trim()] = !1), f === "true" && (t[d.trim()] = !0), isNaN(f) || (t[d.trim()] = parseInt(f, 10));
|
|
1321
1330
|
}
|
|
1322
1331
|
});
|
|
@@ -1334,7 +1343,7 @@ function ie(i) {
|
|
|
1334
1343
|
return s || (s = i(r, a), e[o] = s), s(n);
|
|
1335
1344
|
};
|
|
1336
1345
|
}
|
|
1337
|
-
var
|
|
1346
|
+
var xn = function() {
|
|
1338
1347
|
function i() {
|
|
1339
1348
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1340
1349
|
B(this, i), this.logger = J.create("formatter"), this.options = e, this.formats = {
|
|
@@ -1394,7 +1403,7 @@ var Sn = function() {
|
|
|
1394
1403
|
key: "format",
|
|
1395
1404
|
value: function(t, n, r) {
|
|
1396
1405
|
var a = this, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s = n.split(this.formatSeparator), u = s.reduce(function(d, c) {
|
|
1397
|
-
var f =
|
|
1406
|
+
var f = Sn(c), p = f.formatName, g = f.formatOptions;
|
|
1398
1407
|
if (a.formats[p]) {
|
|
1399
1408
|
var b = d;
|
|
1400
1409
|
try {
|
|
@@ -1412,7 +1421,7 @@ var Sn = function() {
|
|
|
1412
1421
|
}
|
|
1413
1422
|
}]), i;
|
|
1414
1423
|
}();
|
|
1415
|
-
function
|
|
1424
|
+
function it(i, e) {
|
|
1416
1425
|
var t = Object.keys(i);
|
|
1417
1426
|
if (Object.getOwnPropertySymbols) {
|
|
1418
1427
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -1422,19 +1431,19 @@ function rt(i, e) {
|
|
|
1422
1431
|
}
|
|
1423
1432
|
return t;
|
|
1424
1433
|
}
|
|
1425
|
-
function
|
|
1434
|
+
function at(i) {
|
|
1426
1435
|
for (var e = 1; e < arguments.length; e++) {
|
|
1427
1436
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1428
|
-
e % 2 ?
|
|
1437
|
+
e % 2 ? it(Object(t), !0).forEach(function(n) {
|
|
1429
1438
|
W(i, n, t[n]);
|
|
1430
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
1439
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : it(Object(t)).forEach(function(n) {
|
|
1431
1440
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1432
1441
|
});
|
|
1433
1442
|
}
|
|
1434
1443
|
return i;
|
|
1435
1444
|
}
|
|
1436
|
-
function
|
|
1437
|
-
var e =
|
|
1445
|
+
function Pn(i) {
|
|
1446
|
+
var e = jn();
|
|
1438
1447
|
return function() {
|
|
1439
1448
|
var n = X(i), r;
|
|
1440
1449
|
if (e) {
|
|
@@ -1445,7 +1454,7 @@ function xn(i) {
|
|
|
1445
1454
|
return de(this, r);
|
|
1446
1455
|
};
|
|
1447
1456
|
}
|
|
1448
|
-
function
|
|
1457
|
+
function jn() {
|
|
1449
1458
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1450
1459
|
return !1;
|
|
1451
1460
|
if (typeof Proxy == "function")
|
|
@@ -1457,15 +1466,15 @@ function Pn() {
|
|
|
1457
1466
|
return !1;
|
|
1458
1467
|
}
|
|
1459
1468
|
}
|
|
1460
|
-
function
|
|
1469
|
+
function kn(i, e) {
|
|
1461
1470
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
|
1462
1471
|
}
|
|
1463
|
-
var
|
|
1472
|
+
var Ln = function(i) {
|
|
1464
1473
|
Se(t, i);
|
|
1465
|
-
var e =
|
|
1474
|
+
var e = Pn(t);
|
|
1466
1475
|
function t(n, r, a) {
|
|
1467
1476
|
var o, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
1468
|
-
return B(this, t), o = e.call(this), xe &&
|
|
1477
|
+
return B(this, t), o = e.call(this), xe && ee.call(Z(o)), o.backend = n, o.store = r, o.services = a, o.languageUtils = a.languageUtils, o.options = s, o.logger = J.create("backendConnector"), o.waitingReads = [], o.maxParallelReads = s.maxParallelReads || 10, o.readingCalls = 0, o.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, o.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, o.state = {}, o.queue = [], o.backend && o.backend.init && o.backend.init(a, s.backend, s), o;
|
|
1469
1478
|
}
|
|
1470
1479
|
return H(t, [{
|
|
1471
1480
|
key: "queueLoad",
|
|
@@ -1497,7 +1506,7 @@ var kn = function(i) {
|
|
|
1497
1506
|
a && this.emit("failedLoading", u, d, a), o && this.store.addResourceBundle(u, d, o), this.state[r] = a ? -1 : 2;
|
|
1498
1507
|
var c = {};
|
|
1499
1508
|
this.queue.forEach(function(f) {
|
|
1500
|
-
|
|
1509
|
+
an(f.loaded, [u], d), kn(f, r), a && f.errors.push(a), f.pendingCount === 0 && !f.done && (Object.keys(f.loaded).forEach(function(p) {
|
|
1501
1510
|
c[p] || (c[p] = {});
|
|
1502
1511
|
var g = f.loaded[p];
|
|
1503
1512
|
g.length && g.forEach(function(b) {
|
|
@@ -1597,7 +1606,7 @@ var kn = function(i) {
|
|
|
1597
1606
|
}
|
|
1598
1607
|
if (!(o == null || o === "")) {
|
|
1599
1608
|
if (this.backend && this.backend.create) {
|
|
1600
|
-
var f =
|
|
1609
|
+
var f = at(at({}, d), {}, {
|
|
1601
1610
|
isUpdate: u
|
|
1602
1611
|
}), p = this.backend.create.bind(this.backend);
|
|
1603
1612
|
if (p.length < 6)
|
|
@@ -1616,8 +1625,8 @@ var kn = function(i) {
|
|
|
1616
1625
|
}
|
|
1617
1626
|
}
|
|
1618
1627
|
}]), t;
|
|
1619
|
-
}(
|
|
1620
|
-
function
|
|
1628
|
+
}(ee);
|
|
1629
|
+
function ot() {
|
|
1621
1630
|
return {
|
|
1622
1631
|
debug: !1,
|
|
1623
1632
|
initImmediate: !0,
|
|
@@ -1678,10 +1687,10 @@ function at() {
|
|
|
1678
1687
|
}
|
|
1679
1688
|
};
|
|
1680
1689
|
}
|
|
1681
|
-
function
|
|
1690
|
+
function st(i) {
|
|
1682
1691
|
return typeof i.ns == "string" && (i.ns = [i.ns]), typeof i.fallbackLng == "string" && (i.fallbackLng = [i.fallbackLng]), typeof i.fallbackNS == "string" && (i.fallbackNS = [i.fallbackNS]), i.supportedLngs && i.supportedLngs.indexOf("cimode") < 0 && (i.supportedLngs = i.supportedLngs.concat(["cimode"])), i;
|
|
1683
1692
|
}
|
|
1684
|
-
function
|
|
1693
|
+
function ut(i, e) {
|
|
1685
1694
|
var t = Object.keys(i);
|
|
1686
1695
|
if (Object.getOwnPropertySymbols) {
|
|
1687
1696
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -1691,19 +1700,19 @@ function st(i, e) {
|
|
|
1691
1700
|
}
|
|
1692
1701
|
return t;
|
|
1693
1702
|
}
|
|
1694
|
-
function
|
|
1703
|
+
function V(i) {
|
|
1695
1704
|
for (var e = 1; e < arguments.length; e++) {
|
|
1696
1705
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
1697
|
-
e % 2 ?
|
|
1706
|
+
e % 2 ? ut(Object(t), !0).forEach(function(n) {
|
|
1698
1707
|
W(i, n, t[n]);
|
|
1699
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
1708
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : ut(Object(t)).forEach(function(n) {
|
|
1700
1709
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1701
1710
|
});
|
|
1702
1711
|
}
|
|
1703
1712
|
return i;
|
|
1704
1713
|
}
|
|
1705
|
-
function
|
|
1706
|
-
var e =
|
|
1714
|
+
function Rn(i) {
|
|
1715
|
+
var e = En();
|
|
1707
1716
|
return function() {
|
|
1708
1717
|
var n = X(i), r;
|
|
1709
1718
|
if (e) {
|
|
@@ -1714,7 +1723,7 @@ function Ln(i) {
|
|
|
1714
1723
|
return de(this, r);
|
|
1715
1724
|
};
|
|
1716
1725
|
}
|
|
1717
|
-
function
|
|
1726
|
+
function En() {
|
|
1718
1727
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1719
1728
|
return !1;
|
|
1720
1729
|
if (typeof Proxy == "function")
|
|
@@ -1728,7 +1737,7 @@ function Rn() {
|
|
|
1728
1737
|
}
|
|
1729
1738
|
function he() {
|
|
1730
1739
|
}
|
|
1731
|
-
function
|
|
1740
|
+
function _n(i) {
|
|
1732
1741
|
var e = Object.getOwnPropertyNames(Object.getPrototypeOf(i));
|
|
1733
1742
|
e.forEach(function(t) {
|
|
1734
1743
|
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
|
@@ -1736,14 +1745,14 @@ function En(i) {
|
|
|
1736
1745
|
}
|
|
1737
1746
|
var we = function(i) {
|
|
1738
1747
|
Se(t, i);
|
|
1739
|
-
var e =
|
|
1748
|
+
var e = Rn(t);
|
|
1740
1749
|
function t() {
|
|
1741
1750
|
var n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
|
|
1742
|
-
if (B(this, t), n = e.call(this), xe &&
|
|
1751
|
+
if (B(this, t), n = e.call(this), xe && ee.call(Z(n)), n.options = st(r), n.services = {}, n.logger = J, n.modules = {
|
|
1743
1752
|
external: []
|
|
1744
|
-
},
|
|
1753
|
+
}, _n(Z(n)), a && !n.isInitialized && !r.isClone) {
|
|
1745
1754
|
if (!n.options.initImmediate)
|
|
1746
|
-
return n.init(r, a), de(n,
|
|
1755
|
+
return n.init(r, a), de(n, Z(n));
|
|
1747
1756
|
setTimeout(function() {
|
|
1748
1757
|
n.init(r, a);
|
|
1749
1758
|
}, 0);
|
|
@@ -1755,29 +1764,29 @@ var we = function(i) {
|
|
|
1755
1764
|
value: function() {
|
|
1756
1765
|
var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0;
|
|
1757
1766
|
typeof a == "function" && (o = a, a = {}), !a.defaultNS && a.defaultNS !== !1 && a.ns && (typeof a.ns == "string" ? a.defaultNS = a.ns : a.ns.indexOf("translation") < 0 && (a.defaultNS = a.ns[0]));
|
|
1758
|
-
var s =
|
|
1759
|
-
this.options =
|
|
1767
|
+
var s = ot();
|
|
1768
|
+
this.options = V(V(V({}, s), this.options), st(a)), this.options.compatibilityAPI !== "v1" && (this.options.interpolation = V(V({}, s.interpolation), this.options.interpolation)), a.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = a.keySeparator), a.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = a.nsSeparator);
|
|
1760
1769
|
function u(v) {
|
|
1761
1770
|
return v ? typeof v == "function" ? new v() : v : null;
|
|
1762
1771
|
}
|
|
1763
1772
|
if (!this.options.isClone) {
|
|
1764
1773
|
this.modules.logger ? J.init(u(this.modules.logger), this.options) : J.init(null, this.options);
|
|
1765
1774
|
var d;
|
|
1766
|
-
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d =
|
|
1767
|
-
var c = new
|
|
1768
|
-
this.store = new
|
|
1775
|
+
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = xn);
|
|
1776
|
+
var c = new Ze(this.options);
|
|
1777
|
+
this.store = new pn(this.options.resources, this.options);
|
|
1769
1778
|
var f = this.services;
|
|
1770
|
-
f.logger = J, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new
|
|
1779
|
+
f.logger = J, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new wn(c, {
|
|
1771
1780
|
prepend: this.options.pluralSeparator,
|
|
1772
1781
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
1773
1782
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1774
|
-
}), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (f.formatter = u(d), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new
|
|
1783
|
+
}), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (f.formatter = u(d), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new On(this.options), f.utils = {
|
|
1775
1784
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1776
|
-
}, f.backendConnector = new
|
|
1785
|
+
}, f.backendConnector = new Ln(u(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", function(v) {
|
|
1777
1786
|
for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
|
|
1778
1787
|
S[x - 1] = arguments[x];
|
|
1779
1788
|
r.emit.apply(r, [v].concat(S));
|
|
1780
|
-
}), this.modules.languageDetector && (f.languageDetector = u(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = u(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new
|
|
1789
|
+
}), this.modules.languageDetector && (f.languageDetector = u(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = u(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Ye(this.services, this.options), this.translator.on("*", function(v) {
|
|
1781
1790
|
for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
|
|
1782
1791
|
S[x - 1] = arguments[x];
|
|
1783
1792
|
r.emit.apply(r, [v].concat(S));
|
|
@@ -1860,7 +1869,7 @@ var we = function(i) {
|
|
|
1860
1869
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
1861
1870
|
if (!r.type)
|
|
1862
1871
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
1863
|
-
return r.type === "backend" && (this.modules.backend = r), (r.type === "logger" || r.log && r.warn && r.error) && (this.modules.logger = r), r.type === "languageDetector" && (this.modules.languageDetector = r), r.type === "i18nFormat" && (this.modules.i18nFormat = r), r.type === "postProcessor" &&
|
|
1872
|
+
return r.type === "backend" && (this.modules.backend = r), (r.type === "logger" || r.log && r.warn && r.error) && (this.modules.logger = r), r.type === "languageDetector" && (this.modules.languageDetector = r), r.type === "i18nFormat" && (this.modules.i18nFormat = r), r.type === "postProcessor" && At.addPostProcessor(r), r.type === "formatter" && (this.modules.formatter = r), r.type === "3rdParty" && this.modules.external.push(r), this;
|
|
1864
1873
|
}
|
|
1865
1874
|
}, {
|
|
1866
1875
|
key: "setResolvedLanguage",
|
|
@@ -1908,7 +1917,7 @@ var we = function(i) {
|
|
|
1908
1917
|
b[y - 2] = arguments[y];
|
|
1909
1918
|
p = s.options.overloadTranslationOptionHandler([c, f].concat(b));
|
|
1910
1919
|
} else
|
|
1911
|
-
p =
|
|
1920
|
+
p = V({}, f);
|
|
1912
1921
|
p.lng = p.lng || d.lng, p.lngs = p.lngs || d.lngs, p.ns = p.ns || d.ns, p.keyPrefix = p.keyPrefix || o || d.keyPrefix;
|
|
1913
1922
|
var w = s.options.keySeparator || ".", v;
|
|
1914
1923
|
return p.keyPrefix && Array.isArray(c) ? v = c.map(function(m) {
|
|
@@ -1983,22 +1992,22 @@ var we = function(i) {
|
|
|
1983
1992
|
value: function(r) {
|
|
1984
1993
|
if (r || (r = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !r)
|
|
1985
1994
|
return "rtl";
|
|
1986
|
-
var a = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], o = this.services && this.services.languageUtils || new
|
|
1995
|
+
var a = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], o = this.services && this.services.languageUtils || new Ze(ot());
|
|
1987
1996
|
return a.indexOf(o.getLanguagePartFromCode(r)) > -1 || r.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1988
1997
|
}
|
|
1989
1998
|
}, {
|
|
1990
1999
|
key: "cloneInstance",
|
|
1991
2000
|
value: function() {
|
|
1992
|
-
var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : he, s =
|
|
2001
|
+
var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : he, s = V(V(V({}, this.options), a), {
|
|
1993
2002
|
isClone: !0
|
|
1994
2003
|
}), u = new t(s);
|
|
1995
2004
|
(a.debug !== void 0 || a.prefix !== void 0) && (u.logger = u.logger.clone(a));
|
|
1996
2005
|
var d = ["store", "services", "language"];
|
|
1997
2006
|
return d.forEach(function(c) {
|
|
1998
2007
|
u[c] = r[c];
|
|
1999
|
-
}), u.services =
|
|
2008
|
+
}), u.services = V({}, this.services), u.services.utils = {
|
|
2000
2009
|
hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
|
|
2001
|
-
}, u.translator = new
|
|
2010
|
+
}, u.translator = new Ye(u.services, u.options), u.translator.on("*", function(c) {
|
|
2002
2011
|
for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0), g = 1; g < f; g++)
|
|
2003
2012
|
p[g - 1] = arguments[g];
|
|
2004
2013
|
u.emit.apply(u, [c].concat(p));
|
|
@@ -2018,7 +2027,7 @@ var we = function(i) {
|
|
|
2018
2027
|
};
|
|
2019
2028
|
}
|
|
2020
2029
|
}]), t;
|
|
2021
|
-
}(
|
|
2030
|
+
}(ee);
|
|
2022
2031
|
W(we, "createInstance", function() {
|
|
2023
2032
|
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = arguments.length > 1 ? arguments[1] : void 0;
|
|
2024
2033
|
return new we(i, e);
|
|
@@ -2033,21 +2042,21 @@ N.reloadResources;
|
|
|
2033
2042
|
N.use;
|
|
2034
2043
|
N.changeLanguage;
|
|
2035
2044
|
N.getFixedT;
|
|
2036
|
-
var
|
|
2045
|
+
var Ar = N.t;
|
|
2037
2046
|
N.exists;
|
|
2038
2047
|
N.setDefaultNamespace;
|
|
2039
2048
|
N.hasLoadedNamespace;
|
|
2040
2049
|
N.loadNamespaces;
|
|
2041
2050
|
N.loadLanguages;
|
|
2042
|
-
var
|
|
2043
|
-
function
|
|
2044
|
-
return Cn.call(
|
|
2051
|
+
var Tt = [], Cn = Tt.forEach, Nn = Tt.slice;
|
|
2052
|
+
function An(i) {
|
|
2053
|
+
return Cn.call(Nn.call(arguments, 1), function(e) {
|
|
2045
2054
|
if (e)
|
|
2046
2055
|
for (var t in e)
|
|
2047
2056
|
i[t] === void 0 && (i[t] = e[t]);
|
|
2048
2057
|
}), i;
|
|
2049
2058
|
}
|
|
2050
|
-
var
|
|
2059
|
+
var ft = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Tn = function(e, t, n) {
|
|
2051
2060
|
var r = n || {};
|
|
2052
2061
|
r.path = r.path || "/";
|
|
2053
2062
|
var a = encodeURIComponent(t), o = "".concat(e, "=").concat(a);
|
|
@@ -2058,12 +2067,12 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2058
2067
|
o += "; Max-Age=".concat(Math.floor(s));
|
|
2059
2068
|
}
|
|
2060
2069
|
if (r.domain) {
|
|
2061
|
-
if (!
|
|
2070
|
+
if (!ft.test(r.domain))
|
|
2062
2071
|
throw new TypeError("option domain is invalid");
|
|
2063
2072
|
o += "; Domain=".concat(r.domain);
|
|
2064
2073
|
}
|
|
2065
2074
|
if (r.path) {
|
|
2066
|
-
if (!
|
|
2075
|
+
if (!ft.test(r.path))
|
|
2067
2076
|
throw new TypeError("option path is invalid");
|
|
2068
2077
|
o += "; Path=".concat(r.path);
|
|
2069
2078
|
}
|
|
@@ -2092,13 +2101,13 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2092
2101
|
}
|
|
2093
2102
|
}
|
|
2094
2103
|
return o;
|
|
2095
|
-
},
|
|
2104
|
+
}, ct = {
|
|
2096
2105
|
create: function(e, t, n, r) {
|
|
2097
2106
|
var a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
2098
2107
|
path: "/",
|
|
2099
2108
|
sameSite: "strict"
|
|
2100
2109
|
};
|
|
2101
|
-
n && (a.expires = /* @__PURE__ */ new Date(), a.expires.setTime(a.expires.getTime() + n * 60 * 1e3)), r && (a.domain = r), document.cookie =
|
|
2110
|
+
n && (a.expires = /* @__PURE__ */ new Date(), a.expires.setTime(a.expires.getTime() + n * 60 * 1e3)), r && (a.domain = r), document.cookie = Tn(e, encodeURIComponent(t), a);
|
|
2102
2111
|
},
|
|
2103
2112
|
read: function(e) {
|
|
2104
2113
|
for (var t = "".concat(e, "="), n = document.cookie.split(";"), r = 0; r < n.length; r++) {
|
|
@@ -2112,20 +2121,20 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2112
2121
|
remove: function(e) {
|
|
2113
2122
|
this.create(e, "", -1);
|
|
2114
2123
|
}
|
|
2115
|
-
},
|
|
2124
|
+
}, Dn = {
|
|
2116
2125
|
name: "cookie",
|
|
2117
2126
|
lookup: function(e) {
|
|
2118
2127
|
var t;
|
|
2119
2128
|
if (e.lookupCookie && typeof document < "u") {
|
|
2120
|
-
var n =
|
|
2129
|
+
var n = ct.read(e.lookupCookie);
|
|
2121
2130
|
n && (t = n);
|
|
2122
2131
|
}
|
|
2123
2132
|
return t;
|
|
2124
2133
|
},
|
|
2125
2134
|
cacheUserLanguage: function(e, t) {
|
|
2126
|
-
t.lookupCookie && typeof document < "u" &&
|
|
2135
|
+
t.lookupCookie && typeof document < "u" && ct.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
|
|
2127
2136
|
}
|
|
2128
|
-
},
|
|
2137
|
+
}, In = {
|
|
2129
2138
|
name: "querystring",
|
|
2130
2139
|
lookup: function(e) {
|
|
2131
2140
|
var t;
|
|
@@ -2142,7 +2151,7 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2142
2151
|
}
|
|
2143
2152
|
return t;
|
|
2144
2153
|
}
|
|
2145
|
-
}, ue = null,
|
|
2154
|
+
}, ue = null, lt = function() {
|
|
2146
2155
|
if (ue !== null)
|
|
2147
2156
|
return ue;
|
|
2148
2157
|
try {
|
|
@@ -2153,20 +2162,20 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2153
2162
|
ue = !1;
|
|
2154
2163
|
}
|
|
2155
2164
|
return ue;
|
|
2156
|
-
},
|
|
2165
|
+
}, Fn = {
|
|
2157
2166
|
name: "localStorage",
|
|
2158
2167
|
lookup: function(e) {
|
|
2159
2168
|
var t;
|
|
2160
|
-
if (e.lookupLocalStorage &&
|
|
2169
|
+
if (e.lookupLocalStorage && lt()) {
|
|
2161
2170
|
var n = window.localStorage.getItem(e.lookupLocalStorage);
|
|
2162
2171
|
n && (t = n);
|
|
2163
2172
|
}
|
|
2164
2173
|
return t;
|
|
2165
2174
|
},
|
|
2166
2175
|
cacheUserLanguage: function(e, t) {
|
|
2167
|
-
t.lookupLocalStorage &&
|
|
2176
|
+
t.lookupLocalStorage && lt() && window.localStorage.setItem(t.lookupLocalStorage, e);
|
|
2168
2177
|
}
|
|
2169
|
-
}, fe = null,
|
|
2178
|
+
}, fe = null, dt = function() {
|
|
2170
2179
|
if (fe !== null)
|
|
2171
2180
|
return fe;
|
|
2172
2181
|
try {
|
|
@@ -2177,20 +2186,20 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2177
2186
|
fe = !1;
|
|
2178
2187
|
}
|
|
2179
2188
|
return fe;
|
|
2180
|
-
},
|
|
2189
|
+
}, Un = {
|
|
2181
2190
|
name: "sessionStorage",
|
|
2182
2191
|
lookup: function(e) {
|
|
2183
2192
|
var t;
|
|
2184
|
-
if (e.lookupSessionStorage &&
|
|
2193
|
+
if (e.lookupSessionStorage && dt()) {
|
|
2185
2194
|
var n = window.sessionStorage.getItem(e.lookupSessionStorage);
|
|
2186
2195
|
n && (t = n);
|
|
2187
2196
|
}
|
|
2188
2197
|
return t;
|
|
2189
2198
|
},
|
|
2190
2199
|
cacheUserLanguage: function(e, t) {
|
|
2191
|
-
t.lookupSessionStorage &&
|
|
2200
|
+
t.lookupSessionStorage && dt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
|
|
2192
2201
|
}
|
|
2193
|
-
},
|
|
2202
|
+
}, Bn = {
|
|
2194
2203
|
name: "navigator",
|
|
2195
2204
|
lookup: function(e) {
|
|
2196
2205
|
var t = [];
|
|
@@ -2202,13 +2211,13 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2202
2211
|
}
|
|
2203
2212
|
return t.length > 0 ? t : void 0;
|
|
2204
2213
|
}
|
|
2205
|
-
},
|
|
2214
|
+
}, Hn = {
|
|
2206
2215
|
name: "htmlTag",
|
|
2207
2216
|
lookup: function(e) {
|
|
2208
2217
|
var t, n = e.htmlTag || (typeof document < "u" ? document.documentElement : null);
|
|
2209
2218
|
return n && typeof n.getAttribute == "function" && (t = n.getAttribute("lang")), t;
|
|
2210
2219
|
}
|
|
2211
|
-
},
|
|
2220
|
+
}, Mn = {
|
|
2212
2221
|
name: "path",
|
|
2213
2222
|
lookup: function(e) {
|
|
2214
2223
|
var t;
|
|
@@ -2224,23 +2233,23 @@ var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
|
2224
2233
|
}
|
|
2225
2234
|
return t;
|
|
2226
2235
|
}
|
|
2227
|
-
},
|
|
2236
|
+
}, $n = {
|
|
2228
2237
|
name: "subdomain",
|
|
2229
2238
|
lookup: function(e) {
|
|
2230
2239
|
var t = typeof e.lookupFromSubdomainIndex == "number" ? e.lookupFromSubdomainIndex + 1 : 1, n = typeof window < "u" && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
2231
2240
|
if (n)
|
|
2232
2241
|
return n[t];
|
|
2233
2242
|
}
|
|
2234
|
-
},
|
|
2243
|
+
}, Dt = !1;
|
|
2235
2244
|
try {
|
|
2236
|
-
document.cookie,
|
|
2245
|
+
document.cookie, Dt = !0;
|
|
2237
2246
|
} catch {
|
|
2238
2247
|
}
|
|
2239
|
-
var
|
|
2240
|
-
|
|
2241
|
-
function
|
|
2248
|
+
var It = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
2249
|
+
Dt || It.splice(1, 1);
|
|
2250
|
+
function qn() {
|
|
2242
2251
|
return {
|
|
2243
|
-
order:
|
|
2252
|
+
order: It,
|
|
2244
2253
|
lookupQuerystring: "lng",
|
|
2245
2254
|
lookupCookie: "i18next",
|
|
2246
2255
|
lookupLocalStorage: "i18nextLng",
|
|
@@ -2255,7 +2264,7 @@ function $n() {
|
|
|
2255
2264
|
}
|
|
2256
2265
|
};
|
|
2257
2266
|
}
|
|
2258
|
-
var
|
|
2267
|
+
var Ft = /* @__PURE__ */ function() {
|
|
2259
2268
|
function i(e) {
|
|
2260
2269
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2261
2270
|
B(this, i), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
@@ -2266,9 +2275,9 @@ var Dt = /* @__PURE__ */ function() {
|
|
|
2266
2275
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2267
2276
|
this.services = t || {
|
|
2268
2277
|
languageUtils: {}
|
|
2269
|
-
}, this.options =
|
|
2278
|
+
}, this.options = An(n, this.options || {}, qn()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(a) {
|
|
2270
2279
|
return a.replace("-", "_");
|
|
2271
|
-
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(
|
|
2280
|
+
}), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = r, this.addDetector(Dn), this.addDetector(In), this.addDetector(Fn), this.addDetector(Un), this.addDetector(Bn), this.addDetector(Hn), this.addDetector(Mn), this.addDetector($n);
|
|
2272
2281
|
}
|
|
2273
2282
|
}, {
|
|
2274
2283
|
key: "addDetector",
|
|
@@ -2300,21 +2309,21 @@ var Dt = /* @__PURE__ */ function() {
|
|
|
2300
2309
|
}
|
|
2301
2310
|
}]);
|
|
2302
2311
|
}();
|
|
2303
|
-
|
|
2304
|
-
function
|
|
2312
|
+
Ft.type = "languageDetector";
|
|
2313
|
+
function Kn() {
|
|
2305
2314
|
if (console && console.warn) {
|
|
2306
2315
|
for (var i, e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
2307
2316
|
t[n] = arguments[n];
|
|
2308
2317
|
typeof t[0] == "string" && (t[0] = "react-i18next:: ".concat(t[0])), (i = console).warn.apply(i, t);
|
|
2309
2318
|
}
|
|
2310
2319
|
}
|
|
2311
|
-
var
|
|
2312
|
-
function
|
|
2320
|
+
var pt = {};
|
|
2321
|
+
function Ae() {
|
|
2313
2322
|
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
2314
2323
|
e[t] = arguments[t];
|
|
2315
|
-
typeof e[0] == "string" &&
|
|
2324
|
+
typeof e[0] == "string" && pt[e[0]] || (typeof e[0] == "string" && (pt[e[0]] = /* @__PURE__ */ new Date()), Kn.apply(void 0, e));
|
|
2316
2325
|
}
|
|
2317
|
-
var
|
|
2326
|
+
var Ut = function(e, t) {
|
|
2318
2327
|
return function() {
|
|
2319
2328
|
if (e.isInitialized)
|
|
2320
2329
|
t();
|
|
@@ -2328,15 +2337,15 @@ var It = function(e, t) {
|
|
|
2328
2337
|
}
|
|
2329
2338
|
};
|
|
2330
2339
|
};
|
|
2331
|
-
function
|
|
2332
|
-
i.loadNamespaces(e,
|
|
2340
|
+
function gt(i, e, t) {
|
|
2341
|
+
i.loadNamespaces(e, Ut(i, t));
|
|
2333
2342
|
}
|
|
2334
|
-
function
|
|
2343
|
+
function ht(i, e, t, n) {
|
|
2335
2344
|
typeof t == "string" && (t = [t]), t.forEach(function(r) {
|
|
2336
2345
|
i.options.ns.indexOf(r) < 0 && i.options.ns.push(r);
|
|
2337
|
-
}), i.loadLanguages(e,
|
|
2346
|
+
}), i.loadLanguages(e, Ut(i, n));
|
|
2338
2347
|
}
|
|
2339
|
-
function
|
|
2348
|
+
function zn(i, e) {
|
|
2340
2349
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = e.languages[0], r = e.options ? e.options.fallbackLng : !1, a = e.languages[e.languages.length - 1];
|
|
2341
2350
|
if (n.toLowerCase() === "cimode")
|
|
2342
2351
|
return !0;
|
|
@@ -2349,7 +2358,7 @@ function Kn(i, e) {
|
|
|
2349
2358
|
function Vn(i, e) {
|
|
2350
2359
|
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2351
2360
|
if (!e.languages || !e.languages.length)
|
|
2352
|
-
return
|
|
2361
|
+
return Ae("i18n.languages were undefined or empty", e.languages), !0;
|
|
2353
2362
|
var n = e.options.ignoreJSONStructure !== void 0;
|
|
2354
2363
|
return n ? e.hasLoadedNamespace(i, {
|
|
2355
2364
|
lng: t.lng,
|
|
@@ -2357,9 +2366,9 @@ function Vn(i, e) {
|
|
|
2357
2366
|
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && a.services.backendConnector.backend && a.isLanguageChangingTo && !o(a.isLanguageChangingTo, i))
|
|
2358
2367
|
return !1;
|
|
2359
2368
|
}
|
|
2360
|
-
}) :
|
|
2369
|
+
}) : zn(i, e, t);
|
|
2361
2370
|
}
|
|
2362
|
-
var
|
|
2371
|
+
var Jn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Xn = {
|
|
2363
2372
|
"&": "&",
|
|
2364
2373
|
"&": "&",
|
|
2365
2374
|
"<": "<",
|
|
@@ -2380,12 +2389,12 @@ var zn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
2380
2389
|
"…": "…",
|
|
2381
2390
|
"/": "/",
|
|
2382
2391
|
"/": "/"
|
|
2383
|
-
}, Xn = function(e) {
|
|
2384
|
-
return Jn[e];
|
|
2385
2392
|
}, Wn = function(e) {
|
|
2386
|
-
return e
|
|
2393
|
+
return Xn[e];
|
|
2394
|
+
}, Gn = function(e) {
|
|
2395
|
+
return e.replace(Jn, Wn);
|
|
2387
2396
|
};
|
|
2388
|
-
function
|
|
2397
|
+
function vt(i, e) {
|
|
2389
2398
|
var t = Object.keys(i);
|
|
2390
2399
|
if (Object.getOwnPropertySymbols) {
|
|
2391
2400
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -2395,18 +2404,18 @@ function ht(i, e) {
|
|
|
2395
2404
|
}
|
|
2396
2405
|
return t;
|
|
2397
2406
|
}
|
|
2398
|
-
function
|
|
2407
|
+
function mt(i) {
|
|
2399
2408
|
for (var e = 1; e < arguments.length; e++) {
|
|
2400
2409
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
2401
|
-
e % 2 ?
|
|
2410
|
+
e % 2 ? vt(Object(t), !0).forEach(function(n) {
|
|
2402
2411
|
W(i, n, t[n]);
|
|
2403
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
2412
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : vt(Object(t)).forEach(function(n) {
|
|
2404
2413
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2405
2414
|
});
|
|
2406
2415
|
}
|
|
2407
2416
|
return i;
|
|
2408
2417
|
}
|
|
2409
|
-
var
|
|
2418
|
+
var Te = {
|
|
2410
2419
|
bindI18n: "languageChanged",
|
|
2411
2420
|
bindI18nStore: "",
|
|
2412
2421
|
transEmptyNodeValue: "",
|
|
@@ -2414,28 +2423,28 @@ var Ae = {
|
|
|
2414
2423
|
transWrapTextNodes: "",
|
|
2415
2424
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
2416
2425
|
useSuspense: !0,
|
|
2417
|
-
unescape:
|
|
2426
|
+
unescape: Gn
|
|
2418
2427
|
};
|
|
2419
|
-
function
|
|
2428
|
+
function Qn() {
|
|
2420
2429
|
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2421
|
-
|
|
2430
|
+
Te = mt(mt({}, Te), i);
|
|
2422
2431
|
}
|
|
2423
|
-
function
|
|
2424
|
-
return
|
|
2432
|
+
function Yn() {
|
|
2433
|
+
return Te;
|
|
2425
2434
|
}
|
|
2426
|
-
var
|
|
2427
|
-
function
|
|
2428
|
-
|
|
2435
|
+
var Bt;
|
|
2436
|
+
function Zn(i) {
|
|
2437
|
+
Bt = i;
|
|
2429
2438
|
}
|
|
2430
|
-
function
|
|
2431
|
-
return
|
|
2439
|
+
function er() {
|
|
2440
|
+
return Bt;
|
|
2432
2441
|
}
|
|
2433
|
-
var
|
|
2442
|
+
var tr = {
|
|
2434
2443
|
type: "3rdParty",
|
|
2435
2444
|
init: function(e) {
|
|
2436
|
-
|
|
2445
|
+
Qn(e.options.react), Zn(e);
|
|
2437
2446
|
}
|
|
2438
|
-
},
|
|
2447
|
+
}, Ht = $.createContext(), nr = function() {
|
|
2439
2448
|
function i() {
|
|
2440
2449
|
B(this, i), this.usedNamespaces = {};
|
|
2441
2450
|
}
|
|
@@ -2454,12 +2463,16 @@ var er = {
|
|
|
2454
2463
|
}
|
|
2455
2464
|
}]), i;
|
|
2456
2465
|
}();
|
|
2457
|
-
function
|
|
2466
|
+
function rr(i, e) {
|
|
2458
2467
|
var t = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
|
|
2459
2468
|
if (t != null) {
|
|
2460
2469
|
var n, r, a, o, s = [], u = !0, d = !1;
|
|
2461
2470
|
try {
|
|
2462
|
-
if (a = (t = t.call(i)).next, e
|
|
2471
|
+
if (a = (t = t.call(i)).next, e === 0) {
|
|
2472
|
+
if (Object(t) !== t)
|
|
2473
|
+
return;
|
|
2474
|
+
u = !1;
|
|
2475
|
+
} else
|
|
2463
2476
|
for (; !(u = (n = a.call(t)).done) && (s.push(n.value), s.length !== e); u = !0)
|
|
2464
2477
|
;
|
|
2465
2478
|
} catch (c) {
|
|
@@ -2476,10 +2489,10 @@ function nr(i, e) {
|
|
|
2476
2489
|
return s;
|
|
2477
2490
|
}
|
|
2478
2491
|
}
|
|
2479
|
-
function
|
|
2480
|
-
return
|
|
2492
|
+
function ir(i, e) {
|
|
2493
|
+
return Et(i) || rr(i, e) || _t(i, e) || Ct();
|
|
2481
2494
|
}
|
|
2482
|
-
function
|
|
2495
|
+
function yt(i, e) {
|
|
2483
2496
|
var t = Object.keys(i);
|
|
2484
2497
|
if (Object.getOwnPropertySymbols) {
|
|
2485
2498
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -2489,59 +2502,59 @@ function mt(i, e) {
|
|
|
2489
2502
|
}
|
|
2490
2503
|
return t;
|
|
2491
2504
|
}
|
|
2492
|
-
function
|
|
2505
|
+
function _e(i) {
|
|
2493
2506
|
for (var e = 1; e < arguments.length; e++) {
|
|
2494
2507
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
2495
|
-
e % 2 ?
|
|
2508
|
+
e % 2 ? yt(Object(t), !0).forEach(function(n) {
|
|
2496
2509
|
W(i, n, t[n]);
|
|
2497
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
2510
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : yt(Object(t)).forEach(function(n) {
|
|
2498
2511
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2499
2512
|
});
|
|
2500
2513
|
}
|
|
2501
2514
|
return i;
|
|
2502
2515
|
}
|
|
2503
|
-
var
|
|
2516
|
+
var ar = function(e, t) {
|
|
2504
2517
|
var n = $.useRef();
|
|
2505
2518
|
return $.useEffect(function() {
|
|
2506
|
-
n.current = e;
|
|
2519
|
+
n.current = t ? n.current : e;
|
|
2507
2520
|
}, [e, t]), n.current;
|
|
2508
2521
|
};
|
|
2509
|
-
function
|
|
2510
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e.i18n, n = $.useContext(
|
|
2511
|
-
if (o && !o.reportNamespaces && (o.reportNamespaces = new
|
|
2512
|
-
|
|
2513
|
-
var s = function(R,
|
|
2514
|
-
return typeof
|
|
2522
|
+
function or(i) {
|
|
2523
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = e.i18n, n = $.useContext(Ht) || {}, r = n.i18n, a = n.defaultNS, o = t || r || er();
|
|
2524
|
+
if (o && !o.reportNamespaces && (o.reportNamespaces = new nr()), !o) {
|
|
2525
|
+
Ae("You will need to pass in an i18next instance by using initReactI18next");
|
|
2526
|
+
var s = function(R, _) {
|
|
2527
|
+
return typeof _ == "string" ? _ : _ && U(_) === "object" && typeof _.defaultValue == "string" ? _.defaultValue : Array.isArray(R) ? R[R.length - 1] : R;
|
|
2515
2528
|
}, u = [s, {}, !1];
|
|
2516
2529
|
return u.t = s, u.i18n = {}, u.ready = !1, u;
|
|
2517
2530
|
}
|
|
2518
|
-
o.options.react && o.options.react.wait !== void 0 &&
|
|
2519
|
-
var d =
|
|
2531
|
+
o.options.react && o.options.react.wait !== void 0 && Ae("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
|
|
2532
|
+
var d = _e(_e(_e({}, Yn()), o.options.react), e), c = d.useSuspense, f = d.keyPrefix, p = i || a || o.options && o.options.defaultNS;
|
|
2520
2533
|
p = typeof p == "string" ? [p] : p || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(p);
|
|
2521
|
-
var g = (o.isInitialized || o.initializedStoreOnce) && p.every(function(
|
|
2522
|
-
return Vn(
|
|
2534
|
+
var g = (o.isInitialized || o.initializedStoreOnce) && p.every(function(C) {
|
|
2535
|
+
return Vn(C, o, d);
|
|
2523
2536
|
});
|
|
2524
2537
|
function b() {
|
|
2525
2538
|
return o.getFixedT(e.lng || null, d.nsMode === "fallback" ? p : p[0], f);
|
|
2526
2539
|
}
|
|
2527
|
-
var y = $.useState(b), w =
|
|
2540
|
+
var y = $.useState(b), w = ir(y, 2), v = w[0], m = w[1], S = p.join();
|
|
2528
2541
|
e.lng && (S = "".concat(e.lng).concat(S));
|
|
2529
|
-
var x =
|
|
2542
|
+
var x = ar(S), k = $.useRef(!0);
|
|
2530
2543
|
$.useEffect(function() {
|
|
2531
|
-
var
|
|
2532
|
-
k.current = !0, !g && !c && (e.lng ?
|
|
2544
|
+
var C = d.bindI18n, R = d.bindI18nStore;
|
|
2545
|
+
k.current = !0, !g && !c && (e.lng ? ht(o, e.lng, p, function() {
|
|
2533
2546
|
k.current && m(b);
|
|
2534
|
-
}) :
|
|
2547
|
+
}) : gt(o, p, function() {
|
|
2535
2548
|
k.current && m(b);
|
|
2536
2549
|
})), g && x && x !== S && k.current && m(b);
|
|
2537
|
-
function
|
|
2550
|
+
function _() {
|
|
2538
2551
|
k.current && m(b);
|
|
2539
2552
|
}
|
|
2540
|
-
return
|
|
2541
|
-
k.current = !1,
|
|
2542
|
-
return o.off(
|
|
2543
|
-
}), R && o && R.split(" ").forEach(function(
|
|
2544
|
-
return o.store.off(
|
|
2553
|
+
return C && o && o.on(C, _), R && o && o.store.on(R, _), function() {
|
|
2554
|
+
k.current = !1, C && o && C.split(" ").forEach(function(Y) {
|
|
2555
|
+
return o.off(Y, _);
|
|
2556
|
+
}), R && o && R.split(" ").forEach(function(Y) {
|
|
2557
|
+
return o.store.off(Y, _);
|
|
2545
2558
|
});
|
|
2546
2559
|
};
|
|
2547
2560
|
}, [o, S]);
|
|
@@ -2552,37 +2565,37 @@ function ar(i) {
|
|
|
2552
2565
|
var I = [v, o, g];
|
|
2553
2566
|
if (I.t = v, I.i18n = o, I.ready = g, g || !g && !c)
|
|
2554
2567
|
return I;
|
|
2555
|
-
throw new Promise(function(
|
|
2556
|
-
e.lng ?
|
|
2557
|
-
return
|
|
2558
|
-
}) :
|
|
2559
|
-
return
|
|
2568
|
+
throw new Promise(function(C) {
|
|
2569
|
+
e.lng ? ht(o, e.lng, p, function() {
|
|
2570
|
+
return C();
|
|
2571
|
+
}) : gt(o, p, function() {
|
|
2572
|
+
return C();
|
|
2560
2573
|
});
|
|
2561
2574
|
});
|
|
2562
2575
|
}
|
|
2563
|
-
function
|
|
2576
|
+
function sr(i) {
|
|
2564
2577
|
var e = i.i18n, t = i.defaultNS, n = i.children, r = $.useMemo(function() {
|
|
2565
2578
|
return {
|
|
2566
2579
|
i18n: e,
|
|
2567
2580
|
defaultNS: t
|
|
2568
2581
|
};
|
|
2569
2582
|
}, [e, t]);
|
|
2570
|
-
return $.createElement(
|
|
2583
|
+
return $.createElement(Ht.Provider, {
|
|
2571
2584
|
value: r
|
|
2572
2585
|
}, n);
|
|
2573
2586
|
}
|
|
2574
|
-
var
|
|
2575
|
-
function
|
|
2576
|
-
return
|
|
2587
|
+
var Mt = [], ur = Mt.forEach, fr = Mt.slice;
|
|
2588
|
+
function cr(i) {
|
|
2589
|
+
return ur.call(fr.call(arguments, 1), function(e) {
|
|
2577
2590
|
if (e)
|
|
2578
2591
|
for (var t in e)
|
|
2579
2592
|
i[t] === void 0 && (i[t] = e[t]);
|
|
2580
2593
|
}), i;
|
|
2581
2594
|
}
|
|
2582
|
-
function
|
|
2595
|
+
function lr(i) {
|
|
2583
2596
|
return i ? typeof i == "function" ? new i() : i : null;
|
|
2584
2597
|
}
|
|
2585
|
-
function
|
|
2598
|
+
function dr() {
|
|
2586
2599
|
return {
|
|
2587
2600
|
handleEmptyResourcesAsFailed: !0,
|
|
2588
2601
|
cacheHitMode: "none"
|
|
@@ -2590,7 +2603,7 @@ function lr() {
|
|
|
2590
2603
|
// refreshExpirationTime: 60 * 60 * 1000
|
|
2591
2604
|
};
|
|
2592
2605
|
}
|
|
2593
|
-
function
|
|
2606
|
+
function bt(i, e, t, n) {
|
|
2594
2607
|
var r = i.read.bind(i);
|
|
2595
2608
|
if (r.length === 2) {
|
|
2596
2609
|
try {
|
|
@@ -2605,7 +2618,7 @@ function yt(i, e, t, n) {
|
|
|
2605
2618
|
}
|
|
2606
2619
|
r(e, t, n);
|
|
2607
2620
|
}
|
|
2608
|
-
var
|
|
2621
|
+
var $t = /* @__PURE__ */ function() {
|
|
2609
2622
|
function i(e) {
|
|
2610
2623
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2611
2624
|
B(this, i), this.backends = [], this.type = "backend", this.allOptions = n, this.init(e, t);
|
|
@@ -2614,8 +2627,8 @@ var Ht = /* @__PURE__ */ function() {
|
|
|
2614
2627
|
key: "init",
|
|
2615
2628
|
value: function(t) {
|
|
2616
2629
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2617
|
-
this.services = t, this.options =
|
|
2618
|
-
n.backends[s] = n.backends[s] ||
|
|
2630
|
+
this.services = t, this.options = cr(r, this.options || {}, dr()), this.allOptions = a, this.options.backends && this.options.backends.forEach(function(o, s) {
|
|
2631
|
+
n.backends[s] = n.backends[s] || lr(o), n.backends[s].init(t, n.options.backendOptions && n.options.backendOptions[s] || {}, a);
|
|
2619
2632
|
}), this.services && this.options.reloadInterval && setInterval(function() {
|
|
2620
2633
|
return n.reload();
|
|
2621
2634
|
}, this.options.reloadInterval);
|
|
@@ -2627,13 +2640,13 @@ var Ht = /* @__PURE__ */ function() {
|
|
|
2627
2640
|
if (c >= o)
|
|
2628
2641
|
return r(new Error("non of the backend loaded data", !0));
|
|
2629
2642
|
var f = c === o - 1, p = a.options.handleEmptyResourcesAsFailed && !f ? 0 : -1, g = a.backends[c];
|
|
2630
|
-
g.read ?
|
|
2643
|
+
g.read ? bt(g, t, n, function(b, y, w) {
|
|
2631
2644
|
if (!b && y && Object.keys(y).length > p) {
|
|
2632
2645
|
if (r(null, y, c), u(c - 1, y), g.save && a.options.cacheHitMode && ["refresh", "refreshAndUpdateStore"].indexOf(a.options.cacheHitMode) > -1) {
|
|
2633
2646
|
if (w && a.options.refreshExpirationTime && w + a.options.refreshExpirationTime > Date.now())
|
|
2634
2647
|
return;
|
|
2635
2648
|
var v = a.backends[c + 1];
|
|
2636
|
-
v && v.read &&
|
|
2649
|
+
v && v.read && bt(v, t, n, function(m, S) {
|
|
2637
2650
|
m || S && (Object.keys(S).length <= p || (u(c, S), a.options.cacheHitMode === "refreshAndUpdateStore" && a.services && a.services.resourceStore && a.services.resourceStore.addResourceBundle(t, n, S)));
|
|
2638
2651
|
});
|
|
2639
2652
|
}
|
|
@@ -2695,30 +2708,30 @@ var Ht = /* @__PURE__ */ function() {
|
|
|
2695
2708
|
}
|
|
2696
2709
|
}]), i;
|
|
2697
2710
|
}();
|
|
2698
|
-
|
|
2699
|
-
function
|
|
2711
|
+
$t.type = "backend";
|
|
2712
|
+
function De(i) {
|
|
2700
2713
|
"@babel/helpers - typeof";
|
|
2701
|
-
return
|
|
2714
|
+
return De = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2702
2715
|
return typeof e;
|
|
2703
2716
|
} : function(e) {
|
|
2704
2717
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2705
|
-
},
|
|
2718
|
+
}, De(i);
|
|
2706
2719
|
}
|
|
2707
|
-
function
|
|
2708
|
-
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" :
|
|
2709
|
-
}
|
|
2710
|
-
function dr(i) {
|
|
2711
|
-
return !!i && typeof i.then == "function";
|
|
2720
|
+
function qt() {
|
|
2721
|
+
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : De(XMLHttpRequest)) === "object";
|
|
2712
2722
|
}
|
|
2713
2723
|
function pr(i) {
|
|
2714
|
-
return
|
|
2724
|
+
return !!i && typeof i.then == "function";
|
|
2715
2725
|
}
|
|
2716
2726
|
function gr(i) {
|
|
2727
|
+
return pr(i) ? i : Promise.resolve(i);
|
|
2728
|
+
}
|
|
2729
|
+
function hr(i) {
|
|
2717
2730
|
throw new Error('Could not dynamically require "' + i + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
2718
2731
|
}
|
|
2719
|
-
var
|
|
2720
|
-
function
|
|
2721
|
-
return
|
|
2732
|
+
var Ie = { exports: {} }, ve = { exports: {} }, wt;
|
|
2733
|
+
function vr() {
|
|
2734
|
+
return wt || (wt = 1, function(i, e) {
|
|
2722
2735
|
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof ce < "u" && ce, n = function() {
|
|
2723
2736
|
function a() {
|
|
2724
2737
|
this.fetch = !1, this.DOMException = t.DOMException;
|
|
@@ -2886,13 +2899,13 @@ function hr() {
|
|
|
2886
2899
|
throw new Error("could not read FormData body as text");
|
|
2887
2900
|
return Promise.resolve(this._bodyText);
|
|
2888
2901
|
}, u.formData && (this.formData = function() {
|
|
2889
|
-
return this.text().then(
|
|
2902
|
+
return this.text().then(_);
|
|
2890
2903
|
}), this.json = function() {
|
|
2891
2904
|
return this.text().then(JSON.parse);
|
|
2892
2905
|
}, this;
|
|
2893
2906
|
}
|
|
2894
2907
|
var I = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
2895
|
-
function
|
|
2908
|
+
function C(l) {
|
|
2896
2909
|
var h = l.toUpperCase();
|
|
2897
2910
|
return I.indexOf(h) > -1 ? h : l;
|
|
2898
2911
|
}
|
|
@@ -2907,7 +2920,7 @@ function hr() {
|
|
|
2907
2920
|
this.url = l.url, this.credentials = l.credentials, h.headers || (this.headers = new y(l.headers)), this.method = l.method, this.mode = l.mode, this.signal = l.signal, !O && l._bodyInit != null && (O = l._bodyInit, l.bodyUsed = !0);
|
|
2908
2921
|
} else
|
|
2909
2922
|
this.url = String(l);
|
|
2910
|
-
if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new y(h.headers)), this.method =
|
|
2923
|
+
if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new y(h.headers)), this.method = C(h.method || this.method || "GET"), this.mode = h.mode || this.mode || null, this.signal = h.signal || this.signal, this.referrer = null, (this.method === "GET" || this.method === "HEAD") && O)
|
|
2911
2924
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2912
2925
|
if (this._initBody(O), (this.method === "GET" || this.method === "HEAD") && (h.cache === "no-store" || h.cache === "no-cache")) {
|
|
2913
2926
|
var j = /([?&])_=[^&]*/;
|
|
@@ -2922,7 +2935,7 @@ function hr() {
|
|
|
2922
2935
|
R.prototype.clone = function() {
|
|
2923
2936
|
return new R(this, { body: this._bodyInit });
|
|
2924
2937
|
};
|
|
2925
|
-
function
|
|
2938
|
+
function _(l) {
|
|
2926
2939
|
var h = new FormData();
|
|
2927
2940
|
return l.trim().split("&").forEach(function(O) {
|
|
2928
2941
|
if (O) {
|
|
@@ -2931,7 +2944,7 @@ function hr() {
|
|
|
2931
2944
|
}
|
|
2932
2945
|
}), h;
|
|
2933
2946
|
}
|
|
2934
|
-
function
|
|
2947
|
+
function Y(l) {
|
|
2935
2948
|
var h = new y(), O = l.replace(/\r?\n[\t ]+/g, " ");
|
|
2936
2949
|
return O.split("\r").map(function(j) {
|
|
2937
2950
|
return j.indexOf(`
|
|
@@ -2989,12 +3002,12 @@ function hr() {
|
|
|
2989
3002
|
var F = {
|
|
2990
3003
|
status: P.status,
|
|
2991
3004
|
statusText: P.statusText,
|
|
2992
|
-
headers:
|
|
3005
|
+
headers: Y(P.getAllResponseHeaders() || "")
|
|
2993
3006
|
};
|
|
2994
3007
|
F.url = "responseURL" in P ? P.responseURL : F.headers.get("X-Request-URL");
|
|
2995
|
-
var
|
|
3008
|
+
var z = "response" in P ? P.response : P.responseText;
|
|
2996
3009
|
setTimeout(function() {
|
|
2997
|
-
O(new A(
|
|
3010
|
+
O(new A(z, F));
|
|
2998
3011
|
}, 0);
|
|
2999
3012
|
}, P.onerror = function() {
|
|
3000
3013
|
setTimeout(function() {
|
|
@@ -3018,8 +3031,8 @@ function hr() {
|
|
|
3018
3031
|
}
|
|
3019
3032
|
P.open(L.method, je(L.url), !0), L.credentials === "include" ? P.withCredentials = !0 : L.credentials === "omit" && (P.withCredentials = !1), "responseType" in P && (u.blob ? P.responseType = "blob" : u.arrayBuffer && L.headers.get("Content-Type") && L.headers.get("Content-Type").indexOf("application/octet-stream") !== -1 && (P.responseType = "arraybuffer")), h && typeof h.headers == "object" && !(h.headers instanceof y) ? Object.getOwnPropertyNames(h.headers).forEach(function(F) {
|
|
3020
3033
|
P.setRequestHeader(F, g(h.headers[F]));
|
|
3021
|
-
}) : L.headers.forEach(function(F,
|
|
3022
|
-
P.setRequestHeader(
|
|
3034
|
+
}) : L.headers.forEach(function(F, z) {
|
|
3035
|
+
P.setRequestHeader(z, F);
|
|
3023
3036
|
}), L.signal && (L.signal.addEventListener("abort", K), P.onreadystatechange = function() {
|
|
3024
3037
|
P.readyState === 4 && L.signal.removeEventListener("abort", K);
|
|
3025
3038
|
}), P.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
|
|
@@ -3033,18 +3046,18 @@ function hr() {
|
|
|
3033
3046
|
}(ve, ve.exports)), ve.exports;
|
|
3034
3047
|
}
|
|
3035
3048
|
(function(i, e) {
|
|
3036
|
-
var t
|
|
3037
|
-
if (typeof ce < "u" && ce.fetch ? t = ce.fetch : typeof window < "u" && window.fetch
|
|
3038
|
-
var n = t ||
|
|
3049
|
+
var t;
|
|
3050
|
+
if (typeof fetch == "function" && (typeof ce < "u" && ce.fetch ? t = ce.fetch : typeof window < "u" && window.fetch ? t = window.fetch : t = fetch), typeof hr < "u" && typeof window > "u") {
|
|
3051
|
+
var n = t || vr();
|
|
3039
3052
|
n.default && (n = n.default), e.default = n, i.exports = e.default;
|
|
3040
3053
|
}
|
|
3041
|
-
})(
|
|
3042
|
-
var
|
|
3043
|
-
const
|
|
3054
|
+
})(Ie, Ie.exports);
|
|
3055
|
+
var Kt = Ie.exports;
|
|
3056
|
+
const zt = /* @__PURE__ */ Wt(Kt), Ot = /* @__PURE__ */ Qt({
|
|
3044
3057
|
__proto__: null,
|
|
3045
|
-
default:
|
|
3046
|
-
}, [
|
|
3047
|
-
function
|
|
3058
|
+
default: zt
|
|
3059
|
+
}, [Kt]);
|
|
3060
|
+
function St(i, e) {
|
|
3048
3061
|
var t = Object.keys(i);
|
|
3049
3062
|
if (Object.getOwnPropertySymbols) {
|
|
3050
3063
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -3054,30 +3067,30 @@ function Ot(i, e) {
|
|
|
3054
3067
|
}
|
|
3055
3068
|
return t;
|
|
3056
3069
|
}
|
|
3057
|
-
function
|
|
3070
|
+
function xt(i) {
|
|
3058
3071
|
for (var e = 1; e < arguments.length; e++) {
|
|
3059
3072
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
3060
|
-
e % 2 ?
|
|
3061
|
-
|
|
3062
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
3073
|
+
e % 2 ? St(Object(t), !0).forEach(function(n) {
|
|
3074
|
+
mr(i, n, t[n]);
|
|
3075
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : St(Object(t)).forEach(function(n) {
|
|
3063
3076
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
3064
3077
|
});
|
|
3065
3078
|
}
|
|
3066
3079
|
return i;
|
|
3067
3080
|
}
|
|
3068
|
-
function
|
|
3069
|
-
return (e =
|
|
3081
|
+
function mr(i, e, t) {
|
|
3082
|
+
return (e = yr(e)) in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
|
|
3070
3083
|
}
|
|
3071
|
-
function
|
|
3072
|
-
var e =
|
|
3084
|
+
function yr(i) {
|
|
3085
|
+
var e = br(i, "string");
|
|
3073
3086
|
return te(e) == "symbol" ? e : e + "";
|
|
3074
3087
|
}
|
|
3075
|
-
function
|
|
3088
|
+
function br(i, e) {
|
|
3076
3089
|
if (te(i) != "object" || !i)
|
|
3077
3090
|
return i;
|
|
3078
3091
|
var t = i[Symbol.toPrimitive];
|
|
3079
3092
|
if (t !== void 0) {
|
|
3080
|
-
var n = t.call(i, e);
|
|
3093
|
+
var n = t.call(i, e || "default");
|
|
3081
3094
|
if (te(n) != "object")
|
|
3082
3095
|
return n;
|
|
3083
3096
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
@@ -3092,15 +3105,15 @@ function te(i) {
|
|
|
3092
3105
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3093
3106
|
}, te(i);
|
|
3094
3107
|
}
|
|
3095
|
-
var
|
|
3096
|
-
typeof global < "u" && global.fetch ?
|
|
3108
|
+
var Q;
|
|
3109
|
+
typeof fetch == "function" && (typeof global < "u" && global.fetch ? Q = global.fetch : typeof window < "u" && window.fetch ? Q = window.fetch : Q = fetch);
|
|
3097
3110
|
var le;
|
|
3098
|
-
|
|
3111
|
+
qt() && (typeof global < "u" && global.XMLHttpRequest ? le = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (le = window.XMLHttpRequest));
|
|
3099
3112
|
var Oe;
|
|
3100
3113
|
typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? Oe = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (Oe = window.ActiveXObject));
|
|
3101
|
-
!
|
|
3102
|
-
typeof
|
|
3103
|
-
var
|
|
3114
|
+
!Q && Ot && !le && !Oe && (Q = zt || Ot);
|
|
3115
|
+
typeof Q != "function" && (Q = void 0);
|
|
3116
|
+
var Fe = function(e, t) {
|
|
3104
3117
|
if (t && te(t) === "object") {
|
|
3105
3118
|
var n = "";
|
|
3106
3119
|
for (var r in t)
|
|
@@ -3110,7 +3123,7 @@ var Ie = function(e, t) {
|
|
|
3110
3123
|
e = e + (e.indexOf("?") !== -1 ? "&" : "?") + n.slice(1);
|
|
3111
3124
|
}
|
|
3112
3125
|
return e;
|
|
3113
|
-
},
|
|
3126
|
+
}, Pt = function(e, t, n, r) {
|
|
3114
3127
|
var a = function(u) {
|
|
3115
3128
|
if (!u.ok)
|
|
3116
3129
|
return n(u.statusText || "Error", {
|
|
@@ -3130,31 +3143,31 @@ var Ie = function(e, t) {
|
|
|
3130
3143
|
return;
|
|
3131
3144
|
}
|
|
3132
3145
|
}
|
|
3133
|
-
typeof fetch == "function" ? fetch(e, t).then(a).catch(n) :
|
|
3134
|
-
},
|
|
3135
|
-
e.queryStringParams && (t =
|
|
3136
|
-
var a =
|
|
3146
|
+
typeof fetch == "function" ? fetch(e, t).then(a).catch(n) : Q(e, t).then(a).catch(n);
|
|
3147
|
+
}, jt = !1, wr = function(e, t, n, r) {
|
|
3148
|
+
e.queryStringParams && (t = Fe(t, e.queryStringParams));
|
|
3149
|
+
var a = xt({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
|
|
3137
3150
|
typeof window > "u" && typeof global < "u" && typeof global.process < "u" && global.process.versions && global.process.versions.node && (a["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), n && (a["Content-Type"] = "application/json");
|
|
3138
|
-
var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, s =
|
|
3151
|
+
var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, s = xt({
|
|
3139
3152
|
method: n ? "POST" : "GET",
|
|
3140
3153
|
body: n ? e.stringify(n) : void 0,
|
|
3141
3154
|
headers: a
|
|
3142
|
-
},
|
|
3155
|
+
}, jt ? {} : o), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
|
|
3143
3156
|
try {
|
|
3144
|
-
|
|
3157
|
+
Pt(t, s, r, u);
|
|
3145
3158
|
} catch (d) {
|
|
3146
3159
|
if (!o || Object.keys(o).length === 0 || !d.message || d.message.indexOf("not implemented") < 0)
|
|
3147
3160
|
return r(d);
|
|
3148
3161
|
try {
|
|
3149
3162
|
Object.keys(o).forEach(function(c) {
|
|
3150
3163
|
delete s[c];
|
|
3151
|
-
}),
|
|
3164
|
+
}), Pt(t, s, r, u), jt = !0;
|
|
3152
3165
|
} catch (c) {
|
|
3153
3166
|
r(c);
|
|
3154
3167
|
}
|
|
3155
3168
|
}
|
|
3156
|
-
},
|
|
3157
|
-
n && te(n) === "object" && (n =
|
|
3169
|
+
}, Or = function(e, t, n, r) {
|
|
3170
|
+
n && te(n) === "object" && (n = Fe("", n).slice(1)), e.queryStringParams && (t = Fe(t, e.queryStringParams));
|
|
3158
3171
|
try {
|
|
3159
3172
|
var a;
|
|
3160
3173
|
le ? a = new le() : a = new Oe("MSXML2.XMLHTTP.3.0"), a.open(n ? "POST" : "GET", t, 1), e.crossDomain || a.setRequestHeader("X-Requested-With", "XMLHttpRequest"), a.withCredentials = !!e.withCredentials, n && a.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), a.overrideMimeType && a.overrideMimeType("application/json");
|
|
@@ -3171,12 +3184,12 @@ var Ie = function(e, t) {
|
|
|
3171
3184
|
} catch (u) {
|
|
3172
3185
|
console && console.log(u);
|
|
3173
3186
|
}
|
|
3174
|
-
},
|
|
3187
|
+
}, Sr = function(e, t, n, r) {
|
|
3175
3188
|
if (typeof n == "function" && (r = n, n = void 0), r = r || function() {
|
|
3176
|
-
},
|
|
3177
|
-
return br(e, t, n, r);
|
|
3178
|
-
if (Mt() || typeof ActiveXObject == "function")
|
|
3189
|
+
}, Q && t.indexOf("file:") !== 0)
|
|
3179
3190
|
return wr(e, t, n, r);
|
|
3191
|
+
if (qt() || typeof ActiveXObject == "function")
|
|
3192
|
+
return Or(e, t, n, r);
|
|
3180
3193
|
r(new Error("No fetch and no xhr implementation found!"));
|
|
3181
3194
|
};
|
|
3182
3195
|
function ae(i) {
|
|
@@ -3187,7 +3200,7 @@ function ae(i) {
|
|
|
3187
3200
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
3188
3201
|
}, ae(i);
|
|
3189
3202
|
}
|
|
3190
|
-
function
|
|
3203
|
+
function kt(i, e) {
|
|
3191
3204
|
var t = Object.keys(i);
|
|
3192
3205
|
if (Object.getOwnPropertySymbols) {
|
|
3193
3206
|
var n = Object.getOwnPropertySymbols(i);
|
|
@@ -3197,34 +3210,34 @@ function jt(i, e) {
|
|
|
3197
3210
|
}
|
|
3198
3211
|
return t;
|
|
3199
3212
|
}
|
|
3200
|
-
function
|
|
3213
|
+
function Ce(i) {
|
|
3201
3214
|
for (var e = 1; e < arguments.length; e++) {
|
|
3202
3215
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
3203
|
-
e % 2 ?
|
|
3204
|
-
|
|
3205
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
3216
|
+
e % 2 ? kt(Object(t), !0).forEach(function(n) {
|
|
3217
|
+
Vt(i, n, t[n]);
|
|
3218
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : kt(Object(t)).forEach(function(n) {
|
|
3206
3219
|
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
3207
3220
|
});
|
|
3208
3221
|
}
|
|
3209
3222
|
return i;
|
|
3210
3223
|
}
|
|
3211
|
-
function
|
|
3224
|
+
function xr(i, e) {
|
|
3212
3225
|
if (!(i instanceof e))
|
|
3213
3226
|
throw new TypeError("Cannot call a class as a function");
|
|
3214
3227
|
}
|
|
3215
|
-
function
|
|
3228
|
+
function Lt(i, e) {
|
|
3216
3229
|
for (var t = 0; t < e.length; t++) {
|
|
3217
3230
|
var n = e[t];
|
|
3218
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i,
|
|
3231
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, Jt(n.key), n);
|
|
3219
3232
|
}
|
|
3220
3233
|
}
|
|
3221
3234
|
function Pr(i, e, t) {
|
|
3222
|
-
return e &&
|
|
3235
|
+
return e && Lt(i.prototype, e), t && Lt(i, t), Object.defineProperty(i, "prototype", { writable: !1 }), i;
|
|
3223
3236
|
}
|
|
3224
|
-
function
|
|
3225
|
-
return (e =
|
|
3237
|
+
function Vt(i, e, t) {
|
|
3238
|
+
return (e = Jt(e)) in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
|
|
3226
3239
|
}
|
|
3227
|
-
function
|
|
3240
|
+
function Jt(i) {
|
|
3228
3241
|
var e = jr(i, "string");
|
|
3229
3242
|
return ae(e) == "symbol" ? e : e + "";
|
|
3230
3243
|
}
|
|
@@ -3233,12 +3246,12 @@ function jr(i, e) {
|
|
|
3233
3246
|
return i;
|
|
3234
3247
|
var t = i[Symbol.toPrimitive];
|
|
3235
3248
|
if (t !== void 0) {
|
|
3236
|
-
var n = t.call(i, e);
|
|
3249
|
+
var n = t.call(i, e || "default");
|
|
3237
3250
|
if (ae(n) != "object")
|
|
3238
3251
|
return n;
|
|
3239
3252
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3240
3253
|
}
|
|
3241
|
-
return String(i);
|
|
3254
|
+
return (e === "string" ? String : Number)(i);
|
|
3242
3255
|
}
|
|
3243
3256
|
var kr = function() {
|
|
3244
3257
|
return {
|
|
@@ -3249,11 +3262,11 @@ var kr = function() {
|
|
|
3249
3262
|
},
|
|
3250
3263
|
stringify: JSON.stringify,
|
|
3251
3264
|
parsePayload: function(t, n, r) {
|
|
3252
|
-
return
|
|
3265
|
+
return Vt({}, n, r || "");
|
|
3253
3266
|
},
|
|
3254
3267
|
parseLoadPayload: function(t, n) {
|
|
3255
3268
|
},
|
|
3256
|
-
request:
|
|
3269
|
+
request: Sr,
|
|
3257
3270
|
reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
|
|
3258
3271
|
customHeaders: {},
|
|
3259
3272
|
queryStringParams: {},
|
|
@@ -3266,16 +3279,16 @@ var kr = function() {
|
|
|
3266
3279
|
cache: "default"
|
|
3267
3280
|
}
|
|
3268
3281
|
};
|
|
3269
|
-
},
|
|
3282
|
+
}, Xt = function() {
|
|
3270
3283
|
function i(e) {
|
|
3271
3284
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3272
|
-
|
|
3285
|
+
xr(this, i), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
|
|
3273
3286
|
}
|
|
3274
3287
|
return Pr(i, [{
|
|
3275
3288
|
key: "init",
|
|
3276
3289
|
value: function(t) {
|
|
3277
3290
|
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3278
|
-
if (this.services = t, this.options =
|
|
3291
|
+
if (this.services = t, this.options = Ce(Ce(Ce({}, kr()), this.options || {}), r), this.allOptions = a, this.services && this.options.reloadInterval) {
|
|
3279
3292
|
var o = setInterval(function() {
|
|
3280
3293
|
return n.reload();
|
|
3281
3294
|
}, this.options.reloadInterval);
|
|
@@ -3296,7 +3309,7 @@ var kr = function() {
|
|
|
3296
3309
|
key: "_readAny",
|
|
3297
3310
|
value: function(t, n, r, a, o) {
|
|
3298
3311
|
var s = this, u = this.options.loadPath;
|
|
3299
|
-
typeof this.options.loadPath == "function" && (u = this.options.loadPath(t, r)), u =
|
|
3312
|
+
typeof this.options.loadPath == "function" && (u = this.options.loadPath(t, r)), u = gr(u), u.then(function(d) {
|
|
3300
3313
|
if (!d)
|
|
3301
3314
|
return o(null, {});
|
|
3302
3315
|
var c = s.services.interpolator.interpolate(d, {
|
|
@@ -3379,13 +3392,13 @@ var kr = function() {
|
|
|
3379
3392
|
}
|
|
3380
3393
|
}]);
|
|
3381
3394
|
}();
|
|
3382
|
-
|
|
3395
|
+
Xt.type = "backend";
|
|
3383
3396
|
var Lr = /* @__PURE__ */ ((i) => (i.en = "en", i.de = "de", i))(Lr || {});
|
|
3384
3397
|
const Rr = {
|
|
3385
3398
|
en: "English",
|
|
3386
3399
|
de: "German"
|
|
3387
3400
|
};
|
|
3388
|
-
N.use(
|
|
3401
|
+
N.use($t).use(tr).use(Ft).init({
|
|
3389
3402
|
// defaultNS: "translation",
|
|
3390
3403
|
// resources,
|
|
3391
3404
|
initImmediate: !0,
|
|
@@ -3398,7 +3411,7 @@ N.use(Ht).use(er).use(Dt).init({
|
|
|
3398
3411
|
escapeValue: !1
|
|
3399
3412
|
},
|
|
3400
3413
|
backend: {
|
|
3401
|
-
backends: [
|
|
3414
|
+
backends: [Xt],
|
|
3402
3415
|
backendOptions: [
|
|
3403
3416
|
{
|
|
3404
3417
|
// loadPath: 'https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json',
|
|
@@ -3422,9 +3435,9 @@ const me = {
|
|
|
3422
3435
|
"text-base": "_text-base_1pwo1_26",
|
|
3423
3436
|
"mt-4": "_mt-4_1pwo1_33"
|
|
3424
3437
|
}, Er = () => {
|
|
3425
|
-
const { t: i } =
|
|
3438
|
+
const { t: i } = or();
|
|
3426
3439
|
return /* @__PURE__ */ E.jsx("div", { className: "unauth__container " + me["page-container"], children: /* @__PURE__ */ E.jsxs("div", { className: "unauth__main-content " + me["page-main-content"], children: [
|
|
3427
|
-
/* @__PURE__ */ E.jsx(
|
|
3440
|
+
/* @__PURE__ */ E.jsx(_r, {}),
|
|
3428
3441
|
/* @__PURE__ */ E.jsxs("div", { className: "unauth__main-text", children: [
|
|
3429
3442
|
/* @__PURE__ */ E.jsx("h2", { className: "unauth__main-text__title " + me["page-title"], children: i("components.unauthorizedPage.title") }),
|
|
3430
3443
|
/* @__PURE__ */ E.jsxs("p", { className: "unauth__main-text__desc " + me["text-base"], children: [
|
|
@@ -3436,7 +3449,7 @@ const me = {
|
|
|
3436
3449
|
] })
|
|
3437
3450
|
] })
|
|
3438
3451
|
] }) });
|
|
3439
|
-
},
|
|
3452
|
+
}, _r = () => /* @__PURE__ */ E.jsxs(
|
|
3440
3453
|
"svg",
|
|
3441
3454
|
{
|
|
3442
3455
|
width: "61",
|
|
@@ -3511,17 +3524,19 @@ const me = {
|
|
|
3511
3524
|
]
|
|
3512
3525
|
}
|
|
3513
3526
|
);
|
|
3514
|
-
function
|
|
3515
|
-
return /* @__PURE__ */ E.jsx(
|
|
3527
|
+
function Cr() {
|
|
3528
|
+
return /* @__PURE__ */ E.jsx(sr, { i18n: N, children: /* @__PURE__ */ E.jsx(Er, {}) });
|
|
3516
3529
|
}
|
|
3517
3530
|
{
|
|
3518
|
-
const i =
|
|
3531
|
+
const i = Gt(Cr);
|
|
3519
3532
|
customElements.define("access-denied", i);
|
|
3520
3533
|
}
|
|
3521
3534
|
export {
|
|
3522
|
-
|
|
3535
|
+
sr as I,
|
|
3523
3536
|
Lr as L,
|
|
3524
3537
|
Er as U,
|
|
3538
|
+
Ne as _,
|
|
3539
|
+
Z as a,
|
|
3525
3540
|
N as i,
|
|
3526
|
-
|
|
3541
|
+
Ar as t
|
|
3527
3542
|
};
|