@1024pix/epreuves-components 0.10.1 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,27 @@
1
- import { s as be, n as Oe, a as Le, i as we } from "./_plugin-vue_export-helper-CGpZIhKK.js";
2
- const d = (o) => typeof o == "string", K = () => {
1
+ import { s as Le, n as we, a as ve, i as Re } from "./_plugin-vue_export-helper-BsbHZhhs.js";
2
+ const d = (o) => typeof o == "string", V = () => {
3
3
  let o, e;
4
4
  const t = new Promise((i, s) => {
5
5
  o = i, e = s;
6
6
  });
7
7
  return t.resolve = o, t.reject = e, t;
8
- }, ee = (o) => o == null ? "" : "" + o, ve = (o, e, t) => {
8
+ }, te = (o) => o == null ? "" : "" + o, Ce = (o, e, t) => {
9
9
  o.forEach((i) => {
10
10
  e[i] && (t[i] = e[i]);
11
11
  });
12
- }, Re = /###/g, te = (o) => o && o.indexOf("###") > -1 ? o.replace(Re, ".") : o, se = (o) => !o || d(o), A = (o, e, t) => {
12
+ }, Pe = /###/g, se = (o) => o && o.indexOf("###") > -1 ? o.replace(Pe, ".") : o, ie = (o) => !o || d(o), A = (o, e, t) => {
13
13
  const i = d(e) ? e.split(".") : e;
14
14
  let s = 0;
15
15
  for (; s < i.length - 1; ) {
16
- if (se(o)) return {};
17
- const n = te(i[s]);
16
+ if (ie(o)) return {};
17
+ const n = se(i[s]);
18
18
  !o[n] && t && (o[n] = new t()), Object.prototype.hasOwnProperty.call(o, n) ? o = o[n] : o = {}, ++s;
19
19
  }
20
- return se(o) ? {} : {
20
+ return ie(o) ? {} : {
21
21
  obj: o,
22
- k: te(i[s])
22
+ k: se(i[s])
23
23
  };
24
- }, ie = (o, e, t) => {
24
+ }, ne = (o, e, t) => {
25
25
  const {
26
26
  obj: i,
27
27
  k: s
@@ -34,7 +34,7 @@ const d = (o) => typeof o == "string", K = () => {
34
34
  for (; a.obj === void 0 && r.length; )
35
35
  n = `${r[r.length - 1]}.${n}`, r = r.slice(0, r.length - 1), a = A(o, r, Object), a?.obj && typeof a.obj[`${a.k}.${n}`] < "u" && (a.obj = void 0);
36
36
  a.obj[`${a.k}.${n}`] = t;
37
- }, Ce = (o, e, t, i) => {
37
+ }, $e = (o, e, t, i) => {
38
38
  const {
39
39
  obj: s,
40
40
  k: n
@@ -47,15 +47,15 @@ const d = (o) => typeof o == "string", K = () => {
47
47
  } = A(o, e);
48
48
  if (t && Object.prototype.hasOwnProperty.call(t, i))
49
49
  return t[i];
50
- }, Pe = (o, e, t) => {
50
+ }, Ne = (o, e, t) => {
51
51
  const i = B(o, t);
52
52
  return i !== void 0 ? i : B(e, t);
53
- }, pe = (o, e, t) => {
53
+ }, me = (o, e, t) => {
54
54
  for (const i in e)
55
- i !== "__proto__" && i !== "constructor" && (i in o ? d(o[i]) || o[i] instanceof String || d(e[i]) || e[i] instanceof String ? t && (o[i] = e[i]) : pe(o[i], e[i], t) : o[i] = e[i]);
55
+ i !== "__proto__" && i !== "constructor" && (i in o ? d(o[i]) || o[i] instanceof String || d(e[i]) || e[i] instanceof String ? t && (o[i] = e[i]) : me(o[i], e[i], t) : o[i] = e[i]);
56
56
  return o;
57
57
  }, T = (o) => o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
58
- var $e = {
58
+ var ke = {
59
59
  "&": "&amp;",
60
60
  "<": "&lt;",
61
61
  ">": "&gt;",
@@ -63,8 +63,8 @@ var $e = {
63
63
  "'": "&#39;",
64
64
  "/": "&#x2F;"
65
65
  };
66
- const Ne = (o) => d(o) ? o.replace(/[&<>"'\/]/g, (e) => $e[e]) : o;
67
- class ke {
66
+ const Ee = (o) => d(o) ? o.replace(/[&<>"'\/]/g, (e) => ke[e]) : o;
67
+ class Fe {
68
68
  constructor(e) {
69
69
  this.capacity = e, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
70
70
  }
@@ -76,18 +76,18 @@ class ke {
76
76
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e, i), this.regExpQueue.push(e), i;
77
77
  }
78
78
  }
79
- const Ee = [" ", ",", "?", "!", ";"], Fe = new ke(20), je = (o, e, t) => {
79
+ const je = [" ", ",", "?", "!", ";"], Ie = new Fe(20), Te = (o, e, t) => {
80
80
  e = e || "", t = t || "";
81
- const i = Ee.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
81
+ const i = je.filter((r) => e.indexOf(r) < 0 && t.indexOf(r) < 0);
82
82
  if (i.length === 0) return !0;
83
- const s = Fe.getRegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
83
+ const s = Ie.getRegExp(`(${i.map((r) => r === "?" ? "\\?" : r).join("|")})`);
84
84
  let n = !s.test(o);
85
85
  if (!n) {
86
86
  const r = o.indexOf(t);
87
87
  r > 0 && !s.test(o.substring(0, r)) && (n = !0);
88
88
  }
89
89
  return n;
90
- }, Y = (o, e, t = ".") => {
90
+ }, Q = (o, e, t = ".") => {
91
91
  if (!o) return;
92
92
  if (o[e])
93
93
  return Object.prototype.hasOwnProperty.call(o, e) ? o[e] : void 0;
@@ -107,7 +107,7 @@ const Ee = [" ", ",", "?", "!", ";"], Fe = new ke(20), je = (o, e, t) => {
107
107
  s = r;
108
108
  }
109
109
  return s;
110
- }, U = (o) => o?.replace("_", "-"), Ie = {
110
+ }, U = (o) => o?.replace("_", "-"), De = {
111
111
  type: "logger",
112
112
  log(o) {
113
113
  this.output("log", o);
@@ -127,7 +127,7 @@ class J {
127
127
  this.init(e, t);
128
128
  }
129
129
  init(e, t = {}) {
130
- this.prefix = t.prefix || "i18next:", this.logger = e || Ie, this.options = t, this.debug = t.debug;
130
+ this.prefix = t.prefix || "i18next:", this.logger = e || De, this.options = t, this.debug = t.debug;
131
131
  }
132
132
  log(...e) {
133
133
  return this.forward(e, "log", "", !0);
@@ -185,7 +185,7 @@ class W {
185
185
  });
186
186
  }
187
187
  }
188
- class ne extends W {
188
+ class re extends W {
189
189
  constructor(e, t = {
190
190
  ns: ["translation"],
191
191
  defaultNS: "translation"
@@ -204,14 +204,14 @@ class ne extends W {
204
204
  let a;
205
205
  e.indexOf(".") > -1 ? a = e.split(".") : (a = [e, t], i && (Array.isArray(i) ? a.push(...i) : d(i) && n ? a.push(...i.split(n)) : a.push(i)));
206
206
  const l = B(this.data, a);
207
- return !l && !t && !i && e.indexOf(".") > -1 && (e = a[0], t = a[1], i = a.slice(2).join(".")), l || !r || !d(i) ? l : Y(this.data?.[e]?.[t], i, n);
207
+ return !l && !t && !i && e.indexOf(".") > -1 && (e = a[0], t = a[1], i = a.slice(2).join(".")), l || !r || !d(i) ? l : Q(this.data?.[e]?.[t], i, n);
208
208
  }
209
209
  addResource(e, t, i, s, n = {
210
210
  silent: !1
211
211
  }) {
212
212
  const r = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
213
213
  let a = [e, t];
214
- i && (a = a.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (a = e.split("."), s = t, t = a[1]), this.addNamespaces(t), ie(this.data, a, s), n.silent || this.emit("added", e, t, i, s);
214
+ i && (a = a.concat(r ? i.split(r) : i)), e.indexOf(".") > -1 && (a = e.split("."), s = t, t = a[1]), this.addNamespaces(t), ne(this.data, a, s), n.silent || this.emit("added", e, t, i, s);
215
215
  }
216
216
  addResources(e, t, i, s = {
217
217
  silent: !1
@@ -229,10 +229,10 @@ class ne extends W {
229
229
  let a = [e, t];
230
230
  e.indexOf(".") > -1 && (a = e.split("."), s = i, i = t, t = a[1]), this.addNamespaces(t);
231
231
  let l = B(this.data, a) || {};
232
- r.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? pe(l, i, n) : l = {
232
+ r.skipCopy || (i = JSON.parse(JSON.stringify(i))), s ? me(l, i, n) : l = {
233
233
  ...l,
234
234
  ...i
235
- }, ie(this.data, a, l), r.silent || this.emit("added", e, t, i);
235
+ }, ne(this.data, a, l), r.silent || this.emit("added", e, t, i);
236
236
  }
237
237
  removeResourceBundle(e, t) {
238
238
  this.hasResourceBundle(e, t) && delete this.data[e][t], this.removeNamespaces(t), this.emit("removed", e, t);
@@ -254,7 +254,7 @@ class ne extends W {
254
254
  return this.data;
255
255
  }
256
256
  }
257
- var me = {
257
+ var xe = {
258
258
  processors: {},
259
259
  addPostProcessor(o) {
260
260
  this.processors[o.name] = o;
@@ -265,10 +265,22 @@ var me = {
265
265
  }), e;
266
266
  }
267
267
  };
268
- const re = {}, ae = (o) => !d(o) && typeof o != "boolean" && typeof o != "number";
268
+ const ye = Symbol("i18next/PATH_KEY");
269
+ function Ke() {
270
+ const o = [], e = /* @__PURE__ */ Object.create(null);
271
+ let t;
272
+ return e.get = (i, s) => (t?.revoke?.(), s === ye ? o : (o.push(s), t = Proxy.revocable(i, e), t.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), e).proxy;
273
+ }
274
+ function G(o, e) {
275
+ const {
276
+ [ye]: t
277
+ } = o(Ke());
278
+ return t.join(e?.keySeparator ?? ".");
279
+ }
280
+ const ae = {}, oe = (o) => !d(o) && typeof o != "boolean" && typeof o != "number";
269
281
  class _ extends W {
270
282
  constructor(e, t = {}) {
271
- super(), ve(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = P.create("translator");
283
+ super(), Ce(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = t, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = P.create("translator");
272
284
  }
273
285
  changeLanguage(e) {
274
286
  e && (this.language = e);
@@ -286,7 +298,7 @@ class _ extends W {
286
298
  i === void 0 && (i = ":");
287
299
  const s = t.keySeparator !== void 0 ? t.keySeparator : this.options.keySeparator;
288
300
  let n = t.ns || this.options.defaultNS || [];
289
- const r = i && e.indexOf(i) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !je(e, i, s);
301
+ const r = i && e.indexOf(i) > -1, a = !this.options.userDefinedKeySeparator && !t.keySeparator && !this.options.userDefinedNsSeparator && !t.nsSeparator && !Te(e, i, s);
290
302
  if (r && !a) {
291
303
  const l = e.match(this.interpolator.nestingRegexp);
292
304
  if (l && l.length > 0)
@@ -306,10 +318,13 @@ class _ extends W {
306
318
  let s = typeof t == "object" ? {
307
319
  ...t
308
320
  } : t;
309
- if (typeof s != "object" && this.options.overloadTranslationOptionHandler && (s = this.options.overloadTranslationOptionHandler(arguments)), typeof options == "object" && (s = {
321
+ if (typeof s != "object" && this.options.overloadTranslationOptionHandler && (s = this.options.overloadTranslationOptionHandler(arguments)), typeof s == "object" && (s = {
310
322
  ...s
311
323
  }), s || (s = {}), e == null) return "";
312
- Array.isArray(e) || (e = [String(e)]);
324
+ typeof e == "function" && (e = G(e, {
325
+ ...this.options,
326
+ ...s
327
+ })), Array.isArray(e) || (e = [String(e)]);
313
328
  const n = s.returnDetails !== void 0 ? s.returnDetails : this.options.returnDetails, r = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, {
314
329
  key: a,
315
330
  namespaces: l
@@ -337,11 +352,11 @@ class _ extends W {
337
352
  let c = g?.res;
338
353
  const x = g?.usedKey || a, S = g?.exactUsedKey || a, L = ["[object Number]", "[object Function]", "[object RegExp]"], y = s.joinArrays !== void 0 ? s.joinArrays : this.options.joinArrays, E = !this.i18nFormat || this.i18nFormat.handleAsObject, O = s.count !== void 0 && !d(s.count), N = _.hasDefaultValue(s), j = O ? this.pluralResolver.getSuffix(f, s.count, s) : "", I = s.ordinal && O ? this.pluralResolver.getSuffix(f, s.count, {
339
354
  ordinal: !1
340
- }) : "", G = O && !s.ordinal && s.count === 0, k = G && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${I}`] || s.defaultValue;
355
+ }) : "", Z = O && !s.ordinal && s.count === 0, k = Z && s[`defaultValue${this.options.pluralSeparator}zero`] || s[`defaultValue${j}`] || s[`defaultValue${I}`] || s.defaultValue;
341
356
  let v = c;
342
357
  E && !c && N && (v = k);
343
- const ye = ae(v), Se = Object.prototype.toString.apply(v);
344
- if (E && v && ye && L.indexOf(Se) < 0 && !(d(y) && Array.isArray(v))) {
358
+ const be = oe(v), Oe = Object.prototype.toString.apply(v);
359
+ if (E && v && be && L.indexOf(Oe) < 0 && !(d(y) && Array.isArray(v))) {
345
360
  if (!s.returnObjects && !this.options.returnObjects) {
346
361
  this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
347
362
  const R = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(x, v, {
@@ -351,13 +366,13 @@ class _ extends W {
351
366
  return n ? (g.res = R, g.usedParams = this.getUsedParamsDetails(s), g) : R;
352
367
  }
353
368
  if (r) {
354
- const R = Array.isArray(v), w = R ? [] : {}, Z = R ? S : x;
369
+ const R = Array.isArray(v), w = R ? [] : {}, X = R ? S : x;
355
370
  for (const C in v)
356
371
  if (Object.prototype.hasOwnProperty.call(v, C)) {
357
- const $ = `${Z}${r}${C}`;
372
+ const $ = `${X}${r}${C}`;
358
373
  N && !c ? w[C] = this.translate($, {
359
374
  ...s,
360
- defaultValue: ae(k) ? k[C] : void 0,
375
+ defaultValue: oe(k) ? k[C] : void 0,
361
376
  joinArrays: !1,
362
377
  ns: l
363
378
  }) : w[C] = this.translate($, {
@@ -388,16 +403,16 @@ class _ extends W {
388
403
  for (let b = 0; b < H.length; b++)
389
404
  D.push(H[b]);
390
405
  else this.options.saveMissingTo === "all" ? D = this.languageUtils.toResolveHierarchy(s.lng || this.language) : D.push(s.lng || this.language);
391
- const X = (b, F, V) => {
392
- const q = N && V !== c ? V : C;
393
- this.options.missingKeyHandler ? this.options.missingKeyHandler(b, u, F, q, $, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(b, u, F, q, $, s), this.emit("missingKey", b, u, F, c);
406
+ const q = (b, F, K) => {
407
+ const ee = N && K !== c ? K : C;
408
+ this.options.missingKeyHandler ? this.options.missingKeyHandler(b, u, F, ee, $, s) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(b, u, F, ee, $, s), this.emit("missingKey", b, u, F, c);
394
409
  };
395
410
  this.options.saveMissing && (this.options.saveMissingPlurals && O ? D.forEach((b) => {
396
411
  const F = this.pluralResolver.getSuffixes(b, s);
397
- G && s[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((V) => {
398
- X([b], a + V, s[`defaultValue${V}`] || k);
412
+ Z && s[`defaultValue${this.options.pluralSeparator}zero`] && F.indexOf(`${this.options.pluralSeparator}zero`) < 0 && F.push(`${this.options.pluralSeparator}zero`), F.forEach((K) => {
413
+ q([b], a + K, s[`defaultValue${K}`] || k);
399
414
  });
400
- }) : X(D, a, k));
415
+ }) : q(D, a, k));
401
416
  }
402
417
  c = this.extendTranslation(c, e, s, g, i), w && c === a && this.options.appendNamespaceToMissingKey && (c = `${u}${h}${a}`), (w || R) && this.options.parseMissingKeyHandler && (c = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}${h}${a}` : a, R ? c : void 0, s));
403
418
  }
@@ -436,7 +451,7 @@ class _ extends W {
436
451
  !i.lng && s && s.res && (i.lng = this.language || s.usedLng), i.nest !== !1 && (e = this.interpolator.nest(e, (...f) => n?.[0] === f[0] && !i.context ? (this.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${t[0]}`), null) : this.translate(...f, t), i)), i.interpolation && this.interpolator.reset();
437
452
  }
438
453
  const r = i.postProcess || this.options.postProcess, a = d(r) ? [r] : r;
439
- return e != null && a?.length && i.applyPostProcessor !== !1 && (e = me.handle(a, e, t, this.options && this.options.postProcessPassResolved ? {
454
+ return e != null && a?.length && i.applyPostProcessor !== !1 && (e = xe.handle(a, e, t, this.options && this.options.postProcessPassResolved ? {
440
455
  i18nResolved: {
441
456
  ...s,
442
457
  usedParams: this.getUsedParamsDetails(i)
@@ -454,7 +469,7 @@ class _ extends W {
454
469
  this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
455
470
  const p = t.count !== void 0 && !d(t.count), g = p && !t.ordinal && t.count === 0, c = t.context !== void 0 && (d(t.context) || typeof t.context == "number") && t.context !== "", x = t.lngs ? t.lngs : this.languageUtils.toResolveHierarchy(t.lng || this.language, t.fallbackLng);
456
471
  f.forEach((S) => {
457
- this.isValidLookup(i) || (a = S, !re[`${x[0]}-${S}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(a) && (re[`${x[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${x.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!!!")), x.forEach((L) => {
472
+ this.isValidLookup(i) || (a = S, !ae[`${x[0]}-${S}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(a) && (ae[`${x[0]}-${S}`] = !0, this.logger.warn(`key "${s}" for languages "${x.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!!!")), x.forEach((L) => {
458
473
  if (this.isValidLookup(i)) return;
459
474
  r = L;
460
475
  const y = [h];
@@ -511,7 +526,7 @@ class _ extends W {
511
526
  return !1;
512
527
  }
513
528
  }
514
- class oe {
529
+ class le {
515
530
  constructor(e) {
516
531
  this.options = e, this.supportedLngs = this.options.supportedLngs || !1, this.logger = P.create("languageUtils");
517
532
  }
@@ -575,20 +590,20 @@ class oe {
575
590
  }), s;
576
591
  }
577
592
  }
578
- const le = {
593
+ const ue = {
579
594
  zero: 0,
580
595
  one: 1,
581
596
  two: 2,
582
597
  few: 3,
583
598
  many: 4,
584
599
  other: 5
585
- }, ue = {
600
+ }, fe = {
586
601
  select: (o) => o === 1 ? "one" : "other",
587
602
  resolvedOptions: () => ({
588
603
  pluralCategories: ["one", "other"]
589
604
  })
590
605
  };
591
- class Te {
606
+ class Ve {
592
607
  constructor(e, t = {}) {
593
608
  this.languageUtils = e, this.options = t, this.logger = P.create("pluralResolver"), this.pluralRulesCache = {};
594
609
  }
@@ -612,8 +627,8 @@ class Te {
612
627
  });
613
628
  } catch {
614
629
  if (!Intl)
615
- return this.logger.error("No Intl support, please use an Intl polyfill!"), ue;
616
- if (!e.match(/-|_/)) return ue;
630
+ return this.logger.error("No Intl support, please use an Intl polyfill!"), fe;
631
+ if (!e.match(/-|_/)) return fe;
617
632
  const l = this.languageUtils.getLanguagePartFromCode(e);
618
633
  r = this.getRule(l, t);
619
634
  }
@@ -628,18 +643,18 @@ class Te {
628
643
  }
629
644
  getSuffixes(e, t = {}) {
630
645
  let i = this.getRule(e, t);
631
- return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((s, n) => le[s] - le[n]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
646
+ return i || (i = this.getRule("dev", t)), i ? i.resolvedOptions().pluralCategories.sort((s, n) => ue[s] - ue[n]).map((s) => `${this.options.prepend}${t.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : [];
632
647
  }
633
648
  getSuffix(e, t, i = {}) {
634
649
  const s = this.getRule(e, i);
635
650
  return s ? `${this.options.prepend}${i.ordinal ? `ordinal${this.options.prepend}` : ""}${s.select(t)}` : (this.logger.warn(`no plural rule found for: ${e}`), this.getSuffix("dev", t, i));
636
651
  }
637
652
  }
638
- const fe = (o, e, t, i = ".", s = !0) => {
639
- let n = Pe(o, e, t);
640
- return !n && s && d(t) && (n = Y(o, t, i), n === void 0 && (n = Y(e, t, i))), n;
641
- }, Q = (o) => o.replace(/\$/g, "$$$$");
642
- class De {
653
+ const he = (o, e, t, i = ".", s = !0) => {
654
+ let n = Ne(o, e, t);
655
+ return !n && s && d(t) && (n = Q(o, t, i), n === void 0 && (n = Q(e, t, i))), n;
656
+ }, Y = (o) => o.replace(/\$/g, "$$$$");
657
+ class Ae {
643
658
  constructor(e = {}) {
644
659
  this.logger = P.create("interpolator"), this.options = e, this.format = e?.interpolation?.format || ((t) => t), this.init(e);
645
660
  }
@@ -666,7 +681,7 @@ class De {
666
681
  maxReplaces: L,
667
682
  alwaysFormat: y
668
683
  } = e.interpolation;
669
- this.escape = t !== void 0 ? t : Ne, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? T(n) : r || "{{", this.suffix = a ? T(a) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = h ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = p ? T(p) : g || T("$t("), this.nestingSuffix = c ? T(c) : x || T(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = L || 1e3, this.alwaysFormat = y !== void 0 ? y : !1, this.resetRegExp();
684
+ this.escape = t !== void 0 ? t : Ee, this.escapeValue = i !== void 0 ? i : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = n ? T(n) : r || "{{", this.suffix = a ? T(a) : l || "}}", this.formatSeparator = u || ",", this.unescapePrefix = h ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : h || "", this.nestingPrefix = p ? T(p) : g || T("$t("), this.nestingSuffix = c ? T(c) : x || T(")"), this.nestingOptionsSeparator = S || ",", this.maxReplaces = L || 1e3, this.alwaysFormat = y !== void 0 ? y : !1, this.resetRegExp();
670
685
  }
671
686
  reset() {
672
687
  this.options && this.init(this.options);
@@ -679,7 +694,7 @@ class De {
679
694
  let n, r, a;
680
695
  const l = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, u = (g) => {
681
696
  if (g.indexOf(this.formatSeparator) < 0) {
682
- const L = fe(t, l, g, this.options.keySeparator, this.options.ignoreJSONStructure);
697
+ const L = he(t, l, g, this.options.keySeparator, this.options.ignoreJSONStructure);
683
698
  return this.alwaysFormat ? this.format(L, void 0, i, {
684
699
  ...s,
685
700
  ...t,
@@ -687,7 +702,7 @@ class De {
687
702
  }) : L;
688
703
  }
689
704
  const c = g.split(this.formatSeparator), x = c.shift().trim(), S = c.join(this.formatSeparator).trim();
690
- return this.format(fe(t, l, x, this.options.keySeparator, this.options.ignoreJSONStructure), S, i, {
705
+ return this.format(he(t, l, x, this.options.keySeparator, this.options.ignoreJSONStructure), S, i, {
691
706
  ...s,
692
707
  ...t,
693
708
  interpolationkey: x
@@ -697,10 +712,10 @@ class De {
697
712
  const h = s?.missingInterpolationHandler || this.options.missingInterpolationHandler, f = s?.interpolation?.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
698
713
  return [{
699
714
  regex: this.regexpUnescape,
700
- safeValue: (g) => Q(g)
715
+ safeValue: (g) => Y(g)
701
716
  }, {
702
717
  regex: this.regexp,
703
- safeValue: (g) => this.escapeValue ? Q(this.escape(g)) : Q(g)
718
+ safeValue: (g) => this.escapeValue ? Y(this.escape(g)) : Y(g)
704
719
  }].forEach((g) => {
705
720
  for (a = 0; n = g.regex.exec(e); ) {
706
721
  const c = n[1].trim();
@@ -715,7 +730,7 @@ class De {
715
730
  continue;
716
731
  } else
717
732
  this.logger.warn(`missed to pass in variable ${c} for interpolating ${e}`), r = "";
718
- else !d(r) && !this.useRawValueToEscape && (r = ee(r));
733
+ else !d(r) && !this.useRawValueToEscape && (r = te(r));
719
734
  const x = g.safeValue(r);
720
735
  if (e = e.replace(n[0], x), f ? (g.regex.lastIndex += r.length, g.regex.lastIndex -= n[0].length) : g.regex.lastIndex = 0, a++, a >= this.maxReplaces)
721
736
  break;
@@ -749,7 +764,7 @@ class De {
749
764
  }, r = r.replace && !d(r.replace) ? r.replace : r, r.applyPostProcessor = !1, delete r.defaultValue;
750
765
  const u = /{.*}/.test(s[1]) ? s[1].lastIndexOf("}") + 1 : s[1].indexOf(this.formatSeparator);
751
766
  if (u !== -1 && (l = s[1].slice(u).split(this.formatSeparator).map((h) => h.trim()).filter(Boolean), s[1] = s[1].slice(0, u)), n = t(a.call(this, s[1].trim(), r), r), n && s[0] === e && !d(n)) return n;
752
- d(n) || (n = ee(n)), n || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), n = ""), l.length && (n = l.reduce((h, f) => this.format(h, f, i.lng, {
767
+ d(n) || (n = te(n)), n || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`), n = ""), l.length && (n = l.reduce((h, f) => this.format(h, f, i.lng, {
753
768
  ...i,
754
769
  interpolationkey: s[1].trim()
755
770
  }), n.trim())), e = e.replace(s[0], n), this.regexp.lastIndex = 0;
@@ -757,7 +772,7 @@ class De {
757
772
  return e;
758
773
  }
759
774
  }
760
- const Ve = (o) => {
775
+ const Ue = (o) => {
761
776
  let e = o.toLowerCase().trim();
762
777
  const t = {};
763
778
  if (o.indexOf("(") > -1) {
@@ -775,7 +790,7 @@ const Ve = (o) => {
775
790
  formatName: e,
776
791
  formatOptions: t
777
792
  };
778
- }, he = (o) => {
793
+ }, ce = (o) => {
779
794
  const e = {};
780
795
  return (t, i, s) => {
781
796
  let n = s;
@@ -787,8 +802,8 @@ const Ve = (o) => {
787
802
  let a = e[r];
788
803
  return a || (a = o(U(i), s), e[r] = a), a(t);
789
804
  };
790
- }, Ke = (o) => (e, t, i) => o(U(t), i)(e);
791
- class Ae {
805
+ }, Me = (o) => (e, t, i) => o(U(t), i)(e);
806
+ class He {
792
807
  constructor(e = {}) {
793
808
  this.logger = P.create("formatter"), this.options = e, this.init(e);
794
809
  }
@@ -796,7 +811,7 @@ class Ae {
796
811
  interpolation: {}
797
812
  }) {
798
813
  this.formatSeparator = t.interpolation.formatSeparator || ",";
799
- const i = t.cacheInBuiltFormats ? he : Ke;
814
+ const i = t.cacheInBuiltFormats ? ce : Me;
800
815
  this.formats = {
801
816
  number: i((s, n) => {
802
817
  const r = new Intl.NumberFormat(s, {
@@ -835,7 +850,7 @@ class Ae {
835
850
  this.formats[e.toLowerCase().trim()] = t;
836
851
  }
837
852
  addCached(e, t) {
838
- this.formats[e.toLowerCase().trim()] = he(t);
853
+ this.formats[e.toLowerCase().trim()] = ce(t);
839
854
  }
840
855
  format(e, t, i, s = {}) {
841
856
  const n = t.split(this.formatSeparator);
@@ -847,7 +862,7 @@ class Ae {
847
862
  const {
848
863
  formatName: u,
849
864
  formatOptions: h
850
- } = Ve(l);
865
+ } = Ue(l);
851
866
  if (this.formats[u]) {
852
867
  let f = a;
853
868
  try {
@@ -867,10 +882,10 @@ class Ae {
867
882
  }, e);
868
883
  }
869
884
  }
870
- const Ue = (o, e) => {
885
+ const ze = (o, e) => {
871
886
  o.pending[e] !== void 0 && (delete o.pending[e], o.pendingCount--);
872
887
  };
873
- class Me extends W {
888
+ class Be extends W {
874
889
  constructor(e, t, i, s = {}) {
875
890
  super(), this.backend = e, this.store = t, this.services = i, this.languageUtils = i.languageUtils, this.options = s, this.logger = P.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(i, s.backend, s);
876
891
  }
@@ -902,7 +917,7 @@ class Me extends W {
902
917
  }), this.state[e] = t ? -1 : 2, t && i && (this.state[e] = 0);
903
918
  const a = {};
904
919
  this.queue.forEach((l) => {
905
- Ce(l.loaded, [n], r), Ue(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
920
+ $e(l.loaded, [n], r), ze(l, e), t && l.errors.push(t), l.pendingCount === 0 && !l.done && (Object.keys(l.loaded).forEach((u) => {
906
921
  a[u] || (a[u] = {});
907
922
  const h = l.loaded[u];
908
923
  h.length && h.forEach((f) => {
@@ -1000,7 +1015,7 @@ class Me extends W {
1000
1015
  }
1001
1016
  }
1002
1017
  }
1003
- const ce = () => ({
1018
+ const de = () => ({
1004
1019
  debug: !1,
1005
1020
  initAsync: !0,
1006
1021
  ns: ["translation"],
@@ -1057,17 +1072,17 @@ const ce = () => ({
1057
1072
  skipOnVariables: !0
1058
1073
  },
1059
1074
  cacheInBuiltFormats: !0
1060
- }), de = (o) => (d(o.ns) && (o.ns = [o.ns]), d(o.fallbackLng) && (o.fallbackLng = [o.fallbackLng]), d(o.fallbackNS) && (o.fallbackNS = [o.fallbackNS]), o.supportedLngs?.indexOf?.("cimode") < 0 && (o.supportedLngs = o.supportedLngs.concat(["cimode"])), typeof o.initImmediate == "boolean" && (o.initAsync = o.initImmediate), o), z = () => {
1061
- }, He = (o) => {
1075
+ }), ge = (o) => (d(o.ns) && (o.ns = [o.ns]), d(o.fallbackLng) && (o.fallbackLng = [o.fallbackLng]), d(o.fallbackNS) && (o.fallbackNS = [o.fallbackNS]), o.supportedLngs?.indexOf?.("cimode") < 0 && (o.supportedLngs = o.supportedLngs.concat(["cimode"])), typeof o.initImmediate == "boolean" && (o.initAsync = o.initImmediate), o), z = () => {
1076
+ }, Je = (o) => {
1062
1077
  Object.getOwnPropertyNames(Object.getPrototypeOf(o)).forEach((t) => {
1063
1078
  typeof o[t] == "function" && (o[t] = o[t].bind(o));
1064
1079
  });
1065
1080
  };
1066
1081
  class M extends W {
1067
1082
  constructor(e = {}, t) {
1068
- if (super(), this.options = de(e), this.services = {}, this.logger = P, this.modules = {
1083
+ if (super(), this.options = ge(e), this.services = {}, this.logger = P, this.modules = {
1069
1084
  external: []
1070
- }, He(this), t && !this.isInitialized && !e.isClone) {
1085
+ }, Je(this), t && !this.isInitialized && !e.isClone) {
1071
1086
  if (!this.options.initAsync)
1072
1087
  return this.init(e, t), this;
1073
1088
  setTimeout(() => {
@@ -1077,11 +1092,11 @@ class M extends W {
1077
1092
  }
1078
1093
  init(e = {}, t) {
1079
1094
  this.isInitializing = !0, typeof e == "function" && (t = e, e = {}), e.defaultNS == null && e.ns && (d(e.ns) ? e.defaultNS = e.ns : e.ns.indexOf("translation") < 0 && (e.defaultNS = e.ns[0]));
1080
- const i = ce();
1095
+ const i = de();
1081
1096
  this.options = {
1082
1097
  ...i,
1083
1098
  ...this.options,
1084
- ...de(e)
1099
+ ...ge(e)
1085
1100
  }, this.options.interpolation = {
1086
1101
  ...i.interpolation,
1087
1102
  ...this.options.interpolation
@@ -1090,16 +1105,16 @@ class M extends W {
1090
1105
  if (!this.options.isClone) {
1091
1106
  this.modules.logger ? P.init(s(this.modules.logger), this.options) : P.init(null, this.options);
1092
1107
  let u;
1093
- this.modules.formatter ? u = this.modules.formatter : u = Ae;
1094
- const h = new oe(this.options);
1095
- this.store = new ne(this.options.resources, this.options);
1108
+ this.modules.formatter ? u = this.modules.formatter : u = He;
1109
+ const h = new le(this.options);
1110
+ this.store = new re(this.options.resources, this.options);
1096
1111
  const f = this.services;
1097
- f.logger = P, f.resourceStore = this.store, f.languageUtils = h, f.pluralResolver = new Te(h, {
1112
+ f.logger = P, f.resourceStore = this.store, f.languageUtils = h, f.pluralResolver = new Ve(h, {
1098
1113
  prepend: this.options.pluralSeparator,
1099
1114
  simplifyPluralSuffix: this.options.simplifyPluralSuffix
1100
- }), this.options.interpolation.format && this.options.interpolation.format !== i.interpolation.format && this.logger.warn("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 === i.interpolation.format) && (f.formatter = s(u), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new De(this.options), f.utils = {
1115
+ }), this.options.interpolation.format && this.options.interpolation.format !== i.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 === i.interpolation.format) && (f.formatter = s(u), f.formatter.init && f.formatter.init(f, this.options), this.options.interpolation.format = f.formatter.format.bind(f.formatter)), f.interpolator = new Ae(this.options), f.utils = {
1101
1116
  hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
1102
- }, f.backendConnector = new Me(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (g, ...c) => {
1117
+ }, f.backendConnector = new Be(s(this.modules.backend), f.resourceStore, f, this.options), f.backendConnector.on("*", (g, ...c) => {
1103
1118
  this.emit(g, ...c);
1104
1119
  }), this.modules.languageDetector && (f.languageDetector = s(this.modules.languageDetector), f.languageDetector.init && f.languageDetector.init(f, this.options.detection, this.options)), this.modules.i18nFormat && (f.i18nFormat = s(this.modules.i18nFormat), f.i18nFormat.init && f.i18nFormat.init(this)), this.translator = new _(this.services, this.options), this.translator.on("*", (g, ...c) => {
1105
1120
  this.emit(g, ...c);
@@ -1116,7 +1131,7 @@ class M extends W {
1116
1131
  }), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((u) => {
1117
1132
  this[u] = (...h) => (this.store[u](...h), this);
1118
1133
  });
1119
- const a = K(), l = () => {
1134
+ const a = V(), l = () => {
1120
1135
  const u = (h, f) => {
1121
1136
  this.isInitializing = !1, this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), a.resolve(f), t(h, f);
1122
1137
  };
@@ -1143,7 +1158,7 @@ class M extends W {
1143
1158
  i(null);
1144
1159
  }
1145
1160
  reloadResources(e, t, i) {
1146
- const s = K();
1161
+ const s = V();
1147
1162
  return typeof e == "function" && (i = e, e = void 0), typeof t == "function" && (i = t, t = void 0), e || (e = this.languages), t || (t = this.options.ns), i || (i = z), this.services.backendConnector.reload(e, t, (n) => {
1148
1163
  s.resolve(), i(n);
1149
1164
  }), s;
@@ -1151,7 +1166,7 @@ class M extends W {
1151
1166
  use(e) {
1152
1167
  if (!e) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
1153
1168
  if (!e.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
1154
- return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && me.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1169
+ return e.type === "backend" && (this.modules.backend = e), (e.type === "logger" || e.log && e.warn && e.error) && (this.modules.logger = e), e.type === "languageDetector" && (this.modules.languageDetector = e), e.type === "i18nFormat" && (this.modules.i18nFormat = e), e.type === "postProcessor" && xe.addPostProcessor(e), e.type === "formatter" && (this.modules.formatter = e), e.type === "3rdParty" && this.modules.external.push(e), this;
1155
1170
  }
1156
1171
  setResolvedLanguage(e) {
1157
1172
  if (!(!e || !this.languages) && !(["cimode", "dev"].indexOf(e) > -1)) {
@@ -1167,7 +1182,7 @@ class M extends W {
1167
1182
  }
1168
1183
  changeLanguage(e, t) {
1169
1184
  this.isLanguageChangingTo = e;
1170
- const i = K();
1185
+ const i = V();
1171
1186
  this.emit("languageChanging", e);
1172
1187
  const s = (a) => {
1173
1188
  this.language = a, this.languages = this.services.languageUtils.toResolveHierarchy(a), this.resolvedLanguage = void 0, this.setResolvedLanguage(a);
@@ -1190,7 +1205,13 @@ class M extends W {
1190
1205
  }, l.lng = l.lng || s.lng, l.lngs = l.lngs || s.lngs, l.ns = l.ns || s.ns, l.keyPrefix !== "" && (l.keyPrefix = l.keyPrefix || i || s.keyPrefix);
1191
1206
  const u = this.options.keySeparator || ".";
1192
1207
  let h;
1193
- return l.keyPrefix && Array.isArray(n) ? h = n.map((f) => `${l.keyPrefix}${u}${f}`) : h = l.keyPrefix ? `${l.keyPrefix}${u}${n}` : n, this.t(h, l);
1208
+ return l.keyPrefix && Array.isArray(n) ? h = n.map((f) => (typeof f == "function" && (f = G(f, {
1209
+ ...this.options,
1210
+ ...r
1211
+ })), `${l.keyPrefix}${u}${f}`)) : (typeof n == "function" && (n = G(n, {
1212
+ ...this.options,
1213
+ ...r
1214
+ })), h = l.keyPrefix ? `${l.keyPrefix}${u}${n}` : n), this.t(h, l);
1194
1215
  };
1195
1216
  return d(e) ? s.lng = e : s.lngs = e, s.ns = t, s.keyPrefix = i, s;
1196
1217
  }
@@ -1221,7 +1242,7 @@ class M extends W {
1221
1242
  return !!(this.hasResourceBundle(i, e) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || r(i, e) && (!s || r(n, e)));
1222
1243
  }
1223
1244
  loadNamespaces(e, t) {
1224
- const i = K();
1245
+ const i = V();
1225
1246
  return this.options.ns ? (d(e) && (e = [e]), e.forEach((s) => {
1226
1247
  this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
1227
1248
  }), this.loadResources((s) => {
@@ -1229,7 +1250,7 @@ class M extends W {
1229
1250
  }), i) : (t && t(), Promise.resolve());
1230
1251
  }
1231
1252
  loadLanguages(e, t) {
1232
- const i = K();
1253
+ const i = V();
1233
1254
  d(e) && (e = [e]);
1234
1255
  const s = this.options.preload || [], n = e.filter((r) => s.indexOf(r) < 0 && this.services.languageUtils.isSupportedCode(r));
1235
1256
  return n.length ? (this.options.preload = s.concat(n), this.loadResources((r) => {
@@ -1246,7 +1267,7 @@ class M extends W {
1246
1267
  }
1247
1268
  } catch {
1248
1269
  }
1249
- 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"], i = this.services?.languageUtils || new oe(ce());
1270
+ 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"], i = this.services?.languageUtils || new le(de());
1250
1271
  return e.toLowerCase().indexOf("-latn") > 1 ? "ltr" : t.indexOf(i.getLanguagePartFromCode(e)) > -1 || e.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
1251
1272
  }
1252
1273
  static createInstance(e = {}, t) {
@@ -1272,7 +1293,7 @@ class M extends W {
1272
1293
  }, l[u] = Object.keys(l[u]).reduce((h, f) => (h[f] = {
1273
1294
  ...l[u][f]
1274
1295
  }, h), l[u]), l), {});
1275
- n.store = new ne(a, s), n.services.resourceStore = n.store;
1296
+ n.store = new re(a, s), n.services.resourceStore = n.store;
1276
1297
  }
1277
1298
  return n.translator = new _(n.services, s), n.translator.on("*", (a, ...l) => {
1278
1299
  n.emit(a, ...l);
@@ -1306,14 +1327,14 @@ m.setDefaultNamespace;
1306
1327
  m.hasLoadedNamespace;
1307
1328
  m.loadNamespaces;
1308
1329
  m.loadLanguages;
1309
- var xe = Symbol();
1310
- function Ge(o, {
1330
+ var Se = Symbol();
1331
+ function qe(o, {
1311
1332
  i18next: e,
1312
1333
  rerenderOn: t = ["languageChanged", "loaded", "added", "removed"],
1313
1334
  slotStart: i = "{",
1314
1335
  slotEnd: s = "}"
1315
1336
  }) {
1316
- const n = be(/* @__PURE__ */ new Date()), r = () => Oe(() => {
1337
+ const n = Le(/* @__PURE__ */ new Date()), r = () => we(() => {
1317
1338
  n.value = /* @__PURE__ */ new Date();
1318
1339
  }), a = () => n.value;
1319
1340
  t.forEach((h) => {
@@ -1327,9 +1348,9 @@ function Ge(o, {
1327
1348
  e.on(h, r);
1328
1349
  break;
1329
1350
  }
1330
- }), o.component("i18next", Je);
1351
+ }), o.component("i18next", Ye);
1331
1352
  const l = () => e.isInitialized;
1332
- o.config.globalProperties.$t = ge(
1353
+ o.config.globalProperties.$t = pe(
1333
1354
  e.t.bind(e),
1334
1355
  a,
1335
1356
  l
@@ -1339,34 +1360,34 @@ function Ge(o, {
1339
1360
  return a(), Reflect.get(h, f);
1340
1361
  }
1341
1362
  });
1342
- o.config.globalProperties.$i18next = u, o.provide(xe, {
1363
+ o.config.globalProperties.$i18next = u, o.provide(Se, {
1343
1364
  i18next: u,
1344
- slotPattern: Be(i, s),
1365
+ slotPattern: We(i, s),
1345
1366
  withAccessRecording(h, f) {
1346
- return ge(h, a, f);
1367
+ return pe(h, a, f);
1347
1368
  }
1348
1369
  });
1349
1370
  }
1350
- function ge(o, e, t) {
1371
+ function pe(o, e, t) {
1351
1372
  return new Proxy(o, {
1352
1373
  apply: function(i, s, n) {
1353
1374
  return e(), t() ? Reflect.apply(i, s, n) : "";
1354
1375
  }
1355
1376
  });
1356
1377
  }
1357
- function ze() {
1358
- const o = we(xe);
1378
+ function _e() {
1379
+ const o = Re(Se);
1359
1380
  if (!o)
1360
1381
  throw new Error(
1361
1382
  "i18next-vue: Make sure to register the i18next-vue plugin using app.use(...)."
1362
1383
  );
1363
1384
  return o;
1364
1385
  }
1365
- function Be(o, e) {
1386
+ function We(o, e) {
1366
1387
  const t = `${o}\\s*([a-z0-9\\-]+)\\s*${e}`;
1367
1388
  return new RegExp(t, "gi");
1368
1389
  }
1369
- var Je = Le({
1390
+ var Ye = ve({
1370
1391
  props: {
1371
1392
  translation: {
1372
1393
  type: String,
@@ -1374,7 +1395,7 @@ var Je = Le({
1374
1395
  }
1375
1396
  },
1376
1397
  setup(o, { slots: e }) {
1377
- const { slotPattern: t } = ze();
1398
+ const { slotPattern: t } = _e();
1378
1399
  return () => {
1379
1400
  const i = o.translation, s = [];
1380
1401
  let n, r = 0;
@@ -1387,21 +1408,21 @@ var Je = Le({
1387
1408
  };
1388
1409
  }
1389
1410
  });
1390
- const _e = "translation";
1391
- async function Ze(o) {
1411
+ const Qe = "translation";
1412
+ async function et(o) {
1392
1413
  for (const [e, t] of Object.entries(o)) {
1393
1414
  const i = e.match(/\/(\w+)\.json$/)[1];
1394
- await We(i, t);
1415
+ await Ge(i, t);
1395
1416
  }
1396
1417
  }
1397
- async function We(o, e) {
1398
- await Qe(), m.addResourceBundle(o, _e, e, !0, !0);
1418
+ async function Ge(o, e) {
1419
+ await Ze(), m.addResourceBundle(o, Qe, e, !0, !0);
1399
1420
  }
1400
- async function Qe() {
1421
+ async function Ze() {
1401
1422
  m.isInitialized || await m.init();
1402
1423
  }
1403
1424
  export {
1404
- Ze as a,
1405
- Ge as b,
1425
+ et as a,
1426
+ qe as b,
1406
1427
  m as i
1407
1428
  };