@spscommerce/i18n 8.34.10 → 8.34.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createContext as Et, useContext as ut, createElement as le, isValidElement as ce, cloneElement as ie, useState as Rt, useRef as Oe, useEffect as Ee } from "react";
2
- function Dt(n, t) {
2
+ function At(n, t) {
3
3
  for (var a = 0; a < t.length; a++) {
4
4
  const e = t[a];
5
5
  if (typeof e != "string" && !Array.isArray(e)) {
@@ -15,27 +15,27 @@ function Dt(n, t) {
15
15
  }
16
16
  return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
17
17
  }
18
- function F(n) {
18
+ function j(n) {
19
19
  "@babel/helpers - typeof";
20
- return F = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
20
+ return j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
21
21
  return typeof t;
22
22
  } : function(t) {
23
23
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
24
- }, F(n);
24
+ }, j(n);
25
25
  }
26
- function At(n, t) {
27
- if (F(n) != "object" || !n) return n;
26
+ function Dt(n, t) {
27
+ if (j(n) != "object" || !n) return n;
28
28
  var a = n[Symbol.toPrimitive];
29
29
  if (a !== void 0) {
30
30
  var e = a.call(n, t);
31
- if (F(e) != "object") return e;
31
+ if (j(e) != "object") return e;
32
32
  throw new TypeError("@@toPrimitive must return a primitive value.");
33
33
  }
34
34
  return String(n);
35
35
  }
36
36
  function ct(n) {
37
- var t = At(n, "string");
38
- return F(t) == "symbol" ? t : t + "";
37
+ var t = Dt(n, "string");
38
+ return j(t) == "symbol" ? t : t + "";
39
39
  }
40
40
  function ve(n, t, a) {
41
41
  return (t = ct(t)) in n ? Object.defineProperty(n, t, {
@@ -45,7 +45,7 @@ function ve(n, t, a) {
45
45
  writable: !0
46
46
  }) : n[t] = a, n;
47
47
  }
48
- function N(n) {
48
+ function U(n) {
49
49
  for (var t = 1; t < arguments.length; t++) {
50
50
  var a = arguments[t] != null ? Object(arguments[t]) : {}, e = Object.keys(a);
51
51
  typeof Object.getOwnPropertySymbols == "function" && e.push.apply(e, Object.getOwnPropertySymbols(a).filter(function(r) {
@@ -56,17 +56,17 @@ function N(n) {
56
56
  }
57
57
  return n;
58
58
  }
59
- function M(n, t) {
59
+ function z(n, t) {
60
60
  if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
61
61
  }
62
- function ze(n, t) {
62
+ function Ie(n, t) {
63
63
  for (var a = 0; a < t.length; a++) {
64
64
  var e = t[a];
65
65
  e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, ct(e.key), e);
66
66
  }
67
67
  }
68
68
  function _(n, t, a) {
69
- return t && ze(n.prototype, t), a && ze(n, a), Object.defineProperty(n, "prototype", {
69
+ return t && Ie(n.prototype, t), a && Ie(n, a), Object.defineProperty(n, "prototype", {
70
70
  writable: !1
71
71
  }), n;
72
72
  }
@@ -75,7 +75,7 @@ function K(n) {
75
75
  return n;
76
76
  }
77
77
  function re(n, t) {
78
- if (t && (F(t) == "object" || typeof t == "function")) return t;
78
+ if (t && (j(t) == "object" || typeof t == "function")) return t;
79
79
  if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
80
80
  return K(n);
81
81
  }
@@ -115,10 +115,10 @@ var Bt = {
115
115
  output: function(t, a) {
116
116
  console && console[t] && console[t].apply(console, a);
117
117
  }
118
- }, Ut = function() {
118
+ }, Nt = function() {
119
119
  function n(t) {
120
120
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
121
- M(this, n), this.init(t, a);
121
+ z(this, n), this.init(t, a);
122
122
  }
123
123
  return _(n, [{
124
124
  key: "init",
@@ -167,14 +167,14 @@ var Bt = {
167
167
  }, {
168
168
  key: "create",
169
169
  value: function(a) {
170
- return new n(this.logger, N({}, {
170
+ return new n(this.logger, U({}, {
171
171
  prefix: "".concat(this.prefix, ":").concat(a, ":")
172
172
  }, this.options));
173
173
  }
174
174
  }]), n;
175
- }(), q = new Ut(), Q = function() {
175
+ }(), q = new Nt(), Q = function() {
176
176
  function n() {
177
- M(this, n), this.observers = {};
177
+ z(this, n), this.observers = {};
178
178
  }
179
179
  return _(n, [{
180
180
  key: "on",
@@ -223,15 +223,15 @@ function J() {
223
223
  });
224
224
  return a.resolve = n, a.reject = t, a;
225
225
  }
226
- function Ie(n) {
226
+ function Me(n) {
227
227
  return n == null ? "" : "" + n;
228
228
  }
229
- function Nt(n, t, a) {
229
+ function Ut(n, t, a) {
230
230
  n.forEach(function(e) {
231
231
  t[e] && (a[e] = t[e]);
232
232
  });
233
233
  }
234
- function Ne(n, t, a) {
234
+ function Ue(n, t, a) {
235
235
  function e(s) {
236
236
  return s && s.indexOf("###") > -1 ? s.replace(/###/g, ".") : s;
237
237
  }
@@ -248,16 +248,16 @@ function Ne(n, t, a) {
248
248
  k: e(i.shift())
249
249
  };
250
250
  }
251
- function Me(n, t, a) {
252
- var e = Ne(n, t, Object), r = e.obj, i = e.k;
251
+ function ze(n, t, a) {
252
+ var e = Ue(n, t, Object), r = e.obj, i = e.k;
253
253
  r[i] = a;
254
254
  }
255
- function Ft(n, t, a, e) {
256
- var r = Ne(n, t, Object), i = r.obj, o = r.k;
255
+ function jt(n, t, a, e) {
256
+ var r = Ue(n, t, Object), i = r.obj, o = r.k;
257
257
  i[o] = i[o] || [], i[o].push(a);
258
258
  }
259
259
  function de(n, t) {
260
- var a = Ne(n, t), e = a.obj, r = a.k;
260
+ var a = Ue(n, t), e = a.obj, r = a.k;
261
261
  if (e)
262
262
  return e[r];
263
263
  }
@@ -273,7 +273,7 @@ function dt(n, t, a) {
273
273
  function G(n) {
274
274
  return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
275
275
  }
276
- var jt = {
276
+ var Ft = {
277
277
  "&": "&amp;",
278
278
  "<": "&lt;",
279
279
  ">": "&gt;",
@@ -281,19 +281,19 @@ var jt = {
281
281
  "'": "&#39;",
282
282
  "/": "&#x2F;"
283
283
  };
284
- function zt(n) {
284
+ function It(n) {
285
285
  return typeof n == "string" ? n.replace(/[&<>"'\/]/g, function(t) {
286
- return jt[t];
286
+ return Ft[t];
287
287
  }) : n;
288
288
  }
289
- var be = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, It = function(n) {
289
+ var be = typeof window < "u" && window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf("MSIE") > -1, Mt = function(n) {
290
290
  ye(t, n);
291
291
  function t(a) {
292
292
  var e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
293
293
  ns: ["translation"],
294
294
  defaultNS: "translation"
295
295
  };
296
- return M(this, t), e = re(this, Y(t).call(this)), be && Q.call(K(e)), e.data = a || {}, e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e;
296
+ return z(this, t), e = re(this, Y(t).call(this)), be && Q.call(K(e)), e.data = a || {}, e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e;
297
297
  }
298
298
  return _(t, [{
299
299
  key: "addNamespaces",
@@ -320,7 +320,7 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
320
320
  }, l = this.options.keySeparator;
321
321
  l === void 0 && (l = ".");
322
322
  var u = [e, r];
323
- i && (u = u.concat(l ? i.split(l) : i)), e.indexOf(".") > -1 && (u = e.split("."), o = r, r = u[1]), this.addNamespaces(r), Me(this.data, u, o), s.silent || this.emit("added", e, r, i, o);
323
+ i && (u = u.concat(l ? i.split(l) : i)), e.indexOf(".") > -1 && (u = e.split("."), o = r, r = u[1]), this.addNamespaces(r), ze(this.data, u, o), s.silent || this.emit("added", e, r, i, o);
324
324
  }
325
325
  }, {
326
326
  key: "addResources",
@@ -342,7 +342,7 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
342
342
  }, u = [e, r];
343
343
  e.indexOf(".") > -1 && (u = e.split("."), o = i, i = r, r = u[1]), this.addNamespaces(r);
344
344
  var d = de(this.data, u) || {};
345
- o ? dt(d, i, s) : d = N({}, d, i), Me(this.data, u, d), l.silent || this.emit("added", e, r, i);
345
+ o ? dt(d, i, s) : d = U({}, d, i), ze(this.data, u, d), l.silent || this.emit("added", e, r, i);
346
346
  }
347
347
  }, {
348
348
  key: "removeResourceBundle",
@@ -357,7 +357,7 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
357
357
  }, {
358
358
  key: "getResourceBundle",
359
359
  value: function(e, r) {
360
- return r || (r = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? N({}, {}, this.getResource(e, r)) : this.getResource(e, r);
360
+ return r || (r = this.options.defaultNS), this.options.compatibilityAPI === "v1" ? U({}, {}, this.getResource(e, r)) : this.getResource(e, r);
361
361
  }
362
362
  }, {
363
363
  key: "getDataByLanguage",
@@ -385,7 +385,7 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
385
385
  ye(t, n);
386
386
  function t(a) {
387
387
  var e, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
388
- return M(this, t), e = re(this, Y(t).call(this)), be && Q.call(K(e)), Nt(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], a, K(e)), e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e.logger = q.create("translator"), e;
388
+ return z(this, t), e = re(this, Y(t).call(this)), be && Q.call(K(e)), Ut(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], a, K(e)), e.options = r, e.options.keySeparator === void 0 && (e.options.keySeparator = "."), e.logger = q.create("translator"), e;
389
389
  }
390
390
  return _(t, [{
391
391
  key: "changeLanguage",
@@ -425,7 +425,7 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
425
425
  key: "translate",
426
426
  value: function(e, r, i) {
427
427
  var o = this;
428
- if (F(r) !== "object" && this.options.overloadTranslationOptionHandler && (r = this.options.overloadTranslationOptionHandler(arguments)), r || (r = {}), e == null) return "";
428
+ if (j(r) !== "object" && this.options.overloadTranslationOptionHandler && (r = this.options.overloadTranslationOptionHandler(arguments)), r || (r = {}), e == null) return "";
429
429
  Array.isArray(e) || (e = [String(e)]);
430
430
  var s = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator, l = this.extractFromKey(e[e.length - 1], r), u = l.key, d = l.namespaces, f = d[d.length - 1], v = r.lng || this.language, m = r.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
431
431
  if (v && v.toLowerCase() === "cimode") {
@@ -435,52 +435,52 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
435
435
  }
436
436
  return u;
437
437
  }
438
- var y = this.resolve(e, r), g = y && y.res, b = y && y.usedKey || u, w = y && y.exactUsedKey || u, x = Object.prototype.toString.apply(g), A = ["[object Number]", "[object Function]", "[object RegExp]"], k = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, S = !this.i18nFormat || this.i18nFormat.handleAsObject, O = typeof g != "string" && typeof g != "boolean" && typeof g != "number";
439
- if (S && g && O && A.indexOf(x) < 0 && !(typeof k == "string" && x === "[object Array]")) {
438
+ var y = this.resolve(e, r), h = y && y.res, b = y && y.usedKey || u, S = y && y.exactUsedKey || u, w = Object.prototype.toString.apply(h), D = ["[object Number]", "[object Function]", "[object RegExp]"], T = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, x = !this.i18nFormat || this.i18nFormat.handleAsObject, O = typeof h != "string" && typeof h != "boolean" && typeof h != "number";
439
+ if (x && h && O && D.indexOf(w) < 0 && !(typeof T == "string" && w === "[object Array]")) {
440
440
  if (!r.returnObjects && !this.options.returnObjects)
441
- return this.logger.warn("accessing an object - but returnObjects options is not enabled!"), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, g, r) : "key '".concat(u, " (").concat(this.language, ")' returned an object instead of string.");
441
+ return this.logger.warn("accessing an object - but returnObjects options is not enabled!"), this.options.returnedObjectHandler ? this.options.returnedObjectHandler(b, h, r) : "key '".concat(u, " (").concat(this.language, ")' returned an object instead of string.");
442
442
  if (s) {
443
- var E = x === "[object Array]", R = E ? [] : {}, L = E ? w : b;
444
- for (var P in g)
445
- if (Object.prototype.hasOwnProperty.call(g, P)) {
443
+ var E = w === "[object Array]", R = E ? [] : {}, L = E ? S : b;
444
+ for (var P in h)
445
+ if (Object.prototype.hasOwnProperty.call(h, P)) {
446
446
  var W = "".concat(L).concat(s).concat(P);
447
- R[P] = this.translate(W, N({}, r, {
447
+ R[P] = this.translate(W, U({}, r, {
448
448
  joinArrays: !1,
449
449
  ns: d
450
- })), R[P] === W && (R[P] = g[P]);
450
+ })), R[P] === W && (R[P] = h[P]);
451
451
  }
452
- g = R;
452
+ h = R;
453
453
  }
454
- } else if (S && typeof k == "string" && x === "[object Array]")
455
- g = g.join(k), g && (g = this.extendTranslation(g, e, r, i));
454
+ } else if (x && typeof T == "string" && w === "[object Array]")
455
+ h = h.join(T), h && (h = this.extendTranslation(h, e, r, i));
456
456
  else {
457
- var z = !1, c = !1, h = r.count !== void 0 && typeof r.count != "string", T = t.hasDefaultValue(r), B = h ? this.pluralResolver.getSuffix(v, r.count) : "", D = r["defaultValue".concat(B)] || r.defaultValue;
458
- !this.isValidLookup(g) && T && (z = !0, g = D), this.isValidLookup(g) || (c = !0, g = u);
459
- var C = T && D !== g && this.options.updateMissing;
460
- if (c || z || C) {
461
- if (this.logger.log(C ? "updateKey" : "missingKey", v, f, u, C ? D : g), s) {
462
- var H = this.resolve(u, N({}, r, {
457
+ var I = !1, c = !1, g = r.count !== void 0 && typeof r.count != "string", k = t.hasDefaultValue(r), B = g ? this.pluralResolver.getSuffix(v, r.count) : "", A = r["defaultValue".concat(B)] || r.defaultValue;
458
+ !this.isValidLookup(h) && k && (I = !0, h = A), this.isValidLookup(h) || (c = !0, h = u);
459
+ var C = k && A !== h && this.options.updateMissing;
460
+ if (c || I || C) {
461
+ if (this.logger.log(C ? "updateKey" : "missingKey", v, f, u, C ? A : h), s) {
462
+ var H = this.resolve(u, U({}, r, {
463
463
  keySeparator: !1
464
464
  }));
465
465
  H && H.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.");
466
466
  }
467
- var j = [], I = this.languageUtils.getFallbackCodes(this.options.fallbackLng, r.lng || this.language);
468
- if (this.options.saveMissingTo === "fallback" && I && I[0])
469
- for (var Z = 0; Z < I.length; Z++)
470
- j.push(I[Z]);
471
- else this.options.saveMissingTo === "all" ? j = this.languageUtils.toResolveHierarchy(r.lng || this.language) : j.push(r.lng || this.language);
472
- var Fe = function(X, we, je) {
473
- o.options.missingKeyHandler ? o.options.missingKeyHandler(X, f, we, C ? je : g, C, r) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(X, f, we, C ? je : g, C, r), o.emit("missingKey", X, f, we, g);
467
+ var F = [], M = this.languageUtils.getFallbackCodes(this.options.fallbackLng, r.lng || this.language);
468
+ if (this.options.saveMissingTo === "fallback" && M && M[0])
469
+ for (var Z = 0; Z < M.length; Z++)
470
+ F.push(M[Z]);
471
+ else this.options.saveMissingTo === "all" ? F = this.languageUtils.toResolveHierarchy(r.lng || this.language) : F.push(r.lng || this.language);
472
+ var je = function(X, Se, Fe) {
473
+ o.options.missingKeyHandler ? o.options.missingKeyHandler(X, f, Se, C ? Fe : h, C, r) : o.backendConnector && o.backendConnector.saveMissing && o.backendConnector.saveMissing(X, f, Se, C ? Fe : h, C, r), o.emit("missingKey", X, f, Se, h);
474
474
  };
475
- this.options.saveMissing && (this.options.saveMissingPlurals && h ? j.forEach(function(Se) {
476
- o.pluralResolver.getSuffixes(Se).forEach(function(X) {
477
- Fe([Se], u + X, r["defaultValue".concat(X)] || D);
475
+ this.options.saveMissing && (this.options.saveMissingPlurals && g ? F.forEach(function(xe) {
476
+ o.pluralResolver.getSuffixes(xe).forEach(function(X) {
477
+ je([xe], u + X, r["defaultValue".concat(X)] || A);
478
478
  });
479
- }) : Fe(j, u, D));
479
+ }) : je(F, u, A));
480
480
  }
481
- g = this.extendTranslation(g, e, r, y, i), c && g === u && this.options.appendNamespaceToMissingKey && (g = "".concat(f, ":").concat(u)), c && this.options.parseMissingKeyHandler && (g = this.options.parseMissingKeyHandler(g));
481
+ h = this.extendTranslation(h, e, r, y, i), c && h === u && this.options.appendNamespaceToMissingKey && (h = "".concat(f, ":").concat(u)), c && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(h));
482
482
  }
483
- return g;
483
+ return h;
484
484
  }
485
485
  }, {
486
486
  key: "extendTranslation",
@@ -491,8 +491,8 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
491
491
  resolved: o
492
492
  });
493
493
  else if (!i.skipInterpolation) {
494
- i.interpolation && this.interpolator.init(N({}, i, {
495
- interpolation: N({}, this.options.interpolation, i.interpolation)
494
+ i.interpolation && this.interpolator.init(U({}, i, {
495
+ interpolation: U({}, this.options.interpolation, i.interpolation)
496
496
  }));
497
497
  var u = i.interpolation && i.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables, d;
498
498
  if (u) {
@@ -500,18 +500,18 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
500
500
  d = f && f.length;
501
501
  }
502
502
  var v = i.replace && typeof i.replace != "string" ? i.replace : i;
503
- if (this.options.interpolation.defaultVariables && (v = N({}, this.options.interpolation.defaultVariables, v)), e = this.interpolator.interpolate(e, v, i.lng || this.language, i), u) {
503
+ if (this.options.interpolation.defaultVariables && (v = U({}, this.options.interpolation.defaultVariables, v)), e = this.interpolator.interpolate(e, v, i.lng || this.language, i), u) {
504
504
  var m = e.match(this.interpolator.nestingRegexp), p = m && m.length;
505
505
  d < p && (i.nest = !1);
506
506
  }
507
507
  i.nest !== !1 && (e = this.interpolator.nest(e, function() {
508
- for (var b = arguments.length, w = new Array(b), x = 0; x < b; x++)
509
- w[x] = arguments[x];
510
- return s && s[0] === w[0] && !i.context ? (l.logger.warn("It seems you are nesting recursively key: ".concat(w[0], " in key: ").concat(r[0])), null) : l.translate.apply(l, w.concat([r]));
508
+ for (var b = arguments.length, S = new Array(b), w = 0; w < b; w++)
509
+ S[w] = arguments[w];
510
+ return s && s[0] === S[0] && !i.context ? (l.logger.warn("It seems you are nesting recursively key: ".concat(S[0], " in key: ").concat(r[0])), null) : l.translate.apply(l, S.concat([r]));
511
511
  }, i)), i.interpolation && this.interpolator.reset();
512
512
  }
513
- var y = i.postProcess || this.options.postProcess, g = typeof y == "string" ? [y] : y;
514
- return e != null && g && g.length && i.applyPostProcessor !== !1 && (e = ft.handle(g, e, r, this.options && this.options.postProcessPassResolved ? N({
513
+ var y = i.postProcess || this.options.postProcess, h = typeof y == "string" ? [y] : y;
514
+ return e != null && h && h.length && i.applyPostProcessor !== !1 && (e = ft.handle(h, e, r, this.options && this.options.postProcessPassResolved ? U({
515
515
  i18nResolved: o
516
516
  }, i) : i, this)), e;
517
517
  }
@@ -525,20 +525,20 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
525
525
  s = m;
526
526
  var p = v.namespaces;
527
527
  r.options.fallbackNS && (p = p.concat(r.options.fallbackNS));
528
- var y = i.count !== void 0 && typeof i.count != "string", g = i.context !== void 0 && typeof i.context == "string" && i.context !== "", b = i.lngs ? i.lngs : r.languageUtils.toResolveHierarchy(i.lng || r.language, i.fallbackLng);
529
- p.forEach(function(w) {
530
- r.isValidLookup(o) || (d = w, !He["".concat(b[0], "-").concat(w)] && r.utils && r.utils.hasLoadedNamespace && !r.utils.hasLoadedNamespace(d) && (He["".concat(b[0], "-").concat(w)] = !0, r.logger.warn('key "'.concat(s, '" for languages "').concat(b.join(", "), `" won't get resolved as namespace "`).concat(d, '" 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!!!")), b.forEach(function(x) {
528
+ var y = i.count !== void 0 && typeof i.count != "string", h = i.context !== void 0 && typeof i.context == "string" && i.context !== "", b = i.lngs ? i.lngs : r.languageUtils.toResolveHierarchy(i.lng || r.language, i.fallbackLng);
529
+ p.forEach(function(S) {
530
+ r.isValidLookup(o) || (d = S, !He["".concat(b[0], "-").concat(S)] && r.utils && r.utils.hasLoadedNamespace && !r.utils.hasLoadedNamespace(d) && (He["".concat(b[0], "-").concat(S)] = !0, r.logger.warn('key "'.concat(s, '" for languages "').concat(b.join(", "), `" won't get resolved as namespace "`).concat(d, '" 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!!!")), b.forEach(function(w) {
531
531
  if (!r.isValidLookup(o)) {
532
- u = x;
533
- var A = m, k = [A];
532
+ u = w;
533
+ var D = m, T = [D];
534
534
  if (r.i18nFormat && r.i18nFormat.addLookupKeys)
535
- r.i18nFormat.addLookupKeys(k, m, x, w, i);
535
+ r.i18nFormat.addLookupKeys(T, m, w, S, i);
536
536
  else {
537
- var S;
538
- y && (S = r.pluralResolver.getSuffix(x, i.count)), y && g && k.push(A + S), g && k.push(A += "".concat(r.options.contextSeparator).concat(i.context)), y && k.push(A += S);
537
+ var x;
538
+ y && (x = r.pluralResolver.getSuffix(w, i.count)), y && h && T.push(D + x), h && T.push(D += "".concat(r.options.contextSeparator).concat(i.context)), y && T.push(D += x);
539
539
  }
540
- for (var O; O = k.pop(); )
541
- r.isValidLookup(o) || (l = O, o = r.getResource(x, w, O, i));
540
+ for (var O; O = T.pop(); )
541
+ r.isValidLookup(o) || (l = O, o = r.getResource(w, S, O, i));
542
542
  }
543
543
  }));
544
544
  });
@@ -573,12 +573,12 @@ var be = typeof window < "u" && window.navigator && window.navigator.userAgent &
573
573
  }
574
574
  }]), t;
575
575
  }(Q);
576
- function xe(n) {
576
+ function we(n) {
577
577
  return n.charAt(0).toUpperCase() + n.slice(1);
578
578
  }
579
- var Mt = function() {
579
+ var zt = function() {
580
580
  function n(t) {
581
- M(this, n), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = q.create("languageUtils");
581
+ z(this, n), this.options = t, this.whitelist = this.options.supportedLngs || !1, this.supportedLngs = this.options.supportedLngs || !1, this.logger = q.create("languageUtils");
582
582
  }
583
583
  return _(n, [{
584
584
  key: "getScriptPartFromCode",
@@ -601,7 +601,7 @@ var Mt = function() {
601
601
  var e = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"], r = a.split("-");
602
602
  return this.options.lowerCaseLng ? r = r.map(function(i) {
603
603
  return i.toLowerCase();
604
- }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = xe(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()), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = xe(r[1].toLowerCase())), e.indexOf(r[2].toLowerCase()) > -1 && (r[2] = xe(r[2].toLowerCase()))), r.join("-");
604
+ }) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = we(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()), e.indexOf(r[1].toLowerCase()) > -1 && (r[1] = we(r[1].toLowerCase())), e.indexOf(r[2].toLowerCase()) > -1 && (r[2] = we(r[2].toLowerCase()))), r.join("-");
605
605
  }
606
606
  return this.options.cleanCode || this.options.lowerCaseLng ? a.toLowerCase() : a;
607
607
  }
@@ -830,7 +830,7 @@ function qt() {
830
830
  var Vt = function() {
831
831
  function n(t) {
832
832
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
833
- M(this, n), this.languageUtils = t, this.options = a, this.logger = q.create("pluralResolver"), this.rules = qt();
833
+ z(this, n), this.languageUtils = t, this.options = a, this.logger = q.create("pluralResolver"), this.rules = qt();
834
834
  }
835
835
  return _(n, [{
836
836
  key: "addRule",
@@ -881,7 +881,7 @@ var Vt = function() {
881
881
  }(), Wt = function() {
882
882
  function n() {
883
883
  var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
884
- M(this, n), this.logger = q.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(a) {
884
+ z(this, n), this.logger = q.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || function(a) {
885
885
  return a;
886
886
  }, this.init(t);
887
887
  }
@@ -893,7 +893,7 @@ var Vt = function() {
893
893
  escapeValue: !0
894
894
  });
895
895
  var e = a.interpolation;
896
- this.escape = e.escape !== void 0 ? e.escape : zt, this.escapeValue = e.escapeValue !== void 0 ? e.escapeValue : !0, this.useRawValueToEscape = e.useRawValueToEscape !== void 0 ? e.useRawValueToEscape : !1, this.prefix = e.prefix ? G(e.prefix) : e.prefixEscaped || "{{", this.suffix = e.suffix ? G(e.suffix) : e.suffixEscaped || "}}", this.formatSeparator = e.formatSeparator ? e.formatSeparator : e.formatSeparator || ",", this.unescapePrefix = e.unescapeSuffix ? "" : e.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : e.unescapeSuffix || "", this.nestingPrefix = e.nestingPrefix ? G(e.nestingPrefix) : e.nestingPrefixEscaped || G("$t("), this.nestingSuffix = e.nestingSuffix ? G(e.nestingSuffix) : e.nestingSuffixEscaped || G(")"), this.nestingOptionsSeparator = e.nestingOptionsSeparator ? e.nestingOptionsSeparator : e.nestingOptionsSeparator || ",", this.maxReplaces = e.maxReplaces ? e.maxReplaces : 1e3, this.alwaysFormat = e.alwaysFormat !== void 0 ? e.alwaysFormat : !1, this.resetRegExp();
896
+ this.escape = e.escape !== void 0 ? e.escape : It, this.escapeValue = e.escapeValue !== void 0 ? e.escapeValue : !0, this.useRawValueToEscape = e.useRawValueToEscape !== void 0 ? e.useRawValueToEscape : !1, this.prefix = e.prefix ? G(e.prefix) : e.prefixEscaped || "{{", this.suffix = e.suffix ? G(e.suffix) : e.suffixEscaped || "}}", this.formatSeparator = e.formatSeparator ? e.formatSeparator : e.formatSeparator || ",", this.unescapePrefix = e.unescapeSuffix ? "" : e.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : e.unescapeSuffix || "", this.nestingPrefix = e.nestingPrefix ? G(e.nestingPrefix) : e.nestingPrefixEscaped || G("$t("), this.nestingSuffix = e.nestingSuffix ? G(e.nestingSuffix) : e.nestingSuffixEscaped || G(")"), this.nestingOptionsSeparator = e.nestingOptionsSeparator ? e.nestingOptionsSeparator : e.nestingOptionsSeparator || ",", this.maxReplaces = e.maxReplaces ? e.maxReplaces : 1e3, this.alwaysFormat = e.alwaysFormat !== void 0 ? e.alwaysFormat : !1, this.resetRegExp();
897
897
  }
898
898
  }, {
899
899
  key: "reset",
@@ -914,16 +914,16 @@ var Vt = function() {
914
914
  key: "interpolate",
915
915
  value: function(a, e, r, i) {
916
916
  var o = this, s, l, u, d = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
917
- function f(g) {
918
- return g.replace(/\$/g, "$$$$");
917
+ function f(h) {
918
+ return h.replace(/\$/g, "$$$$");
919
919
  }
920
920
  var v = function(b) {
921
921
  if (b.indexOf(o.formatSeparator) < 0) {
922
- var w = _e(e, d, b);
923
- return o.alwaysFormat ? o.format(w, void 0, r) : w;
922
+ var S = _e(e, d, b);
923
+ return o.alwaysFormat ? o.format(S, void 0, r) : S;
924
924
  }
925
- var x = b.split(o.formatSeparator), A = x.shift().trim(), k = x.join(o.formatSeparator).trim();
926
- return o.format(_e(e, d, A), k, r, i);
925
+ var w = b.split(o.formatSeparator), D = w.shift().trim(), T = w.join(o.formatSeparator).trim();
926
+ return o.format(_e(e, d, D), T, r, i);
927
927
  };
928
928
  this.resetRegExp();
929
929
  var m = i && i.missingInterpolationHandler || this.options.missingInterpolationHandler, p = i && i.interpolation && i.interpolation.skipOnVariables || this.options.interpolation.skipOnVariables, y = [{
@@ -937,8 +937,8 @@ var Vt = function() {
937
937
  return o.escapeValue ? f(o.escape(b)) : f(b);
938
938
  }
939
939
  }];
940
- return y.forEach(function(g) {
941
- for (u = 0; s = g.regex.exec(a); ) {
940
+ return y.forEach(function(h) {
941
+ for (u = 0; s = h.regex.exec(a); ) {
942
942
  if (l = v(s[1].trim()), l === void 0)
943
943
  if (typeof m == "function") {
944
944
  var b = m(a, s, i);
@@ -948,8 +948,8 @@ var Vt = function() {
948
948
  continue;
949
949
  } else
950
950
  o.logger.warn("missed to pass in variable ".concat(s[1], " for interpolating ").concat(a)), l = "";
951
- else typeof l != "string" && !o.useRawValueToEscape && (l = Ie(l));
952
- if (a = a.replace(s[0], g.safeValue(l)), g.regex.lastIndex = 0, u++, u >= o.maxReplaces)
951
+ else typeof l != "string" && !o.useRawValueToEscape && (l = Me(l));
952
+ if (a = a.replace(s[0], h.safeValue(l)), h.regex.lastIndex = 0, u++, u >= o.maxReplaces)
953
953
  break;
954
954
  }
955
955
  }), a;
@@ -957,17 +957,17 @@ var Vt = function() {
957
957
  }, {
958
958
  key: "nest",
959
959
  value: function(a, e) {
960
- var r = this, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o, s, l = N({}, i);
960
+ var r = this, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o, s, l = U({}, i);
961
961
  l.applyPostProcessor = !1, delete l.defaultValue;
962
962
  function u(m, p) {
963
963
  var y = this.nestingOptionsSeparator;
964
964
  if (m.indexOf(y) < 0) return m;
965
- var g = m.split(new RegExp("".concat(y, "[ ]*{"))), b = "{".concat(g[1]);
966
- m = g[0], b = this.interpolate(b, l), b = b.replace(/'/g, '"');
965
+ var h = m.split(new RegExp("".concat(y, "[ ]*{"))), b = "{".concat(h[1]);
966
+ m = h[0], b = this.interpolate(b, l), b = b.replace(/'/g, '"');
967
967
  try {
968
- l = JSON.parse(b), p && (l = N({}, p, l));
969
- } catch (w) {
970
- return this.logger.warn("failed parsing options string in nesting for key ".concat(m), w), "".concat(m).concat(y).concat(b);
968
+ l = JSON.parse(b), p && (l = U({}, p, l));
969
+ } catch (S) {
970
+ return this.logger.warn("failed parsing options string in nesting for key ".concat(m), S), "".concat(m).concat(y).concat(b);
971
971
  }
972
972
  return delete l.defaultValue, m;
973
973
  }
@@ -980,7 +980,7 @@ var Vt = function() {
980
980
  o[1] = v.shift(), d = v, f = !0;
981
981
  }
982
982
  if (s = e(u.call(this, o[1].trim(), l), l), s && o[0] === a && typeof s != "string") return s;
983
- typeof s != "string" && (s = Ie(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(a)), s = ""), f && (s = d.reduce(function(m, p) {
983
+ typeof s != "string" && (s = Me(s)), s || (this.logger.warn("missed to resolve ".concat(o[1], " for nesting ").concat(a)), s = ""), f && (s = d.reduce(function(m, p) {
984
984
  return r.format(m, p, i.lng, i);
985
985
  }, s.trim())), a = a.replace(o[0], s), this.regexp.lastIndex = 0;
986
986
  }
@@ -996,7 +996,7 @@ var $t = function(n) {
996
996
  ye(t, n);
997
997
  function t(a, e, r) {
998
998
  var i, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
999
- return M(this, t), i = re(this, Y(t).call(this)), be && Q.call(K(i)), i.backend = a, i.store = e, i.services = r, i.languageUtils = r.languageUtils, i.options = o, i.logger = q.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, o.backend, o), i;
999
+ return z(this, t), i = re(this, Y(t).call(this)), be && Q.call(K(i)), i.backend = a, i.store = e, i.services = r, i.languageUtils = r.languageUtils, i.options = o, i.logger = q.create("backendConnector"), i.state = {}, i.queue = [], i.backend && i.backend.init && i.backend.init(r, o.backend, o), i;
1000
1000
  }
1001
1001
  return _(t, [{
1002
1002
  key: "queueLoad",
@@ -1027,7 +1027,7 @@ var $t = function(n) {
1027
1027
  r && this.emit("failedLoading", s, l, r), i && this.store.addResourceBundle(s, l, i), this.state[e] = r ? -1 : 2;
1028
1028
  var u = {};
1029
1029
  this.queue.forEach(function(d) {
1030
- Ft(d.loaded, [s], l), Qt(d.pending, e), r && d.errors.push(r), d.pending.length === 0 && !d.done && (Object.keys(d.loaded).forEach(function(f) {
1030
+ jt(d.loaded, [s], l), Qt(d.pending, e), r && d.errors.push(r), d.pending.length === 0 && !d.done && (Object.keys(d.loaded).forEach(function(f) {
1031
1031
  u[f] || (u[f] = []), d.loaded[f].length && d.loaded[f].forEach(function(v) {
1032
1032
  u[f].indexOf(v) < 0 && u[f].push(v);
1033
1033
  });
@@ -1092,7 +1092,7 @@ var $t = function(n) {
1092
1092
  this.logger.warn('did not save key "'.concat(i, '" as the namespace "').concat(r, '" 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!!!");
1093
1093
  return;
1094
1094
  }
1095
- i == null || i === "" || (this.backend && this.backend.create && this.backend.create(e, r, i, o, null, N({}, l, {
1095
+ i == null || i === "" || (this.backend && this.backend.create && this.backend.create(e, r, i, o, null, U({}, l, {
1096
1096
  isUpdate: s
1097
1097
  })), !(!e || !e[0]) && this.store.addResource(e[0], r, i, o));
1098
1098
  }
@@ -1136,7 +1136,7 @@ function Kt() {
1136
1136
  appendNamespaceToCIMode: !1,
1137
1137
  overloadTranslationOptionHandler: function(t) {
1138
1138
  var a = {};
1139
- if (F(t[1]) === "object" && (a = t[1]), typeof t[1] == "string" && (a.defaultValue = t[1]), typeof t[2] == "string" && (a.tDescription = t[2]), F(t[2]) === "object" || F(t[3]) === "object") {
1139
+ if (j(t[1]) === "object" && (a = t[1]), typeof t[1] == "string" && (a.defaultValue = t[1]), typeof t[2] == "string" && (a.tDescription = t[2]), j(t[2]) === "object" || j(t[3]) === "object") {
1140
1140
  var e = t[3] || t[2];
1141
1141
  Object.keys(e).forEach(function(r) {
1142
1142
  a[r] = e[r];
@@ -1170,7 +1170,7 @@ var Zt = function(n) {
1170
1170
  ye(t, n);
1171
1171
  function t() {
1172
1172
  var a, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
1173
- if (M(this, t), a = re(this, Y(t).call(this)), be && Q.call(K(a)), a.options = Ve(e), a.services = {}, a.logger = q, a.modules = {
1173
+ if (z(this, t), a = re(this, Y(t).call(this)), be && Q.call(K(a)), a.options = Ve(e), a.services = {}, a.logger = q, a.modules = {
1174
1174
  external: []
1175
1175
  }, r && !a.isInitialized && !e.isClone) {
1176
1176
  if (!a.options.initImmediate)
@@ -1185,14 +1185,14 @@ var Zt = function(n) {
1185
1185
  key: "init",
1186
1186
  value: function() {
1187
1187
  var e = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 ? arguments[1] : void 0;
1188
- typeof r == "function" && (i = r, r = {}), r.whitelist && !r.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), r.nonExplicitWhitelist && !r.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = N({}, Kt(), this.options, Ve(r)), this.format = this.options.interpolation.format, i || (i = oe);
1188
+ typeof r == "function" && (i = r, r = {}), r.whitelist && !r.supportedLngs && this.logger.deprecate("whitelist", 'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'), r.nonExplicitWhitelist && !r.nonExplicitSupportedLngs && this.logger.deprecate("whitelist", 'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'), this.options = U({}, Kt(), this.options, Ve(r)), this.format = this.options.interpolation.format, i || (i = oe);
1189
1189
  function o(p) {
1190
1190
  return p ? typeof p == "function" ? new p() : p : null;
1191
1191
  }
1192
1192
  if (!this.options.isClone) {
1193
1193
  this.modules.logger ? q.init(o(this.modules.logger), this.options) : q.init(null, this.options);
1194
- var s = new Mt(this.options);
1195
- this.store = new It(this.options.resources, this.options);
1194
+ var s = new zt(this.options);
1195
+ this.store = new Mt(this.options.resources, this.options);
1196
1196
  var l = this.services;
1197
1197
  l.logger = q, l.resourceStore = this.store, l.languageUtils = s, l.pluralResolver = new Vt(s, {
1198
1198
  prepend: this.options.pluralSeparator,
@@ -1201,13 +1201,13 @@ var Zt = function(n) {
1201
1201
  }), l.interpolator = new Wt(this.options), l.utils = {
1202
1202
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1203
1203
  }, l.backendConnector = new $t(o(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", function(p) {
1204
- for (var y = arguments.length, g = new Array(y > 1 ? y - 1 : 0), b = 1; b < y; b++)
1205
- g[b - 1] = arguments[b];
1206
- e.emit.apply(e, [p].concat(g));
1204
+ for (var y = arguments.length, h = new Array(y > 1 ? y - 1 : 0), b = 1; b < y; b++)
1205
+ h[b - 1] = arguments[b];
1206
+ e.emit.apply(e, [p].concat(h));
1207
1207
  }), this.modules.languageDetector && (l.languageDetector = o(this.modules.languageDetector), l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = o(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new qe(this.services, this.options), this.translator.on("*", function(p) {
1208
- for (var y = arguments.length, g = new Array(y > 1 ? y - 1 : 0), b = 1; b < y; b++)
1209
- g[b - 1] = arguments[b];
1210
- e.emit.apply(e, [p].concat(g));
1208
+ for (var y = arguments.length, h = new Array(y > 1 ? y - 1 : 0), b = 1; b < y; b++)
1209
+ h[b - 1] = arguments[b];
1210
+ e.emit.apply(e, [p].concat(h));
1211
1211
  }), this.modules.external.forEach(function(p) {
1212
1212
  p.init && p.init(e);
1213
1213
  });
@@ -1232,8 +1232,8 @@ var Zt = function(n) {
1232
1232
  };
1233
1233
  });
1234
1234
  var v = J(), m = function() {
1235
- var y = function(b, w) {
1236
- e.isInitialized && e.logger.warn("init: i18next is already initialized. You should call init just once!"), e.isInitialized = !0, e.options.isClone || e.logger.log("initialized", e.options), e.emit("initialized", e.options), v.resolve(w), i(b, w);
1235
+ var y = function(b, S) {
1236
+ e.isInitialized && e.logger.warn("init: i18next is already initialized. You should call init just once!"), e.isInitialized = !0, e.options.isClone || e.logger.log("initialized", e.options), e.emit("initialized", e.options), v.resolve(S), i(b, S);
1237
1237
  };
1238
1238
  if (e.languages && e.options.compatibilityAPI !== "v1" && !e.isInitialized) return y(null, e.t.bind(e));
1239
1239
  e.changeLanguage(e.options.lng, y);
@@ -1309,12 +1309,12 @@ var Zt = function(n) {
1309
1309
  value: function(e, r) {
1310
1310
  var i = this, o = function s(l, u) {
1311
1311
  var d;
1312
- if (F(u) !== "object") {
1312
+ if (j(u) !== "object") {
1313
1313
  for (var f = arguments.length, v = new Array(f > 2 ? f - 2 : 0), m = 2; m < f; m++)
1314
1314
  v[m - 2] = arguments[m];
1315
1315
  d = i.options.overloadTranslationOptionHandler([l, u].concat(v));
1316
1316
  } else
1317
- d = N({}, u);
1317
+ d = U({}, u);
1318
1318
  return d.lng = d.lng || s.lng, d.lngs = d.lngs || s.lngs, d.ns = d.ns || s.ns, i.t(l, d);
1319
1319
  };
1320
1320
  return typeof e == "string" ? o.lng = e : o.lngs = e, o.ns = r, o;
@@ -1394,12 +1394,12 @@ var Zt = function(n) {
1394
1394
  }, {
1395
1395
  key: "cloneInstance",
1396
1396
  value: function() {
1397
- var e = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : oe, o = N({}, this.options, r, {
1397
+ var e = this, r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : oe, o = U({}, this.options, r, {
1398
1398
  isClone: !0
1399
1399
  }), s = new t(o), l = ["store", "services", "language"];
1400
1400
  return l.forEach(function(u) {
1401
1401
  s[u] = e[u];
1402
- }), s.services = N({}, this.services), s.services.utils = {
1402
+ }), s.services = U({}, this.services), s.services.utils = {
1403
1403
  hasLoadedNamespace: s.hasLoadedNamespace.bind(s)
1404
1404
  }, s.translator = new qe(s.services, s.options), s.translator.on("*", function(u) {
1405
1405
  for (var d = arguments.length, f = new Array(d > 1 ? d - 1 : 0), v = 1; v < d; v++)
@@ -1429,13 +1429,13 @@ function pt(n, t) {
1429
1429
  }
1430
1430
  return r;
1431
1431
  }
1432
- var Te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1433
- function ht(n) {
1432
+ var ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1433
+ function gt(n) {
1434
1434
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
1435
1435
  }
1436
- var ke, We;
1436
+ var Te, We;
1437
1437
  function Gt() {
1438
- return We || (We = 1, ke = {
1438
+ return We || (We = 1, Te = {
1439
1439
  area: !0,
1440
1440
  base: !0,
1441
1441
  br: !0,
@@ -1450,10 +1450,10 @@ function Gt() {
1450
1450
  source: !0,
1451
1451
  track: !0,
1452
1452
  wbr: !0
1453
- }), ke;
1453
+ }), Te;
1454
1454
  }
1455
1455
  var Yt = Gt();
1456
- const Jt = /* @__PURE__ */ ht(Yt);
1456
+ const Jt = /* @__PURE__ */ gt(Yt);
1457
1457
  var ea = /\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;
1458
1458
  function Qe(n) {
1459
1459
  var t = { type: "tag", name: "", voidElement: !1, attrs: {}, children: [] }, a = n.match(/<\/?([^\s]+?)[/\s>]/);
@@ -1468,7 +1468,7 @@ function Qe(n) {
1468
1468
  return t;
1469
1469
  }
1470
1470
  var ta = /<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g, aa = /^\s*$/, ra = /* @__PURE__ */ Object.create(null);
1471
- function gt(n, t) {
1471
+ function ht(n, t) {
1472
1472
  switch (t.type) {
1473
1473
  case "text":
1474
1474
  return n + t.content;
@@ -1477,7 +1477,7 @@ function gt(n, t) {
1477
1477
  var e = [];
1478
1478
  for (var r in a) e.push(r + '="' + a[r] + '"');
1479
1479
  return e.length ? " " + e.join(" ") : "";
1480
- }(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? n : n + t.children.reduce(gt, "") + "</" + t.name + ">";
1480
+ }(t.attrs) : "") + (t.voidElement ? "/>" : ">"), t.voidElement ? n : n + t.children.reduce(ht, "") + "</" + t.name + ">";
1481
1481
  case "comment":
1482
1482
  return n + "<!--" + t.comment + "-->";
1483
1483
  }
@@ -1501,13 +1501,13 @@ var na = { parse: function(n, t) {
1501
1501
  }
1502
1502
  if (f && (i++, (a = Qe(l)).type === "tag" && t.components[a.name] && (a.type = "component", o = !0), a.voidElement || o || !p || p === "<" || a.children.push({ type: "text", content: n.slice(m, n.indexOf("<", m)) }), i === 0 && e.push(a), (d = r[i - 1]) && d.children.push(a), r[i] = a), (!f || a.voidElement) && (i > -1 && (a.voidElement || a.name === l.slice(2, -1)) && (i--, a = i === -1 ? e : r[i]), !o && p !== "<" && p)) {
1503
1503
  d = i === -1 ? e : r[i].children;
1504
- var g = n.indexOf("<", m), b = n.slice(m, g === -1 ? void 0 : g);
1505
- aa.test(b) && (b = " "), (g > -1 && i + d.length >= 0 || b !== " ") && d.push({ type: "text", content: b });
1504
+ var h = n.indexOf("<", m), b = n.slice(m, h === -1 ? void 0 : h);
1505
+ aa.test(b) && (b = " "), (h > -1 && i + d.length >= 0 || b !== " ") && d.push({ type: "text", content: b });
1506
1506
  }
1507
1507
  }), e;
1508
1508
  }, stringify: function(n) {
1509
1509
  return n.reduce(function(t, a) {
1510
- return t + gt("", a);
1510
+ return t + ht("", a);
1511
1511
  }, "");
1512
1512
  } }, ia = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, oa = {
1513
1513
  "&amp;": "&",
@@ -1556,7 +1556,7 @@ function Ke(n) {
1556
1556
  }
1557
1557
  return n;
1558
1558
  }
1559
- var De = {
1559
+ var Ae = {
1560
1560
  bindI18n: "languageChanged",
1561
1561
  bindI18nStore: "",
1562
1562
  transEmptyNodeValue: "",
@@ -1568,14 +1568,14 @@ var De = {
1568
1568
  }, mt, vt = Et();
1569
1569
  function ua() {
1570
1570
  var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1571
- De = Ke(Ke({}, De), n);
1571
+ Ae = Ke(Ke({}, Ae), n);
1572
1572
  }
1573
1573
  function yt() {
1574
- return De;
1574
+ return Ae;
1575
1575
  }
1576
1576
  var ca = function() {
1577
1577
  function n() {
1578
- M(this, n), this.usedNamespaces = {};
1578
+ z(this, n), this.usedNamespaces = {};
1579
1579
  }
1580
1580
  return _(n, [{
1581
1581
  key: "addUsedNamespaces",
@@ -1640,7 +1640,7 @@ function pa(n, t) {
1640
1640
  };
1641
1641
  return a.bindI18n && a.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !o(t.isLanguageChangingTo, n) ? !1 : !!(t.hasResourceBundle(e, n) || !t.services.backendConnector.backend || t.options.resources && !t.options.partialBundledLanguages || o(e, n) && (!r || o(i, n)));
1642
1642
  }
1643
- function ha(n, t) {
1643
+ function ga(n, t) {
1644
1644
  var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1645
1645
  if (!t.languages || !t.languages.length)
1646
1646
  return fe("i18n.languages were undefined or empty", t.languages), !0;
@@ -1651,7 +1651,7 @@ function ha(n, t) {
1651
1651
  }
1652
1652
  }) : pa(n, t, a);
1653
1653
  }
1654
- var ga = ["format"], ma = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
1654
+ var ha = ["format"], ma = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
1655
1655
  function Ge(n, t) {
1656
1656
  var a = Object.keys(n);
1657
1657
  if (Object.getOwnPropertySymbols) {
@@ -1662,7 +1662,7 @@ function Ge(n, t) {
1662
1662
  }
1663
1663
  return a;
1664
1664
  }
1665
- function U(n) {
1665
+ function N(n) {
1666
1666
  for (var t = 1; t < arguments.length; t++) {
1667
1667
  var a = arguments[t] != null ? arguments[t] : {};
1668
1668
  t % 2 ? Ge(Object(a), !0).forEach(function(e) {
@@ -1690,10 +1690,10 @@ function ee(n) {
1690
1690
  return Array.isArray(n) ? n : [n];
1691
1691
  }
1692
1692
  function ya(n, t) {
1693
- var a = U({}, t);
1693
+ var a = N({}, t);
1694
1694
  return a.props = Object.assign(n.props, t.props), a;
1695
1695
  }
1696
- function St(n, t) {
1696
+ function xt(n, t) {
1697
1697
  if (!n) return "";
1698
1698
  var a = "", e = ee(n), r = t.transSupportBasicHtmlNodes && t.transKeepBasicHtmlNodesFor ? t.transKeepBasicHtmlNodesFor : [];
1699
1699
  return e.forEach(function(i, o) {
@@ -1710,13 +1710,13 @@ function St(n, t) {
1710
1710
  else if (l && s === 1 && typeof u == "string")
1711
1711
  a += "<".concat(i.type, ">").concat(u, "</").concat(i.type, ">");
1712
1712
  else {
1713
- var d = St(u, t);
1713
+ var d = xt(u, t);
1714
1714
  a += "<".concat(o, ">").concat(d, "</").concat(o, ">");
1715
1715
  }
1716
1716
  } else if (i === null)
1717
1717
  ue("Trans: the passed in value is invalid - seems you passed in a null child.");
1718
- else if (F(i) === "object") {
1719
- var f = i.format, v = pt(i, ga), m = Object.keys(v);
1718
+ else if (j(i) === "object") {
1719
+ var f = i.format, v = pt(i, ha), m = Object.keys(v);
1720
1720
  if (m.length === 1) {
1721
1721
  var p = f ? "".concat(m[0], ", ").concat(f) : m[0];
1722
1722
  a += "{{".concat(p, "}}");
@@ -1731,80 +1731,80 @@ function ba(n, t, a, e, r, i) {
1731
1731
  var o = e.transKeepBasicHtmlNodesFor || [], s = t && new RegExp(o.join("|")).test(t);
1732
1732
  if (!n && !s) return [t];
1733
1733
  var l = {};
1734
- function u(g) {
1735
- var b = ee(g);
1736
- b.forEach(function(w) {
1737
- typeof w != "string" && (Ce(w) ? u(Le(w)) : F(w) === "object" && !ce(w) && Object.assign(l, w));
1734
+ function u(h) {
1735
+ var b = ee(h);
1736
+ b.forEach(function(S) {
1737
+ typeof S != "string" && (Ce(S) ? u(Le(S)) : j(S) === "object" && !ce(S) && Object.assign(l, S));
1738
1738
  });
1739
1739
  }
1740
1740
  u(n);
1741
- var d = na.parse("<0>".concat(t, "</0>")), f = U(U({}, l), r);
1742
- function v(g, b, w) {
1743
- var x = Le(g), A = p(x, b.children, w);
1744
- return va(x) && A.length === 0 ? x : A;
1741
+ var d = na.parse("<0>".concat(t, "</0>")), f = N(N({}, l), r);
1742
+ function v(h, b, S) {
1743
+ var w = Le(h), D = p(w, b.children, S);
1744
+ return va(w) && D.length === 0 ? w : D;
1745
1745
  }
1746
- function m(g, b, w, x, A) {
1747
- g.dummy && (g.children = b), w.push(ie(g, U(U({}, g.props), {}, {
1748
- key: x
1749
- }), A ? void 0 : b));
1746
+ function m(h, b, S, w, D) {
1747
+ h.dummy && (h.children = b), S.push(ie(h, N(N({}, h.props), {}, {
1748
+ key: w
1749
+ }), D ? void 0 : b));
1750
1750
  }
1751
- function p(g, b, w) {
1752
- var x = ee(g), A = ee(b);
1753
- return A.reduce(function(k, S, O) {
1754
- var E = S.children && S.children[0] && S.children[0].content && a.services.interpolator.interpolate(S.children[0].content, f, a.language);
1755
- if (S.type === "tag") {
1756
- var R = x[parseInt(S.name, 10)];
1757
- !R && w.length === 1 && w[0][S.name] && (R = w[0][S.name]), R || (R = {});
1758
- var L = Object.keys(S.attrs).length !== 0 ? ya({
1759
- props: S.attrs
1760
- }, R) : R, P = ce(L), W = P && Ce(S, !0) && !S.voidElement, z = s && F(L) === "object" && L.dummy && !P, c = F(n) === "object" && n !== null && Object.hasOwnProperty.call(n, S.name);
1751
+ function p(h, b, S) {
1752
+ var w = ee(h), D = ee(b);
1753
+ return D.reduce(function(T, x, O) {
1754
+ var E = x.children && x.children[0] && x.children[0].content && a.services.interpolator.interpolate(x.children[0].content, f, a.language);
1755
+ if (x.type === "tag") {
1756
+ var R = w[parseInt(x.name, 10)];
1757
+ !R && S.length === 1 && S[0][x.name] && (R = S[0][x.name]), R || (R = {});
1758
+ var L = Object.keys(x.attrs).length !== 0 ? ya({
1759
+ props: x.attrs
1760
+ }, R) : R, P = ce(L), W = P && Ce(x, !0) && !x.voidElement, I = s && j(L) === "object" && L.dummy && !P, c = j(n) === "object" && n !== null && Object.hasOwnProperty.call(n, x.name);
1761
1761
  if (typeof L == "string") {
1762
- var h = a.services.interpolator.interpolate(L, f, a.language);
1763
- k.push(h);
1762
+ var g = a.services.interpolator.interpolate(L, f, a.language);
1763
+ T.push(g);
1764
1764
  } else if (Ce(L) || W) {
1765
- var T = v(L, S, w);
1766
- m(L, T, k, O);
1767
- } else if (z) {
1768
- var B = p(x, S.children, w);
1769
- k.push(ie(L, U(U({}, L.props), {}, {
1765
+ var k = v(L, x, S);
1766
+ m(L, k, T, O);
1767
+ } else if (I) {
1768
+ var B = p(w, x.children, S);
1769
+ T.push(ie(L, N(N({}, L.props), {}, {
1770
1770
  key: O
1771
1771
  }), B));
1772
- } else if (Number.isNaN(parseFloat(S.name)))
1772
+ } else if (Number.isNaN(parseFloat(x.name)))
1773
1773
  if (c) {
1774
- var D = v(L, S, w);
1775
- m(L, D, k, O, S.voidElement);
1776
- } else if (e.transSupportBasicHtmlNodes && o.indexOf(S.name) > -1)
1777
- if (S.voidElement)
1778
- k.push(le(S.name, {
1779
- key: "".concat(S.name, "-").concat(O)
1774
+ var A = v(L, x, S);
1775
+ m(L, A, T, O, x.voidElement);
1776
+ } else if (e.transSupportBasicHtmlNodes && o.indexOf(x.name) > -1)
1777
+ if (x.voidElement)
1778
+ T.push(le(x.name, {
1779
+ key: "".concat(x.name, "-").concat(O)
1780
1780
  }));
1781
1781
  else {
1782
- var C = p(x, S.children, w);
1783
- k.push(le(S.name, {
1784
- key: "".concat(S.name, "-").concat(O)
1782
+ var C = p(w, x.children, S);
1783
+ T.push(le(x.name, {
1784
+ key: "".concat(x.name, "-").concat(O)
1785
1785
  }, C));
1786
1786
  }
1787
- else if (S.voidElement)
1788
- k.push("<".concat(S.name, " />"));
1787
+ else if (x.voidElement)
1788
+ T.push("<".concat(x.name, " />"));
1789
1789
  else {
1790
- var H = p(x, S.children, w);
1791
- k.push("<".concat(S.name, ">").concat(H, "</").concat(S.name, ">"));
1790
+ var H = p(w, x.children, S);
1791
+ T.push("<".concat(x.name, ">").concat(H, "</").concat(x.name, ">"));
1792
1792
  }
1793
- else if (F(L) === "object" && !P) {
1794
- var j = S.children[0] ? E : null;
1795
- j && k.push(j);
1796
- } else S.children.length === 1 && E ? k.push(ie(L, U(U({}, L.props), {}, {
1793
+ else if (j(L) === "object" && !P) {
1794
+ var F = x.children[0] ? E : null;
1795
+ F && T.push(F);
1796
+ } else x.children.length === 1 && E ? T.push(ie(L, N(N({}, L.props), {}, {
1797
1797
  key: O
1798
- }), E)) : k.push(ie(L, U(U({}, L.props), {}, {
1798
+ }), E)) : T.push(ie(L, N(N({}, L.props), {}, {
1799
1799
  key: O
1800
1800
  })));
1801
- } else if (S.type === "text") {
1802
- var I = e.transWrapTextNodes, Z = i ? e.unescape(a.services.interpolator.interpolate(S.content, f, a.language)) : a.services.interpolator.interpolate(S.content, f, a.language);
1803
- I ? k.push(le(I, {
1804
- key: "".concat(S.name, "-").concat(O)
1805
- }, Z)) : k.push(Z);
1801
+ } else if (x.type === "text") {
1802
+ var M = e.transWrapTextNodes, Z = i ? e.unescape(a.services.interpolator.interpolate(x.content, f, a.language)) : a.services.interpolator.interpolate(x.content, f, a.language);
1803
+ M ? T.push(le(M, {
1804
+ key: "".concat(x.name, "-").concat(O)
1805
+ }, Z)) : T.push(Z);
1806
1806
  }
1807
- return k;
1807
+ return T;
1808
1808
  }, []);
1809
1809
  }
1810
1810
  var y = p([{
@@ -1813,33 +1813,33 @@ function ba(n, t, a, e, r, i) {
1813
1813
  }], d, ee(n || []));
1814
1814
  return Le(y[0]);
1815
1815
  }
1816
- function Sa(n) {
1817
- var t = n.children, a = n.count, e = n.parent, r = n.i18nKey, i = n.context, o = n.tOptions, s = o === void 0 ? {} : o, l = n.values, u = n.defaults, d = n.components, f = n.ns, v = n.i18n, m = n.t, p = n.shouldUnescape, y = pt(n, ma), g = ut(vt) || {}, b = g.i18n, w = g.defaultNS, x = v || b || bt();
1818
- if (!x)
1816
+ function xa(n) {
1817
+ var t = n.children, a = n.count, e = n.parent, r = n.i18nKey, i = n.context, o = n.tOptions, s = o === void 0 ? {} : o, l = n.values, u = n.defaults, d = n.components, f = n.ns, v = n.i18n, m = n.t, p = n.shouldUnescape, y = pt(n, ma), h = ut(vt) || {}, b = h.i18n, S = h.defaultNS, w = v || b || bt();
1818
+ if (!w)
1819
1819
  return fe("You will need to pass in an i18next instance by using i18nextReactModule"), t;
1820
- var A = m || x.t.bind(x) || function(h) {
1821
- return h;
1820
+ var D = m || w.t.bind(w) || function(g) {
1821
+ return g;
1822
1822
  };
1823
1823
  i && (s.context = i);
1824
- var k = U(U({}, yt()), x.options && x.options.react), S = f || A.ns || w || x.options && x.options.defaultNS;
1825
- S = typeof S == "string" ? [S] : S || ["translation"];
1826
- var O = u || St(t, k) || k.transEmptyNodeValue || r, E = k.hashTransKey, R = r || (E ? E(O) : O), L = l ? s.interpolation : {
1827
- interpolation: U(U({}, s.interpolation), {}, {
1824
+ var T = N(N({}, yt()), w.options && w.options.react), x = f || D.ns || S || w.options && w.options.defaultNS;
1825
+ x = typeof x == "string" ? [x] : x || ["translation"];
1826
+ var O = u || xt(t, T) || T.transEmptyNodeValue || r, E = T.hashTransKey, R = r || (E ? E(O) : O), L = l ? s.interpolation : {
1827
+ interpolation: N(N({}, s.interpolation), {}, {
1828
1828
  prefix: "#$?",
1829
1829
  suffix: "?$#"
1830
1830
  })
1831
- }, P = U(U(U(U({}, s), {}, {
1831
+ }, P = N(N(N(N({}, s), {}, {
1832
1832
  count: a
1833
1833
  }, l), L), {}, {
1834
1834
  defaultValue: O,
1835
- ns: S
1836
- }), W = R ? A(R, P) : O, z = ba(d || t, W, x, k, P, p), c = e !== void 0 ? e : k.defaultTransParent;
1837
- return c ? le(c, y, z) : z;
1835
+ ns: x
1836
+ }), W = R ? D(R, P) : O, I = ba(d || t, W, w, T, P, p), c = e !== void 0 ? e : T.defaultTransParent;
1837
+ return c ? le(c, y, I) : I;
1838
1838
  }
1839
- function wa(n) {
1839
+ function Sa(n) {
1840
1840
  if (Array.isArray(n)) return n;
1841
1841
  }
1842
- function xa(n, t) {
1842
+ function wa(n, t) {
1843
1843
  var a = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
1844
1844
  if (a != null) {
1845
1845
  var e, r, i, o, s = [], l = !0, u = !1;
@@ -1862,19 +1862,19 @@ function Ye(n, t) {
1862
1862
  for (var a = 0, e = Array(t); a < t; a++) e[a] = n[a];
1863
1863
  return e;
1864
1864
  }
1865
- function Ta(n, t) {
1865
+ function ka(n, t) {
1866
1866
  if (n) {
1867
1867
  if (typeof n == "string") return Ye(n, t);
1868
1868
  var a = {}.toString.call(n).slice(8, -1);
1869
1869
  return a === "Object" && n.constructor && (a = n.constructor.name), a === "Map" || a === "Set" ? Array.from(n) : a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a) ? Ye(n, t) : void 0;
1870
1870
  }
1871
1871
  }
1872
- function ka() {
1872
+ function Ta() {
1873
1873
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1874
1874
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1875
1875
  }
1876
1876
  function Ca(n, t) {
1877
- return wa(n) || xa(n, t) || Ta(n, t) || ka();
1877
+ return Sa(n) || wa(n, t) || ka(n, t) || Ta();
1878
1878
  }
1879
1879
  function Je(n, t) {
1880
1880
  var a = Object.keys(n);
@@ -1903,7 +1903,7 @@ var La = function(t, a) {
1903
1903
  e.current = t;
1904
1904
  }, [t, a]), e.current;
1905
1905
  };
1906
- function wt(n) {
1906
+ function St(n) {
1907
1907
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, a = t.i18n, e = ut(vt) || {}, r = e.i18n, i = e.defaultNS, o = a || r || bt();
1908
1908
  if (o && !o.reportNamespaces && (o.reportNamespaces = new ca()), !o) {
1909
1909
  fe("You will need to pass in an i18next instance by using initReactI18next");
@@ -1916,31 +1916,31 @@ function wt(n) {
1916
1916
  var u = Pe(Pe(Pe({}, yt()), o.options.react), t), d = u.useSuspense, f = u.keyPrefix, v = n || i || o.options && o.options.defaultNS;
1917
1917
  v = typeof v == "string" ? [v] : v || ["translation"], o.reportNamespaces.addUsedNamespaces && o.reportNamespaces.addUsedNamespaces(v);
1918
1918
  var m = (o.isInitialized || o.initializedStoreOnce) && v.every(function(E) {
1919
- return ha(E, o, u);
1919
+ return ga(E, o, u);
1920
1920
  });
1921
1921
  function p() {
1922
1922
  return o.getFixedT(null, u.nsMode === "fallback" ? v : v[0], f);
1923
1923
  }
1924
- var y = Rt(p), g = Ca(y, 2), b = g[0], w = g[1], x = v.join(), A = La(x), k = Oe(!0);
1924
+ var y = Rt(p), h = Ca(y, 2), b = h[0], S = h[1], w = v.join(), D = La(w), T = Oe(!0);
1925
1925
  Ee(function() {
1926
1926
  var E = u.bindI18n, R = u.bindI18nStore;
1927
- k.current = !0, !m && !d && Xe(o, v, function() {
1928
- k.current && w(p);
1929
- }), m && A && A !== x && k.current && w(p);
1927
+ T.current = !0, !m && !d && Xe(o, v, function() {
1928
+ T.current && S(p);
1929
+ }), m && D && D !== w && T.current && S(p);
1930
1930
  function L() {
1931
- k.current && w(p);
1931
+ T.current && S(p);
1932
1932
  }
1933
1933
  return E && o && o.on(E, L), R && o && o.store.on(R, L), function() {
1934
- k.current = !1, E && o && E.split(" ").forEach(function(P) {
1934
+ T.current = !1, E && o && E.split(" ").forEach(function(P) {
1935
1935
  return o.off(P, L);
1936
1936
  }), R && o && R.split(" ").forEach(function(P) {
1937
1937
  return o.store.off(P, L);
1938
1938
  });
1939
1939
  };
1940
- }, [o, x]);
1941
- var S = Oe(!0);
1940
+ }, [o, w]);
1941
+ var x = Oe(!0);
1942
1942
  Ee(function() {
1943
- k.current && !S.current && w(p), S.current = !1;
1943
+ T.current && !x.current && S(p), x.current = !1;
1944
1944
  }, [o, f]);
1945
1945
  var O = [b, o, m];
1946
1946
  if (O.t = b, O.i18n = o, O.ready = m, m || !m && !d) return O;
@@ -1950,15 +1950,15 @@ function wt(n) {
1950
1950
  });
1951
1951
  });
1952
1952
  }
1953
- function Ae(n) {
1953
+ function De(n) {
1954
1954
  "@babel/helpers - typeof";
1955
- return Ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1955
+ return De = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1956
1956
  return typeof t;
1957
1957
  } : function(t) {
1958
1958
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1959
- }, Ae(n);
1959
+ }, De(n);
1960
1960
  }
1961
- var xt = [], Pa = xt.forEach, Oa = xt.slice;
1961
+ var wt = [], Pa = wt.forEach, Oa = wt.slice;
1962
1962
  function Be(n) {
1963
1963
  return Pa.call(Oa.call(arguments, 1), function(t) {
1964
1964
  if (t)
@@ -1966,8 +1966,8 @@ function Be(n) {
1966
1966
  n[a] === void 0 && (n[a] = t[a]);
1967
1967
  }), n;
1968
1968
  }
1969
- function Tt() {
1970
- return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : Ae(XMLHttpRequest)) === "object";
1969
+ function kt() {
1970
+ return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : De(XMLHttpRequest)) === "object";
1971
1971
  }
1972
1972
  function Ea(n) {
1973
1973
  return !!n && typeof n.then == "function";
@@ -1975,13 +1975,13 @@ function Ea(n) {
1975
1975
  function Ra(n) {
1976
1976
  return Ea(n) ? n : Promise.resolve(n);
1977
1977
  }
1978
- function Da(n) {
1978
+ function Aa(n) {
1979
1979
  throw new Error('Could not dynamically require "' + n + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
1980
1980
  }
1981
- var se = { exports: {} }, te = { exports: {} }, Aa = te.exports, et;
1981
+ var se = { exports: {} }, te = { exports: {} }, Da = te.exports, et;
1982
1982
  function Ba() {
1983
1983
  return et || (et = 1, function(n, t) {
1984
- var a = typeof self < "u" ? self : Aa, e = function() {
1984
+ var a = typeof self < "u" ? self : Da, e = function() {
1985
1985
  function i() {
1986
1986
  this.fetch = !1, this.DOMException = a.DOMException;
1987
1987
  }
@@ -2028,54 +2028,54 @@ function Ba() {
2028
2028
  return typeof c != "string" && (c = String(c)), c;
2029
2029
  }
2030
2030
  function m(c) {
2031
- var h = {
2031
+ var g = {
2032
2032
  next: function() {
2033
- var T = c.shift();
2034
- return { done: T === void 0, value: T };
2033
+ var k = c.shift();
2034
+ return { done: k === void 0, value: k };
2035
2035
  }
2036
2036
  };
2037
- return s.iterable && (h[Symbol.iterator] = function() {
2038
- return h;
2039
- }), h;
2037
+ return s.iterable && (g[Symbol.iterator] = function() {
2038
+ return g;
2039
+ }), g;
2040
2040
  }
2041
2041
  function p(c) {
2042
- this.map = {}, c instanceof p ? c.forEach(function(h, T) {
2043
- this.append(T, h);
2044
- }, this) : Array.isArray(c) ? c.forEach(function(h) {
2045
- this.append(h[0], h[1]);
2046
- }, this) : c && Object.getOwnPropertyNames(c).forEach(function(h) {
2047
- this.append(h, c[h]);
2042
+ this.map = {}, c instanceof p ? c.forEach(function(g, k) {
2043
+ this.append(k, g);
2044
+ }, this) : Array.isArray(c) ? c.forEach(function(g) {
2045
+ this.append(g[0], g[1]);
2046
+ }, this) : c && Object.getOwnPropertyNames(c).forEach(function(g) {
2047
+ this.append(g, c[g]);
2048
2048
  }, this);
2049
2049
  }
2050
- p.prototype.append = function(c, h) {
2051
- c = f(c), h = v(h);
2052
- var T = this.map[c];
2053
- this.map[c] = T ? T + ", " + h : h;
2050
+ p.prototype.append = function(c, g) {
2051
+ c = f(c), g = v(g);
2052
+ var k = this.map[c];
2053
+ this.map[c] = k ? k + ", " + g : g;
2054
2054
  }, p.prototype.delete = function(c) {
2055
2055
  delete this.map[f(c)];
2056
2056
  }, p.prototype.get = function(c) {
2057
2057
  return c = f(c), this.has(c) ? this.map[c] : null;
2058
2058
  }, p.prototype.has = function(c) {
2059
2059
  return this.map.hasOwnProperty(f(c));
2060
- }, p.prototype.set = function(c, h) {
2061
- this.map[f(c)] = v(h);
2062
- }, p.prototype.forEach = function(c, h) {
2063
- for (var T in this.map)
2064
- this.map.hasOwnProperty(T) && c.call(h, this.map[T], T, this);
2060
+ }, p.prototype.set = function(c, g) {
2061
+ this.map[f(c)] = v(g);
2062
+ }, p.prototype.forEach = function(c, g) {
2063
+ for (var k in this.map)
2064
+ this.map.hasOwnProperty(k) && c.call(g, this.map[k], k, this);
2065
2065
  }, p.prototype.keys = function() {
2066
2066
  var c = [];
2067
- return this.forEach(function(h, T) {
2068
- c.push(T);
2067
+ return this.forEach(function(g, k) {
2068
+ c.push(k);
2069
2069
  }), m(c);
2070
2070
  }, p.prototype.values = function() {
2071
2071
  var c = [];
2072
- return this.forEach(function(h) {
2073
- c.push(h);
2072
+ return this.forEach(function(g) {
2073
+ c.push(g);
2074
2074
  }), m(c);
2075
2075
  }, p.prototype.entries = function() {
2076
2076
  var c = [];
2077
- return this.forEach(function(h, T) {
2078
- c.push([T, h]);
2077
+ return this.forEach(function(g, k) {
2078
+ c.push([k, g]);
2079
2079
  }), m(c);
2080
2080
  }, s.iterable && (p.prototype[Symbol.iterator] = p.prototype.entries);
2081
2081
  function y(c) {
@@ -2083,37 +2083,37 @@ function Ba() {
2083
2083
  return Promise.reject(new TypeError("Already read"));
2084
2084
  c.bodyUsed = !0;
2085
2085
  }
2086
- function g(c) {
2087
- return new Promise(function(h, T) {
2086
+ function h(c) {
2087
+ return new Promise(function(g, k) {
2088
2088
  c.onload = function() {
2089
- h(c.result);
2089
+ g(c.result);
2090
2090
  }, c.onerror = function() {
2091
- T(c.error);
2091
+ k(c.error);
2092
2092
  };
2093
2093
  });
2094
2094
  }
2095
2095
  function b(c) {
2096
- var h = new FileReader(), T = g(h);
2097
- return h.readAsArrayBuffer(c), T;
2096
+ var g = new FileReader(), k = h(g);
2097
+ return g.readAsArrayBuffer(c), k;
2098
2098
  }
2099
- function w(c) {
2100
- var h = new FileReader(), T = g(h);
2101
- return h.readAsText(c), T;
2099
+ function S(c) {
2100
+ var g = new FileReader(), k = h(g);
2101
+ return g.readAsText(c), k;
2102
2102
  }
2103
- function x(c) {
2104
- for (var h = new Uint8Array(c), T = new Array(h.length), B = 0; B < h.length; B++)
2105
- T[B] = String.fromCharCode(h[B]);
2106
- return T.join("");
2103
+ function w(c) {
2104
+ for (var g = new Uint8Array(c), k = new Array(g.length), B = 0; B < g.length; B++)
2105
+ k[B] = String.fromCharCode(g[B]);
2106
+ return k.join("");
2107
2107
  }
2108
- function A(c) {
2108
+ function D(c) {
2109
2109
  if (c.slice)
2110
2110
  return c.slice(0);
2111
- var h = new Uint8Array(c.byteLength);
2112
- return h.set(new Uint8Array(c)), h.buffer;
2111
+ var g = new Uint8Array(c.byteLength);
2112
+ return g.set(new Uint8Array(c)), g.buffer;
2113
2113
  }
2114
- function k() {
2114
+ function T() {
2115
2115
  return this.bodyUsed = !1, this._initBody = function(c) {
2116
- this._bodyInit = c, c ? typeof c == "string" ? this._bodyText = c : s.blob && Blob.prototype.isPrototypeOf(c) ? this._bodyBlob = c : s.formData && FormData.prototype.isPrototypeOf(c) ? this._bodyFormData = c : s.searchParams && URLSearchParams.prototype.isPrototypeOf(c) ? this._bodyText = c.toString() : s.arrayBuffer && s.blob && l(c) ? (this._bodyArrayBuffer = A(c.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : s.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(c) || d(c)) ? this._bodyArrayBuffer = A(c) : this._bodyText = c = Object.prototype.toString.call(c) : this._bodyText = "", this.headers.get("content-type") || (typeof c == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : s.searchParams && URLSearchParams.prototype.isPrototypeOf(c) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2116
+ this._bodyInit = c, c ? typeof c == "string" ? this._bodyText = c : s.blob && Blob.prototype.isPrototypeOf(c) ? this._bodyBlob = c : s.formData && FormData.prototype.isPrototypeOf(c) ? this._bodyFormData = c : s.searchParams && URLSearchParams.prototype.isPrototypeOf(c) ? this._bodyText = c.toString() : s.arrayBuffer && s.blob && l(c) ? (this._bodyArrayBuffer = D(c.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : s.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(c) || d(c)) ? this._bodyArrayBuffer = D(c) : this._bodyText = c = Object.prototype.toString.call(c) : this._bodyText = "", this.headers.get("content-type") || (typeof c == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : s.searchParams && URLSearchParams.prototype.isPrototypeOf(c) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
2117
2117
  }, s.blob && (this.blob = function() {
2118
2118
  var c = y(this);
2119
2119
  if (c)
@@ -2132,9 +2132,9 @@ function Ba() {
2132
2132
  if (c)
2133
2133
  return c;
2134
2134
  if (this._bodyBlob)
2135
- return w(this._bodyBlob);
2135
+ return S(this._bodyBlob);
2136
2136
  if (this._bodyArrayBuffer)
2137
- return Promise.resolve(x(this._bodyArrayBuffer));
2137
+ return Promise.resolve(w(this._bodyArrayBuffer));
2138
2138
  if (this._bodyFormData)
2139
2139
  throw new Error("could not read FormData body as text");
2140
2140
  return Promise.resolve(this._bodyText);
@@ -2144,51 +2144,51 @@ function Ba() {
2144
2144
  return this.text().then(JSON.parse);
2145
2145
  }, this;
2146
2146
  }
2147
- var S = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
2147
+ var x = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
2148
2148
  function O(c) {
2149
- var h = c.toUpperCase();
2150
- return S.indexOf(h) > -1 ? h : c;
2149
+ var g = c.toUpperCase();
2150
+ return x.indexOf(g) > -1 ? g : c;
2151
2151
  }
2152
- function E(c, h) {
2153
- h = h || {};
2154
- var T = h.body;
2152
+ function E(c, g) {
2153
+ g = g || {};
2154
+ var k = g.body;
2155
2155
  if (c instanceof E) {
2156
2156
  if (c.bodyUsed)
2157
2157
  throw new TypeError("Already read");
2158
- this.url = c.url, this.credentials = c.credentials, h.headers || (this.headers = new p(c.headers)), this.method = c.method, this.mode = c.mode, this.signal = c.signal, !T && c._bodyInit != null && (T = c._bodyInit, c.bodyUsed = !0);
2158
+ this.url = c.url, this.credentials = c.credentials, g.headers || (this.headers = new p(c.headers)), this.method = c.method, this.mode = c.mode, this.signal = c.signal, !k && c._bodyInit != null && (k = c._bodyInit, c.bodyUsed = !0);
2159
2159
  } else
2160
2160
  this.url = String(c);
2161
- if (this.credentials = h.credentials || this.credentials || "same-origin", (h.headers || !this.headers) && (this.headers = new p(h.headers)), this.method = O(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") && T)
2161
+ if (this.credentials = g.credentials || this.credentials || "same-origin", (g.headers || !this.headers) && (this.headers = new p(g.headers)), this.method = O(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") && k)
2162
2162
  throw new TypeError("Body not allowed for GET or HEAD requests");
2163
- this._initBody(T);
2163
+ this._initBody(k);
2164
2164
  }
2165
2165
  E.prototype.clone = function() {
2166
2166
  return new E(this, { body: this._bodyInit });
2167
2167
  };
2168
2168
  function R(c) {
2169
- var h = new FormData();
2170
- return c.trim().split("&").forEach(function(T) {
2171
- if (T) {
2172
- var B = T.split("="), D = B.shift().replace(/\+/g, " "), C = B.join("=").replace(/\+/g, " ");
2173
- h.append(decodeURIComponent(D), decodeURIComponent(C));
2169
+ var g = new FormData();
2170
+ return c.trim().split("&").forEach(function(k) {
2171
+ if (k) {
2172
+ var B = k.split("="), A = B.shift().replace(/\+/g, " "), C = B.join("=").replace(/\+/g, " ");
2173
+ g.append(decodeURIComponent(A), decodeURIComponent(C));
2174
2174
  }
2175
- }), h;
2175
+ }), g;
2176
2176
  }
2177
2177
  function L(c) {
2178
- var h = new p(), T = c.replace(/\r?\n[\t ]+/g, " ");
2179
- return T.split(/\r?\n/).forEach(function(B) {
2180
- var D = B.split(":"), C = D.shift().trim();
2178
+ var g = new p(), k = c.replace(/\r?\n[\t ]+/g, " ");
2179
+ return k.split(/\r?\n/).forEach(function(B) {
2180
+ var A = B.split(":"), C = A.shift().trim();
2181
2181
  if (C) {
2182
- var H = D.join(":").trim();
2183
- h.append(C, H);
2182
+ var H = A.join(":").trim();
2183
+ g.append(C, H);
2184
2184
  }
2185
- }), h;
2185
+ }), g;
2186
2186
  }
2187
- k.call(E.prototype);
2188
- function P(c, h) {
2189
- h || (h = {}), this.type = "default", this.status = h.status === void 0 ? 200 : h.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in h ? h.statusText : "OK", this.headers = new p(h.headers), this.url = h.url || "", this._initBody(c);
2187
+ T.call(E.prototype);
2188
+ function P(c, g) {
2189
+ g || (g = {}), this.type = "default", this.status = g.status === void 0 ? 200 : g.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = "statusText" in g ? g.statusText : "OK", this.headers = new p(g.headers), this.url = g.url || "", this._initBody(c);
2190
2190
  }
2191
- k.call(P.prototype), P.prototype.clone = function() {
2191
+ T.call(P.prototype), P.prototype.clone = function() {
2192
2192
  return new P(this._bodyInit, {
2193
2193
  status: this.status,
2194
2194
  statusText: this.statusText,
@@ -2200,52 +2200,52 @@ function Ba() {
2200
2200
  return c.type = "error", c;
2201
2201
  };
2202
2202
  var W = [301, 302, 303, 307, 308];
2203
- P.redirect = function(c, h) {
2204
- if (W.indexOf(h) === -1)
2203
+ P.redirect = function(c, g) {
2204
+ if (W.indexOf(g) === -1)
2205
2205
  throw new RangeError("Invalid status code");
2206
- return new P(null, { status: h, headers: { location: c } });
2206
+ return new P(null, { status: g, headers: { location: c } });
2207
2207
  }, o.DOMException = i.DOMException;
2208
2208
  try {
2209
2209
  new o.DOMException();
2210
2210
  } catch {
2211
- o.DOMException = function(h, T) {
2212
- this.message = h, this.name = T;
2213
- var B = Error(h);
2211
+ o.DOMException = function(g, k) {
2212
+ this.message = g, this.name = k;
2213
+ var B = Error(g);
2214
2214
  this.stack = B.stack;
2215
2215
  }, o.DOMException.prototype = Object.create(Error.prototype), o.DOMException.prototype.constructor = o.DOMException;
2216
2216
  }
2217
- function z(c, h) {
2218
- return new Promise(function(T, B) {
2219
- var D = new E(c, h);
2220
- if (D.signal && D.signal.aborted)
2217
+ function I(c, g) {
2218
+ return new Promise(function(k, B) {
2219
+ var A = new E(c, g);
2220
+ if (A.signal && A.signal.aborted)
2221
2221
  return B(new o.DOMException("Aborted", "AbortError"));
2222
2222
  var C = new XMLHttpRequest();
2223
2223
  function H() {
2224
2224
  C.abort();
2225
2225
  }
2226
2226
  C.onload = function() {
2227
- var j = {
2227
+ var F = {
2228
2228
  status: C.status,
2229
2229
  statusText: C.statusText,
2230
2230
  headers: L(C.getAllResponseHeaders() || "")
2231
2231
  };
2232
- j.url = "responseURL" in C ? C.responseURL : j.headers.get("X-Request-URL");
2233
- var I = "response" in C ? C.response : C.responseText;
2234
- T(new P(I, j));
2232
+ F.url = "responseURL" in C ? C.responseURL : F.headers.get("X-Request-URL");
2233
+ var M = "response" in C ? C.response : C.responseText;
2234
+ k(new P(M, F));
2235
2235
  }, C.onerror = function() {
2236
2236
  B(new TypeError("Network request failed"));
2237
2237
  }, C.ontimeout = function() {
2238
2238
  B(new TypeError("Network request failed"));
2239
2239
  }, C.onabort = function() {
2240
2240
  B(new o.DOMException("Aborted", "AbortError"));
2241
- }, C.open(D.method, D.url, !0), D.credentials === "include" ? C.withCredentials = !0 : D.credentials === "omit" && (C.withCredentials = !1), "responseType" in C && s.blob && (C.responseType = "blob"), D.headers.forEach(function(j, I) {
2242
- C.setRequestHeader(I, j);
2243
- }), D.signal && (D.signal.addEventListener("abort", H), C.onreadystatechange = function() {
2244
- C.readyState === 4 && D.signal.removeEventListener("abort", H);
2245
- }), C.send(typeof D._bodyInit > "u" ? null : D._bodyInit);
2241
+ }, C.open(A.method, A.url, !0), A.credentials === "include" ? C.withCredentials = !0 : A.credentials === "omit" && (C.withCredentials = !1), "responseType" in C && s.blob && (C.responseType = "blob"), A.headers.forEach(function(F, M) {
2242
+ C.setRequestHeader(M, F);
2243
+ }), A.signal && (A.signal.addEventListener("abort", H), C.onreadystatechange = function() {
2244
+ C.readyState === 4 && A.signal.removeEventListener("abort", H);
2245
+ }), C.send(typeof A._bodyInit > "u" ? null : A._bodyInit);
2246
2246
  });
2247
2247
  }
2248
- return z.polyfill = !0, i.fetch || (i.fetch = z, i.Headers = p, i.Request = E, i.Response = P), o.Headers = p, o.Request = E, o.Response = P, o.fetch = z, Object.defineProperty(o, "__esModule", { value: !0 }), o;
2248
+ return I.polyfill = !0, i.fetch || (i.fetch = I, i.Headers = p, i.Request = E, i.Response = P), o.Headers = p, o.Request = E, o.Response = P, o.fetch = I, Object.defineProperty(o, "__esModule", { value: !0 }), o;
2249
2249
  })({});
2250
2250
  })(e), e.fetch.ponyfill = !0, delete e.fetch.polyfill;
2251
2251
  var r = e;
@@ -2253,20 +2253,20 @@ function Ba() {
2253
2253
  }(te, te.exports)), te.exports;
2254
2254
  }
2255
2255
  var tt;
2256
- function Ua() {
2256
+ function Na() {
2257
2257
  return tt || (tt = 1, function(n, t) {
2258
2258
  var a;
2259
- if (typeof fetch == "function" && (typeof Te < "u" && Te.fetch ? a = Te.fetch : typeof window < "u" && window.fetch ? a = window.fetch : a = fetch), typeof Da < "u" && (typeof window > "u" || typeof window.document > "u")) {
2259
+ if (typeof fetch == "function" && (typeof ke < "u" && ke.fetch ? a = ke.fetch : typeof window < "u" && window.fetch ? a = window.fetch : a = fetch), typeof Aa < "u" && (typeof window > "u" || typeof window.document > "u")) {
2260
2260
  var e = a || Ba();
2261
2261
  e.default && (e = e.default), t.default = e, n.exports = t.default;
2262
2262
  }
2263
2263
  }(se, se.exports)), se.exports;
2264
2264
  }
2265
- var kt = Ua();
2266
- const Ct = /* @__PURE__ */ ht(kt), at = /* @__PURE__ */ Dt({
2265
+ var Tt = Na();
2266
+ const Ct = /* @__PURE__ */ gt(Tt), at = /* @__PURE__ */ At({
2267
2267
  __proto__: null,
2268
2268
  default: Ct
2269
- }, [kt]);
2269
+ }, [Tt]);
2270
2270
  function pe(n) {
2271
2271
  "@babel/helpers - typeof";
2272
2272
  return pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -2278,12 +2278,12 @@ function pe(n) {
2278
2278
  var V;
2279
2279
  typeof fetch == "function" && (typeof global < "u" && global.fetch ? V = global.fetch : typeof window < "u" && window.fetch ? V = window.fetch : V = fetch);
2280
2280
  var ne;
2281
- Tt() && (typeof global < "u" && global.XMLHttpRequest ? ne = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (ne = window.XMLHttpRequest));
2282
- var he;
2283
- typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? he = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (he = window.ActiveXObject));
2284
- !V && at && !ne && !he && (V = Ct || at);
2281
+ kt() && (typeof global < "u" && global.XMLHttpRequest ? ne = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (ne = window.XMLHttpRequest));
2282
+ var ge;
2283
+ typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? ge = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (ge = window.ActiveXObject));
2284
+ !V && at && !ne && !ge && (V = Ct || at);
2285
2285
  typeof V != "function" && (V = void 0);
2286
- var Ue = function(t, a) {
2286
+ var Ne = function(t, a) {
2287
2287
  if (a && pe(a) === "object") {
2288
2288
  var e = "";
2289
2289
  for (var r in a)
@@ -2304,8 +2304,8 @@ var Ue = function(t, a) {
2304
2304
  });
2305
2305
  }).catch(e);
2306
2306
  }).catch(e);
2307
- }, nt = !1, Na = function(t, a, e, r) {
2308
- t.queryStringParams && (a = Ue(a, t.queryStringParams));
2307
+ }, nt = !1, Ua = function(t, a, e, r) {
2308
+ t.queryStringParams && (a = Ne(a, t.queryStringParams));
2309
2309
  var i = Be({}, typeof t.customHeaders == "function" ? t.customHeaders() : t.customHeaders);
2310
2310
  e && (i["Content-Type"] = "application/json");
2311
2311
  var o = typeof t.requestOptions == "function" ? t.requestOptions(e) : t.requestOptions, s = Be({
@@ -2326,11 +2326,11 @@ var Ue = function(t, a) {
2326
2326
  r(u);
2327
2327
  }
2328
2328
  }
2329
- }, Fa = function(t, a, e, r) {
2330
- e && pe(e) === "object" && (e = Ue("", e).slice(1)), t.queryStringParams && (a = Ue(a, t.queryStringParams));
2329
+ }, ja = function(t, a, e, r) {
2330
+ e && pe(e) === "object" && (e = Ne("", e).slice(1)), t.queryStringParams && (a = Ne(a, t.queryStringParams));
2331
2331
  try {
2332
2332
  var i;
2333
- ne ? i = new ne() : i = new he("MSXML2.XMLHTTP.3.0"), i.open(e ? "POST" : "GET", a, 1), t.crossDomain || i.setRequestHeader("X-Requested-With", "XMLHttpRequest"), i.withCredentials = !!t.withCredentials, e && i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), i.overrideMimeType && i.overrideMimeType("application/json");
2333
+ ne ? i = new ne() : i = new ge("MSXML2.XMLHTTP.3.0"), i.open(e ? "POST" : "GET", a, 1), t.crossDomain || i.setRequestHeader("X-Requested-With", "XMLHttpRequest"), i.withCredentials = !!t.withCredentials, e && i.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), i.overrideMimeType && i.overrideMimeType("application/json");
2334
2334
  var o = t.customHeaders;
2335
2335
  if (o = typeof o == "function" ? o() : o, o)
2336
2336
  for (var s in o)
@@ -2344,26 +2344,26 @@ var Ue = function(t, a) {
2344
2344
  } catch (l) {
2345
2345
  console && console.log(l);
2346
2346
  }
2347
- }, ja = function(t, a, e, r) {
2347
+ }, Fa = function(t, a, e, r) {
2348
2348
  if (typeof e == "function" && (r = e, e = void 0), r = r || function() {
2349
2349
  }, V)
2350
- return Na(t, a, e, r);
2351
- if (Tt() || typeof ActiveXObject == "function")
2352
- return Fa(t, a, e, r);
2350
+ return Ua(t, a, e, r);
2351
+ if (kt() || typeof ActiveXObject == "function")
2352
+ return ja(t, a, e, r);
2353
2353
  r(new Error("No fetch and no xhr implementation found!"));
2354
2354
  };
2355
- function za(n, t) {
2355
+ function Ia(n, t) {
2356
2356
  if (!(n instanceof t))
2357
2357
  throw new TypeError("Cannot call a class as a function");
2358
2358
  }
2359
- function Ia(n, t) {
2359
+ function Ma(n, t) {
2360
2360
  for (var a = 0; a < t.length; a++) {
2361
2361
  var e = t[a];
2362
2362
  e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, e.key, e);
2363
2363
  }
2364
2364
  }
2365
- function Ma(n, t, a) {
2366
- return t && Ia(n.prototype, t), Object.defineProperty(n, "prototype", { writable: !1 }), n;
2365
+ function za(n, t, a) {
2366
+ return t && Ma(n.prototype, t), Object.defineProperty(n, "prototype", { writable: !1 }), n;
2367
2367
  }
2368
2368
  function _a(n, t, a) {
2369
2369
  return t in n ? Object.defineProperty(n, t, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = a, n;
@@ -2380,7 +2380,7 @@ var Ha = function() {
2380
2380
  parsePayload: function(a, e, r) {
2381
2381
  return _a({}, e, r || "");
2382
2382
  },
2383
- request: ja,
2383
+ request: Fa,
2384
2384
  reloadInterval: typeof window < "u" ? !1 : 60 * 60 * 1e3,
2385
2385
  customHeaders: {},
2386
2386
  queryStringParams: {},
@@ -2396,9 +2396,9 @@ var Ha = function() {
2396
2396
  }, Lt = function() {
2397
2397
  function n(t) {
2398
2398
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
2399
- za(this, n), this.services = t, this.options = a, this.allOptions = e, this.type = "backend", this.init(t, a, e);
2399
+ Ia(this, n), this.services = t, this.options = a, this.allOptions = e, this.type = "backend", this.init(t, a, e);
2400
2400
  }
2401
- return Ma(n, [{
2401
+ return za(n, [{
2402
2402
  key: "init",
2403
2403
  value: function(a) {
2404
2404
  var e = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
@@ -2462,8 +2462,8 @@ var Ha = function() {
2462
2462
  lng: v,
2463
2463
  ns: e
2464
2464
  });
2465
- s.options.request(s.options, p, l, function(y, g) {
2466
- u += 1, d.push(y), f.push(g), u === a.length && o && o(d, f);
2465
+ s.options.request(s.options, p, l, function(y, h) {
2466
+ u += 1, d.push(y), f.push(h), u === a.length && o && o(d, f);
2467
2467
  });
2468
2468
  });
2469
2469
  }
@@ -2591,26 +2591,26 @@ var it = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Qa = function(t, a, e) {
2591
2591
  }
2592
2592
  return a;
2593
2593
  }
2594
- }, ge;
2594
+ }, he;
2595
2595
  try {
2596
- ge = window !== "undefined" && window.localStorage !== null;
2596
+ he = window !== "undefined" && window.localStorage !== null;
2597
2597
  var st = "i18next.translate.boo";
2598
2598
  window.localStorage.setItem(st, "foo"), window.localStorage.removeItem(st);
2599
2599
  } catch {
2600
- ge = !1;
2600
+ he = !1;
2601
2601
  }
2602
2602
  var Za = {
2603
2603
  name: "localStorage",
2604
2604
  lookup: function(t) {
2605
2605
  var a;
2606
- if (t.lookupLocalStorage && ge) {
2606
+ if (t.lookupLocalStorage && he) {
2607
2607
  var e = window.localStorage.getItem(t.lookupLocalStorage);
2608
2608
  e && (a = e);
2609
2609
  }
2610
2610
  return a;
2611
2611
  },
2612
2612
  cacheUserLanguage: function(t, a) {
2613
- a.lookupLocalStorage && ge && window.localStorage.setItem(a.lookupLocalStorage, t);
2613
+ a.lookupLocalStorage && he && window.localStorage.setItem(a.lookupLocalStorage, t);
2614
2614
  }
2615
2615
  }, me;
2616
2616
  try {
@@ -2694,7 +2694,7 @@ function tr() {
2694
2694
  var Ot = /* @__PURE__ */ function() {
2695
2695
  function n(t) {
2696
2696
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2697
- M(this, n), this.type = "languageDetector", this.detectors = {}, this.init(t, a);
2697
+ z(this, n), this.type = "languageDetector", this.detectors = {}, this.init(t, a);
2698
2698
  }
2699
2699
  return _(n, [{
2700
2700
  key: "init",
@@ -2763,14 +2763,11 @@ const ar = {
2763
2763
  "datepicker.preset.thirtyDays": "Letzte 30 Tage",
2764
2764
  "datepicker.preset.today": "Heute",
2765
2765
  "datepicker.presetsLabel": "Bereiche",
2766
- "fileUpload.acceptedTypes": { one: "{{fileTypes}} Format akzeptiert", other: "{{fileTypes}} akzeptierte Formate", zero: null },
2767
2766
  "fileUpload.acceptedTypes.one": "{{fileTypes}} Format akzeptiert",
2768
2767
  "fileUpload.acceptedTypes.other": "{{fileTypes}} akzeptierte Formate",
2769
- "fileUpload.cancelled": { one: "Datei-Upload fehlgeschlagen", other: "Datei-Upload(s) fehlgeschlagen", zero: null },
2770
2768
  "fileUpload.cancelled.one": "Datei-Upload fehlgeschlagen",
2771
2769
  "fileUpload.cancelled.other": "Datei-Upload(s) fehlgeschlagen",
2772
2770
  "fileUpload.close": "Schließen",
2773
- "fileUpload.instructions": { one: "Ziehen Sie Ihre Datei per Drag & Drop hierher oder |suchen Sie nach einer Datei| auf Ihrem Desktop.", other: "Ziehen Sie Ihre Dateien per Drag & Drop hierher oder |suchen Sie nach Dateien| auf Ihrem Desktop.", zero: null },
2774
2771
  "fileUpload.instructions.one": "Ziehen Sie Ihre Datei per Drag & Drop hierher oder |suchen Sie nach einer Datei| auf Ihrem Desktop.",
2775
2772
  "fileUpload.instructions.other": "Ziehen Sie Ihre Dateien per Drag & Drop hierher oder |suchen Sie nach Dateien| auf Ihrem Desktop.",
2776
2773
  "fileUpload.maximumSize": "{{size}} maximal",
@@ -2865,14 +2862,11 @@ const ar = {
2865
2862
  "datepicker.preset.thirtyDays": "Last 30 days",
2866
2863
  "datepicker.preset.today": "Today",
2867
2864
  "datepicker.presetsLabel": "Ranges",
2868
- "fileUpload.acceptedTypes": { one: "{{fileTypes}} format accepted", other: "{{fileTypes}} formats accepted", zero: null },
2869
2865
  "fileUpload.acceptedTypes.one": "{{fileTypes}} format accepted",
2870
2866
  "fileUpload.acceptedTypes.other": "{{fileTypes}} formats accepted",
2871
- "fileUpload.cancelled": { one: "File Upload Failed", other: "File Upload(s) Failed", zero: null },
2872
2867
  "fileUpload.cancelled.one": "File Upload Failed",
2873
2868
  "fileUpload.cancelled.other": "File Upload(s) Failed",
2874
2869
  "fileUpload.close": "Close",
2875
- "fileUpload.instructions": { one: "Drag and drop your file here or |browse for a file| on your desktop.", other: "Drag and drop your files here or |browse for files| on your desktop.", zero: null },
2876
2870
  "fileUpload.instructions.one": "Drag and drop your file here or |browse for a file| on your desktop.",
2877
2871
  "fileUpload.instructions.other": "Drag and drop your files here or |browse for files| on your desktop.",
2878
2872
  "fileUpload.maximumSize": "{{size}} maximum",
@@ -2967,14 +2961,11 @@ const ar = {
2967
2961
  "datepicker.preset.thirtyDays": "Últimos 30 días",
2968
2962
  "datepicker.preset.today": "Hoy",
2969
2963
  "datepicker.presetsLabel": "Rangos",
2970
- "fileUpload.acceptedTypes": { many: null, one: "Formato {{fileTypes}} aceptado", other: "Formatos {{fileTypes}} aceptados", zero: null },
2971
2964
  "fileUpload.acceptedTypes.one": "Formato {{fileTypes}} aceptado",
2972
2965
  "fileUpload.acceptedTypes.other": "Formatos {{fileTypes}} aceptados",
2973
- "fileUpload.cancelled": { many: null, one: "Error al cargar el archivo", other: "Error en la carga de archivos", zero: null },
2974
2966
  "fileUpload.cancelled.one": "Error al cargar el archivo",
2975
2967
  "fileUpload.cancelled.other": "Error en la carga de archivos",
2976
2968
  "fileUpload.close": "Cerrar",
2977
- "fileUpload.instructions": { many: null, one: "Arrastre y suelte su archivo aquí o busque un archivo en su escritorio.", other: "Arrastre y suelte sus archivos aquí o busque archivos en su escritorio.", zero: null },
2978
2969
  "fileUpload.instructions.one": "Arrastre y suelte su archivo aquí o busque un archivo en su escritorio.",
2979
2970
  "fileUpload.instructions.other": "Arrastre y suelte sus archivos aquí o busque archivos en su escritorio.",
2980
2971
  "fileUpload.maximumSize": "{{size}} máximo",
@@ -3069,14 +3060,11 @@ const ar = {
3069
3060
  "datepicker.preset.thirtyDays": "Les 30 derniers jours",
3070
3061
  "datepicker.preset.today": "Aujourd'hui",
3071
3062
  "datepicker.presetsLabel": "Gammes",
3072
- "fileUpload.acceptedTypes": { many: null, one: "Format {{fileTypes}} accepté", other: "Formats {{fileTypes}} acceptés", zero: null },
3073
3063
  "fileUpload.acceptedTypes.one": "Format {{fileTypes}} accepté",
3074
3064
  "fileUpload.acceptedTypes.other": "Formats {{fileTypes}} acceptés",
3075
- "fileUpload.cancelled": { many: null, one: "Échec du téléchargement du fichier", other: "Échec du téléchargement du fichier", zero: null },
3076
3065
  "fileUpload.cancelled.one": "Échec du téléchargement du fichier",
3077
3066
  "fileUpload.cancelled.other": "Échec du téléchargement du fichier",
3078
3067
  "fileUpload.close": "Fermer",
3079
- "fileUpload.instructions": { many: null, one: "Faites glisser et déposez votre fichier ici ou |recherchez un fichier| sur votre bureau.", other: "Faites glisser et déposez vos fichiers ici ou |recherchez des fichiers| sur votre bureau.", zero: null },
3080
3068
  "fileUpload.instructions.one": "Faites glisser et déposez votre fichier ici ou |recherchez un fichier| sur votre bureau.",
3081
3069
  "fileUpload.instructions.other": "Faites glisser et déposez vos fichiers ici ou |recherchez des fichiers| sur votre bureau.",
3082
3070
  "fileUpload.maximumSize": "{{size}} maximum",
@@ -3171,14 +3159,11 @@ const ar = {
3171
3159
  "datepicker.preset.thirtyDays": "30 derniers jours",
3172
3160
  "datepicker.preset.today": "Aujourd'hui",
3173
3161
  "datepicker.presetsLabel": "Gammes",
3174
- "fileUpload.acceptedTypes": { many: null, one: "Format {{fileTypes}} accepté", other: "Formats {{fileTypes}} acceptés", zero: null },
3175
3162
  "fileUpload.acceptedTypes.one": "Format {{fileTypes}} accepté",
3176
3163
  "fileUpload.acceptedTypes.other": "Formats {{fileTypes}} acceptés",
3177
- "fileUpload.cancelled": { many: null, one: "Échec du téléchargement du fichier", other: "Échec du téléchargement du fichier", zero: null },
3178
3164
  "fileUpload.cancelled.one": "Échec du téléchargement du fichier",
3179
3165
  "fileUpload.cancelled.other": "Échec du téléchargement du fichier",
3180
3166
  "fileUpload.close": "Fermer",
3181
- "fileUpload.instructions": { many: null, one: "Faites glisser et déposez votre fichier ici ou |recherchez un fichier| sur votre bureau.", other: "Faites glisser et déposez vos fichiers ici ou |recherchez des fichiers| sur votre bureau.", zero: null },
3182
3167
  "fileUpload.instructions.one": "Faites glisser et déposez votre fichier ici ou |recherchez un fichier| sur votre bureau.",
3183
3168
  "fileUpload.instructions.other": "Faites glisser et déposez vos fichiers ici ou |recherchez des fichiers| sur votre bureau.",
3184
3169
  "fileUpload.maximumSize": "{{size}} maximum",
@@ -3273,14 +3258,11 @@ const ar = {
3273
3258
  "datepicker.preset.thirtyDays": "Ultimi 30 giorni",
3274
3259
  "datepicker.preset.today": "Oggi",
3275
3260
  "datepicker.presetsLabel": "Gamme",
3276
- "fileUpload.acceptedTypes": { many: null, one: "Formato {{fileTypes}} accettato", other: "Formati accettati {{fileTypes}}", zero: null },
3277
3261
  "fileUpload.acceptedTypes.one": "Formato {{fileTypes}} accettato",
3278
3262
  "fileUpload.acceptedTypes.other": "Formati accettati {{fileTypes}}",
3279
- "fileUpload.cancelled": { many: null, one: "Caricamento file non riuscito", other: "Caricamento file non riuscito", zero: null },
3280
3263
  "fileUpload.cancelled.one": "Caricamento file non riuscito",
3281
3264
  "fileUpload.cancelled.other": "Caricamento file non riuscito",
3282
3265
  "fileUpload.close": "Chiudi",
3283
- "fileUpload.instructions": { many: null, one: "Trascina e rilascia il tuo file qui oppure |cerca un file| sul desktop.", other: "Trascina e rilascia i tuoi file qui oppure |cerca file| sul desktop.", zero: null },
3284
3266
  "fileUpload.instructions.one": "Trascina e rilascia il tuo file qui oppure |cerca un file| sul desktop.",
3285
3267
  "fileUpload.instructions.other": "Trascina e rilascia i tuoi file qui oppure |cerca file| sul desktop.",
3286
3268
  "fileUpload.maximumSize": "{{size}} massimo",
@@ -3375,14 +3357,11 @@ const ar = {
3375
3357
  "datepicker.preset.thirtyDays": "Laatste 30 dagen",
3376
3358
  "datepicker.preset.today": "Vandaag",
3377
3359
  "datepicker.presetsLabel": "Bereiken",
3378
- "fileUpload.acceptedTypes": { one: "{{fileTypes}} formaat geaccepteerd", other: "{{fileTypes}} formaten geaccepteerd", zero: null },
3379
3360
  "fileUpload.acceptedTypes.one": "{{fileTypes}} formaat geaccepteerd",
3380
3361
  "fileUpload.acceptedTypes.other": "{{fileTypes}} formaten geaccepteerd",
3381
- "fileUpload.cancelled": { one: "Bestandsupload mislukt", other: "Bestandsupload(s) mislukt", zero: null },
3382
3362
  "fileUpload.cancelled.one": "Bestandsupload mislukt",
3383
3363
  "fileUpload.cancelled.other": "Bestandsupload(s) mislukt",
3384
3364
  "fileUpload.close": "Dicht",
3385
- "fileUpload.instructions": { one: "Sleep uw bestand hierheen of |blader naar een bestand| op uw bureaublad.", other: "Sleep uw bestanden hierheen of |blader naar bestanden| op uw bureaublad.", zero: null },
3386
3365
  "fileUpload.instructions.one": "Sleep uw bestand hierheen of |blader naar een bestand| op uw bureaublad.",
3387
3366
  "fileUpload.instructions.other": "Sleep uw bestanden hierheen of |blader naar bestanden| op uw bureaublad.",
3388
3367
  "fileUpload.maximumSize": "{{size}} maximaal",
@@ -3477,14 +3456,11 @@ const ar = {
3477
3456
  "datepicker.preset.thirtyDays": "最近 30 天",
3478
3457
  "datepicker.preset.today": "今天",
3479
3458
  "datepicker.presetsLabel": "范围",
3480
- "fileUpload.acceptedTypes": { other: "接受{{fileTypes}}个格式", zero: null },
3481
3459
  "fileUpload.acceptedTypes.one": "{{fileTypes}}格式已接受",
3482
3460
  "fileUpload.acceptedTypes.other": "接受{{fileTypes}}个格式",
3483
- "fileUpload.cancelled": { other: "文件上传失败", zero: null },
3484
3461
  "fileUpload.cancelled.one": "文件上传失败",
3485
3462
  "fileUpload.cancelled.other": "文件上传失败",
3486
3463
  "fileUpload.close": "关闭",
3487
- "fileUpload.instructions": { other: "将您的文件拖放到此处或|浏览文件|到您的桌面上。", zero: null },
3488
3464
  "fileUpload.instructions.one": "将您的文件拖放到此处或在桌面上|浏览文件|。",
3489
3465
  "fileUpload.instructions.other": "将您的文件拖放到此处或|浏览文件|到您的桌面上。",
3490
3466
  "fileUpload.maximumSize": "最大{{size}}",
@@ -3579,14 +3555,11 @@ const ar = {
3579
3555
  "datepicker.preset.thirtyDays": "最近30天",
3580
3556
  "datepicker.preset.today": "今天",
3581
3557
  "datepicker.presetsLabel": "範圍",
3582
- "fileUpload.acceptedTypes": { other: "接受{{fileTypes}}個格式", zero: null },
3583
3558
  "fileUpload.acceptedTypes.one": "{{fileTypes}}格式已接受",
3584
3559
  "fileUpload.acceptedTypes.other": "接受{{fileTypes}}個格式",
3585
- "fileUpload.cancelled": { other: "文件上傳失敗", zero: null },
3586
3560
  "fileUpload.cancelled.one": "文件上傳失敗",
3587
3561
  "fileUpload.cancelled.other": "文件上傳失敗",
3588
3562
  "fileUpload.close": "關閉",
3589
- "fileUpload.instructions": { other: "將您的文件拖曳到此處或|瀏覽文件|到您的桌面上。", zero: null },
3590
3563
  "fileUpload.instructions.one": "將您的文件拖放到此處或在桌面上|瀏覽文件|。",
3591
3564
  "fileUpload.instructions.other": "將您的文件拖曳到此處或|瀏覽文件|到您的桌面上。",
3592
3565
  "fileUpload.maximumSize": "最大{{size}}",
@@ -3673,7 +3646,7 @@ const ar = {
3673
3646
  });
3674
3647
  ae.init();
3675
3648
  function fr(n) {
3676
- return wt("woodland", {
3649
+ return St("woodland", {
3677
3650
  ...n,
3678
3651
  i18n: ae
3679
3652
  });
@@ -3746,15 +3719,15 @@ function pr({
3746
3719
  ae.changeLanguage(d);
3747
3720
  }), u;
3748
3721
  }
3749
- const hr = Sa;
3750
- function gr(n = "translation", t) {
3751
- return wt(n, t);
3722
+ const gr = xa;
3723
+ function hr(n = "translation", t) {
3724
+ return St(n, t);
3752
3725
  }
3753
3726
  export {
3754
- hr as SpsLanguage,
3727
+ gr as SpsLanguage,
3755
3728
  $ as i18n,
3756
3729
  ae as i18nWoodland,
3757
3730
  pr as localize,
3758
- gr as useSpsLanguage,
3731
+ hr as useSpsLanguage,
3759
3732
  fr as useWoodlandLanguage
3760
3733
  };