china-mobile-international-custom-components 0.0.24 → 0.0.26
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/es/AvailableRangeSetting.mjs +3 -1
- package/es/PageContainer.mjs +230 -177
- package/es/assets/PageContainer.css +1 -1
- package/es/assets/index.css +1 -1
- package/es/index.mjs +323 -317
- package/index.css +1 -1
- package/lib/AvailableRangeSetting.js +1 -1
- package/lib/PageContainer.js +1 -1
- package/lib/assets/PageContainer.css +1 -1
- package/lib/assets/index.css +1 -1
- package/lib/index.js +6 -6
- package/package.json +2 -2
package/es/index.mjs
CHANGED
|
@@ -1,41 +1,44 @@
|
|
|
1
1
|
import { CustomToggle as Tr } from "./CustomToggle.mjs";
|
|
2
2
|
import { CustomTitle as br } from "./CustomTitle.mjs";
|
|
3
|
-
import { COLUMN_TYPES as Or,
|
|
4
|
-
import { l as
|
|
5
|
-
import { AvailableRangeSetting as
|
|
6
|
-
import { A as
|
|
7
|
-
import { ElMessageBox as
|
|
3
|
+
import { COLUMN_TYPES as Or, MODES as Ir, PageContainer as Cr } from "./PageContainer.mjs";
|
|
4
|
+
import { l as vr, a as Ar, n as Dr, M as Sr, N as Fr, S as Pr, T as yr, d as kr, e as Rr, f as Mr, h as wr, k as Ur, m as Vr, g as $r, j as xr, c as Br, b as Wr, i as Gr, p as Yr, t as Hr } from "./chunks/layout.BNqqXOrs.js";
|
|
5
|
+
import { AvailableRangeSetting as Kr } from "./AvailableRangeSetting.mjs";
|
|
6
|
+
import { A as jr, R as Xr, a as Jr, r as Qr } from "./chunks/index.39AUVSwV.js";
|
|
7
|
+
import { ElMessageBox as qr, dayjs as Zr } from "element-plus";
|
|
8
8
|
import * as Nt from "vue";
|
|
9
|
-
import { effectScope as
|
|
9
|
+
import { effectScope as zr, ref as ea, shallowRef as ta, computed as Ue, watch as It, isRef as na, defineComponent as Ut, h as wn, Fragment as Un, inject as ra, onMounted as aa, onUnmounted as sa, createVNode as oa, Text as la, getCurrentInstance as ia } from "vue";
|
|
10
10
|
const ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
11
|
__proto__: null,
|
|
12
|
-
AvailableRangePreview:
|
|
13
|
-
AvailableRangeSetting:
|
|
12
|
+
AvailableRangePreview: jr,
|
|
13
|
+
AvailableRangeSetting: Kr,
|
|
14
14
|
COLUMN_TYPES: Or,
|
|
15
|
-
CustomSidebar:
|
|
15
|
+
CustomSidebar: vr,
|
|
16
16
|
CustomTitle: br,
|
|
17
17
|
CustomToggle: Tr,
|
|
18
|
-
MENU_COLOR_STRATEGY:
|
|
19
|
-
MENU_LOADING_STATES:
|
|
20
|
-
MENU_TYPE:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
18
|
+
MENU_COLOR_STRATEGY: Ar,
|
|
19
|
+
MENU_LOADING_STATES: Dr,
|
|
20
|
+
MENU_TYPE: Sr,
|
|
21
|
+
MODES: Ir,
|
|
22
|
+
NODE_CLICK_TYPES: Fr,
|
|
23
|
+
PageContainer: Cr,
|
|
24
|
+
RANGE_TYPES: Xr,
|
|
25
|
+
SPECIAL_ROUTES: Pr,
|
|
26
|
+
TREE_PROPS: yr,
|
|
27
|
+
TagList: Jr,
|
|
28
|
+
collapseNodeKeys: kr,
|
|
29
|
+
expandNodeKeys: Rr,
|
|
30
|
+
findExpandPath: Mr,
|
|
31
|
+
findExpandPathById: wr,
|
|
32
|
+
findMenuByPath: Ur,
|
|
33
|
+
getFirstLeafMenu: Vr,
|
|
34
|
+
getMenuIconColorById: $r,
|
|
35
|
+
getParentNodeIdsById: xr,
|
|
36
|
+
isParentMenuActive: Br,
|
|
37
|
+
isParentRouteActive: Wr,
|
|
38
|
+
isPathInMenu: Gr,
|
|
39
|
+
processMenuTreeWithLeaf: Yr,
|
|
40
|
+
rangeOptions: Qr,
|
|
41
|
+
transformMenuData: Hr
|
|
39
42
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
40
43
|
function ue(e, t) {
|
|
41
44
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
@@ -55,11 +58,11 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
55
58
|
e.measure(t, n, r), e.clearMarks(n), e.clearMarks(r);
|
|
56
59
|
});
|
|
57
60
|
}
|
|
58
|
-
const
|
|
61
|
+
const ua = /\{([0-9a-zA-Z]+)\}/g;
|
|
59
62
|
function ze(e, ...t) {
|
|
60
|
-
return t.length === 1 && R(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(
|
|
63
|
+
return t.length === 1 && R(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(ua, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
|
|
61
64
|
}
|
|
62
|
-
const ce = (e, t = !1) => t ? Symbol.for(e) : Symbol(e),
|
|
65
|
+
const ce = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), ca = (e, t, n) => fa({ l: e, k: t, s: n }), fa = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), j = (e) => typeof e == "number" && isFinite(e), _a = (e) => $t(e) === "[object Date]", De = (e) => $t(e) === "[object RegExp]", et = (e) => k(e) && Object.keys(e).length === 0, J = Object.assign, ma = Object.create, $ = (e = null) => ma(e);
|
|
63
66
|
let en;
|
|
64
67
|
const he = () => en || (en = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : $());
|
|
65
68
|
function tn(e) {
|
|
@@ -68,7 +71,7 @@ function tn(e) {
|
|
|
68
71
|
function nn(e) {
|
|
69
72
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
70
73
|
}
|
|
71
|
-
function
|
|
74
|
+
function da(e) {
|
|
72
75
|
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (r, a, s) => `${a}="${nn(s)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (r, a, s) => `${a}='${nn(s)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && ue("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
73
76
|
// In href, src, action, formaction attributes
|
|
74
77
|
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
@@ -78,16 +81,16 @@ function fa(e) {
|
|
|
78
81
|
e = e.replace(r, "$1javascript:");
|
|
79
82
|
}), e;
|
|
80
83
|
}
|
|
81
|
-
const
|
|
84
|
+
const Ea = Object.prototype.hasOwnProperty;
|
|
82
85
|
function se(e, t) {
|
|
83
|
-
return
|
|
86
|
+
return Ea.call(e, t);
|
|
84
87
|
}
|
|
85
|
-
const G = Array.isArray, x = (e) => typeof e == "function", O = (e) => typeof e == "string", M = (e) => typeof e == "boolean", R = (e) => e !== null && typeof e == "object",
|
|
88
|
+
const G = Array.isArray, x = (e) => typeof e == "function", O = (e) => typeof e == "string", M = (e) => typeof e == "boolean", R = (e) => e !== null && typeof e == "object", ga = (e) => R(e) && x(e.then) && x(e.catch), Vn = Object.prototype.toString, $t = (e) => Vn.call(e), k = (e) => $t(e) === "[object Object]", pa = (e) => e == null ? "" : G(e) || k(e) && e.toString === Vn ? JSON.stringify(e, null, 2) : String(e);
|
|
86
89
|
function xt(e, t = "") {
|
|
87
90
|
return e.reduce((n, r, a) => a === 0 ? n + r : n + t + r, "");
|
|
88
91
|
}
|
|
89
92
|
const rn = 2;
|
|
90
|
-
function
|
|
93
|
+
function Na(e, t = 0, n = e.length) {
|
|
91
94
|
const r = e.split(/\r?\n/);
|
|
92
95
|
let a = 0;
|
|
93
96
|
const s = [];
|
|
@@ -144,7 +147,7 @@ function qe(e, t) {
|
|
|
144
147
|
});
|
|
145
148
|
}
|
|
146
149
|
}
|
|
147
|
-
function
|
|
150
|
+
function ha(e, t, n) {
|
|
148
151
|
return { line: e, column: t, offset: n };
|
|
149
152
|
}
|
|
150
153
|
function Ct(e, t, n) {
|
|
@@ -171,7 +174,7 @@ const F = {
|
|
|
171
174
|
UNHANDLED_CODEGEN_NODE_TYPE: 15,
|
|
172
175
|
// minifier error codes
|
|
173
176
|
UNHANDLED_MINIFIER_NODE_TYPE: 16
|
|
174
|
-
},
|
|
177
|
+
}, La = 17, Ta = {
|
|
175
178
|
// tokenizer error messages
|
|
176
179
|
[F.EXPECTED_TOKEN]: "Expected token: '{0}'",
|
|
177
180
|
[F.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
|
|
@@ -194,18 +197,18 @@ const F = {
|
|
|
194
197
|
[F.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
|
|
195
198
|
};
|
|
196
199
|
function ye(e, t, n = {}) {
|
|
197
|
-
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? ze((a ||
|
|
200
|
+
const { domain: r, messages: a, args: s } = n, o = process.env.NODE_ENV !== "production" ? ze((a || Ta)[e] || "", ...s || []) : e, i = new SyntaxError(String(o));
|
|
198
201
|
return i.code = e, t && (i.location = t), i.domain = r, i;
|
|
199
202
|
}
|
|
200
|
-
function
|
|
203
|
+
function ba(e) {
|
|
201
204
|
throw e;
|
|
202
205
|
}
|
|
203
|
-
const
|
|
204
|
-
`,
|
|
205
|
-
function
|
|
206
|
+
const Oa = /<\/?[\w\s="/.':;#-\/]+>/, Ia = (e) => Oa.test(e), le = " ", Ca = "\r", Q = `
|
|
207
|
+
`, va = "\u2028", Aa = "\u2029";
|
|
208
|
+
function Da(e) {
|
|
206
209
|
const t = e;
|
|
207
210
|
let n = 0, r = 1, a = 1, s = 0;
|
|
208
|
-
const o = (g) => t[g] ===
|
|
211
|
+
const o = (g) => t[g] === Ca && t[g + 1] === Q, i = (g) => t[g] === Q, c = (g) => t[g] === Aa, E = (g) => t[g] === va, b = (g) => o(g) || i(g) || c(g) || E(g), L = () => n, N = () => r, A = () => a, P = () => s, v = (g) => o(g) || c(g) || E(g) ? Q : t[g], D = () => v(n), f = () => v(n + s);
|
|
209
212
|
function m() {
|
|
210
213
|
return s = 0, b(n) && (r++, a = 0), o(n) && n++, n++, a++, t[n];
|
|
211
214
|
}
|
|
@@ -239,9 +242,9 @@ function Ca(e) {
|
|
|
239
242
|
skipToPeek: C
|
|
240
243
|
};
|
|
241
244
|
}
|
|
242
|
-
const _e = void 0,
|
|
243
|
-
function
|
|
244
|
-
const n = t.location !== !1, r =
|
|
245
|
+
const _e = void 0, Sa = ".", an = "'", Fa = "tokenizer";
|
|
246
|
+
function Pa(e, t = {}) {
|
|
247
|
+
const n = t.location !== !1, r = Da(e), a = () => r.index(), s = () => ha(r.line(), r.column(), r.index()), o = s(), i = a(), c = {
|
|
245
248
|
currentType: 13,
|
|
246
249
|
offset: i,
|
|
247
250
|
startLoc: o,
|
|
@@ -258,7 +261,7 @@ function Da(e, t = {}) {
|
|
|
258
261
|
const W = E();
|
|
259
262
|
if (u.column += p, u.offset += p, b) {
|
|
260
263
|
const H = n ? Ct(W.startLoc, u) : null, w = ye(l, H, {
|
|
261
|
-
domain:
|
|
264
|
+
domain: Fa,
|
|
262
265
|
args: S
|
|
263
266
|
});
|
|
264
267
|
b(w);
|
|
@@ -640,8 +643,8 @@ function Da(e, t = {}) {
|
|
|
640
643
|
context: E
|
|
641
644
|
};
|
|
642
645
|
}
|
|
643
|
-
const
|
|
644
|
-
function
|
|
646
|
+
const ya = "parser", ka = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;
|
|
647
|
+
function Ra(e, t, n) {
|
|
645
648
|
switch (e) {
|
|
646
649
|
case "\\\\":
|
|
647
650
|
return "\\";
|
|
@@ -654,13 +657,13 @@ function Pa(e, t, n) {
|
|
|
654
657
|
}
|
|
655
658
|
}
|
|
656
659
|
}
|
|
657
|
-
function
|
|
660
|
+
function Ma(e = {}) {
|
|
658
661
|
const t = e.location !== !1, { onError: n } = e;
|
|
659
662
|
function r(f, m, T, d, ...I) {
|
|
660
663
|
const C = f.currentPosition();
|
|
661
664
|
if (C.offset += d, C.column += d, n) {
|
|
662
665
|
const g = t ? Ct(T, C) : null, y = ye(m, g, {
|
|
663
|
-
domain:
|
|
666
|
+
domain: ya,
|
|
664
667
|
args: I
|
|
665
668
|
});
|
|
666
669
|
n(y);
|
|
@@ -687,7 +690,7 @@ function ya(e = {}) {
|
|
|
687
690
|
}
|
|
688
691
|
function E(f, m) {
|
|
689
692
|
const T = f.context(), { lastOffset: d, lastStartLoc: I } = T, C = a(9, d, I);
|
|
690
|
-
return C.value = m.replace(
|
|
693
|
+
return C.value = m.replace(ka, Ra), f.nextToken(), s(C, f.currentOffset(), f.currentPosition()), C;
|
|
691
694
|
}
|
|
692
695
|
function b(f) {
|
|
693
696
|
const m = f.nextToken(), T = f.context(), { lastOffset: d, lastStartLoc: I } = T, C = a(8, d, I);
|
|
@@ -780,7 +783,7 @@ function ya(e = {}) {
|
|
|
780
783
|
return m.currentType === 13 ? I : P(f, T, d, I);
|
|
781
784
|
}
|
|
782
785
|
function D(f) {
|
|
783
|
-
const m =
|
|
786
|
+
const m = Pa(f, J({}, e)), T = m.context(), d = a(0, T.offset, T.startLoc);
|
|
784
787
|
return t && d.loc && (d.loc.source = f), d.body = v(m), e.onCacheKey && (d.cacheKey = e.onCacheKey(f)), T.currentType !== 13 && r(m, F.UNEXPECTED_LEXICAL_ANALYSIS, T.lastStartLoc, 0, f[T.offset] || ""), s(d, m.currentOffset(), m.currentPosition()), d;
|
|
785
788
|
}
|
|
786
789
|
return { parse: D };
|
|
@@ -791,7 +794,7 @@ function ie(e) {
|
|
|
791
794
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
792
795
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
793
796
|
}
|
|
794
|
-
function
|
|
797
|
+
function wa(e, t = {}) {
|
|
795
798
|
const n = {
|
|
796
799
|
ast: e,
|
|
797
800
|
helpers: /* @__PURE__ */ new Set()
|
|
@@ -843,8 +846,8 @@ function Wt(e, t) {
|
|
|
843
846
|
break;
|
|
844
847
|
}
|
|
845
848
|
}
|
|
846
|
-
function
|
|
847
|
-
const n =
|
|
849
|
+
function Ua(e, t = {}) {
|
|
850
|
+
const n = wa(e);
|
|
848
851
|
n.helper(
|
|
849
852
|
"normalize"
|
|
850
853
|
/* HelperNameMap.NORMALIZE */
|
|
@@ -852,7 +855,7 @@ function Ra(e, t = {}) {
|
|
|
852
855
|
const r = n.context();
|
|
853
856
|
e.helpers = Array.from(r.helpers);
|
|
854
857
|
}
|
|
855
|
-
function
|
|
858
|
+
function Va(e) {
|
|
856
859
|
const t = e.body;
|
|
857
860
|
return t.type === 2 ? on(t) : t.cases.forEach((n) => on(n)), e;
|
|
858
861
|
}
|
|
@@ -877,7 +880,7 @@ function on(e) {
|
|
|
877
880
|
}
|
|
878
881
|
}
|
|
879
882
|
}
|
|
880
|
-
const
|
|
883
|
+
const $a = "minifier";
|
|
881
884
|
function ve(e) {
|
|
882
885
|
switch (e.t = e.type, e.type) {
|
|
883
886
|
case 0: {
|
|
@@ -925,14 +928,14 @@ function ve(e) {
|
|
|
925
928
|
default:
|
|
926
929
|
if (process.env.NODE_ENV !== "production")
|
|
927
930
|
throw ye(F.UNHANDLED_MINIFIER_NODE_TYPE, null, {
|
|
928
|
-
domain:
|
|
931
|
+
domain: $a,
|
|
929
932
|
args: [e.type]
|
|
930
933
|
});
|
|
931
934
|
}
|
|
932
935
|
delete e.type;
|
|
933
936
|
}
|
|
934
|
-
const
|
|
935
|
-
function
|
|
937
|
+
const xa = "parser";
|
|
938
|
+
function Ba(e, t) {
|
|
936
939
|
const { filename: n, breakLineCode: r, needIndent: a } = t, s = t.location !== !1, o = {
|
|
937
940
|
filename: n,
|
|
938
941
|
code: "",
|
|
@@ -974,14 +977,14 @@ function Va(e, t) {
|
|
|
974
977
|
needIndent: () => o.needIndent
|
|
975
978
|
};
|
|
976
979
|
}
|
|
977
|
-
function
|
|
980
|
+
function Wa(e, t) {
|
|
978
981
|
const { helper: n } = e;
|
|
979
982
|
e.push(`${n(
|
|
980
983
|
"linked"
|
|
981
984
|
/* HelperNameMap.LINKED */
|
|
982
985
|
)}(`), Se(e, t.key), t.modifier ? (e.push(", "), Se(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
983
986
|
}
|
|
984
|
-
function
|
|
987
|
+
function Ga(e, t) {
|
|
985
988
|
const { helper: n, needIndent: r } = e;
|
|
986
989
|
e.push(`${n(
|
|
987
990
|
"normalize"
|
|
@@ -992,7 +995,7 @@ function xa(e, t) {
|
|
|
992
995
|
e.push(", ");
|
|
993
996
|
e.deindent(r()), e.push("])");
|
|
994
997
|
}
|
|
995
|
-
function
|
|
998
|
+
function Ya(e, t) {
|
|
996
999
|
const { helper: n, needIndent: r } = e;
|
|
997
1000
|
if (t.cases.length > 1) {
|
|
998
1001
|
e.push(`${n(
|
|
@@ -1005,23 +1008,23 @@ function Ba(e, t) {
|
|
|
1005
1008
|
e.deindent(r()), e.push("])");
|
|
1006
1009
|
}
|
|
1007
1010
|
}
|
|
1008
|
-
function
|
|
1011
|
+
function Ha(e, t) {
|
|
1009
1012
|
t.body ? Se(e, t.body) : e.push("null");
|
|
1010
1013
|
}
|
|
1011
1014
|
function Se(e, t) {
|
|
1012
1015
|
const { helper: n } = e;
|
|
1013
1016
|
switch (t.type) {
|
|
1014
1017
|
case 0:
|
|
1015
|
-
|
|
1018
|
+
Ha(e, t);
|
|
1016
1019
|
break;
|
|
1017
1020
|
case 1:
|
|
1018
|
-
|
|
1021
|
+
Ya(e, t);
|
|
1019
1022
|
break;
|
|
1020
1023
|
case 2:
|
|
1021
|
-
|
|
1024
|
+
Ga(e, t);
|
|
1022
1025
|
break;
|
|
1023
1026
|
case 6:
|
|
1024
|
-
|
|
1027
|
+
Wa(e, t);
|
|
1025
1028
|
break;
|
|
1026
1029
|
case 8:
|
|
1027
1030
|
e.push(JSON.stringify(t.value), t);
|
|
@@ -1056,16 +1059,16 @@ function Se(e, t) {
|
|
|
1056
1059
|
default:
|
|
1057
1060
|
if (process.env.NODE_ENV !== "production")
|
|
1058
1061
|
throw ye(F.UNHANDLED_CODEGEN_NODE_TYPE, null, {
|
|
1059
|
-
domain:
|
|
1062
|
+
domain: xa,
|
|
1060
1063
|
args: [t.type]
|
|
1061
1064
|
});
|
|
1062
1065
|
}
|
|
1063
1066
|
}
|
|
1064
|
-
const
|
|
1067
|
+
const Ka = (e, t = {}) => {
|
|
1065
1068
|
const n = O(t.mode) ? t.mode : "normal", r = O(t.filename) ? t.filename : "message.intl";
|
|
1066
1069
|
t.sourceMap;
|
|
1067
1070
|
const a = t.breakLineCode != null ? t.breakLineCode : n === "arrow" ? ";" : `
|
|
1068
|
-
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i =
|
|
1071
|
+
`, s = t.needIndent ? t.needIndent : n !== "arrow", o = e.helpers || [], i = Ba(e, {
|
|
1069
1072
|
filename: r,
|
|
1070
1073
|
breakLineCode: a,
|
|
1071
1074
|
needIndent: s
|
|
@@ -1079,30 +1082,30 @@ const Ga = (e, t = {}) => {
|
|
|
1079
1082
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1080
1083
|
};
|
|
1081
1084
|
};
|
|
1082
|
-
function
|
|
1083
|
-
const n = J({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i =
|
|
1084
|
-
return r ? (s &&
|
|
1085
|
+
function ja(e, t = {}) {
|
|
1086
|
+
const n = J({}, t), r = !!n.jit, a = !!n.minify, s = n.optimize == null ? !0 : n.optimize, i = Ma(n).parse(e);
|
|
1087
|
+
return r ? (s && Va(i), a && ve(i), { ast: i, code: "" }) : (Ua(i, n), Ka(i, n));
|
|
1085
1088
|
}
|
|
1086
|
-
function
|
|
1089
|
+
function Xa() {
|
|
1087
1090
|
typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (he().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (he().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1088
1091
|
}
|
|
1089
1092
|
function re(e) {
|
|
1090
1093
|
return R(e) && Gt(e) === 0 && (se(e, "b") || se(e, "body"));
|
|
1091
1094
|
}
|
|
1092
1095
|
const $n = ["b", "body"];
|
|
1093
|
-
function
|
|
1096
|
+
function Ja(e) {
|
|
1094
1097
|
return de(e, $n);
|
|
1095
1098
|
}
|
|
1096
1099
|
const xn = ["c", "cases"];
|
|
1097
|
-
function
|
|
1100
|
+
function Qa(e) {
|
|
1098
1101
|
return de(e, xn, []);
|
|
1099
1102
|
}
|
|
1100
1103
|
const Bn = ["s", "static"];
|
|
1101
|
-
function
|
|
1104
|
+
function qa(e) {
|
|
1102
1105
|
return de(e, Bn);
|
|
1103
1106
|
}
|
|
1104
1107
|
const Wn = ["i", "items"];
|
|
1105
|
-
function
|
|
1108
|
+
function Za(e) {
|
|
1106
1109
|
return de(e, Wn, []);
|
|
1107
1110
|
}
|
|
1108
1111
|
const Gn = ["t", "type"];
|
|
@@ -1117,11 +1120,11 @@ function Je(e, t) {
|
|
|
1117
1120
|
throw $e(t);
|
|
1118
1121
|
}
|
|
1119
1122
|
const Hn = ["m", "modifier"];
|
|
1120
|
-
function
|
|
1123
|
+
function za(e) {
|
|
1121
1124
|
return de(e, Hn);
|
|
1122
1125
|
}
|
|
1123
1126
|
const Kn = ["k", "key"];
|
|
1124
|
-
function
|
|
1127
|
+
function es(e) {
|
|
1125
1128
|
const t = de(e, Kn);
|
|
1126
1129
|
if (t)
|
|
1127
1130
|
return t;
|
|
@@ -1152,17 +1155,17 @@ function $e(e) {
|
|
|
1152
1155
|
return new Error(`unhandled node type: ${e}`);
|
|
1153
1156
|
}
|
|
1154
1157
|
function Lt(e) {
|
|
1155
|
-
return (n) =>
|
|
1158
|
+
return (n) => ts(n, e);
|
|
1156
1159
|
}
|
|
1157
|
-
function
|
|
1158
|
-
const n =
|
|
1160
|
+
function ts(e, t) {
|
|
1161
|
+
const n = Ja(t);
|
|
1159
1162
|
if (n == null)
|
|
1160
1163
|
throw $e(
|
|
1161
1164
|
0
|
|
1162
1165
|
/* NodeTypes.Resource */
|
|
1163
1166
|
);
|
|
1164
1167
|
if (Gt(n) === 1) {
|
|
1165
|
-
const s =
|
|
1168
|
+
const s = Qa(n);
|
|
1166
1169
|
return e.plural(s.reduce((o, i) => [
|
|
1167
1170
|
...o,
|
|
1168
1171
|
ln(e, i)
|
|
@@ -1171,11 +1174,11 @@ function Za(e, t) {
|
|
|
1171
1174
|
return ln(e, n);
|
|
1172
1175
|
}
|
|
1173
1176
|
function ln(e, t) {
|
|
1174
|
-
const n =
|
|
1177
|
+
const n = qa(t);
|
|
1175
1178
|
if (n != null)
|
|
1176
1179
|
return e.type === "text" ? n : e.normalize([n]);
|
|
1177
1180
|
{
|
|
1178
|
-
const r =
|
|
1181
|
+
const r = Za(t).reduce((a, s) => [...a, vt(e, s)], []);
|
|
1179
1182
|
return e.normalize(r);
|
|
1180
1183
|
}
|
|
1181
1184
|
}
|
|
@@ -1203,7 +1206,7 @@ function vt(e, t) {
|
|
|
1203
1206
|
throw $e(n);
|
|
1204
1207
|
}
|
|
1205
1208
|
case 6: {
|
|
1206
|
-
const r = t, a =
|
|
1209
|
+
const r = t, a = za(r), s = es(r);
|
|
1207
1210
|
return e.linked(vt(e, s), a ? vt(e, a) : void 0, e.type);
|
|
1208
1211
|
}
|
|
1209
1212
|
case 7:
|
|
@@ -1214,28 +1217,28 @@ function vt(e, t) {
|
|
|
1214
1217
|
throw new Error(`unhandled node on format message part: ${n}`);
|
|
1215
1218
|
}
|
|
1216
1219
|
}
|
|
1217
|
-
const
|
|
1218
|
-
function
|
|
1219
|
-
t &&
|
|
1220
|
+
const ns = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
|
|
1221
|
+
function rs(e, t) {
|
|
1222
|
+
t && Ia(e) && ue(ze(ns, { source: e }));
|
|
1220
1223
|
}
|
|
1221
|
-
const
|
|
1224
|
+
const as = (e) => e;
|
|
1222
1225
|
let Qe = $();
|
|
1223
|
-
function
|
|
1226
|
+
function ss(e, t = {}) {
|
|
1224
1227
|
let n = !1;
|
|
1225
|
-
const r = t.onError ||
|
|
1228
|
+
const r = t.onError || ba;
|
|
1226
1229
|
return t.onError = (a) => {
|
|
1227
1230
|
n = !0, r(a);
|
|
1228
|
-
}, { ...
|
|
1231
|
+
}, { ...ja(e, t), detectError: n };
|
|
1229
1232
|
}
|
|
1230
1233
|
// @__NO_SIDE_EFFECTS__
|
|
1231
|
-
function
|
|
1234
|
+
function os(e, t) {
|
|
1232
1235
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && O(e)) {
|
|
1233
1236
|
const n = M(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
|
|
1234
|
-
process.env.NODE_ENV !== "production" &&
|
|
1235
|
-
const a = (t.onCacheKey ||
|
|
1237
|
+
process.env.NODE_ENV !== "production" && rs(e, n);
|
|
1238
|
+
const a = (t.onCacheKey || as)(e), s = Qe[a];
|
|
1236
1239
|
if (s)
|
|
1237
1240
|
return s;
|
|
1238
|
-
const { ast: o, detectError: i } =
|
|
1241
|
+
const { ast: o, detectError: i } = ss(e, {
|
|
1239
1242
|
...t,
|
|
1240
1243
|
location: process.env.NODE_ENV !== "production",
|
|
1241
1244
|
jit: !0
|
|
@@ -1253,10 +1256,10 @@ function rs(e, t) {
|
|
|
1253
1256
|
}
|
|
1254
1257
|
}
|
|
1255
1258
|
let xe = null;
|
|
1256
|
-
function
|
|
1259
|
+
function ls(e) {
|
|
1257
1260
|
xe = e;
|
|
1258
1261
|
}
|
|
1259
|
-
function
|
|
1262
|
+
function is(e, t, n) {
|
|
1260
1263
|
xe && xe.emit("i18n:init", {
|
|
1261
1264
|
timestamp: Date.now(),
|
|
1262
1265
|
i18n: e,
|
|
@@ -1264,12 +1267,12 @@ function ss(e, t, n) {
|
|
|
1264
1267
|
meta: n
|
|
1265
1268
|
});
|
|
1266
1269
|
}
|
|
1267
|
-
const
|
|
1268
|
-
function
|
|
1270
|
+
const us = /* @__PURE__ */ cs("function:translate");
|
|
1271
|
+
function cs(e) {
|
|
1269
1272
|
return (t) => xe && xe.emit(e, t);
|
|
1270
1273
|
}
|
|
1271
1274
|
const q = {
|
|
1272
|
-
INVALID_ARGUMENT:
|
|
1275
|
+
INVALID_ARGUMENT: La,
|
|
1273
1276
|
// 17
|
|
1274
1277
|
INVALID_DATE_ARGUMENT: 18,
|
|
1275
1278
|
INVALID_ISO_DATE_ARGUMENT: 19,
|
|
@@ -1277,11 +1280,11 @@ const q = {
|
|
|
1277
1280
|
NOT_SUPPORT_LOCALE_PROMISE_VALUE: 21,
|
|
1278
1281
|
NOT_SUPPORT_LOCALE_ASYNC_FUNCTION: 22,
|
|
1279
1282
|
NOT_SUPPORT_LOCALE_TYPE: 23
|
|
1280
|
-
},
|
|
1283
|
+
}, fs = 24;
|
|
1281
1284
|
function me(e) {
|
|
1282
|
-
return ye(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
1285
|
+
return ye(e, null, process.env.NODE_ENV !== "production" ? { messages: _s } : void 0);
|
|
1283
1286
|
}
|
|
1284
|
-
const
|
|
1287
|
+
const _s = {
|
|
1285
1288
|
[q.INVALID_ARGUMENT]: "Invalid arguments",
|
|
1286
1289
|
[q.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
1287
1290
|
[q.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
|
|
@@ -1302,7 +1305,7 @@ function un(e) {
|
|
|
1302
1305
|
return Tt;
|
|
1303
1306
|
if (e.constructor.name === "Function") {
|
|
1304
1307
|
const t = e();
|
|
1305
|
-
if (
|
|
1308
|
+
if (ga(t))
|
|
1306
1309
|
throw me(q.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
|
|
1307
1310
|
return Tt = t;
|
|
1308
1311
|
} else
|
|
@@ -1310,7 +1313,7 @@ function un(e) {
|
|
|
1310
1313
|
} else
|
|
1311
1314
|
throw me(q.NOT_SUPPORT_LOCALE_TYPE);
|
|
1312
1315
|
}
|
|
1313
|
-
function
|
|
1316
|
+
function ms(e, t, n) {
|
|
1314
1317
|
return [.../* @__PURE__ */ new Set([
|
|
1315
1318
|
n,
|
|
1316
1319
|
...G(t) ? t : R(t) ? Object.keys(t) : O(t) ? [t] : [n]
|
|
@@ -1334,20 +1337,20 @@ function cn(e, t, n) {
|
|
|
1334
1337
|
let r = !0;
|
|
1335
1338
|
for (let a = 0; a < t.length && M(r); a++) {
|
|
1336
1339
|
const s = t[a];
|
|
1337
|
-
O(s) && (r =
|
|
1340
|
+
O(s) && (r = ds(e, t[a], n));
|
|
1338
1341
|
}
|
|
1339
1342
|
return r;
|
|
1340
1343
|
}
|
|
1341
|
-
function
|
|
1344
|
+
function ds(e, t, n) {
|
|
1342
1345
|
let r;
|
|
1343
1346
|
const a = t.split("-");
|
|
1344
1347
|
do {
|
|
1345
1348
|
const s = a.join("-");
|
|
1346
|
-
r =
|
|
1349
|
+
r = Es(e, s, n), a.splice(-1, 1);
|
|
1347
1350
|
} while (a.length && r === !0);
|
|
1348
1351
|
return r;
|
|
1349
1352
|
}
|
|
1350
|
-
function
|
|
1353
|
+
function Es(e, t, n) {
|
|
1351
1354
|
let r = !1;
|
|
1352
1355
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1353
1356
|
r = t[t.length - 1] !== "!";
|
|
@@ -1517,15 +1520,15 @@ Ee[
|
|
|
1517
1520
|
/* Actions.APPEND */
|
|
1518
1521
|
]
|
|
1519
1522
|
};
|
|
1520
|
-
const
|
|
1521
|
-
function
|
|
1522
|
-
return
|
|
1523
|
+
const gs = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1524
|
+
function ps(e) {
|
|
1525
|
+
return gs.test(e);
|
|
1523
1526
|
}
|
|
1524
|
-
function
|
|
1527
|
+
function Ns(e) {
|
|
1525
1528
|
const t = e.charCodeAt(0), n = e.charCodeAt(e.length - 1);
|
|
1526
1529
|
return t === n && (t === 34 || t === 39) ? e.slice(1, -1) : e;
|
|
1527
1530
|
}
|
|
1528
|
-
function
|
|
1531
|
+
function hs(e) {
|
|
1529
1532
|
if (e == null)
|
|
1530
1533
|
return "o";
|
|
1531
1534
|
switch (e.charCodeAt(0)) {
|
|
@@ -1562,11 +1565,11 @@ function gs(e) {
|
|
|
1562
1565
|
}
|
|
1563
1566
|
return "i";
|
|
1564
1567
|
}
|
|
1565
|
-
function
|
|
1568
|
+
function Ls(e) {
|
|
1566
1569
|
const t = e.trim();
|
|
1567
|
-
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 :
|
|
1570
|
+
return e.charAt(0) === "0" && isNaN(parseInt(e)) ? !1 : ps(t) ? Ns(t) : "*" + t;
|
|
1568
1571
|
}
|
|
1569
|
-
function
|
|
1572
|
+
function Ts(e) {
|
|
1570
1573
|
const t = [];
|
|
1571
1574
|
let n = -1, r = 0, a = 0, s, o, i, c, E, b, L;
|
|
1572
1575
|
const N = [];
|
|
@@ -1598,7 +1601,7 @@ function Ns(e) {
|
|
|
1598
1601
|
/* Actions.APPEND */
|
|
1599
1602
|
]();
|
|
1600
1603
|
else {
|
|
1601
|
-
if (a = 0, o === void 0 || (o =
|
|
1604
|
+
if (a = 0, o === void 0 || (o = Ls(o), o === !1))
|
|
1602
1605
|
return !1;
|
|
1603
1606
|
N[
|
|
1604
1607
|
1
|
|
@@ -1616,21 +1619,21 @@ function Ns(e) {
|
|
|
1616
1619
|
}
|
|
1617
1620
|
for (; r !== null; )
|
|
1618
1621
|
if (n++, s = e[n], !(s === "\\" && A())) {
|
|
1619
|
-
if (c =
|
|
1622
|
+
if (c = hs(s), L = Ee[r], E = L[c] || L.l || 8, E === 8 || (r = E[0], E[1] !== void 0 && (b = N[E[1]], b && (i = s, b() === !1))))
|
|
1620
1623
|
return;
|
|
1621
1624
|
if (r === 7)
|
|
1622
1625
|
return t;
|
|
1623
1626
|
}
|
|
1624
1627
|
}
|
|
1625
1628
|
const fn = /* @__PURE__ */ new Map();
|
|
1626
|
-
function
|
|
1629
|
+
function bs(e, t) {
|
|
1627
1630
|
return R(e) ? e[t] : null;
|
|
1628
1631
|
}
|
|
1629
|
-
function
|
|
1632
|
+
function Os(e, t) {
|
|
1630
1633
|
if (!R(e))
|
|
1631
1634
|
return null;
|
|
1632
1635
|
let n = fn.get(t);
|
|
1633
|
-
if (n || (n =
|
|
1636
|
+
if (n || (n = Ts(t), n && fn.set(t, n)), !n)
|
|
1634
1637
|
return null;
|
|
1635
1638
|
const r = n.length;
|
|
1636
1639
|
let a = e, s = 0;
|
|
@@ -1653,7 +1656,7 @@ const Z = {
|
|
|
1653
1656
|
CANNOT_FORMAT_DATE: 5,
|
|
1654
1657
|
FALLBACK_TO_DATE_FORMAT: 6,
|
|
1655
1658
|
EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER: 7
|
|
1656
|
-
},
|
|
1659
|
+
}, Is = 8, Cs = {
|
|
1657
1660
|
[Z.NOT_FOUND_KEY]: "Not found '{key}' key in '{locale}' locale messages.",
|
|
1658
1661
|
[Z.FALLBACK_TO_TRANSLATE]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1659
1662
|
[Z.CANNOT_FORMAT_NUMBER]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
@@ -1663,10 +1666,10 @@ const Z = {
|
|
|
1663
1666
|
[Z.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."
|
|
1664
1667
|
};
|
|
1665
1668
|
function Te(e, ...t) {
|
|
1666
|
-
return ze(
|
|
1669
|
+
return ze(Cs[e], ...t);
|
|
1667
1670
|
}
|
|
1668
|
-
const
|
|
1669
|
-
function
|
|
1671
|
+
const vs = "11.2.7", tt = -1, Be = "en-US", Ze = "", _n = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1672
|
+
function As() {
|
|
1670
1673
|
return {
|
|
1671
1674
|
upper: (e, t) => t === "text" && O(e) ? e.toUpperCase() : t === "vnode" && R(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1672
1675
|
lower: (e, t) => t === "text" && O(e) ? e.toLowerCase() : t === "vnode" && R(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
@@ -1674,30 +1677,30 @@ function Is() {
|
|
|
1674
1677
|
};
|
|
1675
1678
|
}
|
|
1676
1679
|
let Jn;
|
|
1677
|
-
function
|
|
1680
|
+
function Ds(e) {
|
|
1678
1681
|
Jn = e;
|
|
1679
1682
|
}
|
|
1680
1683
|
let Qn;
|
|
1681
|
-
function
|
|
1684
|
+
function Ss(e) {
|
|
1682
1685
|
Qn = e;
|
|
1683
1686
|
}
|
|
1684
1687
|
let qn;
|
|
1685
|
-
function
|
|
1688
|
+
function Fs(e) {
|
|
1686
1689
|
qn = e;
|
|
1687
1690
|
}
|
|
1688
1691
|
let Zn = null;
|
|
1689
|
-
const
|
|
1692
|
+
const Ps = /* @__NO_SIDE_EFFECTS__ */ (e) => {
|
|
1690
1693
|
Zn = e;
|
|
1691
|
-
},
|
|
1694
|
+
}, ys = /* @__NO_SIDE_EFFECTS__ */ () => Zn;
|
|
1692
1695
|
let zn = null;
|
|
1693
1696
|
const mn = (e) => {
|
|
1694
1697
|
zn = e;
|
|
1695
|
-
},
|
|
1698
|
+
}, ks = () => zn;
|
|
1696
1699
|
let dn = 0;
|
|
1697
|
-
function
|
|
1698
|
-
const t = x(e.onWarn) ? e.onWarn : ue, n = O(e.version) ? e.version :
|
|
1700
|
+
function Rs(e = {}) {
|
|
1701
|
+
const t = x(e.onWarn) ? e.onWarn : ue, n = O(e.version) ? e.version : vs, r = O(e.locale) || x(e.locale) ? e.locale : Be, a = x(r) ? Be : r, s = G(e.fallbackLocale) || k(e.fallbackLocale) || O(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : a, o = k(e.messages) ? e.messages : bt(a), i = k(e.datetimeFormats) ? e.datetimeFormats : bt(a), c = k(e.numberFormats) ? e.numberFormats : bt(a), E = J($(), e.modifiers, As()), b = e.pluralRules || $(), L = x(e.missing) ? e.missing : null, N = M(e.missingWarn) || De(e.missingWarn) ? e.missingWarn : !0, A = M(e.fallbackWarn) || De(e.fallbackWarn) ? e.fallbackWarn : !0, P = !!e.fallbackFormat, v = !!e.unresolving, D = x(e.postTranslation) ? e.postTranslation : null, f = k(e.processor) ? e.processor : null, m = M(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, T = !!e.escapeParameter, d = x(e.messageCompiler) ? e.messageCompiler : Jn;
|
|
1699
1702
|
process.env.NODE_ENV !== "production" && x(e.messageCompiler) && Vt(Te(Z.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1700
|
-
const I = x(e.messageResolver) ? e.messageResolver : Qn ||
|
|
1703
|
+
const I = x(e.messageResolver) ? e.messageResolver : Qn || bs, C = x(e.localeFallbacker) ? e.localeFallbacker : qn || ms, g = R(e.fallbackContext) ? e.fallbackContext : void 0, y = e, U = R(y.__datetimeFormatters) ? y.__datetimeFormatters : /* @__PURE__ */ new Map(), X = R(y.__numberFormatters) ? y.__numberFormatters : /* @__PURE__ */ new Map(), ae = R(y.__meta) ? y.__meta : {};
|
|
1701
1704
|
dn++;
|
|
1702
1705
|
const Y = {
|
|
1703
1706
|
version: n,
|
|
@@ -1723,7 +1726,7 @@ function Ps(e = {}) {
|
|
|
1723
1726
|
onWarn: t,
|
|
1724
1727
|
__meta: ae
|
|
1725
1728
|
};
|
|
1726
|
-
return Y.datetimeFormats = i, Y.numberFormats = c, Y.__datetimeFormatters = U, Y.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Y.__v_emitter = y.__v_emitter != null ? y.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1729
|
+
return Y.datetimeFormats = i, Y.numberFormats = c, Y.__datetimeFormatters = U, Y.__numberFormatters = X, process.env.NODE_ENV !== "production" && (Y.__v_emitter = y.__v_emitter != null ? y.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && is(Y, n, ae), Y;
|
|
1727
1730
|
}
|
|
1728
1731
|
const bt = (e) => ({ [e]: $() });
|
|
1729
1732
|
function nt(e, t) {
|
|
@@ -1756,7 +1759,7 @@ function Ve(e, t, n) {
|
|
|
1756
1759
|
function tr(e, t) {
|
|
1757
1760
|
return e === t ? !1 : e.split("-")[0] === t.split("-")[0];
|
|
1758
1761
|
}
|
|
1759
|
-
function
|
|
1762
|
+
function Ms(e, t) {
|
|
1760
1763
|
const n = t.indexOf(e);
|
|
1761
1764
|
if (n === -1)
|
|
1762
1765
|
return !1;
|
|
@@ -1844,7 +1847,7 @@ function At(...e) {
|
|
|
1844
1847
|
} catch {
|
|
1845
1848
|
throw me(q.INVALID_ISO_DATE_ARGUMENT);
|
|
1846
1849
|
}
|
|
1847
|
-
} else if (
|
|
1850
|
+
} else if (_a(t)) {
|
|
1848
1851
|
if (isNaN(t.getTime()))
|
|
1849
1852
|
throw me(q.INVALID_DATE_ARGUMENT);
|
|
1850
1853
|
i = t;
|
|
@@ -1941,26 +1944,26 @@ function hn(e, t, n) {
|
|
|
1941
1944
|
r.__numberFormatters.has(s) && r.__numberFormatters.delete(s);
|
|
1942
1945
|
}
|
|
1943
1946
|
}
|
|
1944
|
-
const
|
|
1947
|
+
const ws = (e) => e, Us = (e) => "", Vs = "text", $s = (e) => e.length === 0 ? "" : xt(e), xs = pa;
|
|
1945
1948
|
function Ln(e, t) {
|
|
1946
1949
|
return e = Math.abs(e), t === 2 ? e ? e > 1 ? 1 : 0 : 1 : e ? Math.min(e, 2) : 0;
|
|
1947
1950
|
}
|
|
1948
|
-
function
|
|
1951
|
+
function Bs(e) {
|
|
1949
1952
|
const t = j(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1950
1953
|
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;
|
|
1951
1954
|
}
|
|
1952
|
-
function
|
|
1955
|
+
function Ws(e, t) {
|
|
1953
1956
|
t.count || (t.count = e), t.n || (t.n = e);
|
|
1954
1957
|
}
|
|
1955
|
-
function
|
|
1956
|
-
const t = e.locale, n =
|
|
1957
|
-
j(e.pluralIndex) &&
|
|
1958
|
+
function Gs(e = {}) {
|
|
1959
|
+
const t = e.locale, n = Bs(e), r = R(e.pluralRules) && O(t) && x(e.pluralRules[t]) ? e.pluralRules[t] : Ln, a = R(e.pluralRules) && O(t) && x(e.pluralRules[t]) ? Ln : void 0, s = (f) => f[r(n, f.length, a)], o = e.list || [], i = (f) => o[f], c = e.named || $();
|
|
1960
|
+
j(e.pluralIndex) && Ws(n, c);
|
|
1958
1961
|
const E = (f) => c[f];
|
|
1959
1962
|
function b(f, m) {
|
|
1960
1963
|
const T = x(e.messages) ? e.messages(f, !!m) : R(e.messages) ? e.messages[f] : !1;
|
|
1961
|
-
return T || (e.parent ? e.parent.message(f) :
|
|
1964
|
+
return T || (e.parent ? e.parent.message(f) : Us);
|
|
1962
1965
|
}
|
|
1963
|
-
const L = (f) => e.modifiers ? e.modifiers[f] :
|
|
1966
|
+
const L = (f) => e.modifiers ? e.modifiers[f] : ws, N = k(e.processor) && x(e.processor.normalize) ? e.processor.normalize : $s, A = k(e.processor) && x(e.processor.interpolate) ? e.processor.interpolate : xs, P = k(e.processor) && O(e.processor.type) ? e.processor.type : Vs, D = {
|
|
1964
1967
|
list: i,
|
|
1965
1968
|
named: E,
|
|
1966
1969
|
plural: s,
|
|
@@ -1985,7 +1988,7 @@ function xs(e = {}) {
|
|
|
1985
1988
|
const Tn = () => "", te = (e) => x(e);
|
|
1986
1989
|
function bn(e, ...t) {
|
|
1987
1990
|
const { fallbackFormat: n, postTranslation: r, unresolving: a, messageCompiler: s, fallbackLocale: o, messages: i } = e, [c, E] = St(...t), b = M(E.missingWarn) ? E.missingWarn : e.missingWarn, L = M(E.fallbackWarn) ? E.fallbackWarn : e.fallbackWarn, N = M(E.escapeParameter) ? E.escapeParameter : e.escapeParameter, A = !!E.resolvedMessage, P = O(E.default) || M(E.default) ? M(E.default) ? s ? c : () => c : E.default : n ? s ? c : () => c : null, v = n || P != null && (O(P) || x(P)), D = Yt(e, E);
|
|
1988
|
-
N &&
|
|
1991
|
+
N && Ys(E);
|
|
1989
1992
|
let [f, m, T] = A ? [
|
|
1990
1993
|
c,
|
|
1991
1994
|
D,
|
|
@@ -2001,9 +2004,9 @@ function bn(e, ...t) {
|
|
|
2001
2004
|
}, y = te(d) ? d : or(e, c, m, d, I, g);
|
|
2002
2005
|
if (C)
|
|
2003
2006
|
return d;
|
|
2004
|
-
const U =
|
|
2007
|
+
const U = Xs(e, m, T, E), X = Gs(U), ae = Hs(e, y, X);
|
|
2005
2008
|
let Y = r ? r(ae, c) : ae;
|
|
2006
|
-
if (N && O(Y) && (Y =
|
|
2009
|
+
if (N && O(Y) && (Y = da(Y)), process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2007
2010
|
const Oe = {
|
|
2008
2011
|
timestamp: Date.now(),
|
|
2009
2012
|
key: O(c) ? c : te(d) ? d.key : "",
|
|
@@ -2011,11 +2014,11 @@ function bn(e, ...t) {
|
|
|
2011
2014
|
format: O(d) ? d : te(d) ? d.source : "",
|
|
2012
2015
|
message: Y
|
|
2013
2016
|
};
|
|
2014
|
-
Oe.meta = J({}, e.__meta, /* @__PURE__ */
|
|
2017
|
+
Oe.meta = J({}, e.__meta, /* @__PURE__ */ ys() || {}), us(Oe);
|
|
2015
2018
|
}
|
|
2016
2019
|
return Y;
|
|
2017
2020
|
}
|
|
2018
|
-
function
|
|
2021
|
+
function Ys(e) {
|
|
2019
2022
|
G(e.list) ? e.list = e.list.map((t) => O(t) ? tn(t) : t) : R(e.named) && Object.keys(e.named).forEach((t) => {
|
|
2020
2023
|
O(e.named[t]) && (e.named[t] = tn(e.named[t]));
|
|
2021
2024
|
});
|
|
@@ -2052,7 +2055,7 @@ function sr(e, t, n, r, a, s) {
|
|
|
2052
2055
|
}
|
|
2053
2056
|
if (O(A) || re(A) || te(A))
|
|
2054
2057
|
break;
|
|
2055
|
-
if (!
|
|
2058
|
+
if (!Ms(N, b)) {
|
|
2056
2059
|
const I = Ht(
|
|
2057
2060
|
e,
|
|
2058
2061
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
@@ -2079,7 +2082,7 @@ function or(e, t, n, r, a, s) {
|
|
|
2079
2082
|
}
|
|
2080
2083
|
let c = null, E, b;
|
|
2081
2084
|
process.env.NODE_ENV !== "production" && oe && (c = window.performance.now(), E = "intlify-message-compilation-start", b = "intlify-message-compilation-end", ee && ee(E));
|
|
2082
|
-
const L = o(r,
|
|
2085
|
+
const L = o(r, Ks(e, n, a, r, i, s));
|
|
2083
2086
|
if (process.env.NODE_ENV !== "production" && oe) {
|
|
2084
2087
|
const N = window.performance.now(), A = e.__v_emitter;
|
|
2085
2088
|
A && c && A.emit("message-compilation", {
|
|
@@ -2091,7 +2094,7 @@ function or(e, t, n, r, a, s) {
|
|
|
2091
2094
|
}
|
|
2092
2095
|
return L.locale = n, L.key = t, L.source = r, L;
|
|
2093
2096
|
}
|
|
2094
|
-
function
|
|
2097
|
+
function Hs(e, t, n) {
|
|
2095
2098
|
let r = null, a, s;
|
|
2096
2099
|
process.env.NODE_ENV !== "production" && oe && (r = window.performance.now(), a = "intlify-message-evaluation-start", s = "intlify-message-evaluation-end", ee && ee(a));
|
|
2097
2100
|
const o = t(n);
|
|
@@ -2113,14 +2116,14 @@ function St(...e) {
|
|
|
2113
2116
|
const s = j(t) ? String(t) : (te(t), t);
|
|
2114
2117
|
return j(n) ? a.plural = n : O(n) ? a.default = n : k(n) && !et(n) ? a.named = n : G(n) && (a.list = n), j(r) ? a.plural = r : O(r) ? a.default = r : k(r) && J(a, r), [s, a];
|
|
2115
2118
|
}
|
|
2116
|
-
function
|
|
2119
|
+
function Ks(e, t, n, r, a, s) {
|
|
2117
2120
|
return {
|
|
2118
2121
|
locale: t,
|
|
2119
2122
|
key: n,
|
|
2120
2123
|
warnHtmlMessage: a,
|
|
2121
2124
|
onError: (o) => {
|
|
2122
2125
|
if (s && s(o), process.env.NODE_ENV !== "production") {
|
|
2123
|
-
const i =
|
|
2126
|
+
const i = js(r), c = `Message compilation error: ${o.message}`, E = o.location && i && Na(i, o.location.start.offset, o.location.end.offset), b = e.__v_emitter;
|
|
2124
2127
|
b && i && b.emit("compile-error", {
|
|
2125
2128
|
message: i,
|
|
2126
2129
|
error: o.message,
|
|
@@ -2132,16 +2135,16 @@ ${E}` : c);
|
|
|
2132
2135
|
} else
|
|
2133
2136
|
throw o;
|
|
2134
2137
|
},
|
|
2135
|
-
onCacheKey: (o) =>
|
|
2138
|
+
onCacheKey: (o) => ca(t, n, o)
|
|
2136
2139
|
};
|
|
2137
2140
|
}
|
|
2138
|
-
function
|
|
2141
|
+
function js(e) {
|
|
2139
2142
|
if (O(e))
|
|
2140
2143
|
return e;
|
|
2141
2144
|
if (e.loc && e.loc.source)
|
|
2142
2145
|
return e.loc.source;
|
|
2143
2146
|
}
|
|
2144
|
-
function
|
|
2147
|
+
function Xs(e, t, n, r) {
|
|
2145
2148
|
const { modifiers: a, pluralRules: s, messageResolver: o, fallbackLocale: i, fallbackWarn: c, missingWarn: E, fallbackContext: b } = e, N = {
|
|
2146
2149
|
locale: t,
|
|
2147
2150
|
modifiers: a,
|
|
@@ -2171,23 +2174,23 @@ function Hs(e, t, n, r) {
|
|
|
2171
2174
|
};
|
|
2172
2175
|
return e.processor && (N.processor = e.processor), r.list && (N.list = r.list), r.named && (N.named = r.named), j(r.plural) && (N.pluralIndex = r.plural), N;
|
|
2173
2176
|
}
|
|
2174
|
-
|
|
2175
|
-
function
|
|
2177
|
+
Xa();
|
|
2178
|
+
function Js() {
|
|
2176
2179
|
return lr().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2177
2180
|
}
|
|
2178
2181
|
function lr() {
|
|
2179
2182
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2180
2183
|
}
|
|
2181
|
-
const
|
|
2184
|
+
const Qs = typeof Proxy == "function", qs = "devtools-plugin:setup", Zs = "plugin:settings:set";
|
|
2182
2185
|
let Ce, Ft;
|
|
2183
|
-
function
|
|
2186
|
+
function zs() {
|
|
2184
2187
|
var e;
|
|
2185
2188
|
return Ce !== void 0 || (typeof window < "u" && window.performance ? (Ce = !0, Ft = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (Ce = !0, Ft = globalThis.perf_hooks.performance) : Ce = !1), Ce;
|
|
2186
2189
|
}
|
|
2187
|
-
function
|
|
2188
|
-
return
|
|
2190
|
+
function eo() {
|
|
2191
|
+
return zs() ? Ft.now() : Date.now();
|
|
2189
2192
|
}
|
|
2190
|
-
class
|
|
2193
|
+
class to {
|
|
2191
2194
|
constructor(t, n) {
|
|
2192
2195
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
2193
2196
|
const r = {};
|
|
@@ -2215,9 +2218,9 @@ class Zs {
|
|
|
2215
2218
|
s = o;
|
|
2216
2219
|
},
|
|
2217
2220
|
now() {
|
|
2218
|
-
return
|
|
2221
|
+
return eo();
|
|
2219
2222
|
}
|
|
2220
|
-
}, n && n.on(
|
|
2223
|
+
}, n && n.on(Zs, (o, i) => {
|
|
2221
2224
|
o === this.plugin.id && this.fallbacks.setSettings(i);
|
|
2222
2225
|
}), this.proxiedOn = new Proxy({}, {
|
|
2223
2226
|
get: (o, i) => this.target ? this.target.on[i] : (...c) => {
|
|
@@ -2249,12 +2252,12 @@ class Zs {
|
|
|
2249
2252
|
n.resolve(await this.target[n.method](...n.args));
|
|
2250
2253
|
}
|
|
2251
2254
|
}
|
|
2252
|
-
function
|
|
2253
|
-
const n = e, r = lr(), a =
|
|
2255
|
+
function no(e, t) {
|
|
2256
|
+
const n = e, r = lr(), a = Js(), s = Qs && n.enableEarlyProxy;
|
|
2254
2257
|
if (a && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
2255
|
-
a.emit(
|
|
2258
|
+
a.emit(qs, e, t);
|
|
2256
2259
|
else {
|
|
2257
|
-
const o = s ? new
|
|
2260
|
+
const o = s ? new to(n, a) : null;
|
|
2258
2261
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
2259
2262
|
pluginDescriptor: n,
|
|
2260
2263
|
setupFn: t,
|
|
@@ -2262,13 +2265,13 @@ function zs(e, t) {
|
|
|
2262
2265
|
}), o && t(o.proxiedTarget);
|
|
2263
2266
|
}
|
|
2264
2267
|
}
|
|
2265
|
-
const
|
|
2266
|
-
function
|
|
2268
|
+
const ro = "11.2.7";
|
|
2269
|
+
function ao() {
|
|
2267
2270
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (he().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (he().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (he().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (he().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
2268
2271
|
}
|
|
2269
2272
|
const B = {
|
|
2270
2273
|
// composer module errors
|
|
2271
|
-
UNEXPECTED_RETURN_TYPE:
|
|
2274
|
+
UNEXPECTED_RETURN_TYPE: fs,
|
|
2272
2275
|
// 24
|
|
2273
2276
|
// legacy module errors
|
|
2274
2277
|
INVALID_ARGUMENT: 25,
|
|
@@ -2289,9 +2292,9 @@ const B = {
|
|
|
2289
2292
|
NOT_AVAILABLE_COMPOSITION_IN_LEGACY: 34
|
|
2290
2293
|
};
|
|
2291
2294
|
function z(e, ...t) {
|
|
2292
|
-
return ye(e, null, process.env.NODE_ENV !== "production" ? { messages:
|
|
2295
|
+
return ye(e, null, process.env.NODE_ENV !== "production" ? { messages: so, args: t } : void 0);
|
|
2293
2296
|
}
|
|
2294
|
-
const
|
|
2297
|
+
const so = {
|
|
2295
2298
|
[B.UNEXPECTED_RETURN_TYPE]: "Unexpected return type in composer",
|
|
2296
2299
|
[B.INVALID_ARGUMENT]: "Invalid argument",
|
|
2297
2300
|
[B.MUST_BE_CALL_SETUP_TOP]: "Must be called at the top of a `setup` function",
|
|
@@ -2304,7 +2307,7 @@ const no = {
|
|
|
2304
2307
|
[B.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2305
2308
|
[B.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2306
2309
|
}, Pt = /* @__PURE__ */ ce("__translateVNode"), yt = /* @__PURE__ */ ce("__datetimeParts"), kt = /* @__PURE__ */ ce("__numberParts"), be = /* @__PURE__ */ ce("__enableEmitter"), We = /* @__PURE__ */ ce("__disableEmitter"), ir = ce("__setPluralRules"), ur = /* @__PURE__ */ ce("__injectWithOption"), Rt = /* @__PURE__ */ ce("__dispose"), ne = {
|
|
2307
|
-
FALLBACK_TO_ROOT:
|
|
2310
|
+
FALLBACK_TO_ROOT: Is,
|
|
2308
2311
|
// 8
|
|
2309
2312
|
NOT_FOUND_PARENT_SCOPE: 9,
|
|
2310
2313
|
IGNORE_OBJ_FLATTEN: 10,
|
|
@@ -2318,7 +2321,7 @@ const no = {
|
|
|
2318
2321
|
DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE: 12,
|
|
2319
2322
|
// duplicate `useI18n` calling
|
|
2320
2323
|
DUPLICATE_USE_I18N_CALLING: 13
|
|
2321
|
-
},
|
|
2324
|
+
}, oo = {
|
|
2322
2325
|
[ne.FALLBACK_TO_ROOT]: "Fall back to {type} '{key}' with root locale.",
|
|
2323
2326
|
[ne.NOT_FOUND_PARENT_SCOPE]: "Not found parent scope. use the global scope.",
|
|
2324
2327
|
[ne.IGNORE_OBJ_FLATTEN]: "Ignore object flatten: '{key}' key has an string value",
|
|
@@ -2334,7 +2337,7 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
|
|
|
2334
2337
|
[ne.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
|
|
2335
2338
|
};
|
|
2336
2339
|
function Fe(e, ...t) {
|
|
2337
|
-
return ze(
|
|
2340
|
+
return ze(oo[e], ...t);
|
|
2338
2341
|
}
|
|
2339
2342
|
function Ge(e) {
|
|
2340
2343
|
if (!R(e) || re(e))
|
|
@@ -2406,24 +2409,24 @@ function fr(e, t, n) {
|
|
|
2406
2409
|
}
|
|
2407
2410
|
}
|
|
2408
2411
|
function On(e) {
|
|
2409
|
-
return
|
|
2412
|
+
return oa(la, null, e, 0);
|
|
2410
2413
|
}
|
|
2411
2414
|
function Ae() {
|
|
2412
2415
|
const e = "currentInstance";
|
|
2413
2416
|
return e in Nt ? Nt[e] : Nt.getCurrentInstance();
|
|
2414
2417
|
}
|
|
2415
|
-
const In = "__INTLIFY_META__", Cn = () => [],
|
|
2418
|
+
const In = "__INTLIFY_META__", Cn = () => [], lo = () => !1;
|
|
2416
2419
|
let vn = 0;
|
|
2417
2420
|
function An(e) {
|
|
2418
2421
|
return ((t, n, r, a) => e(n, r, Ae() || void 0, a));
|
|
2419
2422
|
}
|
|
2420
|
-
const
|
|
2423
|
+
const io = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2421
2424
|
const e = Ae();
|
|
2422
2425
|
let t = null;
|
|
2423
2426
|
return e && (t = cr(e)[In]) ? { [In]: t } : null;
|
|
2424
2427
|
};
|
|
2425
2428
|
function jt(e = {}) {
|
|
2426
|
-
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = oe ?
|
|
2429
|
+
const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, s = oe ? ea : ta;
|
|
2427
2430
|
let o = M(e.inheritLocale) ? e.inheritLocale : !0;
|
|
2428
2431
|
const i = s(
|
|
2429
2432
|
// prettier-ignore
|
|
@@ -2438,7 +2441,7 @@ function jt(e = {}) {
|
|
|
2438
2441
|
g = (() => {
|
|
2439
2442
|
r && mn(null);
|
|
2440
2443
|
const _ = {
|
|
2441
|
-
version:
|
|
2444
|
+
version: ro,
|
|
2442
2445
|
locale: i.value,
|
|
2443
2446
|
fallbackLocale: c.value,
|
|
2444
2447
|
messages: E.value,
|
|
@@ -2457,7 +2460,7 @@ function jt(e = {}) {
|
|
|
2457
2460
|
__meta: { framework: "vue" }
|
|
2458
2461
|
};
|
|
2459
2462
|
_.datetimeFormats = b.value, _.numberFormats = L.value, _.__datetimeFormatters = k(g) ? g.__datetimeFormatters : void 0, _.__numberFormatters = k(g) ? g.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (_.__v_emitter = k(g) ? g.__v_emitter : void 0);
|
|
2460
|
-
const h =
|
|
2463
|
+
const h = Rs(_);
|
|
2461
2464
|
return r && mn(h), h;
|
|
2462
2465
|
})(), Ve(g, i.value, c.value);
|
|
2463
2466
|
function U() {
|
|
@@ -2499,7 +2502,7 @@ function jt(e = {}) {
|
|
|
2499
2502
|
U();
|
|
2500
2503
|
let Ie;
|
|
2501
2504
|
try {
|
|
2502
|
-
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = t ?
|
|
2505
|
+
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = t ? ks() : void 0), Ie = _(g);
|
|
2503
2506
|
} finally {
|
|
2504
2507
|
process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (g.fallbackContext = void 0);
|
|
2505
2508
|
}
|
|
@@ -2575,7 +2578,7 @@ function jt(e = {}) {
|
|
|
2575
2578
|
return !1;
|
|
2576
2579
|
const V = O(h) ? h : i.value, K = ge(V), pe = g.messageResolver(K, _);
|
|
2577
2580
|
return re(pe) || te(pe) || O(pe);
|
|
2578
|
-
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, h]),
|
|
2581
|
+
}, () => [_], "translate exists", (V) => Reflect.apply(V.te, V, [_, h]), lo, (V) => M(V));
|
|
2579
2582
|
}
|
|
2580
2583
|
function Re(_) {
|
|
2581
2584
|
let h = null;
|
|
@@ -2715,16 +2718,16 @@ const _r = "vue-i18n: composer properties", Ot = {
|
|
|
2715
2718
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2716
2719
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2717
2720
|
"vue-i18n-timeline": "Vue I18n"
|
|
2718
|
-
},
|
|
2721
|
+
}, uo = {
|
|
2719
2722
|
"vue-i18n-resource-inspector": "Search for scopes ..."
|
|
2720
|
-
},
|
|
2723
|
+
}, co = {
|
|
2721
2724
|
"vue-i18n-timeline": 16764185
|
|
2722
2725
|
};
|
|
2723
2726
|
let Mt;
|
|
2724
|
-
async function
|
|
2727
|
+
async function fo(e, t) {
|
|
2725
2728
|
return new Promise((n, r) => {
|
|
2726
2729
|
try {
|
|
2727
|
-
|
|
2730
|
+
no({
|
|
2728
2731
|
id: "vue-devtools-plugin-vue-i18n",
|
|
2729
2732
|
label: Ot["vue-devtools-plugin-vue-i18n"],
|
|
2730
2733
|
packageName: "vue-i18n",
|
|
@@ -2735,36 +2738,36 @@ async function io(e, t) {
|
|
|
2735
2738
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2736
2739
|
}, (a) => {
|
|
2737
2740
|
Mt = a, a.on.visitComponentTree(({ componentInstance: o, treeNode: i }) => {
|
|
2738
|
-
|
|
2741
|
+
_o(o, i, t);
|
|
2739
2742
|
}), a.on.inspectComponent(({ componentInstance: o, instanceData: i }) => {
|
|
2740
2743
|
o.__VUE_I18N__ && i && (t.mode === "legacy" ? o.__VUE_I18N__ !== t.global.__composer && Dn(i, o.__VUE_I18N__) : Dn(i, o.__VUE_I18N__));
|
|
2741
2744
|
}), a.addInspector({
|
|
2742
2745
|
id: "vue-i18n-resource-inspector",
|
|
2743
2746
|
label: Ot["vue-i18n-resource-inspector"],
|
|
2744
2747
|
icon: "language",
|
|
2745
|
-
treeFilterPlaceholder:
|
|
2748
|
+
treeFilterPlaceholder: uo["vue-i18n-resource-inspector"]
|
|
2746
2749
|
}), a.on.getInspectorTree((o) => {
|
|
2747
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2750
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && No(o, t);
|
|
2748
2751
|
});
|
|
2749
2752
|
const s = /* @__PURE__ */ new Map();
|
|
2750
2753
|
a.on.getInspectorState(async (o) => {
|
|
2751
2754
|
if (o.app === e && o.inspectorId === "vue-i18n-resource-inspector")
|
|
2752
|
-
if (a.unhighlightElement(),
|
|
2755
|
+
if (a.unhighlightElement(), Lo(o, t), o.nodeId === "global") {
|
|
2753
2756
|
if (!s.has(o.app)) {
|
|
2754
2757
|
const [i] = await a.getComponentInstances(o.app);
|
|
2755
2758
|
s.set(o.app, i);
|
|
2756
2759
|
}
|
|
2757
2760
|
a.highlightElement(s.get(o.app));
|
|
2758
2761
|
} else {
|
|
2759
|
-
const i =
|
|
2762
|
+
const i = ho(o.nodeId, t);
|
|
2760
2763
|
i && a.highlightElement(i);
|
|
2761
2764
|
}
|
|
2762
2765
|
}), a.on.editInspectorState((o) => {
|
|
2763
|
-
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" &&
|
|
2766
|
+
o.app === e && o.inspectorId === "vue-i18n-resource-inspector" && bo(o, t);
|
|
2764
2767
|
}), a.addTimelineLayer({
|
|
2765
2768
|
id: "vue-i18n-timeline",
|
|
2766
2769
|
label: Ot["vue-i18n-timeline"],
|
|
2767
|
-
color:
|
|
2770
|
+
color: co["vue-i18n-timeline"]
|
|
2768
2771
|
}), n(!0);
|
|
2769
2772
|
});
|
|
2770
2773
|
} catch (a) {
|
|
@@ -2775,7 +2778,7 @@ async function io(e, t) {
|
|
|
2775
2778
|
function mr(e) {
|
|
2776
2779
|
return e.type.name || e.type.displayName || e.type.__file || "Anonymous";
|
|
2777
2780
|
}
|
|
2778
|
-
function
|
|
2781
|
+
function _o(e, t, n) {
|
|
2779
2782
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2780
2783
|
if (e && e.__VUE_I18N__ && e.__VUE_I18N__ !== r) {
|
|
2781
2784
|
const a = {
|
|
@@ -2829,30 +2832,30 @@ function Xt(e) {
|
|
|
2829
2832
|
const t = {};
|
|
2830
2833
|
return Object.keys(e).forEach((n) => {
|
|
2831
2834
|
const r = e[n];
|
|
2832
|
-
x(r) && "source" in r ? t[n] =
|
|
2835
|
+
x(r) && "source" in r ? t[n] = po(r) : re(r) && r.loc && r.loc.source ? t[n] = r.loc.source : R(r) ? t[n] = Xt(r) : t[n] = r;
|
|
2833
2836
|
}), t;
|
|
2834
2837
|
}
|
|
2835
|
-
const
|
|
2838
|
+
const mo = {
|
|
2836
2839
|
"<": "<",
|
|
2837
2840
|
">": ">",
|
|
2838
2841
|
'"': """,
|
|
2839
2842
|
"&": "&"
|
|
2840
2843
|
};
|
|
2841
|
-
function
|
|
2842
|
-
return e.replace(/[<>"&]/g,
|
|
2844
|
+
function Eo(e) {
|
|
2845
|
+
return e.replace(/[<>"&]/g, go);
|
|
2843
2846
|
}
|
|
2844
|
-
function
|
|
2845
|
-
return
|
|
2847
|
+
function go(e) {
|
|
2848
|
+
return mo[e] || e;
|
|
2846
2849
|
}
|
|
2847
|
-
function
|
|
2850
|
+
function po(e) {
|
|
2848
2851
|
return {
|
|
2849
2852
|
_custom: {
|
|
2850
2853
|
type: "function",
|
|
2851
|
-
display: `<span>ƒ</span> ${e.source ? `("${
|
|
2854
|
+
display: `<span>ƒ</span> ${e.source ? `("${Eo(e.source)}")` : "(?)"}`
|
|
2852
2855
|
}
|
|
2853
2856
|
};
|
|
2854
2857
|
}
|
|
2855
|
-
function
|
|
2858
|
+
function No(e, t) {
|
|
2856
2859
|
e.rootNodes.push({
|
|
2857
2860
|
id: "global",
|
|
2858
2861
|
label: "Global Scope"
|
|
@@ -2866,7 +2869,7 @@ function Eo(e, t) {
|
|
|
2866
2869
|
});
|
|
2867
2870
|
}
|
|
2868
2871
|
}
|
|
2869
|
-
function
|
|
2872
|
+
function ho(e, t) {
|
|
2870
2873
|
let n = null;
|
|
2871
2874
|
if (e !== "global") {
|
|
2872
2875
|
for (const [r, a] of t.__instances.entries())
|
|
@@ -2885,11 +2888,11 @@ function dr(e, t) {
|
|
|
2885
2888
|
return n ? t.mode === "composition" ? n : n.__composer : null;
|
|
2886
2889
|
}
|
|
2887
2890
|
}
|
|
2888
|
-
function
|
|
2891
|
+
function Lo(e, t) {
|
|
2889
2892
|
const n = dr(e.nodeId, t);
|
|
2890
|
-
return n && (e.state =
|
|
2893
|
+
return n && (e.state = To(n)), null;
|
|
2891
2894
|
}
|
|
2892
|
-
function
|
|
2895
|
+
function To(e) {
|
|
2893
2896
|
const t = {}, n = "Locale related info", r = [
|
|
2894
2897
|
{
|
|
2895
2898
|
type: n,
|
|
@@ -2964,14 +2967,14 @@ function Ye(e, t) {
|
|
|
2964
2967
|
});
|
|
2965
2968
|
}
|
|
2966
2969
|
}
|
|
2967
|
-
function
|
|
2970
|
+
function bo(e, t) {
|
|
2968
2971
|
const n = dr(e.nodeId, t);
|
|
2969
2972
|
if (n) {
|
|
2970
2973
|
const [r] = e.path;
|
|
2971
2974
|
r === "locale" && O(e.state.value) ? n.locale.value = e.state.value : r === "fallbackLocale" && (O(e.state.value) || G(e.state.value) || R(e.state.value)) ? n.fallbackLocale.value = e.state.value : r === "inheritLocale" && M(e.state.value) && (n.inheritLocale = e.state.value);
|
|
2972
2975
|
}
|
|
2973
2976
|
}
|
|
2974
|
-
function
|
|
2977
|
+
function Oo(e) {
|
|
2975
2978
|
const t = O(e.locale) ? e.locale : Be, n = O(e.fallbackLocale) || G(e.fallbackLocale) || k(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, r = x(e.missing) ? e.missing : void 0, a = M(e.silentTranslationWarn) || De(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, s = M(e.silentFallbackWarn) || De(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, o = M(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, c = k(e.modifiers) ? e.modifiers : {}, E = e.pluralizationRules, b = x(e.postTranslation) ? e.postTranslation : void 0, L = O(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, N = !!e.escapeParameterHtml, A = M(e.sync) ? e.sync : !0;
|
|
2976
2979
|
let P = e.messages;
|
|
2977
2980
|
if (k(e.sharedMessages)) {
|
|
@@ -3007,7 +3010,7 @@ function Lo(e) {
|
|
|
3007
3010
|
};
|
|
3008
3011
|
}
|
|
3009
3012
|
function wt(e = {}) {
|
|
3010
|
-
const t = jt(
|
|
3013
|
+
const t = jt(Oo(e)), { __extender: n } = e, r = {
|
|
3011
3014
|
// id
|
|
3012
3015
|
id: t.id,
|
|
3013
3016
|
// locale
|
|
@@ -3175,7 +3178,7 @@ function wt(e = {}) {
|
|
|
3175
3178
|
a[We] && a[We]();
|
|
3176
3179
|
}), r;
|
|
3177
3180
|
}
|
|
3178
|
-
function
|
|
3181
|
+
function Io(e, t, n) {
|
|
3179
3182
|
return {
|
|
3180
3183
|
beforeCreate() {
|
|
3181
3184
|
const r = Ae();
|
|
@@ -3254,7 +3257,7 @@ const Jt = {
|
|
|
3254
3257
|
type: Object
|
|
3255
3258
|
}
|
|
3256
3259
|
};
|
|
3257
|
-
function
|
|
3260
|
+
function Co({ slots: e }, t) {
|
|
3258
3261
|
return t.length === 1 && t[0] === "default" ? (e.default ? e.default() : []).reduce((r, a) => [
|
|
3259
3262
|
...r,
|
|
3260
3263
|
// prettier-ignore
|
|
@@ -3267,7 +3270,7 @@ function bo({ slots: e }, t) {
|
|
|
3267
3270
|
function Er() {
|
|
3268
3271
|
return Un;
|
|
3269
3272
|
}
|
|
3270
|
-
const
|
|
3273
|
+
const vo = /* @__PURE__ */ Ut({
|
|
3271
3274
|
/* eslint-disable */
|
|
3272
3275
|
name: "i18n-t",
|
|
3273
3276
|
props: J({
|
|
@@ -3290,12 +3293,12 @@ const Oo = /* @__PURE__ */ Ut({
|
|
|
3290
3293
|
return () => {
|
|
3291
3294
|
const s = Object.keys(n).filter((L) => L[0] !== "_"), o = $();
|
|
3292
3295
|
e.locale && (o.locale = e.locale), e.plural !== void 0 && (o.plural = O(e.plural) ? +e.plural : e.plural);
|
|
3293
|
-
const i =
|
|
3296
|
+
const i = Co(t, s), c = a[Pt](e.keypath, i, o), E = J($(), r), b = O(e.tag) || R(e.tag) ? e.tag : Er();
|
|
3294
3297
|
return wn(b, E, c);
|
|
3295
3298
|
};
|
|
3296
3299
|
}
|
|
3297
|
-
}), Fn =
|
|
3298
|
-
function
|
|
3300
|
+
}), Fn = vo;
|
|
3301
|
+
function Ao(e) {
|
|
3299
3302
|
return G(e) && !O(e[0]);
|
|
3300
3303
|
}
|
|
3301
3304
|
function gr(e, t, n, r) {
|
|
@@ -3308,13 +3311,13 @@ function gr(e, t, n, r) {
|
|
|
3308
3311
|
let E = [o.key];
|
|
3309
3312
|
G(c) ? E = c.map((N, A) => {
|
|
3310
3313
|
const P = a[N.type], v = P ? P({ [N.type]: N.value, index: A, parts: c }) : [N.value];
|
|
3311
|
-
return
|
|
3314
|
+
return Ao(v) && (v[0].key = `${N.type}-${A}`), v;
|
|
3312
3315
|
}) : O(c) && (E = [c]);
|
|
3313
3316
|
const b = J($(), s), L = O(e.tag) || R(e.tag) ? e.tag : Er();
|
|
3314
3317
|
return wn(L, b, E);
|
|
3315
3318
|
};
|
|
3316
3319
|
}
|
|
3317
|
-
const
|
|
3320
|
+
const Do = /* @__PURE__ */ Ut({
|
|
3318
3321
|
/* eslint-disable */
|
|
3319
3322
|
name: "i18n-n",
|
|
3320
3323
|
props: J({
|
|
@@ -3338,8 +3341,8 @@ const Co = /* @__PURE__ */ Ut({
|
|
|
3338
3341
|
n[kt](...r)
|
|
3339
3342
|
));
|
|
3340
3343
|
}
|
|
3341
|
-
}), Pn =
|
|
3342
|
-
function
|
|
3344
|
+
}), Pn = Do;
|
|
3345
|
+
function So(e, t) {
|
|
3343
3346
|
const n = e;
|
|
3344
3347
|
if (e.mode === "composition")
|
|
3345
3348
|
return n.__getInstance(t) || e.global;
|
|
@@ -3348,13 +3351,13 @@ function vo(e, t) {
|
|
|
3348
3351
|
return r != null ? r.__composer : e.global.__composer;
|
|
3349
3352
|
}
|
|
3350
3353
|
}
|
|
3351
|
-
function
|
|
3354
|
+
function Fo(e) {
|
|
3352
3355
|
const t = (o) => {
|
|
3353
3356
|
process.env.NODE_ENV !== "production" && Vt(Fe(ne.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE));
|
|
3354
3357
|
const { instance: i, value: c } = o;
|
|
3355
3358
|
if (!i || !i.$)
|
|
3356
3359
|
throw z(B.UNEXPECTED_ERROR);
|
|
3357
|
-
const E =
|
|
3360
|
+
const E = So(e, i.$), b = yn(c);
|
|
3358
3361
|
return [
|
|
3359
3362
|
Reflect.apply(E.t, E, [...kn(b)]),
|
|
3360
3363
|
E
|
|
@@ -3398,15 +3401,15 @@ function kn(e) {
|
|
|
3398
3401
|
const { path: t, locale: n, args: r, choice: a, plural: s } = e, o = {}, i = r || {};
|
|
3399
3402
|
return O(n) && (o.locale = n), j(a) && (o.plural = a), j(s) && (o.plural = s), [t, i, o];
|
|
3400
3403
|
}
|
|
3401
|
-
function
|
|
3404
|
+
function Po(e, t, ...n) {
|
|
3402
3405
|
const r = k(n[0]) ? n[0] : {};
|
|
3403
|
-
(!M(r.globalInstall) || r.globalInstall) && ([Fn.name, "I18nT"].forEach((s) => e.component(s, Fn)), [Pn.name, "I18nN"].forEach((s) => e.component(s, Pn)), [Mn.name, "I18nD"].forEach((s) => e.component(s, Mn))), e.directive("t",
|
|
3406
|
+
(!M(r.globalInstall) || r.globalInstall) && ([Fn.name, "I18nT"].forEach((s) => e.component(s, Fn)), [Pn.name, "I18nN"].forEach((s) => e.component(s, Pn)), [Mn.name, "I18nD"].forEach((s) => e.component(s, Mn))), e.directive("t", Fo(t));
|
|
3404
3407
|
}
|
|
3405
|
-
const
|
|
3406
|
-
function
|
|
3408
|
+
const yo = /* @__PURE__ */ ce("global-vue-i18n");
|
|
3409
|
+
function ko(e = {}) {
|
|
3407
3410
|
const t = __VUE_I18N_LEGACY_API__ && M(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__;
|
|
3408
3411
|
process.env.NODE_ENV !== "production" && t && Vt(Fe(ne.DEPRECATE_LEGACY_MODE));
|
|
3409
|
-
const n = M(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] =
|
|
3412
|
+
const n = M(e.globalInjection) ? e.globalInjection : !0, r = /* @__PURE__ */ new Map(), [a, s] = Ro(e, t), o = /* @__PURE__ */ ce(process.env.NODE_ENV !== "production" ? "vue-i18n" : "");
|
|
3410
3413
|
function i(L) {
|
|
3411
3414
|
return r.get(L) || null;
|
|
3412
3415
|
}
|
|
@@ -3428,12 +3431,12 @@ function Fo(e = {}) {
|
|
|
3428
3431
|
b.__composerExtend = v.__composerExtend, b.__vueI18nExtend = v.__vueI18nExtend;
|
|
3429
3432
|
}
|
|
3430
3433
|
let A = null;
|
|
3431
|
-
!t && n && (A =
|
|
3434
|
+
!t && n && (A = Wo(L, b.global)), __VUE_I18N_FULL_INSTALL__ && Po(L, b, ...N), __VUE_I18N_LEGACY_API__ && t && L.mixin(Io(s, s.__composer, b));
|
|
3432
3435
|
const P = L.unmount;
|
|
3433
3436
|
if (L.unmount = () => {
|
|
3434
3437
|
A && A(), b.dispose(), P();
|
|
3435
3438
|
}, process.env.NODE_ENV !== "production") {
|
|
3436
|
-
if (!await
|
|
3439
|
+
if (!await fo(L, b))
|
|
3437
3440
|
throw z(B.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);
|
|
3438
3441
|
const D = Bt();
|
|
3439
3442
|
if (t) {
|
|
@@ -3470,44 +3473,44 @@ function Qt(e = {}) {
|
|
|
3470
3473
|
throw z(B.MUST_BE_CALL_SETUP_TOP);
|
|
3471
3474
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3472
3475
|
throw z(B.NOT_INSTALLED);
|
|
3473
|
-
const n =
|
|
3476
|
+
const n = Mo(t), r = Uo(n), a = cr(t), s = wo(e, a);
|
|
3474
3477
|
if (s === "global")
|
|
3475
3478
|
return fr(r, e, a), r;
|
|
3476
3479
|
if (s === "parent") {
|
|
3477
|
-
let c =
|
|
3480
|
+
let c = Vo(n, t, e.__useComponent);
|
|
3478
3481
|
return c == null && (process.env.NODE_ENV !== "production" && ue(Fe(ne.NOT_FOUND_PARENT_SCOPE)), c = r), c;
|
|
3479
3482
|
}
|
|
3480
3483
|
const o = n;
|
|
3481
3484
|
let i = o.__getInstance(t);
|
|
3482
3485
|
if (i == null) {
|
|
3483
3486
|
const c = J({}, e);
|
|
3484
|
-
"__i18n" in a && (c.__i18n = a.__i18n), r && (c.__root = r), i = jt(c), o.__composerExtend && (i[Rt] = o.__composerExtend(i)),
|
|
3487
|
+
"__i18n" in a && (c.__i18n = a.__i18n), r && (c.__root = r), i = jt(c), o.__composerExtend && (i[Rt] = o.__composerExtend(i)), xo(o, t, i), o.__setInstance(t, i);
|
|
3485
3488
|
} else
|
|
3486
3489
|
process.env.NODE_ENV !== "production" && s === "local" && ue(Fe(ne.DUPLICATE_USE_I18N_CALLING));
|
|
3487
3490
|
return i;
|
|
3488
3491
|
}
|
|
3489
|
-
function
|
|
3490
|
-
const n =
|
|
3492
|
+
function Ro(e, t) {
|
|
3493
|
+
const n = zr(), r = __VUE_I18N_LEGACY_API__ && t ? n.run(() => wt(e)) : n.run(() => jt(e));
|
|
3491
3494
|
if (r == null)
|
|
3492
3495
|
throw z(B.UNEXPECTED_ERROR);
|
|
3493
3496
|
return [n, r];
|
|
3494
3497
|
}
|
|
3495
|
-
function
|
|
3496
|
-
const t =
|
|
3498
|
+
function Mo(e) {
|
|
3499
|
+
const t = ra(e.isCE ? yo : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
3497
3500
|
if (!t)
|
|
3498
3501
|
throw z(e.isCE ? B.NOT_INSTALLED_WITH_PROVIDE : B.UNEXPECTED_ERROR);
|
|
3499
3502
|
return t;
|
|
3500
3503
|
}
|
|
3501
|
-
function
|
|
3504
|
+
function wo(e, t) {
|
|
3502
3505
|
return et(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
3503
3506
|
}
|
|
3504
|
-
function
|
|
3507
|
+
function Uo(e) {
|
|
3505
3508
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
3506
3509
|
}
|
|
3507
|
-
function
|
|
3510
|
+
function Vo(e, t, n = !1) {
|
|
3508
3511
|
let r = null;
|
|
3509
3512
|
const a = t.root;
|
|
3510
|
-
let s =
|
|
3513
|
+
let s = $o(t, n);
|
|
3511
3514
|
for (; s != null; ) {
|
|
3512
3515
|
const o = e;
|
|
3513
3516
|
if (e.mode === "composition")
|
|
@@ -3522,36 +3525,36 @@ function Mo(e, t, n = !1) {
|
|
|
3522
3525
|
}
|
|
3523
3526
|
return r;
|
|
3524
3527
|
}
|
|
3525
|
-
function
|
|
3528
|
+
function $o(e, t = !1) {
|
|
3526
3529
|
return e == null ? null : t && e.vnode.ctx || e.parent;
|
|
3527
3530
|
}
|
|
3528
|
-
function
|
|
3531
|
+
function xo(e, t, n) {
|
|
3529
3532
|
let r = null;
|
|
3530
|
-
|
|
3533
|
+
aa(() => {
|
|
3531
3534
|
if (process.env.NODE_ENV !== "production") {
|
|
3532
3535
|
t.__VUE_I18N__ = n, r = Bt();
|
|
3533
3536
|
const a = n;
|
|
3534
3537
|
a[be] && a[be](r), r.on("*", Ye);
|
|
3535
3538
|
}
|
|
3536
|
-
}, t),
|
|
3539
|
+
}, t), sa(() => {
|
|
3537
3540
|
const a = n;
|
|
3538
3541
|
process.env.NODE_ENV !== "production" && (r && r.off("*", Ye), a[We] && a[We](), delete t.__VUE_I18N__), e.__deleteInstance(t);
|
|
3539
3542
|
const s = a[Rt];
|
|
3540
3543
|
s && (s(), delete a[Rt]);
|
|
3541
3544
|
}, t);
|
|
3542
3545
|
}
|
|
3543
|
-
const
|
|
3546
|
+
const Bo = [
|
|
3544
3547
|
"locale",
|
|
3545
3548
|
"fallbackLocale",
|
|
3546
3549
|
"availableLocales"
|
|
3547
3550
|
], Rn = ["t", "rt", "d", "n", "tm", "te"];
|
|
3548
|
-
function
|
|
3551
|
+
function Wo(e, t) {
|
|
3549
3552
|
const n = /* @__PURE__ */ Object.create(null);
|
|
3550
|
-
return
|
|
3553
|
+
return Bo.forEach((a) => {
|
|
3551
3554
|
const s = Object.getOwnPropertyDescriptor(t, a);
|
|
3552
3555
|
if (!s)
|
|
3553
3556
|
throw z(B.UNEXPECTED_ERROR);
|
|
3554
|
-
const o =
|
|
3557
|
+
const o = na(s.value) ? {
|
|
3555
3558
|
get() {
|
|
3556
3559
|
return s.value.value;
|
|
3557
3560
|
},
|
|
@@ -3576,7 +3579,7 @@ function $o(e, t) {
|
|
|
3576
3579
|
});
|
|
3577
3580
|
};
|
|
3578
3581
|
}
|
|
3579
|
-
const
|
|
3582
|
+
const Go = /* @__PURE__ */ Ut({
|
|
3580
3583
|
/* eslint-disable */
|
|
3581
3584
|
name: "i18n-d",
|
|
3582
3585
|
props: J({
|
|
@@ -3600,14 +3603,14 @@ const xo = /* @__PURE__ */ Ut({
|
|
|
3600
3603
|
n[yt](...r)
|
|
3601
3604
|
));
|
|
3602
3605
|
}
|
|
3603
|
-
}), Mn =
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3606
|
+
}), Mn = Go;
|
|
3607
|
+
ao();
|
|
3608
|
+
Ds(os);
|
|
3609
|
+
Ss(Os);
|
|
3610
|
+
Fs(Xn);
|
|
3608
3611
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3609
3612
|
const e = he();
|
|
3610
|
-
e.__INTLIFY__ = !0,
|
|
3613
|
+
e.__INTLIFY__ = !0, ls(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
3611
3614
|
}
|
|
3612
3615
|
process.env.NODE_ENV;
|
|
3613
3616
|
var pr = {
|
|
@@ -3804,7 +3807,7 @@ var pr = {
|
|
|
3804
3807
|
}
|
|
3805
3808
|
}
|
|
3806
3809
|
};
|
|
3807
|
-
var
|
|
3810
|
+
var Yo = {
|
|
3808
3811
|
name: "en",
|
|
3809
3812
|
el: {
|
|
3810
3813
|
breadcrumb: {
|
|
@@ -4001,21 +4004,21 @@ var Bo = {
|
|
|
4001
4004
|
const Pe = {
|
|
4002
4005
|
zhCn: "zh-cn",
|
|
4003
4006
|
en: "en"
|
|
4004
|
-
},
|
|
4007
|
+
}, Ho = {
|
|
4005
4008
|
[Pe.zhCn]: pr,
|
|
4006
|
-
[Pe.en]:
|
|
4007
|
-
}, Nr = () => (navigator?.language || navigator?.userLanguage)?.startsWith("zh") ? Pe.zhCn : Pe.en,
|
|
4009
|
+
[Pe.en]: Yo
|
|
4010
|
+
}, Nr = () => (navigator?.language || navigator?.userLanguage)?.startsWith("zh") ? Pe.zhCn : Pe.en, tl = () => {
|
|
4008
4011
|
const e = Nr() || Pe.en;
|
|
4009
|
-
return
|
|
4010
|
-
},
|
|
4012
|
+
return Ho[e] || pr;
|
|
4013
|
+
}, nl = (e = {}) => ko({
|
|
4011
4014
|
legacy: !1,
|
|
4012
4015
|
locale: Nr(),
|
|
4013
4016
|
fallbackLocale: Pe.zhCn,
|
|
4014
4017
|
messages: e,
|
|
4015
4018
|
globalInjection: !0
|
|
4016
|
-
}),
|
|
4019
|
+
}), rl = (e) => (t, n = {}) => e.global.t(t, n), hr = () => {
|
|
4017
4020
|
setTimeout(async () => {
|
|
4018
|
-
|
|
4021
|
+
qr.confirm(
|
|
4019
4022
|
"语言设置已更新<br/>是否重新加载页面以应用新的语言设置",
|
|
4020
4023
|
"重新加载提醒",
|
|
4021
4024
|
{
|
|
@@ -4029,59 +4032,62 @@ const Pe = {
|
|
|
4029
4032
|
window.location.reload();
|
|
4030
4033
|
});
|
|
4031
4034
|
}, 0);
|
|
4032
|
-
},
|
|
4035
|
+
}, al = () => {
|
|
4033
4036
|
window.addEventListener("languagechange", hr);
|
|
4034
|
-
},
|
|
4037
|
+
}, sl = () => {
|
|
4035
4038
|
window.removeEventListener("languagechange", hr);
|
|
4036
|
-
},
|
|
4037
|
-
const { t: e } =
|
|
4039
|
+
}, ol = () => {
|
|
4040
|
+
const { t: e } = ia().appContext.config.globalProperties;
|
|
4038
4041
|
return {
|
|
4039
4042
|
t: e
|
|
4040
4043
|
};
|
|
4041
4044
|
};
|
|
4042
|
-
|
|
4043
|
-
const
|
|
4045
|
+
Zr.en.weekStart = 1;
|
|
4046
|
+
const Ko = (e) => {
|
|
4044
4047
|
for (const t in ht)
|
|
4045
4048
|
ht[t].install && e.use(ht[t]);
|
|
4046
|
-
},
|
|
4047
|
-
install:
|
|
4049
|
+
}, ll = {
|
|
4050
|
+
install: Ko
|
|
4048
4051
|
};
|
|
4049
4052
|
export {
|
|
4050
|
-
|
|
4051
|
-
|
|
4053
|
+
jr as AvailableRangePreview,
|
|
4054
|
+
Kr as AvailableRangeSetting,
|
|
4052
4055
|
Or as COLUMN_TYPES,
|
|
4053
|
-
|
|
4056
|
+
vr as CustomSidebar,
|
|
4054
4057
|
br as CustomTitle,
|
|
4055
4058
|
Tr as CustomToggle,
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4059
|
+
Ar as MENU_COLOR_STRATEGY,
|
|
4060
|
+
Dr as MENU_LOADING_STATES,
|
|
4061
|
+
Sr as MENU_TYPE,
|
|
4062
|
+
Ir as MODES,
|
|
4063
|
+
Fr as NODE_CLICK_TYPES,
|
|
4064
|
+
Cr as PageContainer,
|
|
4065
|
+
Xr as RANGE_TYPES,
|
|
4066
|
+
Pr as SPECIAL_ROUTES,
|
|
4067
|
+
yr as TREE_PROPS,
|
|
4068
|
+
Jr as TagList,
|
|
4069
|
+
sl as cancelLanguageChangeListener,
|
|
4070
|
+
kr as collapseNodeKeys,
|
|
4071
|
+
nl as createI18nInstance,
|
|
4072
|
+
rl as createTranslationHelper,
|
|
4073
|
+
ll as default,
|
|
4074
|
+
Rr as expandNodeKeys,
|
|
4075
|
+
Mr as findExpandPath,
|
|
4076
|
+
wr as findExpandPathById,
|
|
4077
|
+
Ur as findMenuByPath,
|
|
4073
4078
|
Nr as getBrowserLanguage,
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4079
|
+
tl as getCurrentLocale,
|
|
4080
|
+
Vr as getFirstLeafMenu,
|
|
4081
|
+
$r as getMenuIconColorById,
|
|
4082
|
+
xr as getParentNodeIdsById,
|
|
4083
|
+
Br as isParentMenuActive,
|
|
4084
|
+
Wr as isParentRouteActive,
|
|
4085
|
+
Gr as isPathInMenu,
|
|
4081
4086
|
Pe as languageMap,
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
+
Ho as localeMap,
|
|
4088
|
+
Yr as processMenuTreeWithLeaf,
|
|
4089
|
+
Qr as rangeOptions,
|
|
4090
|
+
al as setupLanguageChangeListener,
|
|
4091
|
+
Hr as transformMenuData,
|
|
4092
|
+
ol as useI18n
|
|
4087
4093
|
};
|