@incodetech/web 0.0.0-dev-20260403-10f7d94 → 0.0.0-dev-20260403-eccc51c

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.
Files changed (57) hide show
  1. package/dist/{Trans-DiTufE_D.js → Trans-aTzdT_SA.js} +1 -1
  2. package/dist/{addressAutocomplete-BSE71Kua.js → addressAutocomplete-C8-wL1j_.js} +4 -4
  3. package/dist/antifraud/antifraud.es.js +18 -0
  4. package/dist/antifraud/styles.css +2 -0
  5. package/dist/authentication/authentication.es.js +3 -3
  6. package/dist/button-CE9kRlem.js +184 -0
  7. package/dist/{cameraView-DXT7CWqE.js → cameraView-C2X7klNb.js} +1 -1
  8. package/dist/{captureOverlay-wQmz2Z5r.js → captureOverlay-tCb4R4WE.js} +18 -17
  9. package/dist/{checkbox-wo8qk7tM.js → checkbox-B5X-mfqq.js} +2 -2
  10. package/dist/{chevronDown-BksFjKhp.js → chevronDown-DSHaPKbi.js} +1 -1
  11. package/dist/{closeIcon-5Xq6MCZa.js → closeIcon-9Hc97omv.js} +1 -1
  12. package/dist/consent/consent.es.js +24 -23
  13. package/dist/curp-validation/curp-validation.es.js +75 -74
  14. package/dist/{dateInputComposed-D5kgh_aC.js → dateInputComposed-C7PCzh-U.js} +3 -3
  15. package/dist/{documentCapture-8ZOwr7xp.js → documentCapture-C0mO-RGE.js} +111 -110
  16. package/dist/{dropdownComposed-CzAsPPqv.js → dropdownComposed-BpinYlrx.js} +4 -4
  17. package/dist/{ekybModule-RZwNRg6E.js → ekybModule-Dr6LJUg-.js} +18 -17
  18. package/dist/{ekycModule-BgFGstuw.js → ekycModule-C3mswduI.js} +10 -9
  19. package/dist/email/email.es.js +23 -22
  20. package/dist/{errorContent-CnY-Deoi.js → errorContent-Cb8nmQAE.js} +14 -13
  21. package/dist/{errorIcon-DOuc6ONw.js → errorIcon-DEARBrGx.js} +1 -1
  22. package/dist/extensibility.es.js +47 -45
  23. package/dist/{faceMatch-DPa3pI88.js → faceMatch-DbDp7D3d.js} +17 -16
  24. package/dist/{fileIcon-DEli4GR_.js → fileIcon-CCSvS10T.js} +1 -1
  25. package/dist/{flipAnimation-r4wJkacO.js → flipAnimation-BqV462TA.js} +34 -33
  26. package/dist/flow/flow.es.js +126 -121
  27. package/dist/{formField-BoozuV2w.js → formField-CP6wDdfA.js} +29 -28
  28. package/dist/geolocation/geolocation.es.js +28 -27
  29. package/dist/governmentValidation/governmentValidation.es.js +8 -8
  30. package/dist/id/id.es.js +12 -11
  31. package/dist/index.es.js +16 -15
  32. package/dist/{inputComposed-QzDneavl.js → inputComposed-fUbAGrDy.js} +4 -4
  33. package/dist/{uiConfig-DmIn-g8M.js → instance-BWYzq8dk.js} +218 -238
  34. package/dist/loadingIcon-DmuPXh70.js +195 -0
  35. package/dist/mandatoryConsent-5xPI0cor.js +94 -0
  36. package/dist/{manualCaptureButton-CPZ2xxEI.js → manualCaptureButton-BvFmTyJe.js} +21 -20
  37. package/dist/{numberedStep-DiiXAKRd.js → numberedStep-DwUB__mh.js} +1 -1
  38. package/dist/{otpInput-CMi5-n2O.js → otpInput-BFXhqFRT.js} +20 -19
  39. package/dist/{page-D4OThpFS.js → page-SrUl0qtN.js} +16 -15
  40. package/dist/{permissions-BeU3HuVB.js → permissions-DT4Fz9MR.js} +14 -13
  41. package/dist/phone/phone.es.js +12 -11
  42. package/dist/{phoneInput-nmmFFaXI.js → phoneInput-CGr8TxOO.js} +2 -2
  43. package/dist/{phoneInputComposed-BAFZQ4Y8.js → phoneInputComposed-Cm9O2Jba.js} +5 -5
  44. package/dist/{processing-Ss26Ad0W.js → processing-szVOCQwZ.js} +3 -3
  45. package/dist/{richText-Bxe6Ywla.js → richText-cspvNz2a.js} +1 -1
  46. package/dist/selfie/selfie.es.js +4 -4
  47. package/dist/signature/signature.es.js +10 -9
  48. package/dist/{spinner-CLwSl2tJ.js → spinner-DygONskw.js} +2 -2
  49. package/dist/{successIcon-BZphSsQr.js → successIcon-Bjsdc4lF.js} +1 -1
  50. package/dist/{tutorial-BcX5EaL9.js → tutorial-Cdz1025D.js} +19 -18
  51. package/dist/types/antifraud.d.ts +35 -0
  52. package/dist/{typography-CBPoLoAP.js → typography-BDACYR5i.js} +1 -1
  53. package/dist/uiConfig-Dnt-2YWB.js +23 -0
  54. package/dist/{warningIcon-xqaHPxjF.js → warningIcon-DQq_MrOB.js} +1 -1
  55. package/package.json +9 -2
  56. package/dist/button-DXIWeie9.js +0 -373
  57. package/dist/mandatoryConsent-fZUmh40x.js +0 -93
@@ -1,22 +1,22 @@
1
- import { ScreenOrientationProvider as et, createScreenOrientationObserver as tt, getDeviceClass as nt } from "@incodetech/core";
2
- import { d as it, y as st, c as rt, C as ot } from "./vendor-preact-BoMmvSgn.js";
1
+ import { ScreenOrientationProvider as Ye, createScreenOrientationObserver as Ze, getDeviceClass as et } from "@incodetech/core";
2
+ import { d as tt, y as nt, c as it } from "./vendor-preact-BoMmvSgn.js";
3
3
  let ne = null;
4
- function at() {
4
+ function st() {
5
5
  if (!ne) {
6
- const s = new et();
7
- ne = tt(
6
+ const s = new Ye();
7
+ ne = Ze(
8
8
  s,
9
- nt()
9
+ et()
10
10
  );
11
11
  }
12
12
  return ne;
13
13
  }
14
- function fn() {
15
- const [s, e] = it(!1);
16
- return st(() => {
17
- const t = at();
14
+ function rn() {
15
+ const [s, e] = tt(!1);
16
+ return nt(() => {
17
+ const t = st();
18
18
  return e(t.isLandscapeMobile), t.subscribe((i) => {
19
- rt(() => e(i));
19
+ it(() => e(i));
20
20
  });
21
21
  }, []), { isLandscapeMobile: s };
22
22
  }
@@ -26,23 +26,23 @@ const g = (s) => typeof s == "string", q = () => {
26
26
  s = n, e = i;
27
27
  });
28
28
  return t.resolve = s, t.reject = e, t;
29
- }, ge = (s) => s == null ? "" : "" + s, lt = (s, e, t) => {
29
+ }, pe = (s) => s == null ? "" : "" + s, rt = (s, e, t) => {
30
30
  s.forEach((n) => {
31
31
  e[n] && (t[n] = e[n]);
32
32
  });
33
- }, ut = /###/g, me = (s) => s && s.indexOf("###") > -1 ? s.replace(ut, ".") : s, ye = (s) => !s || g(s), _ = (s, e, t) => {
33
+ }, ot = /###/g, ge = (s) => s && s.indexOf("###") > -1 ? s.replace(ot, ".") : s, me = (s) => !s || g(s), _ = (s, e, t) => {
34
34
  const n = g(e) ? e.split(".") : e;
35
35
  let i = 0;
36
36
  for (; i < n.length - 1; ) {
37
- if (ye(s)) return {};
38
- const r = me(n[i]);
37
+ if (me(s)) return {};
38
+ const r = ge(n[i]);
39
39
  !s[r] && t && (s[r] = new t()), Object.prototype.hasOwnProperty.call(s, r) ? s = s[r] : s = {}, ++i;
40
40
  }
41
- return ye(s) ? {} : {
41
+ return me(s) ? {} : {
42
42
  obj: s,
43
- k: me(n[i])
43
+ k: ge(n[i])
44
44
  };
45
- }, be = (s, e, t) => {
45
+ }, ye = (s, e, t) => {
46
46
  const {
47
47
  obj: n,
48
48
  k: i
@@ -55,7 +55,7 @@ const g = (s) => typeof s == "string", q = () => {
55
55
  for (; a.obj === void 0 && o.length; )
56
56
  r = `${o[o.length - 1]}.${r}`, o = o.slice(0, o.length - 1), a = _(s, o, Object), a?.obj && typeof a.obj[`${a.k}.${r}`] < "u" && (a.obj = void 0);
57
57
  a.obj[`${a.k}.${r}`] = t;
58
- }, ft = (s, e, t, n) => {
58
+ }, at = (s, e, t, n) => {
59
59
  const {
60
60
  obj: i,
61
61
  k: r
@@ -68,7 +68,7 @@ const g = (s) => typeof s == "string", q = () => {
68
68
  } = _(s, e);
69
69
  if (t && Object.prototype.hasOwnProperty.call(t, n))
70
70
  return t[n];
71
- }, ct = (s, e, t) => {
71
+ }, lt = (s, e, t) => {
72
72
  const n = G(s, t);
73
73
  return n !== void 0 ? n : G(e, t);
74
74
  }, He = (s, e, t) => {
@@ -76,7 +76,7 @@ const g = (s) => typeof s == "string", q = () => {
76
76
  n !== "__proto__" && n !== "constructor" && (n in s ? g(s[n]) || s[n] instanceof String || g(e[n]) || e[n] instanceof String ? t && (s[n] = e[n]) : He(s[n], e[n], t) : s[n] = e[n]);
77
77
  return s;
78
78
  }, A = (s) => s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
79
- var dt = {
79
+ var ut = {
80
80
  "&": "&amp;",
81
81
  "<": "&lt;",
82
82
  ">": "&gt;",
@@ -84,8 +84,8 @@ var dt = {
84
84
  "'": "&#39;",
85
85
  "/": "&#x2F;"
86
86
  };
87
- const ht = (s) => g(s) ? s.replace(/[&<>"'\/]/g, (e) => dt[e]) : s;
88
- class pt {
87
+ const ft = (s) => g(s) ? s.replace(/[&<>"'\/]/g, (e) => ut[e]) : s;
88
+ class ct {
89
89
  constructor(e) {
90
90
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
91
91
  }
@@ -97,11 +97,11 @@ class pt {
97
97
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, n), this.regExpQueue.push(e), n;
98
98
  }
99
99
  }
100
- const gt = [" ", ",", "?", "!", ";"], mt = new pt(20), yt = (s, e, t) => {
100
+ const dt = [" ", ",", "?", "!", ";"], ht = new ct(20), pt = (s, e, t) => {
101
101
  e = e || "", t = t || "";
102
- const n = gt.filter((o) => e.indexOf(o) < 0 && t.indexOf(o) < 0);
102
+ const n = dt.filter((o) => e.indexOf(o) < 0 && t.indexOf(o) < 0);
103
103
  if (n.length === 0) return !0;
104
- const i = mt.getRegExp(`(${n.map((o) => o === "?" ? "\\?" : o).join("|")})`);
104
+ const i = ht.getRegExp(`(${n.map((o) => o === "?" ? "\\?" : o).join("|")})`);
105
105
  let r = !i.test(s);
106
106
  if (!r) {
107
107
  const o = s.indexOf(t);
@@ -128,7 +128,7 @@ const gt = [" ", ",", "?", "!", ";"], mt = new pt(20), yt = (s, e, t) => {
128
128
  i = o;
129
129
  }
130
130
  return i;
131
- }, B = (s) => s?.replace("_", "-"), bt = {
131
+ }, B = (s) => s?.replace("_", "-"), gt = {
132
132
  type: "logger",
133
133
  log(s) {
134
134
  this.output("log", s);
@@ -148,7 +148,7 @@ class Y {
148
148
  this.init(e, t);
149
149
  }
150
150
  init(e, t = {}) {
151
- this.prefix = t.prefix || "i18next:", this.logger = e || bt, this.options = t, this.debug = t.debug;
151
+ this.prefix = t.prefix || "i18next:", this.logger = e || gt, this.options = t, this.debug = t.debug;
152
152
  }
153
153
  log(...e) {
154
154
  return this.forward(e, "log", "", !0);
@@ -206,7 +206,7 @@ class te {
206
206
  });
207
207
  }
208
208
  }
209
- class xe extends te {
209
+ class be extends te {
210
210
  constructor(e, t = {
211
211
  ns: ["translation"],
212
212
  defaultNS: "translation"
@@ -232,7 +232,7 @@ class xe extends te {
232
232
  }) {
233
233
  const o = r.keySeparator !== void 0 ? r.keySeparator : this.options.keySeparator;
234
234
  let a = [e, t];
235
- n && (a = a.concat(o ? n.split(o) : n)), e.indexOf(".") > -1 && (a = e.split("."), i = t, t = a[1]), this.addNamespaces(t), be(this.data, a, i), r.silent || this.emit("added", e, t, n, i);
235
+ n && (a = a.concat(o ? n.split(o) : n)), e.indexOf(".") > -1 && (a = e.split("."), i = t, t = a[1]), this.addNamespaces(t), ye(this.data, a, i), r.silent || this.emit("added", e, t, n, i);
236
236
  }
237
237
  addResources(e, t, n, i = {
238
238
  silent: !1
@@ -253,7 +253,7 @@ class xe extends te {
253
253
  o.skipCopy || (n = JSON.parse(JSON.stringify(n))), i ? He(l, n, r) : l = {
254
254
  ...l,
255
255
  ...n
256
- }, be(this.data, a, l), o.silent || this.emit("added", e, t, n);
256
+ }, ye(this.data, a, l), o.silent || this.emit("added", e, t, n);
257
257
  }
258
258
  removeResourceBundle(e, t) {
259
259
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -286,22 +286,22 @@ var Ke = {
286
286
  }), e;
287
287
  }
288
288
  };
289
- const Me = Symbol("i18next/PATH_KEY");
290
- function xt() {
289
+ const Ue = Symbol("i18next/PATH_KEY");
290
+ function mt() {
291
291
  const s = [], e = /* @__PURE__ */ Object.create(null);
292
292
  let t;
293
- return e.get = (n, i) => (t?.revoke?.(), i === Me ? s : (s.push(i), t = Proxy.revocable(n, e), t.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
293
+ return e.get = (n, i) => (t?.revoke?.(), i === Ue ? s : (s.push(i), t = Proxy.revocable(n, e), t.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
294
294
  }
295
295
  function ae(s, e) {
296
296
  const {
297
- [Me]: t
298
- } = s(xt());
297
+ [Ue]: t
298
+ } = s(mt());
299
299
  return t.join(e?.keySeparator ?? ".");
300
300
  }
301
- const ve = {}, ie = (s) => !g(s) && typeof s != "boolean" && typeof s != "number";
301
+ const xe = {}, ie = (s) => !g(s) && typeof s != "boolean" && typeof s != "number";
302
302
  class Z extends te {
303
303
  constructor(e, t = {}) {
304
- super(), lt(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = C.create("translator");
304
+ super(), rt(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = C.create("translator");
305
305
  }
306
306
  changeLanguage(e) {
307
307
  e && (this.language = e);
@@ -323,7 +323,7 @@ class Z extends te {
323
323
  n === void 0 && (n = ":");
324
324
  const i = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
325
325
  let r = t.ns || this.options.defaultNS || [];
326
- const o = n && e.indexOf(n) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !yt(e, n, i);
326
+ const o = n && e.indexOf(n) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !pt(e, n, i);
327
327
  if (o && !a) {
328
328
  const l = e.match(this.interpolator.nestingRegexp);
329
329
  if (l && l.length > 0)
@@ -377,11 +377,11 @@ class Z extends te {
377
377
  let h = d?.res;
378
378
  const m = d?.usedKey || a, y = d?.exactUsedKey || a, O = ["[object Number]", "[object Function]", "[object RegExp]"], b = i.joinArrays !== void 0 ? i.joinArrays : this.options.joinArrays, N = !this.i18nFormat || this.i18nFormat.handleAsObject, S = i.count !== void 0 && !g(i.count), j = Z.hasDefaultValue(i), T = S ? this.pluralResolver.getSuffix(f, i.count, i) : "", D = i.ordinal && S ? this.pluralResolver.getSuffix(f, i.count, {
379
379
  ordinal: !1
380
- }) : "", ce = S && !i.ordinal && i.count === 0, $ = ce && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${T}`] || i[`defaultValue${D}`] || i.defaultValue;
380
+ }) : "", fe = S && !i.ordinal && i.count === 0, $ = fe && i[`defaultValue${this.options.pluralSeparator}zero`] || i[`defaultValue${T}`] || i[`defaultValue${D}`] || i.defaultValue;
381
381
  let L = h;
382
382
  N && !h && j && (L = $);
383
- const Ye = ie(L), Ze = Object.prototype.toString.apply(L);
384
- if (N && L && Ye && O.indexOf(Ze) < 0 && !(g(b) && Array.isArray(L))) {
383
+ const Qe = ie(L), Ge = Object.prototype.toString.apply(L);
384
+ if (N && L && Qe && O.indexOf(Ge) < 0 && !(g(b) && Array.isArray(L))) {
385
385
  if (!i.returnObjects && !this.options.returnObjects) {
386
386
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
387
387
  const P = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(m, L, {
@@ -391,10 +391,10 @@ class Z extends te {
391
391
  return r ? (d.res = P, d.usedParams = this.getUsedParamsDetails(i), d) : P;
392
392
  }
393
393
  if (o) {
394
- const P = Array.isArray(L), w = P ? [] : {}, de = P ? y : m;
394
+ const P = Array.isArray(L), w = P ? [] : {}, ce = P ? y : m;
395
395
  for (const k in L)
396
396
  if (Object.prototype.hasOwnProperty.call(L, k)) {
397
- const R = `${de}${o}${k}`;
397
+ const R = `${ce}${o}${k}`;
398
398
  j && !h ? w[k] = this.translate(R, {
399
399
  ...i,
400
400
  defaultValue: ie($) ? $[k] : void 0,
@@ -428,16 +428,16 @@ class Z extends te {
428
428
  for (let v = 0; v < J.length; v++)
429
429
  M.push(J[v]);
430
430
  else this.options.saveMissingTo === "all" ? M = this.languageUtils.toResolveHierarchy(i.lng || this.language) : M.push(i.lng || this.language);
431
- const he = (v, F, V) => {
432
- const pe = j && V !== h ? V : k;
433
- this.options.missingKeyHandler ? this.options.missingKeyHandler(v, u, F, pe, R, i) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(v, u, F, pe, R, i), this.emit("missingKey", v, u, F, h);
431
+ const de = (v, F, V) => {
432
+ const he = j && V !== h ? V : k;
433
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(v, u, F, he, R, i) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(v, u, F, he, R, i), this.emit("missingKey", v, u, F, h);
434
434
  };
435
435
  this.options.saveMissing && (this.options.saveMissingPlurals && S ? M.forEach((v) => {
436
436
  const F = this.pluralResolver.getSuffixes(v, i);
437
- ce && i[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((V) => {
438
- he([v], a + V, i[`defaultValue${V}`] || $);
437
+ fe && i[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((V) => {
438
+ de([v], a + V, i[`defaultValue${V}`] || $);
439
439
  });
440
- }) : he(M, a, $));
440
+ }) : de(M, a, $));
441
441
  }
442
442
  h = this.extendTranslation(h, e, i, d, n), w && h === a && this.options.appendNamespaceToMissingKey && (h = `${u}${c}${a}`), (w || P) && this.options.parseMissingKeyHandler && (h = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}${c}${a}` : a, P ? h : void 0, i));
443
443
  }
@@ -494,7 +494,7 @@ class Z extends te {
494
494
  this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
495
495
  const p = t.count !== void 0 && !g(t.count), d = p && !t.ordinal && t.count === 0, h = t.context !== void 0 && (g(t.context) || typeof t.context == "number") && t.context !== "", m = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
496
496
  f.forEach((y) => {
497
- this.isValidLookup(n) || (a = y, !ve[`${m[0]}-${y}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(a) && (ve[`${m[0]}-${y}`] = !0, this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${a}" 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!!!")), m.forEach((O) => {
497
+ this.isValidLookup(n) || (a = y, !xe[`${m[0]}-${y}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(a) && (xe[`${m[0]}-${y}`] = !0, this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${a}" 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!!!")), m.forEach((O) => {
498
498
  if (this.isValidLookup(n)) return;
499
499
  o = O;
500
500
  const b = [c];
@@ -551,7 +551,7 @@ class Z extends te {
551
551
  return !1;
552
552
  }
553
553
  }
554
- class Se {
554
+ class ve {
555
555
  constructor(e) {
556
556
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = C.create("languageUtils");
557
557
  }
@@ -615,20 +615,20 @@ class Se {
615
615
  }), i;
616
616
  }
617
617
  }
618
- const Oe = {
618
+ const Se = {
619
619
  zero: 0,
620
620
  one: 1,
621
621
  two: 2,
622
622
  few: 3,
623
623
  many: 4,
624
624
  other: 5
625
- }, we = {
625
+ }, Oe = {
626
626
  select: (s) => s === 1 ? "one" : "other",
627
627
  resolvedOptions: () => ({
628
628
  pluralCategories: ["one", "other"]
629
629
  })
630
630
  };
631
- class vt {
631
+ class yt {
632
632
  constructor(e, t = {}) {
633
633
  this.languageUtils = e, this.options = t, this.logger = C.create("pluralResolver"), this.pluralRulesCache = {};
634
634
  }
@@ -652,8 +652,8 @@ class vt {
652
652
  });
653
653
  } catch {
654
654
  if (!Intl)
655
- return this.logger.error("No Intl support, please use an Intl polyfill!"), we;
656
- if (!e.match(/-|_/)) return we;
655
+ return this.logger.error("No Intl support, please use an Intl polyfill!"), Oe;
656
+ if (!e.match(/-|_/)) return Oe;
657
657
  const l = this.languageUtils.getLanguagePartFromCode(e);
658
658
  o = this.getRule(l, t);
659
659
  }
@@ -668,18 +668,18 @@ class vt {
668
668
  }
669
669
  getSuffixes(e, t = {}) {
670
670
  let n = this.getRule(e, t);
671
- return n || (n = this.getRule("dev", t)), n ? n.resolvedOptions().pluralCategories.sort((i, r) => Oe[i] - Oe[r]).map((i) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : [];
671
+ return n || (n = this.getRule("dev", t)), n ? n.resolvedOptions().pluralCategories.sort((i, r) => Se[i] - Se[r]).map((i) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${i}`) : [];
672
672
  }
673
673
  getSuffix(e, t, n = {}) {
674
674
  const i = this.getRule(e, n);
675
675
  return i ? `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${i.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, n));
676
676
  }
677
677
  }
678
- const Le = (s, e, t, n = ".", i = !0) => {
679
- let r = ct(s, e, t);
678
+ const we = (s, e, t, n = ".", i = !0) => {
679
+ let r = lt(s, e, t);
680
680
  return !r && i && g(t) && (r = oe(s, t, n), r === void 0 && (r = oe(e, t, n))), r;
681
681
  }, se = (s) => s.replace(/\$/g, "$$$$");
682
- class Pe {
682
+ class Le {
683
683
  constructor(e = {}) {
684
684
  this.logger = C.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((t) => t), this.init(e);
685
685
  }
@@ -706,7 +706,7 @@ class Pe {
706
706
  maxReplaces: O,
707
707
  alwaysFormat: b
708
708
  } = e.interpolation;
709
- this.escape = t !== void 0 ? t : ht, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = r ? A(r) : o || "{{", this.suffix = a ? A(a) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = c ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = p ? A(p) : d || A("$t("), this.nestingSuffix = h ? A(h) : m || A(")"), this.nestingOptionsSeparator = y || ",", this.maxReplaces = O || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
709
+ this.escape = t !== void 0 ? t : ft, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = i !== void 0 ? i : !1, this.prefix = r ? A(r) : o || "{{", this.suffix = a ? A(a) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = c ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : c || "", this.nestingPrefix = p ? A(p) : d || A("$t("), this.nestingSuffix = h ? A(h) : m || A(")"), this.nestingOptionsSeparator = y || ",", this.maxReplaces = O || 1e3, this.alwaysFormat = b !== void 0 ? b : !1, this.resetRegExp();
710
710
  }
711
711
  reset() {
712
712
  this.options && this.init(this.options);
@@ -719,7 +719,7 @@ class Pe {
719
719
  let r, o, a;
720
720
  const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, u = (d) => {
721
721
  if (d.indexOf(this.formatSeparator) < 0) {
722
- const O = Le(t, l, d, this.options.keySeparator, this.options.ignoreJSONStructure);
722
+ const O = we(t, l, d, this.options.keySeparator, this.options.ignoreJSONStructure);
723
723
  return this.alwaysFormat ? this.format(O, void 0, n, {
724
724
  ...i,
725
725
  ...t,
@@ -727,7 +727,7 @@ class Pe {
727
727
  }) : O;
728
728
  }
729
729
  const h = d.split(this.formatSeparator), m = h.shift().trim(), y = h.join(this.formatSeparator).trim();
730
- return this.format(Le(t, l, m, this.options.keySeparator, this.options.ignoreJSONStructure), y, n, {
730
+ return this.format(we(t, l, m, this.options.keySeparator, this.options.ignoreJSONStructure), y, n, {
731
731
  ...i,
732
732
  ...t,
733
733
  interpolationkey: m
@@ -755,7 +755,7 @@ class Pe {
755
755
  continue;
756
756
  } else
757
757
  this.logger.warn(`missed to pass in variable ${h} for interpolating ${e}`), o = "";
758
- else !g(o) && !this.useRawValueToEscape && (o = ge(o));
758
+ else !g(o) && !this.useRawValueToEscape && (o = pe(o));
759
759
  const m = d.safeValue(o);
760
760
  if (e = e.replace(r[0], m), f ? (d.regex.lastIndex += o.length, d.regex.lastIndex -= r[0].length) : d.regex.lastIndex = 0, a++, a >= this.maxReplaces)
761
761
  break;
@@ -789,7 +789,7 @@ class Pe {
789
789
  }, o = o.replace && !g(o.replace) ? o.replace : o, o.applyPostProcessor = !1, delete o.defaultValue;
790
790
  const u = /{.*}/.test(i[1]) ? i[1].lastIndexOf("}") + 1 : i[1].indexOf(this.formatSeparator);
791
791
  if (u !== -1 && (l = i[1].slice(u).split(this.formatSeparator).map((c) => c.trim()).filter(Boolean), i[1] = i[1].slice(0, u)), r = t(a.call(this, i[1].trim(), o), o), r && i[0] === e && !g(r)) return r;
792
- g(r) || (r = ge(r)), r || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), r = ""), l.length && (r = l.reduce((c, f) => this.format(c, f, n.lng, {
792
+ g(r) || (r = pe(r)), r || (this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`), r = ""), l.length && (r = l.reduce((c, f) => this.format(c, f, n.lng, {
793
793
  ...n,
794
794
  interpolationkey: i[1].trim()
795
795
  }), r.trim())), e = e.replace(i[0], r), this.regexp.lastIndex = 0;
@@ -797,7 +797,7 @@ class Pe {
797
797
  return e;
798
798
  }
799
799
  }
800
- const St = (s) => {
800
+ const bt = (s) => {
801
801
  let e = s.toLowerCase().trim();
802
802
  const t = {};
803
803
  if (s.indexOf("(") > -1) {
@@ -815,7 +815,7 @@ const St = (s) => {
815
815
  formatName: e,
816
816
  formatOptions: t
817
817
  };
818
- }, ke = (s) => {
818
+ }, Pe = (s) => {
819
819
  const e = {};
820
820
  return (t, n, i) => {
821
821
  let r = i;
@@ -827,8 +827,8 @@ const St = (s) => {
827
827
  let a = e[o];
828
828
  return a || (a = s(B(n), i), e[o] = a), a(t);
829
829
  };
830
- }, Ot = (s) => (e, t, n) => s(B(t), n)(e);
831
- class wt {
830
+ }, xt = (s) => (e, t, n) => s(B(t), n)(e);
831
+ class vt {
832
832
  constructor(e = {}) {
833
833
  this.logger = C.create("formatter"), this.options = e, this.init(e);
834
834
  }
@@ -836,7 +836,7 @@ class wt {
836
836
  interpolation: {}
837
837
  }) {
838
838
  this.formatSeparator = t.interpolation.formatSeparator || ",";
839
- const n = t.cacheInBuiltFormats ? ke : Ot;
839
+ const n = t.cacheInBuiltFormats ? Pe : xt;
840
840
  this.formats = {
841
841
  number: n((i, r) => {
842
842
  const o = new Intl.NumberFormat(i, {
@@ -875,7 +875,7 @@ class wt {
875
875
  this.formats[e.toLowerCase().trim()] = t;
876
876
  }
877
877
  addCached(e, t) {
878
- this.formats[e.toLowerCase().trim()] = ke(t);
878
+ this.formats[e.toLowerCase().trim()] = Pe(t);
879
879
  }
880
880
  format(e, t, n, i = {}) {
881
881
  const r = t.split(this.formatSeparator);
@@ -887,7 +887,7 @@ class wt {
887
887
  const {
888
888
  formatName: u,
889
889
  formatOptions: c
890
- } = St(l);
890
+ } = bt(l);
891
891
  if (this.formats[u]) {
892
892
  let f = a;
893
893
  try {
@@ -907,10 +907,10 @@ class wt {
907
907
  }, e);
908
908
  }
909
909
  }
910
- const Lt = (s, e) => {
910
+ const St = (s, e) => {
911
911
  s.pending[e] !== void 0 && (delete s.pending[e], s.pendingCount--);
912
912
  };
913
- class Pt extends te {
913
+ class Ot extends te {
914
914
  constructor(e, t, n, i = {}) {
915
915
  super(), this.backend = e, this.store = t, this.services = n, this.languageUtils = n.languageUtils, this.options = i, this.logger = C.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = i.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = i.maxRetries >= 0 ? i.maxRetries : 5, this.retryTimeout = i.retryTimeout >= 1 ? i.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, i.backend, i);
916
916
  }
@@ -942,7 +942,7 @@ class Pt extends te {
942
942
  }), this.state[e] = t ? -1 : 2, t && n && (this.state[e] = 0);
943
943
  const a = {};
944
944
  this.queue.forEach((l) => {
945
- ft(l.loaded, [r], o), Lt(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
945
+ at(l.loaded, [r], o), St(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
946
946
  a[u] || (a[u] = {});
947
947
  const c = l.loaded[u];
948
948
  c.length && c.forEach((f) => {
@@ -1040,7 +1040,7 @@ class Pt extends te {
1040
1040
  }
1041
1041
  }
1042
1042
  }
1043
- const Ce = () => ({
1043
+ const ke = () => ({
1044
1044
  debug: !1,
1045
1045
  initAsync: !0,
1046
1046
  ns: ["translation"],
@@ -1097,17 +1097,17 @@ const Ce = () => ({
1097
1097
  skipOnVariables: !0
1098
1098
  },
1099
1099
  cacheInBuiltFormats: !0
1100
- }), Re = (s) => (g(s.ns) && (s.ns = [s.ns]), g(s.fallbackLng) && (s.fallbackLng = [s.fallbackLng]), g(s.fallbackNS) && (s.fallbackNS = [s.fallbackNS]), s.supportedLngs?.indexOf?.("cimode") < 0 && (s.supportedLngs = s.supportedLngs.concat(["cimode"])), typeof s.initImmediate == "boolean" && (s.initAsync = s.initImmediate), s), W = () => {
1101
- }, kt = (s) => {
1100
+ }), Ce = (s) => (g(s.ns) && (s.ns = [s.ns]), g(s.fallbackLng) && (s.fallbackLng = [s.fallbackLng]), g(s.fallbackNS) && (s.fallbackNS = [s.fallbackNS]), s.supportedLngs?.indexOf?.("cimode") < 0 && (s.supportedLngs = s.supportedLngs.concat(["cimode"])), typeof s.initImmediate == "boolean" && (s.initAsync = s.initImmediate), s), W = () => {
1101
+ }, wt = (s) => {
1102
1102
  Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach((t) => {
1103
1103
  typeof s[t] == "function" && (s[t] = s[t].bind(s));
1104
1104
  });
1105
1105
  };
1106
1106
  class z extends te {
1107
1107
  constructor(e = {}, t) {
1108
- if (super(), this.options = Re(e), this.services = {}, this.logger = C, this.modules = {
1108
+ if (super(), this.options = Ce(e), this.services = {}, this.logger = C, this.modules = {
1109
1109
  external: []
1110
- }, kt(this), t && !this.isInitialized && !e.isClone) {
1110
+ }, wt(this), t && !this.isInitialized && !e.isClone) {
1111
1111
  if (!this.options.initAsync)
1112
1112
  return this.init(e, t), this;
1113
1113
  setTimeout(() => {
@@ -1117,11 +1117,11 @@ class z extends te {
1117
1117
  }
1118
1118
  init(e = {}, t) {
1119
1119
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (g(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
1120
- const n = Ce();
1120
+ const n = ke();
1121
1121
  this.options = {
1122
1122
  ...n,
1123
1123
  ...this.options,
1124
- ...Re(e)
1124
+ ...Ce(e)
1125
1125
  }, this.options.interpolation = {
1126
1126
  ...n.interpolation,
1127
1127
  ...this.options.interpolation
@@ -1130,16 +1130,16 @@ class z extends te {
1130
1130
  if (!this.options.isClone) {
1131
1131
  this.modules.logger ? C.init(i(this.modules.logger), this.options) : C.init(null, this.options);
1132
1132
  let u;
1133
- this.modules.formatter ? u = this.modules.formatter : u = wt;
1134
- const c = new Se(this.options);
1135
- this.store = new xe(this.options.resources, this.options);
1133
+ this.modules.formatter ? u = this.modules.formatter : u = vt;
1134
+ const c = new ve(this.options);
1135
+ this.store = new be(this.options.resources, this.options);
1136
1136
  const f = this.services;
1137
- f.logger = C, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new vt(c, {
1137
+ f.logger = C, f.resourceStore = this.store, f.languageUtils = c, f.pluralResolver = new yt(c, {
1138
1138
  prepend: this.options.pluralSeparator,
1139
1139
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1140
- }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), u && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = i(u), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new Pe(this.options), f.utils = {
1140
+ }), this.options.interpolation.format && this.options.interpolation.format !== n.interpolation.format && this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"), u && (!this.options.interpolation.format || this.options.interpolation.format === n.interpolation.format) && (f.formatter = i(u), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new Le(this.options), f.utils = {
1141
1141
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1142
- }, f.backendConnector = new Pt(i(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (d, ...h) => {
1142
+ }, f.backendConnector = new Ot(i(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (d, ...h) => {
1143
1143
  this.emit(d, ...h);
1144
1144
  }), this.modules.languageDetector && (f.languageDetector = i(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = i(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new Z(this.services, this.options), this.translator.on("*", (d, ...h) => {
1145
1145
  this.emit(d, ...h);
@@ -1292,7 +1292,7 @@ class z extends te {
1292
1292
  }
1293
1293
  } catch {
1294
1294
  }
1295
- const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = this.services?.languageUtils || new Se(Ce());
1295
+ const t = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], n = this.services?.languageUtils || new ve(ke());
1296
1296
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(n.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1297
1297
  }
1298
1298
  static createInstance(e = {}, t) {
@@ -1319,9 +1319,9 @@ class z extends te {
1319
1319
  }, l[u] = Object.keys(l[u]).reduce((c, f) => (c[f] = {
1320
1320
  ...l[u][f]
1321
1321
  }, c), l[u]), l), {});
1322
- r.store = new xe(a, i), r.services.resourceStore = r.store;
1322
+ r.store = new be(a, i), r.services.resourceStore = r.store;
1323
1323
  }
1324
- return e.interpolation && (r.services.interpolator = new Pe(i)), r.translator = new Z(r.services, i), r.translator.on("*", (a, ...l) => {
1324
+ return e.interpolation && (r.services.interpolator = new Le(i)), r.translator = new Z(r.services, i), r.translator.on("*", (a, ...l) => {
1325
1325
  r.emit(a, ...l);
1326
1326
  }), r.init(i, t), r.translator.options = i, r.translator.backendConnector.services.utils = {
1327
1327
  hasLoadedNamespace: r.hasLoadedNamespace.bind(r)
@@ -1353,20 +1353,20 @@ x.hasLoadedNamespace;
1353
1353
  x.loadNamespaces;
1354
1354
  x.loadLanguages;
1355
1355
  const {
1356
- slice: Ct,
1357
- forEach: Rt
1356
+ slice: Lt,
1357
+ forEach: Pt
1358
1358
  } = [];
1359
- function jt(s) {
1360
- return Rt.call(Ct.call(arguments, 1), (e) => {
1359
+ function kt(s) {
1360
+ return Pt.call(Lt.call(arguments, 1), (e) => {
1361
1361
  if (e)
1362
1362
  for (const t in e)
1363
1363
  s[t] === void 0 && (s[t] = e[t]);
1364
1364
  }), s;
1365
1365
  }
1366
- function $t(s) {
1366
+ function Ct(s) {
1367
1367
  return typeof s != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((t) => t.test(s));
1368
1368
  }
1369
- const je = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Et = function(s, e) {
1369
+ const Re = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Rt = function(s, e) {
1370
1370
  const n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
1371
1371
  path: "/"
1372
1372
  }, i = encodeURIComponent(e);
@@ -1377,12 +1377,12 @@ const je = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Et = function(s, e) {
1377
1377
  r += `; Max-Age=${Math.floor(o)}`;
1378
1378
  }
1379
1379
  if (n.domain) {
1380
- if (!je.test(n.domain))
1380
+ if (!Re.test(n.domain))
1381
1381
  throw new TypeError("option domain is invalid");
1382
1382
  r += `; Domain=${n.domain}`;
1383
1383
  }
1384
1384
  if (n.path) {
1385
- if (!je.test(n.path))
1385
+ if (!Re.test(n.path))
1386
1386
  throw new TypeError("option path is invalid");
1387
1387
  r += `; Path=${n.path}`;
1388
1388
  }
@@ -1409,13 +1409,13 @@ const je = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Et = function(s, e) {
1409
1409
  throw new TypeError("option sameSite is invalid");
1410
1410
  }
1411
1411
  return n.partitioned && (r += "; Partitioned"), r;
1412
- }, $e = {
1412
+ }, je = {
1413
1413
  create(s, e, t, n) {
1414
1414
  let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
1415
1415
  path: "/",
1416
1416
  sameSite: "strict"
1417
1417
  };
1418
- t && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + t * 60 * 1e3)), n && (i.domain = n), document.cookie = Et(s, e, i);
1418
+ t && (i.expires = /* @__PURE__ */ new Date(), i.expires.setTime(i.expires.getTime() + t * 60 * 1e3)), n && (i.domain = n), document.cookie = Rt(s, e, i);
1419
1419
  },
1420
1420
  read(s) {
1421
1421
  const e = `${s}=`, t = document.cookie.split(";");
@@ -1430,7 +1430,7 @@ const je = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Et = function(s, e) {
1430
1430
  this.create(s, "", -1, e);
1431
1431
  }
1432
1432
  };
1433
- var Nt = {
1433
+ var jt = {
1434
1434
  name: "cookie",
1435
1435
  // Deconstruct the options object and extract the lookupCookie property
1436
1436
  lookup(s) {
@@ -1438,7 +1438,7 @@ var Nt = {
1438
1438
  lookupCookie: e
1439
1439
  } = s;
1440
1440
  if (e && typeof document < "u")
1441
- return $e.read(e) || void 0;
1441
+ return je.read(e) || void 0;
1442
1442
  },
1443
1443
  // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
1444
1444
  cacheUserLanguage(s, e) {
@@ -1448,9 +1448,9 @@ var Nt = {
1448
1448
  cookieDomain: i,
1449
1449
  cookieOptions: r
1450
1450
  } = e;
1451
- t && typeof document < "u" && $e.create(t, s, n, i, r);
1451
+ t && typeof document < "u" && je.create(t, s, n, i, r);
1452
1452
  }
1453
- }, Ft = {
1453
+ }, $t = {
1454
1454
  name: "querystring",
1455
1455
  // Deconstruct the options object and extract the lookupQuerystring property
1456
1456
  lookup(s) {
@@ -1470,7 +1470,7 @@ var Nt = {
1470
1470
  }
1471
1471
  return t;
1472
1472
  }
1473
- }, It = {
1473
+ }, Et = {
1474
1474
  name: "hash",
1475
1475
  // Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
1476
1476
  lookup(s) {
@@ -1501,27 +1501,27 @@ var Nt = {
1501
1501
  return n;
1502
1502
  }
1503
1503
  };
1504
- let U = null;
1505
- const Ee = () => {
1506
- if (U !== null) return U;
1504
+ let H = null;
1505
+ const $e = () => {
1506
+ if (H !== null) return H;
1507
1507
  try {
1508
- if (U = typeof window < "u" && window.localStorage !== null, !U)
1508
+ if (H = typeof window < "u" && window.localStorage !== null, !H)
1509
1509
  return !1;
1510
1510
  const s = "i18next.translate.boo";
1511
1511
  window.localStorage.setItem(s, "foo"), window.localStorage.removeItem(s);
1512
1512
  } catch {
1513
- U = !1;
1513
+ H = !1;
1514
1514
  }
1515
- return U;
1515
+ return H;
1516
1516
  };
1517
- var Tt = {
1517
+ var Nt = {
1518
1518
  name: "localStorage",
1519
1519
  // Deconstruct the options object and extract the lookupLocalStorage property
1520
1520
  lookup(s) {
1521
1521
  let {
1522
1522
  lookupLocalStorage: e
1523
1523
  } = s;
1524
- if (e && Ee())
1524
+ if (e && $e())
1525
1525
  return window.localStorage.getItem(e) || void 0;
1526
1526
  },
1527
1527
  // Deconstruct the options object and extract the lookupLocalStorage property
@@ -1529,38 +1529,38 @@ var Tt = {
1529
1529
  let {
1530
1530
  lookupLocalStorage: t
1531
1531
  } = e;
1532
- t && Ee() && window.localStorage.setItem(t, s);
1532
+ t && $e() && window.localStorage.setItem(t, s);
1533
1533
  }
1534
1534
  };
1535
- let H = null;
1536
- const Ne = () => {
1537
- if (H !== null) return H;
1535
+ let K = null;
1536
+ const Ee = () => {
1537
+ if (K !== null) return K;
1538
1538
  try {
1539
- if (H = typeof window < "u" && window.sessionStorage !== null, !H)
1539
+ if (K = typeof window < "u" && window.sessionStorage !== null, !K)
1540
1540
  return !1;
1541
1541
  const s = "i18next.translate.boo";
1542
1542
  window.sessionStorage.setItem(s, "foo"), window.sessionStorage.removeItem(s);
1543
1543
  } catch {
1544
- H = !1;
1544
+ K = !1;
1545
1545
  }
1546
- return H;
1546
+ return K;
1547
1547
  };
1548
- var Dt = {
1548
+ var Ft = {
1549
1549
  name: "sessionStorage",
1550
1550
  lookup(s) {
1551
1551
  let {
1552
1552
  lookupSessionStorage: e
1553
1553
  } = s;
1554
- if (e && Ne())
1554
+ if (e && Ee())
1555
1555
  return window.sessionStorage.getItem(e) || void 0;
1556
1556
  },
1557
1557
  cacheUserLanguage(s, e) {
1558
1558
  let {
1559
1559
  lookupSessionStorage: t
1560
1560
  } = e;
1561
- t && Ne() && window.sessionStorage.setItem(t, s);
1561
+ t && Ee() && window.sessionStorage.setItem(t, s);
1562
1562
  }
1563
- }, At = {
1563
+ }, It = {
1564
1564
  name: "navigator",
1565
1565
  lookup(s) {
1566
1566
  const e = [];
@@ -1577,7 +1577,7 @@ var Dt = {
1577
1577
  }
1578
1578
  return e.length > 0 ? e : void 0;
1579
1579
  }
1580
- }, Ut = {
1580
+ }, Tt = {
1581
1581
  name: "htmlTag",
1582
1582
  // Deconstruct the options object and extract the htmlTag property
1583
1583
  lookup(s) {
@@ -1587,7 +1587,7 @@ var Dt = {
1587
1587
  const n = e || (typeof document < "u" ? document.documentElement : null);
1588
1588
  return n && typeof n.getAttribute == "function" && (t = n.getAttribute("lang")), t;
1589
1589
  }
1590
- }, Ht = {
1590
+ }, Dt = {
1591
1591
  name: "path",
1592
1592
  // Deconstruct the options object and extract the lookupFromPathIndex property
1593
1593
  lookup(s) {
@@ -1598,7 +1598,7 @@ var Dt = {
1598
1598
  const t = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
1599
1599
  return Array.isArray(t) ? t[typeof e == "number" ? e : 0]?.replace("/", "") : void 0;
1600
1600
  }
1601
- }, Kt = {
1601
+ }, At = {
1602
1602
  name: "subdomain",
1603
1603
  lookup(s) {
1604
1604
  let {
@@ -1609,15 +1609,15 @@ var Dt = {
1609
1609
  return n[t];
1610
1610
  }
1611
1611
  };
1612
- let Ve = !1;
1612
+ let Me = !1;
1613
1613
  try {
1614
- document.cookie, Ve = !0;
1614
+ document.cookie, Me = !0;
1615
1615
  } catch {
1616
1616
  }
1617
- const qe = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
1618
- Ve || qe.splice(1, 1);
1619
- const Mt = () => ({
1620
- order: qe,
1617
+ const Ve = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
1618
+ Me || Ve.splice(1, 1);
1619
+ const Ht = () => ({
1620
+ order: Ve,
1621
1621
  lookupQuerystring: "lng",
1622
1622
  lookupCookie: "i18next",
1623
1623
  lookupLocalStorage: "i18nextLng",
@@ -1629,7 +1629,7 @@ const Mt = () => ({
1629
1629
  // cookieDomain: 'myDomain'
1630
1630
  convertDetectedLanguage: (s) => s
1631
1631
  });
1632
- class _e {
1632
+ class qe {
1633
1633
  constructor(e) {
1634
1634
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1635
1635
  this.type = "languageDetector", this.detectors = {}, this.init(e, t);
@@ -1638,7 +1638,7 @@ class _e {
1638
1638
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
1639
1639
  languageUtils: {}
1640
1640
  }, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1641
- this.services = e, this.options = jt(t, this.options || {}, Mt()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Nt), this.addDetector(Ft), this.addDetector(Tt), this.addDetector(Dt), this.addDetector(At), this.addDetector(Ut), this.addDetector(Ht), this.addDetector(Kt), this.addDetector(It);
1641
+ this.services = e, this.options = kt(t, this.options || {}, Ht()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (i) => i.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(jt), this.addDetector($t), this.addDetector(Nt), this.addDetector(Ft), this.addDetector(It), this.addDetector(Tt), this.addDetector(Dt), this.addDetector(At), this.addDetector(Et);
1642
1642
  }
1643
1643
  addDetector(e) {
1644
1644
  return this.detectors[e.name] = e, this;
@@ -1650,7 +1650,7 @@ class _e {
1650
1650
  let i = this.detectors[n].lookup(this.options);
1651
1651
  i && typeof i == "string" && (i = [i]), i && (t = t.concat(i));
1652
1652
  }
1653
- }), t = t.filter((n) => n != null && !$t(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
1653
+ }), t = t.filter((n) => n != null && !Ct(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? t : t.length > 0 ? t[0] : null;
1654
1654
  }
1655
1655
  cacheUserLanguage(e) {
1656
1656
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
@@ -1659,7 +1659,7 @@ class _e {
1659
1659
  }));
1660
1660
  }
1661
1661
  }
1662
- _e.type = "languageDetector";
1662
+ qe.type = "languageDetector";
1663
1663
  function le(s) {
1664
1664
  "@babel/helpers - typeof";
1665
1665
  return le = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -1668,16 +1668,16 @@ function le(s) {
1668
1668
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1669
1669
  }, le(s);
1670
1670
  }
1671
- function ze() {
1671
+ function _e() {
1672
1672
  return typeof XMLHttpRequest == "function" || (typeof XMLHttpRequest > "u" ? "undefined" : le(XMLHttpRequest)) === "object";
1673
1673
  }
1674
- function Vt(s) {
1674
+ function Kt(s) {
1675
1675
  return !!s && typeof s.then == "function";
1676
1676
  }
1677
- function qt(s) {
1678
- return Vt(s) ? s : Promise.resolve(s);
1677
+ function Ut(s) {
1678
+ return Kt(s) ? s : Promise.resolve(s);
1679
1679
  }
1680
- function Fe(s, e) {
1680
+ function Ne(s, e) {
1681
1681
  var t = Object.keys(s);
1682
1682
  if (Object.getOwnPropertySymbols) {
1683
1683
  var n = Object.getOwnPropertySymbols(s);
@@ -1687,25 +1687,25 @@ function Fe(s, e) {
1687
1687
  }
1688
1688
  return t;
1689
1689
  }
1690
- function Ie(s) {
1690
+ function Fe(s) {
1691
1691
  for (var e = 1; e < arguments.length; e++) {
1692
1692
  var t = arguments[e] != null ? arguments[e] : {};
1693
- e % 2 ? Fe(Object(t), !0).forEach(function(n) {
1694
- _t(s, n, t[n]);
1695
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(t)) : Fe(Object(t)).forEach(function(n) {
1693
+ e % 2 ? Ne(Object(t), !0).forEach(function(n) {
1694
+ Mt(s, n, t[n]);
1695
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(t)) : Ne(Object(t)).forEach(function(n) {
1696
1696
  Object.defineProperty(s, n, Object.getOwnPropertyDescriptor(t, n));
1697
1697
  });
1698
1698
  }
1699
1699
  return s;
1700
1700
  }
1701
- function _t(s, e, t) {
1702
- return (e = zt(e)) in s ? Object.defineProperty(s, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : s[e] = t, s;
1701
+ function Mt(s, e, t) {
1702
+ return (e = Vt(e)) in s ? Object.defineProperty(s, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : s[e] = t, s;
1703
1703
  }
1704
- function zt(s) {
1705
- var e = Bt(s, "string");
1704
+ function Vt(s) {
1705
+ var e = qt(s, "string");
1706
1706
  return I(e) == "symbol" ? e : e + "";
1707
1707
  }
1708
- function Bt(s, e) {
1708
+ function qt(s, e) {
1709
1709
  if (I(s) != "object" || !s) return s;
1710
1710
  var t = s[Symbol.toPrimitive];
1711
1711
  if (t !== void 0) {
@@ -1726,7 +1726,7 @@ function I(s) {
1726
1726
  var E = typeof fetch == "function" ? fetch : void 0;
1727
1727
  typeof global < "u" && global.fetch ? E = global.fetch : typeof window < "u" && window.fetch && (E = window.fetch);
1728
1728
  var X;
1729
- ze() && (typeof global < "u" && global.XMLHttpRequest ? X = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (X = window.XMLHttpRequest));
1729
+ _e() && (typeof global < "u" && global.XMLHttpRequest ? X = global.XMLHttpRequest : typeof window < "u" && window.XMLHttpRequest && (X = window.XMLHttpRequest));
1730
1730
  var ee;
1731
1731
  typeof ActiveXObject == "function" && (typeof global < "u" && global.ActiveXObject ? ee = global.ActiveXObject : typeof window < "u" && window.ActiveXObject && (ee = window.ActiveXObject));
1732
1732
  typeof E != "function" && (E = void 0);
@@ -1747,7 +1747,7 @@ var ue = function(e, t) {
1747
1747
  e = e + (e.indexOf("?") !== -1 ? "&" : "?") + n.slice(1);
1748
1748
  }
1749
1749
  return e;
1750
- }, Te = function(e, t, n, i) {
1750
+ }, Ie = function(e, t, n, i) {
1751
1751
  var r = function(l) {
1752
1752
  if (!l.ok) return n(l.statusText || "Error", {
1753
1753
  status: l.status
@@ -1767,29 +1767,29 @@ var ue = function(e, t) {
1767
1767
  }
1768
1768
  }
1769
1769
  typeof fetch == "function" ? fetch(e, t).then(r).catch(n) : E(e, t).then(r).catch(n);
1770
- }, De = !1, Xt = function(e, t, n, i) {
1770
+ }, Te = !1, _t = function(e, t, n, i) {
1771
1771
  e.queryStringParams && (t = ue(t, e.queryStringParams));
1772
- var r = Ie({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
1772
+ var r = Fe({}, typeof e.customHeaders == "function" ? e.customHeaders() : e.customHeaders);
1773
1773
  typeof window > "u" && typeof global < "u" && typeof global.process < "u" && global.process.versions && global.process.versions.node && (r["User-Agent"] = "i18next-http-backend (node/".concat(global.process.version, "; ").concat(global.process.platform, " ").concat(global.process.arch, ")")), n && (r["Content-Type"] = "application/json");
1774
- var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, a = Ie({
1774
+ var o = typeof e.requestOptions == "function" ? e.requestOptions(n) : e.requestOptions, a = Fe({
1775
1775
  method: n ? "POST" : "GET",
1776
1776
  body: n ? e.stringify(n) : void 0,
1777
1777
  headers: r
1778
- }, De ? {} : o), l = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
1778
+ }, Te ? {} : o), l = typeof e.alternateFetch == "function" && e.alternateFetch.length >= 1 ? e.alternateFetch : void 0;
1779
1779
  try {
1780
- Te(t, a, i, l);
1780
+ Ie(t, a, i, l);
1781
1781
  } catch (u) {
1782
1782
  if (!o || Object.keys(o).length === 0 || !u.message || u.message.indexOf("not implemented") < 0)
1783
1783
  return i(u);
1784
1784
  try {
1785
1785
  Object.keys(o).forEach(function(c) {
1786
1786
  delete a[c];
1787
- }), Te(t, a, i, l), De = !0;
1787
+ }), Ie(t, a, i, l), Te = !0;
1788
1788
  } catch (c) {
1789
1789
  i(c);
1790
1790
  }
1791
1791
  }
1792
- }, Jt = function(e, t, n, i) {
1792
+ }, zt = function(e, t, n, i) {
1793
1793
  n && I(n) === "object" && (n = ue("", n).slice(1)), e.queryStringParams && (t = ue(t, e.queryStringParams));
1794
1794
  try {
1795
1795
  var r = X ? new X() : new ee("MSXML2.XMLHTTP.3.0");
@@ -1807,23 +1807,23 @@ var ue = function(e, t) {
1807
1807
  } catch (l) {
1808
1808
  console && console.log(l);
1809
1809
  }
1810
- }, Wt = function(e, t, n, i) {
1810
+ }, Bt = function(e, t, n, i) {
1811
1811
  if (typeof n == "function" && (i = n, n = void 0), i = i || function() {
1812
1812
  }, E && t.indexOf("file:") !== 0)
1813
- return Xt(e, t, n, i);
1814
- if (ze() || typeof ActiveXObject == "function")
1815
- return Jt(e, t, n, i);
1813
+ return _t(e, t, n, i);
1814
+ if (_e() || typeof ActiveXObject == "function")
1815
+ return zt(e, t, n, i);
1816
1816
  i(new Error("No fetch and no xhr implementation found!"));
1817
1817
  };
1818
- function K(s) {
1818
+ function U(s) {
1819
1819
  "@babel/helpers - typeof";
1820
- return K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1820
+ return U = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
1821
1821
  return typeof e;
1822
1822
  } : function(e) {
1823
1823
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1824
- }, K(s);
1824
+ }, U(s);
1825
1825
  }
1826
- function Ae(s, e) {
1826
+ function De(s, e) {
1827
1827
  var t = Object.keys(s);
1828
1828
  if (Object.getOwnPropertySymbols) {
1829
1829
  var n = Object.getOwnPropertySymbols(s);
@@ -1836,44 +1836,44 @@ function Ae(s, e) {
1836
1836
  function re(s) {
1837
1837
  for (var e = 1; e < arguments.length; e++) {
1838
1838
  var t = arguments[e] != null ? arguments[e] : {};
1839
- e % 2 ? Ae(Object(t), !0).forEach(function(n) {
1840
- Be(s, n, t[n]);
1841
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(t)) : Ae(Object(t)).forEach(function(n) {
1839
+ e % 2 ? De(Object(t), !0).forEach(function(n) {
1840
+ ze(s, n, t[n]);
1841
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(t)) : De(Object(t)).forEach(function(n) {
1842
1842
  Object.defineProperty(s, n, Object.getOwnPropertyDescriptor(t, n));
1843
1843
  });
1844
1844
  }
1845
1845
  return s;
1846
1846
  }
1847
- function Qt(s, e) {
1847
+ function Xt(s, e) {
1848
1848
  if (!(s instanceof e)) throw new TypeError("Cannot call a class as a function");
1849
1849
  }
1850
- function Gt(s, e) {
1850
+ function Jt(s, e) {
1851
1851
  for (var t = 0; t < e.length; t++) {
1852
1852
  var n = e[t];
1853
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(s, Xe(n.key), n);
1853
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(s, Be(n.key), n);
1854
1854
  }
1855
1855
  }
1856
- function Yt(s, e, t) {
1857
- return e && Gt(s.prototype, e), Object.defineProperty(s, "prototype", { writable: !1 }), s;
1856
+ function Wt(s, e, t) {
1857
+ return e && Jt(s.prototype, e), Object.defineProperty(s, "prototype", { writable: !1 }), s;
1858
1858
  }
1859
- function Be(s, e, t) {
1860
- return (e = Xe(e)) in s ? Object.defineProperty(s, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : s[e] = t, s;
1859
+ function ze(s, e, t) {
1860
+ return (e = Be(e)) in s ? Object.defineProperty(s, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : s[e] = t, s;
1861
1861
  }
1862
- function Xe(s) {
1863
- var e = Zt(s, "string");
1864
- return K(e) == "symbol" ? e : e + "";
1862
+ function Be(s) {
1863
+ var e = Qt(s, "string");
1864
+ return U(e) == "symbol" ? e : e + "";
1865
1865
  }
1866
- function Zt(s, e) {
1867
- if (K(s) != "object" || !s) return s;
1866
+ function Qt(s, e) {
1867
+ if (U(s) != "object" || !s) return s;
1868
1868
  var t = s[Symbol.toPrimitive];
1869
1869
  if (t !== void 0) {
1870
1870
  var n = t.call(s, e);
1871
- if (K(n) != "object") return n;
1871
+ if (U(n) != "object") return n;
1872
1872
  throw new TypeError("@@toPrimitive must return a primitive value.");
1873
1873
  }
1874
1874
  return String(s);
1875
1875
  }
1876
- var en = function() {
1876
+ var Gt = function() {
1877
1877
  return {
1878
1878
  loadPath: "/locales/{{lng}}/{{ns}}.json",
1879
1879
  addPath: "/locales/add/{{lng}}/{{ns}}",
@@ -1882,11 +1882,11 @@ var en = function() {
1882
1882
  },
1883
1883
  stringify: JSON.stringify,
1884
1884
  parsePayload: function(t, n, i) {
1885
- return Be({}, n, i || "");
1885
+ return ze({}, n, i || "");
1886
1886
  },
1887
1887
  parseLoadPayload: function(t, n) {
1888
1888
  },
1889
- request: Wt,
1889
+ request: Bt,
1890
1890
  reloadInterval: typeof window < "u" ? !1 : 3600 * 1e3,
1891
1891
  customHeaders: {},
1892
1892
  queryStringParams: {},
@@ -1899,20 +1899,20 @@ var en = function() {
1899
1899
  cache: "default"
1900
1900
  }
1901
1901
  };
1902
- }, Je = (function() {
1902
+ }, Xe = (function() {
1903
1903
  function s(e) {
1904
1904
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1905
- Qt(this, s), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
1905
+ Xt(this, s), this.services = e, this.options = t, this.allOptions = n, this.type = "backend", this.init(e, t, n);
1906
1906
  }
1907
- return Yt(s, [{
1907
+ return Wt(s, [{
1908
1908
  key: "init",
1909
1909
  value: function(t) {
1910
1910
  var n = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1911
- if (this.services = t, this.options = re(re(re({}, en()), this.options || {}), i), this.allOptions = r, this.services && this.options.reloadInterval) {
1911
+ if (this.services = t, this.options = re(re(re({}, Gt()), this.options || {}), i), this.allOptions = r, this.services && this.options.reloadInterval) {
1912
1912
  var o = setInterval(function() {
1913
1913
  return n.reload();
1914
1914
  }, this.options.reloadInterval);
1915
- K(o) === "object" && typeof o.unref == "function" && o.unref();
1915
+ U(o) === "object" && typeof o.unref == "function" && o.unref();
1916
1916
  }
1917
1917
  }
1918
1918
  }, {
@@ -1929,7 +1929,7 @@ var en = function() {
1929
1929
  key: "_readAny",
1930
1930
  value: function(t, n, i, r, o) {
1931
1931
  var a = this, l = this.options.loadPath;
1932
- typeof this.options.loadPath == "function" && (l = this.options.loadPath(t, i)), l = qt(l), l.then(function(u) {
1932
+ typeof this.options.loadPath == "function" && (l = this.options.loadPath(t, i)), l = Ut(l), l.then(function(u) {
1933
1933
  if (!u) return o(null, {});
1934
1934
  var c = a.services.interpolator.interpolate(u, {
1935
1935
  lng: t.join("+"),
@@ -2007,8 +2007,8 @@ var en = function() {
2007
2007
  }
2008
2008
  }]);
2009
2009
  })();
2010
- Je.type = "backend";
2011
- const We = [
2010
+ Xe.type = "backend";
2011
+ const Je = [
2012
2012
  "en",
2013
2013
  "en-DG",
2014
2014
  "es",
@@ -2092,33 +2092,33 @@ const We = [
2092
2092
  "ur",
2093
2093
  "uz",
2094
2094
  "hr"
2095
- ], tn = (s) => {
2095
+ ], Yt = (s) => {
2096
2096
  const e = s.replace(/([A-Z])/g, " $1");
2097
2097
  return e.charAt(0).toUpperCase() + e.slice(1);
2098
- }, nn = (s) => {
2098
+ }, Zt = (s) => {
2099
2099
  const e = s.split("."), t = e[e.length - 1];
2100
- return tn(t || "missing key");
2101
- }, Qe = new _e();
2102
- Qe.addDetector({
2100
+ return Yt(t || "missing key");
2101
+ }, We = new qe();
2102
+ We.addDetector({
2103
2103
  name: "navigatorOnlyLanguage",
2104
2104
  lookup() {
2105
2105
  if (typeof navigator > "u")
2106
2106
  return "en";
2107
2107
  const s = navigator.language;
2108
- return We.includes(s) ? s : s.split("-")[0];
2108
+ return Je.includes(s) ? s : s.split("-")[0];
2109
2109
  }
2110
2110
  });
2111
- const sn = "https://api.i18nexus.com/project_resources/translations/{{lng}}/{{ns}}.json?api_key=cg41dUINoxdp8BaHDQLJhA";
2112
- function Ue(s, e) {
2111
+ const en = "https://api.i18nexus.com/project_resources/translations/{{lng}}/{{ns}}.json?api_key=cg41dUINoxdp8BaHDQLJhA";
2112
+ function Ae(s, e) {
2113
2113
  for (const [t, n] of Object.entries(e))
2114
2114
  n && s.addResourceBundle(t, "default", n, !0, !0);
2115
2115
  }
2116
- function rn(s = {}) {
2116
+ function tn(s = {}) {
2117
2117
  const { lang: e, translations: t } = s, n = x.createInstance();
2118
- return n.use(Je).use(Qe).init({
2118
+ return n.use(Xe).use(We).init({
2119
2119
  lng: e,
2120
2120
  fallbackLng: "en",
2121
- supportedLngs: We,
2121
+ supportedLngs: Je,
2122
2122
  ns: ["default"],
2123
2123
  defaultNS: "default",
2124
2124
  partialBundledLanguages: !0,
@@ -2127,7 +2127,7 @@ function rn(s = {}) {
2127
2127
  escapeValue: !1
2128
2128
  },
2129
2129
  backend: {
2130
- loadPath: sn
2130
+ loadPath: en
2131
2131
  },
2132
2132
  detection: {
2133
2133
  order: [
@@ -2143,41 +2143,21 @@ function rn(s = {}) {
2143
2143
  lookupQuerystring: "lang"
2144
2144
  },
2145
2145
  initImmediate: !1,
2146
- parseMissingKeyHandler: nn
2147
- }), t && (Ue(n, t), n.on("loaded", () => {
2148
- Ue(n, t);
2146
+ parseMissingKeyHandler: Zt
2147
+ }), t && (Ae(n, t), n.on("loaded", () => {
2148
+ Ae(n, t);
2149
2149
  })), n;
2150
2150
  }
2151
2151
  let Q = null;
2152
- function cn(s) {
2153
- Q = s;
2154
- }
2155
- function dn() {
2156
- return Q || (Q = rn()), Q;
2157
- }
2158
- let Ge = {};
2159
- const fe = /* @__PURE__ */ new Set();
2160
2152
  function on(s) {
2161
- return fe.add(s), () => {
2162
- fe.delete(s);
2163
- };
2153
+ Q = s;
2164
2154
  }
2165
2155
  function an() {
2166
- return Ge;
2167
- }
2168
- function hn(s) {
2169
- Ge = s;
2170
- for (const e of fe)
2171
- e();
2172
- }
2173
- function pn() {
2174
- return ot(on, an);
2156
+ return Q || (Q = tn()), Q;
2175
2157
  }
2176
2158
  export {
2177
- pn as a,
2178
- cn as b,
2179
- rn as c,
2180
- dn as g,
2181
- hn as s,
2182
- fn as u
2159
+ tn as c,
2160
+ an as g,
2161
+ on as s,
2162
+ rn as u
2183
2163
  };