@ukpc-lib/react 0.15.7 → 0.15.8

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