@ukpc-lib/react 0.15.6-sandbox.saas-9173 → 0.15.9-sandbox.saas-8608.patch-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FileNotFound/index.d.ts +1 -0
- package/dist/components/index.cjs +8 -8
- package/dist/components/index.js +429 -417
- package/dist/components/main.d.ts +1 -0
- package/dist/{index.esm2017-SU-XjHDL.cjs → index.esm2017-DFQFkSzn.cjs} +96 -96
- package/dist/{index.esm2017-B6RSHWwA.js → index.esm2017-DubxH6l8.js} +6144 -5881
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.js +1 -1
- package/web-components-bundle/base-breadcrumbs/index.js +1 -0
- package/web-components-bundle/favorite-menu/index.js +2 -2
- package/web-components-bundle/file-not-found/index.js +21 -0
- package/web-components-bundle/global-menu/index.js +2 -2
- package/web-components-bundle/global-topbar/index.js +7 -5
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-DOmJ12NF.js → index-BMcWYdph.js} +1368 -1105
- package/web-components-bundle/{index-CeN2u8rJ.js → index-DUUTro2H.js} +22 -20
- package/web-components-bundle/index-LHlpISKg.js +11 -0
- package/web-components-bundle/page-not-found/index.js +39 -4
- package/web-components-bundle/index-DqxmsDJs.js +0 -48
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { r as $, c as
|
|
2
|
-
import { a as
|
|
3
|
-
function
|
|
4
|
-
for (var
|
|
5
|
-
const
|
|
6
|
-
if (typeof
|
|
7
|
-
for (const r in
|
|
1
|
+
import { r as $, c as ce, g as Jt, s as Xt, j as E } from "./react-to-web-component-w5r1Fs9q.js";
|
|
2
|
+
import { a as Wt, _ as Z } from "./setPrototypeOf-CP0c5ut2.js";
|
|
3
|
+
function Gt(i, e) {
|
|
4
|
+
for (var t = 0; t < e.length; t++) {
|
|
5
|
+
const n = e[t];
|
|
6
|
+
if (typeof n != "string" && !Array.isArray(n)) {
|
|
7
|
+
for (const r in n)
|
|
8
8
|
if (r !== "default" && !(r in i)) {
|
|
9
|
-
const a = Object.getOwnPropertyDescriptor(
|
|
9
|
+
const a = Object.getOwnPropertyDescriptor(n, r);
|
|
10
10
|
a && Object.defineProperty(i, r, a.get ? a : {
|
|
11
11
|
enumerable: !0,
|
|
12
|
-
get: () =>
|
|
12
|
+
get: () => n[r]
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
return Object.freeze(Object.defineProperty(i, Symbol.toStringTag, { value: "Module" }));
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function U(i) {
|
|
20
20
|
"@babel/helpers - typeof";
|
|
21
|
-
return
|
|
21
|
+
return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
22
22
|
return typeof e;
|
|
23
23
|
} : function(e) {
|
|
24
24
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
25
|
-
},
|
|
25
|
+
}, U(i);
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function B(i, e) {
|
|
28
28
|
if (!(i instanceof e))
|
|
29
29
|
throw new TypeError("Cannot call a class as a function");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
if (
|
|
31
|
+
function Qt(i, e) {
|
|
32
|
+
if (U(i) != "object" || !i)
|
|
33
33
|
return i;
|
|
34
|
-
var
|
|
35
|
-
if (
|
|
36
|
-
var
|
|
37
|
-
if (
|
|
38
|
-
return
|
|
34
|
+
var t = i[Symbol.toPrimitive];
|
|
35
|
+
if (t !== void 0) {
|
|
36
|
+
var n = t.call(i, e);
|
|
37
|
+
if (U(n) != "object")
|
|
38
|
+
return n;
|
|
39
39
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
40
40
|
}
|
|
41
41
|
return (e === "string" ? String : Number)(i);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
var e =
|
|
45
|
-
return
|
|
43
|
+
function kt(i) {
|
|
44
|
+
var e = Qt(i, "string");
|
|
45
|
+
return U(e) == "symbol" ? e : e + "";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
for (var
|
|
49
|
-
var
|
|
50
|
-
|
|
47
|
+
function $e(i, e) {
|
|
48
|
+
for (var t = 0; t < e.length; t++) {
|
|
49
|
+
var n = e[t];
|
|
50
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, kt(n.key), n);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function H(i, e,
|
|
54
|
-
return e &&
|
|
53
|
+
function H(i, e, t) {
|
|
54
|
+
return e && $e(i.prototype, e), t && $e(i, t), Object.defineProperty(i, "prototype", {
|
|
55
55
|
writable: !1
|
|
56
56
|
}), i;
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Se(i, e) {
|
|
59
59
|
if (typeof e != "function" && e !== null)
|
|
60
60
|
throw new TypeError("Super expression must either be null or a function");
|
|
61
61
|
i.prototype = Object.create(e && e.prototype, {
|
|
@@ -66,10 +66,10 @@ function Oe(i, e) {
|
|
|
66
66
|
}
|
|
67
67
|
}), Object.defineProperty(i, "prototype", {
|
|
68
68
|
writable: !1
|
|
69
|
-
}), e &&
|
|
69
|
+
}), e && Wt(i, e);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
if (e && (
|
|
71
|
+
function de(i, e) {
|
|
72
|
+
if (e && (U(e) == "object" || typeof e == "function"))
|
|
73
73
|
return e;
|
|
74
74
|
if (e !== void 0)
|
|
75
75
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -80,65 +80,65 @@ function X(i) {
|
|
|
80
80
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
81
81
|
}, X(i);
|
|
82
82
|
}
|
|
83
|
-
function W(i, e,
|
|
84
|
-
return (e =
|
|
85
|
-
value:
|
|
83
|
+
function W(i, e, t) {
|
|
84
|
+
return (e = kt(e)) in i ? Object.defineProperty(i, e, {
|
|
85
|
+
value: t,
|
|
86
86
|
enumerable: !0,
|
|
87
87
|
configurable: !0,
|
|
88
88
|
writable: !0
|
|
89
|
-
}) : i[e] =
|
|
89
|
+
}) : i[e] = t, i;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Lt(i) {
|
|
92
92
|
if (Array.isArray(i))
|
|
93
93
|
return i;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Yt(i) {
|
|
96
96
|
if (typeof Symbol < "u" && i[Symbol.iterator] != null || i["@@iterator"] != null)
|
|
97
97
|
return Array.from(i);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function qe(i, e) {
|
|
100
100
|
(e == null || e > i.length) && (e = i.length);
|
|
101
|
-
for (var
|
|
102
|
-
t
|
|
103
|
-
return
|
|
101
|
+
for (var t = 0, n = Array(e); t < e; t++)
|
|
102
|
+
n[t] = i[t];
|
|
103
|
+
return n;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Rt(i, e) {
|
|
106
106
|
if (i) {
|
|
107
107
|
if (typeof i == "string")
|
|
108
|
-
return
|
|
109
|
-
var
|
|
110
|
-
return
|
|
108
|
+
return qe(i, e);
|
|
109
|
+
var t = {}.toString.call(i).slice(8, -1);
|
|
110
|
+
return t === "Object" && i.constructor && (t = i.constructor.name), t === "Map" || t === "Set" ? Array.from(i) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? qe(i, e) : void 0;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Et() {
|
|
114
114
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
115
115
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
return
|
|
117
|
+
function Zt(i) {
|
|
118
|
+
return Lt(i) || Yt(i) || Rt(i) || Et();
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
var
|
|
120
|
+
function Ke(i, e) {
|
|
121
|
+
var t = Object.keys(i);
|
|
122
122
|
if (Object.getOwnPropertySymbols) {
|
|
123
|
-
var
|
|
124
|
-
e && (
|
|
123
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
124
|
+
e && (n = n.filter(function(r) {
|
|
125
125
|
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
126
|
-
})),
|
|
126
|
+
})), t.push.apply(t, n);
|
|
127
127
|
}
|
|
128
|
-
return
|
|
128
|
+
return t;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function Ve(i) {
|
|
131
131
|
for (var e = 1; e < arguments.length; e++) {
|
|
132
|
-
var
|
|
133
|
-
e % 2 ?
|
|
134
|
-
W(i,
|
|
135
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(
|
|
136
|
-
Object.defineProperty(i,
|
|
132
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
133
|
+
e % 2 ? Ke(Object(t), !0).forEach(function(n) {
|
|
134
|
+
W(i, n, t[n]);
|
|
135
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ke(Object(t)).forEach(function(n) {
|
|
136
|
+
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
return i;
|
|
140
140
|
}
|
|
141
|
-
var
|
|
141
|
+
var en = {
|
|
142
142
|
type: "logger",
|
|
143
143
|
log: function(e) {
|
|
144
144
|
this.output("log", e);
|
|
@@ -149,103 +149,103 @@ var Kt = {
|
|
|
149
149
|
error: function(e) {
|
|
150
150
|
this.output("error", e);
|
|
151
151
|
},
|
|
152
|
-
output: function(e,
|
|
153
|
-
console && console[e] && console[e].apply(console,
|
|
152
|
+
output: function(e, t) {
|
|
153
|
+
console && console[e] && console[e].apply(console, t);
|
|
154
154
|
}
|
|
155
|
-
},
|
|
155
|
+
}, tn = function() {
|
|
156
156
|
function i(e) {
|
|
157
|
-
var
|
|
158
|
-
|
|
157
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
158
|
+
B(this, i), this.init(e, t);
|
|
159
159
|
}
|
|
160
160
|
return H(i, [{
|
|
161
161
|
key: "init",
|
|
162
|
-
value: function(
|
|
163
|
-
var
|
|
164
|
-
this.prefix =
|
|
162
|
+
value: function(t) {
|
|
163
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
164
|
+
this.prefix = n.prefix || "i18next:", this.logger = t || en, this.options = n, this.debug = n.debug;
|
|
165
165
|
}
|
|
166
166
|
}, {
|
|
167
167
|
key: "setDebug",
|
|
168
|
-
value: function(
|
|
169
|
-
this.debug =
|
|
168
|
+
value: function(t) {
|
|
169
|
+
this.debug = t;
|
|
170
170
|
}
|
|
171
171
|
}, {
|
|
172
172
|
key: "log",
|
|
173
173
|
value: function() {
|
|
174
|
-
for (var
|
|
175
|
-
|
|
176
|
-
return this.forward(
|
|
174
|
+
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
175
|
+
n[r] = arguments[r];
|
|
176
|
+
return this.forward(n, "log", "", !0);
|
|
177
177
|
}
|
|
178
178
|
}, {
|
|
179
179
|
key: "warn",
|
|
180
180
|
value: function() {
|
|
181
|
-
for (var
|
|
182
|
-
|
|
183
|
-
return this.forward(
|
|
181
|
+
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
182
|
+
n[r] = arguments[r];
|
|
183
|
+
return this.forward(n, "warn", "", !0);
|
|
184
184
|
}
|
|
185
185
|
}, {
|
|
186
186
|
key: "error",
|
|
187
187
|
value: function() {
|
|
188
|
-
for (var
|
|
189
|
-
|
|
190
|
-
return this.forward(
|
|
188
|
+
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
189
|
+
n[r] = arguments[r];
|
|
190
|
+
return this.forward(n, "error", "");
|
|
191
191
|
}
|
|
192
192
|
}, {
|
|
193
193
|
key: "deprecate",
|
|
194
194
|
value: function() {
|
|
195
|
-
for (var
|
|
196
|
-
|
|
197
|
-
return this.forward(
|
|
195
|
+
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
196
|
+
n[r] = arguments[r];
|
|
197
|
+
return this.forward(n, "warn", "WARNING DEPRECATED: ", !0);
|
|
198
198
|
}
|
|
199
199
|
}, {
|
|
200
200
|
key: "forward",
|
|
201
|
-
value: function(
|
|
202
|
-
return a && !this.debug ? null : (typeof
|
|
201
|
+
value: function(t, n, r, a) {
|
|
202
|
+
return a && !this.debug ? null : (typeof t[0] == "string" && (t[0] = "".concat(r).concat(this.prefix, " ").concat(t[0])), this.logger[n](t));
|
|
203
203
|
}
|
|
204
204
|
}, {
|
|
205
205
|
key: "create",
|
|
206
|
-
value: function(
|
|
207
|
-
return new i(this.logger,
|
|
208
|
-
prefix: "".concat(this.prefix, ":").concat(
|
|
206
|
+
value: function(t) {
|
|
207
|
+
return new i(this.logger, Ve(Ve({}, {
|
|
208
|
+
prefix: "".concat(this.prefix, ":").concat(t, ":")
|
|
209
209
|
}), this.options));
|
|
210
210
|
}
|
|
211
211
|
}, {
|
|
212
212
|
key: "clone",
|
|
213
|
-
value: function(
|
|
214
|
-
return
|
|
213
|
+
value: function(t) {
|
|
214
|
+
return t = t || this.options, t.prefix = t.prefix || this.prefix, new i(this.logger, t);
|
|
215
215
|
}
|
|
216
216
|
}]), i;
|
|
217
|
-
}(), J = new
|
|
217
|
+
}(), J = new tn(), ee = function() {
|
|
218
218
|
function i() {
|
|
219
|
-
|
|
219
|
+
B(this, i), this.observers = {};
|
|
220
220
|
}
|
|
221
221
|
return H(i, [{
|
|
222
222
|
key: "on",
|
|
223
|
-
value: function(
|
|
223
|
+
value: function(t, n) {
|
|
224
224
|
var r = this;
|
|
225
|
-
return
|
|
226
|
-
r.observers[a] = r.observers[a] || [], r.observers[a].push(
|
|
225
|
+
return t.split(" ").forEach(function(a) {
|
|
226
|
+
r.observers[a] = r.observers[a] || [], r.observers[a].push(n);
|
|
227
227
|
}), this;
|
|
228
228
|
}
|
|
229
229
|
}, {
|
|
230
230
|
key: "off",
|
|
231
|
-
value: function(
|
|
232
|
-
if (this.observers[
|
|
233
|
-
if (!
|
|
234
|
-
delete this.observers[
|
|
231
|
+
value: function(t, n) {
|
|
232
|
+
if (this.observers[t]) {
|
|
233
|
+
if (!n) {
|
|
234
|
+
delete this.observers[t];
|
|
235
235
|
return;
|
|
236
236
|
}
|
|
237
|
-
this.observers[
|
|
238
|
-
return r !==
|
|
237
|
+
this.observers[t] = this.observers[t].filter(function(r) {
|
|
238
|
+
return r !== n;
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
}, {
|
|
243
243
|
key: "emit",
|
|
244
|
-
value: function(
|
|
245
|
-
for (var
|
|
244
|
+
value: function(t) {
|
|
245
|
+
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), a = 1; a < n; a++)
|
|
246
246
|
r[a - 1] = arguments[a];
|
|
247
|
-
if (this.observers[
|
|
248
|
-
var o = [].concat(this.observers[
|
|
247
|
+
if (this.observers[t]) {
|
|
248
|
+
var o = [].concat(this.observers[t]);
|
|
249
249
|
o.forEach(function(u) {
|
|
250
250
|
u.apply(void 0, r);
|
|
251
251
|
});
|
|
@@ -253,28 +253,28 @@ var Kt = {
|
|
|
253
253
|
if (this.observers["*"]) {
|
|
254
254
|
var s = [].concat(this.observers["*"]);
|
|
255
255
|
s.forEach(function(u) {
|
|
256
|
-
u.apply(u, [
|
|
256
|
+
u.apply(u, [t].concat(r));
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
}]), i;
|
|
261
261
|
}();
|
|
262
262
|
function se() {
|
|
263
|
-
var i, e,
|
|
264
|
-
i =
|
|
263
|
+
var i, e, t = new Promise(function(n, r) {
|
|
264
|
+
i = n, e = r;
|
|
265
265
|
});
|
|
266
|
-
return
|
|
266
|
+
return t.resolve = i, t.reject = e, t;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function ze(i) {
|
|
269
269
|
return i == null ? "" : "" + i;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
i.forEach(function(
|
|
273
|
-
e[
|
|
271
|
+
function nn(i, e, t) {
|
|
272
|
+
i.forEach(function(n) {
|
|
273
|
+
e[n] && (t[n] = e[n]);
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
function
|
|
276
|
+
function Fe(i, e, t) {
|
|
277
|
+
function n(s) {
|
|
278
278
|
return s && s.indexOf("###") > -1 ? s.replace(/###/g, ".") : s;
|
|
279
279
|
}
|
|
280
280
|
function r() {
|
|
@@ -283,40 +283,40 @@ function De(i, e, n) {
|
|
|
283
283
|
for (var a = typeof e != "string" ? [].concat(e) : e.split("."); a.length > 1; ) {
|
|
284
284
|
if (r())
|
|
285
285
|
return {};
|
|
286
|
-
var o =
|
|
287
|
-
!i[o] &&
|
|
286
|
+
var o = n(a.shift());
|
|
287
|
+
!i[o] && t && (i[o] = new t()), Object.prototype.hasOwnProperty.call(i, o) ? i = i[o] : i = {};
|
|
288
288
|
}
|
|
289
289
|
return r() ? {} : {
|
|
290
290
|
obj: i,
|
|
291
|
-
k:
|
|
291
|
+
k: n(a.shift())
|
|
292
292
|
};
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
var
|
|
296
|
-
r[a] =
|
|
294
|
+
function Je(i, e, t) {
|
|
295
|
+
var n = Fe(i, e, Object), r = n.obj, a = n.k;
|
|
296
|
+
r[a] = t;
|
|
297
297
|
}
|
|
298
|
-
function
|
|
299
|
-
var r =
|
|
300
|
-
a[o] = a[o] || [], a[o].push(
|
|
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);
|
|
301
301
|
}
|
|
302
|
-
function
|
|
303
|
-
var
|
|
304
|
-
if (
|
|
305
|
-
return
|
|
302
|
+
function ye(i, e) {
|
|
303
|
+
var t = Fe(i, e), n = t.obj, r = t.k;
|
|
304
|
+
if (n)
|
|
305
|
+
return n[r];
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
var
|
|
309
|
-
return
|
|
307
|
+
function an(i, e, t) {
|
|
308
|
+
var n = ye(i, t);
|
|
309
|
+
return n !== void 0 ? n : ye(e, t);
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
for (var
|
|
313
|
-
|
|
311
|
+
function Ct(i, e, t) {
|
|
312
|
+
for (var n in e)
|
|
313
|
+
n !== "__proto__" && n !== "constructor" && (n in i ? typeof i[n] == "string" || i[n] instanceof String || typeof e[n] == "string" || e[n] instanceof String ? t && (i[n] = e[n]) : Ct(i[n], e[n], t) : i[n] = e[n]);
|
|
314
314
|
return i;
|
|
315
315
|
}
|
|
316
316
|
function re(i) {
|
|
317
317
|
return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
318
318
|
}
|
|
319
|
-
var
|
|
319
|
+
var on = {
|
|
320
320
|
"&": "&",
|
|
321
321
|
"<": "<",
|
|
322
322
|
">": ">",
|
|
@@ -324,39 +324,39 @@ var Wt = {
|
|
|
324
324
|
"'": "'",
|
|
325
325
|
"/": "/"
|
|
326
326
|
};
|
|
327
|
-
function
|
|
327
|
+
function sn(i) {
|
|
328
328
|
return typeof i == "string" ? i.replace(/[&<>"'\/]/g, function(e) {
|
|
329
|
-
return
|
|
329
|
+
return on[e];
|
|
330
330
|
}) : i;
|
|
331
331
|
}
|
|
332
|
-
var
|
|
333
|
-
function
|
|
334
|
-
e = e || "",
|
|
335
|
-
var
|
|
336
|
-
return e.indexOf(s) < 0 &&
|
|
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) {
|
|
334
|
+
e = e || "", t = t || "";
|
|
335
|
+
var n = un.filter(function(s) {
|
|
336
|
+
return e.indexOf(s) < 0 && t.indexOf(s) < 0;
|
|
337
337
|
});
|
|
338
|
-
if (
|
|
338
|
+
if (n.length === 0)
|
|
339
339
|
return !0;
|
|
340
|
-
var r = new RegExp("(".concat(
|
|
340
|
+
var r = new RegExp("(".concat(n.map(function(s) {
|
|
341
341
|
return s === "?" ? "\\?" : s;
|
|
342
342
|
}).join("|"), ")")), a = !r.test(i);
|
|
343
343
|
if (!a) {
|
|
344
|
-
var o = i.indexOf(
|
|
344
|
+
var o = i.indexOf(t);
|
|
345
345
|
o > 0 && !r.test(i.substring(0, o)) && (a = !0);
|
|
346
346
|
}
|
|
347
347
|
return a;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
350
|
-
var
|
|
349
|
+
function be(i, e) {
|
|
350
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
351
351
|
if (i) {
|
|
352
352
|
if (i[e])
|
|
353
353
|
return i[e];
|
|
354
|
-
for (var
|
|
355
|
-
if (!r || typeof r[
|
|
354
|
+
for (var n = e.split(t), r = i, a = 0; a < n.length; ++a) {
|
|
355
|
+
if (!r || typeof r[n[a]] == "string" && a + 1 < n.length)
|
|
356
356
|
return;
|
|
357
|
-
if (r[
|
|
358
|
-
for (var o = 2, s =
|
|
359
|
-
o++, s =
|
|
357
|
+
if (r[n[a]] === void 0) {
|
|
358
|
+
for (var o = 2, s = n.slice(a, a + o).join(t), u = r[s]; u === void 0 && n.length > a + o; )
|
|
359
|
+
o++, s = n.slice(a, a + o).join(t), u = r[s];
|
|
360
360
|
if (u === void 0)
|
|
361
361
|
return;
|
|
362
362
|
if (u === null)
|
|
@@ -367,48 +367,48 @@ function me(i, e) {
|
|
|
367
367
|
if (s && typeof u[s] == "string")
|
|
368
368
|
return u[s];
|
|
369
369
|
}
|
|
370
|
-
var d =
|
|
371
|
-
return d ?
|
|
370
|
+
var d = n.slice(a + o).join(t);
|
|
371
|
+
return d ? be(u, d, t) : void 0;
|
|
372
372
|
}
|
|
373
|
-
r = r[
|
|
373
|
+
r = r[n[a]];
|
|
374
374
|
}
|
|
375
375
|
return r;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
var
|
|
378
|
+
function Xe(i, e) {
|
|
379
|
+
var t = Object.keys(i);
|
|
380
380
|
if (Object.getOwnPropertySymbols) {
|
|
381
|
-
var
|
|
382
|
-
e && (
|
|
381
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
382
|
+
e && (n = n.filter(function(r) {
|
|
383
383
|
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
384
|
-
})),
|
|
384
|
+
})), t.push.apply(t, n);
|
|
385
385
|
}
|
|
386
|
-
return
|
|
386
|
+
return t;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function ge(i) {
|
|
389
389
|
for (var e = 1; e < arguments.length; e++) {
|
|
390
|
-
var
|
|
391
|
-
e % 2 ?
|
|
392
|
-
W(i,
|
|
393
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(
|
|
394
|
-
Object.defineProperty(i,
|
|
390
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
391
|
+
e % 2 ? Xe(Object(t), !0).forEach(function(n) {
|
|
392
|
+
W(i, n, t[n]);
|
|
393
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Xe(Object(t)).forEach(function(n) {
|
|
394
|
+
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
return i;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
var e =
|
|
399
|
+
function cn(i) {
|
|
400
|
+
var e = ln();
|
|
401
401
|
return function() {
|
|
402
|
-
var
|
|
402
|
+
var n = X(i), r;
|
|
403
403
|
if (e) {
|
|
404
404
|
var a = X(this).constructor;
|
|
405
|
-
r = Reflect.construct(
|
|
405
|
+
r = Reflect.construct(n, arguments, a);
|
|
406
406
|
} else
|
|
407
|
-
r =
|
|
408
|
-
return
|
|
407
|
+
r = n.apply(this, arguments);
|
|
408
|
+
return de(this, r);
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function ln() {
|
|
412
412
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
413
413
|
return !1;
|
|
414
414
|
if (typeof Proxy == "function")
|
|
@@ -420,17 +420,17 @@ function en() {
|
|
|
420
420
|
return !1;
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var
|
|
424
|
-
|
|
425
|
-
var e =
|
|
426
|
-
function n
|
|
423
|
+
var dn = function(i) {
|
|
424
|
+
Se(t, i);
|
|
425
|
+
var e = cn(t);
|
|
426
|
+
function t(n) {
|
|
427
427
|
var r, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
428
428
|
ns: ["translation"],
|
|
429
429
|
defaultNS: "translation"
|
|
430
430
|
};
|
|
431
|
-
return
|
|
431
|
+
return B(this, t), r = e.call(this), xe && ee.call(Z(r)), r.data = n || {}, r.options = a, r.options.keySeparator === void 0 && (r.options.keySeparator = "."), r.options.ignoreJSONStructure === void 0 && (r.options.ignoreJSONStructure = !0), r;
|
|
432
432
|
}
|
|
433
|
-
return H(
|
|
433
|
+
return H(t, [{
|
|
434
434
|
key: "addNamespaces",
|
|
435
435
|
value: function(r) {
|
|
436
436
|
this.options.ns.indexOf(r) < 0 && this.options.ns.push(r);
|
|
@@ -446,8 +446,8 @@ var tn = function(i) {
|
|
|
446
446
|
value: function(r, a, o) {
|
|
447
447
|
var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, u = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, d = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure, c = [r, a];
|
|
448
448
|
o && typeof o != "string" && (c = c.concat(o)), o && typeof o == "string" && (c = c.concat(u ? o.split(u) : o)), r.indexOf(".") > -1 && (c = r.split("."));
|
|
449
|
-
var f =
|
|
450
|
-
return f || !d || typeof o != "string" ? f :
|
|
449
|
+
var f = ye(this.data, c);
|
|
450
|
+
return f || !d || typeof o != "string" ? f : be(this.data && this.data[r] && this.data[r][a], o, u);
|
|
451
451
|
}
|
|
452
452
|
}, {
|
|
453
453
|
key: "addResource",
|
|
@@ -455,7 +455,7 @@ var tn = function(i) {
|
|
|
455
455
|
var u = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
456
456
|
silent: !1
|
|
457
457
|
}, d = u.keySeparator !== void 0 ? u.keySeparator : this.options.keySeparator, c = [r, a];
|
|
458
|
-
o && (c = c.concat(d ? o.split(d) : o)), r.indexOf(".") > -1 && (c = r.split("."), s = a, a = c[1]), this.addNamespaces(a),
|
|
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);
|
|
459
459
|
}
|
|
460
460
|
}, {
|
|
461
461
|
key: "addResources",
|
|
@@ -476,8 +476,8 @@ var tn = function(i) {
|
|
|
476
476
|
silent: !1
|
|
477
477
|
}, c = [r, a];
|
|
478
478
|
r.indexOf(".") > -1 && (c = r.split("."), s = o, o = a, a = c[1]), this.addNamespaces(a);
|
|
479
|
-
var f =
|
|
480
|
-
s ?
|
|
479
|
+
var f = ye(this.data, c) || {};
|
|
480
|
+
s ? Ct(f, o, u) : f = ge(ge({}, f), o), Je(this.data, c, f), d.silent || this.emit("added", r, a, o);
|
|
481
481
|
}
|
|
482
482
|
}, {
|
|
483
483
|
key: "removeResourceBundle",
|
|
@@ -492,7 +492,7 @@ var tn = function(i) {
|
|
|
492
492
|
}, {
|
|
493
493
|
key: "getResourceBundle",
|
|
494
494
|
value: function(r, a) {
|
|
495
|
-
return a || (a = this.options.defaultNS), this.options.compatibilityAPI === "v1" ?
|
|
495
|
+
return a || (a = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? ge(ge({}, {}), this.getResource(r, a)) : this.getResource(r, a);
|
|
496
496
|
}
|
|
497
497
|
}, {
|
|
498
498
|
key: "getDataByLanguage",
|
|
@@ -512,53 +512,53 @@ var tn = function(i) {
|
|
|
512
512
|
value: function() {
|
|
513
513
|
return this.data;
|
|
514
514
|
}
|
|
515
|
-
}]),
|
|
516
|
-
}(ee),
|
|
515
|
+
}]), t;
|
|
516
|
+
}(ee), _t = {
|
|
517
517
|
processors: {},
|
|
518
518
|
addPostProcessor: function(e) {
|
|
519
519
|
this.processors[e.name] = e;
|
|
520
520
|
},
|
|
521
|
-
handle: function(e,
|
|
521
|
+
handle: function(e, t, n, r, a) {
|
|
522
522
|
var o = this;
|
|
523
523
|
return e.forEach(function(s) {
|
|
524
|
-
o.processors[s] && (
|
|
525
|
-
}),
|
|
524
|
+
o.processors[s] && (t = o.processors[s].process(t, n, r, a));
|
|
525
|
+
}), t;
|
|
526
526
|
}
|
|
527
527
|
};
|
|
528
|
-
function
|
|
529
|
-
var
|
|
528
|
+
function We(i, e) {
|
|
529
|
+
var t = Object.keys(i);
|
|
530
530
|
if (Object.getOwnPropertySymbols) {
|
|
531
|
-
var
|
|
532
|
-
e && (
|
|
531
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
532
|
+
e && (n = n.filter(function(r) {
|
|
533
533
|
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
534
|
-
})),
|
|
534
|
+
})), t.push.apply(t, n);
|
|
535
535
|
}
|
|
536
|
-
return
|
|
536
|
+
return t;
|
|
537
537
|
}
|
|
538
538
|
function T(i) {
|
|
539
539
|
for (var e = 1; e < arguments.length; e++) {
|
|
540
|
-
var
|
|
541
|
-
e % 2 ?
|
|
542
|
-
W(i,
|
|
543
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(
|
|
544
|
-
Object.defineProperty(i,
|
|
540
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
541
|
+
e % 2 ? We(Object(t), !0).forEach(function(n) {
|
|
542
|
+
W(i, n, t[n]);
|
|
543
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : We(Object(t)).forEach(function(n) {
|
|
544
|
+
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
return i;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
var e =
|
|
549
|
+
function pn(i) {
|
|
550
|
+
var e = gn();
|
|
551
551
|
return function() {
|
|
552
|
-
var
|
|
552
|
+
var n = X(i), r;
|
|
553
553
|
if (e) {
|
|
554
554
|
var a = X(this).constructor;
|
|
555
|
-
r = Reflect.construct(
|
|
555
|
+
r = Reflect.construct(n, arguments, a);
|
|
556
556
|
} else
|
|
557
|
-
r =
|
|
558
|
-
return
|
|
557
|
+
r = n.apply(this, arguments);
|
|
558
|
+
return de(this, r);
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function gn() {
|
|
562
562
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
563
563
|
return !1;
|
|
564
564
|
if (typeof Proxy == "function")
|
|
@@ -570,14 +570,14 @@ function rn() {
|
|
|
570
570
|
return !1;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
var
|
|
574
|
-
|
|
575
|
-
var e =
|
|
576
|
-
function n
|
|
573
|
+
var Ge = {}, Qe = function(i) {
|
|
574
|
+
Se(t, i);
|
|
575
|
+
var e = pn(t);
|
|
576
|
+
function t(n) {
|
|
577
577
|
var r, a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
578
|
-
return
|
|
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;
|
|
579
579
|
}
|
|
580
|
-
return H(
|
|
580
|
+
return H(t, [{
|
|
581
581
|
key: "changeLanguage",
|
|
582
582
|
value: function(r) {
|
|
583
583
|
r && (this.language = r);
|
|
@@ -598,7 +598,7 @@ var Xe = {}, We = function(i) {
|
|
|
598
598
|
value: function(r, a) {
|
|
599
599
|
var o = a.nsSeparator !== void 0 ? a.nsSeparator : this.options.nsSeparator;
|
|
600
600
|
o === void 0 && (o = ":");
|
|
601
|
-
var s = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, u = a.ns || this.options.defaultNS || [], d = o && r.indexOf(o) > -1, c = !this.options.userDefinedKeySeparator && !a.keySeparator && !this.options.userDefinedNsSeparator && !a.nsSeparator && !
|
|
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);
|
|
602
602
|
if (d && !c) {
|
|
603
603
|
var f = r.match(this.interpolator.nestingRegexp);
|
|
604
604
|
if (f && f.length > 0)
|
|
@@ -618,43 +618,43 @@ var Xe = {}, We = function(i) {
|
|
|
618
618
|
key: "translate",
|
|
619
619
|
value: function(r, a, o) {
|
|
620
620
|
var s = this;
|
|
621
|
-
if (
|
|
621
|
+
if (U(a) !== "object" && this.options.overloadTranslationOptionHandler && (a = this.options.overloadTranslationOptionHandler(arguments)), U(a) === "object" && (a = T({}, a)), a || (a = {}), r == null)
|
|
622
622
|
return "";
|
|
623
623
|
Array.isArray(r) || (r = [String(r)]);
|
|
624
|
-
var u = a.returnDetails !== void 0 ? a.returnDetails : this.options.returnDetails, d = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, c = this.extractFromKey(r[r.length - 1], a), f = c.key, p = c.namespaces,
|
|
624
|
+
var u = a.returnDetails !== void 0 ? a.returnDetails : this.options.returnDetails, d = a.keySeparator !== void 0 ? a.keySeparator : this.options.keySeparator, c = this.extractFromKey(r[r.length - 1], a), f = c.key, p = c.namespaces, g = p[p.length - 1], b = a.lng || this.language, y = a.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
625
625
|
if (b && b.toLowerCase() === "cimode") {
|
|
626
626
|
if (y) {
|
|
627
|
-
var
|
|
627
|
+
var w = a.nsSeparator || this.options.nsSeparator;
|
|
628
628
|
return u ? {
|
|
629
|
-
res: "".concat(
|
|
629
|
+
res: "".concat(g).concat(w).concat(f),
|
|
630
630
|
usedKey: f,
|
|
631
631
|
exactUsedKey: f,
|
|
632
632
|
usedLng: b,
|
|
633
|
-
usedNS:
|
|
634
|
-
} : "".concat(
|
|
633
|
+
usedNS: g
|
|
634
|
+
} : "".concat(g).concat(w).concat(f);
|
|
635
635
|
}
|
|
636
636
|
return u ? {
|
|
637
637
|
res: f,
|
|
638
638
|
usedKey: f,
|
|
639
639
|
exactUsedKey: f,
|
|
640
640
|
usedLng: b,
|
|
641
|
-
usedNS:
|
|
641
|
+
usedNS: g
|
|
642
642
|
} : f;
|
|
643
643
|
}
|
|
644
|
-
var v = this.resolve(r, a), m = v && v.res, S = v && v.usedKey || f,
|
|
645
|
-
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]")) {
|
|
646
646
|
if (!a.returnObjects && !this.options.returnObjects) {
|
|
647
647
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
648
|
-
var
|
|
648
|
+
var C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(S, m, T(T({}, a), {}, {
|
|
649
649
|
ns: p
|
|
650
650
|
})) : "key '".concat(f, " (").concat(this.language, ")' returned an object instead of string.");
|
|
651
|
-
return u ? (v.res =
|
|
651
|
+
return u ? (v.res = C, v) : C;
|
|
652
652
|
}
|
|
653
653
|
if (d) {
|
|
654
|
-
var
|
|
654
|
+
var Y = k === "[object Array]", A = Y ? [] : {}, Pe = Y ? x : S;
|
|
655
655
|
for (var q in m)
|
|
656
656
|
if (Object.prototype.hasOwnProperty.call(m, q)) {
|
|
657
|
-
var l = "".concat(
|
|
657
|
+
var l = "".concat(Pe).concat(d).concat(q);
|
|
658
658
|
A[q] = this.translate(l, T(T({}, a), {
|
|
659
659
|
joinArrays: !1,
|
|
660
660
|
ns: p
|
|
@@ -662,36 +662,36 @@ var Xe = {}, We = function(i) {
|
|
|
662
662
|
}
|
|
663
663
|
m = A;
|
|
664
664
|
}
|
|
665
|
-
} else if (
|
|
665
|
+
} else if (_ && typeof I == "string" && k === "[object Array]")
|
|
666
666
|
m = m.join(I), m && (m = this.extendTranslation(m, r, a, o));
|
|
667
667
|
else {
|
|
668
|
-
var
|
|
669
|
-
!this.isValidLookup(m) &&
|
|
670
|
-
var
|
|
671
|
-
if (
|
|
672
|
-
if (this.logger.log(V ? "updateKey" : "missingKey", b,
|
|
673
|
-
var
|
|
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;
|
|
669
|
+
!this.isValidLookup(m) && L && (h = !0, m = K), this.isValidLookup(m) || (O = !0, m = f);
|
|
670
|
+
var je = a.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey, F = je && O ? void 0 : m, 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), {}, {
|
|
674
674
|
keySeparator: !1
|
|
675
675
|
}));
|
|
676
|
-
|
|
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.");
|
|
677
677
|
}
|
|
678
|
-
var oe = [],
|
|
679
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
680
|
-
for (var
|
|
681
|
-
oe.push(
|
|
678
|
+
var oe = [], pe = this.languageUtils.getFallbackCodes(this.options.fallbackLng, a.lng || this.language);
|
|
679
|
+
if (this.options.saveMissingTo === "fallback" && pe && pe[0])
|
|
680
|
+
for (var ke = 0; ke < pe.length; ke++)
|
|
681
|
+
oe.push(pe[ke]);
|
|
682
682
|
else
|
|
683
683
|
this.options.saveMissingTo === "all" ? oe = this.languageUtils.toResolveHierarchy(a.lng || this.language) : oe.push(a.lng || this.language);
|
|
684
|
-
var
|
|
685
|
-
var
|
|
686
|
-
s.options.missingKeyHandler ? s.options.missingKeyHandler(ne,
|
|
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);
|
|
687
687
|
};
|
|
688
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && j ? oe.forEach(function(
|
|
689
|
-
s.pluralResolver.getSuffixes(
|
|
690
|
-
|
|
688
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && j ? oe.forEach(function(Le) {
|
|
689
|
+
s.pluralResolver.getSuffixes(Le, a).forEach(function(ne) {
|
|
690
|
+
Be([Le], f + ne, a["defaultValue".concat(ne)] || K);
|
|
691
691
|
});
|
|
692
|
-
}) :
|
|
692
|
+
}) : Be(oe, f, K));
|
|
693
693
|
}
|
|
694
|
-
m = this.extendTranslation(m, r, a, v, o),
|
|
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));
|
|
695
695
|
}
|
|
696
696
|
return u ? (v.res = m, v) : m;
|
|
697
697
|
}
|
|
@@ -712,19 +712,19 @@ var Xe = {}, We = function(i) {
|
|
|
712
712
|
var p = r.match(this.interpolator.nestingRegexp);
|
|
713
713
|
f = p && p.length;
|
|
714
714
|
}
|
|
715
|
-
var
|
|
716
|
-
if (this.options.interpolation.defaultVariables && (
|
|
715
|
+
var g = o.replace && typeof o.replace != "string" ? o.replace : o;
|
|
716
|
+
if (this.options.interpolation.defaultVariables && (g = T(T({}, this.options.interpolation.defaultVariables), g)), r = this.interpolator.interpolate(r, g, o.lng || this.language, o), c) {
|
|
717
717
|
var b = r.match(this.interpolator.nestingRegexp), y = b && b.length;
|
|
718
718
|
f < y && (o.nest = !1);
|
|
719
719
|
}
|
|
720
720
|
!o.lng && this.options.compatibilityAPI !== "v1" && s && s.res && (o.lng = s.usedLng), o.nest !== !1 && (r = this.interpolator.nest(r, function() {
|
|
721
|
-
for (var m = arguments.length, S = new Array(m),
|
|
722
|
-
S[
|
|
721
|
+
for (var m = arguments.length, S = new Array(m), x = 0; x < m; x++)
|
|
722
|
+
S[x] = arguments[x];
|
|
723
723
|
return u && u[0] === S[0] && !o.context ? (d.logger.warn("It seems you are nesting recursively key: ".concat(S[0], " in key: ").concat(a[0])), null) : d.translate.apply(d, S.concat([a]));
|
|
724
724
|
}, o)), o.interpolation && this.interpolator.reset();
|
|
725
725
|
}
|
|
726
|
-
var
|
|
727
|
-
return r != null && v && v.length && o.applyPostProcessor !== !1 && (r =
|
|
726
|
+
var w = o.postProcess || this.options.postProcess, v = typeof w == "string" ? [w] : w;
|
|
727
|
+
return r != null && v && v.length && o.applyPostProcessor !== !1 && (r = _t.handle(v, r, a, this.options && this.options.postProcessPassResolved ? T({
|
|
728
728
|
i18nResolved: s
|
|
729
729
|
}, o) : o, this)), r;
|
|
730
730
|
}
|
|
@@ -734,29 +734,29 @@ var Xe = {}, We = function(i) {
|
|
|
734
734
|
var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, s, u, d, c, f;
|
|
735
735
|
return typeof r == "string" && (r = [r]), r.forEach(function(p) {
|
|
736
736
|
if (!a.isValidLookup(s)) {
|
|
737
|
-
var
|
|
737
|
+
var g = a.extractFromKey(p, o), b = g.key;
|
|
738
738
|
u = b;
|
|
739
|
-
var y =
|
|
739
|
+
var y = g.namespaces;
|
|
740
740
|
a.options.fallbackNS && (y = y.concat(a.options.fallbackNS));
|
|
741
|
-
var
|
|
742
|
-
y.forEach(function(
|
|
743
|
-
a.isValidLookup(s) || (f =
|
|
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);
|
|
742
|
+
y.forEach(function(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) {
|
|
744
744
|
if (!a.isValidLookup(s)) {
|
|
745
|
-
c =
|
|
745
|
+
c = k;
|
|
746
746
|
var D = [b];
|
|
747
747
|
if (a.i18nFormat && a.i18nFormat.addLookupKeys)
|
|
748
|
-
a.i18nFormat.addLookupKeys(D, b,
|
|
748
|
+
a.i18nFormat.addLookupKeys(D, b, k, x, o);
|
|
749
749
|
else {
|
|
750
750
|
var I;
|
|
751
|
-
|
|
752
|
-
var
|
|
753
|
-
if (
|
|
754
|
-
var
|
|
755
|
-
D.push(
|
|
751
|
+
w && (I = a.pluralResolver.getSuffix(k, o.count, o));
|
|
752
|
+
var _ = "".concat(a.options.pluralSeparator, "zero");
|
|
753
|
+
if (w && (D.push(b + I), v && D.push(b + _)), m) {
|
|
754
|
+
var R = "".concat(b).concat(a.options.contextSeparator).concat(o.context);
|
|
755
|
+
D.push(R), w && (D.push(R + I), v && D.push(R + _));
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
|
-
for (var
|
|
759
|
-
a.isValidLookup(s) || (d =
|
|
758
|
+
for (var C; C = D.pop(); )
|
|
759
|
+
a.isValidLookup(s) || (d = C, s = a.getResource(k, x, C, o));
|
|
760
760
|
}
|
|
761
761
|
}));
|
|
762
762
|
});
|
|
@@ -789,65 +789,65 @@ var Xe = {}, We = function(i) {
|
|
|
789
789
|
return !0;
|
|
790
790
|
return !1;
|
|
791
791
|
}
|
|
792
|
-
}]),
|
|
792
|
+
}]), t;
|
|
793
793
|
}(ee);
|
|
794
|
-
function
|
|
794
|
+
function Ee(i) {
|
|
795
795
|
return i.charAt(0).toUpperCase() + i.slice(1);
|
|
796
796
|
}
|
|
797
|
-
var
|
|
797
|
+
var Ye = function() {
|
|
798
798
|
function i(e) {
|
|
799
|
-
|
|
799
|
+
B(this, i), this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = J.create("languageUtils");
|
|
800
800
|
}
|
|
801
801
|
return H(i, [{
|
|
802
802
|
key: "getScriptPartFromCode",
|
|
803
|
-
value: function(
|
|
804
|
-
if (!
|
|
803
|
+
value: function(t) {
|
|
804
|
+
if (!t || t.indexOf("-") < 0)
|
|
805
805
|
return null;
|
|
806
|
-
var
|
|
807
|
-
return
|
|
806
|
+
var n = t.split("-");
|
|
807
|
+
return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
|
|
808
808
|
}
|
|
809
809
|
}, {
|
|
810
810
|
key: "getLanguagePartFromCode",
|
|
811
|
-
value: function(
|
|
812
|
-
if (!
|
|
813
|
-
return
|
|
814
|
-
var
|
|
815
|
-
return this.formatLanguageCode(
|
|
811
|
+
value: function(t) {
|
|
812
|
+
if (!t || t.indexOf("-") < 0)
|
|
813
|
+
return t;
|
|
814
|
+
var n = t.split("-");
|
|
815
|
+
return this.formatLanguageCode(n[0]);
|
|
816
816
|
}
|
|
817
817
|
}, {
|
|
818
818
|
key: "formatLanguageCode",
|
|
819
|
-
value: function(
|
|
820
|
-
if (typeof
|
|
821
|
-
var
|
|
819
|
+
value: function(t) {
|
|
820
|
+
if (typeof t == "string" && t.indexOf("-") > -1) {
|
|
821
|
+
var n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], r = t.split("-");
|
|
822
822
|
return this.options.lowerCaseLng ? r = r.map(function(a) {
|
|
823
823
|
return a.toLowerCase();
|
|
824
|
-
}) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(),
|
|
824
|
+
}) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Ee(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Ee(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Ee(r[2].toLowerCase()))), r.join("-");
|
|
825
825
|
}
|
|
826
|
-
return this.options.cleanCode || this.options.lowerCaseLng ?
|
|
826
|
+
return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
|
|
827
827
|
}
|
|
828
828
|
}, {
|
|
829
829
|
key: "isSupportedCode",
|
|
830
|
-
value: function(
|
|
831
|
-
return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (
|
|
830
|
+
value: function(t) {
|
|
831
|
+
return (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) && (t = this.getLanguagePartFromCode(t)), !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.indexOf(t) > -1;
|
|
832
832
|
}
|
|
833
833
|
}, {
|
|
834
834
|
key: "getBestMatchFromCodes",
|
|
835
|
-
value: function(
|
|
836
|
-
var
|
|
837
|
-
if (!
|
|
835
|
+
value: function(t) {
|
|
836
|
+
var n = this;
|
|
837
|
+
if (!t)
|
|
838
838
|
return null;
|
|
839
839
|
var r;
|
|
840
|
-
return
|
|
840
|
+
return t.forEach(function(a) {
|
|
841
841
|
if (!r) {
|
|
842
|
-
var o =
|
|
843
|
-
(!
|
|
842
|
+
var o = n.formatLanguageCode(a);
|
|
843
|
+
(!n.options.supportedLngs || n.isSupportedCode(o)) && (r = o);
|
|
844
844
|
}
|
|
845
|
-
}), !r && this.options.supportedLngs &&
|
|
845
|
+
}), !r && this.options.supportedLngs && t.forEach(function(a) {
|
|
846
846
|
if (!r) {
|
|
847
|
-
var o =
|
|
848
|
-
if (
|
|
847
|
+
var o = n.getLanguagePartFromCode(a);
|
|
848
|
+
if (n.isSupportedCode(o))
|
|
849
849
|
return r = o;
|
|
850
|
-
r =
|
|
850
|
+
r = n.options.supportedLngs.find(function(s) {
|
|
851
851
|
if (s === o)
|
|
852
852
|
return s;
|
|
853
853
|
if (!(s.indexOf("-") < 0 && o.indexOf("-") < 0) && s.indexOf(o) === 0)
|
|
@@ -858,28 +858,28 @@ var Ge = function() {
|
|
|
858
858
|
}
|
|
859
859
|
}, {
|
|
860
860
|
key: "getFallbackCodes",
|
|
861
|
-
value: function(
|
|
862
|
-
if (!n)
|
|
863
|
-
return [];
|
|
864
|
-
if (typeof n == "function" && (n = n(t)), typeof n == "string" && (n = [n]), Object.prototype.toString.apply(n) === "[object Array]")
|
|
865
|
-
return n;
|
|
861
|
+
value: function(t, n) {
|
|
866
862
|
if (!t)
|
|
867
|
-
return
|
|
868
|
-
|
|
869
|
-
|
|
863
|
+
return [];
|
|
864
|
+
if (typeof t == "function" && (t = t(n)), typeof t == "string" && (t = [t]), Object.prototype.toString.apply(t) === "[object Array]")
|
|
865
|
+
return t;
|
|
866
|
+
if (!n)
|
|
867
|
+
return t.default || [];
|
|
868
|
+
var r = t[n];
|
|
869
|
+
return r || (r = t[this.getScriptPartFromCode(n)]), r || (r = t[this.formatLanguageCode(n)]), r || (r = t[this.getLanguagePartFromCode(n)]), r || (r = t.default), r || [];
|
|
870
870
|
}
|
|
871
871
|
}, {
|
|
872
872
|
key: "toResolveHierarchy",
|
|
873
|
-
value: function(
|
|
874
|
-
var r = this, a = this.getFallbackCodes(
|
|
873
|
+
value: function(t, n) {
|
|
874
|
+
var r = this, a = this.getFallbackCodes(n || this.options.fallbackLng || [], t), o = [], s = function(d) {
|
|
875
875
|
d && (r.isSupportedCode(d) ? o.push(d) : r.logger.warn("rejecting language code not found in supportedLngs: ".concat(d)));
|
|
876
876
|
};
|
|
877
|
-
return typeof
|
|
877
|
+
return typeof t == "string" && t.indexOf("-") > -1 ? (this.options.load !== "languageOnly" && s(this.formatLanguageCode(t)), this.options.load !== "languageOnly" && this.options.load !== "currentOnly" && s(this.getScriptPartFromCode(t)), this.options.load !== "currentOnly" && s(this.getLanguagePartFromCode(t))) : typeof t == "string" && s(this.formatLanguageCode(t)), a.forEach(function(u) {
|
|
878
878
|
o.indexOf(u) < 0 && s(r.formatLanguageCode(u));
|
|
879
879
|
}), o;
|
|
880
880
|
}
|
|
881
881
|
}]), i;
|
|
882
|
-
}(),
|
|
882
|
+
}(), hn = [{
|
|
883
883
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
884
884
|
nr: [1, 2],
|
|
885
885
|
fc: 1
|
|
@@ -971,7 +971,7 @@ var Ge = function() {
|
|
|
971
971
|
lngs: ["he", "iw"],
|
|
972
972
|
nr: [1, 2, 20, 21],
|
|
973
973
|
fc: 22
|
|
974
|
-
}],
|
|
974
|
+
}], vn = {
|
|
975
975
|
1: function(e) {
|
|
976
976
|
return +(e > 1);
|
|
977
977
|
},
|
|
@@ -1038,7 +1038,7 @@ var Ge = function() {
|
|
|
1038
1038
|
22: function(e) {
|
|
1039
1039
|
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
|
1040
1040
|
}
|
|
1041
|
-
},
|
|
1041
|
+
}, mn = ["v1", "v2", "v3"], Ze = {
|
|
1042
1042
|
zero: 0,
|
|
1043
1043
|
one: 1,
|
|
1044
1044
|
two: 2,
|
|
@@ -1046,131 +1046,131 @@ var Ge = function() {
|
|
|
1046
1046
|
many: 4,
|
|
1047
1047
|
other: 5
|
|
1048
1048
|
};
|
|
1049
|
-
function
|
|
1049
|
+
function yn() {
|
|
1050
1050
|
var i = {};
|
|
1051
|
-
return
|
|
1052
|
-
e.lngs.forEach(function(
|
|
1053
|
-
i[
|
|
1051
|
+
return hn.forEach(function(e) {
|
|
1052
|
+
e.lngs.forEach(function(t) {
|
|
1053
|
+
i[t] = {
|
|
1054
1054
|
numbers: e.nr,
|
|
1055
|
-
plurals:
|
|
1055
|
+
plurals: vn[e.fc]
|
|
1056
1056
|
};
|
|
1057
1057
|
});
|
|
1058
1058
|
}), i;
|
|
1059
1059
|
}
|
|
1060
|
-
var
|
|
1060
|
+
var bn = function() {
|
|
1061
1061
|
function i(e) {
|
|
1062
|
-
var
|
|
1063
|
-
|
|
1062
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1063
|
+
B(this, i), this.languageUtils = e, this.options = t, this.logger = J.create("pluralResolver"), (!this.options.compatibilityJSON || this.options.compatibilityJSON === "v4") && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = yn();
|
|
1064
1064
|
}
|
|
1065
1065
|
return H(i, [{
|
|
1066
1066
|
key: "addRule",
|
|
1067
|
-
value: function(
|
|
1068
|
-
this.rules[
|
|
1067
|
+
value: function(t, n) {
|
|
1068
|
+
this.rules[t] = n;
|
|
1069
1069
|
}
|
|
1070
1070
|
}, {
|
|
1071
1071
|
key: "getRule",
|
|
1072
|
-
value: function(
|
|
1073
|
-
var
|
|
1072
|
+
value: function(t) {
|
|
1073
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1074
1074
|
if (this.shouldUseIntlApi())
|
|
1075
1075
|
try {
|
|
1076
|
-
return new Intl.PluralRules(
|
|
1077
|
-
type:
|
|
1076
|
+
return new Intl.PluralRules(t, {
|
|
1077
|
+
type: n.ordinal ? "ordinal" : "cardinal"
|
|
1078
1078
|
});
|
|
1079
1079
|
} catch {
|
|
1080
1080
|
return;
|
|
1081
1081
|
}
|
|
1082
|
-
return this.rules[
|
|
1082
|
+
return this.rules[t] || this.rules[this.languageUtils.getLanguagePartFromCode(t)];
|
|
1083
1083
|
}
|
|
1084
1084
|
}, {
|
|
1085
1085
|
key: "needsPlural",
|
|
1086
|
-
value: function(
|
|
1087
|
-
var
|
|
1086
|
+
value: function(t) {
|
|
1087
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = this.getRule(t, n);
|
|
1088
1088
|
return this.shouldUseIntlApi() ? r && r.resolvedOptions().pluralCategories.length > 1 : r && r.numbers.length > 1;
|
|
1089
1089
|
}
|
|
1090
1090
|
}, {
|
|
1091
1091
|
key: "getPluralFormsOfKey",
|
|
1092
|
-
value: function(
|
|
1092
|
+
value: function(t, n) {
|
|
1093
1093
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
1094
|
-
return this.getSuffixes(
|
|
1095
|
-
return "".concat(
|
|
1094
|
+
return this.getSuffixes(t, r).map(function(a) {
|
|
1095
|
+
return "".concat(n).concat(a);
|
|
1096
1096
|
});
|
|
1097
1097
|
}
|
|
1098
1098
|
}, {
|
|
1099
1099
|
key: "getSuffixes",
|
|
1100
|
-
value: function(
|
|
1101
|
-
var
|
|
1100
|
+
value: function(t) {
|
|
1101
|
+
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = this.getRule(t, r);
|
|
1102
1102
|
return a ? this.shouldUseIntlApi() ? a.resolvedOptions().pluralCategories.sort(function(o, s) {
|
|
1103
|
-
return
|
|
1103
|
+
return Ze[o] - Ze[s];
|
|
1104
1104
|
}).map(function(o) {
|
|
1105
|
-
return "".concat(
|
|
1105
|
+
return "".concat(n.options.prepend).concat(o);
|
|
1106
1106
|
}) : a.numbers.map(function(o) {
|
|
1107
|
-
return
|
|
1107
|
+
return n.getSuffix(t, o, r);
|
|
1108
1108
|
}) : [];
|
|
1109
1109
|
}
|
|
1110
1110
|
}, {
|
|
1111
1111
|
key: "getSuffix",
|
|
1112
|
-
value: function(
|
|
1113
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = this.getRule(
|
|
1114
|
-
return a ? this.shouldUseIntlApi() ? "".concat(this.options.prepend).concat(a.select(
|
|
1112
|
+
value: function(t, n) {
|
|
1113
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = this.getRule(t, r);
|
|
1114
|
+
return a ? this.shouldUseIntlApi() ? "".concat(this.options.prepend).concat(a.select(n)) : this.getSuffixRetroCompatible(a, n) : (this.logger.warn("no plural rule found for: ".concat(t)), "");
|
|
1115
1115
|
}
|
|
1116
1116
|
}, {
|
|
1117
1117
|
key: "getSuffixRetroCompatible",
|
|
1118
|
-
value: function(
|
|
1119
|
-
var r = this, a =
|
|
1120
|
-
this.options.simplifyPluralSuffix &&
|
|
1118
|
+
value: function(t, n) {
|
|
1119
|
+
var r = this, a = t.noAbs ? t.plurals(n) : t.plurals(Math.abs(n)), o = t.numbers[a];
|
|
1120
|
+
this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 && (o === 2 ? o = "plural" : o === 1 && (o = ""));
|
|
1121
1121
|
var s = function() {
|
|
1122
1122
|
return r.options.prepend && o.toString() ? r.options.prepend + o.toString() : o.toString();
|
|
1123
1123
|
};
|
|
1124
|
-
return this.options.compatibilityJSON === "v1" ? o === 1 ? "" : typeof o == "number" ? "_plural_".concat(o.toString()) : s() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix &&
|
|
1124
|
+
return this.options.compatibilityJSON === "v1" ? o === 1 ? "" : typeof o == "number" ? "_plural_".concat(o.toString()) : s() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 ? s() : this.options.prepend && a.toString() ? this.options.prepend + a.toString() : a.toString();
|
|
1125
1125
|
}
|
|
1126
1126
|
}, {
|
|
1127
1127
|
key: "shouldUseIntlApi",
|
|
1128
1128
|
value: function() {
|
|
1129
|
-
return !
|
|
1129
|
+
return !mn.includes(this.options.compatibilityJSON);
|
|
1130
1130
|
}
|
|
1131
1131
|
}]), i;
|
|
1132
1132
|
}();
|
|
1133
|
-
function
|
|
1134
|
-
var
|
|
1133
|
+
function et(i, e) {
|
|
1134
|
+
var t = Object.keys(i);
|
|
1135
1135
|
if (Object.getOwnPropertySymbols) {
|
|
1136
|
-
var
|
|
1137
|
-
e && (
|
|
1136
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
1137
|
+
e && (n = n.filter(function(r) {
|
|
1138
1138
|
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
1139
|
-
})),
|
|
1139
|
+
})), t.push.apply(t, n);
|
|
1140
1140
|
}
|
|
1141
|
-
return
|
|
1141
|
+
return t;
|
|
1142
1142
|
}
|
|
1143
1143
|
function M(i) {
|
|
1144
1144
|
for (var e = 1; e < arguments.length; e++) {
|
|
1145
|
-
var
|
|
1146
|
-
e % 2 ?
|
|
1147
|
-
W(i,
|
|
1148
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(
|
|
1149
|
-
Object.defineProperty(i,
|
|
1145
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
1146
|
+
e % 2 ? et(Object(t), !0).forEach(function(n) {
|
|
1147
|
+
W(i, n, t[n]);
|
|
1148
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : et(Object(t)).forEach(function(n) {
|
|
1149
|
+
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
1152
1152
|
return i;
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1155
|
-
var
|
|
1156
|
-
return !a && r && typeof
|
|
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);
|
|
1156
|
+
return !a && r && typeof t == "string" && (a = be(i, t, n), a === void 0 && (a = be(e, t, n))), a;
|
|
1157
1157
|
}
|
|
1158
|
-
var
|
|
1158
|
+
var wn = function() {
|
|
1159
1159
|
function i() {
|
|
1160
1160
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1161
|
-
|
|
1162
|
-
return
|
|
1161
|
+
B(this, i), this.logger = J.create("interpolator"), this.options = e, this.format = e.interpolation && e.interpolation.format || function(t) {
|
|
1162
|
+
return t;
|
|
1163
1163
|
}, this.init(e);
|
|
1164
1164
|
}
|
|
1165
1165
|
return H(i, [{
|
|
1166
1166
|
key: "init",
|
|
1167
1167
|
value: function() {
|
|
1168
|
-
var
|
|
1169
|
-
|
|
1168
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1169
|
+
t.interpolation || (t.interpolation = {
|
|
1170
1170
|
escapeValue: !0
|
|
1171
1171
|
});
|
|
1172
|
-
var
|
|
1173
|
-
this.escape =
|
|
1172
|
+
var n = t.interpolation;
|
|
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();
|
|
1174
1174
|
}
|
|
1175
1175
|
}, {
|
|
1176
1176
|
key: "reset",
|
|
@@ -1180,34 +1180,34 @@ var cn = function() {
|
|
|
1180
1180
|
}, {
|
|
1181
1181
|
key: "resetRegExp",
|
|
1182
1182
|
value: function() {
|
|
1183
|
-
var
|
|
1184
|
-
this.regexp = new RegExp(
|
|
1185
|
-
var
|
|
1186
|
-
this.regexpUnescape = new RegExp(
|
|
1183
|
+
var t = "".concat(this.prefix, "(.+?)").concat(this.suffix);
|
|
1184
|
+
this.regexp = new RegExp(t, "g");
|
|
1185
|
+
var n = "".concat(this.prefix).concat(this.unescapePrefix, "(.+?)").concat(this.unescapeSuffix).concat(this.suffix);
|
|
1186
|
+
this.regexpUnescape = new RegExp(n, "g");
|
|
1187
1187
|
var r = "".concat(this.nestingPrefix, "(.+?)").concat(this.nestingSuffix);
|
|
1188
1188
|
this.nestingRegexp = new RegExp(r, "g");
|
|
1189
1189
|
}
|
|
1190
1190
|
}, {
|
|
1191
1191
|
key: "interpolate",
|
|
1192
|
-
value: function(
|
|
1192
|
+
value: function(t, n, r, a) {
|
|
1193
1193
|
var o = this, s, u, d, c = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
|
|
1194
|
-
function f(
|
|
1195
|
-
return
|
|
1194
|
+
function f(w) {
|
|
1195
|
+
return w.replace(/\$/g, "$$$$");
|
|
1196
1196
|
}
|
|
1197
1197
|
var p = function(v) {
|
|
1198
1198
|
if (v.indexOf(o.formatSeparator) < 0) {
|
|
1199
|
-
var m =
|
|
1200
|
-
return o.alwaysFormat ? o.format(m, void 0, r, M(M(M({}, a),
|
|
1199
|
+
var m = tt(n, c, v, o.options.keySeparator, o.options.ignoreJSONStructure);
|
|
1200
|
+
return o.alwaysFormat ? o.format(m, void 0, r, M(M(M({}, a), n), {}, {
|
|
1201
1201
|
interpolationkey: v
|
|
1202
1202
|
})) : m;
|
|
1203
1203
|
}
|
|
1204
|
-
var S = v.split(o.formatSeparator),
|
|
1205
|
-
return o.format(
|
|
1206
|
-
interpolationkey:
|
|
1204
|
+
var S = v.split(o.formatSeparator), x = S.shift().trim(), k = S.join(o.formatSeparator).trim();
|
|
1205
|
+
return o.format(tt(n, c, x, o.options.keySeparator, o.options.ignoreJSONStructure), k, r, M(M(M({}, a), n), {}, {
|
|
1206
|
+
interpolationkey: x
|
|
1207
1207
|
}));
|
|
1208
1208
|
};
|
|
1209
1209
|
this.resetRegExp();
|
|
1210
|
-
var
|
|
1210
|
+
var g = a && a.missingInterpolationHandler || this.options.missingInterpolationHandler, b = a && a.interpolation && a.interpolation.skipOnVariables !== void 0 ? a.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables, y = [{
|
|
1211
1211
|
regex: this.regexpUnescape,
|
|
1212
1212
|
safeValue: function(v) {
|
|
1213
1213
|
return f(v);
|
|
@@ -1218,12 +1218,12 @@ var cn = function() {
|
|
|
1218
1218
|
return o.escapeValue ? f(o.escape(v)) : f(v);
|
|
1219
1219
|
}
|
|
1220
1220
|
}];
|
|
1221
|
-
return y.forEach(function(
|
|
1222
|
-
for (d = 0; s =
|
|
1221
|
+
return y.forEach(function(w) {
|
|
1222
|
+
for (d = 0; s = w.regex.exec(t); ) {
|
|
1223
1223
|
var v = s[1].trim();
|
|
1224
1224
|
if (u = p(v), u === void 0)
|
|
1225
|
-
if (typeof
|
|
1226
|
-
var m =
|
|
1225
|
+
if (typeof g == "function") {
|
|
1226
|
+
var m = g(t, s, a);
|
|
1227
1227
|
u = typeof m == "string" ? m : "";
|
|
1228
1228
|
} else if (a && Object.prototype.hasOwnProperty.call(a, v))
|
|
1229
1229
|
u = "";
|
|
@@ -1231,141 +1231,141 @@ var cn = function() {
|
|
|
1231
1231
|
u = s[0];
|
|
1232
1232
|
continue;
|
|
1233
1233
|
} else
|
|
1234
|
-
o.logger.warn("missed to pass in variable ".concat(v, " for interpolating ").concat(
|
|
1234
|
+
o.logger.warn("missed to pass in variable ".concat(v, " for interpolating ").concat(t)), u = "";
|
|
1235
1235
|
else
|
|
1236
|
-
typeof u != "string" && !o.useRawValueToEscape && (u =
|
|
1237
|
-
var S =
|
|
1238
|
-
if (
|
|
1236
|
+
typeof u != "string" && !o.useRawValueToEscape && (u = ze(u));
|
|
1237
|
+
var S = w.safeValue(u);
|
|
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)
|
|
1239
1239
|
break;
|
|
1240
1240
|
}
|
|
1241
|
-
}),
|
|
1241
|
+
}), t;
|
|
1242
1242
|
}
|
|
1243
1243
|
}, {
|
|
1244
1244
|
key: "nest",
|
|
1245
|
-
value: function(
|
|
1245
|
+
value: function(t, n) {
|
|
1246
1246
|
var r = this, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o, s, u;
|
|
1247
|
-
function d(
|
|
1247
|
+
function d(g, b) {
|
|
1248
1248
|
var y = this.nestingOptionsSeparator;
|
|
1249
|
-
if (
|
|
1250
|
-
return
|
|
1251
|
-
var
|
|
1252
|
-
|
|
1249
|
+
if (g.indexOf(y) < 0)
|
|
1250
|
+
return g;
|
|
1251
|
+
var w = g.split(new RegExp("".concat(y, "[ ]*{"))), v = "{".concat(w[1]);
|
|
1252
|
+
g = w[0], v = this.interpolate(v, u);
|
|
1253
1253
|
var m = v.match(/'/g), S = v.match(/"/g);
|
|
1254
1254
|
(m && m.length % 2 === 0 && !S || S.length % 2 !== 0) && (v = v.replace(/'/g, '"'));
|
|
1255
1255
|
try {
|
|
1256
1256
|
u = JSON.parse(v), b && (u = M(M({}, b), u));
|
|
1257
|
-
} catch (
|
|
1258
|
-
return this.logger.warn("failed parsing options string in nesting for key ".concat(
|
|
1257
|
+
} catch (x) {
|
|
1258
|
+
return this.logger.warn("failed parsing options string in nesting for key ".concat(g), x), "".concat(g).concat(y).concat(v);
|
|
1259
1259
|
}
|
|
1260
|
-
return delete u.defaultValue,
|
|
1260
|
+
return delete u.defaultValue, g;
|
|
1261
1261
|
}
|
|
1262
|
-
for (; o = this.nestingRegexp.exec(
|
|
1262
|
+
for (; o = this.nestingRegexp.exec(t); ) {
|
|
1263
1263
|
var c = [];
|
|
1264
1264
|
u = M({}, a), u = u.replace && typeof u.replace != "string" ? u.replace : u, u.applyPostProcessor = !1, delete u.defaultValue;
|
|
1265
1265
|
var f = !1;
|
|
1266
1266
|
if (o[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(o[1])) {
|
|
1267
|
-
var p = o[1].split(this.formatSeparator).map(function(
|
|
1268
|
-
return
|
|
1267
|
+
var p = o[1].split(this.formatSeparator).map(function(g) {
|
|
1268
|
+
return g.trim();
|
|
1269
1269
|
});
|
|
1270
1270
|
o[1] = p.shift(), c = p, f = !0;
|
|
1271
1271
|
}
|
|
1272
|
-
if (s =
|
|
1272
|
+
if (s = n(d.call(this, o[1].trim(), u), u), s && o[0] === t && typeof s != "string")
|
|
1273
1273
|
return s;
|
|
1274
|
-
typeof s != "string" && (s =
|
|
1275
|
-
return r.format(
|
|
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) {
|
|
1275
|
+
return r.format(g, b, a.lng, M(M({}, a), {}, {
|
|
1276
1276
|
interpolationkey: o[1].trim()
|
|
1277
1277
|
}));
|
|
1278
|
-
}, s.trim())),
|
|
1278
|
+
}, s.trim())), t = t.replace(o[0], s), this.regexp.lastIndex = 0;
|
|
1279
1279
|
}
|
|
1280
|
-
return
|
|
1280
|
+
return t;
|
|
1281
1281
|
}
|
|
1282
1282
|
}]), i;
|
|
1283
1283
|
}();
|
|
1284
|
-
function
|
|
1285
|
-
var
|
|
1284
|
+
function nt(i, e) {
|
|
1285
|
+
var t = Object.keys(i);
|
|
1286
1286
|
if (Object.getOwnPropertySymbols) {
|
|
1287
|
-
var
|
|
1288
|
-
e && (
|
|
1287
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
1288
|
+
e && (n = n.filter(function(r) {
|
|
1289
1289
|
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
1290
|
-
})),
|
|
1290
|
+
})), t.push.apply(t, n);
|
|
1291
1291
|
}
|
|
1292
|
-
return
|
|
1292
|
+
return t;
|
|
1293
1293
|
}
|
|
1294
1294
|
function G(i) {
|
|
1295
1295
|
for (var e = 1; e < arguments.length; e++) {
|
|
1296
|
-
var
|
|
1297
|
-
e % 2 ?
|
|
1298
|
-
W(i,
|
|
1299
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(
|
|
1300
|
-
Object.defineProperty(i,
|
|
1296
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
1297
|
+
e % 2 ? nt(Object(t), !0).forEach(function(n) {
|
|
1298
|
+
W(i, n, t[n]);
|
|
1299
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : nt(Object(t)).forEach(function(n) {
|
|
1300
|
+
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1301
1301
|
});
|
|
1302
1302
|
}
|
|
1303
1303
|
return i;
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1306
|
-
var e = i.toLowerCase().trim(),
|
|
1305
|
+
function On(i) {
|
|
1306
|
+
var e = i.toLowerCase().trim(), t = {};
|
|
1307
1307
|
if (i.indexOf("(") > -1) {
|
|
1308
|
-
var
|
|
1309
|
-
e =
|
|
1310
|
-
var r =
|
|
1308
|
+
var n = i.split("(");
|
|
1309
|
+
e = n[0].toLowerCase().trim();
|
|
1310
|
+
var r = n[1].substring(0, n[1].length - 1);
|
|
1311
1311
|
if (e === "currency" && r.indexOf(":") < 0)
|
|
1312
|
-
|
|
1312
|
+
t.currency || (t.currency = r.trim());
|
|
1313
1313
|
else if (e === "relativetime" && r.indexOf(":") < 0)
|
|
1314
|
-
|
|
1314
|
+
t.range || (t.range = r.trim());
|
|
1315
1315
|
else {
|
|
1316
1316
|
var a = r.split(";");
|
|
1317
1317
|
a.forEach(function(o) {
|
|
1318
1318
|
if (o) {
|
|
1319
|
-
var s = o.split(":"), u =
|
|
1320
|
-
|
|
1319
|
+
var s = o.split(":"), u = Zt(s), d = u[0], c = u.slice(1), f = c.join(":").trim().replace(/^'+|'+$/g, "");
|
|
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));
|
|
1321
1321
|
}
|
|
1322
1322
|
});
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
1325
|
return {
|
|
1326
1326
|
formatName: e,
|
|
1327
|
-
formatOptions:
|
|
1327
|
+
formatOptions: t
|
|
1328
1328
|
};
|
|
1329
1329
|
}
|
|
1330
1330
|
function ie(i) {
|
|
1331
1331
|
var e = {};
|
|
1332
|
-
return function(
|
|
1332
|
+
return function(n, r, a) {
|
|
1333
1333
|
var o = r + JSON.stringify(a), s = e[o];
|
|
1334
|
-
return s || (s = i(r, a), e[o] = s), s(
|
|
1334
|
+
return s || (s = i(r, a), e[o] = s), s(n);
|
|
1335
1335
|
};
|
|
1336
1336
|
}
|
|
1337
|
-
var
|
|
1337
|
+
var Sn = function() {
|
|
1338
1338
|
function i() {
|
|
1339
1339
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1340
|
-
|
|
1341
|
-
number: ie(function(
|
|
1342
|
-
var r = new Intl.NumberFormat(
|
|
1340
|
+
B(this, i), this.logger = J.create("formatter"), this.options = e, this.formats = {
|
|
1341
|
+
number: ie(function(t, n) {
|
|
1342
|
+
var r = new Intl.NumberFormat(t, G({}, n));
|
|
1343
1343
|
return function(a) {
|
|
1344
1344
|
return r.format(a);
|
|
1345
1345
|
};
|
|
1346
1346
|
}),
|
|
1347
|
-
currency: ie(function(
|
|
1348
|
-
var r = new Intl.NumberFormat(
|
|
1347
|
+
currency: ie(function(t, n) {
|
|
1348
|
+
var r = new Intl.NumberFormat(t, G(G({}, n), {}, {
|
|
1349
1349
|
style: "currency"
|
|
1350
1350
|
}));
|
|
1351
1351
|
return function(a) {
|
|
1352
1352
|
return r.format(a);
|
|
1353
1353
|
};
|
|
1354
1354
|
}),
|
|
1355
|
-
datetime: ie(function(
|
|
1356
|
-
var r = new Intl.DateTimeFormat(
|
|
1355
|
+
datetime: ie(function(t, n) {
|
|
1356
|
+
var r = new Intl.DateTimeFormat(t, G({}, n));
|
|
1357
1357
|
return function(a) {
|
|
1358
1358
|
return r.format(a);
|
|
1359
1359
|
};
|
|
1360
1360
|
}),
|
|
1361
|
-
relativetime: ie(function(
|
|
1362
|
-
var r = new Intl.RelativeTimeFormat(
|
|
1361
|
+
relativetime: ie(function(t, n) {
|
|
1362
|
+
var r = new Intl.RelativeTimeFormat(t, G({}, n));
|
|
1363
1363
|
return function(a) {
|
|
1364
|
-
return r.format(a,
|
|
1364
|
+
return r.format(a, n.range || "day");
|
|
1365
1365
|
};
|
|
1366
1366
|
}),
|
|
1367
|
-
list: ie(function(
|
|
1368
|
-
var r = new Intl.ListFormat(
|
|
1367
|
+
list: ie(function(t, n) {
|
|
1368
|
+
var r = new Intl.ListFormat(t, G({}, n));
|
|
1369
1369
|
return function(a) {
|
|
1370
1370
|
return r.format(a);
|
|
1371
1371
|
};
|
|
@@ -1374,32 +1374,32 @@ var dn = function() {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
return H(i, [{
|
|
1376
1376
|
key: "init",
|
|
1377
|
-
value: function(
|
|
1378
|
-
var
|
|
1377
|
+
value: function(t) {
|
|
1378
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
1379
1379
|
interpolation: {}
|
|
1380
|
-
}, r =
|
|
1380
|
+
}, r = n.interpolation;
|
|
1381
1381
|
this.formatSeparator = r.formatSeparator ? r.formatSeparator : r.formatSeparator || ",";
|
|
1382
1382
|
}
|
|
1383
1383
|
}, {
|
|
1384
1384
|
key: "add",
|
|
1385
|
-
value: function(
|
|
1386
|
-
this.formats[
|
|
1385
|
+
value: function(t, n) {
|
|
1386
|
+
this.formats[t.toLowerCase().trim()] = n;
|
|
1387
1387
|
}
|
|
1388
1388
|
}, {
|
|
1389
1389
|
key: "addCached",
|
|
1390
|
-
value: function(
|
|
1391
|
-
this.formats[
|
|
1390
|
+
value: function(t, n) {
|
|
1391
|
+
this.formats[t.toLowerCase().trim()] = ie(n);
|
|
1392
1392
|
}
|
|
1393
1393
|
}, {
|
|
1394
1394
|
key: "format",
|
|
1395
|
-
value: function(
|
|
1396
|
-
var a = this, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, s =
|
|
1397
|
-
var f =
|
|
1395
|
+
value: function(t, n, r) {
|
|
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) {
|
|
1397
|
+
var f = On(c), p = f.formatName, g = f.formatOptions;
|
|
1398
1398
|
if (a.formats[p]) {
|
|
1399
1399
|
var b = d;
|
|
1400
1400
|
try {
|
|
1401
|
-
var y = o && o.formatParams && o.formatParams[o.interpolationkey] || {},
|
|
1402
|
-
b = a.formats[p](d,
|
|
1401
|
+
var y = o && o.formatParams && o.formatParams[o.interpolationkey] || {}, w = y.locale || y.lng || o.locale || o.lng || r;
|
|
1402
|
+
b = a.formats[p](d, w, G(G(G({}, g), o), y));
|
|
1403
1403
|
} catch (v) {
|
|
1404
1404
|
a.logger.warn(v);
|
|
1405
1405
|
}
|
|
@@ -1407,45 +1407,45 @@ var dn = function() {
|
|
|
1407
1407
|
} else
|
|
1408
1408
|
a.logger.warn("there was no format function for ".concat(p));
|
|
1409
1409
|
return d;
|
|
1410
|
-
},
|
|
1410
|
+
}, t);
|
|
1411
1411
|
return u;
|
|
1412
1412
|
}
|
|
1413
1413
|
}]), i;
|
|
1414
1414
|
}();
|
|
1415
|
-
function
|
|
1416
|
-
var
|
|
1415
|
+
function rt(i, e) {
|
|
1416
|
+
var t = Object.keys(i);
|
|
1417
1417
|
if (Object.getOwnPropertySymbols) {
|
|
1418
|
-
var
|
|
1419
|
-
e && (
|
|
1418
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
1419
|
+
e && (n = n.filter(function(r) {
|
|
1420
1420
|
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
1421
|
-
})),
|
|
1421
|
+
})), t.push.apply(t, n);
|
|
1422
1422
|
}
|
|
1423
|
-
return
|
|
1423
|
+
return t;
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1425
|
+
function it(i) {
|
|
1426
1426
|
for (var e = 1; e < arguments.length; e++) {
|
|
1427
|
-
var
|
|
1428
|
-
e % 2 ?
|
|
1429
|
-
W(i,
|
|
1430
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(
|
|
1431
|
-
Object.defineProperty(i,
|
|
1427
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
1428
|
+
e % 2 ? rt(Object(t), !0).forEach(function(n) {
|
|
1429
|
+
W(i, n, t[n]);
|
|
1430
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : rt(Object(t)).forEach(function(n) {
|
|
1431
|
+
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1432
1432
|
});
|
|
1433
1433
|
}
|
|
1434
1434
|
return i;
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1437
|
-
var e =
|
|
1436
|
+
function xn(i) {
|
|
1437
|
+
var e = Pn();
|
|
1438
1438
|
return function() {
|
|
1439
|
-
var
|
|
1439
|
+
var n = X(i), r;
|
|
1440
1440
|
if (e) {
|
|
1441
1441
|
var a = X(this).constructor;
|
|
1442
|
-
r = Reflect.construct(
|
|
1442
|
+
r = Reflect.construct(n, arguments, a);
|
|
1443
1443
|
} else
|
|
1444
|
-
r =
|
|
1445
|
-
return
|
|
1444
|
+
r = n.apply(this, arguments);
|
|
1445
|
+
return de(this, r);
|
|
1446
1446
|
};
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function Pn() {
|
|
1449
1449
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1450
1450
|
return !1;
|
|
1451
1451
|
if (typeof Proxy == "function")
|
|
@@ -1457,26 +1457,26 @@ function hn() {
|
|
|
1457
1457
|
return !1;
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function jn(i, e) {
|
|
1461
1461
|
i.pending[e] !== void 0 && (delete i.pending[e], i.pendingCount--);
|
|
1462
1462
|
}
|
|
1463
|
-
var
|
|
1464
|
-
|
|
1465
|
-
var e =
|
|
1466
|
-
function n
|
|
1463
|
+
var kn = function(i) {
|
|
1464
|
+
Se(t, i);
|
|
1465
|
+
var e = xn(t);
|
|
1466
|
+
function t(n, r, a) {
|
|
1467
1467
|
var o, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
1468
|
-
return
|
|
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;
|
|
1469
1469
|
}
|
|
1470
|
-
return H(
|
|
1470
|
+
return H(t, [{
|
|
1471
1471
|
key: "queueLoad",
|
|
1472
1472
|
value: function(r, a, o, s) {
|
|
1473
1473
|
var u = this, d = {}, c = {}, f = {}, p = {};
|
|
1474
|
-
return r.forEach(function(
|
|
1474
|
+
return r.forEach(function(g) {
|
|
1475
1475
|
var b = !0;
|
|
1476
1476
|
a.forEach(function(y) {
|
|
1477
|
-
var
|
|
1478
|
-
!o.reload && u.store.hasResourceBundle(
|
|
1479
|
-
}), b || (f[
|
|
1477
|
+
var w = "".concat(g, "|").concat(y);
|
|
1478
|
+
!o.reload && u.store.hasResourceBundle(g, y) ? u.state[w] = 2 : u.state[w] < 0 || (u.state[w] === 1 ? c[w] === void 0 && (c[w] = !0) : (u.state[w] = 1, b = !1, c[w] === void 0 && (c[w] = !0), d[w] === void 0 && (d[w] = !0), p[y] === void 0 && (p[y] = !0)));
|
|
1479
|
+
}), b || (f[g] = !0);
|
|
1480
1480
|
}), (Object.keys(d).length || Object.keys(c).length) && this.queue.push({
|
|
1481
1481
|
pending: c,
|
|
1482
1482
|
pendingCount: Object.keys(c).length,
|
|
@@ -1497,10 +1497,10 @@ var vn = function(i) {
|
|
|
1497
1497
|
a && this.emit("failedLoading", u, d, a), o && this.store.addResourceBundle(u, d, o), this.state[r] = a ? -1 : 2;
|
|
1498
1498
|
var c = {};
|
|
1499
1499
|
this.queue.forEach(function(f) {
|
|
1500
|
-
|
|
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) {
|
|
1501
1501
|
c[p] || (c[p] = {});
|
|
1502
|
-
var
|
|
1503
|
-
|
|
1502
|
+
var g = f.loaded[p];
|
|
1503
|
+
g.length && g.forEach(function(b) {
|
|
1504
1504
|
c[p][b] === void 0 && (c[p][b] = !0);
|
|
1505
1505
|
});
|
|
1506
1506
|
}), f.done = !0, f.errors.length ? f.callback(f.errors) : f.callback());
|
|
@@ -1526,25 +1526,25 @@ var vn = function(i) {
|
|
|
1526
1526
|
return;
|
|
1527
1527
|
}
|
|
1528
1528
|
this.readingCalls++;
|
|
1529
|
-
var f = function(y,
|
|
1529
|
+
var f = function(y, w) {
|
|
1530
1530
|
if (s.readingCalls--, s.waitingReads.length > 0) {
|
|
1531
1531
|
var v = s.waitingReads.shift();
|
|
1532
1532
|
s.read(v.lng, v.ns, v.fcName, v.tried, v.wait, v.callback);
|
|
1533
1533
|
}
|
|
1534
|
-
if (y &&
|
|
1534
|
+
if (y && w && u < s.maxRetries) {
|
|
1535
1535
|
setTimeout(function() {
|
|
1536
1536
|
s.read.call(s, r, a, o, u + 1, d * 2, c);
|
|
1537
1537
|
}, d);
|
|
1538
1538
|
return;
|
|
1539
1539
|
}
|
|
1540
|
-
c(y,
|
|
1540
|
+
c(y, w);
|
|
1541
1541
|
}, p = this.backend[o].bind(this.backend);
|
|
1542
1542
|
if (p.length === 2) {
|
|
1543
1543
|
try {
|
|
1544
|
-
var
|
|
1545
|
-
|
|
1544
|
+
var g = p(r, a);
|
|
1545
|
+
g && typeof g.then == "function" ? g.then(function(b) {
|
|
1546
1546
|
return f(null, b);
|
|
1547
|
-
}).catch(f) : f(null,
|
|
1547
|
+
}).catch(f) : f(null, g);
|
|
1548
1548
|
} catch (b) {
|
|
1549
1549
|
f(b);
|
|
1550
1550
|
}
|
|
@@ -1597,15 +1597,15 @@ var vn = function(i) {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
if (!(o == null || o === "")) {
|
|
1599
1599
|
if (this.backend && this.backend.create) {
|
|
1600
|
-
var f =
|
|
1600
|
+
var f = it(it({}, d), {}, {
|
|
1601
1601
|
isUpdate: u
|
|
1602
1602
|
}), p = this.backend.create.bind(this.backend);
|
|
1603
1603
|
if (p.length < 6)
|
|
1604
1604
|
try {
|
|
1605
|
-
var
|
|
1606
|
-
p.length === 5 ?
|
|
1605
|
+
var g;
|
|
1606
|
+
p.length === 5 ? g = p(r, a, o, s, f) : g = p(r, a, o, s), g && typeof g.then == "function" ? g.then(function(b) {
|
|
1607
1607
|
return c(null, b);
|
|
1608
|
-
}).catch(c) : c(null,
|
|
1608
|
+
}).catch(c) : c(null, g);
|
|
1609
1609
|
} catch (b) {
|
|
1610
1610
|
c(b);
|
|
1611
1611
|
}
|
|
@@ -1615,9 +1615,9 @@ var vn = function(i) {
|
|
|
1615
1615
|
!r || !r[0] || this.store.addResource(r[0], a, o, s);
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
|
-
}]),
|
|
1618
|
+
}]), t;
|
|
1619
1619
|
}(ee);
|
|
1620
|
-
function
|
|
1620
|
+
function at() {
|
|
1621
1621
|
return {
|
|
1622
1622
|
debug: !1,
|
|
1623
1623
|
initImmediate: !0,
|
|
@@ -1652,18 +1652,18 @@ function rt() {
|
|
|
1652
1652
|
appendNamespaceToMissingKey: !1,
|
|
1653
1653
|
appendNamespaceToCIMode: !1,
|
|
1654
1654
|
overloadTranslationOptionHandler: function(e) {
|
|
1655
|
-
var
|
|
1656
|
-
if (
|
|
1657
|
-
var
|
|
1658
|
-
Object.keys(
|
|
1659
|
-
|
|
1655
|
+
var t = {};
|
|
1656
|
+
if (U(e[1]) === "object" && (t = e[1]), typeof e[1] == "string" && (t.defaultValue = e[1]), typeof e[2] == "string" && (t.tDescription = e[2]), U(e[2]) === "object" || U(e[3]) === "object") {
|
|
1657
|
+
var n = e[3] || e[2];
|
|
1658
|
+
Object.keys(n).forEach(function(r) {
|
|
1659
|
+
t[r] = n[r];
|
|
1660
1660
|
});
|
|
1661
1661
|
}
|
|
1662
|
-
return
|
|
1662
|
+
return t;
|
|
1663
1663
|
},
|
|
1664
1664
|
interpolation: {
|
|
1665
1665
|
escapeValue: !0,
|
|
1666
|
-
format: function(e,
|
|
1666
|
+
format: function(e, t, n, r) {
|
|
1667
1667
|
return e;
|
|
1668
1668
|
},
|
|
1669
1669
|
prefix: "{{",
|
|
@@ -1678,43 +1678,43 @@ function rt() {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
};
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function ot(i) {
|
|
1682
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;
|
|
1683
1683
|
}
|
|
1684
|
-
function
|
|
1685
|
-
var
|
|
1684
|
+
function st(i, e) {
|
|
1685
|
+
var t = Object.keys(i);
|
|
1686
1686
|
if (Object.getOwnPropertySymbols) {
|
|
1687
|
-
var
|
|
1688
|
-
e && (
|
|
1687
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
1688
|
+
e && (n = n.filter(function(r) {
|
|
1689
1689
|
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
1690
|
-
})),
|
|
1690
|
+
})), t.push.apply(t, n);
|
|
1691
1691
|
}
|
|
1692
|
-
return
|
|
1692
|
+
return t;
|
|
1693
1693
|
}
|
|
1694
1694
|
function z(i) {
|
|
1695
1695
|
for (var e = 1; e < arguments.length; e++) {
|
|
1696
|
-
var
|
|
1697
|
-
e % 2 ?
|
|
1698
|
-
W(i,
|
|
1699
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(
|
|
1700
|
-
Object.defineProperty(i,
|
|
1696
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
1697
|
+
e % 2 ? st(Object(t), !0).forEach(function(n) {
|
|
1698
|
+
W(i, n, t[n]);
|
|
1699
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : st(Object(t)).forEach(function(n) {
|
|
1700
|
+
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1701
1701
|
});
|
|
1702
1702
|
}
|
|
1703
1703
|
return i;
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1706
|
-
var e =
|
|
1705
|
+
function Ln(i) {
|
|
1706
|
+
var e = Rn();
|
|
1707
1707
|
return function() {
|
|
1708
|
-
var
|
|
1708
|
+
var n = X(i), r;
|
|
1709
1709
|
if (e) {
|
|
1710
1710
|
var a = X(this).constructor;
|
|
1711
|
-
r = Reflect.construct(
|
|
1711
|
+
r = Reflect.construct(n, arguments, a);
|
|
1712
1712
|
} else
|
|
1713
|
-
r =
|
|
1714
|
-
return
|
|
1713
|
+
r = n.apply(this, arguments);
|
|
1714
|
+
return de(this, r);
|
|
1715
1715
|
};
|
|
1716
1716
|
}
|
|
1717
|
-
function
|
|
1717
|
+
function Rn() {
|
|
1718
1718
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
1719
1719
|
return !1;
|
|
1720
1720
|
if (typeof Proxy == "function")
|
|
@@ -1726,72 +1726,72 @@ function yn() {
|
|
|
1726
1726
|
return !1;
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function he() {
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function En(i) {
|
|
1732
1732
|
var e = Object.getOwnPropertyNames(Object.getPrototypeOf(i));
|
|
1733
|
-
e.forEach(function(
|
|
1734
|
-
typeof i[
|
|
1733
|
+
e.forEach(function(t) {
|
|
1734
|
+
typeof i[t] == "function" && (i[t] = i[t].bind(i));
|
|
1735
1735
|
});
|
|
1736
1736
|
}
|
|
1737
|
-
var
|
|
1738
|
-
|
|
1739
|
-
var e =
|
|
1740
|
-
function
|
|
1741
|
-
var
|
|
1742
|
-
if (
|
|
1737
|
+
var we = function(i) {
|
|
1738
|
+
Se(t, i);
|
|
1739
|
+
var e = Ln(t);
|
|
1740
|
+
function t() {
|
|
1741
|
+
var n, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = arguments.length > 1 ? arguments[1] : void 0;
|
|
1742
|
+
if (B(this, t), n = e.call(this), xe && ee.call(Z(n)), n.options = ot(r), n.services = {}, n.logger = J, n.modules = {
|
|
1743
1743
|
external: []
|
|
1744
|
-
},
|
|
1745
|
-
if (!
|
|
1746
|
-
return
|
|
1744
|
+
}, En(Z(n)), a && !n.isInitialized && !r.isClone) {
|
|
1745
|
+
if (!n.options.initImmediate)
|
|
1746
|
+
return n.init(r, a), de(n, Z(n));
|
|
1747
1747
|
setTimeout(function() {
|
|
1748
|
-
|
|
1748
|
+
n.init(r, a);
|
|
1749
1749
|
}, 0);
|
|
1750
1750
|
}
|
|
1751
|
-
return
|
|
1751
|
+
return n;
|
|
1752
1752
|
}
|
|
1753
|
-
return H(
|
|
1753
|
+
return H(t, [{
|
|
1754
1754
|
key: "init",
|
|
1755
1755
|
value: function() {
|
|
1756
1756
|
var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 ? arguments[1] : void 0;
|
|
1757
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]));
|
|
1758
|
-
var s =
|
|
1759
|
-
this.options = z(z(z({}, s), 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);
|
|
1760
1760
|
function u(v) {
|
|
1761
1761
|
return v ? typeof v == "function" ? new v() : v : null;
|
|
1762
1762
|
}
|
|
1763
1763
|
if (!this.options.isClone) {
|
|
1764
1764
|
this.modules.logger ? J.init(u(this.modules.logger), this.options) : J.init(null, this.options);
|
|
1765
1765
|
var d;
|
|
1766
|
-
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d =
|
|
1767
|
-
var c = new
|
|
1768
|
-
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);
|
|
1769
1769
|
var f = this.services;
|
|
1770
|
-
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, {
|
|
1771
1771
|
prepend: this.options.pluralSeparator,
|
|
1772
1772
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
1773
1773
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
1774
|
-
}), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (f.formatter = u(d), f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new
|
|
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 = {
|
|
1775
1775
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
1776
|
-
}, f.backendConnector = new
|
|
1777
|
-
for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0),
|
|
1778
|
-
S[
|
|
1776
|
+
}, f.backendConnector = new kn(u(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", function(v) {
|
|
1777
|
+
for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
|
|
1778
|
+
S[x - 1] = arguments[x];
|
|
1779
1779
|
r.emit.apply(r, [v].concat(S));
|
|
1780
|
-
}), this.modules.languageDetector && (f.languageDetector = u(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = u(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new
|
|
1781
|
-
for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0),
|
|
1782
|
-
S[
|
|
1780
|
+
}), this.modules.languageDetector && (f.languageDetector = u(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = u(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Qe(this.services, this.options), this.translator.on("*", function(v) {
|
|
1781
|
+
for (var m = arguments.length, S = new Array(m > 1 ? m - 1 : 0), x = 1; x < m; x++)
|
|
1782
|
+
S[x - 1] = arguments[x];
|
|
1783
1783
|
r.emit.apply(r, [v].concat(S));
|
|
1784
1784
|
}), this.modules.external.forEach(function(v) {
|
|
1785
1785
|
v.init && v.init(r);
|
|
1786
1786
|
});
|
|
1787
1787
|
}
|
|
1788
|
-
if (this.format = this.options.interpolation.format, o || (o =
|
|
1788
|
+
if (this.format = this.options.interpolation.format, o || (o = he), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
1789
1789
|
var p = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
1790
1790
|
p.length > 0 && p[0] !== "dev" && (this.options.lng = p[0]);
|
|
1791
1791
|
}
|
|
1792
1792
|
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined");
|
|
1793
|
-
var
|
|
1794
|
-
|
|
1793
|
+
var g = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
|
|
1794
|
+
g.forEach(function(v) {
|
|
1795
1795
|
r[v] = function() {
|
|
1796
1796
|
var m;
|
|
1797
1797
|
return (m = r.store)[v].apply(m, arguments);
|
|
@@ -1804,26 +1804,26 @@ var ye = function(i) {
|
|
|
1804
1804
|
return (m = r.store)[v].apply(m, arguments), r;
|
|
1805
1805
|
};
|
|
1806
1806
|
});
|
|
1807
|
-
var y = se(),
|
|
1808
|
-
var m = function(
|
|
1809
|
-
r.isInitialized && !r.initializedStoreOnce && r.logger.warn("init: i18next is already initialized. You should call init just once!"), r.isInitialized = !0, r.options.isClone || r.logger.log("initialized", r.options), r.emit("initialized", r.options), y.resolve(
|
|
1807
|
+
var y = se(), w = function() {
|
|
1808
|
+
var m = function(x, k) {
|
|
1809
|
+
r.isInitialized && !r.initializedStoreOnce && r.logger.warn("init: i18next is already initialized. You should call init just once!"), r.isInitialized = !0, r.options.isClone || r.logger.log("initialized", r.options), r.emit("initialized", r.options), y.resolve(k), o(x, k);
|
|
1810
1810
|
};
|
|
1811
1811
|
if (r.languages && r.options.compatibilityAPI !== "v1" && !r.isInitialized)
|
|
1812
1812
|
return m(null, r.t.bind(r));
|
|
1813
1813
|
r.changeLanguage(r.options.lng, m);
|
|
1814
1814
|
};
|
|
1815
|
-
return this.options.resources || !this.options.initImmediate ?
|
|
1815
|
+
return this.options.resources || !this.options.initImmediate ? w() : setTimeout(w, 0), y;
|
|
1816
1816
|
}
|
|
1817
1817
|
}, {
|
|
1818
1818
|
key: "loadResources",
|
|
1819
1819
|
value: function(r) {
|
|
1820
|
-
var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
1820
|
+
var a = this, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : he, s = o, u = typeof r == "string" ? r : this.language;
|
|
1821
1821
|
if (typeof r == "function" && (s = r), !this.options.resources || this.options.partialBundledLanguages) {
|
|
1822
1822
|
if (u && u.toLowerCase() === "cimode")
|
|
1823
1823
|
return s();
|
|
1824
|
-
var d = [], c = function(
|
|
1825
|
-
if (
|
|
1826
|
-
var b = a.services.languageUtils.toResolveHierarchy(
|
|
1824
|
+
var d = [], c = function(g) {
|
|
1825
|
+
if (g) {
|
|
1826
|
+
var b = a.services.languageUtils.toResolveHierarchy(g);
|
|
1827
1827
|
b.forEach(function(y) {
|
|
1828
1828
|
d.indexOf(y) < 0 && d.push(y);
|
|
1829
1829
|
});
|
|
@@ -1849,7 +1849,7 @@ var ye = function(i) {
|
|
|
1849
1849
|
key: "reloadResources",
|
|
1850
1850
|
value: function(r, a, o) {
|
|
1851
1851
|
var s = se();
|
|
1852
|
-
return r || (r = this.languages), a || (a = this.options.ns), o || (o =
|
|
1852
|
+
return r || (r = this.languages), a || (a = this.options.ns), o || (o = he), this.services.backendConnector.reload(r, a, function(u) {
|
|
1853
1853
|
s.resolve(), o(u);
|
|
1854
1854
|
}), s;
|
|
1855
1855
|
}
|
|
@@ -1860,7 +1860,7 @@ var ye = function(i) {
|
|
|
1860
1860
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
1861
1861
|
if (!r.type)
|
|
1862
1862
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
1863
|
-
return r.type === "backend" && (this.modules.backend = r), (r.type === "logger" || r.log && r.warn && r.error) && (this.modules.logger = r), r.type === "languageDetector" && (this.modules.languageDetector = r), r.type === "i18nFormat" && (this.modules.i18nFormat = r), r.type === "postProcessor" &&
|
|
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;
|
|
1864
1864
|
}
|
|
1865
1865
|
}, {
|
|
1866
1866
|
key: "setResolvedLanguage",
|
|
@@ -1883,17 +1883,17 @@ var ye = function(i) {
|
|
|
1883
1883
|
this.emit("languageChanging", r);
|
|
1884
1884
|
var u = function(p) {
|
|
1885
1885
|
o.language = p, o.languages = o.services.languageUtils.toResolveHierarchy(p), o.resolvedLanguage = void 0, o.setResolvedLanguage(p);
|
|
1886
|
-
}, d = function(p,
|
|
1887
|
-
|
|
1886
|
+
}, d = function(p, g) {
|
|
1887
|
+
g ? (u(g), o.translator.changeLanguage(g), o.isLanguageChangingTo = void 0, o.emit("languageChanged", g), o.logger.log("languageChanged", g)) : o.isLanguageChangingTo = void 0, s.resolve(function() {
|
|
1888
1888
|
return o.t.apply(o, arguments);
|
|
1889
1889
|
}), a && a(p, function() {
|
|
1890
1890
|
return o.t.apply(o, arguments);
|
|
1891
1891
|
});
|
|
1892
1892
|
}, c = function(p) {
|
|
1893
1893
|
!r && !p && o.services.languageDetector && (p = []);
|
|
1894
|
-
var
|
|
1895
|
-
|
|
1896
|
-
d(b,
|
|
1894
|
+
var g = typeof p == "string" ? p : o.services.languageUtils.getBestMatchFromCodes(p);
|
|
1895
|
+
g && (o.language || u(g), o.translator.language || o.translator.changeLanguage(g), o.services.languageDetector && o.services.languageDetector.cacheUserLanguage && o.services.languageDetector.cacheUserLanguage(g)), o.loadResources(g, function(b) {
|
|
1896
|
+
d(b, g);
|
|
1897
1897
|
});
|
|
1898
1898
|
};
|
|
1899
1899
|
return !r && this.services.languageDetector && !this.services.languageDetector.async ? c(this.services.languageDetector.detect()) : !r && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(c) : this.services.languageDetector.detect(c) : c(r), s;
|
|
@@ -1903,17 +1903,17 @@ var ye = function(i) {
|
|
|
1903
1903
|
value: function(r, a, o) {
|
|
1904
1904
|
var s = this, u = function d(c, f) {
|
|
1905
1905
|
var p;
|
|
1906
|
-
if (
|
|
1907
|
-
for (var
|
|
1906
|
+
if (U(f) !== "object") {
|
|
1907
|
+
for (var g = arguments.length, b = new Array(g > 2 ? g - 2 : 0), y = 2; y < g; y++)
|
|
1908
1908
|
b[y - 2] = arguments[y];
|
|
1909
1909
|
p = s.options.overloadTranslationOptionHandler([c, f].concat(b));
|
|
1910
1910
|
} else
|
|
1911
1911
|
p = z({}, f);
|
|
1912
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;
|
|
1913
|
-
var
|
|
1913
|
+
var w = s.options.keySeparator || ".", v;
|
|
1914
1914
|
return p.keyPrefix && Array.isArray(c) ? v = c.map(function(m) {
|
|
1915
|
-
return "".concat(p.keyPrefix).concat(
|
|
1916
|
-
}) : v = p.keyPrefix ? "".concat(p.keyPrefix).concat(
|
|
1915
|
+
return "".concat(p.keyPrefix).concat(w).concat(m);
|
|
1916
|
+
}) : v = p.keyPrefix ? "".concat(p.keyPrefix).concat(w).concat(c) : c, s.t(v, p);
|
|
1917
1917
|
};
|
|
1918
1918
|
return typeof r == "string" ? u.lng = r : u.lngs = r, u.ns = a, u.keyPrefix = o, u;
|
|
1919
1919
|
}
|
|
@@ -1945,8 +1945,8 @@ var ye = function(i) {
|
|
|
1945
1945
|
var s = o.lng || this.resolvedLanguage || this.languages[0], u = this.options ? this.options.fallbackLng : !1, d = this.languages[this.languages.length - 1];
|
|
1946
1946
|
if (s.toLowerCase() === "cimode")
|
|
1947
1947
|
return !0;
|
|
1948
|
-
var c = function(
|
|
1949
|
-
var y = a.services.backendConnector.state["".concat(
|
|
1948
|
+
var c = function(g, b) {
|
|
1949
|
+
var y = a.services.backendConnector.state["".concat(g, "|").concat(b)];
|
|
1950
1950
|
return y === -1 || y === 2;
|
|
1951
1951
|
};
|
|
1952
1952
|
if (o.precheck) {
|
|
@@ -1983,24 +1983,24 @@ var ye = function(i) {
|
|
|
1983
1983
|
value: function(r) {
|
|
1984
1984
|
if (r || (r = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !r)
|
|
1985
1985
|
return "rtl";
|
|
1986
|
-
var a = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], o = this.services && this.services.languageUtils || new
|
|
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());
|
|
1987
1987
|
return a.indexOf(o.getLanguagePartFromCode(r)) > -1 || r.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
1988
1988
|
}
|
|
1989
1989
|
}, {
|
|
1990
1990
|
key: "cloneInstance",
|
|
1991
1991
|
value: function() {
|
|
1992
|
-
var r = this, a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
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), {
|
|
1993
1993
|
isClone: !0
|
|
1994
|
-
}), u = new
|
|
1994
|
+
}), u = new t(s);
|
|
1995
1995
|
(a.debug !== void 0 || a.prefix !== void 0) && (u.logger = u.logger.clone(a));
|
|
1996
1996
|
var d = ["store", "services", "language"];
|
|
1997
1997
|
return d.forEach(function(c) {
|
|
1998
1998
|
u[c] = r[c];
|
|
1999
1999
|
}), u.services = z({}, this.services), u.services.utils = {
|
|
2000
2000
|
hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
|
|
2001
|
-
}, u.translator = new
|
|
2002
|
-
for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0),
|
|
2003
|
-
p[
|
|
2001
|
+
}, u.translator = new Qe(u.services, u.options), u.translator.on("*", function(c) {
|
|
2002
|
+
for (var f = arguments.length, p = new Array(f > 1 ? f - 1 : 0), g = 1; g < f; g++)
|
|
2003
|
+
p[g - 1] = arguments[g];
|
|
2004
2004
|
u.emit.apply(u, [c].concat(p));
|
|
2005
2005
|
}), u.init(s, o), u.translator.options = u.options, u.translator.backendConnector.services.utils = {
|
|
2006
2006
|
hasLoadedNamespace: u.hasLoadedNamespace.bind(u)
|
|
@@ -2017,87 +2017,349 @@ var ye = function(i) {
|
|
|
2017
2017
|
resolvedLanguage: this.resolvedLanguage
|
|
2018
2018
|
};
|
|
2019
2019
|
}
|
|
2020
|
-
}]),
|
|
2020
|
+
}]), t;
|
|
2021
2021
|
}(ee);
|
|
2022
|
-
W(
|
|
2022
|
+
W(we, "createInstance", function() {
|
|
2023
2023
|
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = arguments.length > 1 ? arguments[1] : void 0;
|
|
2024
|
-
return new
|
|
2024
|
+
return new we(i, e);
|
|
2025
2025
|
});
|
|
2026
|
-
var
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
var
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2026
|
+
var N = we.createInstance();
|
|
2027
|
+
N.createInstance = we.createInstance;
|
|
2028
|
+
N.createInstance;
|
|
2029
|
+
N.dir;
|
|
2030
|
+
N.init;
|
|
2031
|
+
N.loadResources;
|
|
2032
|
+
N.reloadResources;
|
|
2033
|
+
N.use;
|
|
2034
|
+
N.changeLanguage;
|
|
2035
|
+
N.getFixedT;
|
|
2036
|
+
var Tr = N.t;
|
|
2037
|
+
N.exists;
|
|
2038
|
+
N.setDefaultNamespace;
|
|
2039
|
+
N.hasLoadedNamespace;
|
|
2040
|
+
N.loadNamespaces;
|
|
2041
|
+
N.loadLanguages;
|
|
2042
|
+
var Nt = [], Cn = Nt.forEach, _n = Nt.slice;
|
|
2043
|
+
function Nn(i) {
|
|
2044
|
+
return Cn.call(_n.call(arguments, 1), function(e) {
|
|
2045
|
+
if (e)
|
|
2046
|
+
for (var t in e)
|
|
2047
|
+
i[t] === void 0 && (i[t] = e[t]);
|
|
2048
|
+
}), i;
|
|
2049
|
+
}
|
|
2050
|
+
var ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, An = function(e, t, n) {
|
|
2051
|
+
var r = n || {};
|
|
2052
|
+
r.path = r.path || "/";
|
|
2053
|
+
var a = encodeURIComponent(t), o = "".concat(e, "=").concat(a);
|
|
2054
|
+
if (r.maxAge > 0) {
|
|
2055
|
+
var s = r.maxAge - 0;
|
|
2056
|
+
if (Number.isNaN(s))
|
|
2057
|
+
throw new Error("maxAge should be a Number");
|
|
2058
|
+
o += "; Max-Age=".concat(Math.floor(s));
|
|
2059
|
+
}
|
|
2060
|
+
if (r.domain) {
|
|
2061
|
+
if (!ut.test(r.domain))
|
|
2062
|
+
throw new TypeError("option domain is invalid");
|
|
2063
|
+
o += "; Domain=".concat(r.domain);
|
|
2064
|
+
}
|
|
2065
|
+
if (r.path) {
|
|
2066
|
+
if (!ut.test(r.path))
|
|
2067
|
+
throw new TypeError("option path is invalid");
|
|
2068
|
+
o += "; Path=".concat(r.path);
|
|
2069
|
+
}
|
|
2070
|
+
if (r.expires) {
|
|
2071
|
+
if (typeof r.expires.toUTCString != "function")
|
|
2072
|
+
throw new TypeError("option expires is invalid");
|
|
2073
|
+
o += "; Expires=".concat(r.expires.toUTCString());
|
|
2074
|
+
}
|
|
2075
|
+
if (r.httpOnly && (o += "; HttpOnly"), r.secure && (o += "; Secure"), r.sameSite) {
|
|
2076
|
+
var u = typeof r.sameSite == "string" ? r.sameSite.toLowerCase() : r.sameSite;
|
|
2077
|
+
switch (u) {
|
|
2078
|
+
case !0:
|
|
2079
|
+
o += "; SameSite=Strict";
|
|
2080
|
+
break;
|
|
2081
|
+
case "lax":
|
|
2082
|
+
o += "; SameSite=Lax";
|
|
2083
|
+
break;
|
|
2084
|
+
case "strict":
|
|
2085
|
+
o += "; SameSite=Strict";
|
|
2086
|
+
break;
|
|
2087
|
+
case "none":
|
|
2088
|
+
o += "; SameSite=None";
|
|
2089
|
+
break;
|
|
2090
|
+
default:
|
|
2091
|
+
throw new TypeError("option sameSite is invalid");
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
return o;
|
|
2095
|
+
}, ft = {
|
|
2096
|
+
create: function(e, t, n, r) {
|
|
2097
|
+
var a = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
2098
|
+
path: "/",
|
|
2099
|
+
sameSite: "strict"
|
|
2100
|
+
};
|
|
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);
|
|
2102
|
+
},
|
|
2103
|
+
read: function(e) {
|
|
2104
|
+
for (var t = "".concat(e, "="), n = document.cookie.split(";"), r = 0; r < n.length; r++) {
|
|
2105
|
+
for (var a = n[r]; a.charAt(0) === " "; )
|
|
2106
|
+
a = a.substring(1, a.length);
|
|
2107
|
+
if (a.indexOf(t) === 0)
|
|
2108
|
+
return a.substring(t.length, a.length);
|
|
2109
|
+
}
|
|
2110
|
+
return null;
|
|
2111
|
+
},
|
|
2112
|
+
remove: function(e) {
|
|
2113
|
+
this.create(e, "", -1);
|
|
2114
|
+
}
|
|
2115
|
+
}, Tn = {
|
|
2116
|
+
name: "cookie",
|
|
2117
|
+
lookup: function(e) {
|
|
2118
|
+
var t;
|
|
2119
|
+
if (e.lookupCookie && typeof document < "u") {
|
|
2120
|
+
var n = ft.read(e.lookupCookie);
|
|
2121
|
+
n && (t = n);
|
|
2122
|
+
}
|
|
2123
|
+
return t;
|
|
2124
|
+
},
|
|
2125
|
+
cacheUserLanguage: function(e, t) {
|
|
2126
|
+
t.lookupCookie && typeof document < "u" && ft.create(t.lookupCookie, e, t.cookieMinutes, t.cookieDomain, t.cookieOptions);
|
|
2127
|
+
}
|
|
2128
|
+
}, Dn = {
|
|
2129
|
+
name: "querystring",
|
|
2130
|
+
lookup: function(e) {
|
|
2131
|
+
var t;
|
|
2132
|
+
if (typeof window < "u") {
|
|
2133
|
+
var n = window.location.search;
|
|
2134
|
+
!window.location.search && window.location.hash && window.location.hash.indexOf("?") > -1 && (n = window.location.hash.substring(window.location.hash.indexOf("?")));
|
|
2135
|
+
for (var r = n.substring(1), a = r.split("&"), o = 0; o < a.length; o++) {
|
|
2136
|
+
var s = a[o].indexOf("=");
|
|
2137
|
+
if (s > 0) {
|
|
2138
|
+
var u = a[o].substring(0, s);
|
|
2139
|
+
u === e.lookupQuerystring && (t = a[o].substring(s + 1));
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
return t;
|
|
2144
|
+
}
|
|
2145
|
+
}, ue = null, ct = function() {
|
|
2146
|
+
if (ue !== null)
|
|
2147
|
+
return ue;
|
|
2148
|
+
try {
|
|
2149
|
+
ue = window !== "undefined" && window.localStorage !== null;
|
|
2150
|
+
var e = "i18next.translate.boo";
|
|
2151
|
+
window.localStorage.setItem(e, "foo"), window.localStorage.removeItem(e);
|
|
2152
|
+
} catch {
|
|
2153
|
+
ue = !1;
|
|
2154
|
+
}
|
|
2155
|
+
return ue;
|
|
2156
|
+
}, In = {
|
|
2157
|
+
name: "localStorage",
|
|
2158
|
+
lookup: function(e) {
|
|
2159
|
+
var t;
|
|
2160
|
+
if (e.lookupLocalStorage && ct()) {
|
|
2161
|
+
var n = window.localStorage.getItem(e.lookupLocalStorage);
|
|
2162
|
+
n && (t = n);
|
|
2163
|
+
}
|
|
2164
|
+
return t;
|
|
2165
|
+
},
|
|
2166
|
+
cacheUserLanguage: function(e, t) {
|
|
2167
|
+
t.lookupLocalStorage && ct() && window.localStorage.setItem(t.lookupLocalStorage, e);
|
|
2168
|
+
}
|
|
2169
|
+
}, fe = null, lt = function() {
|
|
2170
|
+
if (fe !== null)
|
|
2171
|
+
return fe;
|
|
2172
|
+
try {
|
|
2173
|
+
fe = window !== "undefined" && window.sessionStorage !== null;
|
|
2174
|
+
var e = "i18next.translate.boo";
|
|
2175
|
+
window.sessionStorage.setItem(e, "foo"), window.sessionStorage.removeItem(e);
|
|
2176
|
+
} catch {
|
|
2177
|
+
fe = !1;
|
|
2178
|
+
}
|
|
2179
|
+
return fe;
|
|
2180
|
+
}, Fn = {
|
|
2181
|
+
name: "sessionStorage",
|
|
2182
|
+
lookup: function(e) {
|
|
2183
|
+
var t;
|
|
2184
|
+
if (e.lookupSessionStorage && lt()) {
|
|
2185
|
+
var n = window.sessionStorage.getItem(e.lookupSessionStorage);
|
|
2186
|
+
n && (t = n);
|
|
2187
|
+
}
|
|
2188
|
+
return t;
|
|
2189
|
+
},
|
|
2190
|
+
cacheUserLanguage: function(e, t) {
|
|
2191
|
+
t.lookupSessionStorage && lt() && window.sessionStorage.setItem(t.lookupSessionStorage, e);
|
|
2192
|
+
}
|
|
2193
|
+
}, Un = {
|
|
2194
|
+
name: "navigator",
|
|
2195
|
+
lookup: function(e) {
|
|
2196
|
+
var t = [];
|
|
2197
|
+
if (typeof navigator < "u") {
|
|
2198
|
+
if (navigator.languages)
|
|
2199
|
+
for (var n = 0; n < navigator.languages.length; n++)
|
|
2200
|
+
t.push(navigator.languages[n]);
|
|
2201
|
+
navigator.userLanguage && t.push(navigator.userLanguage), navigator.language && t.push(navigator.language);
|
|
2202
|
+
}
|
|
2203
|
+
return t.length > 0 ? t : void 0;
|
|
2204
|
+
}
|
|
2205
|
+
}, Bn = {
|
|
2206
|
+
name: "htmlTag",
|
|
2207
|
+
lookup: function(e) {
|
|
2208
|
+
var t, n = e.htmlTag || (typeof document < "u" ? document.documentElement : null);
|
|
2209
|
+
return n && typeof n.getAttribute == "function" && (t = n.getAttribute("lang")), t;
|
|
2210
|
+
}
|
|
2211
|
+
}, Hn = {
|
|
2212
|
+
name: "path",
|
|
2213
|
+
lookup: function(e) {
|
|
2214
|
+
var t;
|
|
2215
|
+
if (typeof window < "u") {
|
|
2216
|
+
var n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
2217
|
+
if (n instanceof Array)
|
|
2218
|
+
if (typeof e.lookupFromPathIndex == "number") {
|
|
2219
|
+
if (typeof n[e.lookupFromPathIndex] != "string")
|
|
2220
|
+
return;
|
|
2221
|
+
t = n[e.lookupFromPathIndex].replace("/", "");
|
|
2222
|
+
} else
|
|
2223
|
+
t = n[0].replace("/", "");
|
|
2224
|
+
}
|
|
2225
|
+
return t;
|
|
2226
|
+
}
|
|
2227
|
+
}, Mn = {
|
|
2228
|
+
name: "subdomain",
|
|
2229
|
+
lookup: function(e) {
|
|
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);
|
|
2231
|
+
if (n)
|
|
2232
|
+
return n[t];
|
|
2233
|
+
}
|
|
2234
|
+
}, At = !1;
|
|
2235
|
+
try {
|
|
2236
|
+
document.cookie, At = !0;
|
|
2237
|
+
} catch {
|
|
2238
|
+
}
|
|
2239
|
+
var Tt = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
2240
|
+
At || Tt.splice(1, 1);
|
|
2241
|
+
function $n() {
|
|
2242
|
+
return {
|
|
2243
|
+
order: Tt,
|
|
2244
|
+
lookupQuerystring: "lng",
|
|
2245
|
+
lookupCookie: "i18next",
|
|
2246
|
+
lookupLocalStorage: "i18nextLng",
|
|
2247
|
+
lookupSessionStorage: "i18nextLng",
|
|
2248
|
+
// cache user language
|
|
2249
|
+
caches: ["localStorage"],
|
|
2250
|
+
excludeCacheFor: ["cimode"],
|
|
2251
|
+
// cookieMinutes: 10,
|
|
2252
|
+
// cookieDomain: 'myDomain'
|
|
2253
|
+
convertDetectedLanguage: function(e) {
|
|
2254
|
+
return e;
|
|
2255
|
+
}
|
|
2256
|
+
};
|
|
2257
|
+
}
|
|
2258
|
+
var Dt = /* @__PURE__ */ function() {
|
|
2259
|
+
function i(e) {
|
|
2260
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2261
|
+
B(this, i), this.type = "languageDetector", this.detectors = {}, this.init(e, t);
|
|
2262
|
+
}
|
|
2263
|
+
return H(i, [{
|
|
2264
|
+
key: "init",
|
|
2265
|
+
value: function(t) {
|
|
2266
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2267
|
+
this.services = t || {
|
|
2268
|
+
languageUtils: {}
|
|
2269
|
+
}, this.options = Nn(n, this.options || {}, $n()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = function(a) {
|
|
2270
|
+
return a.replace("-", "_");
|
|
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);
|
|
2272
|
+
}
|
|
2273
|
+
}, {
|
|
2274
|
+
key: "addDetector",
|
|
2275
|
+
value: function(t) {
|
|
2276
|
+
return this.detectors[t.name] = t, this;
|
|
2277
|
+
}
|
|
2278
|
+
}, {
|
|
2279
|
+
key: "detect",
|
|
2280
|
+
value: function(t) {
|
|
2281
|
+
var n = this;
|
|
2282
|
+
t || (t = this.options.order);
|
|
2283
|
+
var r = [];
|
|
2284
|
+
return t.forEach(function(a) {
|
|
2285
|
+
if (n.detectors[a]) {
|
|
2286
|
+
var o = n.detectors[a].lookup(n.options);
|
|
2287
|
+
o && typeof o == "string" && (o = [o]), o && (r = r.concat(o));
|
|
2288
|
+
}
|
|
2289
|
+
}), r = r.map(function(a) {
|
|
2290
|
+
return n.options.convertDetectedLanguage(a);
|
|
2291
|
+
}), this.services.languageUtils.getBestMatchFromCodes ? r : r.length > 0 ? r[0] : null;
|
|
2292
|
+
}
|
|
2293
|
+
}, {
|
|
2294
|
+
key: "cacheUserLanguage",
|
|
2295
|
+
value: function(t, n) {
|
|
2296
|
+
var r = this;
|
|
2297
|
+
n || (n = this.options.caches), n && (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(t) > -1 || n.forEach(function(a) {
|
|
2298
|
+
r.detectors[a] && r.detectors[a].cacheUserLanguage(t, r.options);
|
|
2299
|
+
}));
|
|
2300
|
+
}
|
|
2301
|
+
}]);
|
|
2302
|
+
}();
|
|
2303
|
+
Dt.type = "languageDetector";
|
|
2304
|
+
function qn() {
|
|
2043
2305
|
if (console && console.warn) {
|
|
2044
|
-
for (var i, e = arguments.length,
|
|
2045
|
-
n
|
|
2046
|
-
typeof
|
|
2306
|
+
for (var i, e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
2307
|
+
t[n] = arguments[n];
|
|
2308
|
+
typeof t[0] == "string" && (t[0] = "react-i18next:: ".concat(t[0])), (i = console).warn.apply(i, t);
|
|
2047
2309
|
}
|
|
2048
2310
|
}
|
|
2049
|
-
var
|
|
2050
|
-
function
|
|
2051
|
-
for (var i = arguments.length, e = new Array(i),
|
|
2052
|
-
e[
|
|
2053
|
-
typeof e[0] == "string" &&
|
|
2311
|
+
var dt = {};
|
|
2312
|
+
function Ne() {
|
|
2313
|
+
for (var i = arguments.length, e = new Array(i), t = 0; t < i; t++)
|
|
2314
|
+
e[t] = arguments[t];
|
|
2315
|
+
typeof e[0] == "string" && dt[e[0]] || (typeof e[0] == "string" && (dt[e[0]] = /* @__PURE__ */ new Date()), qn.apply(void 0, e));
|
|
2054
2316
|
}
|
|
2055
|
-
var
|
|
2317
|
+
var It = function(e, t) {
|
|
2056
2318
|
return function() {
|
|
2057
2319
|
if (e.isInitialized)
|
|
2058
|
-
|
|
2320
|
+
t();
|
|
2059
2321
|
else {
|
|
2060
|
-
var
|
|
2322
|
+
var n = function r() {
|
|
2061
2323
|
setTimeout(function() {
|
|
2062
2324
|
e.off("initialized", r);
|
|
2063
|
-
}, 0),
|
|
2325
|
+
}, 0), t();
|
|
2064
2326
|
};
|
|
2065
|
-
e.on("initialized",
|
|
2327
|
+
e.on("initialized", n);
|
|
2066
2328
|
}
|
|
2067
2329
|
};
|
|
2068
2330
|
};
|
|
2069
|
-
function
|
|
2070
|
-
i.loadNamespaces(e,
|
|
2331
|
+
function pt(i, e, t) {
|
|
2332
|
+
i.loadNamespaces(e, It(i, t));
|
|
2071
2333
|
}
|
|
2072
|
-
function
|
|
2073
|
-
typeof
|
|
2334
|
+
function gt(i, e, t, n) {
|
|
2335
|
+
typeof t == "string" && (t = [t]), t.forEach(function(r) {
|
|
2074
2336
|
i.options.ns.indexOf(r) < 0 && i.options.ns.push(r);
|
|
2075
|
-
}), i.loadLanguages(e,
|
|
2337
|
+
}), i.loadLanguages(e, It(i, n));
|
|
2076
2338
|
}
|
|
2077
|
-
function
|
|
2078
|
-
var
|
|
2079
|
-
if (
|
|
2339
|
+
function Kn(i, e) {
|
|
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];
|
|
2341
|
+
if (n.toLowerCase() === "cimode")
|
|
2080
2342
|
return !0;
|
|
2081
2343
|
var o = function(u, d) {
|
|
2082
2344
|
var c = e.services.backendConnector.state["".concat(u, "|").concat(d)];
|
|
2083
2345
|
return c === -1 || c === 2;
|
|
2084
2346
|
};
|
|
2085
|
-
return
|
|
2347
|
+
return t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && e.services.backendConnector.backend && e.isLanguageChangingTo && !o(e.isLanguageChangingTo, i) ? !1 : !!(e.hasResourceBundle(n, i) || !e.services.backendConnector.backend || e.options.resources && !e.options.partialBundledLanguages || o(n, i) && (!r || o(a, i)));
|
|
2086
2348
|
}
|
|
2087
|
-
function
|
|
2088
|
-
var
|
|
2349
|
+
function Vn(i, e) {
|
|
2350
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2089
2351
|
if (!e.languages || !e.languages.length)
|
|
2090
|
-
return
|
|
2091
|
-
var
|
|
2092
|
-
return
|
|
2093
|
-
lng:
|
|
2352
|
+
return Ne("i18n.languages were undefined or empty", e.languages), !0;
|
|
2353
|
+
var n = e.options.ignoreJSONStructure !== void 0;
|
|
2354
|
+
return n ? e.hasLoadedNamespace(i, {
|
|
2355
|
+
lng: t.lng,
|
|
2094
2356
|
precheck: function(a, o) {
|
|
2095
|
-
if (
|
|
2357
|
+
if (t.bindI18n && t.bindI18n.indexOf("languageChanging") > -1 && a.services.backendConnector.backend && a.isLanguageChangingTo && !o(a.isLanguageChangingTo, i))
|
|
2096
2358
|
return !1;
|
|
2097
2359
|
}
|
|
2098
|
-
}) :
|
|
2360
|
+
}) : Kn(i, e, t);
|
|
2099
2361
|
}
|
|
2100
|
-
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 = {
|
|
2101
2363
|
"&": "&",
|
|
2102
2364
|
"&": "&",
|
|
2103
2365
|
"<": "<",
|
|
@@ -2118,33 +2380,33 @@ var Pn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#1
|
|
|
2118
2380
|
"…": "…",
|
|
2119
2381
|
"/": "/",
|
|
2120
2382
|
"/": "/"
|
|
2121
|
-
},
|
|
2122
|
-
return
|
|
2123
|
-
},
|
|
2124
|
-
return e.replace(
|
|
2383
|
+
}, Xn = function(e) {
|
|
2384
|
+
return Jn[e];
|
|
2385
|
+
}, Wn = function(e) {
|
|
2386
|
+
return e.replace(zn, Xn);
|
|
2125
2387
|
};
|
|
2126
|
-
function
|
|
2127
|
-
var
|
|
2388
|
+
function ht(i, e) {
|
|
2389
|
+
var t = Object.keys(i);
|
|
2128
2390
|
if (Object.getOwnPropertySymbols) {
|
|
2129
|
-
var
|
|
2130
|
-
e && (
|
|
2391
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
2392
|
+
e && (n = n.filter(function(r) {
|
|
2131
2393
|
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
2132
|
-
})),
|
|
2394
|
+
})), t.push.apply(t, n);
|
|
2133
2395
|
}
|
|
2134
|
-
return
|
|
2396
|
+
return t;
|
|
2135
2397
|
}
|
|
2136
|
-
function
|
|
2398
|
+
function vt(i) {
|
|
2137
2399
|
for (var e = 1; e < arguments.length; e++) {
|
|
2138
|
-
var
|
|
2139
|
-
e % 2 ?
|
|
2140
|
-
W(i,
|
|
2141
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(
|
|
2142
|
-
Object.defineProperty(i,
|
|
2400
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
2401
|
+
e % 2 ? ht(Object(t), !0).forEach(function(n) {
|
|
2402
|
+
W(i, n, t[n]);
|
|
2403
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : ht(Object(t)).forEach(function(n) {
|
|
2404
|
+
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2143
2405
|
});
|
|
2144
2406
|
}
|
|
2145
2407
|
return i;
|
|
2146
2408
|
}
|
|
2147
|
-
var
|
|
2409
|
+
var Ae = {
|
|
2148
2410
|
bindI18n: "languageChanged",
|
|
2149
2411
|
bindI18nStore: "",
|
|
2150
2412
|
transEmptyNodeValue: "",
|
|
@@ -2152,37 +2414,37 @@ var Ne = {
|
|
|
2152
2414
|
transWrapTextNodes: "",
|
|
2153
2415
|
transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
|
|
2154
2416
|
useSuspense: !0,
|
|
2155
|
-
unescape:
|
|
2417
|
+
unescape: Wn
|
|
2156
2418
|
};
|
|
2157
|
-
function
|
|
2419
|
+
function Gn() {
|
|
2158
2420
|
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2159
|
-
|
|
2421
|
+
Ae = vt(vt({}, Ae), i);
|
|
2160
2422
|
}
|
|
2161
|
-
function
|
|
2162
|
-
return
|
|
2423
|
+
function Qn() {
|
|
2424
|
+
return Ae;
|
|
2163
2425
|
}
|
|
2164
|
-
var
|
|
2165
|
-
function
|
|
2166
|
-
|
|
2426
|
+
var Ft;
|
|
2427
|
+
function Yn(i) {
|
|
2428
|
+
Ft = i;
|
|
2167
2429
|
}
|
|
2168
|
-
function
|
|
2169
|
-
return
|
|
2430
|
+
function Zn() {
|
|
2431
|
+
return Ft;
|
|
2170
2432
|
}
|
|
2171
|
-
var
|
|
2433
|
+
var er = {
|
|
2172
2434
|
type: "3rdParty",
|
|
2173
2435
|
init: function(e) {
|
|
2174
|
-
|
|
2436
|
+
Gn(e.options.react), Yn(e);
|
|
2175
2437
|
}
|
|
2176
|
-
},
|
|
2438
|
+
}, Ut = $.createContext(), tr = function() {
|
|
2177
2439
|
function i() {
|
|
2178
|
-
|
|
2440
|
+
B(this, i), this.usedNamespaces = {};
|
|
2179
2441
|
}
|
|
2180
2442
|
return H(i, [{
|
|
2181
2443
|
key: "addUsedNamespaces",
|
|
2182
|
-
value: function(
|
|
2183
|
-
var
|
|
2184
|
-
|
|
2185
|
-
|
|
2444
|
+
value: function(t) {
|
|
2445
|
+
var n = this;
|
|
2446
|
+
t.forEach(function(r) {
|
|
2447
|
+
n.usedNamespaces[r] || (n.usedNamespaces[r] = !0);
|
|
2186
2448
|
});
|
|
2187
2449
|
}
|
|
2188
2450
|
}, {
|
|
@@ -2192,19 +2454,19 @@ var Nn = {
|
|
|
2192
2454
|
}
|
|
2193
2455
|
}]), i;
|
|
2194
2456
|
}();
|
|
2195
|
-
function
|
|
2196
|
-
var
|
|
2197
|
-
if (
|
|
2198
|
-
var
|
|
2457
|
+
function nr(i, e) {
|
|
2458
|
+
var t = i == null ? null : typeof Symbol < "u" && i[Symbol.iterator] || i["@@iterator"];
|
|
2459
|
+
if (t != null) {
|
|
2460
|
+
var n, r, a, o, s = [], u = !0, d = !1;
|
|
2199
2461
|
try {
|
|
2200
|
-
if (a = (
|
|
2201
|
-
for (; !(u = (
|
|
2462
|
+
if (a = (t = t.call(i)).next, e !== 0)
|
|
2463
|
+
for (; !(u = (n = a.call(t)).done) && (s.push(n.value), s.length !== e); u = !0)
|
|
2202
2464
|
;
|
|
2203
2465
|
} catch (c) {
|
|
2204
2466
|
d = !0, r = c;
|
|
2205
2467
|
} finally {
|
|
2206
2468
|
try {
|
|
2207
|
-
if (!u &&
|
|
2469
|
+
if (!u && t.return != null && (o = t.return(), Object(o) !== o))
|
|
2208
2470
|
return;
|
|
2209
2471
|
} finally {
|
|
2210
2472
|
if (d)
|
|
@@ -2214,113 +2476,113 @@ function An(i, e) {
|
|
|
2214
2476
|
return s;
|
|
2215
2477
|
}
|
|
2216
2478
|
}
|
|
2217
|
-
function
|
|
2218
|
-
return
|
|
2479
|
+
function rr(i, e) {
|
|
2480
|
+
return Lt(i) || nr(i, e) || Rt(i, e) || Et();
|
|
2219
2481
|
}
|
|
2220
|
-
function
|
|
2221
|
-
var
|
|
2482
|
+
function mt(i, e) {
|
|
2483
|
+
var t = Object.keys(i);
|
|
2222
2484
|
if (Object.getOwnPropertySymbols) {
|
|
2223
|
-
var
|
|
2224
|
-
e && (
|
|
2485
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
2486
|
+
e && (n = n.filter(function(r) {
|
|
2225
2487
|
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
2226
|
-
})),
|
|
2488
|
+
})), t.push.apply(t, n);
|
|
2227
2489
|
}
|
|
2228
|
-
return
|
|
2490
|
+
return t;
|
|
2229
2491
|
}
|
|
2230
|
-
function
|
|
2492
|
+
function Ce(i) {
|
|
2231
2493
|
for (var e = 1; e < arguments.length; e++) {
|
|
2232
|
-
var
|
|
2233
|
-
e % 2 ?
|
|
2234
|
-
W(i,
|
|
2235
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(
|
|
2236
|
-
Object.defineProperty(i,
|
|
2494
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
2495
|
+
e % 2 ? mt(Object(t), !0).forEach(function(n) {
|
|
2496
|
+
W(i, n, t[n]);
|
|
2497
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : mt(Object(t)).forEach(function(n) {
|
|
2498
|
+
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2237
2499
|
});
|
|
2238
2500
|
}
|
|
2239
2501
|
return i;
|
|
2240
2502
|
}
|
|
2241
|
-
var
|
|
2242
|
-
var
|
|
2503
|
+
var ir = function(e, t) {
|
|
2504
|
+
var n = $.useRef();
|
|
2243
2505
|
return $.useEffect(function() {
|
|
2244
|
-
|
|
2245
|
-
}, [e,
|
|
2506
|
+
n.current = e;
|
|
2507
|
+
}, [e, t]), n.current;
|
|
2246
2508
|
};
|
|
2247
|
-
function
|
|
2248
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
|
|
2249
|
-
if (o && !o.reportNamespaces && (o.reportNamespaces = new
|
|
2250
|
-
|
|
2251
|
-
var s = function(
|
|
2252
|
-
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;
|
|
2253
2515
|
}, u = [s, {}, !1];
|
|
2254
2516
|
return u.t = s, u.i18n = {}, u.ready = !1, u;
|
|
2255
2517
|
}
|
|
2256
|
-
o.options.react && o.options.react.wait !== void 0 &&
|
|
2257
|
-
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;
|
|
2258
2520
|
p = typeof p == "string" ? [p] : p || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(p);
|
|
2259
|
-
var
|
|
2260
|
-
return
|
|
2521
|
+
var g = (o.isInitialized || o.initializedStoreOnce) && p.every(function(_) {
|
|
2522
|
+
return Vn(_, o, d);
|
|
2261
2523
|
});
|
|
2262
2524
|
function b() {
|
|
2263
2525
|
return o.getFixedT(e.lng || null, d.nsMode === "fallback" ? p : p[0], f);
|
|
2264
2526
|
}
|
|
2265
|
-
var y = $.useState(b),
|
|
2527
|
+
var y = $.useState(b), w = rr(y, 2), v = w[0], m = w[1], S = p.join();
|
|
2266
2528
|
e.lng && (S = "".concat(e.lng).concat(S));
|
|
2267
|
-
var
|
|
2529
|
+
var x = ir(S), k = $.useRef(!0);
|
|
2268
2530
|
$.useEffect(function() {
|
|
2269
|
-
var
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
}) :
|
|
2273
|
-
|
|
2274
|
-
})),
|
|
2275
|
-
function
|
|
2276
|
-
|
|
2277
|
-
}
|
|
2278
|
-
return
|
|
2279
|
-
|
|
2280
|
-
return o.off(
|
|
2281
|
-
}),
|
|
2282
|
-
return o.store.off(
|
|
2531
|
+
var _ = d.bindI18n, R = d.bindI18nStore;
|
|
2532
|
+
k.current = !0, !g && !c && (e.lng ? gt(o, e.lng, p, function() {
|
|
2533
|
+
k.current && m(b);
|
|
2534
|
+
}) : pt(o, p, function() {
|
|
2535
|
+
k.current && m(b);
|
|
2536
|
+
})), g && x && x !== S && k.current && m(b);
|
|
2537
|
+
function C() {
|
|
2538
|
+
k.current && m(b);
|
|
2539
|
+
}
|
|
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);
|
|
2543
|
+
}), R && o && R.split(" ").forEach(function(Y) {
|
|
2544
|
+
return o.store.off(Y, C);
|
|
2283
2545
|
});
|
|
2284
2546
|
};
|
|
2285
2547
|
}, [o, S]);
|
|
2286
2548
|
var D = $.useRef(!0);
|
|
2287
2549
|
$.useEffect(function() {
|
|
2288
|
-
|
|
2550
|
+
k.current && !D.current && m(b), D.current = !1;
|
|
2289
2551
|
}, [o, f]);
|
|
2290
|
-
var I = [v, o,
|
|
2291
|
-
if (I.t = v, I.i18n = o, I.ready =
|
|
2552
|
+
var I = [v, o, g];
|
|
2553
|
+
if (I.t = v, I.i18n = o, I.ready = g, g || !g && !c)
|
|
2292
2554
|
return I;
|
|
2293
|
-
throw new Promise(function(
|
|
2294
|
-
e.lng ?
|
|
2295
|
-
return
|
|
2296
|
-
}) :
|
|
2297
|
-
return
|
|
2555
|
+
throw new Promise(function(_) {
|
|
2556
|
+
e.lng ? gt(o, e.lng, p, function() {
|
|
2557
|
+
return _();
|
|
2558
|
+
}) : pt(o, p, function() {
|
|
2559
|
+
return _();
|
|
2298
2560
|
});
|
|
2299
2561
|
});
|
|
2300
2562
|
}
|
|
2301
|
-
function
|
|
2302
|
-
var e = i.i18n,
|
|
2563
|
+
function or(i) {
|
|
2564
|
+
var e = i.i18n, t = i.defaultNS, n = i.children, r = $.useMemo(function() {
|
|
2303
2565
|
return {
|
|
2304
2566
|
i18n: e,
|
|
2305
|
-
defaultNS:
|
|
2567
|
+
defaultNS: t
|
|
2306
2568
|
};
|
|
2307
|
-
}, [e,
|
|
2308
|
-
return $.createElement(
|
|
2569
|
+
}, [e, t]);
|
|
2570
|
+
return $.createElement(Ut.Provider, {
|
|
2309
2571
|
value: r
|
|
2310
|
-
},
|
|
2572
|
+
}, n);
|
|
2311
2573
|
}
|
|
2312
|
-
var
|
|
2313
|
-
function
|
|
2314
|
-
return
|
|
2574
|
+
var Bt = [], sr = Bt.forEach, ur = Bt.slice;
|
|
2575
|
+
function fr(i) {
|
|
2576
|
+
return sr.call(ur.call(arguments, 1), function(e) {
|
|
2315
2577
|
if (e)
|
|
2316
|
-
for (var
|
|
2317
|
-
i[
|
|
2578
|
+
for (var t in e)
|
|
2579
|
+
i[t] === void 0 && (i[t] = e[t]);
|
|
2318
2580
|
}), i;
|
|
2319
2581
|
}
|
|
2320
|
-
function
|
|
2582
|
+
function cr(i) {
|
|
2321
2583
|
return i ? typeof i == "function" ? new i() : i : null;
|
|
2322
2584
|
}
|
|
2323
|
-
function
|
|
2585
|
+
function lr() {
|
|
2324
2586
|
return {
|
|
2325
2587
|
handleEmptyResourcesAsFailed: !0,
|
|
2326
2588
|
cacheHitMode: "none"
|
|
@@ -2328,51 +2590,51 @@ function $n() {
|
|
|
2328
2590
|
// refreshExpirationTime: 60 * 60 * 1000
|
|
2329
2591
|
};
|
|
2330
2592
|
}
|
|
2331
|
-
function
|
|
2593
|
+
function yt(i, e, t, n) {
|
|
2332
2594
|
var r = i.read.bind(i);
|
|
2333
2595
|
if (r.length === 2) {
|
|
2334
2596
|
try {
|
|
2335
|
-
var a = r(e,
|
|
2597
|
+
var a = r(e, t);
|
|
2336
2598
|
a && typeof a.then == "function" ? a.then(function(o) {
|
|
2337
|
-
return
|
|
2338
|
-
}).catch(
|
|
2599
|
+
return n(null, o);
|
|
2600
|
+
}).catch(n) : n(null, a);
|
|
2339
2601
|
} catch (o) {
|
|
2340
|
-
|
|
2602
|
+
n(o);
|
|
2341
2603
|
}
|
|
2342
2604
|
return;
|
|
2343
2605
|
}
|
|
2344
|
-
r(e,
|
|
2606
|
+
r(e, t, n);
|
|
2345
2607
|
}
|
|
2346
|
-
var
|
|
2608
|
+
var Ht = /* @__PURE__ */ function() {
|
|
2347
2609
|
function i(e) {
|
|
2348
|
-
var
|
|
2349
|
-
|
|
2610
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2611
|
+
B(this, i), this.backends = [], this.type = "backend", this.allOptions = n, this.init(e, t);
|
|
2350
2612
|
}
|
|
2351
2613
|
return H(i, [{
|
|
2352
2614
|
key: "init",
|
|
2353
|
-
value: function(
|
|
2354
|
-
var
|
|
2355
|
-
this.services =
|
|
2356
|
-
|
|
2615
|
+
value: function(t) {
|
|
2616
|
+
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2617
|
+
this.services = t, this.options = 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);
|
|
2357
2619
|
}), this.services && this.options.reloadInterval && setInterval(function() {
|
|
2358
|
-
return
|
|
2620
|
+
return n.reload();
|
|
2359
2621
|
}, this.options.reloadInterval);
|
|
2360
2622
|
}
|
|
2361
2623
|
}, {
|
|
2362
2624
|
key: "read",
|
|
2363
|
-
value: function(
|
|
2625
|
+
value: function(t, n, r) {
|
|
2364
2626
|
var a = this, o = this.backends.length, s = function d(c) {
|
|
2365
2627
|
if (c >= o)
|
|
2366
2628
|
return r(new Error("non of the backend loaded data", !0));
|
|
2367
|
-
var f = c === o - 1, p = a.options.handleEmptyResourcesAsFailed && !f ? 0 : -1,
|
|
2368
|
-
|
|
2629
|
+
var f = c === o - 1, p = a.options.handleEmptyResourcesAsFailed && !f ? 0 : -1, g = a.backends[c];
|
|
2630
|
+
g.read ? yt(g, t, n, function(b, y, w) {
|
|
2369
2631
|
if (!b && y && Object.keys(y).length > p) {
|
|
2370
|
-
if (r(null, y, c), u(c - 1, y),
|
|
2371
|
-
if (
|
|
2632
|
+
if (r(null, y, c), u(c - 1, y), g.save && a.options.cacheHitMode && ["refresh", "refreshAndUpdateStore"].indexOf(a.options.cacheHitMode) > -1) {
|
|
2633
|
+
if (w && a.options.refreshExpirationTime && w + a.options.refreshExpirationTime > Date.now())
|
|
2372
2634
|
return;
|
|
2373
2635
|
var v = a.backends[c + 1];
|
|
2374
|
-
v && v.read &&
|
|
2375
|
-
m || S && (Object.keys(S).length <= p || (u(c, S), a.options.cacheHitMode === "refreshAndUpdateStore" && a.services && a.services.resourceStore && a.services.resourceStore.addResourceBundle(
|
|
2636
|
+
v && v.read && yt(v, t, n, function(m, S) {
|
|
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)));
|
|
2376
2638
|
});
|
|
2377
2639
|
}
|
|
2378
2640
|
} else
|
|
@@ -2381,14 +2643,14 @@ var Et = /* @__PURE__ */ function() {
|
|
|
2381
2643
|
}, u = function d(c, f) {
|
|
2382
2644
|
if (!(c < 0)) {
|
|
2383
2645
|
var p = a.backends[c];
|
|
2384
|
-
p.save && p.save(
|
|
2646
|
+
p.save && p.save(t, n, f), d(c - 1, f);
|
|
2385
2647
|
}
|
|
2386
2648
|
};
|
|
2387
2649
|
s(0);
|
|
2388
2650
|
}
|
|
2389
2651
|
}, {
|
|
2390
2652
|
key: "create",
|
|
2391
|
-
value: function(
|
|
2653
|
+
value: function(t, n, r, a) {
|
|
2392
2654
|
var o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : function() {
|
|
2393
2655
|
}, s = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : {};
|
|
2394
2656
|
this.backends.forEach(function(u) {
|
|
@@ -2397,7 +2659,7 @@ var Et = /* @__PURE__ */ function() {
|
|
|
2397
2659
|
if (d.length < 6) {
|
|
2398
2660
|
try {
|
|
2399
2661
|
var c;
|
|
2400
|
-
d.length === 5 ? c = d(
|
|
2662
|
+
d.length === 5 ? c = d(t, n, r, a, s) : c = d(t, n, r, a), c && typeof c.then == "function" ? c.then(function(f) {
|
|
2401
2663
|
return o(null, f);
|
|
2402
2664
|
}).catch(o) : o(null, c);
|
|
2403
2665
|
} catch (f) {
|
|
@@ -2405,27 +2667,27 @@ var Et = /* @__PURE__ */ function() {
|
|
|
2405
2667
|
}
|
|
2406
2668
|
return;
|
|
2407
2669
|
}
|
|
2408
|
-
d(
|
|
2670
|
+
d(t, n, r, a, o, s);
|
|
2409
2671
|
}
|
|
2410
2672
|
});
|
|
2411
2673
|
}
|
|
2412
2674
|
}, {
|
|
2413
2675
|
key: "reload",
|
|
2414
2676
|
value: function() {
|
|
2415
|
-
var
|
|
2677
|
+
var t = this, n = this.services, r = n.backendConnector, a = n.languageUtils, o = n.logger, s = r.language;
|
|
2416
2678
|
if (!(s && s.toLowerCase() === "cimode")) {
|
|
2417
2679
|
var u = [], d = function(f) {
|
|
2418
2680
|
var p = a.toResolveHierarchy(f);
|
|
2419
|
-
p.forEach(function(
|
|
2420
|
-
u.indexOf(
|
|
2681
|
+
p.forEach(function(g) {
|
|
2682
|
+
u.indexOf(g) < 0 && u.push(g);
|
|
2421
2683
|
});
|
|
2422
2684
|
};
|
|
2423
2685
|
d(s), this.allOptions.preload && this.allOptions.preload.forEach(function(c) {
|
|
2424
2686
|
return d(c);
|
|
2425
2687
|
}), u.forEach(function(c) {
|
|
2426
|
-
|
|
2427
|
-
r.read(c, f, "read", null, null, function(p,
|
|
2428
|
-
p && o.warn("loading namespace ".concat(f, " for language ").concat(c, " failed"), p), !p &&
|
|
2688
|
+
t.allOptions.ns.forEach(function(f) {
|
|
2689
|
+
r.read(c, f, "read", null, null, function(p, g) {
|
|
2690
|
+
p && o.warn("loading namespace ".concat(f, " for language ").concat(c, " failed"), p), !p && g && o.log("loaded namespace ".concat(f, " for language ").concat(c), g), r.loaded("".concat(c, "|").concat(f), p, g);
|
|
2429
2691
|
});
|
|
2430
2692
|
});
|
|
2431
2693
|
});
|
|
@@ -2433,35 +2695,35 @@ var Et = /* @__PURE__ */ function() {
|
|
|
2433
2695
|
}
|
|
2434
2696
|
}]), i;
|
|
2435
2697
|
}();
|
|
2436
|
-
|
|
2437
|
-
function
|
|
2698
|
+
Ht.type = "backend";
|
|
2699
|
+
function Te(i) {
|
|
2438
2700
|
"@babel/helpers - typeof";
|
|
2439
|
-
return
|
|
2701
|
+
return Te = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
2440
2702
|
return typeof e;
|
|
2441
2703
|
} : function(e) {
|
|
2442
2704
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2443
|
-
},
|
|
2705
|
+
}, Te(i);
|
|
2444
2706
|
}
|
|
2445
|
-
function
|
|
2446
|
-
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" :
|
|
2707
|
+
function Mt() {
|
|
2708
|
+
return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Te(XMLHttpRequest)) === "object";
|
|
2447
2709
|
}
|
|
2448
|
-
function
|
|
2710
|
+
function dr(i) {
|
|
2449
2711
|
return !!i && typeof i.then == "function";
|
|
2450
2712
|
}
|
|
2451
|
-
function
|
|
2452
|
-
return
|
|
2713
|
+
function pr(i) {
|
|
2714
|
+
return dr(i) ? i : Promise.resolve(i);
|
|
2453
2715
|
}
|
|
2454
|
-
function
|
|
2716
|
+
function gr(i) {
|
|
2455
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.');
|
|
2456
2718
|
}
|
|
2457
|
-
var
|
|
2458
|
-
function
|
|
2459
|
-
return
|
|
2460
|
-
var
|
|
2719
|
+
var De = { exports: {} }, ve = { exports: {} }, bt;
|
|
2720
|
+
function hr() {
|
|
2721
|
+
return bt || (bt = 1, function(i, e) {
|
|
2722
|
+
var t = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof ce < "u" && ce, n = function() {
|
|
2461
2723
|
function a() {
|
|
2462
|
-
this.fetch = !1, this.DOMException =
|
|
2724
|
+
this.fetch = !1, this.DOMException = t.DOMException;
|
|
2463
2725
|
}
|
|
2464
|
-
return a.prototype =
|
|
2726
|
+
return a.prototype = t, new a();
|
|
2465
2727
|
}();
|
|
2466
2728
|
(function(a) {
|
|
2467
2729
|
(function(o) {
|
|
@@ -2500,98 +2762,98 @@ function zn() {
|
|
|
2500
2762
|
throw new TypeError('Invalid character in header field name: "' + l + '"');
|
|
2501
2763
|
return l.toLowerCase();
|
|
2502
2764
|
}
|
|
2503
|
-
function
|
|
2765
|
+
function g(l) {
|
|
2504
2766
|
return typeof l != "string" && (l = String(l)), l;
|
|
2505
2767
|
}
|
|
2506
2768
|
function b(l) {
|
|
2507
|
-
var
|
|
2769
|
+
var h = {
|
|
2508
2770
|
next: function() {
|
|
2509
|
-
var
|
|
2510
|
-
return { done:
|
|
2771
|
+
var O = l.shift();
|
|
2772
|
+
return { done: O === void 0, value: O };
|
|
2511
2773
|
}
|
|
2512
2774
|
};
|
|
2513
|
-
return u.iterable && (
|
|
2514
|
-
return
|
|
2515
|
-
}),
|
|
2775
|
+
return u.iterable && (h[Symbol.iterator] = function() {
|
|
2776
|
+
return h;
|
|
2777
|
+
}), h;
|
|
2516
2778
|
}
|
|
2517
2779
|
function y(l) {
|
|
2518
|
-
this.map = {}, l instanceof y ? l.forEach(function(
|
|
2519
|
-
this.append(
|
|
2520
|
-
}, this) : Array.isArray(l) ? l.forEach(function(
|
|
2521
|
-
this.append(
|
|
2522
|
-
}, this) : l && Object.getOwnPropertyNames(l).forEach(function(
|
|
2523
|
-
this.append(
|
|
2780
|
+
this.map = {}, l instanceof y ? l.forEach(function(h, O) {
|
|
2781
|
+
this.append(O, h);
|
|
2782
|
+
}, this) : Array.isArray(l) ? l.forEach(function(h) {
|
|
2783
|
+
this.append(h[0], h[1]);
|
|
2784
|
+
}, this) : l && Object.getOwnPropertyNames(l).forEach(function(h) {
|
|
2785
|
+
this.append(h, l[h]);
|
|
2524
2786
|
}, this);
|
|
2525
2787
|
}
|
|
2526
|
-
y.prototype.append = function(l,
|
|
2527
|
-
l = p(l),
|
|
2528
|
-
var
|
|
2529
|
-
this.map[l] =
|
|
2788
|
+
y.prototype.append = function(l, h) {
|
|
2789
|
+
l = p(l), h = g(h);
|
|
2790
|
+
var O = this.map[l];
|
|
2791
|
+
this.map[l] = O ? O + ", " + h : h;
|
|
2530
2792
|
}, y.prototype.delete = function(l) {
|
|
2531
2793
|
delete this.map[p(l)];
|
|
2532
2794
|
}, y.prototype.get = function(l) {
|
|
2533
2795
|
return l = p(l), this.has(l) ? this.map[l] : null;
|
|
2534
2796
|
}, y.prototype.has = function(l) {
|
|
2535
2797
|
return this.map.hasOwnProperty(p(l));
|
|
2536
|
-
}, y.prototype.set = function(l,
|
|
2537
|
-
this.map[p(l)] = h
|
|
2538
|
-
}, y.prototype.forEach = function(l,
|
|
2539
|
-
for (var
|
|
2540
|
-
this.map.hasOwnProperty(
|
|
2798
|
+
}, y.prototype.set = function(l, h) {
|
|
2799
|
+
this.map[p(l)] = g(h);
|
|
2800
|
+
}, y.prototype.forEach = function(l, h) {
|
|
2801
|
+
for (var O in this.map)
|
|
2802
|
+
this.map.hasOwnProperty(O) && l.call(h, this.map[O], O, this);
|
|
2541
2803
|
}, y.prototype.keys = function() {
|
|
2542
2804
|
var l = [];
|
|
2543
|
-
return this.forEach(function(
|
|
2544
|
-
l.push(
|
|
2805
|
+
return this.forEach(function(h, O) {
|
|
2806
|
+
l.push(O);
|
|
2545
2807
|
}), b(l);
|
|
2546
2808
|
}, y.prototype.values = function() {
|
|
2547
2809
|
var l = [];
|
|
2548
|
-
return this.forEach(function(
|
|
2549
|
-
l.push(
|
|
2810
|
+
return this.forEach(function(h) {
|
|
2811
|
+
l.push(h);
|
|
2550
2812
|
}), b(l);
|
|
2551
2813
|
}, y.prototype.entries = function() {
|
|
2552
2814
|
var l = [];
|
|
2553
|
-
return this.forEach(function(
|
|
2554
|
-
l.push([
|
|
2815
|
+
return this.forEach(function(h, O) {
|
|
2816
|
+
l.push([O, h]);
|
|
2555
2817
|
}), b(l);
|
|
2556
2818
|
}, u.iterable && (y.prototype[Symbol.iterator] = y.prototype.entries);
|
|
2557
|
-
function
|
|
2819
|
+
function w(l) {
|
|
2558
2820
|
if (l.bodyUsed)
|
|
2559
2821
|
return Promise.reject(new TypeError("Already read"));
|
|
2560
2822
|
l.bodyUsed = !0;
|
|
2561
2823
|
}
|
|
2562
2824
|
function v(l) {
|
|
2563
|
-
return new Promise(function(
|
|
2825
|
+
return new Promise(function(h, O) {
|
|
2564
2826
|
l.onload = function() {
|
|
2565
|
-
|
|
2827
|
+
h(l.result);
|
|
2566
2828
|
}, l.onerror = function() {
|
|
2567
|
-
|
|
2829
|
+
O(l.error);
|
|
2568
2830
|
};
|
|
2569
2831
|
});
|
|
2570
2832
|
}
|
|
2571
2833
|
function m(l) {
|
|
2572
|
-
var
|
|
2573
|
-
return
|
|
2834
|
+
var h = new FileReader(), O = v(h);
|
|
2835
|
+
return h.readAsArrayBuffer(l), O;
|
|
2574
2836
|
}
|
|
2575
2837
|
function S(l) {
|
|
2576
|
-
var
|
|
2577
|
-
return
|
|
2838
|
+
var h = new FileReader(), O = v(h);
|
|
2839
|
+
return h.readAsText(l), O;
|
|
2578
2840
|
}
|
|
2579
|
-
function
|
|
2580
|
-
for (var
|
|
2581
|
-
|
|
2582
|
-
return
|
|
2841
|
+
function x(l) {
|
|
2842
|
+
for (var h = new Uint8Array(l), O = new Array(h.length), j = 0; j < h.length; j++)
|
|
2843
|
+
O[j] = String.fromCharCode(h[j]);
|
|
2844
|
+
return O.join("");
|
|
2583
2845
|
}
|
|
2584
|
-
function
|
|
2846
|
+
function k(l) {
|
|
2585
2847
|
if (l.slice)
|
|
2586
2848
|
return l.slice(0);
|
|
2587
|
-
var
|
|
2588
|
-
return
|
|
2849
|
+
var h = new Uint8Array(l.byteLength);
|
|
2850
|
+
return h.set(new Uint8Array(l)), h.buffer;
|
|
2589
2851
|
}
|
|
2590
2852
|
function D() {
|
|
2591
2853
|
return this.bodyUsed = !1, this._initBody = function(l) {
|
|
2592
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = l, l ? typeof l == "string" ? this._bodyText = l : u.blob && Blob.prototype.isPrototypeOf(l) ? this._bodyBlob = l : u.formData && FormData.prototype.isPrototypeOf(l) ? this._bodyFormData = l : u.searchParams && URLSearchParams.prototype.isPrototypeOf(l) ? this._bodyText = l.toString() : u.arrayBuffer && u.blob && d(l) ? (this._bodyArrayBuffer =
|
|
2854
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = l, l ? typeof l == "string" ? this._bodyText = l : u.blob && Blob.prototype.isPrototypeOf(l) ? this._bodyBlob = l : u.formData && FormData.prototype.isPrototypeOf(l) ? this._bodyFormData = l : u.searchParams && URLSearchParams.prototype.isPrototypeOf(l) ? this._bodyText = l.toString() : u.arrayBuffer && u.blob && d(l) ? (this._bodyArrayBuffer = k(l.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : u.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(l) || f(l)) ? this._bodyArrayBuffer = k(l) : this._bodyText = l = Object.prototype.toString.call(l) : this._bodyText = "", this.headers.get("content-type") || (typeof l == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : u.searchParams && URLSearchParams.prototype.isPrototypeOf(l) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2593
2855
|
}, u.blob && (this.blob = function() {
|
|
2594
|
-
var l =
|
|
2856
|
+
var l = w(this);
|
|
2595
2857
|
if (l)
|
|
2596
2858
|
return l;
|
|
2597
2859
|
if (this._bodyBlob)
|
|
@@ -2603,7 +2865,7 @@ function zn() {
|
|
|
2603
2865
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
2604
2866
|
}, this.arrayBuffer = function() {
|
|
2605
2867
|
if (this._bodyArrayBuffer) {
|
|
2606
|
-
var l =
|
|
2868
|
+
var l = w(this);
|
|
2607
2869
|
return l || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(
|
|
2608
2870
|
this._bodyArrayBuffer.buffer.slice(
|
|
2609
2871
|
this._bodyArrayBuffer.byteOffset,
|
|
@@ -2613,80 +2875,80 @@ function zn() {
|
|
|
2613
2875
|
} else
|
|
2614
2876
|
return this.blob().then(m);
|
|
2615
2877
|
}), this.text = function() {
|
|
2616
|
-
var l =
|
|
2878
|
+
var l = w(this);
|
|
2617
2879
|
if (l)
|
|
2618
2880
|
return l;
|
|
2619
2881
|
if (this._bodyBlob)
|
|
2620
2882
|
return S(this._bodyBlob);
|
|
2621
2883
|
if (this._bodyArrayBuffer)
|
|
2622
|
-
return Promise.resolve(
|
|
2884
|
+
return Promise.resolve(x(this._bodyArrayBuffer));
|
|
2623
2885
|
if (this._bodyFormData)
|
|
2624
2886
|
throw new Error("could not read FormData body as text");
|
|
2625
2887
|
return Promise.resolve(this._bodyText);
|
|
2626
2888
|
}, u.formData && (this.formData = function() {
|
|
2627
|
-
return this.text().then(
|
|
2889
|
+
return this.text().then(C);
|
|
2628
2890
|
}), this.json = function() {
|
|
2629
2891
|
return this.text().then(JSON.parse);
|
|
2630
2892
|
}, this;
|
|
2631
2893
|
}
|
|
2632
2894
|
var I = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
2633
|
-
function
|
|
2634
|
-
var
|
|
2635
|
-
return I.indexOf(
|
|
2895
|
+
function _(l) {
|
|
2896
|
+
var h = l.toUpperCase();
|
|
2897
|
+
return I.indexOf(h) > -1 ? h : l;
|
|
2636
2898
|
}
|
|
2637
|
-
function
|
|
2638
|
-
if (!(this instanceof
|
|
2899
|
+
function R(l, h) {
|
|
2900
|
+
if (!(this instanceof R))
|
|
2639
2901
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2640
|
-
|
|
2641
|
-
var
|
|
2642
|
-
if (l instanceof
|
|
2902
|
+
h = h || {};
|
|
2903
|
+
var O = h.body;
|
|
2904
|
+
if (l instanceof R) {
|
|
2643
2905
|
if (l.bodyUsed)
|
|
2644
2906
|
throw new TypeError("Already read");
|
|
2645
|
-
this.url = l.url, this.credentials = l.credentials,
|
|
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);
|
|
2646
2908
|
} else
|
|
2647
2909
|
this.url = String(l);
|
|
2648
|
-
if (this.credentials =
|
|
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)
|
|
2649
2911
|
throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
2650
|
-
if (this._initBody(
|
|
2912
|
+
if (this._initBody(O), (this.method === "GET" || this.method === "HEAD") && (h.cache === "no-store" || h.cache === "no-cache")) {
|
|
2651
2913
|
var j = /([?&])_=[^&]*/;
|
|
2652
2914
|
if (j.test(this.url))
|
|
2653
2915
|
this.url = this.url.replace(j, "$1_=" + (/* @__PURE__ */ new Date()).getTime());
|
|
2654
2916
|
else {
|
|
2655
|
-
var
|
|
2656
|
-
this.url += (
|
|
2917
|
+
var L = /\?/;
|
|
2918
|
+
this.url += (L.test(this.url) ? "&" : "?") + "_=" + (/* @__PURE__ */ new Date()).getTime();
|
|
2657
2919
|
}
|
|
2658
2920
|
}
|
|
2659
2921
|
}
|
|
2660
|
-
|
|
2661
|
-
return new
|
|
2922
|
+
R.prototype.clone = function() {
|
|
2923
|
+
return new R(this, { body: this._bodyInit });
|
|
2662
2924
|
};
|
|
2663
|
-
function
|
|
2664
|
-
var
|
|
2665
|
-
return l.trim().split("&").forEach(function(
|
|
2666
|
-
if (
|
|
2667
|
-
var j =
|
|
2668
|
-
|
|
2925
|
+
function C(l) {
|
|
2926
|
+
var h = new FormData();
|
|
2927
|
+
return l.trim().split("&").forEach(function(O) {
|
|
2928
|
+
if (O) {
|
|
2929
|
+
var j = O.split("="), L = j.shift().replace(/\+/g, " "), P = j.join("=").replace(/\+/g, " ");
|
|
2930
|
+
h.append(decodeURIComponent(L), decodeURIComponent(P));
|
|
2669
2931
|
}
|
|
2670
|
-
}),
|
|
2932
|
+
}), h;
|
|
2671
2933
|
}
|
|
2672
|
-
function
|
|
2673
|
-
var
|
|
2674
|
-
return
|
|
2934
|
+
function Y(l) {
|
|
2935
|
+
var h = new y(), O = l.replace(/\r?\n[\t ]+/g, " ");
|
|
2936
|
+
return O.split("\r").map(function(j) {
|
|
2675
2937
|
return j.indexOf(`
|
|
2676
2938
|
`) === 0 ? j.substr(1, j.length) : j;
|
|
2677
2939
|
}).forEach(function(j) {
|
|
2678
|
-
var
|
|
2679
|
-
if (
|
|
2680
|
-
var K =
|
|
2681
|
-
|
|
2940
|
+
var L = j.split(":"), P = L.shift().trim();
|
|
2941
|
+
if (P) {
|
|
2942
|
+
var K = L.join(":").trim();
|
|
2943
|
+
h.append(P, K);
|
|
2682
2944
|
}
|
|
2683
|
-
}),
|
|
2945
|
+
}), h;
|
|
2684
2946
|
}
|
|
2685
|
-
D.call(
|
|
2686
|
-
function A(l,
|
|
2947
|
+
D.call(R.prototype);
|
|
2948
|
+
function A(l, h) {
|
|
2687
2949
|
if (!(this instanceof A))
|
|
2688
2950
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2689
|
-
|
|
2951
|
+
h || (h = {}), this.type = "default", this.status = h.status === void 0 ? 200 : h.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = h.statusText === void 0 ? "" : "" + h.statusText, this.headers = new y(h.headers), this.url = h.url || "", this._initBody(l);
|
|
2690
2952
|
}
|
|
2691
2953
|
D.call(A.prototype), A.prototype.clone = function() {
|
|
2692
2954
|
return new A(this._bodyInit, {
|
|
@@ -2699,125 +2961,125 @@ function zn() {
|
|
|
2699
2961
|
var l = new A(null, { status: 0, statusText: "" });
|
|
2700
2962
|
return l.type = "error", l;
|
|
2701
2963
|
};
|
|
2702
|
-
var
|
|
2703
|
-
A.redirect = function(l,
|
|
2704
|
-
if (
|
|
2964
|
+
var Pe = [301, 302, 303, 307, 308];
|
|
2965
|
+
A.redirect = function(l, h) {
|
|
2966
|
+
if (Pe.indexOf(h) === -1)
|
|
2705
2967
|
throw new RangeError("Invalid status code");
|
|
2706
|
-
return new A(null, { status:
|
|
2968
|
+
return new A(null, { status: h, headers: { location: l } });
|
|
2707
2969
|
}, o.DOMException = s.DOMException;
|
|
2708
2970
|
try {
|
|
2709
2971
|
new o.DOMException();
|
|
2710
2972
|
} catch {
|
|
2711
|
-
o.DOMException = function(
|
|
2712
|
-
this.message =
|
|
2713
|
-
var j = Error(
|
|
2973
|
+
o.DOMException = function(h, O) {
|
|
2974
|
+
this.message = h, this.name = O;
|
|
2975
|
+
var j = Error(h);
|
|
2714
2976
|
this.stack = j.stack;
|
|
2715
2977
|
}, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
|
|
2716
2978
|
}
|
|
2717
|
-
function q(l,
|
|
2718
|
-
return new Promise(function(
|
|
2719
|
-
var
|
|
2720
|
-
if (
|
|
2979
|
+
function q(l, h) {
|
|
2980
|
+
return new Promise(function(O, j) {
|
|
2981
|
+
var L = new R(l, h);
|
|
2982
|
+
if (L.signal && L.signal.aborted)
|
|
2721
2983
|
return j(new o.DOMException("Aborted", "AbortError"));
|
|
2722
|
-
var
|
|
2984
|
+
var P = new XMLHttpRequest();
|
|
2723
2985
|
function K() {
|
|
2724
|
-
|
|
2986
|
+
P.abort();
|
|
2725
2987
|
}
|
|
2726
|
-
|
|
2988
|
+
P.onload = function() {
|
|
2727
2989
|
var F = {
|
|
2728
|
-
status:
|
|
2729
|
-
statusText:
|
|
2730
|
-
headers:
|
|
2990
|
+
status: P.status,
|
|
2991
|
+
statusText: P.statusText,
|
|
2992
|
+
headers: Y(P.getAllResponseHeaders() || "")
|
|
2731
2993
|
};
|
|
2732
|
-
F.url = "responseURL" in
|
|
2733
|
-
var V = "response" in
|
|
2994
|
+
F.url = "responseURL" in P ? P.responseURL : F.headers.get("X-Request-URL");
|
|
2995
|
+
var V = "response" in P ? P.response : P.responseText;
|
|
2734
2996
|
setTimeout(function() {
|
|
2735
|
-
|
|
2997
|
+
O(new A(V, F));
|
|
2736
2998
|
}, 0);
|
|
2737
|
-
},
|
|
2999
|
+
}, P.onerror = function() {
|
|
2738
3000
|
setTimeout(function() {
|
|
2739
3001
|
j(new TypeError("Network request failed"));
|
|
2740
3002
|
}, 0);
|
|
2741
|
-
},
|
|
3003
|
+
}, P.ontimeout = function() {
|
|
2742
3004
|
setTimeout(function() {
|
|
2743
3005
|
j(new TypeError("Network request failed"));
|
|
2744
3006
|
}, 0);
|
|
2745
|
-
},
|
|
3007
|
+
}, P.onabort = function() {
|
|
2746
3008
|
setTimeout(function() {
|
|
2747
3009
|
j(new o.DOMException("Aborted", "AbortError"));
|
|
2748
3010
|
}, 0);
|
|
2749
3011
|
};
|
|
2750
|
-
function
|
|
3012
|
+
function je(F) {
|
|
2751
3013
|
try {
|
|
2752
3014
|
return F === "" && s.location.href ? s.location.href : F;
|
|
2753
3015
|
} catch {
|
|
2754
3016
|
return F;
|
|
2755
3017
|
}
|
|
2756
3018
|
}
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
}) :
|
|
2760
|
-
|
|
2761
|
-
}),
|
|
2762
|
-
|
|
2763
|
-
}),
|
|
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) {
|
|
3020
|
+
P.setRequestHeader(F, g(h.headers[F]));
|
|
3021
|
+
}) : L.headers.forEach(function(F, V) {
|
|
3022
|
+
P.setRequestHeader(V, F);
|
|
3023
|
+
}), L.signal && (L.signal.addEventListener("abort", K), P.onreadystatechange = function() {
|
|
3024
|
+
P.readyState === 4 && L.signal.removeEventListener("abort", K);
|
|
3025
|
+
}), P.send(typeof L._bodyInit > "u" ? null : L._bodyInit);
|
|
2764
3026
|
});
|
|
2765
3027
|
}
|
|
2766
|
-
return q.polyfill = !0, s.fetch || (s.fetch = q, s.Headers = y, s.Request =
|
|
3028
|
+
return q.polyfill = !0, s.fetch || (s.fetch = q, s.Headers = y, s.Request = R, s.Response = A), o.Headers = y, o.Request = R, o.Response = A, o.fetch = q, o;
|
|
2767
3029
|
})({});
|
|
2768
|
-
})(
|
|
2769
|
-
var r =
|
|
3030
|
+
})(n), n.fetch.ponyfill = !0, delete n.fetch.polyfill;
|
|
3031
|
+
var r = t.fetch ? t : n;
|
|
2770
3032
|
e = r.fetch, e.default = r.fetch, e.fetch = r.fetch, e.Headers = r.Headers, e.Request = r.Request, e.Response = r.Response, i.exports = e;
|
|
2771
|
-
}(
|
|
3033
|
+
}(ve, ve.exports)), ve.exports;
|
|
2772
3034
|
}
|
|
2773
3035
|
(function(i, e) {
|
|
2774
|
-
var
|
|
2775
|
-
if (typeof fetch == "function" && (typeof
|
|
2776
|
-
var
|
|
2777
|
-
|
|
2778
|
-
}
|
|
2779
|
-
})(
|
|
2780
|
-
var
|
|
2781
|
-
const
|
|
3036
|
+
var 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();
|
|
3039
|
+
n.default && (n = n.default), e.default = n, i.exports = e.default;
|
|
3040
|
+
}
|
|
3041
|
+
})(De, De.exports);
|
|
3042
|
+
var $t = De.exports;
|
|
3043
|
+
const qt = /* @__PURE__ */ Jt($t), wt = /* @__PURE__ */ Gt({
|
|
2782
3044
|
__proto__: null,
|
|
2783
|
-
default:
|
|
2784
|
-
}, [
|
|
2785
|
-
function
|
|
2786
|
-
var
|
|
3045
|
+
default: qt
|
|
3046
|
+
}, [$t]);
|
|
3047
|
+
function Ot(i, e) {
|
|
3048
|
+
var t = Object.keys(i);
|
|
2787
3049
|
if (Object.getOwnPropertySymbols) {
|
|
2788
|
-
var
|
|
2789
|
-
e && (
|
|
3050
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
3051
|
+
e && (n = n.filter(function(r) {
|
|
2790
3052
|
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
2791
|
-
})),
|
|
3053
|
+
})), t.push.apply(t, n);
|
|
2792
3054
|
}
|
|
2793
|
-
return
|
|
3055
|
+
return t;
|
|
2794
3056
|
}
|
|
2795
|
-
function
|
|
3057
|
+
function St(i) {
|
|
2796
3058
|
for (var e = 1; e < arguments.length; e++) {
|
|
2797
|
-
var
|
|
2798
|
-
e % 2 ?
|
|
2799
|
-
|
|
2800
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(
|
|
2801
|
-
Object.defineProperty(i,
|
|
3059
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
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) {
|
|
3063
|
+
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2802
3064
|
});
|
|
2803
3065
|
}
|
|
2804
3066
|
return i;
|
|
2805
3067
|
}
|
|
2806
|
-
function
|
|
2807
|
-
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;
|
|
2808
3070
|
}
|
|
2809
|
-
function
|
|
2810
|
-
var e =
|
|
3071
|
+
function mr(i) {
|
|
3072
|
+
var e = yr(i, "string");
|
|
2811
3073
|
return te(e) == "symbol" ? e : e + "";
|
|
2812
3074
|
}
|
|
2813
|
-
function
|
|
3075
|
+
function yr(i, e) {
|
|
2814
3076
|
if (te(i) != "object" || !i)
|
|
2815
3077
|
return i;
|
|
2816
|
-
var
|
|
2817
|
-
if (
|
|
2818
|
-
var
|
|
2819
|
-
if (te(
|
|
2820
|
-
return
|
|
3078
|
+
var t = i[Symbol.toPrimitive];
|
|
3079
|
+
if (t !== void 0) {
|
|
3080
|
+
var n = t.call(i, e);
|
|
3081
|
+
if (te(n) != "object")
|
|
3082
|
+
return n;
|
|
2821
3083
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2822
3084
|
}
|
|
2823
3085
|
return (e === "string" ? String : Number)(i);
|
|
@@ -2830,72 +3092,72 @@ function te(i) {
|
|
|
2830
3092
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2831
3093
|
}, te(i);
|
|
2832
3094
|
}
|
|
2833
|
-
var
|
|
2834
|
-
typeof fetch == "function" && (typeof global < "u" && global.fetch ?
|
|
2835
|
-
var
|
|
2836
|
-
|
|
2837
|
-
var
|
|
2838
|
-
typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ?
|
|
2839
|
-
!
|
|
2840
|
-
typeof
|
|
2841
|
-
var
|
|
2842
|
-
if (
|
|
2843
|
-
var
|
|
2844
|
-
for (var r in
|
|
2845
|
-
|
|
2846
|
-
if (!
|
|
3095
|
+
var Q;
|
|
3096
|
+
typeof fetch == "function" && (typeof global < "u" && global.fetch ? Q = global.fetch : typeof window < "u" && window.fetch ? Q = window.fetch : Q = fetch);
|
|
3097
|
+
var le;
|
|
3098
|
+
Mt() && (typeof global < "u" && global.XMLHttpRequest ? le = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (le = window.XMLHttpRequest));
|
|
3099
|
+
var Oe;
|
|
3100
|
+
typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? Oe = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (Oe = window.ActiveXObject));
|
|
3101
|
+
!Q && wt && !le && !Oe && (Q = qt || wt);
|
|
3102
|
+
typeof Q != "function" && (Q = void 0);
|
|
3103
|
+
var Ie = function(e, t) {
|
|
3104
|
+
if (t && te(t) === "object") {
|
|
3105
|
+
var n = "";
|
|
3106
|
+
for (var r in t)
|
|
3107
|
+
n += "&" + encodeURIComponent(r) + "=" + encodeURIComponent(t[r]);
|
|
3108
|
+
if (!n)
|
|
2847
3109
|
return e;
|
|
2848
|
-
e = e + (e.indexOf("?") !== -1 ? "&" : "?") +
|
|
3110
|
+
e = e + (e.indexOf("?") !== -1 ? "&" : "?") + n.slice(1);
|
|
2849
3111
|
}
|
|
2850
3112
|
return e;
|
|
2851
|
-
},
|
|
3113
|
+
}, xt = function(e, t, n, r) {
|
|
2852
3114
|
var a = function(u) {
|
|
2853
3115
|
if (!u.ok)
|
|
2854
|
-
return
|
|
3116
|
+
return n(u.statusText || "Error", {
|
|
2855
3117
|
status: u.status
|
|
2856
3118
|
});
|
|
2857
3119
|
u.text().then(function(d) {
|
|
2858
|
-
|
|
3120
|
+
n(null, {
|
|
2859
3121
|
status: u.status,
|
|
2860
3122
|
data: d
|
|
2861
3123
|
});
|
|
2862
|
-
}).catch(
|
|
3124
|
+
}).catch(n);
|
|
2863
3125
|
};
|
|
2864
3126
|
if (r) {
|
|
2865
|
-
var o = r(e,
|
|
3127
|
+
var o = r(e, t);
|
|
2866
3128
|
if (o instanceof Promise) {
|
|
2867
|
-
o.then(a).catch(
|
|
3129
|
+
o.then(a).catch(n);
|
|
2868
3130
|
return;
|
|
2869
3131
|
}
|
|
2870
3132
|
}
|
|
2871
|
-
typeof fetch == "function" ? fetch(e,
|
|
2872
|
-
},
|
|
2873
|
-
e.queryStringParams && (
|
|
2874
|
-
var a =
|
|
2875
|
-
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, ")")),
|
|
2876
|
-
var o = typeof e.requestOptions == "function" ? e.requestOptions(
|
|
2877
|
-
method:
|
|
2878
|
-
body:
|
|
3133
|
+
typeof fetch == "function" ? fetch(e, t).then(a).catch(n) : Q(e, t).then(a).catch(n);
|
|
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);
|
|
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");
|
|
3138
|
+
var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, s = St({
|
|
3139
|
+
method: n ? "POST" : "GET",
|
|
3140
|
+
body: n ? e.stringify(n) : void 0,
|
|
2879
3141
|
headers: a
|
|
2880
|
-
},
|
|
3142
|
+
}, Pt ? {} : o), u = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
|
|
2881
3143
|
try {
|
|
2882
|
-
|
|
3144
|
+
xt(t, s, r, u);
|
|
2883
3145
|
} catch (d) {
|
|
2884
3146
|
if (!o || Object.keys(o).length === 0 || !d.message || d.message.indexOf("not implemented") < 0)
|
|
2885
3147
|
return r(d);
|
|
2886
3148
|
try {
|
|
2887
3149
|
Object.keys(o).forEach(function(c) {
|
|
2888
3150
|
delete s[c];
|
|
2889
|
-
}),
|
|
3151
|
+
}), xt(t, s, r, u), Pt = !0;
|
|
2890
3152
|
} catch (c) {
|
|
2891
3153
|
r(c);
|
|
2892
3154
|
}
|
|
2893
3155
|
}
|
|
2894
|
-
},
|
|
2895
|
-
|
|
3156
|
+
}, wr = function(e, t, n, r) {
|
|
3157
|
+
n && te(n) === "object" && (n = Ie("", n).slice(1)), e.queryStringParams && (t = Ie(t, e.queryStringParams));
|
|
2896
3158
|
try {
|
|
2897
3159
|
var a;
|
|
2898
|
-
|
|
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");
|
|
2899
3161
|
var o = e.customHeaders;
|
|
2900
3162
|
if (o = typeof o == "function" ? o() : o, o)
|
|
2901
3163
|
for (var s in o)
|
|
@@ -2905,16 +3167,16 @@ var Te = function(e, n) {
|
|
|
2905
3167
|
status: a.status,
|
|
2906
3168
|
data: a.responseText
|
|
2907
3169
|
});
|
|
2908
|
-
}, a.send(
|
|
3170
|
+
}, a.send(n);
|
|
2909
3171
|
} catch (u) {
|
|
2910
3172
|
console && console.log(u);
|
|
2911
3173
|
}
|
|
2912
|
-
},
|
|
2913
|
-
if (typeof
|
|
2914
|
-
},
|
|
2915
|
-
return
|
|
2916
|
-
if (
|
|
2917
|
-
return
|
|
3174
|
+
}, Or = function(e, t, n, r) {
|
|
3175
|
+
if (typeof n == "function" && (r = n, n = void 0), r = r || function() {
|
|
3176
|
+
}, Q && t.indexOf("file:") !== 0)
|
|
3177
|
+
return br(e, t, n, r);
|
|
3178
|
+
if (Mt() || typeof ActiveXObject == "function")
|
|
3179
|
+
return wr(e, t, n, r);
|
|
2918
3180
|
r(new Error("No fetch and no xhr implementation found!"));
|
|
2919
3181
|
};
|
|
2920
3182
|
function ae(i) {
|
|
@@ -2925,73 +3187,73 @@ function ae(i) {
|
|
|
2925
3187
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2926
3188
|
}, ae(i);
|
|
2927
3189
|
}
|
|
2928
|
-
function
|
|
2929
|
-
var
|
|
3190
|
+
function jt(i, e) {
|
|
3191
|
+
var t = Object.keys(i);
|
|
2930
3192
|
if (Object.getOwnPropertySymbols) {
|
|
2931
|
-
var
|
|
2932
|
-
e && (
|
|
3193
|
+
var n = Object.getOwnPropertySymbols(i);
|
|
3194
|
+
e && (n = n.filter(function(r) {
|
|
2933
3195
|
return Object.getOwnPropertyDescriptor(i, r).enumerable;
|
|
2934
|
-
})),
|
|
3196
|
+
})), t.push.apply(t, n);
|
|
2935
3197
|
}
|
|
2936
|
-
return
|
|
3198
|
+
return t;
|
|
2937
3199
|
}
|
|
2938
3200
|
function _e(i) {
|
|
2939
3201
|
for (var e = 1; e < arguments.length; e++) {
|
|
2940
|
-
var
|
|
2941
|
-
e % 2 ?
|
|
2942
|
-
|
|
2943
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(
|
|
2944
|
-
Object.defineProperty(i,
|
|
3202
|
+
var t = arguments[e] != null ? arguments[e] : {};
|
|
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) {
|
|
3206
|
+
Object.defineProperty(i, n, Object.getOwnPropertyDescriptor(t, n));
|
|
2945
3207
|
});
|
|
2946
3208
|
}
|
|
2947
3209
|
return i;
|
|
2948
3210
|
}
|
|
2949
|
-
function
|
|
3211
|
+
function Sr(i, e) {
|
|
2950
3212
|
if (!(i instanceof e))
|
|
2951
3213
|
throw new TypeError("Cannot call a class as a function");
|
|
2952
3214
|
}
|
|
2953
|
-
function
|
|
2954
|
-
for (var
|
|
2955
|
-
var
|
|
2956
|
-
|
|
3215
|
+
function xr(i, e) {
|
|
3216
|
+
for (var t = 0; t < e.length; t++) {
|
|
3217
|
+
var n = e[t];
|
|
3218
|
+
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(i, Vt(n.key), n);
|
|
2957
3219
|
}
|
|
2958
3220
|
}
|
|
2959
|
-
function
|
|
2960
|
-
return e &&
|
|
3221
|
+
function Pr(i, e, t) {
|
|
3222
|
+
return e && xr(i.prototype, e), Object.defineProperty(i, "prototype", { writable: !1 }), i;
|
|
2961
3223
|
}
|
|
2962
|
-
function
|
|
2963
|
-
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;
|
|
2964
3226
|
}
|
|
2965
|
-
function
|
|
2966
|
-
var e =
|
|
3227
|
+
function Vt(i) {
|
|
3228
|
+
var e = jr(i, "string");
|
|
2967
3229
|
return ae(e) == "symbol" ? e : e + "";
|
|
2968
3230
|
}
|
|
2969
|
-
function
|
|
3231
|
+
function jr(i, e) {
|
|
2970
3232
|
if (ae(i) != "object" || !i)
|
|
2971
3233
|
return i;
|
|
2972
|
-
var
|
|
2973
|
-
if (
|
|
2974
|
-
var
|
|
2975
|
-
if (ae(
|
|
2976
|
-
return
|
|
3234
|
+
var t = i[Symbol.toPrimitive];
|
|
3235
|
+
if (t !== void 0) {
|
|
3236
|
+
var n = t.call(i, e);
|
|
3237
|
+
if (ae(n) != "object")
|
|
3238
|
+
return n;
|
|
2977
3239
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2978
3240
|
}
|
|
2979
3241
|
return String(i);
|
|
2980
3242
|
}
|
|
2981
|
-
var
|
|
3243
|
+
var kr = function() {
|
|
2982
3244
|
return {
|
|
2983
3245
|
loadPath: "/locales/{{lng}}/{{ns}}.json",
|
|
2984
3246
|
addPath: "/locales/add/{{lng}}/{{ns}}",
|
|
2985
|
-
parse: function(
|
|
2986
|
-
return JSON.parse(
|
|
3247
|
+
parse: function(t) {
|
|
3248
|
+
return JSON.parse(t);
|
|
2987
3249
|
},
|
|
2988
3250
|
stringify: JSON.stringify,
|
|
2989
|
-
parsePayload: function(
|
|
2990
|
-
return
|
|
3251
|
+
parsePayload: function(t, n, r) {
|
|
3252
|
+
return Kt({}, n, r || "");
|
|
2991
3253
|
},
|
|
2992
|
-
parseLoadPayload: function(
|
|
3254
|
+
parseLoadPayload: function(t, n) {
|
|
2993
3255
|
},
|
|
2994
|
-
request:
|
|
3256
|
+
request: Or,
|
|
2995
3257
|
reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
|
|
2996
3258
|
customHeaders: {},
|
|
2997
3259
|
queryStringParams: {},
|
|
@@ -3004,91 +3266,91 @@ var rr = function() {
|
|
|
3004
3266
|
cache: "default"
|
|
3005
3267
|
}
|
|
3006
3268
|
};
|
|
3007
|
-
},
|
|
3269
|
+
}, zt = function() {
|
|
3008
3270
|
function i(e) {
|
|
3009
|
-
var
|
|
3010
|
-
|
|
3271
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3272
|
+
Sr(this, i), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
|
|
3011
3273
|
}
|
|
3012
|
-
return
|
|
3274
|
+
return Pr(i, [{
|
|
3013
3275
|
key: "init",
|
|
3014
|
-
value: function(
|
|
3015
|
-
var
|
|
3016
|
-
if (this.services =
|
|
3276
|
+
value: function(t) {
|
|
3277
|
+
var n = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
3278
|
+
if (this.services = t, this.options = _e(_e(_e({}, kr()), this.options || {}), r), this.allOptions = a, this.services && this.options.reloadInterval) {
|
|
3017
3279
|
var o = setInterval(function() {
|
|
3018
|
-
return
|
|
3280
|
+
return n.reload();
|
|
3019
3281
|
}, this.options.reloadInterval);
|
|
3020
3282
|
ae(o) === "object" && typeof o.unref == "function" && o.unref();
|
|
3021
3283
|
}
|
|
3022
3284
|
}
|
|
3023
3285
|
}, {
|
|
3024
3286
|
key: "readMulti",
|
|
3025
|
-
value: function(
|
|
3026
|
-
this._readAny(
|
|
3287
|
+
value: function(t, n, r) {
|
|
3288
|
+
this._readAny(t, t, n, n, r);
|
|
3027
3289
|
}
|
|
3028
3290
|
}, {
|
|
3029
3291
|
key: "read",
|
|
3030
|
-
value: function(
|
|
3031
|
-
this._readAny([
|
|
3292
|
+
value: function(t, n, r) {
|
|
3293
|
+
this._readAny([t], t, [n], n, r);
|
|
3032
3294
|
}
|
|
3033
3295
|
}, {
|
|
3034
3296
|
key: "_readAny",
|
|
3035
|
-
value: function(
|
|
3297
|
+
value: function(t, n, r, a, o) {
|
|
3036
3298
|
var s = this, u = this.options.loadPath;
|
|
3037
|
-
typeof this.options.loadPath == "function" && (u = this.options.loadPath(
|
|
3299
|
+
typeof this.options.loadPath == "function" && (u = this.options.loadPath(t, r)), u = pr(u), u.then(function(d) {
|
|
3038
3300
|
if (!d)
|
|
3039
3301
|
return o(null, {});
|
|
3040
3302
|
var c = s.services.interpolator.interpolate(d, {
|
|
3041
|
-
lng:
|
|
3303
|
+
lng: t.join("+"),
|
|
3042
3304
|
ns: r.join("+")
|
|
3043
3305
|
});
|
|
3044
|
-
s.loadUrl(c, o,
|
|
3306
|
+
s.loadUrl(c, o, n, a);
|
|
3045
3307
|
});
|
|
3046
3308
|
}
|
|
3047
3309
|
}, {
|
|
3048
3310
|
key: "loadUrl",
|
|
3049
|
-
value: function(
|
|
3311
|
+
value: function(t, n, r, a) {
|
|
3050
3312
|
var o = this, s = typeof r == "string" ? [r] : r, u = typeof a == "string" ? [a] : a, d = this.options.parseLoadPayload(s, u);
|
|
3051
|
-
this.options.request(this.options,
|
|
3313
|
+
this.options.request(this.options, t, d, function(c, f) {
|
|
3052
3314
|
if (f && (f.status >= 500 && f.status < 600 || !f.status))
|
|
3053
|
-
return
|
|
3315
|
+
return n("failed loading " + t + "; status code: " + f.status, !0);
|
|
3054
3316
|
if (f && f.status >= 400 && f.status < 500)
|
|
3055
|
-
return
|
|
3317
|
+
return n("failed loading " + t + "; status code: " + f.status, !1);
|
|
3056
3318
|
if (!f && c && c.message) {
|
|
3057
|
-
var p = c.message.toLowerCase(),
|
|
3058
|
-
return p.indexOf(
|
|
3319
|
+
var p = c.message.toLowerCase(), g = ["failed", "fetch", "network", "load"].find(function(w) {
|
|
3320
|
+
return p.indexOf(w) > -1;
|
|
3059
3321
|
});
|
|
3060
|
-
if (
|
|
3061
|
-
return
|
|
3322
|
+
if (g)
|
|
3323
|
+
return n("failed loading " + t + ": " + c.message, !0);
|
|
3062
3324
|
}
|
|
3063
3325
|
if (c)
|
|
3064
|
-
return
|
|
3326
|
+
return n(c, !1);
|
|
3065
3327
|
var b, y;
|
|
3066
3328
|
try {
|
|
3067
3329
|
typeof f.data == "string" ? b = o.options.parse(f.data, r, a) : b = f.data;
|
|
3068
3330
|
} catch {
|
|
3069
|
-
y = "failed parsing " +
|
|
3331
|
+
y = "failed parsing " + t + " to json";
|
|
3070
3332
|
}
|
|
3071
3333
|
if (y)
|
|
3072
|
-
return
|
|
3073
|
-
|
|
3334
|
+
return n(y, !1);
|
|
3335
|
+
n(null, b);
|
|
3074
3336
|
});
|
|
3075
3337
|
}
|
|
3076
3338
|
}, {
|
|
3077
3339
|
key: "create",
|
|
3078
|
-
value: function(
|
|
3340
|
+
value: function(t, n, r, a, o) {
|
|
3079
3341
|
var s = this;
|
|
3080
3342
|
if (this.options.addPath) {
|
|
3081
|
-
typeof
|
|
3082
|
-
var u = this.options.parsePayload(
|
|
3083
|
-
|
|
3084
|
-
var
|
|
3085
|
-
typeof s.options.addPath == "function" && (
|
|
3086
|
-
var b = s.services.interpolator.interpolate(
|
|
3343
|
+
typeof t == "string" && (t = [t]);
|
|
3344
|
+
var u = this.options.parsePayload(n, r, a), d = 0, c = [], f = [];
|
|
3345
|
+
t.forEach(function(p) {
|
|
3346
|
+
var g = s.options.addPath;
|
|
3347
|
+
typeof s.options.addPath == "function" && (g = s.options.addPath(p, n));
|
|
3348
|
+
var b = s.services.interpolator.interpolate(g, {
|
|
3087
3349
|
lng: p,
|
|
3088
|
-
ns:
|
|
3350
|
+
ns: n
|
|
3089
3351
|
});
|
|
3090
|
-
s.options.request(s.options, b, u, function(y,
|
|
3091
|
-
d += 1, c.push(y), f.push(
|
|
3352
|
+
s.options.request(s.options, b, u, function(y, w) {
|
|
3353
|
+
d += 1, c.push(y), f.push(w), d === t.length && typeof o == "function" && o(c, f);
|
|
3092
3354
|
});
|
|
3093
3355
|
});
|
|
3094
3356
|
}
|
|
@@ -3096,20 +3358,20 @@ var rr = function() {
|
|
|
3096
3358
|
}, {
|
|
3097
3359
|
key: "reload",
|
|
3098
3360
|
value: function() {
|
|
3099
|
-
var
|
|
3361
|
+
var t = this, n = this.services, r = n.backendConnector, a = n.languageUtils, o = n.logger, s = r.language;
|
|
3100
3362
|
if (!(s && s.toLowerCase() === "cimode")) {
|
|
3101
3363
|
var u = [], d = function(f) {
|
|
3102
3364
|
var p = a.toResolveHierarchy(f);
|
|
3103
|
-
p.forEach(function(
|
|
3104
|
-
u.indexOf(
|
|
3365
|
+
p.forEach(function(g) {
|
|
3366
|
+
u.indexOf(g) < 0 && u.push(g);
|
|
3105
3367
|
});
|
|
3106
3368
|
};
|
|
3107
3369
|
d(s), this.allOptions.preload && this.allOptions.preload.forEach(function(c) {
|
|
3108
3370
|
return d(c);
|
|
3109
3371
|
}), u.forEach(function(c) {
|
|
3110
|
-
|
|
3111
|
-
r.read(c, f, "read", null, null, function(p,
|
|
3112
|
-
p && o.warn("loading namespace ".concat(f, " for language ").concat(c, " failed"), p), !p &&
|
|
3372
|
+
t.allOptions.ns.forEach(function(f) {
|
|
3373
|
+
r.read(c, f, "read", null, null, function(p, g) {
|
|
3374
|
+
p && o.warn("loading namespace ".concat(f, " for language ").concat(c, " failed"), p), !p && g && o.log("loaded namespace ".concat(f, " for language ").concat(c), g), r.loaded("".concat(c, "|").concat(f), p, g);
|
|
3113
3375
|
});
|
|
3114
3376
|
});
|
|
3115
3377
|
});
|
|
@@ -3117,18 +3379,18 @@ var rr = function() {
|
|
|
3117
3379
|
}
|
|
3118
3380
|
}]);
|
|
3119
3381
|
}();
|
|
3120
|
-
|
|
3121
|
-
var
|
|
3122
|
-
|
|
3382
|
+
zt.type = "backend";
|
|
3383
|
+
var Lr = /* @__PURE__ */ ((i) => (i.en = "en", i.de = "de", i))(Lr || {});
|
|
3384
|
+
const Rr = {
|
|
3385
|
+
en: "English",
|
|
3386
|
+
de: "German"
|
|
3387
|
+
};
|
|
3388
|
+
N.use(Ht).use(er).use(Dt).init({
|
|
3389
|
+
// defaultNS: "translation",
|
|
3390
|
+
// resources,
|
|
3123
3391
|
initImmediate: !0,
|
|
3124
|
-
supportedLngs: [
|
|
3125
|
-
"en",
|
|
3126
|
-
"de"
|
|
3127
|
-
/* de */
|
|
3128
|
-
],
|
|
3129
|
-
nonExplicitSupportedLngs: !0,
|
|
3130
|
-
fallbackLng: "en",
|
|
3131
3392
|
ns: ["translation"],
|
|
3393
|
+
fallbackLng: Object.keys(Rr),
|
|
3132
3394
|
fallbackNS: "translation",
|
|
3133
3395
|
partialBundledLanguages: !0,
|
|
3134
3396
|
resources: {},
|
|
@@ -3136,14 +3398,15 @@ C.use(Et).use(Nn).init({
|
|
|
3136
3398
|
escapeValue: !1
|
|
3137
3399
|
},
|
|
3138
3400
|
backend: {
|
|
3139
|
-
backends: [
|
|
3401
|
+
backends: [zt],
|
|
3140
3402
|
backendOptions: [
|
|
3141
3403
|
{
|
|
3404
|
+
// loadPath: 'https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json',
|
|
3142
3405
|
loadPath: () => {
|
|
3143
|
-
var e,
|
|
3406
|
+
var e, t, n;
|
|
3144
3407
|
if ((e = window == null ? void 0 : window.env) != null && e.TRANSLATION_URL)
|
|
3145
3408
|
return `${window.env.TRANSLATION_URL}/{{lng}}`;
|
|
3146
|
-
const i = ((
|
|
3409
|
+
const i = ((t = window == null ? void 0 : window.env) == null ? void 0 : t.VITE_BASE_URL) || ((n = window == null ? void 0 : window.env) == null ? void 0 : n.REACT_APP_BASE_URL) || location.protocol + "//" + location.host;
|
|
3147
3410
|
return console.log("url", i), `${i}/translations/{{lng}}`;
|
|
3148
3411
|
},
|
|
3149
3412
|
crossDomain: !0,
|
|
@@ -3152,28 +3415,28 @@ C.use(Et).use(Nn).init({
|
|
|
3152
3415
|
]
|
|
3153
3416
|
}
|
|
3154
3417
|
});
|
|
3155
|
-
const
|
|
3418
|
+
const me = {
|
|
3156
3419
|
"page-container": "_page-container_1pwo1_1",
|
|
3157
3420
|
"page-main-content": "_page-main-content_1pwo1_8",
|
|
3158
3421
|
"page-title": "_page-title_1pwo1_19",
|
|
3159
3422
|
"text-base": "_text-base_1pwo1_26",
|
|
3160
3423
|
"mt-4": "_mt-4_1pwo1_33"
|
|
3161
|
-
},
|
|
3162
|
-
const { t: i } =
|
|
3163
|
-
return /* @__PURE__ */
|
|
3164
|
-
/* @__PURE__ */
|
|
3165
|
-
/* @__PURE__ */
|
|
3166
|
-
/* @__PURE__ */
|
|
3167
|
-
/* @__PURE__ */
|
|
3424
|
+
}, Er = () => {
|
|
3425
|
+
const { t: i } = ar();
|
|
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: [
|
|
3427
|
+
/* @__PURE__ */ E.jsx(Cr, {}),
|
|
3428
|
+
/* @__PURE__ */ E.jsxs("div", { className: "unauth__main-text", children: [
|
|
3429
|
+
/* @__PURE__ */ E.jsx("h2", { className: "unauth__main-text__title " + me["page-title"], children: i("components.unauthorizedPage.title") }),
|
|
3430
|
+
/* @__PURE__ */ E.jsxs("p", { className: "unauth__main-text__desc " + me["text-base"], children: [
|
|
3168
3431
|
i("components.unauthorizedPage.description1"),
|
|
3169
3432
|
" ",
|
|
3170
|
-
/* @__PURE__ */
|
|
3433
|
+
/* @__PURE__ */ E.jsx("br", {}),
|
|
3171
3434
|
" ",
|
|
3172
3435
|
i("components.unauthorizedPage.description2")
|
|
3173
3436
|
] })
|
|
3174
3437
|
] })
|
|
3175
3438
|
] }) });
|
|
3176
|
-
},
|
|
3439
|
+
}, Cr = () => /* @__PURE__ */ E.jsxs(
|
|
3177
3440
|
"svg",
|
|
3178
3441
|
{
|
|
3179
3442
|
width: "61",
|
|
@@ -3182,9 +3445,9 @@ const ge = {
|
|
|
3182
3445
|
fill: "none",
|
|
3183
3446
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3184
3447
|
children: [
|
|
3185
|
-
/* @__PURE__ */
|
|
3186
|
-
/* @__PURE__ */
|
|
3187
|
-
/* @__PURE__ */
|
|
3448
|
+
/* @__PURE__ */ E.jsxs("g", { filter: "url(#filter0_d_10800_50471)", children: [
|
|
3449
|
+
/* @__PURE__ */ E.jsx("rect", { x: "2.5", y: "1", width: "56", height: "56", rx: "28", fill: "white" }),
|
|
3450
|
+
/* @__PURE__ */ E.jsx(
|
|
3188
3451
|
"path",
|
|
3189
3452
|
{
|
|
3190
3453
|
d: "M24.6667 27.833V23.1663C24.6667 21.6192 25.2812 20.1355 26.3752 19.0416C27.4692 17.9476 28.9529 17.333 30.5 17.333C32.0471 17.333 33.5308 17.9476 34.6248 19.0416C35.7188 20.1355 36.3333 21.6192 36.3333 23.1663V27.833M22.3333 27.833H38.6667C39.9553 27.833 41 28.8777 41 30.1663V38.333C41 39.6217 39.9553 40.6663 38.6667 40.6663H22.3333C21.0447 40.6663 20 39.6217 20 38.333V30.1663C20 28.8777 21.0447 27.833 22.3333 27.833Z",
|
|
@@ -3195,7 +3458,7 @@ const ge = {
|
|
|
3195
3458
|
}
|
|
3196
3459
|
)
|
|
3197
3460
|
] }),
|
|
3198
|
-
/* @__PURE__ */
|
|
3461
|
+
/* @__PURE__ */ E.jsx("defs", { children: /* @__PURE__ */ E.jsxs(
|
|
3199
3462
|
"filter",
|
|
3200
3463
|
{
|
|
3201
3464
|
id: "filter0_d_10800_50471",
|
|
@@ -3206,8 +3469,8 @@ const ge = {
|
|
|
3206
3469
|
filterUnits: "userSpaceOnUse",
|
|
3207
3470
|
"color-interpolation-filters": "sRGB",
|
|
3208
3471
|
children: [
|
|
3209
|
-
/* @__PURE__ */
|
|
3210
|
-
/* @__PURE__ */
|
|
3472
|
+
/* @__PURE__ */ E.jsx("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
|
|
3473
|
+
/* @__PURE__ */ E.jsx(
|
|
3211
3474
|
"feColorMatrix",
|
|
3212
3475
|
{
|
|
3213
3476
|
in: "SourceAlpha",
|
|
@@ -3216,16 +3479,16 @@ const ge = {
|
|
|
3216
3479
|
result: "hardAlpha"
|
|
3217
3480
|
}
|
|
3218
3481
|
),
|
|
3219
|
-
/* @__PURE__ */
|
|
3220
|
-
/* @__PURE__ */
|
|
3221
|
-
/* @__PURE__ */
|
|
3482
|
+
/* @__PURE__ */ E.jsx("feOffset", { dy: "1" }),
|
|
3483
|
+
/* @__PURE__ */ E.jsx("feGaussianBlur", { stdDeviation: "1" }),
|
|
3484
|
+
/* @__PURE__ */ E.jsx(
|
|
3222
3485
|
"feColorMatrix",
|
|
3223
3486
|
{
|
|
3224
3487
|
type: "matrix",
|
|
3225
3488
|
values: "0 0 0 0 0.0627451 0 0 0 0 0.0941176 0 0 0 0 0.156863 0 0 0 0.05 0"
|
|
3226
3489
|
}
|
|
3227
3490
|
),
|
|
3228
|
-
/* @__PURE__ */
|
|
3491
|
+
/* @__PURE__ */ E.jsx(
|
|
3229
3492
|
"feBlend",
|
|
3230
3493
|
{
|
|
3231
3494
|
mode: "normal",
|
|
@@ -3233,7 +3496,7 @@ const ge = {
|
|
|
3233
3496
|
result: "effect1_dropShadow_10800_50471"
|
|
3234
3497
|
}
|
|
3235
3498
|
),
|
|
3236
|
-
/* @__PURE__ */
|
|
3499
|
+
/* @__PURE__ */ E.jsx(
|
|
3237
3500
|
"feBlend",
|
|
3238
3501
|
{
|
|
3239
3502
|
mode: "normal",
|
|
@@ -3248,17 +3511,17 @@ const ge = {
|
|
|
3248
3511
|
]
|
|
3249
3512
|
}
|
|
3250
3513
|
);
|
|
3251
|
-
function
|
|
3252
|
-
return /* @__PURE__ */
|
|
3514
|
+
function _r() {
|
|
3515
|
+
return /* @__PURE__ */ E.jsx(or, { i18n: N, children: /* @__PURE__ */ E.jsx(Er, {}) });
|
|
3253
3516
|
}
|
|
3254
3517
|
{
|
|
3255
|
-
const i =
|
|
3518
|
+
const i = Xt(_r);
|
|
3256
3519
|
customElements.define("access-denied", i);
|
|
3257
3520
|
}
|
|
3258
3521
|
export {
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3522
|
+
or as I,
|
|
3523
|
+
Lr as L,
|
|
3524
|
+
Er as U,
|
|
3525
|
+
N as i,
|
|
3526
|
+
Tr as t
|
|
3264
3527
|
};
|