gc_i18n 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/gc_i18n.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import './gc_i18n.css';
2
2
  import fn, { Message as _e } from "view-ui-plus";
3
- import { effectScope as kr, ref as Sr, shallowRef as Dr, computed as je, watch as Rt, isRef as Pr, defineComponent as Xt, getCurrentInstance as qe, h as Zn, Fragment as zn, inject as Rr, onMounted as Mr, onUnmounted as wr, createVNode as ue, Text as Fr, resolveComponent as fe, createBlock as er, openBlock as lt, withCtx as ve, createElementVNode as Ke, toDisplayString as Kr, createTextVNode as Mt, createElementBlock as _n, nextTick as Ur, createApp as Vr } from "vue";
3
+ import { effectScope as kr, ref as Sr, shallowRef as Dr, computed as je, watch as Rt, isRef as Pr, defineComponent as Xt, getCurrentInstance as qe, h as Zn, Fragment as zn, inject as Rr, onMounted as Mr, onUnmounted as wr, createVNode as ue, Text as Fr, resolveComponent as fe, createBlock as er, openBlock as lt, withCtx as ve, createElementVNode as Ke, toDisplayString as Kr, createTextVNode as Mt, createElementBlock as _n, createApp as Ur } from "vue";
4
4
  import X from "lodash-es";
5
5
  import Re from "axios";
6
6
  var dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
7
7
  function tr(e) {
8
8
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
9
9
  }
10
- var ct = { exports: {} }, xr = ct.exports, mn;
11
- function $r() {
10
+ var ct = { exports: {} }, Vr = ct.exports, mn;
11
+ function xr() {
12
12
  return mn || (mn = 1, function(e, t) {
13
13
  (function(n, r) {
14
14
  e.exports = r();
15
- })(xr, function() {
15
+ })(Vr, function() {
16
16
  function n(o) {
17
17
  "@babel/helpers - typeof";
18
18
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? n = function(m) {
@@ -488,8 +488,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
488
488
  });
489
489
  }(ct)), ct.exports;
490
490
  }
491
- var Wr = $r();
492
- const Gr = /* @__PURE__ */ tr(Wr);
491
+ var $r = xr();
492
+ const Wr = /* @__PURE__ */ tr($r);
493
493
  /*!
494
494
  * shared v11.1.1
495
495
  * (c) 2025 kazuya kawaguchi
@@ -506,26 +506,26 @@ if (process.env.NODE_ENV !== "production") {
506
506
  e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
507
507
  });
508
508
  }
509
- const Br = /\{([0-9a-zA-Z]+)\}/g;
509
+ const Gr = /\{([0-9a-zA-Z]+)\}/g;
510
510
  function dt(e, ...t) {
511
- return t.length === 1 && F(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Br, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
511
+ return t.length === 1 && F(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(Gr, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
512
512
  }
513
- const me = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Yr = (e, t, n) => Hr({ l: e, k: t, s: n }), Hr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), J = (e) => typeof e == "number" && isFinite(e), jr = (e) => qt(e) === "[object Date]", Ve = (e) => qt(e) === "[object RegExp]", mt = (e) => w(e) && Object.keys(e).length === 0, Q = Object.assign, Xr = Object.create, $ = (e = null) => Xr(e);
513
+ const me = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Br = (e, t, n) => Yr({ l: e, k: t, s: n }), Yr = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), J = (e) => typeof e == "number" && isFinite(e), Hr = (e) => qt(e) === "[object Date]", Ve = (e) => qt(e) === "[object RegExp]", mt = (e) => w(e) && Object.keys(e).length === 0, Q = Object.assign, jr = Object.create, $ = (e = null) => jr(e);
514
514
  let hn;
515
515
  const ke = () => hn || (hn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
516
516
  function gn(e) {
517
517
  return e.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
518
518
  }
519
- const qr = Object.prototype.hasOwnProperty;
519
+ const Xr = Object.prototype.hasOwnProperty;
520
520
  function ae(e, t) {
521
- return qr.call(e, t);
521
+ return Xr.call(e, t);
522
522
  }
523
- const q = Array.isArray, W = (e) => typeof e == "function", I = (e) => typeof e == "string", K = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object", Jr = (e) => F(e) && W(e.then) && W(e.catch), nr = Object.prototype.toString, qt = (e) => nr.call(e), w = (e) => qt(e) === "[object Object]", Qr = (e) => e == null ? "" : q(e) || w(e) && e.toString === nr ? JSON.stringify(e, null, 2) : String(e);
523
+ const q = Array.isArray, W = (e) => typeof e == "function", I = (e) => typeof e == "string", K = (e) => typeof e == "boolean", F = (e) => e !== null && typeof e == "object", qr = (e) => F(e) && W(e.then) && W(e.catch), nr = Object.prototype.toString, qt = (e) => nr.call(e), w = (e) => qt(e) === "[object Object]", Jr = (e) => e == null ? "" : q(e) || w(e) && e.toString === nr ? JSON.stringify(e, null, 2) : String(e);
524
524
  function Jt(e, t = "") {
525
525
  return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
526
526
  }
527
527
  const pn = 2;
528
- function Zr(e, t = 0, n = e.length) {
528
+ function Qr(e, t = 0, n = e.length) {
529
529
  const r = e.split(/\r?\n/);
530
530
  let a = 0;
531
531
  const s = [];
@@ -594,7 +594,7 @@ function ut(e, t) {
594
594
  * (c) 2025 kazuya kawaguchi
595
595
  * Released under the MIT License.
596
596
  */
597
- function zr(e, t, n) {
597
+ function Zr(e, t, n) {
598
598
  return { line: e, column: t, offset: n };
599
599
  }
600
600
  function wt(e, t, n) {
@@ -621,7 +621,7 @@ const R = {
621
621
  UNHANDLED_CODEGEN_NODE_TYPE: 15,
622
622
  // minifier error codes
623
623
  UNHANDLED_MINIFIER_NODE_TYPE: 16
624
- }, es = 17, ts = {
624
+ }, zr = 17, es = {
625
625
  // tokenizer error messages
626
626
  [R.EXPECTED_TOKEN]: "Expected token: '{0}'",
627
627
  [R.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
@@ -644,18 +644,18 @@ const R = {
644
644
  [R.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
645
645
  };
646
646
  function $e(e, t, n = {}) {
647
- const { domain: r, messages: a, args: s } = n, i = process.env.NODE_ENV !== "production" ? dt((a || ts)[e] || "", ...s || []) : e, c = new SyntaxError(String(i));
647
+ const { domain: r, messages: a, args: s } = n, i = process.env.NODE_ENV !== "production" ? dt((a || es)[e] || "", ...s || []) : e, c = new SyntaxError(String(i));
648
648
  return c.code = e, t && (c.location = t), c.domain = r, c;
649
649
  }
650
- function ns(e) {
650
+ function ts(e) {
651
651
  throw e;
652
652
  }
653
- const rs = /<\/?[\w\s="/.':;#-\/]+>/, ss = (e) => rs.test(e), ge = " ", as = "\r", z = `
654
- `, is = "\u2028", os = "\u2029";
655
- function ls(e) {
653
+ const ns = /<\/?[\w\s="/.':;#-\/]+>/, rs = (e) => ns.test(e), ge = " ", ss = "\r", z = `
654
+ `, as = "\u2028", is = "\u2029";
655
+ function os(e) {
656
656
  const t = e;
657
657
  let n = 0, r = 1, a = 1, s = 0;
658
- const i = (g) => t[g] === as && t[g + 1] === z, c = (g) => t[g] === z, f = (g) => t[g] === os, p = (g) => t[g] === is, y = (g) => i(g) || c(g) || f(g) || p(g), N = () => n, v = () => r, C = () => a, D = () => s, A = (g) => i(g) || f(g) || p(g) ? z : t[g], k = () => A(n), o = () => A(n + s);
658
+ const i = (g) => t[g] === ss && t[g + 1] === z, c = (g) => t[g] === z, f = (g) => t[g] === is, p = (g) => t[g] === as, y = (g) => i(g) || c(g) || f(g) || p(g), N = () => n, v = () => r, C = () => a, D = () => s, A = (g) => i(g) || f(g) || p(g) ? z : t[g], k = () => A(n), o = () => A(n + s);
659
659
  function m() {
660
660
  return s = 0, y(n) && (r++, a = 0), i(n) && n++, n++, a++, t[n];
661
661
  }
@@ -689,9 +689,9 @@ function ls(e) {
689
689
  skipToPeek: E
690
690
  };
691
691
  }
692
- const be = void 0, cs = ".", bn = "'", us = "tokenizer";
693
- function fs(e, t = {}) {
694
- const n = t.location !== !1, r = ls(e), a = () => r.index(), s = () => zr(r.line(), r.column(), r.index()), i = s(), c = a(), f = {
692
+ const be = void 0, ls = ".", bn = "'", cs = "tokenizer";
693
+ function us(e, t = {}) {
694
+ const n = t.location !== !1, r = os(e), a = () => r.index(), s = () => Zr(r.line(), r.column(), r.index()), i = s(), c = a(), f = {
695
695
  currentType: 13,
696
696
  offset: c,
697
697
  startLoc: i,
@@ -708,7 +708,7 @@ function fs(e, t = {}) {
708
708
  const Y = p();
709
709
  if (h.column += T, h.offset += T, y) {
710
710
  const H = n ? wt(Y.startLoc, h) : null, U = $e(_, H, {
711
- domain: us,
711
+ domain: cs,
712
712
  args: S
713
713
  });
714
714
  y(U);
@@ -1085,8 +1085,8 @@ function fs(e, t = {}) {
1085
1085
  context: p
1086
1086
  };
1087
1087
  }
1088
- const _s = "parser", ds = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
1089
- function ms(e, t, n) {
1088
+ const fs = "parser", _s = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
1089
+ function ds(e, t, n) {
1090
1090
  switch (e) {
1091
1091
  case "\\\\":
1092
1092
  return "\\";
@@ -1099,13 +1099,13 @@ function ms(e, t, n) {
1099
1099
  }
1100
1100
  }
1101
1101
  }
1102
- function hs(e = {}) {
1102
+ function ms(e = {}) {
1103
1103
  const t = e.location !== !1, { onError: n } = e;
1104
1104
  function r(o, m, l, u, ...d) {
1105
1105
  const E = o.currentPosition();
1106
1106
  if (E.offset += u, E.column += u, n) {
1107
1107
  const g = t ? wt(l, E) : null, O = $e(m, g, {
1108
- domain: _s,
1108
+ domain: fs,
1109
1109
  args: d
1110
1110
  });
1111
1111
  n(O);
@@ -1132,7 +1132,7 @@ function hs(e = {}) {
1132
1132
  }
1133
1133
  function p(o, m) {
1134
1134
  const l = o.context(), { lastOffset: u, lastStartLoc: d } = l, E = a(9, u, d);
1135
- return E.value = m.replace(ds, ms), o.nextToken(), s(E, o.currentOffset(), o.currentPosition()), E;
1135
+ return E.value = m.replace(_s, ds), o.nextToken(), s(E, o.currentOffset(), o.currentPosition()), E;
1136
1136
  }
1137
1137
  function y(o) {
1138
1138
  const m = o.nextToken(), l = o.context(), { lastOffset: u, lastStartLoc: d } = l, E = a(8, u, d);
@@ -1225,7 +1225,7 @@ function hs(e = {}) {
1225
1225
  return m.currentType === 13 ? d : D(o, l, u, d);
1226
1226
  }
1227
1227
  function k(o) {
1228
- const m = fs(o, Q({}, e)), l = m.context(), u = a(0, l.offset, l.startLoc);
1228
+ const m = us(o, Q({}, e)), l = m.context(), u = a(0, l.offset, l.startLoc);
1229
1229
  return t && u.loc && (u.loc.source = o), u.body = A(m), e.onCacheKey && (u.cacheKey = e.onCacheKey(o)), l.currentType !== 13 && r(m, R.UNEXPECTED_LEXICAL_ANALYSIS, l.lastStartLoc, 0, o[l.offset] || ""), s(u, m.currentOffset(), m.currentPosition()), u;
1230
1230
  }
1231
1231
  return { parse: k };
@@ -1236,7 +1236,7 @@ function ce(e) {
1236
1236
  const t = (e.value || "").replace(/\r?\n/gu, "\\n");
1237
1237
  return t.length > 10 ? t.slice(0, 9) + "…" : t;
1238
1238
  }
1239
- function gs(e, t = {}) {
1239
+ function hs(e, t = {}) {
1240
1240
  const n = {
1241
1241
  ast: e,
1242
1242
  helpers: /* @__PURE__ */ new Set()
@@ -1288,8 +1288,8 @@ function zt(e, t) {
1288
1288
  break;
1289
1289
  }
1290
1290
  }
1291
- function ps(e, t = {}) {
1292
- const n = gs(e);
1291
+ function gs(e, t = {}) {
1292
+ const n = hs(e);
1293
1293
  n.helper(
1294
1294
  "normalize"
1295
1295
  /* HelperNameMap.NORMALIZE */
@@ -1297,7 +1297,7 @@ function ps(e, t = {}) {
1297
1297
  const r = n.context();
1298
1298
  e.helpers = Array.from(r.helpers);
1299
1299
  }
1300
- function Es(e) {
1300
+ function ps(e) {
1301
1301
  const t = e.body;
1302
1302
  return t.type === 2 ? yn(t) : t.cases.forEach((n) => yn(n)), e;
1303
1303
  }
@@ -1322,7 +1322,7 @@ function yn(e) {
1322
1322
  }
1323
1323
  }
1324
1324
  }
1325
- const bs = "minifier";
1325
+ const Es = "minifier";
1326
1326
  function Ue(e) {
1327
1327
  switch (e.t = e.type, e.type) {
1328
1328
  case 0: {
@@ -1370,14 +1370,14 @@ function Ue(e) {
1370
1370
  default:
1371
1371
  if (process.env.NODE_ENV !== "production")
1372
1372
  throw $e(R.UNHANDLED_MINIFIER_NODE_TYPE, null, {
1373
- domain: bs,
1373
+ domain: Es,
1374
1374
  args: [e.type]
1375
1375
  });
1376
1376
  }
1377
1377
  delete e.type;
1378
1378
  }
1379
- const vs = "parser";
1380
- function ys(e, t) {
1379
+ const bs = "parser";
1380
+ function vs(e, t) {
1381
1381
  const { filename: n, breakLineCode: r, needIndent: a } = t, s = t.location !== !1, i = {
1382
1382
  filename: n,
1383
1383
  code: "",
@@ -1419,14 +1419,14 @@ function ys(e, t) {
1419
1419
  needIndent: () => i.needIndent
1420
1420
  };
1421
1421
  }
1422
- function Ns(e, t) {
1422
+ function ys(e, t) {
1423
1423
  const { helper: n } = e;
1424
1424
  e.push(`${n(
1425
1425
  "linked"
1426
1426
  /* HelperNameMap.LINKED */
1427
1427
  )}(`), xe(e, t.key), t.modifier ? (e.push(", "), xe(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
1428
1428
  }
1429
- function Ts(e, t) {
1429
+ function Ns(e, t) {
1430
1430
  const { helper: n, needIndent: r } = e;
1431
1431
  e.push(`${n(
1432
1432
  "normalize"
@@ -1437,7 +1437,7 @@ function Ts(e, t) {
1437
1437
  e.push(", ");
1438
1438
  e.deindent(r()), e.push("])");
1439
1439
  }
1440
- function Ls(e, t) {
1440
+ function Ts(e, t) {
1441
1441
  const { helper: n, needIndent: r } = e;
1442
1442
  if (t.cases.length > 1) {
1443
1443
  e.push(`${n(
@@ -1450,23 +1450,23 @@ function Ls(e, t) {
1450
1450
  e.deindent(r()), e.push("])");
1451
1451
  }
1452
1452
  }
1453
- function Os(e, t) {
1453
+ function Ls(e, t) {
1454
1454
  t.body ? xe(e, t.body) : e.push("null");
1455
1455
  }
1456
1456
  function xe(e, t) {
1457
1457
  const { helper: n } = e;
1458
1458
  switch (t.type) {
1459
1459
  case 0:
1460
- Os(e, t);
1460
+ Ls(e, t);
1461
1461
  break;
1462
1462
  case 1:
1463
- Ls(e, t);
1463
+ Ts(e, t);
1464
1464
  break;
1465
1465
  case 2:
1466
- Ts(e, t);
1466
+ Ns(e, t);
1467
1467
  break;
1468
1468
  case 6:
1469
- Ns(e, t);
1469
+ ys(e, t);
1470
1470
  break;
1471
1471
  case 8:
1472
1472
  e.push(JSON.stringify(t.value), t);
@@ -1501,16 +1501,16 @@ function xe(e, t) {
1501
1501
  default:
1502
1502
  if (process.env.NODE_ENV !== "production")
1503
1503
  throw $e(R.UNHANDLED_CODEGEN_NODE_TYPE, null, {
1504
- domain: vs,
1504
+ domain: bs,
1505
1505
  args: [t.type]
1506
1506
  });
1507
1507
  }
1508
1508
  }
1509
- const Cs = (e, t = {}) => {
1509
+ const Os = (e, t = {}) => {
1510
1510
  const n = I(t.mode) ? t.mode : "normal", r = I(t.filename) ? t.filename : "message.intl";
1511
1511
  t.sourceMap;
1512
1512
  const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
1513
- `, s = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], c = ys(e, {
1513
+ `, s = t.needIndent ? t.needIndent : n !== "arrow", i = e.helpers || [], c = vs(e, {
1514
1514
  filename: r,
1515
1515
  breakLineCode: a,
1516
1516
  needIndent: s
@@ -1524,30 +1524,30 @@ const Cs = (e, t = {}) => {
1524
1524
  // eslint-disable-line @typescript-eslint/no-explicit-any
1525
1525
  };
1526
1526
  };
1527
- function Is(e, t = {}) {
1528
- const n = Q({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, c = hs(n).parse(e);
1529
- return r ? (s && Es(c), a && Ue(c), { ast: c, code: "" }) : (ps(c, n), Cs(c, n));
1527
+ function Cs(e, t = {}) {
1528
+ const n = Q({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, c = ms(n).parse(e);
1529
+ return r ? (s && ps(c), a && Ue(c), { ast: c, code: "" }) : (gs(c, n), Os(c, n));
1530
1530
  }
1531
1531
  /*!
1532
1532
  * core-base v11.1.1
1533
1533
  * (c) 2025 kazuya kawaguchi
1534
1534
  * Released under the MIT License.
1535
1535
  */
1536
- function As() {
1536
+ function Is() {
1537
1537
  typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ke().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ke().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
1538
1538
  }
1539
1539
  function At(e) {
1540
- return (n) => ks(n, e);
1540
+ return (n) => As(n, e);
1541
1541
  }
1542
- function ks(e, t) {
1543
- const n = Ds(t);
1542
+ function As(e, t) {
1543
+ const n = Ss(t);
1544
1544
  if (n == null)
1545
1545
  throw Je(
1546
1546
  0
1547
1547
  /* NodeTypes.Resource */
1548
1548
  );
1549
1549
  if (en(n) === 1) {
1550
- const s = Rs(n);
1550
+ const s = Ps(n);
1551
1551
  return e.plural(s.reduce((i, c) => [
1552
1552
  ...i,
1553
1553
  Nn(e, c)
@@ -1555,30 +1555,30 @@ function ks(e, t) {
1555
1555
  } else
1556
1556
  return Nn(e, n);
1557
1557
  }
1558
- const Ss = ["b", "body"];
1559
- function Ds(e) {
1560
- return Te(e, Ss);
1558
+ const ks = ["b", "body"];
1559
+ function Ss(e) {
1560
+ return Te(e, ks);
1561
1561
  }
1562
- const Ps = ["c", "cases"];
1563
- function Rs(e) {
1564
- return Te(e, Ps, []);
1562
+ const Ds = ["c", "cases"];
1563
+ function Ps(e) {
1564
+ return Te(e, Ds, []);
1565
1565
  }
1566
1566
  function Nn(e, t) {
1567
- const n = ws(t);
1567
+ const n = Ms(t);
1568
1568
  if (n != null)
1569
1569
  return e.type === "text" ? n : e.normalize([n]);
1570
1570
  {
1571
- const r = Ks(t).reduce((a, s) => [...a, Ft(e, s)], []);
1571
+ const r = Fs(t).reduce((a, s) => [...a, Ft(e, s)], []);
1572
1572
  return e.normalize(r);
1573
1573
  }
1574
1574
  }
1575
- const Ms = ["s", "static"];
1576
- function ws(e) {
1577
- return Te(e, Ms);
1575
+ const Rs = ["s", "static"];
1576
+ function Ms(e) {
1577
+ return Te(e, Rs);
1578
1578
  }
1579
- const Fs = ["i", "items"];
1580
- function Ks(e) {
1581
- return Te(e, Fs, []);
1579
+ const ws = ["i", "items"];
1580
+ function Fs(e) {
1581
+ return Te(e, ws, []);
1582
1582
  }
1583
1583
  function Ft(e, t) {
1584
1584
  const n = en(t);
@@ -1604,7 +1604,7 @@ function Ft(e, t) {
1604
1604
  throw Je(n);
1605
1605
  }
1606
1606
  case 6: {
1607
- const r = t, a = $s(r), s = Gs(r);
1607
+ const r = t, a = xs(r), s = Ws(r);
1608
1608
  return e.linked(Ft(e, s), a ? Ft(e, a) : void 0, e.type);
1609
1609
  }
1610
1610
  case 7:
@@ -1615,24 +1615,24 @@ function Ft(e, t) {
1615
1615
  throw new Error(`unhandled node on format message part: ${n}`);
1616
1616
  }
1617
1617
  }
1618
- const Us = ["t", "type"];
1618
+ const Ks = ["t", "type"];
1619
1619
  function en(e) {
1620
- return Te(e, Us);
1620
+ return Te(e, Ks);
1621
1621
  }
1622
- const Vs = ["v", "value"];
1622
+ const Us = ["v", "value"];
1623
1623
  function it(e, t) {
1624
- const n = Te(e, Vs);
1624
+ const n = Te(e, Us);
1625
1625
  if (n)
1626
1626
  return n;
1627
1627
  throw Je(t);
1628
1628
  }
1629
- const xs = ["m", "modifier"];
1630
- function $s(e) {
1631
- return Te(e, xs);
1629
+ const Vs = ["m", "modifier"];
1630
+ function xs(e) {
1631
+ return Te(e, Vs);
1632
1632
  }
1633
- const Ws = ["k", "key"];
1634
- function Gs(e) {
1635
- const t = Te(e, Ws);
1633
+ const $s = ["k", "key"];
1634
+ function Ws(e) {
1635
+ const t = Te(e, $s);
1636
1636
  if (t)
1637
1637
  return t;
1638
1638
  throw Je(
@@ -1651,31 +1651,31 @@ function Te(e, t, n) {
1651
1651
  function Je(e) {
1652
1652
  return new Error(`unhandled node type: ${e}`);
1653
1653
  }
1654
- const Bs = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1655
- function Ys(e, t) {
1656
- t && ss(e) && Ne(dt(Bs, { source: e }));
1654
+ const Gs = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
1655
+ function Bs(e, t) {
1656
+ t && rs(e) && Ne(dt(Gs, { source: e }));
1657
1657
  }
1658
- const Hs = (e) => e;
1658
+ const Ys = (e) => e;
1659
1659
  let ot = $();
1660
1660
  function ye(e) {
1661
1661
  return F(e) && en(e) === 0 && (ae(e, "b") || ae(e, "body"));
1662
1662
  }
1663
- function js(e, t = {}) {
1663
+ function Hs(e, t = {}) {
1664
1664
  let n = !1;
1665
- const r = t.onError || ns;
1665
+ const r = t.onError || ts;
1666
1666
  return t.onError = (a) => {
1667
1667
  n = !0, r(a);
1668
- }, { ...Is(e, t), detectError: n };
1668
+ }, { ...Cs(e, t), detectError: n };
1669
1669
  }
1670
1670
  // @__NO_SIDE_EFFECTS__
1671
- function Xs(e, t) {
1671
+ function js(e, t) {
1672
1672
  if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && I(e)) {
1673
1673
  const n = K(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
1674
- process.env.NODE_ENV !== "production" && Ys(e, n);
1675
- const a = (t.onCacheKey || Hs)(e), s = ot[a];
1674
+ process.env.NODE_ENV !== "production" && Bs(e, n);
1675
+ const a = (t.onCacheKey || Ys)(e), s = ot[a];
1676
1676
  if (s)
1677
1677
  return s;
1678
- const { ast: i, detectError: c } = js(e, {
1678
+ const { ast: i, detectError: c } = Hs(e, {
1679
1679
  ...t,
1680
1680
  location: process.env.NODE_ENV !== "production",
1681
1681
  jit: !0
@@ -1693,10 +1693,10 @@ function Xs(e, t) {
1693
1693
  }
1694
1694
  }
1695
1695
  let Qe = null;
1696
- function qs(e) {
1696
+ function Xs(e) {
1697
1697
  Qe = e;
1698
1698
  }
1699
- function Js(e, t, n) {
1699
+ function qs(e, t, n) {
1700
1700
  Qe && Qe.emit("i18n:init", {
1701
1701
  timestamp: Date.now(),
1702
1702
  i18n: e,
@@ -1704,12 +1704,12 @@ function Js(e, t, n) {
1704
1704
  meta: n
1705
1705
  });
1706
1706
  }
1707
- const Qs = /* @__PURE__ */ Zs("function:translate");
1708
- function Zs(e) {
1707
+ const Js = /* @__PURE__ */ Qs("function:translate");
1708
+ function Qs(e) {
1709
1709
  return (t) => Qe && Qe.emit(e, t);
1710
1710
  }
1711
1711
  const Z = {
1712
- INVALID_ARGUMENT: es,
1712
+ INVALID_ARGUMENT: zr,
1713
1713
  // 17
1714
1714
  INVALID_DATE_ARGUMENT: 18,
1715
1715
  INVALID_ISO_DATE_ARGUMENT: 19,
@@ -1717,11 +1717,11 @@ const Z = {
1717
1717
  NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
1718
1718
  NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
1719
1719
  NOT_SUPPORT_LOCALE_TYPE: 23
1720
- }, zs = 24;
1720
+ }, Zs = 24;
1721
1721
  function pe(e) {
1722
- return $e(e, null, process.env.NODE_ENV !== "production" ? { messages: ea } : void 0);
1722
+ return $e(e, null, process.env.NODE_ENV !== "production" ? { messages: zs } : void 0);
1723
1723
  }
1724
- const ea = {
1724
+ const zs = {
1725
1725
  [Z.INVALID_ARGUMENT]: "Invalid arguments",
1726
1726
  [Z.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
1727
1727
  [Z.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
@@ -1742,7 +1742,7 @@ function Tn(e) {
1742
1742
  return kt;
1743
1743
  if (e.constructor.name === "Function") {
1744
1744
  const t = e();
1745
- if (Jr(t))
1745
+ if (qr(t))
1746
1746
  throw pe(Z.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
1747
1747
  return kt = t;
1748
1748
  } else
@@ -1750,7 +1750,7 @@ function Tn(e) {
1750
1750
  } else
1751
1751
  throw pe(Z.NOT_SUPPORT_LOCALE_TYPE);
1752
1752
  }
1753
- function ta(e, t, n) {
1753
+ function ea(e, t, n) {
1754
1754
  return [.../* @__PURE__ */ new Set([
1755
1755
  n,
1756
1756
  ...q(t) ? t : F(t) ? Object.keys(t) : I(t) ? [t] : [n]
@@ -1774,20 +1774,20 @@ function Ln(e, t, n) {
1774
1774
  let r = !0;
1775
1775
  for (let a = 0; a < t.length && K(r); a++) {
1776
1776
  const s = t[a];
1777
- I(s) && (r = na(e, t[a], n));
1777
+ I(s) && (r = ta(e, t[a], n));
1778
1778
  }
1779
1779
  return r;
1780
1780
  }
1781
- function na(e, t, n) {
1781
+ function ta(e, t, n) {
1782
1782
  let r;
1783
1783
  const a = t.split("-");
1784
1784
  do {
1785
1785
  const s = a.join("-");
1786
- r = ra(e, s, n), a.splice(-1, 1);
1786
+ r = na(e, s, n), a.splice(-1, 1);
1787
1787
  } while (a.length && r === !0);
1788
1788
  return r;
1789
1789
  }
1790
- function ra(e, t, n) {
1790
+ function na(e, t, n) {
1791
1791
  let r = !1;
1792
1792
  if (!e.includes(t) && (r = !0, t)) {
1793
1793
  r = t[t.length - 1] !== "!";
@@ -1957,15 +1957,15 @@ Le[
1957
1957
  /* Actions.APPEND */
1958
1958
  ]
1959
1959
  };
1960
- const sa = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1961
- function aa(e) {
1962
- return sa.test(e);
1960
+ const ra = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
1961
+ function sa(e) {
1962
+ return ra.test(e);
1963
1963
  }
1964
- function ia(e) {
1964
+ function aa(e) {
1965
1965
  const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
1966
1966
  return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
1967
1967
  }
1968
- function oa(e) {
1968
+ function ia(e) {
1969
1969
  if (e == null)
1970
1970
  return "o";
1971
1971
  switch (e.charCodeAt(0)) {
@@ -2002,11 +2002,11 @@ function oa(e) {
2002
2002
  }
2003
2003
  return "i";
2004
2004
  }
2005
- function la(e) {
2005
+ function oa(e) {
2006
2006
  const t = e.trim();
2007
- return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : aa(t) ? ia(t) : "*" + t;
2007
+ return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : sa(t) ? aa(t) : "*" + t;
2008
2008
  }
2009
- function ca(e) {
2009
+ function la(e) {
2010
2010
  const t = [];
2011
2011
  let n = -1, r = 0, a = 0, s, i, c, f, p, y, N;
2012
2012
  const v = [];
@@ -2038,7 +2038,7 @@ function ca(e) {
2038
2038
  /* Actions.APPEND */
2039
2039
  ]();
2040
2040
  else {
2041
- if (a = 0, i === void 0 || (i = la(i), i === !1))
2041
+ if (a = 0, i === void 0 || (i = oa(i), i === !1))
2042
2042
  return !1;
2043
2043
  v[
2044
2044
  1
@@ -2056,21 +2056,21 @@ function ca(e) {
2056
2056
  }
2057
2057
  for (; r !== null; )
2058
2058
  if (n++, s = e[n], !(s === "\\" && C())) {
2059
- if (f = oa(s), N = Le[r], p = N[f] || N.l || 8, p === 8 || (r = p[0], p[1] !== void 0 && (y = v[p[1]], y && (c = s, y() === !1))))
2059
+ if (f = ia(s), N = Le[r], p = N[f] || N.l || 8, p === 8 || (r = p[0], p[1] !== void 0 && (y = v[p[1]], y && (c = s, y() === !1))))
2060
2060
  return;
2061
2061
  if (r === 7)
2062
2062
  return t;
2063
2063
  }
2064
2064
  }
2065
2065
  const On = /* @__PURE__ */ new Map();
2066
- function ua(e, t) {
2066
+ function ca(e, t) {
2067
2067
  return F(e) ? e[t] : null;
2068
2068
  }
2069
- function fa(e, t) {
2069
+ function ua(e, t) {
2070
2070
  if (!F(e))
2071
2071
  return null;
2072
2072
  let n = On.get(t);
2073
- if (n || (n = ca(t), n && On.set(t, n)), !n)
2073
+ if (n || (n = la(t), n && On.set(t, n)), !n)
2074
2074
  return null;
2075
2075
  const r = n.length;
2076
2076
  let a = e, s = 0;
@@ -2090,7 +2090,7 @@ const te = {
2090
2090
  CANNOT_FORMAT_DATE: 5,
2091
2091
  FALLBACK_TO_DATE_FORMAT: 6,
2092
2092
  EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
2093
- }, _a = 8, da = {
2093
+ }, fa = 8, _a = {
2094
2094
  [te.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
2095
2095
  [te.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
2096
2096
  [te.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
@@ -2100,10 +2100,10 @@ const te = {
2100
2100
  [te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
2101
2101
  };
2102
2102
  function De(e, ...t) {
2103
- return dt(da[e], ...t);
2103
+ return dt(_a[e], ...t);
2104
2104
  }
2105
- const ma = "11.1.1", ht = -1, Ze = "en-US", _t = "", Cn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
2106
- function ha() {
2105
+ const da = "11.1.1", ht = -1, Ze = "en-US", _t = "", Cn = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
2106
+ function ma() {
2107
2107
  return {
2108
2108
  upper: (e, t) => t === "text" && I(e) ? e.toUpperCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
2109
2109
  lower: (e, t) => t === "text" && I(e) ? e.toLowerCase() : t === "vnode" && F(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
@@ -2111,30 +2111,30 @@ function ha() {
2111
2111
  };
2112
2112
  }
2113
2113
  let sr;
2114
- function ga(e) {
2114
+ function ha(e) {
2115
2115
  sr = e;
2116
2116
  }
2117
2117
  let ar;
2118
- function pa(e) {
2118
+ function ga(e) {
2119
2119
  ar = e;
2120
2120
  }
2121
2121
  let ir;
2122
- function Ea(e) {
2122
+ function pa(e) {
2123
2123
  ir = e;
2124
2124
  }
2125
2125
  let or = null;
2126
- const ba = /* @__NO_SIDE_EFFECTS__ */ (e) => {
2126
+ const Ea = /* @__NO_SIDE_EFFECTS__ */ (e) => {
2127
2127
  or = e;
2128
- }, va = /* @__NO_SIDE_EFFECTS__ */ () => or;
2128
+ }, ba = /* @__NO_SIDE_EFFECTS__ */ () => or;
2129
2129
  let lr = null;
2130
2130
  const In = (e) => {
2131
2131
  lr = e;
2132
- }, ya = () => lr;
2132
+ }, va = () => lr;
2133
2133
  let An = 0;
2134
- function Na(e = {}) {
2135
- const t = W(e.onWarn) ? e.onWarn : Ne, n = I(e.version) ? e.version : ma, r = I(e.locale) || W(e.locale) ? e.locale : Ze, a = W(r) ? Ze : r, s = q(e.fallbackLocale) || w(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, i = w(e.messages) ? e.messages : St(a), c = w(e.datetimeFormats) ? e.datetimeFormats : St(a), f = w(e.numberFormats) ? e.numberFormats : St(a), p = Q($(), e.modifiers, ha()), y = e.pluralRules || $(), N = W(e.missing) ? e.missing : null, v = K(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, C = K(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, A = !!e.unresolving, k = W(e.postTranslation) ? e.postTranslation : null, o = w(e.processor) ? e.processor : null, m = K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, l = !!e.escapeParameter, u = W(e.messageCompiler) ? e.messageCompiler : sr;
2134
+ function ya(e = {}) {
2135
+ const t = W(e.onWarn) ? e.onWarn : Ne, n = I(e.version) ? e.version : da, r = I(e.locale) || W(e.locale) ? e.locale : Ze, a = W(r) ? Ze : r, s = q(e.fallbackLocale) || w(e.fallbackLocale) || I(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, i = w(e.messages) ? e.messages : St(a), c = w(e.datetimeFormats) ? e.datetimeFormats : St(a), f = w(e.numberFormats) ? e.numberFormats : St(a), p = Q($(), e.modifiers, ma()), y = e.pluralRules || $(), N = W(e.missing) ? e.missing : null, v = K(e.missingWarn) || Ve(e.missingWarn) ? e.missingWarn : !0, C = K(e.fallbackWarn) || Ve(e.fallbackWarn) ? e.fallbackWarn : !0, D = !!e.fallbackFormat, A = !!e.unresolving, k = W(e.postTranslation) ? e.postTranslation : null, o = w(e.processor) ? e.processor : null, m = K(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, l = !!e.escapeParameter, u = W(e.messageCompiler) ? e.messageCompiler : sr;
2136
2136
  process.env.NODE_ENV !== "production" && W(e.messageCompiler) && Qt(De(te.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
2137
- const d = W(e.messageResolver) ? e.messageResolver : ar || ua, E = W(e.localeFallbacker) ? e.localeFallbacker : ir || ta, g = F(e.fallbackContext) ? e.fallbackContext : void 0, O = e, P = F(O.__datetimeFormatters) ? O.__datetimeFormatters : /* @__PURE__ */ new Map(), M = F(O.__numberFormatters) ? O.__numberFormatters : /* @__PURE__ */ new Map(), B = F(O.__meta) ? O.__meta : {};
2137
+ const d = W(e.messageResolver) ? e.messageResolver : ar || ca, E = W(e.localeFallbacker) ? e.localeFallbacker : ir || ea, g = F(e.fallbackContext) ? e.fallbackContext : void 0, O = e, P = F(O.__datetimeFormatters) ? O.__datetimeFormatters : /* @__PURE__ */ new Map(), M = F(O.__numberFormatters) ? O.__numberFormatters : /* @__PURE__ */ new Map(), B = F(O.__meta) ? O.__meta : {};
2138
2138
  An++;
2139
2139
  const x = {
2140
2140
  version: n,
@@ -2160,7 +2160,7 @@ function Na(e = {}) {
2160
2160
  onWarn: t,
2161
2161
  __meta: B
2162
2162
  };
2163
- return x.datetimeFormats = c, x.numberFormats = f, x.__datetimeFormatters = P, x.__numberFormatters = M, process.env.NODE_ENV !== "production" && (x.__v_emitter = O.__v_emitter != null ? O.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Js(x, n, B), x;
2163
+ return x.datetimeFormats = c, x.numberFormats = f, x.__datetimeFormatters = P, x.__numberFormatters = M, process.env.NODE_ENV !== "production" && (x.__v_emitter = O.__v_emitter != null ? O.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && qs(x, n, B), x;
2164
2164
  }
2165
2165
  const St = (e) => ({ [e]: $() });
2166
2166
  function gt(e, t) {
@@ -2193,7 +2193,7 @@ function Xe(e, t, n) {
2193
2193
  function ur(e, t) {
2194
2194
  return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
2195
2195
  }
2196
- function Ta(e, t) {
2196
+ function Na(e, t) {
2197
2197
  const n = t.indexOf(e);
2198
2198
  if (n === -1)
2199
2199
  return !1;
@@ -2281,7 +2281,7 @@ function Kt(...e) {
2281
2281
  } catch {
2282
2282
  throw pe(Z.INVALID_ISO_DATE_ARGUMENT);
2283
2283
  }
2284
- } else if (jr(t)) {
2284
+ } else if (Hr(t)) {
2285
2285
  if (isNaN(t.getTime()))
2286
2286
  throw pe(Z.INVALID_DATE_ARGUMENT);
2287
2287
  c = t;
@@ -2378,26 +2378,26 @@ function Rn(e, t, n) {
2378
2378
  r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
2379
2379
  }
2380
2380
  }
2381
- const La = (e) => e, Oa = (e) => "", Ca = "text", Ia = (e) => e.length === 0 ? "" : Jt(e), Aa = Qr;
2381
+ const Ta = (e) => e, La = (e) => "", Oa = "text", Ca = (e) => e.length === 0 ? "" : Jt(e), Ia = Jr;
2382
2382
  function Mn(e, t) {
2383
2383
  return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
2384
2384
  }
2385
- function ka(e) {
2385
+ function Aa(e) {
2386
2386
  const t = J(e.pluralIndex) ? e.pluralIndex : -1;
2387
2387
  return e.named && (J(e.named.count) || J(e.named.n)) ? J(e.named.count) ? e.named.count : J(e.named.n) ? e.named.n : t : t;
2388
2388
  }
2389
- function Sa(e, t) {
2389
+ function ka(e, t) {
2390
2390
  t.count || (t.count = e), t.n || (t.n = e);
2391
2391
  }
2392
- function Da(e = {}) {
2393
- const t = e.locale, n = ka(e), r = F(e.pluralRules) && I(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : Mn, a = F(e.pluralRules) && I(t) && W(e.pluralRules[t]) ? Mn : void 0, s = (o) => o[r(n, o.length, a)], i = e.list || [], c = (o) => i[o], f = e.named || $();
2394
- J(e.pluralIndex) && Sa(n, f);
2392
+ function Sa(e = {}) {
2393
+ const t = e.locale, n = Aa(e), r = F(e.pluralRules) && I(t) && W(e.pluralRules[t]) ? e.pluralRules[t] : Mn, a = F(e.pluralRules) && I(t) && W(e.pluralRules[t]) ? Mn : void 0, s = (o) => o[r(n, o.length, a)], i = e.list || [], c = (o) => i[o], f = e.named || $();
2394
+ J(e.pluralIndex) && ka(n, f);
2395
2395
  const p = (o) => f[o];
2396
2396
  function y(o, m) {
2397
2397
  const l = W(e.messages) ? e.messages(o, !!m) : F(e.messages) ? e.messages[o] : !1;
2398
- return l || (e.parent ? e.parent.message(o) : Oa);
2398
+ return l || (e.parent ? e.parent.message(o) : La);
2399
2399
  }
2400
- const N = (o) => e.modifiers ? e.modifiers[o] : La, v = w(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Ia, C = w(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Aa, D = w(e.processor) && I(e.processor.type) ? e.processor.type : Ca, k = {
2400
+ const N = (o) => e.modifiers ? e.modifiers[o] : Ta, v = w(e.processor) && W(e.processor.normalize) ? e.processor.normalize : Ca, C = w(e.processor) && W(e.processor.interpolate) ? e.processor.interpolate : Ia, D = w(e.processor) && I(e.processor.type) ? e.processor.type : Oa, k = {
2401
2401
  list: c,
2402
2402
  named: p,
2403
2403
  plural: s,
@@ -2422,7 +2422,7 @@ function Da(e = {}) {
2422
2422
  const wn = () => "", se = (e) => W(e);
2423
2423
  function Fn(e, ...t) {
2424
2424
  const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: i, messages: c } = e, [f, p] = Vt(...t), y = K(p.missingWarn) ? p.missingWarn : e.missingWarn, N = K(p.fallbackWarn) ? p.fallbackWarn : e.fallbackWarn, v = K(p.escapeParameter) ? p.escapeParameter : e.escapeParameter, C = !!p.resolvedMessage, D = I(p.default) || K(p.default) ? K(p.default) ? s ? f : () => f : p.default : n ? s ? f : () => f : null, A = n || D != null && (I(D) || W(D)), k = tn(e, p);
2425
- v && Pa(p);
2425
+ v && Da(p);
2426
2426
  let [o, m, l] = C ? [
2427
2427
  f,
2428
2428
  k,
@@ -2438,7 +2438,7 @@ function Fn(e, ...t) {
2438
2438
  }, O = se(u) ? u : hr(e, f, m, u, d, g);
2439
2439
  if (E)
2440
2440
  return u;
2441
- const P = Fa(e, m, l, p), M = Da(P), B = Ra(e, O, M), x = r ? r(B, f) : B;
2441
+ const P = wa(e, m, l, p), M = Sa(P), B = Pa(e, O, M), x = r ? r(B, f) : B;
2442
2442
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
2443
2443
  const oe = {
2444
2444
  timestamp: Date.now(),
@@ -2447,11 +2447,11 @@ function Fn(e, ...t) {
2447
2447
  format: I(u) ? u : se(u) ? u.source : "",
2448
2448
  message: x
2449
2449
  };
2450
- oe.meta = Q({}, e.__meta, /* @__PURE__ */ va() || {}), Qs(oe);
2450
+ oe.meta = Q({}, e.__meta, /* @__PURE__ */ ba() || {}), Js(oe);
2451
2451
  }
2452
2452
  return x;
2453
2453
  }
2454
- function Pa(e) {
2454
+ function Da(e) {
2455
2455
  q(e.list) ? e.list = e.list.map((t) => I(t) ? gn(t) : t) : F(e.named) && Object.keys(e.named).forEach((t) => {
2456
2456
  I(e.named[t]) && (e.named[t] = gn(e.named[t]));
2457
2457
  });
@@ -2488,7 +2488,7 @@ function mr(e, t, n, r, a, s) {
2488
2488
  }
2489
2489
  if (I(C) || ye(C) || se(C))
2490
2490
  break;
2491
- if (!Ta(v, y)) {
2491
+ if (!Na(v, y)) {
2492
2492
  const d = nn(
2493
2493
  e,
2494
2494
  // eslint-disable-line @typescript-eslint/no-explicit-any
@@ -2515,7 +2515,7 @@ function hr(e, t, n, r, a, s) {
2515
2515
  }
2516
2516
  let f = null, p, y;
2517
2517
  process.env.NODE_ENV !== "production" && ie && (f = window.performance.now(), p = "intlify-message-compilation-start", y = "intlify-message-compilation-end", re && re(p));
2518
- const N = i(r, Ma(e, n, a, r, c, s));
2518
+ const N = i(r, Ra(e, n, a, r, c, s));
2519
2519
  if (process.env.NODE_ENV !== "production" && ie) {
2520
2520
  const v = window.performance.now(), C = e.__v_emitter;
2521
2521
  C && f && C.emit("message-compilation", {
@@ -2527,7 +2527,7 @@ function hr(e, t, n, r, a, s) {
2527
2527
  }
2528
2528
  return N.locale = n, N.key = t, N.source = r, N;
2529
2529
  }
2530
- function Ra(e, t, n) {
2530
+ function Pa(e, t, n) {
2531
2531
  let r = null, a, s;
2532
2532
  process.env.NODE_ENV !== "production" && ie && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", re && re(a));
2533
2533
  const i = t(n);
@@ -2549,14 +2549,14 @@ function Vt(...e) {
2549
2549
  const s = J(t) ? String(t) : (se(t), t);
2550
2550
  return J(n) ? a.plural = n : I(n) ? a.default = n : w(n) && !mt(n) ? a.named = n : q(n) && (a.list = n), J(r) ? a.plural = r : I(r) ? a.default = r : w(r) && Q(a, r), [s, a];
2551
2551
  }
2552
- function Ma(e, t, n, r, a, s) {
2552
+ function Ra(e, t, n, r, a, s) {
2553
2553
  return {
2554
2554
  locale: t,
2555
2555
  key: n,
2556
2556
  warnHtmlMessage: a,
2557
2557
  onError: (i) => {
2558
2558
  if (s && s(i), process.env.NODE_ENV !== "production") {
2559
- const c = wa(r), f = `Message compilation error: ${i.message}`, p = i.location && c && Zr(c, i.location.start.offset, i.location.end.offset), y = e.__v_emitter;
2559
+ const c = Ma(r), f = `Message compilation error: ${i.message}`, p = i.location && c && Qr(c, i.location.start.offset, i.location.end.offset), y = e.__v_emitter;
2560
2560
  y && c && y.emit("compile-error", {
2561
2561
  message: c,
2562
2562
  error: i.message,
@@ -2568,16 +2568,16 @@ ${p}` : f);
2568
2568
  } else
2569
2569
  throw i;
2570
2570
  },
2571
- onCacheKey: (i) => Yr(t, n, i)
2571
+ onCacheKey: (i) => Br(t, n, i)
2572
2572
  };
2573
2573
  }
2574
- function wa(e) {
2574
+ function Ma(e) {
2575
2575
  if (I(e))
2576
2576
  return e;
2577
2577
  if (e.loc && e.loc.source)
2578
2578
  return e.loc.source;
2579
2579
  }
2580
- function Fa(e, t, n, r) {
2580
+ function wa(e, t, n, r) {
2581
2581
  const { modifiers: a, pluralRules: s, messageResolver: i, fallbackLocale: c, fallbackWarn: f, missingWarn: p, fallbackContext: y } = e, v = {
2582
2582
  locale: t,
2583
2583
  modifiers: a,
@@ -2607,23 +2607,23 @@ function Fa(e, t, n, r) {
2607
2607
  };
2608
2608
  return e.processor && (v.processor = e.processor), r.list && (v.list = r.list), r.named && (v.named = r.named), J(r.plural) && (v.pluralIndex = r.plural), v;
2609
2609
  }
2610
- As();
2611
- function Ka() {
2610
+ Is();
2611
+ function Fa() {
2612
2612
  return gr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
2613
2613
  }
2614
2614
  function gr() {
2615
2615
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
2616
2616
  }
2617
- const Ua = typeof Proxy == "function", Va = "devtools-plugin:setup", xa = "plugin:settings:set";
2617
+ const Ka = typeof Proxy == "function", Ua = "devtools-plugin:setup", Va = "plugin:settings:set";
2618
2618
  let Fe, xt;
2619
- function $a() {
2619
+ function xa() {
2620
2620
  var e;
2621
2621
  return Fe !== void 0 || (typeof window < "u" && window.performance ? (Fe = !0, xt = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Fe = !0, xt = globalThis.perf_hooks.performance) : Fe = !1), Fe;
2622
2622
  }
2623
- function Wa() {
2624
- return $a() ? xt.now() : Date.now();
2623
+ function $a() {
2624
+ return xa() ? xt.now() : Date.now();
2625
2625
  }
2626
- class Ga {
2626
+ class Wa {
2627
2627
  constructor(t, n) {
2628
2628
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
2629
2629
  const r = {};
@@ -2651,9 +2651,9 @@ class Ga {
2651
2651
  s = i;
2652
2652
  },
2653
2653
  now() {
2654
- return Wa();
2654
+ return $a();
2655
2655
  }
2656
- }, n && n.on(xa, (i, c) => {
2656
+ }, n && n.on(Va, (i, c) => {
2657
2657
  i === this.plugin.id && this.fallbacks.setSettings(c);
2658
2658
  }), this.proxiedOn = new Proxy({}, {
2659
2659
  get: (i, c) => this.target ? this.target.on[c] : (...f) => {
@@ -2685,12 +2685,12 @@ class Ga {
2685
2685
  n.resolve(await this.target[n.method](...n.args));
2686
2686
  }
2687
2687
  }
2688
- function Ba(e, t) {
2689
- const n = e, r = gr(), a = Ka(), s = Ua && n.enableEarlyProxy;
2688
+ function Ga(e, t) {
2689
+ const n = e, r = gr(), a = Fa(), s = Ka && n.enableEarlyProxy;
2690
2690
  if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
2691
- a.emit(Va, e, t);
2691
+ a.emit(Ua, e, t);
2692
2692
  else {
2693
- const i = s ? new Ga(n, a) : null;
2693
+ const i = s ? new Wa(n, a) : null;
2694
2694
  (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
2695
2695
  pluginDescriptor: n,
2696
2696
  setupFn: t,
@@ -2703,13 +2703,13 @@ function Ba(e, t) {
2703
2703
  * (c) 2025 kazuya kawaguchi
2704
2704
  * Released under the MIT License.
2705
2705
  */
2706
- const Ya = "11.1.1";
2707
- function Ha() {
2706
+ const Ba = "11.1.1";
2707
+ function Ya() {
2708
2708
  typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (ke().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (ke().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (ke().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (ke().__INTLIFY_PROD_DEVTOOLS__ = !1);
2709
2709
  }
2710
2710
  const G = {
2711
2711
  // composer module errors
2712
- UNEXPECTED_RETURN_TYPE: zs,
2712
+ UNEXPECTED_RETURN_TYPE: Zs,
2713
2713
  // 24
2714
2714
  // legacy module errors
2715
2715
  INVALID_ARGUMENT: 25,
@@ -2730,9 +2730,9 @@ const G = {
2730
2730
  NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
2731
2731
  };
2732
2732
  function ne(e, ...t) {
2733
- return $e(e, null, process.env.NODE_ENV !== "production" ? { messages: ja, args: t } : void 0);
2733
+ return $e(e, null, process.env.NODE_ENV !== "production" ? { messages: Ha, args: t } : void 0);
2734
2734
  }
2735
- const ja = {
2735
+ const Ha = {
2736
2736
  [G.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
2737
2737
  [G.INVALID_ARGUMENT]: "Invalid argument",
2738
2738
  [G.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
@@ -2745,7 +2745,7 @@ const ja = {
2745
2745
  [G.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
2746
2746
  [G.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
2747
2747
  }, $t = /* @__PURE__ */ me("__translateVNode"), Wt = /* @__PURE__ */ me("__datetimeParts"), Gt = /* @__PURE__ */ me("__numberParts"), Pe = /* @__PURE__ */ me("__enableEmitter"), ze = /* @__PURE__ */ me("__disableEmitter"), pr = me("__setPluralRules"), Er = /* @__PURE__ */ me("__injectWithOption"), Bt = /* @__PURE__ */ me("__dispose"), de = {
2748
- FALLBACK_TO_ROOT: _a,
2748
+ FALLBACK_TO_ROOT: fa,
2749
2749
  // 8
2750
2750
  NOT_FOUND_PARENT_SCOPE: 9,
2751
2751
  IGNORE_OBJ_FLATTEN: 10,
@@ -2757,7 +2757,7 @@ const ja = {
2757
2757
  * @deprecated will be removed at vue-i18n v12
2758
2758
  */
2759
2759
  DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12
2760
- }, Xa = {
2760
+ }, ja = {
2761
2761
  [de.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
2762
2762
  [de.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
2763
2763
  [de.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
@@ -2772,7 +2772,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
2772
2772
  [de.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead."
2773
2773
  };
2774
2774
  function nt(e, ...t) {
2775
- return dt(Xa[e], ...t);
2775
+ return dt(ja[e], ...t);
2776
2776
  }
2777
2777
  function et(e) {
2778
2778
  if (!F(e))
@@ -2841,12 +2841,12 @@ function vr(e, t, n) {
2841
2841
  function Kn(e) {
2842
2842
  return ue(Fr, null, e, 0);
2843
2843
  }
2844
- const Un = "__INTLIFY_META__", Vn = () => [], qa = () => !1;
2844
+ const Un = "__INTLIFY_META__", Vn = () => [], Xa = () => !1;
2845
2845
  let xn = 0;
2846
2846
  function $n(e) {
2847
2847
  return (t, n, r, a) => e(n, r, qe() || void 0, a);
2848
2848
  }
2849
- const Ja = /* @__NO_SIDE_EFFECTS__ */ () => {
2849
+ const qa = /* @__NO_SIDE_EFFECTS__ */ () => {
2850
2850
  const e = qe();
2851
2851
  let t = null;
2852
2852
  return e && (t = br(e)[Un]) ? { [Un]: t } : null;
@@ -2867,7 +2867,7 @@ function sn(e = {}) {
2867
2867
  g = (() => {
2868
2868
  r && In(null);
2869
2869
  const b = {
2870
- version: Ya,
2870
+ version: Ba,
2871
2871
  locale: c.value,
2872
2872
  fallbackLocale: f.value,
2873
2873
  messages: p.value,
@@ -2886,7 +2886,7 @@ function sn(e = {}) {
2886
2886
  __meta: { framework: "vue" }
2887
2887
  };
2888
2888
  b.datetimeFormats = y.value, b.numberFormats = N.value, b.__datetimeFormatters = w(g) ? g.__datetimeFormatters : void 0, b.__numberFormatters = w(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (b.__v_emitter = w(g) ? g.__v_emitter : void 0);
2889
- const L = Na(b);
2889
+ const L = ya(b);
2890
2890
  return r && In(L), L;
2891
2891
  })(), Xe(g, c.value, f.value);
2892
2892
  function P() {
@@ -2928,7 +2928,7 @@ function sn(e = {}) {
2928
2928
  P();
2929
2929
  let we;
2930
2930
  try {
2931
- process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = t ? ya() : void 0), we = b(g);
2931
+ process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = t ? va() : void 0), we = b(g);
2932
2932
  } finally {
2933
2933
  process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = void 0);
2934
2934
  }
@@ -3004,7 +3004,7 @@ function sn(e = {}) {
3004
3004
  return !1;
3005
3005
  const V = I(L) ? L : c.value, j = Ce(V), Ie = g.messageResolver(j, b);
3006
3006
  return ye(Ie) || se(Ie) || I(Ie);
3007
- }, () => [b], "translate exists", (V) => Reflect.apply(V.te, V, [b, L]), qa, (V) => K(V));
3007
+ }, () => [b], "translate exists", (V) => Reflect.apply(V.te, V, [b, L]), Xa, (V) => K(V));
3008
3008
  }
3009
3009
  function Be(b) {
3010
3010
  let L = null;
@@ -3144,16 +3144,16 @@ const yr = "vue-i18n: composer properties", Dt = {
3144
3144
  "vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
3145
3145
  "vue-i18n-resource-inspector": "Vue I18n DevTools",
3146
3146
  "vue-i18n-timeline": "Vue I18n"
3147
- }, Qa = {
3147
+ }, Ja = {
3148
3148
  "vue-i18n-resource-inspector": "Search for scopes ..."
3149
- }, Za = {
3149
+ }, Qa = {
3150
3150
  "vue-i18n-timeline": 16764185
3151
3151
  };
3152
3152
  let Yt;
3153
- async function za(e, t) {
3153
+ async function Za(e, t) {
3154
3154
  return new Promise((n, r) => {
3155
3155
  try {
3156
- Ba({
3156
+ Ga({
3157
3157
  id: "vue-devtools-plugin-vue-i18n",
3158
3158
  label: Dt["vue-devtools-plugin-vue-i18n"],
3159
3159
  packageName: "vue-i18n",
@@ -3164,36 +3164,36 @@ async function za(e, t) {
3164
3164
  // eslint-disable-line @typescript-eslint/no-explicit-any
3165
3165
  }, (a) => {
3166
3166
  Yt = a, a.on.visitComponentTree(({ componentInstance: i, treeNode: c }) => {
3167
- ei(i, c, t);
3167
+ za(i, c, t);
3168
3168
  }), a.on.inspectComponent(({ componentInstance: i, instanceData: c }) => {
3169
3169
  i.vnode.el && i.vnode.el.__VUE_I18N__ && c && (t.mode === "legacy" ? i.vnode.el.__VUE_I18N__ !== t.global.__composer && Wn(c, i.vnode.el.__VUE_I18N__) : Wn(c, i.vnode.el.__VUE_I18N__));
3170
3170
  }), a.addInspector({
3171
3171
  id: "vue-i18n-resource-inspector",
3172
3172
  label: Dt["vue-i18n-resource-inspector"],
3173
3173
  icon: "language",
3174
- treeFilterPlaceholder: Qa["vue-i18n-resource-inspector"]
3174
+ treeFilterPlaceholder: Ja["vue-i18n-resource-inspector"]
3175
3175
  }), a.on.getInspectorTree((i) => {
3176
- i.app === e && i.inspectorId === "vue-i18n-resource-inspector" && ai(i, t);
3176
+ i.app === e && i.inspectorId === "vue-i18n-resource-inspector" && si(i, t);
3177
3177
  });
3178
3178
  const s = /* @__PURE__ */ new Map();
3179
3179
  a.on.getInspectorState(async (i) => {
3180
3180
  if (i.app === e && i.inspectorId === "vue-i18n-resource-inspector")
3181
- if (a.unhighlightElement(), oi(i, t), i.nodeId === "global") {
3181
+ if (a.unhighlightElement(), ii(i, t), i.nodeId === "global") {
3182
3182
  if (!s.has(i.app)) {
3183
3183
  const [c] = await a.getComponentInstances(i.app);
3184
3184
  s.set(i.app, c);
3185
3185
  }
3186
3186
  a.highlightElement(s.get(i.app));
3187
3187
  } else {
3188
- const c = ii(i.nodeId, t);
3188
+ const c = ai(i.nodeId, t);
3189
3189
  c && a.highlightElement(c);
3190
3190
  }
3191
3191
  }), a.on.editInspectorState((i) => {
3192
- i.app === e && i.inspectorId === "vue-i18n-resource-inspector" && ci(i, t);
3192
+ i.app === e && i.inspectorId === "vue-i18n-resource-inspector" && li(i, t);
3193
3193
  }), a.addTimelineLayer({
3194
3194
  id: "vue-i18n-timeline",
3195
3195
  label: Dt["vue-i18n-timeline"],
3196
- color: Za["vue-i18n-timeline"]
3196
+ color: Qa["vue-i18n-timeline"]
3197
3197
  }), n(!0);
3198
3198
  });
3199
3199
  } catch (a) {
@@ -3204,7 +3204,7 @@ async function za(e, t) {
3204
3204
  function Nr(e) {
3205
3205
  return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
3206
3206
  }
3207
- function ei(e, t, n) {
3207
+ function za(e, t, n) {
3208
3208
  const r = n.mode === "composition" ? n.global : n.global.__composer;
3209
3209
  if (e && e.vnode.el && e.vnode.el.__VUE_I18N__ && e.vnode.el.__VUE_I18N__ !== r) {
3210
3210
  const a = {
@@ -3258,30 +3258,30 @@ function an(e) {
3258
3258
  const t = {};
3259
3259
  return Object.keys(e).forEach((n) => {
3260
3260
  const r = e[n];
3261
- W(r) && "source" in r ? t[n] = si(r) : ye(r) && r.loc && r.loc.source ? t[n] = r.loc.source : F(r) ? t[n] = an(r) : t[n] = r;
3261
+ W(r) && "source" in r ? t[n] = ri(r) : ye(r) && r.loc && r.loc.source ? t[n] = r.loc.source : F(r) ? t[n] = an(r) : t[n] = r;
3262
3262
  }), t;
3263
3263
  }
3264
- const ti = {
3264
+ const ei = {
3265
3265
  "<": "&lt;",
3266
3266
  ">": "&gt;",
3267
3267
  '"': "&quot;",
3268
3268
  "&": "&amp;"
3269
3269
  };
3270
+ function ti(e) {
3271
+ return e.replace(/[<>"&]/g, ni);
3272
+ }
3270
3273
  function ni(e) {
3271
- return e.replace(/[<>"&]/g, ri);
3274
+ return ei[e] || e;
3272
3275
  }
3273
3276
  function ri(e) {
3274
- return ti[e] || e;
3275
- }
3276
- function si(e) {
3277
3277
  return {
3278
3278
  _custom: {
3279
3279
  type: "function",
3280
- display: `<span>ƒ</span> ${e.source ? `("${ni(e.source)}")` : "(?)"}`
3280
+ display: `<span>ƒ</span> ${e.source ? `("${ti(e.source)}")` : "(?)"}`
3281
3281
  }
3282
3282
  };
3283
3283
  }
3284
- function ai(e, t) {
3284
+ function si(e, t) {
3285
3285
  e.rootNodes.push({
3286
3286
  id: "global",
3287
3287
  label: "Global Scope"
@@ -3295,7 +3295,7 @@ function ai(e, t) {
3295
3295
  });
3296
3296
  }
3297
3297
  }
3298
- function ii(e, t) {
3298
+ function ai(e, t) {
3299
3299
  let n = null;
3300
3300
  if (e !== "global") {
3301
3301
  for (const [r, a] of t.__instances.entries())
@@ -3314,11 +3314,11 @@ function Tr(e, t) {
3314
3314
  return n ? t.mode === "composition" ? n : n.__composer : null;
3315
3315
  }
3316
3316
  }
3317
- function oi(e, t) {
3317
+ function ii(e, t) {
3318
3318
  const n = Tr(e.nodeId, t);
3319
- return n && (e.state = li(n)), null;
3319
+ return n && (e.state = oi(n)), null;
3320
3320
  }
3321
- function li(e) {
3321
+ function oi(e) {
3322
3322
  const t = {}, n = "Locale related info", r = [
3323
3323
  {
3324
3324
  type: n,
@@ -3393,14 +3393,14 @@ function tt(e, t) {
3393
3393
  });
3394
3394
  }
3395
3395
  }
3396
- function ci(e, t) {
3396
+ function li(e, t) {
3397
3397
  const n = Tr(e.nodeId, t);
3398
3398
  if (n) {
3399
3399
  const [r] = e.path;
3400
3400
  r === "locale" && I(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (I(e.state.value) || q(e.state.value) || F(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && K(e.state.value) && (n.inheritLocale = e.state.value);
3401
3401
  }
3402
3402
  }
3403
- function ui(e) {
3403
+ function ci(e) {
3404
3404
  const t = I(e.locale) ? e.locale : Ze, n = I(e.fallbackLocale) || q(e.fallbackLocale) || w(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = W(e.missing) ? e.missing : void 0, a = K(e.silentTranslationWarn) || Ve(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = K(e.silentFallbackWarn) || Ve(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, i = K(e.fallbackRoot) ? e.fallbackRoot : !0, c = !!e.formatFallbackMessages, f = w(e.modifiers) ? e.modifiers : {}, p = e.pluralizationRules, y = W(e.postTranslation) ? e.postTranslation : void 0, N = I(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, v = !!e.escapeParameterHtml, C = K(e.sync) ? e.sync : !0;
3405
3405
  let D = e.messages;
3406
3406
  if (w(e.sharedMessages)) {
@@ -3436,7 +3436,7 @@ function ui(e) {
3436
3436
  };
3437
3437
  }
3438
3438
  function Ht(e = {}) {
3439
- const t = sn(ui(e)), { __extender: n } = e, r = {
3439
+ const t = sn(ci(e)), { __extender: n } = e, r = {
3440
3440
  // id
3441
3441
  id: t.id,
3442
3442
  // locale
@@ -3604,7 +3604,7 @@ function Ht(e = {}) {
3604
3604
  a[ze] && a[ze]();
3605
3605
  }), r;
3606
3606
  }
3607
- function fi(e, t, n) {
3607
+ function ui(e, t, n) {
3608
3608
  return {
3609
3609
  beforeCreate() {
3610
3610
  const r = qe();
@@ -3680,7 +3680,7 @@ const on = {
3680
3680
  type: Object
3681
3681
  }
3682
3682
  };
3683
- function _i({ slots: e }, t) {
3683
+ function fi({ slots: e }, t) {
3684
3684
  return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
3685
3685
  ...r,
3686
3686
  // prettier-ignore
@@ -3693,7 +3693,7 @@ function _i({ slots: e }, t) {
3693
3693
  function Lr() {
3694
3694
  return zn;
3695
3695
  }
3696
- const di = /* @__PURE__ */ Xt({
3696
+ const _i = /* @__PURE__ */ Xt({
3697
3697
  /* eslint-disable */
3698
3698
  name: "i18n-t",
3699
3699
  props: Q({
@@ -3716,12 +3716,12 @@ const di = /* @__PURE__ */ Xt({
3716
3716
  return () => {
3717
3717
  const s = Object.keys(n).filter((N) => N !== "_"), i = $();
3718
3718
  e.locale && (i.locale = e.locale), e.plural !== void 0 && (i.plural = I(e.plural) ? +e.plural : e.plural);
3719
- const c = _i(t, s), f = a[$t](e.keypath, c, i), p = Q($(), r), y = I(e.tag) || F(e.tag) ? e.tag : Lr();
3719
+ const c = fi(t, s), f = a[$t](e.keypath, c, i), p = Q($(), r), y = I(e.tag) || F(e.tag) ? e.tag : Lr();
3720
3720
  return Zn(y, p, f);
3721
3721
  };
3722
3722
  }
3723
- }), Bn = di;
3724
- function mi(e) {
3723
+ }), Bn = _i;
3724
+ function di(e) {
3725
3725
  return q(e) && !I(e[0]);
3726
3726
  }
3727
3727
  function Or(e, t, n, r) {
@@ -3734,13 +3734,13 @@ function Or(e, t, n, r) {
3734
3734
  let p = [i.key];
3735
3735
  q(f) ? p = f.map((v, C) => {
3736
3736
  const D = a[v.type], A = D ? D({ [v.type]: v.value, index: C, parts: f }) : [v.value];
3737
- return mi(A) && (A[0].key = `${v.type}-${C}`), A;
3737
+ return di(A) && (A[0].key = `${v.type}-${C}`), A;
3738
3738
  }) : I(f) && (p = [f]);
3739
3739
  const y = Q($(), s), N = I(e.tag) || F(e.tag) ? e.tag : Lr();
3740
3740
  return Zn(N, y, p);
3741
3741
  };
3742
3742
  }
3743
- const hi = /* @__PURE__ */ Xt({
3743
+ const mi = /* @__PURE__ */ Xt({
3744
3744
  /* eslint-disable */
3745
3745
  name: "i18n-n",
3746
3746
  props: Q({
@@ -3764,8 +3764,8 @@ const hi = /* @__PURE__ */ Xt({
3764
3764
  n[Gt](...r)
3765
3765
  ));
3766
3766
  }
3767
- }), Yn = hi;
3768
- function gi(e, t) {
3767
+ }), Yn = mi;
3768
+ function hi(e, t) {
3769
3769
  const n = e;
3770
3770
  if (e.mode === "composition")
3771
3771
  return n.__getInstance(t) || e.global;
@@ -3774,13 +3774,13 @@ function gi(e, t) {
3774
3774
  return r != null ? r.__composer : e.global.__composer;
3775
3775
  }
3776
3776
  }
3777
- function pi(e) {
3777
+ function gi(e) {
3778
3778
  const t = (i) => {
3779
3779
  process.env.NODE_ENV !== "production" && Qt(nt(de.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
3780
3780
  const { instance: c, value: f } = i;
3781
3781
  if (!c || !c.$)
3782
3782
  throw ne(G.UNEXPECTED_ERROR);
3783
- const p = gi(e, c.$), y = Hn(f);
3783
+ const p = hi(e, c.$), y = Hn(f);
3784
3784
  return [
3785
3785
  Reflect.apply(p.t, p, [...jn(y)]),
3786
3786
  p
@@ -3824,15 +3824,15 @@ function jn(e) {
3824
3824
  const { path: t, locale: n, args: r, choice: a, plural: s } = e, i = {}, c = r || {};
3825
3825
  return I(n) && (i.locale = n), J(a) && (i.plural = a), J(s) && (i.plural = s), [t, c, i];
3826
3826
  }
3827
- function Ei(e, t, ...n) {
3827
+ function pi(e, t, ...n) {
3828
3828
  const r = w(n[0]) ? n[0] : {};
3829
- (K(r.globalInstall) ? r.globalInstall : !0) && ([Bn.name, "I18nT"].forEach((s) => e.component(s, Bn)), [Yn.name, "I18nN"].forEach((s) => e.component(s, Yn)), [qn.name, "I18nD"].forEach((s) => e.component(s, qn))), e.directive("t", pi(t));
3829
+ (K(r.globalInstall) ? r.globalInstall : !0) && ([Bn.name, "I18nT"].forEach((s) => e.component(s, Bn)), [Yn.name, "I18nN"].forEach((s) => e.component(s, Yn)), [qn.name, "I18nD"].forEach((s) => e.component(s, qn))), e.directive("t", gi(t));
3830
3830
  }
3831
- const bi = /* @__PURE__ */ me("global-vue-i18n");
3832
- function vi(e = {}) {
3831
+ const Ei = /* @__PURE__ */ me("global-vue-i18n");
3832
+ function bi(e = {}) {
3833
3833
  const t = __VUE_I18N_LEGACY_API__ && K(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
3834
3834
  process.env.NODE_ENV !== "production" && t && Qt(nt(de.DEPRECATE_LEGACY_MODE));
3835
- const n = K(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] = yi(e, t), i = /* @__PURE__ */ me(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
3835
+ const n = K(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] = vi(e, t), i = /* @__PURE__ */ me(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
3836
3836
  function c(N) {
3837
3837
  return r.get(N) || null;
3838
3838
  }
@@ -3854,12 +3854,12 @@ function vi(e = {}) {
3854
3854
  y.__composerExtend = A.__composerExtend, y.__vueI18nExtend = A.__vueI18nExtend;
3855
3855
  }
3856
3856
  let C = null;
3857
- !t && n && (C = ki(N, y.global)), __VUE_I18N_FULL_INSTALL__ && Ei(N, y, ...v), __VUE_I18N_LEGACY_API__ && t && N.mixin(fi(s, s.__composer, y));
3857
+ !t && n && (C = Ai(N, y.global)), __VUE_I18N_FULL_INSTALL__ && pi(N, y, ...v), __VUE_I18N_LEGACY_API__ && t && N.mixin(ui(s, s.__composer, y));
3858
3858
  const D = N.unmount;
3859
3859
  if (N.unmount = () => {
3860
3860
  C && C(), y.dispose(), D();
3861
3861
  }, process.env.NODE_ENV !== "production") {
3862
- if (!await za(N, y))
3862
+ if (!await Za(N, y))
3863
3863
  throw ne(G.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
3864
3864
  const k = Zt();
3865
3865
  if (t) {
@@ -3896,43 +3896,43 @@ function ln(e = {}) {
3896
3896
  throw ne(G.MUST_BE_CALL_SETUP_TOP);
3897
3897
  if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
3898
3898
  throw ne(G.NOT_INSTALLED);
3899
- const n = Ni(t), r = Li(n), a = br(t), s = Ti(e, a);
3899
+ const n = yi(t), r = Ti(n), a = br(t), s = Ni(e, a);
3900
3900
  if (s === "global")
3901
3901
  return vr(r, e, a), r;
3902
3902
  if (s === "parent") {
3903
- let f = Oi(n, t, e.__useComponent);
3903
+ let f = Li(n, t, e.__useComponent);
3904
3904
  return f == null && (process.env.NODE_ENV !== "production" && Ne(nt(de.NOT_FOUND_PARENT_SCOPE)), f = r), f;
3905
3905
  }
3906
3906
  const i = n;
3907
3907
  let c = i.__getInstance(t);
3908
3908
  if (c == null) {
3909
3909
  const f = Q({}, e);
3910
- "__i18n" in a && (f.__i18n = a.__i18n), r && (f.__root = r), c = sn(f), i.__composerExtend && (c[Bt] = i.__composerExtend(c)), Ii(i, t, c), i.__setInstance(t, c);
3910
+ "__i18n" in a && (f.__i18n = a.__i18n), r && (f.__root = r), c = sn(f), i.__composerExtend && (c[Bt] = i.__composerExtend(c)), Ci(i, t, c), i.__setInstance(t, c);
3911
3911
  }
3912
3912
  return c;
3913
3913
  }
3914
- function yi(e, t) {
3914
+ function vi(e, t) {
3915
3915
  const n = kr(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => Ht(e)) : n.run(() => sn(e));
3916
3916
  if (r == null)
3917
3917
  throw ne(G.UNEXPECTED_ERROR);
3918
3918
  return [n, r];
3919
3919
  }
3920
- function Ni(e) {
3921
- const t = Rr(e.isCE ? bi : e.appContext.app.__VUE_I18N_SYMBOL__);
3920
+ function yi(e) {
3921
+ const t = Rr(e.isCE ? Ei : e.appContext.app.__VUE_I18N_SYMBOL__);
3922
3922
  if (!t)
3923
3923
  throw ne(e.isCE ? G.NOT_INSTALLED_WITH_PROVIDE : G.UNEXPECTED_ERROR);
3924
3924
  return t;
3925
3925
  }
3926
- function Ti(e, t) {
3926
+ function Ni(e, t) {
3927
3927
  return mt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
3928
3928
  }
3929
- function Li(e) {
3929
+ function Ti(e) {
3930
3930
  return e.mode === "composition" ? e.global : e.global.__composer;
3931
3931
  }
3932
- function Oi(e, t, n = !1) {
3932
+ function Li(e, t, n = !1) {
3933
3933
  let r = null;
3934
3934
  const a = t.root;
3935
- let s = Ci(t, n);
3935
+ let s = Oi(t, n);
3936
3936
  for (; s != null; ) {
3937
3937
  const i = e;
3938
3938
  if (e.mode === "composition")
@@ -3947,10 +3947,10 @@ function Oi(e, t, n = !1) {
3947
3947
  }
3948
3948
  return r;
3949
3949
  }
3950
- function Ci(e, t = !1) {
3950
+ function Oi(e, t = !1) {
3951
3951
  return e == null ? null : t && e.vnode.ctx || e.parent;
3952
3952
  }
3953
- function Ii(e, t, n) {
3953
+ function Ci(e, t, n) {
3954
3954
  let r = null;
3955
3955
  Mr(() => {
3956
3956
  if (process.env.NODE_ENV !== "production" && t.vnode.el) {
@@ -3965,14 +3965,14 @@ function Ii(e, t, n) {
3965
3965
  s && (s(), delete a[Bt]);
3966
3966
  }, t);
3967
3967
  }
3968
- const Ai = [
3968
+ const Ii = [
3969
3969
  "locale",
3970
3970
  "fallbackLocale",
3971
3971
  "availableLocales"
3972
3972
  ], Xn = ["t", "rt", "d", "n", "tm", "te"];
3973
- function ki(e, t) {
3973
+ function Ai(e, t) {
3974
3974
  const n = /* @__PURE__ */ Object.create(null);
3975
- return Ai.forEach((a) => {
3975
+ return Ii.forEach((a) => {
3976
3976
  const s = Object.getOwnPropertyDescriptor(t, a);
3977
3977
  if (!s)
3978
3978
  throw ne(G.UNEXPECTED_ERROR);
@@ -4001,7 +4001,7 @@ function ki(e, t) {
4001
4001
  });
4002
4002
  };
4003
4003
  }
4004
- const Si = /* @__PURE__ */ Xt({
4004
+ const ki = /* @__PURE__ */ Xt({
4005
4005
  /* eslint-disable */
4006
4006
  name: "i18n-d",
4007
4007
  props: Q({
@@ -4025,21 +4025,21 @@ const Si = /* @__PURE__ */ Xt({
4025
4025
  n[Wt](...r)
4026
4026
  ));
4027
4027
  }
4028
- }), qn = Si;
4029
- Ha();
4030
- ga(Xs);
4031
- pa(fa);
4032
- Ea(rr);
4028
+ }), qn = ki;
4029
+ Ya();
4030
+ ha(js);
4031
+ ga(ua);
4032
+ pa(rr);
4033
4033
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
4034
4034
  const e = ke();
4035
- e.__INTLIFY__ = !0, qs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
4035
+ e.__INTLIFY__ = !0, Xs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
4036
4036
  }
4037
4037
  process.env.NODE_ENV;
4038
4038
  var ft = { exports: {} };
4039
4039
  /*! store2 - v2.14.4 - 2024-12-26
4040
4040
  * Copyright (c) 2024 Nathan Bubna; Licensed MIT */
4041
4041
  var Pt = ft.exports, Jn;
4042
- function Di() {
4042
+ function Si() {
4043
4043
  return Jn || (Jn = 1, function(e) {
4044
4044
  (function(t, n) {
4045
4045
  var r = {
@@ -4257,13 +4257,13 @@ function Di() {
4257
4257
  })(Pt, Pt && Pt.define);
4258
4258
  }(ft)), ft.exports;
4259
4259
  }
4260
- var Pi = Di();
4261
- const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4260
+ var Di = Si();
4261
+ const jt = /* @__PURE__ */ tr(Di), Pi = (e) => {
4262
4262
  const t = {};
4263
4263
  for (const n of e)
4264
4264
  t[n.key] = n.value;
4265
4265
  return t;
4266
- }, Mi = (e, t) => (t.forEach((n) => {
4266
+ }, Ri = (e, t) => (t.forEach((n) => {
4267
4267
  const r = X.find(e, { key: n.key });
4268
4268
  r ? X.merge(r, n) : e.push(n);
4269
4269
  }), e), pt = "https://test.ihotel.cn", Cr = async (e) => Re.get(pt + "/i18n-web/sysoption/getsupportedlangs", {
@@ -4288,17 +4288,19 @@ const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4288
4288
  }
4289
4289
  });
4290
4290
  p && p.result == 0 ? s(p.retVal) : s(p);
4291
- }), wi = async (e, t) => Re({
4291
+ }), Mi = async (e, t) => Re({
4292
4292
  url: pt + "/i18n-web/kv_translate/kv_translates",
4293
4293
  method: "POST",
4294
4294
  data: e,
4295
- headers: { token: t }
4296
- }), Fi = async (e, t) => Re({
4295
+ headers: { Authorization: t }
4296
+ }), wi = async (e, t) => Re({
4297
4297
  url: pt + "/i18n-web/kv_translate/batch",
4298
4298
  method: "POST",
4299
4299
  data: e,
4300
- headers: { token: t }
4301
- }), Ki = async ({ appCode: e, language: t = "zh-CN", token: n }) => new Promise(async (r, a) => {
4300
+ headers: {
4301
+ Authorization: t
4302
+ }
4303
+ }), Fi = async ({ appCode: e, language: t = "zh-CN", token: n }) => new Promise(async (r, a) => {
4302
4304
  const s = jt.namespace(`i18n_${e}`), i = {
4303
4305
  appCode: e,
4304
4306
  language: t,
@@ -4317,7 +4319,7 @@ const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4317
4319
  if (X.isEmpty(p.translatesDTOs))
4318
4320
  r(y);
4319
4321
  else {
4320
- const N = Mi(y, p.translatesDTOs), v = {
4322
+ const N = Ri(y, p.translatesDTOs), v = {
4321
4323
  lastPullDate: p.lastPullDate,
4322
4324
  translatesDTOs: N
4323
4325
  };
@@ -4325,11 +4327,12 @@ const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4325
4327
  }
4326
4328
  }
4327
4329
  }
4328
- }), Ui = {
4330
+ }), Ki = {
4329
4331
  data() {
4330
4332
  return {
4331
4333
  isModalVisible: !1,
4332
4334
  searchText: "",
4335
+ name: "",
4333
4336
  languages: [],
4334
4337
  data: []
4335
4338
  };
@@ -4369,7 +4372,6 @@ const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4369
4372
  },
4370
4373
  props: {
4371
4374
  appCode: String,
4372
- name: String,
4373
4375
  setLanguage: Function,
4374
4376
  token: String
4375
4377
  },
@@ -4377,8 +4379,10 @@ const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4377
4379
  closeModal() {
4378
4380
  this.searchText = "", this.isModalVisible = !1;
4379
4381
  },
4380
- openModal() {
4381
- this.isModalVisible || (this.isModalVisible = !0, this.init());
4382
+ openModal({
4383
+ name: e
4384
+ }) {
4385
+ this.isModalVisible || (this.isModalVisible = !0, this.name = e, this.init());
4382
4386
  },
4383
4387
  findShallowStringDiff(e, t) {
4384
4388
  const {
@@ -4409,7 +4413,7 @@ const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4409
4413
  }), c = this.findShallowStringDiff(s, i);
4410
4414
  n = X.concat(n, c);
4411
4415
  }
4412
- const r = await Fi({
4416
+ const r = await wi({
4413
4417
  appCode: this.appCode,
4414
4418
  language: this.language,
4415
4419
  data: n
@@ -4435,7 +4439,7 @@ const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4435
4439
  firstResult: 0,
4436
4440
  pageSize: 10,
4437
4441
  ...e
4438
- }, n = await wi(t, this.token);
4442
+ }, n = await Mi(t, this.token);
4439
4443
  n && (this.initialData = X.cloneDeep(n.retVal), this.data = n.retVal);
4440
4444
  },
4441
4445
  async init() {
@@ -4448,8 +4452,8 @@ const jt = /* @__PURE__ */ tr(Pi), Ri = (e) => {
4448
4452
  for (const [r, a] of t)
4449
4453
  n[r] = a;
4450
4454
  return n;
4451
- }, Vi = { class: "extra" }, xi = { class: "gc_i18n_page" }, $i = { style: { display: "flex" } };
4452
- function Wi(e, t, n, r, a, s) {
4455
+ }, Ui = { class: "extra" }, Vi = { class: "gc_i18n_page" }, xi = { style: { display: "flex" } };
4456
+ function $i(e, t, n, r, a, s) {
4453
4457
  const i = fe("Table"), c = fe("TabPane"), f = fe("Input"), p = fe("Tabs"), y = fe("Page"), N = fe("Button"), v = fe("Modal");
4454
4458
  return lt(), er(v, {
4455
4459
  modelValue: a.isModalVisible,
@@ -4465,7 +4469,7 @@ function Wi(e, t, n, r, a, s) {
4465
4469
  class: "gc_i18n_tabs"
4466
4470
  }, {
4467
4471
  extra: ve(() => [
4468
- Ke("div", Vi, [
4472
+ Ke("div", Ui, [
4469
4473
  ue(f, {
4470
4474
  prefix: "ios-search",
4471
4475
  placeholder: "请输入搜索内容",
@@ -4492,8 +4496,8 @@ function Wi(e, t, n, r, a, s) {
4492
4496
  ]),
4493
4497
  _: 1
4494
4498
  }),
4495
- Ke("div", xi, [
4496
- Ke("div", $i, [
4499
+ Ke("div", Vi, [
4500
+ Ke("div", xi, [
4497
4501
  ue(y, {
4498
4502
  modelValue: s.firstResult,
4499
4503
  "onUpdate:modelValue": t[1] || (t[1] = (C) => s.firstResult = C),
@@ -4530,7 +4534,7 @@ function Wi(e, t, n, r, a, s) {
4530
4534
  _: 1
4531
4535
  }, 8, ["modelValue"]);
4532
4536
  }
4533
- const Gi = /* @__PURE__ */ Ir(Ui, [["render", Wi]]), Bi = {
4537
+ const Wi = /* @__PURE__ */ Ir(Ki, [["render", $i]]), Gi = {
4534
4538
  name: "LangChange",
4535
4539
  data() {
4536
4540
  return {
@@ -4549,11 +4553,11 @@ const Gi = /* @__PURE__ */ Ir(Ui, [["render", Wi]]), Bi = {
4549
4553
  const e = await Cr();
4550
4554
  e && e.result === 0 && (this.languages = e.retVal);
4551
4555
  }
4552
- }, Yi = { key: 0 };
4553
- function Hi(e, t, n, r, a, s) {
4556
+ }, Bi = { key: 0 };
4557
+ function Yi(e, t, n, r, a, s) {
4554
4558
  const i = fe("Option"), c = fe("Select");
4555
4559
  return lt(), _n("div", null, [
4556
- n.more ? (lt(), _n("div", Yi, t[1] || (t[1] = [
4560
+ n.more ? (lt(), _n("div", Bi, t[1] || (t[1] = [
4557
4561
  Ke("span", null, "切换语种", -1)
4558
4562
  ]))) : (lt(), er(c, {
4559
4563
  key: 1,
@@ -4572,7 +4576,7 @@ function Hi(e, t, n, r, a, s) {
4572
4576
  }, 8, ["modelValue"]))
4573
4577
  ]);
4574
4578
  }
4575
- const ji = /* @__PURE__ */ Ir(Bi, [["render", Hi]]);
4579
+ const Hi = /* @__PURE__ */ Ir(Gi, [["render", Yi]]);
4576
4580
  _e.config({
4577
4581
  duration: 3
4578
4582
  });
@@ -4596,10 +4600,10 @@ Re.interceptors.response.use(
4596
4600
  content: "请求超时!"
4597
4601
  }) : _e.error({ content: e.message || "未知错误!" }), Promise.resolve(e))
4598
4602
  );
4599
- class Zi {
4603
+ class Qi {
4600
4604
  constructor(t = {}) {
4601
4605
  const { router: n, appCode: r, messages: a, token: s } = t;
4602
- this.token = s || jt.get("token"), this.appCode = r, this.router = n, this.locale = navigator.language || "zh-CN", this.modalLoad = !1, this.messages = a || {}, this.i18n = vi({
4606
+ this.token = s || jt.get("token"), this.appCode = r, this.router = n, this.locale = navigator.language || "zh-CN", this.modalLoad = !1, this.name = "", this.messages = a || {}, this.i18n = bi({
4603
4607
  locale: "zh-CN",
4604
4608
  globalInjection: !0,
4605
4609
  legacy: !1,
@@ -4624,47 +4628,47 @@ class Zi {
4624
4628
  return y;
4625
4629
  }, this.i18n.global.changeLocal = (c) => {
4626
4630
  this.setLanguage(c || this.locale);
4627
- }, n.beforeEach((c, f, p) => {
4631
+ }, this.createModal(), n.beforeEach(async (c, f, p) => {
4628
4632
  const { language: y, token: N } = c.query;
4629
- N && this.setToken(N), this.setLanguage(y), p();
4630
- }), n.afterEach((c, f) => {
4631
- Ur(() => {
4632
- this.configInstance ? this.configInstance.closeModal() : this.createModal(c.name);
4633
- });
4633
+ this.configInstance && this.configInstance.closeModal(), this.name = c.name, N && this.setToken(N), await this.setLanguage(y), p();
4634
+ }), Wr.bind("shift > t", (c) => {
4635
+ this.configInstance.openModal({ name: this.name });
4634
4636
  });
4635
4637
  }
4636
4638
  setToken(t) {
4637
4639
  this.token = t;
4638
4640
  }
4639
4641
  async setLanguage(t = "zh-CN") {
4640
- const n = await Ki({
4641
- appCode: this.appCode,
4642
- language: t,
4643
- token: this.token
4642
+ return new Promise(async (n, r) => {
4643
+ const a = await Fi({
4644
+ appCode: this.appCode,
4645
+ language: t,
4646
+ token: this.token
4647
+ });
4648
+ if (a) {
4649
+ const s = Pi(a);
4650
+ this.i18n.global.setLocaleMessage(
4651
+ t,
4652
+ X.assign({}, X.get(this.messages, t), s)
4653
+ );
4654
+ }
4655
+ this.locale = t, this.i18n.global.locale.value = t, n(!0);
4644
4656
  });
4645
- if (n) {
4646
- const r = Ri(n);
4647
- this.i18n.global.setLocaleMessage(
4648
- t,
4649
- X.assign({}, X.get(this.messages, t), r)
4650
- );
4651
- }
4652
- this.locale = t, this.i18n.global.locale.value = t;
4653
4657
  }
4654
4658
  createModal(t) {
4655
- this.modalLoad = !0, this.configInstance = Vr(Gi, {
4659
+ this.modalLoad = !0, this.configInstance = Ur(Wi, {
4656
4660
  appCode: this.appCode,
4657
4661
  token: this.token,
4658
4662
  setLanguage: this.setLanguage.bind(this, this.locale),
4659
- name: t
4660
- }).use(fn).mount(document.createElement("div")), Gr.bind("shift > t", (n) => {
4661
- this.configInstance.openModal();
4662
- });
4663
+ name: this.name
4664
+ }).use(fn).mount(document.createElement("div"));
4663
4665
  }
4664
4666
  install(t, { router: n }) {
4665
- t.use(this.i18n), t.use(fn), t.component("LangChange", ji);
4667
+ t.use(this.i18n), t.use(fn, {
4668
+ i18n: this.i18n
4669
+ }), t.component("LangChange", Hi);
4666
4670
  }
4667
4671
  }
4668
4672
  export {
4669
- Zi as default
4673
+ Qi as default
4670
4674
  };