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