pptx-vue-viewer 4.71.0 → 4.72.1
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/CHANGELOG.md +24 -0
- package/dist/{AiChatPanel-CrBPDB11.cjs → AiChatPanel-BL4C9slK.cjs} +1 -1
- package/dist/AiChatPanel-BL4C9slK.cjs.br +0 -0
- package/dist/AiChatPanel-BL4C9slK.cjs.gz +0 -0
- package/dist/{AiChatPanel-cLMgIUKT.js → AiChatPanel-DGVA7DSD.js} +2 -2
- package/dist/AiChatPanel-DGVA7DSD.js.br +0 -0
- package/dist/AiChatPanel-DGVA7DSD.js.gz +0 -0
- package/dist/{ai-8VTpsXre.cjs → ai-CU3vgjZb.cjs} +1 -1
- package/dist/ai-CU3vgjZb.cjs.br +1 -0
- package/dist/ai-CU3vgjZb.cjs.gz +0 -0
- package/dist/{ai-Cc4rHzx2.js → ai-_Y6w_syb.js} +1 -1
- package/dist/ai-_Y6w_syb.js.br +0 -0
- package/dist/ai-_Y6w_syb.js.gz +0 -0
- package/dist/ai.cjs +1 -1
- package/dist/ai.cjs.br +0 -0
- package/dist/ai.cjs.gz +0 -0
- package/dist/ai.js +1 -1
- package/dist/ai.js.br +0 -0
- package/dist/ai.js.gz +0 -0
- package/dist/index.cjs +10 -10
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.js +4 -4
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/internals.cjs +1 -1
- package/dist/internals.cjs.br +0 -0
- package/dist/internals.cjs.gz +0 -0
- package/dist/internals.js +1 -1
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/pptx-vue-viewer.css +2 -2
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/{useAiPanelController-aOhIHxkq.cjs → useAiPanelController-Bc1diEUl.cjs} +1 -1
- package/dist/useAiPanelController-Bc1diEUl.cjs.br +0 -0
- package/dist/useAiPanelController-Bc1diEUl.cjs.gz +0 -0
- package/dist/{useAiPanelController-B4pdPnXc.js → useAiPanelController-Cmg_Cl6z.js} +1 -1
- package/dist/useAiPanelController-Cmg_Cl6z.js.br +0 -0
- package/dist/useAiPanelController-Cmg_Cl6z.js.gz +0 -0
- package/dist/{useController-CYBNpWy-.cjs → useController-BPpUYfta.cjs} +498 -498
- package/dist/useController-BPpUYfta.cjs.br +0 -0
- package/dist/useController-BPpUYfta.cjs.gz +0 -0
- package/dist/{useController-DFsGhUrb.js → useController-CUPtwZdF.js} +637 -637
- package/dist/useController-CUPtwZdF.js.br +0 -0
- package/dist/useController-CUPtwZdF.js.gz +0 -0
- package/dist/{useViewerSettingsDialog-4TLUKNb7.js → useViewerSettingsDialog-BbtAGHdZ.js} +2 -2
- package/dist/useViewerSettingsDialog-BbtAGHdZ.js.br +0 -0
- package/dist/useViewerSettingsDialog-BbtAGHdZ.js.gz +0 -0
- package/dist/{useViewerSettingsDialog-Cyo6m7Lv.cjs → useViewerSettingsDialog-Bgy-6QAK.cjs} +2 -2
- package/dist/useViewerSettingsDialog-Bgy-6QAK.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-Bgy-6QAK.cjs.gz +0 -0
- package/dist/viewer/index.cjs +1 -1
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-BuAurqrv.js → viewer-BW6vsxRO.js} +5 -5
- package/dist/viewer-BW6vsxRO.js.br +0 -0
- package/dist/viewer-BW6vsxRO.js.gz +0 -0
- package/dist/{viewer-C_YWmci3.cjs → viewer-CXeAhlqC.cjs} +2 -2
- package/dist/viewer-CXeAhlqC.cjs.br +0 -0
- package/dist/viewer-CXeAhlqC.cjs.gz +0 -0
- package/dist/{y-webrtc-DZi_5IuP.js → y-webrtc-BgcE4lbF.js} +1 -1
- package/dist/y-webrtc-BgcE4lbF.js.br +0 -0
- package/dist/y-webrtc-BgcE4lbF.js.gz +0 -0
- package/dist/{y-webrtc-B_3jGDE-.cjs → y-webrtc-DjfDRwd4.cjs} +1 -1
- package/dist/y-webrtc-DjfDRwd4.cjs.br +0 -0
- package/dist/y-webrtc-DjfDRwd4.cjs.gz +0 -0
- package/package.json +13 -13
- package/dist/AiChatPanel-CrBPDB11.cjs.br +0 -0
- package/dist/AiChatPanel-CrBPDB11.cjs.gz +0 -0
- package/dist/AiChatPanel-cLMgIUKT.js.br +0 -0
- package/dist/AiChatPanel-cLMgIUKT.js.gz +0 -0
- package/dist/ai-8VTpsXre.cjs.br +0 -2
- package/dist/ai-8VTpsXre.cjs.gz +0 -0
- package/dist/ai-Cc4rHzx2.js.br +0 -0
- package/dist/ai-Cc4rHzx2.js.gz +0 -0
- package/dist/useAiPanelController-B4pdPnXc.js.br +0 -0
- package/dist/useAiPanelController-B4pdPnXc.js.gz +0 -0
- package/dist/useAiPanelController-aOhIHxkq.cjs.br +0 -0
- package/dist/useAiPanelController-aOhIHxkq.cjs.gz +0 -0
- package/dist/useController-CYBNpWy-.cjs.br +0 -0
- package/dist/useController-CYBNpWy-.cjs.gz +0 -0
- package/dist/useController-DFsGhUrb.js.br +0 -0
- package/dist/useController-DFsGhUrb.js.gz +0 -0
- package/dist/useViewerSettingsDialog-4TLUKNb7.js.br +0 -0
- package/dist/useViewerSettingsDialog-4TLUKNb7.js.gz +0 -0
- package/dist/useViewerSettingsDialog-Cyo6m7Lv.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-Cyo6m7Lv.cjs.gz +0 -0
- package/dist/viewer-BuAurqrv.js.br +0 -0
- package/dist/viewer-BuAurqrv.js.gz +0 -0
- package/dist/viewer-C_YWmci3.cjs.br +0 -0
- package/dist/viewer-C_YWmci3.cjs.gz +0 -0
- package/dist/y-webrtc-B_3jGDE-.cjs.br +0 -0
- package/dist/y-webrtc-B_3jGDE-.cjs.gz +0 -0
- package/dist/y-webrtc-DZi_5IuP.js.br +0 -0
- package/dist/y-webrtc-DZi_5IuP.js.gz +0 -0
|
@@ -41,19 +41,19 @@ function P(e) {
|
|
|
41
41
|
function F(e) {
|
|
42
42
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
43
43
|
}
|
|
44
|
-
var V = /^javascript:/i, M = /^(?:href|src|action|formaction)$/i,
|
|
45
|
-
function
|
|
44
|
+
var V = /^javascript:/i, M = /^(?:href|xlink:href|src|action|formaction)$/i, $ = /&#(?:x([0-9a-f]+)|(\d+));?/gi, R = /&(?:Tab|NewLine);/g, W = /:?/gi, j = /[\u0000-\u0020\u007f-\u009f]/g, A = /(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i, U = /(^|[\s"'<>/])on(\w+\s*=)/gi, Y = /(?:^|[\s"'<>/])srcdoc\s*=/i, H = /(^|[\s"'<>/])s(rcdoc\s*=)/gi, z = /<(?:base|animate|set|script)(?=[\s/>]|$)/i, G = /<(base|animate|set|script)(?=[\s/>]|$)/gi, q = /(^|[\s"'<>/])((?:href|xlink:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;
|
|
45
|
+
function J(e, t, n) {
|
|
46
46
|
const r = t || n;
|
|
47
47
|
if (!r) return e;
|
|
48
48
|
const o = Number.parseInt(r, t ? 16 : 10);
|
|
49
49
|
return o <= 127 ? String.fromCharCode(o) : e;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
const t = e.replace(
|
|
51
|
+
function K(e) {
|
|
52
|
+
const t = e.replace($, J).replace(R, "").replace(W, ":").replace(j, "");
|
|
53
53
|
return V.test(t);
|
|
54
54
|
}
|
|
55
|
-
function
|
|
56
|
-
if (M.test(e) &&
|
|
55
|
+
function B(e, t) {
|
|
56
|
+
if (M.test(e) && K(t)) return "about:blank";
|
|
57
57
|
return function(e) {
|
|
58
58
|
return e.replace(/&(?![a-z0-9#]{2,6};)/gi, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
59
59
|
}("style" === e.toLowerCase() ? function(e) {
|
|
@@ -71,12 +71,12 @@ function J(e, t) {
|
|
|
71
71
|
}
|
|
72
72
|
if (0 !== l) break;
|
|
73
73
|
const u = e.slice(s + 1, c).trim(), f = u.startsWith("\"") && u.endsWith("\"") || u.startsWith("'") && u.endsWith("'") ? u.slice(1, -1).trim() : u;
|
|
74
|
-
r += e.slice(o, a), r +=
|
|
74
|
+
r += e.slice(o, a), r += K(f) ? "url(about:blank)" : e.slice(a, c + 1), o = c + 1;
|
|
75
75
|
}
|
|
76
76
|
return r + e.slice(o);
|
|
77
77
|
}(t) : t);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Z() {
|
|
80
80
|
const e = /* @__PURE__ */ new Map();
|
|
81
81
|
return {
|
|
82
82
|
events: e,
|
|
@@ -93,9 +93,9 @@ function K() {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
var
|
|
97
|
-
function
|
|
98
|
-
if (
|
|
96
|
+
var X = (e) => !L(e) || N(e);
|
|
97
|
+
function Q(e, t) {
|
|
98
|
+
if (X(e) || X(t) || t === Object.prototype) throw new Error("Invalid value");
|
|
99
99
|
const n = [{
|
|
100
100
|
src: e,
|
|
101
101
|
des: t
|
|
@@ -118,43 +118,43 @@ function Z(e, t) {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function ee(e, t, n) {
|
|
122
122
|
const r = {
|
|
123
123
|
start: e,
|
|
124
124
|
end: t
|
|
125
125
|
};
|
|
126
126
|
return null != n && (r.source = n), r;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
[
|
|
130
|
-
[
|
|
131
|
-
[
|
|
132
|
-
[
|
|
133
|
-
[
|
|
134
|
-
[
|
|
135
|
-
[
|
|
136
|
-
[
|
|
137
|
-
[
|
|
138
|
-
[
|
|
139
|
-
[
|
|
140
|
-
[
|
|
141
|
-
[
|
|
142
|
-
[
|
|
143
|
-
[
|
|
144
|
-
[
|
|
128
|
+
var te = 1, ne = 2, re = 3, oe = 4, ae = 5, se = 6, ce = 7, le = 8, ie = 9, ue = 10, fe = 11, pe = 12, me = 13, de = 14, _e = 15, ge = 16, ve = {
|
|
129
|
+
[te]: "Expected token: '{0}'",
|
|
130
|
+
[ne]: "Invalid token in placeholder: '{0}'",
|
|
131
|
+
[re]: "Unterminated single quote in placeholder",
|
|
132
|
+
[oe]: "Unknown escape sequence: \\{0}",
|
|
133
|
+
[ae]: "Invalid unicode escape sequence: {0}",
|
|
134
|
+
[se]: "Unbalanced closing brace",
|
|
135
|
+
[ce]: "Unterminated closing brace",
|
|
136
|
+
[le]: "Empty placeholder",
|
|
137
|
+
[ie]: "Not allowed nest placeholder",
|
|
138
|
+
[ue]: "Invalid linked format",
|
|
139
|
+
[fe]: "Plural must have messages",
|
|
140
|
+
[pe]: "Unexpected empty linked modifier",
|
|
141
|
+
[me]: "Unexpected empty linked key",
|
|
142
|
+
[de]: "Unexpected lexical analysis in token: '{0}'",
|
|
143
|
+
[_e]: "unhandled codegen node type: '{0}'",
|
|
144
|
+
[ge]: "unhandled mimifier node type: '{0}'"
|
|
145
145
|
};
|
|
146
|
-
function
|
|
147
|
-
const { domain: r, messages: o, args: s } = n, c = "production" !== process.env.NODE_ENV ? a((o ||
|
|
146
|
+
function he(e, t, n = {}) {
|
|
147
|
+
const { domain: r, messages: o, args: s } = n, c = "production" !== process.env.NODE_ENV ? a((o || ve)[e] || "", ...s || []) : e, l = new SyntaxError(String(c));
|
|
148
148
|
return l.code = e, t && (l.location = t), l.domain = r, l;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function ke(e) {
|
|
151
151
|
throw e;
|
|
152
152
|
}
|
|
153
|
-
var
|
|
154
|
-
function
|
|
153
|
+
var be = /<\/?[\w\s="/.':;#-\/]+>/, ye = " ", Ne = "\n", Ee = String.fromCharCode(8232), Oe = String.fromCharCode(8233);
|
|
154
|
+
function we(e) {
|
|
155
155
|
const t = e;
|
|
156
156
|
let n = 0, r = 1, o = 1, a = 0;
|
|
157
|
-
const s = (e) => "\r" === t[e] && t[e + 1] ===
|
|
157
|
+
const s = (e) => "\r" === t[e] && t[e + 1] === Ne, c = (e) => t[e] === Oe, l = (e) => t[e] === Ee, i = (e) => s(e) || ((e) => t[e] === Ne)(e) || c(e) || l(e), u = (e) => s(e) || c(e) || l(e) ? Ne : t[e];
|
|
158
158
|
function f() {
|
|
159
159
|
return a = 0, i(n) && (r++, o = 0), s(n) && n++, n++, o++, t[n];
|
|
160
160
|
}
|
|
@@ -183,9 +183,9 @@ function Ee(e) {
|
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
var
|
|
187
|
-
function
|
|
188
|
-
const n = !1 !== t.location, r =
|
|
186
|
+
var Le = void 0;
|
|
187
|
+
function Ie(e, t = {}) {
|
|
188
|
+
const n = !1 !== t.location, r = we(e), o = () => r.index(), a = () => {
|
|
189
189
|
return e = r.line(), t = r.column(), n = r.index(), {
|
|
190
190
|
line: e,
|
|
191
191
|
column: t,
|
|
@@ -208,7 +208,7 @@ function we(e, t = {}) {
|
|
|
208
208
|
function f(e, t, r, ...o) {
|
|
209
209
|
const a = i();
|
|
210
210
|
if (t.column += r, t.offset += r, u) {
|
|
211
|
-
const r =
|
|
211
|
+
const r = he(e, n ? ee(a.startLoc, t) : null, {
|
|
212
212
|
domain: "tokenizer",
|
|
213
213
|
args: o
|
|
214
214
|
});
|
|
@@ -218,15 +218,15 @@ function we(e, t = {}) {
|
|
|
218
218
|
function p(e, t, r) {
|
|
219
219
|
e.endLoc = a(), e.currentType = t;
|
|
220
220
|
const o = { type: t };
|
|
221
|
-
return n && (o.loc =
|
|
221
|
+
return n && (o.loc = ee(e.startLoc, e.endLoc)), null != r && (o.value = r), o;
|
|
222
222
|
}
|
|
223
223
|
const m = (e) => p(e, 13);
|
|
224
224
|
function d(e, t) {
|
|
225
|
-
return e.currentChar() === t ? (e.next(), t) : (f(
|
|
225
|
+
return e.currentChar() === t ? (e.next(), t) : (f(te, a(), 0, t), "");
|
|
226
226
|
}
|
|
227
227
|
function _(e) {
|
|
228
228
|
let t = "";
|
|
229
|
-
for (; e.currentPeek() ===
|
|
229
|
+
for (; e.currentPeek() === ye || e.currentPeek() === Ne;) t += e.currentPeek(), e.peek();
|
|
230
230
|
return t;
|
|
231
231
|
}
|
|
232
232
|
function g(e) {
|
|
@@ -234,7 +234,7 @@ function we(e, t = {}) {
|
|
|
234
234
|
return e.skipToPeek(), t;
|
|
235
235
|
}
|
|
236
236
|
function v(e) {
|
|
237
|
-
if (e ===
|
|
237
|
+
if (e === Le) return !1;
|
|
238
238
|
const t = e.charCodeAt(0);
|
|
239
239
|
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || 95 === t;
|
|
240
240
|
}
|
|
@@ -243,7 +243,7 @@ function we(e, t = {}) {
|
|
|
243
243
|
if (2 !== n) return !1;
|
|
244
244
|
_(e);
|
|
245
245
|
const r = function(e) {
|
|
246
|
-
if (e ===
|
|
246
|
+
if (e === Le) return !1;
|
|
247
247
|
const t = e.charCodeAt(0);
|
|
248
248
|
return t >= 48 && t <= 57;
|
|
249
249
|
}("-" === e.currentPeek() ? e.peek() : e.currentPeek());
|
|
@@ -257,13 +257,13 @@ function we(e, t = {}) {
|
|
|
257
257
|
function b(e, t = !0) {
|
|
258
258
|
const n = (t = !1, r = "") => {
|
|
259
259
|
const o = e.currentPeek();
|
|
260
|
-
return "{" === o ? t : "@" !== o && o ? "|" === o ? !(r ===
|
|
260
|
+
return "{" === o ? t : "@" !== o && o ? "|" === o ? !(r === ye || r === Ne) : o === ye ? (e.peek(), n(!0, ye)) : o !== Ne || (e.peek(), n(!0, Ne)) : t;
|
|
261
261
|
}, r = n();
|
|
262
262
|
return t && e.resetPeek(), r;
|
|
263
263
|
}
|
|
264
264
|
function y(e, t) {
|
|
265
265
|
const n = e.currentChar();
|
|
266
|
-
return n ===
|
|
266
|
+
return n === Le ? Le : t(n) ? (e.next(), n) : null;
|
|
267
267
|
}
|
|
268
268
|
function N(e) {
|
|
269
269
|
const t = e.charCodeAt(0);
|
|
@@ -299,7 +299,7 @@ function we(e, t = {}) {
|
|
|
299
299
|
return n;
|
|
300
300
|
}
|
|
301
301
|
function D(e) {
|
|
302
|
-
return "'" !== e && e !==
|
|
302
|
+
return "'" !== e && e !== Ne;
|
|
303
303
|
}
|
|
304
304
|
function S(e) {
|
|
305
305
|
const t = e.currentChar();
|
|
@@ -308,7 +308,7 @@ function we(e, t = {}) {
|
|
|
308
308
|
case "'": return e.next(), `\\${t}`;
|
|
309
309
|
case "u": return P(e, t, 4);
|
|
310
310
|
case "U": return P(e, t, 6);
|
|
311
|
-
default: return f(
|
|
311
|
+
default: return f(oe, a(), 0, t), "";
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
function P(e, t, n) {
|
|
@@ -317,7 +317,7 @@ function we(e, t = {}) {
|
|
|
317
317
|
for (let o = 0; o < n; o++) {
|
|
318
318
|
const n = C(e);
|
|
319
319
|
if (!n) {
|
|
320
|
-
f(
|
|
320
|
+
f(ae, a(), 0, `\\${t}${r}${e.currentChar()}`);
|
|
321
321
|
break;
|
|
322
322
|
}
|
|
323
323
|
r += n;
|
|
@@ -325,7 +325,7 @@ function we(e, t = {}) {
|
|
|
325
325
|
return `\\${t}${r}`;
|
|
326
326
|
}
|
|
327
327
|
function F(e) {
|
|
328
|
-
return "{" !== e && "}" !== e && e !==
|
|
328
|
+
return "{" !== e && "}" !== e && e !== ye && e !== Ne;
|
|
329
329
|
}
|
|
330
330
|
function V(e) {
|
|
331
331
|
g(e);
|
|
@@ -338,16 +338,16 @@ function we(e, t = {}) {
|
|
|
338
338
|
const t = d(e, "|");
|
|
339
339
|
return g(e), t;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function $(e, t) {
|
|
342
342
|
let n = null;
|
|
343
343
|
switch (e.currentChar()) {
|
|
344
|
-
case "{": return t.braceNest >= 1 && f(
|
|
345
|
-
case "}": return t.braceNest > 0 && 2 === t.currentType && f(
|
|
346
|
-
case "@": return t.braceNest > 0 && f(
|
|
344
|
+
case "{": return t.braceNest >= 1 && f(ie, a(), 0), e.next(), n = p(t, 2, "{"), g(e), t.braceNest++, n;
|
|
345
|
+
case "}": return t.braceNest > 0 && 2 === t.currentType && f(le, a(), 0), e.next(), n = p(t, 3, "}"), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && 0 === t.braceNest && (t.inLinked = !1), n;
|
|
346
|
+
case "@": return t.braceNest > 0 && f(ce, a(), 0), n = R(e, t) || m(t), t.braceNest = 0, n;
|
|
347
347
|
default: {
|
|
348
348
|
let r = !0, o = !0, s = !0;
|
|
349
|
-
if (k(e)) return t.braceNest > 0 && f(
|
|
350
|
-
if (t.braceNest > 0 && (4 === t.currentType || 5 === t.currentType || 6 === t.currentType)) return f(
|
|
349
|
+
if (k(e)) return t.braceNest > 0 && f(ce, a(), 0), n = p(t, 1, M(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
350
|
+
if (t.braceNest > 0 && (4 === t.currentType || 5 === t.currentType || 6 === t.currentType)) return f(ce, a(), 0), t.braceNest = 0, W(e, t);
|
|
351
351
|
if (r = function(e, t) {
|
|
352
352
|
const { currentType: n } = t;
|
|
353
353
|
if (2 !== n) return !1;
|
|
@@ -359,16 +359,16 @@ function we(e, t = {}) {
|
|
|
359
359
|
let t = "", n = "";
|
|
360
360
|
for (; t = w(e);) n += t;
|
|
361
361
|
const r = e.currentChar();
|
|
362
|
-
if (r && "}" !== r && r !==
|
|
362
|
+
if (r && "}" !== r && r !== Le && r !== ye && r !== Ne && " " !== r) {
|
|
363
363
|
const t = V(e);
|
|
364
|
-
return f(
|
|
364
|
+
return f(ne, a(), 0, n + t), n + t;
|
|
365
365
|
}
|
|
366
|
-
return e.currentChar() ===
|
|
366
|
+
return e.currentChar() === Le && f(ce, a(), 0), n;
|
|
367
367
|
}(e)), g(e), n;
|
|
368
368
|
if (o = h(e, t)) return n = p(t, 5, function(e) {
|
|
369
369
|
g(e);
|
|
370
370
|
let t = "";
|
|
371
|
-
return "-" === e.currentChar() ? (e.next(), t += `-${T(e)}`) : t += T(e), e.currentChar() ===
|
|
371
|
+
return "-" === e.currentChar() ? (e.next(), t += `-${T(e)}`) : t += T(e), e.currentChar() === Le && f(ce, a(), 0), t;
|
|
372
372
|
}(e)), g(e), n;
|
|
373
373
|
if (s = function(e, t) {
|
|
374
374
|
const { currentType: n } = t;
|
|
@@ -381,19 +381,19 @@ function we(e, t = {}) {
|
|
|
381
381
|
let t = "", n = "";
|
|
382
382
|
for (; t = y(e, D);) n += "\\" === t ? S(e) : t;
|
|
383
383
|
const r = e.currentChar();
|
|
384
|
-
return r ===
|
|
384
|
+
return r === Ne || r === Le ? (f(re, a(), 0), r === Ne && (e.next(), d(e, "'")), n) : (d(e, "'"), n);
|
|
385
385
|
}(e)), g(e), n;
|
|
386
|
-
if (!r && !o && !s) return n = p(t, 12, V(e)), f(
|
|
386
|
+
if (!r && !o && !s) return n = p(t, 12, V(e)), f(ne, a(), 0, n.value), g(e), n;
|
|
387
387
|
break;
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
return n;
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function R(e, t) {
|
|
393
393
|
const { currentType: n } = t;
|
|
394
394
|
let r = null;
|
|
395
395
|
const o = e.currentChar();
|
|
396
|
-
switch (7 !== n && 8 !== n && 11 !== n && 9 !== n || o !==
|
|
396
|
+
switch (7 !== n && 8 !== n && 11 !== n && 9 !== n || o !== Ne && o !== ye || f(ue, a(), 0), o) {
|
|
397
397
|
case "@": return e.next(), r = p(t, 7, "@"), t.inLinked = !0, r;
|
|
398
398
|
case ".": return g(e), e.next(), p(t, 8, ".");
|
|
399
399
|
case ":": return g(e), e.next(), p(t, 9, ":");
|
|
@@ -409,7 +409,7 @@ function we(e, t = {}) {
|
|
|
409
409
|
_(e);
|
|
410
410
|
const r = ":" === e.currentPeek();
|
|
411
411
|
return e.resetPeek(), r;
|
|
412
|
-
}(e, t) ? (g(e),
|
|
412
|
+
}(e, t) ? (g(e), R(e, t)) : function(e, t) {
|
|
413
413
|
const { currentType: n } = t;
|
|
414
414
|
if (8 !== n) return !1;
|
|
415
415
|
_(e);
|
|
@@ -424,26 +424,26 @@ function we(e, t = {}) {
|
|
|
424
424
|
if (9 !== n) return !1;
|
|
425
425
|
const r = () => {
|
|
426
426
|
const t = e.currentPeek();
|
|
427
|
-
return "{" === t ? v(e.peek()) : !("@" === t || "|" === t || ":" === t || "." === t || t ===
|
|
427
|
+
return "{" === t ? v(e.peek()) : !("@" === t || "|" === t || ":" === t || "." === t || t === ye || !t) && (t === Ne ? (e.peek(), r()) : b(e, !1));
|
|
428
428
|
}, o = r();
|
|
429
429
|
return e.resetPeek(), o;
|
|
430
|
-
}(e, t) ? (g(e), "{" === o ?
|
|
430
|
+
}(e, t) ? (g(e), "{" === o ? $(e, t) || r : p(t, 10, function(e) {
|
|
431
431
|
const t = (n) => {
|
|
432
432
|
const r = e.currentChar();
|
|
433
|
-
return "{" !== r && "@" !== r && "|" !== r && "(" !== r && ")" !== r && r ? r ===
|
|
433
|
+
return "{" !== r && "@" !== r && "|" !== r && "(" !== r && ")" !== r && r ? r === ye ? n : (n += r, e.next(), t(n)) : n;
|
|
434
434
|
};
|
|
435
435
|
return t("");
|
|
436
|
-
}(e))) : (7 === n && f(
|
|
436
|
+
}(e))) : (7 === n && f(ue, a(), 0), t.braceNest = 0, t.inLinked = !1, W(e, t));
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
function W(e, t) {
|
|
440
440
|
let n = { type: 13 };
|
|
441
|
-
if (t.braceNest > 0) return
|
|
442
|
-
if (t.inLinked) return
|
|
441
|
+
if (t.braceNest > 0) return $(e, t) || m(t);
|
|
442
|
+
if (t.inLinked) return R(e, t) || m(t);
|
|
443
443
|
switch (e.currentChar()) {
|
|
444
|
-
case "{": return
|
|
445
|
-
case "}": return f(
|
|
446
|
-
case "@": return
|
|
444
|
+
case "{": return $(e, t) || m(t);
|
|
445
|
+
case "}": return f(se, a(), 0), e.next(), p(t, 3, "}");
|
|
446
|
+
case "@": return R(e, t) || m(t);
|
|
447
447
|
default:
|
|
448
448
|
if (k(e)) return n = p(t, 1, M(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
449
449
|
if (b(e)) return p(t, 0, function(e) {
|
|
@@ -455,7 +455,7 @@ function we(e, t = {}) {
|
|
|
455
455
|
"{" === r || "}" === r || "@" === r || "|" === r || "\\" === r ? (t += n + r, e.next(), e.next()) : (e.resetPeek(), t += n, e.next());
|
|
456
456
|
} else {
|
|
457
457
|
if ("{" === n || "}" === n || "@" === n || "|" === n || !n) break;
|
|
458
|
-
if (n ===
|
|
458
|
+
if (n === ye || n === Ne) if (b(e)) t += n, e.next();
|
|
459
459
|
else {
|
|
460
460
|
if (k(e)) break;
|
|
461
461
|
t += n, e.next();
|
|
@@ -471,18 +471,18 @@ function we(e, t = {}) {
|
|
|
471
471
|
return {
|
|
472
472
|
nextToken: function() {
|
|
473
473
|
const { currentType: e, offset: t, startLoc: n, endLoc: s } = l;
|
|
474
|
-
return l.lastType = e, l.lastOffset = t, l.lastStartLoc = n, l.lastEndLoc = s, l.offset = o(), l.startLoc = a(), r.currentChar() ===
|
|
474
|
+
return l.lastType = e, l.lastOffset = t, l.lastStartLoc = n, l.lastEndLoc = s, l.offset = o(), l.startLoc = a(), r.currentChar() === Le ? p(l, 13) : W(r, l);
|
|
475
475
|
},
|
|
476
476
|
currentOffset: o,
|
|
477
477
|
currentPosition: a,
|
|
478
478
|
context: i
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
|
-
var
|
|
482
|
-
function
|
|
481
|
+
var xe = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g, Ce = /\\([\\@{}|])/g;
|
|
482
|
+
function Te(e, t) {
|
|
483
483
|
return t;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function De(e, t, n) {
|
|
486
486
|
switch (e) {
|
|
487
487
|
case "\\\\": return "\\";
|
|
488
488
|
case "\\'": return "'";
|
|
@@ -492,12 +492,12 @@ function Ce(e, t, n) {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Se(e = {}) {
|
|
496
496
|
const t = !1 !== e.location, { onError: n } = e;
|
|
497
497
|
function r(e, r, o, a, ...s) {
|
|
498
498
|
const c = e.currentPosition();
|
|
499
499
|
if (c.offset += a, c.column += a, n) {
|
|
500
|
-
const e =
|
|
500
|
+
const e = he(r, t ? ee(o, c) : null, {
|
|
501
501
|
domain: "parser",
|
|
502
502
|
args: s
|
|
503
503
|
});
|
|
@@ -516,7 +516,7 @@ function Te(e = {}) {
|
|
|
516
516
|
}
|
|
517
517
|
function s(e, t) {
|
|
518
518
|
const n = e.context(), r = o(3, n.offset, n.startLoc);
|
|
519
|
-
return r.value = t.replace(
|
|
519
|
+
return r.value = t.replace(Ce, Te), a(r, e.currentOffset(), e.currentPosition()), r;
|
|
520
520
|
}
|
|
521
521
|
function c(e, t) {
|
|
522
522
|
const { lastOffset: r, lastStartLoc: s } = e.context(), c = o(5, r, s);
|
|
@@ -528,7 +528,7 @@ function Te(e = {}) {
|
|
|
528
528
|
}
|
|
529
529
|
function i(e, t) {
|
|
530
530
|
const { lastOffset: r, lastStartLoc: s } = e.context(), c = o(9, r, s);
|
|
531
|
-
return c.value = t.replace(
|
|
531
|
+
return c.value = t.replace(xe, De), e.nextToken(), a(c, e.currentOffset(), e.currentPosition()), c;
|
|
532
532
|
}
|
|
533
533
|
function u(e) {
|
|
534
534
|
const t = e.context(), n = o(6, t.offset, t.startLoc);
|
|
@@ -536,31 +536,31 @@ function Te(e = {}) {
|
|
|
536
536
|
if (8 === s.type) {
|
|
537
537
|
const t = function(e) {
|
|
538
538
|
const t = e.nextToken(), n = e.context(), { lastOffset: s, lastStartLoc: c } = n, l = o(8, s, c);
|
|
539
|
-
return 11 !== t.type ? (r(e,
|
|
539
|
+
return 11 !== t.type ? (r(e, pe, n.lastStartLoc, 0), l.value = "", a(l, s, c), {
|
|
540
540
|
nextConsumeToken: t,
|
|
541
541
|
node: l
|
|
542
|
-
}) : (null == t.value && r(e,
|
|
542
|
+
}) : (null == t.value && r(e, de, n.lastStartLoc, 0, Pe(t)), l.value = t.value || "", a(l, e.currentOffset(), e.currentPosition()), { node: l });
|
|
543
543
|
}(e);
|
|
544
544
|
n.modifier = t.node, s = t.nextConsumeToken || e.nextToken();
|
|
545
545
|
}
|
|
546
|
-
switch (9 !== s.type && r(e,
|
|
546
|
+
switch (9 !== s.type && r(e, de, t.lastStartLoc, 0, Pe(s)), s = e.nextToken(), 2 === s.type && (s = e.nextToken()), s.type) {
|
|
547
547
|
case 10:
|
|
548
|
-
null == s.value && r(e,
|
|
548
|
+
null == s.value && r(e, de, t.lastStartLoc, 0, Pe(s)), n.key = function(e, t) {
|
|
549
549
|
const n = e.context(), r = o(7, n.offset, n.startLoc);
|
|
550
550
|
return r.value = t, a(r, e.currentOffset(), e.currentPosition()), r;
|
|
551
551
|
}(e, s.value || "");
|
|
552
552
|
break;
|
|
553
553
|
case 4:
|
|
554
|
-
null == s.value && r(e,
|
|
554
|
+
null == s.value && r(e, de, t.lastStartLoc, 0, Pe(s)), n.key = l(e, s.value || "");
|
|
555
555
|
break;
|
|
556
556
|
case 5:
|
|
557
|
-
null == s.value && r(e,
|
|
557
|
+
null == s.value && r(e, de, t.lastStartLoc, 0, Pe(s)), n.key = c(e, s.value || "");
|
|
558
558
|
break;
|
|
559
559
|
case 6:
|
|
560
|
-
null == s.value && r(e,
|
|
560
|
+
null == s.value && r(e, de, t.lastStartLoc, 0, Pe(s)), n.key = i(e, s.value || "");
|
|
561
561
|
break;
|
|
562
562
|
default: {
|
|
563
|
-
r(e,
|
|
563
|
+
r(e, me, t.lastStartLoc, 0);
|
|
564
564
|
const c = e.context(), l = o(7, c.offset, c.startLoc);
|
|
565
565
|
return l.value = "", a(l, c.offset, c.startLoc), n.key = l, a(n, c.offset, c.startLoc), {
|
|
566
566
|
nextConsumeToken: s,
|
|
@@ -578,16 +578,16 @@ function Te(e = {}) {
|
|
|
578
578
|
const o = f || e.nextToken();
|
|
579
579
|
switch (f = null, o.type) {
|
|
580
580
|
case 0:
|
|
581
|
-
null == o.value && r(e,
|
|
581
|
+
null == o.value && r(e, de, t.lastStartLoc, 0, Pe(o)), n.items.push(s(e, o.value || ""));
|
|
582
582
|
break;
|
|
583
583
|
case 5:
|
|
584
|
-
null == o.value && r(e,
|
|
584
|
+
null == o.value && r(e, de, t.lastStartLoc, 0, Pe(o)), n.items.push(c(e, o.value || ""));
|
|
585
585
|
break;
|
|
586
586
|
case 4:
|
|
587
|
-
null == o.value && r(e,
|
|
587
|
+
null == o.value && r(e, de, t.lastStartLoc, 0, Pe(o)), n.items.push(l(e, o.value || ""));
|
|
588
588
|
break;
|
|
589
589
|
case 6:
|
|
590
|
-
null == o.value && r(e,
|
|
590
|
+
null == o.value && r(e, de, t.lastStartLoc, 0, Pe(o)), n.items.push(i(e, o.value || ""));
|
|
591
591
|
break;
|
|
592
592
|
case 7: {
|
|
593
593
|
const t = u(e);
|
|
@@ -609,32 +609,32 @@ function Te(e = {}) {
|
|
|
609
609
|
const t = f(e);
|
|
610
610
|
l || (l = 0 === t.items.length), i.cases.push(t);
|
|
611
611
|
} while (13 !== c.currentType);
|
|
612
|
-
return l && r(e,
|
|
612
|
+
return l && r(e, fe, n, 0), a(i, e.currentOffset(), e.currentPosition()), i;
|
|
613
613
|
}(e, n, s, c);
|
|
614
614
|
}
|
|
615
615
|
return { parse: function(n) {
|
|
616
|
-
const s =
|
|
617
|
-
return t && l.loc && (l.loc.source = n), l.body = p(s), e.onCacheKey && (l.cacheKey = e.onCacheKey(n)), 13 !== c.currentType && r(s,
|
|
616
|
+
const s = Ie(n, d({}, e)), c = s.context(), l = o(0, c.offset, c.startLoc);
|
|
617
|
+
return t && l.loc && (l.loc.source = n), l.body = p(s), e.onCacheKey && (l.cacheKey = e.onCacheKey(n)), 13 !== c.currentType && r(s, de, c.lastStartLoc, 0, n[c.offset] || ""), a(l, s.currentOffset(), s.currentPosition()), l;
|
|
618
618
|
} };
|
|
619
619
|
}
|
|
620
|
-
function
|
|
620
|
+
function Pe(e) {
|
|
621
621
|
if (13 === e.type) return "EOF";
|
|
622
622
|
const t = (e.value || "").replace(/\r?\n/gu, "\\n");
|
|
623
623
|
return t.length > 10 ? t.slice(0, 9) + "…" : t;
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
for (let n = 0; n < e.length; n++)
|
|
625
|
+
function Fe(e, t) {
|
|
626
|
+
for (let n = 0; n < e.length; n++) Ve(e[n], t);
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function Ve(e, t) {
|
|
629
629
|
switch (e.type) {
|
|
630
630
|
case 1:
|
|
631
|
-
|
|
631
|
+
Fe(e.cases, t), t.helper("plural");
|
|
632
632
|
break;
|
|
633
633
|
case 2:
|
|
634
|
-
|
|
634
|
+
Fe(e.items, t);
|
|
635
635
|
break;
|
|
636
636
|
case 6:
|
|
637
|
-
|
|
637
|
+
Ve(e.key, t), t.helper("linked"), t.helper("type");
|
|
638
638
|
break;
|
|
639
639
|
case 5:
|
|
640
640
|
t.helper("interpolate"), t.helper("list");
|
|
@@ -642,7 +642,7 @@ function Pe(e, t) {
|
|
|
642
642
|
case 4: t.helper("interpolate"), t.helper("named");
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function Me(e, t = {}) {
|
|
646
646
|
const n = function(e) {
|
|
647
647
|
const t = {
|
|
648
648
|
ast: e,
|
|
@@ -653,11 +653,11 @@ function Fe(e, t = {}) {
|
|
|
653
653
|
helper: (e) => (t.helpers.add(e), e)
|
|
654
654
|
};
|
|
655
655
|
}(e);
|
|
656
|
-
n.helper("normalize"), e.body &&
|
|
656
|
+
n.helper("normalize"), e.body && Ve(e.body, n);
|
|
657
657
|
const r = n.context();
|
|
658
658
|
e.helpers = Array.from(r.helpers);
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function $e(e) {
|
|
661
661
|
if (1 === e.items.length) {
|
|
662
662
|
const t = e.items[0];
|
|
663
663
|
3 !== t.type && 9 !== t.type || (e.static = t.value, delete t.value);
|
|
@@ -678,22 +678,22 @@ function Ve(e) {
|
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function Re(e) {
|
|
682
682
|
switch (e.t = e.type, e.type) {
|
|
683
683
|
case 0: {
|
|
684
684
|
const t = e;
|
|
685
|
-
|
|
685
|
+
Re(t.body), t.b = t.body, delete t.body;
|
|
686
686
|
break;
|
|
687
687
|
}
|
|
688
688
|
case 1: {
|
|
689
689
|
const t = e, n = t.cases;
|
|
690
|
-
for (let e = 0; e < n.length; e++)
|
|
690
|
+
for (let e = 0; e < n.length; e++) Re(n[e]);
|
|
691
691
|
t.c = n, delete t.cases;
|
|
692
692
|
break;
|
|
693
693
|
}
|
|
694
694
|
case 2: {
|
|
695
695
|
const t = e, n = t.items;
|
|
696
|
-
for (let e = 0; e < n.length; e++)
|
|
696
|
+
for (let e = 0; e < n.length; e++) Re(n[e]);
|
|
697
697
|
t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
|
|
698
698
|
break;
|
|
699
699
|
}
|
|
@@ -707,7 +707,7 @@ function Me(e) {
|
|
|
707
707
|
}
|
|
708
708
|
case 6: {
|
|
709
709
|
const t = e;
|
|
710
|
-
|
|
710
|
+
Re(t.key), t.k = t.key, delete t.key, t.modifier && (Re(t.modifier), t.m = t.modifier, delete t.modifier);
|
|
711
711
|
break;
|
|
712
712
|
}
|
|
713
713
|
case 5: {
|
|
@@ -720,19 +720,19 @@ function Me(e) {
|
|
|
720
720
|
t.k = t.key, delete t.key;
|
|
721
721
|
break;
|
|
722
722
|
}
|
|
723
|
-
default: if ("production" !== process.env.NODE_ENV) throw ge
|
|
723
|
+
default: if ("production" !== process.env.NODE_ENV) throw he(ge, null, {
|
|
724
724
|
domain: "minifier",
|
|
725
725
|
args: [e.type]
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
728
|
delete e.type;
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function We(e, t) {
|
|
731
731
|
const { helper: n } = e;
|
|
732
732
|
switch (t.type) {
|
|
733
733
|
case 0:
|
|
734
734
|
(function(e, t) {
|
|
735
|
-
t.body ?
|
|
735
|
+
t.body ? We(e, t.body) : e.push("null");
|
|
736
736
|
})(e, t);
|
|
737
737
|
break;
|
|
738
738
|
case 1:
|
|
@@ -741,7 +741,7 @@ function Re(e, t) {
|
|
|
741
741
|
if (t.cases.length > 1) {
|
|
742
742
|
e.push(`${n("plural")}([`), e.indent(r());
|
|
743
743
|
const o = t.cases.length;
|
|
744
|
-
for (let n = 0; n < o && (
|
|
744
|
+
for (let n = 0; n < o && (We(e, t.cases[n]), n !== o - 1); n++) e.push(", ");
|
|
745
745
|
e.deindent(r()), e.push("])");
|
|
746
746
|
}
|
|
747
747
|
})(e, t);
|
|
@@ -751,14 +751,14 @@ function Re(e, t) {
|
|
|
751
751
|
const { helper: n, needIndent: r } = e;
|
|
752
752
|
e.push(`${n("normalize")}([`), e.indent(r());
|
|
753
753
|
const o = t.items.length;
|
|
754
|
-
for (let n = 0; n < o && (
|
|
754
|
+
for (let n = 0; n < o && (We(e, t.items[n]), n !== o - 1); n++) e.push(", ");
|
|
755
755
|
e.deindent(r()), e.push("])");
|
|
756
756
|
})(e, t);
|
|
757
757
|
break;
|
|
758
758
|
case 6:
|
|
759
759
|
(function(e, t) {
|
|
760
760
|
const { helper: n } = e;
|
|
761
|
-
e.push(`${n("linked")}(`),
|
|
761
|
+
e.push(`${n("linked")}(`), We(e, t.key), t.modifier ? (e.push(", "), We(e, t.modifier), e.push(", _type")) : e.push(", undefined, _type"), e.push(")");
|
|
762
762
|
})(e, t);
|
|
763
763
|
break;
|
|
764
764
|
case 8:
|
|
@@ -773,21 +773,21 @@ function Re(e, t) {
|
|
|
773
773
|
case 4:
|
|
774
774
|
e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`, t);
|
|
775
775
|
break;
|
|
776
|
-
default: if ("production" !== process.env.NODE_ENV) throw
|
|
776
|
+
default: if ("production" !== process.env.NODE_ENV) throw he(_e, null, {
|
|
777
777
|
domain: "parser",
|
|
778
778
|
args: [t.type]
|
|
779
779
|
});
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
function
|
|
783
|
-
const n = d({}, t), r = !!n.jit, o = !!n.minify, a = null == n.optimize || n.optimize, s =
|
|
782
|
+
function je(e, t = {}) {
|
|
783
|
+
const n = d({}, t), r = !!n.jit, o = !!n.minify, a = null == n.optimize || n.optimize, s = Se(n).parse(e);
|
|
784
784
|
return r ? (a && function(e) {
|
|
785
785
|
const t = e.body;
|
|
786
|
-
2 === t.type ?
|
|
787
|
-
}(s), o &&
|
|
786
|
+
2 === t.type ? $e(t) : t.cases.forEach((e) => $e(e));
|
|
787
|
+
}(s), o && Re(s), {
|
|
788
788
|
ast: s,
|
|
789
789
|
code: ""
|
|
790
|
-
}) : (
|
|
790
|
+
}) : (Me(s, n), ((e, t = {}) => {
|
|
791
791
|
const n = O(t.mode) ? t.mode : "normal", r = O(t.filename) ? t.filename : "message.intl";
|
|
792
792
|
t.sourceMap;
|
|
793
793
|
const o = null != t.breakLineCode ? t.breakLineCode : "arrow" === n ? ";" : "\n", a = t.needIndent ? t.needIndent : "arrow" !== n, s = e.helpers || [], c = function(e, t) {
|
|
@@ -831,7 +831,7 @@ function $e(e, t = {}) {
|
|
|
831
831
|
breakLineCode: o,
|
|
832
832
|
needIndent: a
|
|
833
833
|
});
|
|
834
|
-
c.push("normal" === n ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(a), s.length > 0 && (c.push(`const { ${T(s.map((e) => `${e}: _${e}`), ", ")} } = ctx`), c.newline()), c.push("return "),
|
|
834
|
+
c.push("normal" === n ? "function __msg__ (ctx) {" : "(ctx) => {"), c.indent(a), s.length > 0 && (c.push(`const { ${T(s.map((e) => `${e}: _${e}`), ", ")} } = ctx`), c.newline()), c.push("return "), We(c, e), c.deindent(a), c.push("}"), delete e.helpers;
|
|
835
835
|
const { code: l, map: i } = c.context();
|
|
836
836
|
return {
|
|
837
837
|
ast: e,
|
|
@@ -840,162 +840,162 @@ function $e(e, t = {}) {
|
|
|
840
840
|
};
|
|
841
841
|
})(s, n));
|
|
842
842
|
}
|
|
843
|
-
function
|
|
844
|
-
return L(e) && 0 ===
|
|
843
|
+
function Ae(e) {
|
|
844
|
+
return L(e) && 0 === qe(e) && (k(e, "b") || k(e, "body"));
|
|
845
845
|
}
|
|
846
|
-
var
|
|
847
|
-
var
|
|
848
|
-
var
|
|
849
|
-
var
|
|
850
|
-
var
|
|
851
|
-
function
|
|
852
|
-
return
|
|
846
|
+
var Ue = ["b", "body"];
|
|
847
|
+
var Ye = ["c", "cases"];
|
|
848
|
+
var He = ["s", "static"];
|
|
849
|
+
var ze = ["i", "items"];
|
|
850
|
+
var Ge = ["t", "type"];
|
|
851
|
+
function qe(e) {
|
|
852
|
+
return Xe(e, Ge);
|
|
853
853
|
}
|
|
854
|
-
var
|
|
855
|
-
function
|
|
856
|
-
const n =
|
|
854
|
+
var Je = ["v", "value"];
|
|
855
|
+
function Ke(e, t) {
|
|
856
|
+
const n = Xe(e, Je);
|
|
857
857
|
if (null != n) return n;
|
|
858
|
-
throw
|
|
858
|
+
throw et(t);
|
|
859
859
|
}
|
|
860
|
-
var
|
|
861
|
-
var
|
|
862
|
-
function
|
|
860
|
+
var Be = ["m", "modifier"];
|
|
861
|
+
var Ze = ["k", "key"];
|
|
862
|
+
function Xe(e, t, n) {
|
|
863
863
|
for (let n = 0; n < t.length; n++) {
|
|
864
864
|
const r = t[n];
|
|
865
865
|
if (k(e, r) && null != e[r]) return e[r];
|
|
866
866
|
}
|
|
867
867
|
return n;
|
|
868
868
|
}
|
|
869
|
-
var
|
|
870
|
-
...je,
|
|
871
|
-
...Ae,
|
|
869
|
+
var Qe = [
|
|
872
870
|
...Ue,
|
|
873
871
|
...Ye,
|
|
874
|
-
...
|
|
872
|
+
...He,
|
|
873
|
+
...ze,
|
|
874
|
+
...Ze,
|
|
875
|
+
...Be,
|
|
875
876
|
...Je,
|
|
876
|
-
...Ge
|
|
877
|
-
...He
|
|
877
|
+
...Ge
|
|
878
878
|
];
|
|
879
|
-
function
|
|
879
|
+
function et(e) {
|
|
880
880
|
return /* @__PURE__ */ new Error(`unhandled node type: ${e}`);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function tt(e) {
|
|
883
883
|
return (t) => function(e, t) {
|
|
884
|
-
const n = (r = t,
|
|
884
|
+
const n = (r = t, Xe(r, Ue));
|
|
885
885
|
var r;
|
|
886
|
-
if (null == n) throw
|
|
887
|
-
if (1 ===
|
|
886
|
+
if (null == n) throw et(0);
|
|
887
|
+
if (1 === qe(n)) {
|
|
888
888
|
const t = function(e) {
|
|
889
|
-
return
|
|
889
|
+
return Xe(e, Ye, []);
|
|
890
890
|
}(n);
|
|
891
|
-
return e.plural(t.reduce((t, n) => [...t,
|
|
891
|
+
return e.plural(t.reduce((t, n) => [...t, nt(e, n)], []));
|
|
892
892
|
}
|
|
893
|
-
return
|
|
893
|
+
return nt(e, n);
|
|
894
894
|
}(t, e);
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function nt(e, t) {
|
|
897
897
|
const n = function(e) {
|
|
898
|
-
return
|
|
898
|
+
return Xe(e, He);
|
|
899
899
|
}(t);
|
|
900
900
|
if (null != n) return "text" === e.type ? n : e.normalize([n]);
|
|
901
901
|
{
|
|
902
902
|
const n = function(e) {
|
|
903
|
-
return
|
|
904
|
-
}(t).reduce((t, n) => [...t,
|
|
903
|
+
return Xe(e, ze, []);
|
|
904
|
+
}(t).reduce((t, n) => [...t, rt(e, n)], []);
|
|
905
905
|
return e.normalize(n);
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
|
-
function
|
|
909
|
-
const n =
|
|
908
|
+
function rt(e, t) {
|
|
909
|
+
const n = qe(t);
|
|
910
910
|
switch (n) {
|
|
911
911
|
case 3:
|
|
912
912
|
case 9:
|
|
913
913
|
case 7:
|
|
914
|
-
case 8: return
|
|
914
|
+
case 8: return Ke(t, n);
|
|
915
915
|
case 4: {
|
|
916
916
|
const r = t;
|
|
917
917
|
if (k(r, "k") && r.k) return e.interpolate(e.named(r.k));
|
|
918
918
|
if (k(r, "key") && r.key) return e.interpolate(e.named(r.key));
|
|
919
|
-
throw
|
|
919
|
+
throw et(n);
|
|
920
920
|
}
|
|
921
921
|
case 5: {
|
|
922
922
|
const r = t;
|
|
923
923
|
if (k(r, "i") && l(r.i)) return e.interpolate(e.list(r.i));
|
|
924
924
|
if (k(r, "index") && l(r.index)) return e.interpolate(e.list(r.index));
|
|
925
|
-
throw
|
|
925
|
+
throw et(n);
|
|
926
926
|
}
|
|
927
927
|
case 6: {
|
|
928
928
|
const n = t, r = function(e) {
|
|
929
|
-
return
|
|
929
|
+
return Xe(e, Be);
|
|
930
930
|
}(n), o = function(e) {
|
|
931
|
-
const t =
|
|
931
|
+
const t = Xe(e, Ze);
|
|
932
932
|
if (t) return t;
|
|
933
|
-
throw
|
|
933
|
+
throw et(6);
|
|
934
934
|
}(n);
|
|
935
|
-
return e.linked(
|
|
935
|
+
return e.linked(rt(e, o), r ? rt(e, r) : void 0, e.type);
|
|
936
936
|
}
|
|
937
937
|
default: throw new Error(`unhandled node on format message part: ${n}`);
|
|
938
938
|
}
|
|
939
939
|
}
|
|
940
|
-
function
|
|
941
|
-
t && ((e) =>
|
|
942
|
-
}
|
|
943
|
-
var
|
|
944
|
-
var
|
|
945
|
-
var
|
|
946
|
-
function
|
|
947
|
-
return (t) =>
|
|
948
|
-
}
|
|
949
|
-
var
|
|
950
|
-
function
|
|
951
|
-
return
|
|
952
|
-
}
|
|
953
|
-
var
|
|
954
|
-
[
|
|
955
|
-
[
|
|
956
|
-
[
|
|
957
|
-
[
|
|
958
|
-
[
|
|
959
|
-
[
|
|
960
|
-
[
|
|
940
|
+
function ot(e, t) {
|
|
941
|
+
t && ((e) => be.test(e))(e) && D(a("Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.", { source: e }));
|
|
942
|
+
}
|
|
943
|
+
var at = (e) => e, st = g();
|
|
944
|
+
var ct = null;
|
|
945
|
+
var lt = it("function:translate");
|
|
946
|
+
function it(e) {
|
|
947
|
+
return (t) => ct && ct.emit(e, t);
|
|
948
|
+
}
|
|
949
|
+
var ut = 17, ft = 18, pt = 19, mt = 20, dt = 21, _t = 22, gt = 23;
|
|
950
|
+
function vt(e) {
|
|
951
|
+
return he(e, null, "production" !== process.env.NODE_ENV ? { messages: kt } : void 0);
|
|
952
|
+
}
|
|
953
|
+
var ht, kt = {
|
|
954
|
+
[ut]: "Invalid arguments",
|
|
955
|
+
[ft]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
|
|
956
|
+
[pt]: "The argument provided is not a valid ISO date string",
|
|
957
|
+
[mt]: "Not support non-string message",
|
|
958
|
+
[dt]: "cannot support promise value",
|
|
959
|
+
[_t]: "cannot support async function",
|
|
960
|
+
[gt]: "cannot support locale type"
|
|
961
961
|
};
|
|
962
|
-
function
|
|
963
|
-
return null != t.locale ?
|
|
962
|
+
function bt(e, t) {
|
|
963
|
+
return null != t.locale ? yt(t.locale) : yt(e.locale);
|
|
964
964
|
}
|
|
965
|
-
function
|
|
965
|
+
function yt(e) {
|
|
966
966
|
if (O(e)) return e;
|
|
967
967
|
if (E(e)) {
|
|
968
|
-
if (e.resolvedOnce && null !=
|
|
968
|
+
if (e.resolvedOnce && null != ht) return ht;
|
|
969
969
|
if ("Function" === e.constructor.name) {
|
|
970
970
|
const n = e();
|
|
971
|
-
if (L(t = n) && E(t.then) && E(t.catch)) throw
|
|
972
|
-
return
|
|
971
|
+
if (L(t = n) && E(t.then) && E(t.catch)) throw vt(dt);
|
|
972
|
+
return ht = n;
|
|
973
973
|
}
|
|
974
|
-
throw _t
|
|
974
|
+
throw vt(_t);
|
|
975
975
|
}
|
|
976
|
-
throw
|
|
976
|
+
throw vt(gt);
|
|
977
977
|
var t;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function Nt(e, t, n) {
|
|
980
980
|
return [.../* @__PURE__ */ new Set([n, ...N(t) ? t : L(t) ? Object.keys(t).filter((e) => "default" !== e) : O(t) ? [t] : [n]])];
|
|
981
981
|
}
|
|
982
|
-
function
|
|
982
|
+
function Et(e, t, n) {
|
|
983
983
|
let r = !0;
|
|
984
984
|
for (let o = 0; o < t.length && w(r); o++) {
|
|
985
985
|
const a = t[o];
|
|
986
|
-
O(a) && (r =
|
|
986
|
+
O(a) && (r = Ot(e, t[o], n));
|
|
987
987
|
}
|
|
988
988
|
return r;
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function Ot(e, t, n) {
|
|
991
991
|
let r;
|
|
992
992
|
const o = t.split("-");
|
|
993
993
|
do
|
|
994
|
-
r =
|
|
994
|
+
r = wt(e, o.join("-"), n), o.splice(-1, 1);
|
|
995
995
|
while (o.length && !0 === r);
|
|
996
996
|
return r;
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function wt(e, t, n) {
|
|
999
999
|
let r = !1;
|
|
1000
1000
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1001
1001
|
r = "!" !== t[t.length - 1];
|
|
@@ -1004,46 +1004,46 @@ function Et(e, t, n) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
return r;
|
|
1006
1006
|
}
|
|
1007
|
-
var
|
|
1008
|
-
|
|
1007
|
+
var Lt = [];
|
|
1008
|
+
Lt[0] = {
|
|
1009
1009
|
w: [0],
|
|
1010
1010
|
i: [3, 0],
|
|
1011
1011
|
"[": [4],
|
|
1012
1012
|
o: [7]
|
|
1013
|
-
},
|
|
1013
|
+
}, Lt[1] = {
|
|
1014
1014
|
w: [1],
|
|
1015
1015
|
".": [2],
|
|
1016
1016
|
"[": [4],
|
|
1017
1017
|
o: [7]
|
|
1018
|
-
},
|
|
1018
|
+
}, Lt[2] = {
|
|
1019
1019
|
w: [2],
|
|
1020
1020
|
i: [3, 0],
|
|
1021
1021
|
0: [3, 0]
|
|
1022
|
-
},
|
|
1022
|
+
}, Lt[3] = {
|
|
1023
1023
|
i: [3, 0],
|
|
1024
1024
|
0: [3, 0],
|
|
1025
1025
|
w: [1, 1],
|
|
1026
1026
|
".": [2, 1],
|
|
1027
1027
|
"[": [4, 1],
|
|
1028
1028
|
o: [7, 1]
|
|
1029
|
-
},
|
|
1029
|
+
}, Lt[4] = {
|
|
1030
1030
|
"'": [5, 0],
|
|
1031
1031
|
"\"": [6, 0],
|
|
1032
1032
|
"[": [4, 2],
|
|
1033
1033
|
"]": [1, 3],
|
|
1034
1034
|
o: 8,
|
|
1035
1035
|
l: [4, 0]
|
|
1036
|
-
},
|
|
1036
|
+
}, Lt[5] = {
|
|
1037
1037
|
"'": [4, 0],
|
|
1038
1038
|
o: 8,
|
|
1039
1039
|
l: [5, 0]
|
|
1040
|
-
},
|
|
1040
|
+
}, Lt[6] = {
|
|
1041
1041
|
"\"": [4, 0],
|
|
1042
1042
|
o: 8,
|
|
1043
1043
|
l: [6, 0]
|
|
1044
1044
|
};
|
|
1045
|
-
var
|
|
1046
|
-
function
|
|
1045
|
+
var It = /^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;
|
|
1046
|
+
function xt(e) {
|
|
1047
1047
|
if (null == e) return "o";
|
|
1048
1048
|
switch (e.charCodeAt(0)) {
|
|
1049
1049
|
case 91:
|
|
@@ -1064,48 +1064,48 @@ function Lt(e) {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
return "i";
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function Ct(e) {
|
|
1068
1068
|
const t = e.trim();
|
|
1069
|
-
return ("0" !== e.charAt(0) || !isNaN(parseInt(e))) && (n = t,
|
|
1069
|
+
return ("0" !== e.charAt(0) || !isNaN(parseInt(e))) && (n = t, It.test(n) ? function(e) {
|
|
1070
1070
|
const t = e.charCodeAt(0);
|
|
1071
1071
|
return t !== e.charCodeAt(e.length - 1) || 34 !== t && 39 !== t ? e : e.slice(1, -1);
|
|
1072
1072
|
}(t) : "*" + t);
|
|
1073
1073
|
var n;
|
|
1074
1074
|
}
|
|
1075
|
-
var
|
|
1076
|
-
function
|
|
1075
|
+
var Tt = /* @__PURE__ */ new Map();
|
|
1076
|
+
function Dt(e, t) {
|
|
1077
1077
|
return L(e) ? b(e, t) : null;
|
|
1078
1078
|
}
|
|
1079
|
-
var
|
|
1080
|
-
[
|
|
1081
|
-
[
|
|
1082
|
-
[
|
|
1083
|
-
[
|
|
1084
|
-
[
|
|
1085
|
-
[
|
|
1086
|
-
[
|
|
1087
|
-
[
|
|
1088
|
-
[
|
|
1079
|
+
var St = 1, Pt = 2, Ft = 3, Vt = 4, Mt = 5, $t = 6, Rt = 7, Wt = 8, jt = 9, At = {
|
|
1080
|
+
[St]: "Not found '{key}' key in '{locale}' locale {resource}.",
|
|
1081
|
+
[Pt]: "Fall back to translate '{key}' key with '{target}' locale.",
|
|
1082
|
+
[Ft]: "Cannot format a number value due to not supported Intl.NumberFormat.",
|
|
1083
|
+
[Vt]: "Fall back to number format '{key}' key with '{target}' locale.",
|
|
1084
|
+
[Mt]: "Cannot format a date value due to not supported Intl.DateTimeFormat.",
|
|
1085
|
+
[$t]: "Fall back to datetime format '{key}' key with '{target}' locale.",
|
|
1086
|
+
[Rt]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future.",
|
|
1087
|
+
[Wt]: "Invalid argument for number formatting: expected a number but received '{value}'.",
|
|
1088
|
+
[jt]: "Invalid argument for datetime formatting: expected a Date, number, or ISO string but received '{value}'."
|
|
1089
1089
|
};
|
|
1090
|
-
function
|
|
1091
|
-
return a(
|
|
1090
|
+
function Ut(e, ...t) {
|
|
1091
|
+
return a(At[e], ...t);
|
|
1092
1092
|
}
|
|
1093
|
-
var
|
|
1094
|
-
var
|
|
1095
|
-
Gt = e;
|
|
1096
|
-
}, Jt = null, Kt = (e) => {
|
|
1093
|
+
var Yt, Ht, zt, Gt = "en-US", qt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
|
|
1094
|
+
var Jt = null, Kt = (e) => {
|
|
1097
1095
|
Jt = e;
|
|
1098
|
-
}, Bt =
|
|
1099
|
-
|
|
1100
|
-
|
|
1096
|
+
}, Bt = null, Zt = (e) => {
|
|
1097
|
+
Bt = e;
|
|
1098
|
+
}, Xt = 0;
|
|
1099
|
+
function Qt(e = {}) {
|
|
1100
|
+
const t = E(e.onWarn) ? e.onWarn : D, n = O(e.version) ? e.version : "11.4.18", r = O(e.locale) || E(e.locale) ? e.locale : Gt, o = E(r) ? Gt : r, a = N(e.fallbackLocale) || C(e.fallbackLocale) || O(e.fallbackLocale) || !1 === e.fallbackLocale ? e.fallbackLocale : o, s = C(e.messages) ? e.messages : en(o), c = C(e.datetimeFormats) ? e.datetimeFormats : en(o), l = C(e.numberFormats) ? e.numberFormats : en(o), i = d(g(), e.modifiers, {
|
|
1101
1101
|
upper: (e, t) => "text" === t && O(e) ? e.toUpperCase() : "vnode" === t && L(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
|
|
1102
1102
|
lower: (e, t) => "text" === t && O(e) ? e.toLowerCase() : "vnode" === t && L(e) && "__v_isVNode" in e ? e.children.toLowerCase() : e,
|
|
1103
|
-
capitalize: (e, t) => "text" === t && O(e) ?
|
|
1104
|
-
}), u = e.pluralRules || g(), f = E(e.missing) ? e.missing : null, m = !w(e.missingWarn) && !p(e.missingWarn) || e.missingWarn, _ = !w(e.fallbackWarn) && !p(e.fallbackWarn) || e.fallbackWarn, v = !!e.fallbackFormat, h = !!e.unresolving, k = E(e.postTranslation) ? e.postTranslation : null, b = C(e.processor) ? e.processor : null, y = !w(e.warnHtmlMessage) || e.warnHtmlMessage, I = !!e.escapeParameter, x = E(e.messageCompiler) ? e.messageCompiler :
|
|
1105
|
-
"production" !== process.env.NODE_ENV && E(e.messageCompiler) && P(
|
|
1106
|
-
const T = E(e.messageResolver) ? e.messageResolver :
|
|
1103
|
+
capitalize: (e, t) => "text" === t && O(e) ? qt(e) : "vnode" === t && L(e) && "__v_isVNode" in e ? qt(e.children) : e
|
|
1104
|
+
}), u = e.pluralRules || g(), f = E(e.missing) ? e.missing : null, m = !w(e.missingWarn) && !p(e.missingWarn) || e.missingWarn, _ = !w(e.fallbackWarn) && !p(e.fallbackWarn) || e.fallbackWarn, v = !!e.fallbackFormat, h = !!e.unresolving, k = E(e.postTranslation) ? e.postTranslation : null, b = C(e.processor) ? e.processor : null, y = !w(e.warnHtmlMessage) || e.warnHtmlMessage, I = !!e.escapeParameter, x = E(e.messageCompiler) ? e.messageCompiler : Yt;
|
|
1105
|
+
"production" !== process.env.NODE_ENV && E(e.messageCompiler) && P(Ut(Rt));
|
|
1106
|
+
const T = E(e.messageResolver) ? e.messageResolver : Ht || Dt, S = E(e.localeFallbacker) ? e.localeFallbacker : zt || Nt, F = L(e.fallbackContext) ? e.fallbackContext : void 0, V = e, M = L(V.__datetimeFormatters) ? V.__datetimeFormatters : /* @__PURE__ */ new Map(), $ = L(V.__numberFormatters) ? V.__numberFormatters : /* @__PURE__ */ new Map(), R = L(V.__meta) ? V.__meta : {}, W = {
|
|
1107
1107
|
version: n,
|
|
1108
|
-
cid: ++
|
|
1108
|
+
cid: ++Xt,
|
|
1109
1109
|
locale: r,
|
|
1110
1110
|
fallbackLocale: a,
|
|
1111
1111
|
messages: s,
|
|
@@ -1125,25 +1125,25 @@ function Zt(e = {}) {
|
|
|
1125
1125
|
localeFallbacker: S,
|
|
1126
1126
|
fallbackContext: F,
|
|
1127
1127
|
onWarn: t,
|
|
1128
|
-
__meta:
|
|
1128
|
+
__meta: R
|
|
1129
1129
|
};
|
|
1130
|
-
return W.datetimeFormats = c, W.numberFormats = l, W.__datetimeFormatters = M, W.__numberFormatters =
|
|
1131
|
-
|
|
1130
|
+
return W.datetimeFormats = c, W.numberFormats = l, W.__datetimeFormatters = M, W.__numberFormatters = $, "production" !== process.env.NODE_ENV && (W.__v_emitter = null != V.__v_emitter ? V.__v_emitter : void 0), ("production" !== process.env.NODE_ENV || __INTLIFY_PROD_DEVTOOLS__) && function(e, t, n) {
|
|
1131
|
+
ct && ct.emit("i18n:init", {
|
|
1132
1132
|
timestamp: Date.now(),
|
|
1133
1133
|
i18n: e,
|
|
1134
1134
|
version: t,
|
|
1135
1135
|
meta: n
|
|
1136
1136
|
});
|
|
1137
|
-
}(W, n,
|
|
1137
|
+
}(W, n, R), W;
|
|
1138
1138
|
}
|
|
1139
|
-
var
|
|
1140
|
-
function
|
|
1139
|
+
var en = (e) => ({ [e]: g() });
|
|
1140
|
+
function tn(e, t) {
|
|
1141
1141
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function nn(e, t) {
|
|
1144
1144
|
return e instanceof RegExp ? e.test(t) : e;
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function rn(e, t, n, r, o) {
|
|
1147
1147
|
const { missing: a, onWarn: s } = e;
|
|
1148
1148
|
if ("production" !== process.env.NODE_ENV) {
|
|
1149
1149
|
const r = e.__v_emitter;
|
|
@@ -1158,34 +1158,34 @@ function tn(e, t, n, r, o) {
|
|
|
1158
1158
|
const r = a(e, n, t, o);
|
|
1159
1159
|
return O(r) ? r : t;
|
|
1160
1160
|
}
|
|
1161
|
-
return "production" !== process.env.NODE_ENV &&
|
|
1161
|
+
return "production" !== process.env.NODE_ENV && nn(r, t) && s(Ut(St, {
|
|
1162
1162
|
key: t,
|
|
1163
1163
|
locale: n,
|
|
1164
1164
|
resource: "datetime format" === o ? "datetime formats" : "number format" === o ? "number formats" : "messages"
|
|
1165
1165
|
})), t;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function on(e, t) {
|
|
1168
1168
|
const n = e;
|
|
1169
1169
|
L(t) ? n.__localeChainObjectCache?.delete(t) : n.__localeChainCache?.delete(t);
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1172
|
-
|
|
1171
|
+
function an(e, t, n) {
|
|
1172
|
+
on(e, n), e.fallbackContext && on(e.fallbackContext, n), e.localeFallbacker(e, n, t);
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function sn(e, t) {
|
|
1175
1175
|
return e !== t && e.split("-")[0] === t.split("-")[0];
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function cn(e, t) {
|
|
1178
1178
|
const n = t.indexOf(e);
|
|
1179
1179
|
if (-1 === n) return !1;
|
|
1180
|
-
for (let r = n + 1; r < t.length; r++) if (
|
|
1180
|
+
for (let r = n + 1; r < t.length; r++) if (sn(e, t[r])) return !0;
|
|
1181
1181
|
return !1;
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1183
|
+
function ln(e, t, n, r, o, a, s) {
|
|
1184
1184
|
const { fallbackLocale: c, localeFallbacker: l, onWarn: u } = e, f = l(e, c, n);
|
|
1185
1185
|
let p = n;
|
|
1186
1186
|
for (let c = 0; c < f.length; c++) {
|
|
1187
1187
|
const l = f[c];
|
|
1188
|
-
if ("production" !== process.env.NODE_ENV && n !== l &&
|
|
1188
|
+
if ("production" !== process.env.NODE_ENV && n !== l && tn(a, t) && u(Ut("datetime format" === s ? $t : Vt, {
|
|
1189
1189
|
key: t,
|
|
1190
1190
|
target: l
|
|
1191
1191
|
})), "production" !== process.env.NODE_ENV && n !== l) {
|
|
@@ -1199,44 +1199,44 @@ function sn(e, t, n, r, o, a, s) {
|
|
|
1199
1199
|
});
|
|
1200
1200
|
}
|
|
1201
1201
|
if (C(b(b(r, l) || {}, t)) && O(l)) return l;
|
|
1202
|
-
|
|
1202
|
+
rn(e, t, l, o, s), p = l;
|
|
1203
1203
|
}
|
|
1204
1204
|
return null;
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function un(e, t, n) {
|
|
1207
1207
|
let r = `${e}__${t}`;
|
|
1208
1208
|
return C(n) && !m(n) && (r = `${r}__${JSON.stringify(n)}`), r;
|
|
1209
1209
|
}
|
|
1210
|
-
function
|
|
1210
|
+
function fn(e, t, n) {
|
|
1211
1211
|
for (const r in n) {
|
|
1212
1212
|
const n = `${t}__${r}`;
|
|
1213
1213
|
for (const t of e.keys()) (t === n || t.startsWith(`${n}__`)) && e.delete(t);
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function pn(e, t, n, r) {
|
|
1217
1217
|
const [, o, a, s] = e;
|
|
1218
1218
|
let c = n;
|
|
1219
1219
|
return O(o) ? t.key = o : C(o) && Object.keys(o).forEach((e) => {
|
|
1220
1220
|
r.includes(e) ? c[e] = o[e] : t[e] = o[e];
|
|
1221
1221
|
}), O(a) ? t.locale = a : C(a) && (c = a), C(s) && (c = s), c;
|
|
1222
1222
|
}
|
|
1223
|
-
var
|
|
1224
|
-
function
|
|
1223
|
+
var mn = "undefined" != typeof Intl, dn = mn && void 0 !== Intl.DateTimeFormat, _n = mn && void 0 !== Intl.NumberFormat;
|
|
1224
|
+
function gn(e, ...t) {
|
|
1225
1225
|
const { datetimeFormats: n, unresolving: r, onWarn: o } = e, { __datetimeFormatters: a } = e;
|
|
1226
|
-
if ("production" !== process.env.NODE_ENV && !
|
|
1227
|
-
if (!O(t[0]) && !f(t[0]) && !l(t[0])) return "production" !== process.env.NODE_ENV && o(jt
|
|
1228
|
-
const [s, c, i, u] =
|
|
1226
|
+
if ("production" !== process.env.NODE_ENV && !dn) return o(Ut(Mt)), "";
|
|
1227
|
+
if (!O(t[0]) && !f(t[0]) && !l(t[0])) return "production" !== process.env.NODE_ENV && o(Ut(jt, { value: String(t[0]) })), "";
|
|
1228
|
+
const [s, c, i, u] = hn(...t), p = w(i.missingWarn) ? i.missingWarn : e.missingWarn, m = w(i.fallbackWarn) ? i.fallbackWarn : e.fallbackWarn, _ = !!i.part, g = bt(e, i);
|
|
1229
1229
|
if (!O(s) || "" === s) {
|
|
1230
1230
|
const e = new Intl.DateTimeFormat(g.replace(/!/g, ""), u);
|
|
1231
1231
|
return _ ? e.formatToParts(c) : e.format(c);
|
|
1232
1232
|
}
|
|
1233
|
-
const v =
|
|
1233
|
+
const v = ln(e, s, g, n, p, m, "datetime format");
|
|
1234
1234
|
if (!O(v)) return r ? -1 : s;
|
|
1235
|
-
const h = n[v][s], k =
|
|
1235
|
+
const h = n[v][s], k = un(v, s, u);
|
|
1236
1236
|
let b = a.get(k);
|
|
1237
1237
|
return b || (b = new Intl.DateTimeFormat(v, d({}, h, u)), a.set(k, b)), _ ? b.formatToParts(c) : b.format(c);
|
|
1238
1238
|
}
|
|
1239
|
-
var
|
|
1239
|
+
var vn = [
|
|
1240
1240
|
"localeMatcher",
|
|
1241
1241
|
"weekday",
|
|
1242
1242
|
"era",
|
|
@@ -1258,27 +1258,27 @@ var _n = [
|
|
|
1258
1258
|
"hourCycle",
|
|
1259
1259
|
"fractionalSecondDigits"
|
|
1260
1260
|
];
|
|
1261
|
-
function
|
|
1261
|
+
function hn(...e) {
|
|
1262
1262
|
const [t] = e, n = g(), r = g();
|
|
1263
1263
|
let o;
|
|
1264
1264
|
if (O(t)) {
|
|
1265
1265
|
const e = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1266
|
-
if (!e) throw
|
|
1266
|
+
if (!e) throw vt(pt);
|
|
1267
1267
|
const n = e[3] ? e[3].trim().startsWith("T") ? `${e[1].trim()}${e[3].trim()}` : `${e[1].trim()}T${e[3].trim()}` : e[1].trim();
|
|
1268
1268
|
o = new Date(n);
|
|
1269
1269
|
try {
|
|
1270
1270
|
o.toISOString();
|
|
1271
1271
|
} catch {
|
|
1272
|
-
throw
|
|
1272
|
+
throw vt(pt);
|
|
1273
1273
|
}
|
|
1274
1274
|
} else if (f(t)) {
|
|
1275
|
-
if (isNaN(t.getTime())) throw
|
|
1275
|
+
if (isNaN(t.getTime())) throw vt(ft);
|
|
1276
1276
|
o = t;
|
|
1277
1277
|
} else {
|
|
1278
|
-
if (!l(t)) throw
|
|
1278
|
+
if (!l(t)) throw vt(ut);
|
|
1279
1279
|
o = t;
|
|
1280
1280
|
}
|
|
1281
|
-
const a =
|
|
1281
|
+
const a = pn(e, n, r, vn);
|
|
1282
1282
|
return [
|
|
1283
1283
|
n.key || "",
|
|
1284
1284
|
o,
|
|
@@ -1286,25 +1286,25 @@ function gn(...e) {
|
|
|
1286
1286
|
a
|
|
1287
1287
|
];
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1290
|
-
|
|
1289
|
+
function kn(e, t, n) {
|
|
1290
|
+
fn(e.__datetimeFormatters, t, n);
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function bn(e, ...t) {
|
|
1293
1293
|
const { numberFormats: n, unresolving: r, onWarn: o } = e, { __numberFormatters: a } = e;
|
|
1294
|
-
if ("production" !== process.env.NODE_ENV && !
|
|
1295
|
-
if (!l(t[0])) return "production" !== process.env.NODE_ENV && o(
|
|
1296
|
-
const [s, c, i, u] =
|
|
1294
|
+
if ("production" !== process.env.NODE_ENV && !_n) return o(Ut(Ft)), "";
|
|
1295
|
+
if (!l(t[0])) return "production" !== process.env.NODE_ENV && o(Ut(Wt, { value: String(t[0]) })), "";
|
|
1296
|
+
const [s, c, i, u] = Nn(...t), f = w(i.missingWarn) ? i.missingWarn : e.missingWarn, p = w(i.fallbackWarn) ? i.fallbackWarn : e.fallbackWarn, m = !!i.part, _ = bt(e, i);
|
|
1297
1297
|
if (!O(s) || "" === s) {
|
|
1298
1298
|
const e = new Intl.NumberFormat(_.replace(/!/g, ""), u);
|
|
1299
1299
|
return m ? e.formatToParts(c) : e.format(c);
|
|
1300
1300
|
}
|
|
1301
|
-
const g =
|
|
1301
|
+
const g = ln(e, s, _, n, f, p, "number format");
|
|
1302
1302
|
if (!O(g)) return r ? -1 : s;
|
|
1303
|
-
const v = n[g][s], h =
|
|
1303
|
+
const v = n[g][s], h = un(g, s, u);
|
|
1304
1304
|
let k = a.get(h);
|
|
1305
1305
|
return k || (k = new Intl.NumberFormat(g, d({}, v, u)), a.set(h, k)), m ? k.formatToParts(c) : k.format(c);
|
|
1306
1306
|
}
|
|
1307
|
-
var
|
|
1307
|
+
var yn = [
|
|
1308
1308
|
"localeMatcher",
|
|
1309
1309
|
"style",
|
|
1310
1310
|
"currency",
|
|
@@ -1326,10 +1326,10 @@ var kn = [
|
|
|
1326
1326
|
"roundingIncrement",
|
|
1327
1327
|
"trailingZeroDisplay"
|
|
1328
1328
|
];
|
|
1329
|
-
function
|
|
1329
|
+
function Nn(...e) {
|
|
1330
1330
|
const [t] = e, n = g(), r = g();
|
|
1331
|
-
if (!l(t)) throw
|
|
1332
|
-
const o = t, a =
|
|
1331
|
+
if (!l(t)) throw vt(ut);
|
|
1332
|
+
const o = t, a = pn(e, n, r, yn);
|
|
1333
1333
|
return [
|
|
1334
1334
|
n.key || "",
|
|
1335
1335
|
o,
|
|
@@ -1337,25 +1337,25 @@ function bn(...e) {
|
|
|
1337
1337
|
a
|
|
1338
1338
|
];
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1341
|
-
|
|
1340
|
+
function En(e, t, n) {
|
|
1341
|
+
fn(e.__numberFormatters, t, n);
|
|
1342
1342
|
}
|
|
1343
|
-
var
|
|
1344
|
-
function
|
|
1343
|
+
var On = (e) => e, wn = (e) => "", Ln = (e) => 0 === e.length ? "" : T(e), In = (e) => null == e ? "" : N(e) || C(e) && e.toString === I ? JSON.stringify(e, null, 2) : String(e);
|
|
1344
|
+
function xn(e, t) {
|
|
1345
1345
|
return e = Math.abs(e), 2 === t ? 1 === e ? 0 : 1 : Math.min(e, 2);
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Cn(e = {}) {
|
|
1348
1348
|
const t = e.locale, n = function(e) {
|
|
1349
1349
|
const t = l(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1350
1350
|
return l(e.named?.count) ? e.named.count : l(e.named?.n) ? e.named.n : t;
|
|
1351
|
-
}(e), r = O(t) && e.pluralRules && E(b(e.pluralRules, t)) ? e.pluralRules[t] :
|
|
1351
|
+
}(e), r = O(t) && e.pluralRules && E(b(e.pluralRules, t)) ? e.pluralRules[t] : xn, o = r === xn ? void 0 : xn, a = e.list || [], s = e.named || g(), c = l(e.pluralIndex), i = (t) => {
|
|
1352
1352
|
const n = y(t) ? b(s, t) : s[t];
|
|
1353
1353
|
return !c || n || "count" !== t && "n" !== t ? n : e.pluralIndex;
|
|
1354
1354
|
};
|
|
1355
1355
|
function u(t, n) {
|
|
1356
|
-
return (E(e.messages) ? e.messages(t, !!n) : !!L(e.messages) && e.messages[t]) || (e.parent ? e.parent.message(t) :
|
|
1356
|
+
return (E(e.messages) ? e.messages(t, !!n) : !!L(e.messages) && e.messages[t]) || (e.parent ? e.parent.message(t) : wn);
|
|
1357
1357
|
}
|
|
1358
|
-
const f = E(e.processor?.normalize) ? e.processor.normalize :
|
|
1358
|
+
const f = E(e.processor?.normalize) ? e.processor.normalize : Ln, p = E(e.processor?.interpolate) ? e.processor.interpolate : In, m = {
|
|
1359
1359
|
list: (e) => a[e],
|
|
1360
1360
|
named: i,
|
|
1361
1361
|
plural: (e) => e[r(n, e.length, o)],
|
|
@@ -1365,7 +1365,7 @@ function In(e = {}) {
|
|
|
1365
1365
|
1 === n.length ? L(r) ? (s = r.modifier || s, a = r.type || a) : O(r) && (s = r || s) : 2 === n.length && (O(r) && (s = r || s), O(o) && (a = o || a));
|
|
1366
1366
|
const c = u(t, !0)(m), l = "" === c || void 0 === c ? t : c, i = "vnode" === a && N(l) && s ? l[0] : l;
|
|
1367
1367
|
if (!s) return i;
|
|
1368
|
-
const f = (p = s, e.modifiers ? b(e.modifiers, p) :
|
|
1368
|
+
const f = (p = s, e.modifiers ? b(e.modifiers, p) : On);
|
|
1369
1369
|
var p;
|
|
1370
1370
|
return E(f) ? f(i, a) : ("production" !== process.env.NODE_ENV && P(`Not found '${s}' modifier for the linked message of '${t}' key. Use a built-in modifier, or set a custom modifier with 'modifiers' option. So the linked message is used as is.`), i);
|
|
1371
1371
|
},
|
|
@@ -1380,9 +1380,9 @@ function In(e = {}) {
|
|
|
1380
1380
|
};
|
|
1381
1381
|
return m;
|
|
1382
1382
|
}
|
|
1383
|
-
var
|
|
1384
|
-
function
|
|
1385
|
-
const { fallbackFormat: a, postTranslation: s, unresolving: c, messageCompiler: u, fallbackLocale: f, messages: p } = e, [m, _] =
|
|
1383
|
+
var Tn = () => "", Dn = (e) => E(e), Sn = (e) => O(e) || Ae(e) || Dn(e);
|
|
1384
|
+
function Pn(e, ...o) {
|
|
1385
|
+
const { fallbackFormat: a, postTranslation: s, unresolving: c, messageCompiler: u, fallbackLocale: f, messages: p } = e, [m, _] = Mn(...o), v = w(_.missingWarn) ? _.missingWarn : e.missingWarn, h = w(_.fallbackWarn) ? _.fallbackWarn : e.fallbackWarn, k = w(_.escapeParameter) ? _.escapeParameter : e.escapeParameter, y = !!_.resolvedMessage, I = O(_.default) || w(_.default) ? w(_.default) ? u ? m : () => m : _.default : a ? u ? m : () => m : null, x = a || null != I && (O(I) || E(I)), C = bt(e, _);
|
|
1386
1386
|
k && function(e) {
|
|
1387
1387
|
N(e.list) && (e.list = e.list.map((e) => O(e) ? F(e) : e));
|
|
1388
1388
|
if (L(e.named)) {
|
|
@@ -1398,14 +1398,14 @@ function Dn(e, ...o) {
|
|
|
1398
1398
|
m,
|
|
1399
1399
|
C,
|
|
1400
1400
|
b(p, C) || g()
|
|
1401
|
-
] :
|
|
1402
|
-
if (y ||
|
|
1401
|
+
] : Fn(e, m, C, f, h, v), V = T, M = m;
|
|
1402
|
+
if (y || Sn(V) || x && (V = I, M = V), !(y || Sn(V) && O(S))) return c ? -1 : m;
|
|
1403
1403
|
"production" !== process.env.NODE_ENV && O(V) && null == e.messageCompiler && D("The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function returns the message as is.");
|
|
1404
|
-
let
|
|
1405
|
-
const
|
|
1406
|
-
|
|
1404
|
+
let $ = !1;
|
|
1405
|
+
const R = Dn(V) ? V : Vn(e, m, S, V, M, () => {
|
|
1406
|
+
$ = !0;
|
|
1407
1407
|
});
|
|
1408
|
-
if (
|
|
1408
|
+
if ($) return V;
|
|
1409
1409
|
const j = function(e, o, a) {
|
|
1410
1410
|
const s = "production" !== process.env.NODE_ENV ? e.__v_emitter : void 0;
|
|
1411
1411
|
let c, l, u = null;
|
|
@@ -1421,21 +1421,21 @@ function Dn(e, ...o) {
|
|
|
1421
1421
|
}), c && l && t && n && (t(l), n("intlify message evaluation", c, l));
|
|
1422
1422
|
}
|
|
1423
1423
|
return f;
|
|
1424
|
-
}(e,
|
|
1424
|
+
}(e, R, Cn(function(e, t, n, r) {
|
|
1425
1425
|
const { modifiers: o, pluralRules: a, messageResolver: s, fallbackLocale: c, fallbackWarn: i, missingWarn: u, fallbackContext: f } = e, p = (r, o) => {
|
|
1426
1426
|
let a = s(n, r);
|
|
1427
1427
|
if (null == a && (f || o)) {
|
|
1428
|
-
const [n, , o] =
|
|
1428
|
+
const [n, , o] = Fn(f || e, r, t, c, i, u);
|
|
1429
1429
|
a = n ?? s(o, r);
|
|
1430
1430
|
}
|
|
1431
|
-
if (O(a) ||
|
|
1431
|
+
if (O(a) || Ae(a)) {
|
|
1432
1432
|
let n = !1;
|
|
1433
|
-
const o =
|
|
1433
|
+
const o = Vn(e, r, t, a, r, () => {
|
|
1434
1434
|
n = !0;
|
|
1435
1435
|
});
|
|
1436
|
-
return n ?
|
|
1436
|
+
return n ? Tn : o;
|
|
1437
1437
|
}
|
|
1438
|
-
return
|
|
1438
|
+
return Dn(a) ? a : Tn;
|
|
1439
1439
|
}, m = {
|
|
1440
1440
|
locale: t,
|
|
1441
1441
|
modifiers: o,
|
|
@@ -1448,26 +1448,26 @@ function Dn(e, ...o) {
|
|
|
1448
1448
|
l(r.plural) && (m.pluralIndex = r.plural);
|
|
1449
1449
|
return m;
|
|
1450
1450
|
}(e, S, P, _)));
|
|
1451
|
-
let
|
|
1452
|
-
var
|
|
1453
|
-
if (k && O(
|
|
1451
|
+
let J = s ? s(j, m) : j;
|
|
1452
|
+
var Z;
|
|
1453
|
+
if (k && O(J) && (Z = (Z = (Z = J).replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${B(t, n)}"`)).replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${B(t, n)}'`), A.test(Z) && ("production" !== process.env.NODE_ENV && D("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), Z = Z.replace(U, "$1on$2")), Y.test(Z) && ("production" !== process.env.NODE_ENV && D("Potentially dangerous srcdoc attribute detected in translation. Consider removing srcdoc from your translation messages."), Z = Z.replace(H, "$1s$2")), z.test(Z) && ("production" !== process.env.NODE_ENV && D("Potentially dangerous element (<base>, <animate>, <set> or <script>) detected in translation. Consider removing it from your translation messages."), Z = Z.replace(G, "<$1")), J = Z.replace(q, (e, t, n, r) => K(r) ? `${t}${n}about:blank` : e)), "production" !== process.env.NODE_ENV || __INTLIFY_PROD_DEVTOOLS__) {
|
|
1454
1454
|
const t = {
|
|
1455
1455
|
timestamp: Date.now(),
|
|
1456
|
-
key: O(m) ? m :
|
|
1457
|
-
locale: S || (
|
|
1458
|
-
format: O(V) ? V :
|
|
1459
|
-
message:
|
|
1456
|
+
key: O(m) ? m : Dn(V) ? V.key : "",
|
|
1457
|
+
locale: S || (Dn(V) ? V.locale : ""),
|
|
1458
|
+
format: O(V) ? V : Dn(V) ? V.source : "",
|
|
1459
|
+
message: J
|
|
1460
1460
|
};
|
|
1461
|
-
t.meta = d({}, e.__meta,
|
|
1461
|
+
t.meta = d({}, e.__meta, Jt || {}), lt(t);
|
|
1462
1462
|
}
|
|
1463
|
-
return
|
|
1463
|
+
return J;
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function Fn(e, o, a, s, c, l) {
|
|
1466
1466
|
const { messages: u, onWarn: f, messageResolver: p, localeFallbacker: m } = e, d = m(e, s, a);
|
|
1467
1467
|
let _, v = g(), h = null, k = a, y = null;
|
|
1468
1468
|
const N = "translate";
|
|
1469
1469
|
for (let s = 0; s < d.length; s++) {
|
|
1470
|
-
_ = y = d[s], "production" !== process.env.NODE_ENV && a !== _ && !
|
|
1470
|
+
_ = y = d[s], "production" !== process.env.NODE_ENV && a !== _ && !sn(a, _) && tn(c, o) && f(Ut(Pt, {
|
|
1471
1471
|
key: o,
|
|
1472
1472
|
target: _
|
|
1473
1473
|
}));
|
|
@@ -1490,9 +1490,9 @@ function Sn(e, o, a, s, c, l) {
|
|
|
1490
1490
|
groupId: i(N, o)
|
|
1491
1491
|
}), E && O && t && n && (t(O), n("intlify message resolve", E, O));
|
|
1492
1492
|
}
|
|
1493
|
-
if (
|
|
1494
|
-
if (!
|
|
1495
|
-
const t =
|
|
1493
|
+
if (Sn(h)) break;
|
|
1494
|
+
if (!cn(_, d)) {
|
|
1495
|
+
const t = rn(e, o, _, l, N);
|
|
1496
1496
|
t !== o && (h = t);
|
|
1497
1497
|
}
|
|
1498
1498
|
k = y;
|
|
@@ -1503,9 +1503,9 @@ function Sn(e, o, a, s, c, l) {
|
|
|
1503
1503
|
v
|
|
1504
1504
|
];
|
|
1505
1505
|
}
|
|
1506
|
-
function
|
|
1506
|
+
function Vn(e, o, a, s, l, u) {
|
|
1507
1507
|
const { messageCompiler: f, warnHtmlMessage: p } = e;
|
|
1508
|
-
if (
|
|
1508
|
+
if (Dn(s)) {
|
|
1509
1509
|
const e = s;
|
|
1510
1510
|
return e.locale = e.locale || a, e.key = e.key || o, e;
|
|
1511
1511
|
}
|
|
@@ -1581,69 +1581,69 @@ function Pn(e, o, a, s, l, u) {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
return v.locale = a, v.key = o, v.source = s, v;
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Mn(...e) {
|
|
1585
1585
|
const [t, n, r] = e, o = g();
|
|
1586
|
-
if (!(O(t) || l(t) ||
|
|
1587
|
-
const a = l(t) ? String(t) : (
|
|
1586
|
+
if (!(O(t) || l(t) || Dn(t) || Ae(t))) throw vt(ut);
|
|
1587
|
+
const a = l(t) ? String(t) : (Dn(t), t);
|
|
1588
1588
|
return l(n) ? o.plural = n : O(n) ? o.default = n : C(n) && !m(n) ? o.named = n : N(n) && (o.list = n), l(r) ? o.plural = r : O(r) ? o.default = r : C(r) && d(o, r), [a, o];
|
|
1589
1589
|
}
|
|
1590
1590
|
"boolean" != typeof __INTLIFY_PROD_DEVTOOLS__ && (v().__INTLIFY_PROD_DEVTOOLS__ = !1), "boolean" != typeof __INTLIFY_DROP_MESSAGE_COMPILER__ && (v().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1591
|
-
var
|
|
1592
|
-
function
|
|
1593
|
-
return
|
|
1594
|
-
messages:
|
|
1591
|
+
var $n = 24, Rn = 25, Wn = 26, jn = 27, An = 28, Un = 29, Yn = 30, Hn = 31, zn = 32, Gn = 33, qn = 34;
|
|
1592
|
+
function Jn(e, ...t) {
|
|
1593
|
+
return he(e, null, "production" !== process.env.NODE_ENV ? {
|
|
1594
|
+
messages: Kn,
|
|
1595
1595
|
args: t
|
|
1596
1596
|
} : void 0);
|
|
1597
1597
|
}
|
|
1598
|
-
var
|
|
1599
|
-
[
|
|
1600
|
-
[
|
|
1601
|
-
[
|
|
1602
|
-
[
|
|
1603
|
-
[
|
|
1604
|
-
[
|
|
1605
|
-
[
|
|
1606
|
-
[
|
|
1607
|
-
[
|
|
1608
|
-
[
|
|
1609
|
-
[
|
|
1610
|
-
},
|
|
1598
|
+
var Kn = {
|
|
1599
|
+
[$n]: "Unexpected return type in composer",
|
|
1600
|
+
[Rn]: "Invalid argument",
|
|
1601
|
+
[Wn]: "Must be called at the top of a `setup` function",
|
|
1602
|
+
[jn]: "Need to install with `app.use` function",
|
|
1603
|
+
[zn]: "Unexpected error",
|
|
1604
|
+
[An]: "Required in value: {0}",
|
|
1605
|
+
[Un]: "Invalid value",
|
|
1606
|
+
[Yn]: "Cannot setup vue-devtools plugin",
|
|
1607
|
+
[Hn]: "Need to install with `provide` function",
|
|
1608
|
+
[Gn]: "Not compatible legacy VueI18n.",
|
|
1609
|
+
[qn]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
1610
|
+
}, Bn = s("__translateVNode"), Zn = s("__datetimeParts"), Xn = s("__numberParts"), Qn = s("__enableEmitter"), er = s("__disableEmitter"), tr = s("__setPluralRules");
|
|
1611
1611
|
s("__intlifyMeta");
|
|
1612
|
-
var
|
|
1613
|
-
[
|
|
1614
|
-
[
|
|
1615
|
-
[
|
|
1616
|
-
[
|
|
1617
|
-
[
|
|
1618
|
-
[
|
|
1619
|
-
[
|
|
1612
|
+
var nr = s("__injectWithOption"), rr = s("__dispose"), or = 10, ar = 11, sr = 12, cr = 13, lr = 14, ir = 15, ur = 16, fr = {
|
|
1613
|
+
[or]: "Fall back to {type} '{key}' with root locale.",
|
|
1614
|
+
[ar]: "Not found parent scope. use the global scope.",
|
|
1615
|
+
[sr]: "Ignore object flatten: '{key}' key has an string value",
|
|
1616
|
+
[cr]: "Legacy API mode has been deprecated in v11. Use Composition API mode instead.\nAbout how to use the Composition API mode, see https://vue-i18n.intlify.dev/guide/advanced/composition.html",
|
|
1617
|
+
[lr]: "'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead.",
|
|
1618
|
+
[ir]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component.",
|
|
1619
|
+
[ur]: "Ignore '{locale}' locale: it is a property name of Object.prototype"
|
|
1620
1620
|
};
|
|
1621
|
-
function
|
|
1622
|
-
return a(
|
|
1621
|
+
function pr(e, ...t) {
|
|
1622
|
+
return a(fr[e], ...t);
|
|
1623
1623
|
}
|
|
1624
|
-
var
|
|
1624
|
+
var mr = null;
|
|
1625
1625
|
{
|
|
1626
1626
|
const e = v().__VUE_INSTANCE_SETTERS__;
|
|
1627
1627
|
N(e) && e.push((e) => {
|
|
1628
|
-
|
|
1628
|
+
mr = e;
|
|
1629
1629
|
});
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1632
|
-
return !!y(e) && ("production" !== process.env.NODE_ENV && D(ur
|
|
1631
|
+
function dr(e) {
|
|
1632
|
+
return !!y(e) && ("production" !== process.env.NODE_ENV && D(pr(ur, { locale: e })), !0);
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function _r(e) {
|
|
1635
1635
|
if (!L(e)) return e;
|
|
1636
|
-
if (
|
|
1636
|
+
if (Ae(e)) return e;
|
|
1637
1637
|
for (const t in e) if (k(e, t)) if (t.includes(".")) {
|
|
1638
1638
|
const n = t.split("."), r = n.length - 1;
|
|
1639
1639
|
let o = e, a = !1;
|
|
1640
1640
|
for (let e = 0; e < r; e++) {
|
|
1641
1641
|
if ("__proto__" === n[e]) throw new Error(`unsafe key: ${n[e]}`);
|
|
1642
1642
|
if (n[e] in o || (o[n[e]] = g()), !L(o[n[e]])) {
|
|
1643
|
-
"production" !== process.env.NODE_ENV && D(
|
|
1643
|
+
"production" !== process.env.NODE_ENV && D(pr(sr, { key: n[e] })), a = !0;
|
|
1644
1644
|
break;
|
|
1645
1645
|
}
|
|
1646
|
-
if (
|
|
1646
|
+
if (Ae(o[n[e]]) && (Qe.includes(n[e + 1]) || "cacheKey" === n[e + 1])) {
|
|
1647
1647
|
a = !0;
|
|
1648
1648
|
break;
|
|
1649
1649
|
}
|
|
@@ -1651,29 +1651,29 @@ function mr(e) {
|
|
|
1651
1651
|
}
|
|
1652
1652
|
a || (o[n[r]] = e[t], delete e[t]);
|
|
1653
1653
|
const s = o[n[r]];
|
|
1654
|
-
L(s) &&
|
|
1655
|
-
} else L(e[t]) &&
|
|
1654
|
+
L(s) && _r(s);
|
|
1655
|
+
} else L(e[t]) && _r(e[t]);
|
|
1656
1656
|
return e;
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function gr(e, t) {
|
|
1659
1659
|
const { messages: n, __i18n: r, messageResolver: o, flatJson: a } = t, s = C(n) ? n : N(r) ? g() : { [e]: g() };
|
|
1660
1660
|
if (N(r) && r.forEach((e) => {
|
|
1661
1661
|
if ("locale" in e && "resource" in e) {
|
|
1662
1662
|
const { locale: t, resource: n } = e;
|
|
1663
1663
|
if (t) {
|
|
1664
|
-
if (
|
|
1665
|
-
s[t] = b(s, t) || g(),
|
|
1666
|
-
} else
|
|
1667
|
-
} else O(e) &&
|
|
1668
|
-
}), null == o && a) for (const e in s) k(s, e) &&
|
|
1664
|
+
if (dr(t)) return;
|
|
1665
|
+
s[t] = b(s, t) || g(), Q(n, s[t]);
|
|
1666
|
+
} else Q(n, s);
|
|
1667
|
+
} else O(e) && Q(JSON.parse(e), s);
|
|
1668
|
+
}), null == o && a) for (const e in s) k(s, e) && _r(s[e]);
|
|
1669
1669
|
return s;
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function vr(e) {
|
|
1672
1672
|
return e.type;
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function hr(e, t, n) {
|
|
1675
1675
|
let r = L(t.messages) ? t.messages : g();
|
|
1676
|
-
"__i18nGlobal" in n && (r =
|
|
1676
|
+
"__i18nGlobal" in n && (r = gr(e.locale.value, {
|
|
1677
1677
|
messages: r,
|
|
1678
1678
|
__i18n: n.__i18nGlobal
|
|
1679
1679
|
}));
|
|
@@ -1693,32 +1693,32 @@ function gr(e, t, n) {
|
|
|
1693
1693
|
});
|
|
1694
1694
|
}
|
|
1695
1695
|
}
|
|
1696
|
-
function
|
|
1696
|
+
function kr(t) {
|
|
1697
1697
|
return (0, e.createVNode)(e.Text, null, t, 0);
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1700
|
-
return
|
|
1699
|
+
function br() {
|
|
1700
|
+
return mr ?? (0, e.getCurrentInstance)();
|
|
1701
1701
|
}
|
|
1702
|
-
var
|
|
1703
|
-
function
|
|
1704
|
-
return (t, n, r, o) => e(n, r,
|
|
1702
|
+
var yr = "__INTLIFY_META__", Nr = () => [], Er = () => !1, Or = 0;
|
|
1703
|
+
function wr(e) {
|
|
1704
|
+
return (t, n, r, o) => e(n, r, br() || void 0, o);
|
|
1705
1705
|
}
|
|
1706
|
-
function
|
|
1706
|
+
function Lr(t = {}) {
|
|
1707
1707
|
const { __root: n, __injectWithOption: o } = t, a = void 0 === n, s = t.flatJson, c = r ? e.ref : e.shallowRef;
|
|
1708
1708
|
let u = !w(t.inheritLocale) || t.inheritLocale;
|
|
1709
|
-
const f = c(n && u ? n.locale.value : O(t.locale) ? t.locale :
|
|
1710
|
-
let h = n ? n.missingWarn : !w(t.missingWarn) && !p(t.missingWarn) || t.missingWarn, k = n ? n.fallbackWarn : !w(t.fallbackWarn) && !p(t.fallbackWarn) || t.fallbackWarn, y = n ? n.fallbackRoot : !w(t.fallbackRoot) || t.fallbackRoot, I = !!t.fallbackFormat, x = E(t.missing) ? t.missing : null, T = E(t.missing) ?
|
|
1709
|
+
const f = c(n && u ? n.locale.value : O(t.locale) ? t.locale : Gt), m = c(n && u ? n.fallbackLocale.value : O(t.fallbackLocale) || N(t.fallbackLocale) || C(t.fallbackLocale) || !1 === t.fallbackLocale ? t.fallbackLocale : f.value), _ = c(gr(f.value, t)), g = c(C(t.datetimeFormats) ? t.datetimeFormats : { [f.value]: {} }), v = c(C(t.numberFormats) ? t.numberFormats : { [f.value]: {} });
|
|
1710
|
+
let h = n ? n.missingWarn : !w(t.missingWarn) && !p(t.missingWarn) || t.missingWarn, k = n ? n.fallbackWarn : !w(t.fallbackWarn) && !p(t.fallbackWarn) || t.fallbackWarn, y = n ? n.fallbackRoot : !w(t.fallbackRoot) || t.fallbackRoot, I = !!t.fallbackFormat, x = E(t.missing) ? t.missing : null, T = E(t.missing) ? wr(t.missing) : null, S = E(t.postTranslation) ? t.postTranslation : null, P = n ? n.warnHtmlMessage : !w(t.warnHtmlMessage) || t.warnHtmlMessage, F = !!t.escapeParameter;
|
|
1711
1711
|
const V = n ? n.modifiers : C(t.modifiers) ? t.modifiers : {};
|
|
1712
|
-
let M,
|
|
1712
|
+
let M, $ = t.pluralRules || n && n.pluralRules;
|
|
1713
1713
|
M = (() => {
|
|
1714
|
-
a &&
|
|
1714
|
+
a && Zt(null);
|
|
1715
1715
|
const e = {
|
|
1716
|
-
version: "11.4.
|
|
1716
|
+
version: "11.4.18",
|
|
1717
1717
|
locale: f.value,
|
|
1718
1718
|
fallbackLocale: m.value,
|
|
1719
1719
|
messages: _.value,
|
|
1720
1720
|
modifiers: V,
|
|
1721
|
-
pluralRules:
|
|
1721
|
+
pluralRules: $,
|
|
1722
1722
|
missing: null === T ? void 0 : T,
|
|
1723
1723
|
missingWarn: h,
|
|
1724
1724
|
fallbackWarn: k,
|
|
@@ -1732,17 +1732,17 @@ function Or(t = {}) {
|
|
|
1732
1732
|
__meta: { framework: "vue" }
|
|
1733
1733
|
};
|
|
1734
1734
|
e.datetimeFormats = g.value, e.numberFormats = v.value;
|
|
1735
|
-
const n =
|
|
1736
|
-
return a &&
|
|
1737
|
-
})(),
|
|
1738
|
-
const
|
|
1735
|
+
const n = Qt(e);
|
|
1736
|
+
return a && Zt(n), n;
|
|
1737
|
+
})(), an(M, f.value, m.value);
|
|
1738
|
+
const R = (0, e.computed)({
|
|
1739
1739
|
get: () => f.value,
|
|
1740
1740
|
set: (e) => {
|
|
1741
1741
|
M.locale = e, f.value = e;
|
|
1742
1742
|
}
|
|
1743
1743
|
});
|
|
1744
1744
|
function W(e) {
|
|
1745
|
-
a || (M.fallbackContext =
|
|
1745
|
+
a || (M.fallbackContext = Bt);
|
|
1746
1746
|
try {
|
|
1747
1747
|
return e();
|
|
1748
1748
|
} finally {
|
|
@@ -1750,7 +1750,7 @@ function Or(t = {}) {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
1752
|
function j(e) {
|
|
1753
|
-
W(() =>
|
|
1753
|
+
W(() => an(M, f.value, e));
|
|
1754
1754
|
}
|
|
1755
1755
|
const A = (0, e.computed)({
|
|
1756
1756
|
get: () => m.value,
|
|
@@ -1762,17 +1762,17 @@ function Or(t = {}) {
|
|
|
1762
1762
|
let c;
|
|
1763
1763
|
f.value, m.value, _.value, g.value, v.value;
|
|
1764
1764
|
try {
|
|
1765
|
-
("production" !== process.env.NODE_ENV || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1766
|
-
const e =
|
|
1765
|
+
("production" !== process.env.NODE_ENV || __INTLIFY_PROD_DEVTOOLS__) && Kt((() => {
|
|
1766
|
+
const e = br();
|
|
1767
1767
|
let t = null;
|
|
1768
|
-
return e && (t =
|
|
1768
|
+
return e && (t = vr(e)[yr]) ? { [yr]: t } : null;
|
|
1769
1769
|
})()), c = W(() => e(M));
|
|
1770
1770
|
} finally {
|
|
1771
|
-
("production" !== process.env.NODE_ENV || __INTLIFY_PROD_DEVTOOLS__) &&
|
|
1771
|
+
("production" !== process.env.NODE_ENV || __INTLIFY_PROD_DEVTOOLS__) && Kt(null);
|
|
1772
1772
|
}
|
|
1773
1773
|
if ("translate exists" !== r && l(c) && -1 === c || "translate exists" === r && !c) {
|
|
1774
1774
|
const [e, s] = t();
|
|
1775
|
-
if ("production" !== process.env.NODE_ENV && n && O(e) && (u = s, "translate" !== r || !u.resolvedMessage) && (y && (
|
|
1775
|
+
if ("production" !== process.env.NODE_ENV && n && O(e) && (u = s, "translate" !== r || !u.resolvedMessage) && (y && (tn(k, e) || nn(h, e)) && D(pr(or, {
|
|
1776
1776
|
key: e,
|
|
1777
1777
|
type: r
|
|
1778
1778
|
})), "production" !== process.env.NODE_ENV)) {
|
|
@@ -1787,15 +1787,15 @@ function Or(t = {}) {
|
|
|
1787
1787
|
return n && y ? o(n) : a(e);
|
|
1788
1788
|
}
|
|
1789
1789
|
if (s(c)) return c;
|
|
1790
|
-
throw
|
|
1790
|
+
throw Jn($n);
|
|
1791
1791
|
var u;
|
|
1792
1792
|
};
|
|
1793
1793
|
function G(...e) {
|
|
1794
|
-
return z((t) => Reflect.apply(
|
|
1794
|
+
return z((t) => Reflect.apply(Pn, null, [t, ...e]), () => Mn(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => O(e));
|
|
1795
1795
|
}
|
|
1796
1796
|
const q = {
|
|
1797
1797
|
normalize: function(e) {
|
|
1798
|
-
return e.map((e) => O(e) || l(e) || w(e) ?
|
|
1798
|
+
return e.map((e) => O(e) || l(e) || w(e) ? kr(String(e)) : e);
|
|
1799
1799
|
},
|
|
1800
1800
|
interpolate: (e) => e,
|
|
1801
1801
|
type: "vnode"
|
|
@@ -1807,23 +1807,23 @@ function Or(t = {}) {
|
|
|
1807
1807
|
function K(e) {
|
|
1808
1808
|
return b(_.value, e) || {};
|
|
1809
1809
|
}
|
|
1810
|
-
|
|
1810
|
+
Or++, (0, e.watch)(m, () => j(m.value), {
|
|
1811
1811
|
deep: !0,
|
|
1812
1812
|
flush: "sync"
|
|
1813
1813
|
}), n && r && ((0, e.watch)(n.locale, (e) => {
|
|
1814
|
-
u && (f.value = e, M.locale = e,
|
|
1814
|
+
u && (f.value = e, M.locale = e, an(M, f.value, m.value));
|
|
1815
1815
|
}), (0, e.watch)(n.fallbackLocale, (e) => {
|
|
1816
|
-
u && (m.value = e, M.fallbackLocale = m.value,
|
|
1816
|
+
u && (m.value = e, M.fallbackLocale = m.value, an(M, f.value, m.value));
|
|
1817
1817
|
}));
|
|
1818
1818
|
const B = {
|
|
1819
|
-
id:
|
|
1820
|
-
locale:
|
|
1819
|
+
id: Or,
|
|
1820
|
+
locale: R,
|
|
1821
1821
|
fallbackLocale: A,
|
|
1822
1822
|
get inheritLocale() {
|
|
1823
1823
|
return u;
|
|
1824
1824
|
},
|
|
1825
1825
|
set inheritLocale(e) {
|
|
1826
|
-
u = e, e && n && (
|
|
1826
|
+
u = e, e && n && (R.value = n.locale.value, A.value = n.fallbackLocale.value);
|
|
1827
1827
|
},
|
|
1828
1828
|
get availableLocales() {
|
|
1829
1829
|
return Object.keys(_.value).sort();
|
|
@@ -1833,7 +1833,7 @@ function Or(t = {}) {
|
|
|
1833
1833
|
return V;
|
|
1834
1834
|
},
|
|
1835
1835
|
get pluralRules() {
|
|
1836
|
-
return
|
|
1836
|
+
return $ || {};
|
|
1837
1837
|
},
|
|
1838
1838
|
get isGlobal() {
|
|
1839
1839
|
return a;
|
|
@@ -1877,10 +1877,10 @@ function Or(t = {}) {
|
|
|
1877
1877
|
t: G,
|
|
1878
1878
|
getLocaleMessage: K,
|
|
1879
1879
|
setLocaleMessage: function(e, t) {
|
|
1880
|
-
|
|
1880
|
+
dr(e) || (s && _r(t), _.value[e] = t, M.messages = _.value);
|
|
1881
1881
|
},
|
|
1882
1882
|
mergeLocaleMessage: function(e, t) {
|
|
1883
|
-
|
|
1883
|
+
dr(e) || (_.value[e] = b(_.value, e) || {}, s && _r(t), Q(t, _.value[e]), M.messages = _.value);
|
|
1884
1884
|
},
|
|
1885
1885
|
getPostTranslationHandler: function() {
|
|
1886
1886
|
return E(S) ? S : null;
|
|
@@ -1892,23 +1892,23 @@ function Or(t = {}) {
|
|
|
1892
1892
|
return x;
|
|
1893
1893
|
},
|
|
1894
1894
|
setMissingHandler: function(e) {
|
|
1895
|
-
null !== e && (T =
|
|
1895
|
+
null !== e && (T = wr(e)), x = e, M.missing = T;
|
|
1896
1896
|
},
|
|
1897
|
-
[
|
|
1898
|
-
|
|
1897
|
+
[tr]: function(e) {
|
|
1898
|
+
$ = e, M.pluralRules = $;
|
|
1899
1899
|
}
|
|
1900
1900
|
};
|
|
1901
1901
|
return B.datetimeFormats = Y, B.numberFormats = H, B.rt = function(...e) {
|
|
1902
1902
|
const [t, n, r] = e;
|
|
1903
|
-
if (r && !L(r)) throw
|
|
1903
|
+
if (r && !L(r)) throw Jn(Rn);
|
|
1904
1904
|
return G(t, n, d({ resolvedMessage: !0 }, r || {}));
|
|
1905
1905
|
}, B.te = function(e, t) {
|
|
1906
1906
|
return z(() => {
|
|
1907
1907
|
if (!e) return !1;
|
|
1908
1908
|
const n = O(t) ? t : f.value, r = O(t) ? [n] : M.localeFallbacker(M, m.value, n);
|
|
1909
|
-
for (let t = 0; t < r.length; t++) if (
|
|
1909
|
+
for (let t = 0; t < r.length; t++) if (Sn(J(r[t], e))) return !0;
|
|
1910
1910
|
return !1;
|
|
1911
|
-
}, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]),
|
|
1911
|
+
}, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), Er, (e) => w(e));
|
|
1912
1912
|
}, B.tm = function(e) {
|
|
1913
1913
|
const t = function(e) {
|
|
1914
1914
|
let t = null;
|
|
@@ -1924,47 +1924,47 @@ function Or(t = {}) {
|
|
|
1924
1924
|
}(e);
|
|
1925
1925
|
return null != t ? t : n && n.tm(e) || {};
|
|
1926
1926
|
}, B.d = function(...e) {
|
|
1927
|
-
return z((t) => Reflect.apply(
|
|
1927
|
+
return z((t) => Reflect.apply(gn, null, [t, ...e]), () => hn(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => O(e) || N(e));
|
|
1928
1928
|
}, B.n = function(...e) {
|
|
1929
|
-
return z((t) => Reflect.apply(
|
|
1929
|
+
return z((t) => Reflect.apply(bn, null, [t, ...e]), () => Nn(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => O(e) || N(e));
|
|
1930
1930
|
}, B.getDateTimeFormat = function(e) {
|
|
1931
1931
|
return b(g.value, e) || {};
|
|
1932
1932
|
}, B.setDateTimeFormat = function(e, t) {
|
|
1933
|
-
|
|
1933
|
+
dr(e) || (g.value[e] = t, M.datetimeFormats = g.value, kn(M, e, t));
|
|
1934
1934
|
}, B.mergeDateTimeFormat = function(e, t) {
|
|
1935
|
-
|
|
1935
|
+
dr(e) || (g.value[e] = d(b(g.value, e) || {}, t), M.datetimeFormats = g.value, kn(M, e, t));
|
|
1936
1936
|
}, B.getNumberFormat = function(e) {
|
|
1937
1937
|
return b(v.value, e) || {};
|
|
1938
1938
|
}, B.setNumberFormat = function(e, t) {
|
|
1939
|
-
|
|
1939
|
+
dr(e) || (v.value[e] = t, M.numberFormats = v.value, En(M, e, t));
|
|
1940
1940
|
}, B.mergeNumberFormat = function(e, t) {
|
|
1941
|
-
|
|
1942
|
-
}, B[
|
|
1941
|
+
dr(e) || (v.value[e] = d(b(v.value, e) || {}, t), M.numberFormats = v.value, En(M, e, t));
|
|
1942
|
+
}, B[nr] = o, B[Bn] = function(...e) {
|
|
1943
1943
|
return z((t) => {
|
|
1944
1944
|
let n;
|
|
1945
1945
|
const r = t;
|
|
1946
1946
|
try {
|
|
1947
|
-
r.processor = q, n = Reflect.apply(
|
|
1947
|
+
r.processor = q, n = Reflect.apply(Pn, null, [r, ...e]);
|
|
1948
1948
|
} finally {
|
|
1949
1949
|
r.processor = null;
|
|
1950
1950
|
}
|
|
1951
1951
|
return n;
|
|
1952
|
-
}, () =>
|
|
1953
|
-
}, B[
|
|
1954
|
-
return z((t) => Reflect.apply(
|
|
1955
|
-
}, B[
|
|
1956
|
-
return z((t) => Reflect.apply(
|
|
1957
|
-
}, "production" !== process.env.NODE_ENV && (B[
|
|
1952
|
+
}, () => Mn(...e), "translate", (t) => t[Bn](...e), (e) => [kr(e)], (e) => N(e));
|
|
1953
|
+
}, B[Zn] = function(...e) {
|
|
1954
|
+
return z((t) => Reflect.apply(gn, null, [t, ...e]), () => hn(...e), "datetime format", (t) => t[Zn](...e), Nr, (e) => O(e) || N(e));
|
|
1955
|
+
}, B[Xn] = function(...e) {
|
|
1956
|
+
return z((t) => Reflect.apply(bn, null, [t, ...e]), () => Nn(...e), "number format", (t) => t[Xn](...e), Nr, (e) => O(e) || N(e));
|
|
1957
|
+
}, "production" !== process.env.NODE_ENV && (B[Qn] = (e) => {
|
|
1958
1958
|
M.__v_emitter = e;
|
|
1959
|
-
}, B[
|
|
1959
|
+
}, B[er] = () => {
|
|
1960
1960
|
M.__v_emitter = void 0;
|
|
1961
1961
|
}), B;
|
|
1962
1962
|
}
|
|
1963
|
-
var
|
|
1964
|
-
function
|
|
1965
|
-
if (
|
|
1963
|
+
var Ir;
|
|
1964
|
+
function xr(e, t) {
|
|
1965
|
+
if (Ir) {
|
|
1966
1966
|
let n;
|
|
1967
|
-
t && "groupId" in t && (n = t.groupId, delete t.groupId),
|
|
1967
|
+
t && "groupId" in t && (n = t.groupId, delete t.groupId), Ir.addTimelineEvent({
|
|
1968
1968
|
layerId: "vue-i18n-timeline",
|
|
1969
1969
|
event: {
|
|
1970
1970
|
title: e,
|
|
@@ -1977,7 +1977,7 @@ function Lr(e, t) {
|
|
|
1977
1977
|
});
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
var
|
|
1980
|
+
var Cr = {
|
|
1981
1981
|
tag: { type: [String, Object] },
|
|
1982
1982
|
locale: { type: String },
|
|
1983
1983
|
scope: {
|
|
@@ -1996,78 +1996,78 @@ d({
|
|
|
1996
1996
|
type: [Number, String],
|
|
1997
1997
|
validator: (e) => l(e) || !isNaN(e)
|
|
1998
1998
|
}
|
|
1999
|
-
},
|
|
1999
|
+
}, Cr);
|
|
2000
2000
|
d({
|
|
2001
2001
|
value: {
|
|
2002
2002
|
type: Number,
|
|
2003
2003
|
required: !0
|
|
2004
2004
|
},
|
|
2005
2005
|
format: { type: [String, Object] }
|
|
2006
|
-
},
|
|
2007
|
-
var
|
|
2008
|
-
function
|
|
2009
|
-
const n =
|
|
2010
|
-
if (null == n) throw
|
|
2011
|
-
if (!n.isCE && null != n.appContext.app && !n.appContext.app.__VUE_I18N_SYMBOL__) throw
|
|
2006
|
+
}, Cr);
|
|
2007
|
+
var Sr = s("global-vue-i18n");
|
|
2008
|
+
function Pr(t = {}) {
|
|
2009
|
+
const n = br();
|
|
2010
|
+
if (null == n) throw Jn(Wn);
|
|
2011
|
+
if (!n.isCE && null != n.appContext.app && !n.appContext.app.__VUE_I18N_SYMBOL__) throw Jn(jn);
|
|
2012
2012
|
const r = function(t) {
|
|
2013
|
-
const n = (0, e.inject)(t.isCE ?
|
|
2014
|
-
if (!n) throw
|
|
2013
|
+
const n = (0, e.inject)(t.isCE ? Sr : t.appContext.app.__VUE_I18N_SYMBOL__);
|
|
2014
|
+
if (!n) throw Jn(t.isCE ? Hn : zn);
|
|
2015
2015
|
return n;
|
|
2016
2016
|
}(n), o = function(e) {
|
|
2017
2017
|
return "composition" === e.mode ? e.global : e.global.__composer;
|
|
2018
|
-
}(r), a =
|
|
2018
|
+
}(r), a = vr(n), s = function(e, t) {
|
|
2019
2019
|
return m(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
2020
2020
|
}(t, a);
|
|
2021
|
-
if ("global" === s) return
|
|
2021
|
+
if ("global" === s) return hr(o, t, a), o;
|
|
2022
2022
|
if ("parent" === s) {
|
|
2023
|
-
let e =
|
|
2024
|
-
return null == e && ("production" !== process.env.NODE_ENV && D(
|
|
2023
|
+
let e = Fr(r, n, t.__useComponent);
|
|
2024
|
+
return null == e && ("production" !== process.env.NODE_ENV && D(pr(ar)), e = o), e;
|
|
2025
2025
|
}
|
|
2026
2026
|
if ("isolated" === s) {
|
|
2027
|
-
if ("composition" !== r.mode) throw
|
|
2027
|
+
if ("composition" !== r.mode) throw Jn(qn);
|
|
2028
2028
|
const a = r, s = d({}, t);
|
|
2029
|
-
s.__root =
|
|
2030
|
-
const l =
|
|
2031
|
-
a.__composerExtend && (l[
|
|
2029
|
+
s.__root = Fr(r, n) || o;
|
|
2030
|
+
const l = Lr(s);
|
|
2031
|
+
a.__composerExtend && (l[rr] = a.__composerExtend(l));
|
|
2032
2032
|
let i = null;
|
|
2033
2033
|
if ("production" !== process.env.NODE_ENV) {
|
|
2034
|
-
i =
|
|
2034
|
+
i = Z();
|
|
2035
2035
|
const e = l;
|
|
2036
|
-
e[
|
|
2036
|
+
e[Qn] && e[Qn](i), i.on("*", xr);
|
|
2037
2037
|
}
|
|
2038
2038
|
return (0, e.getCurrentScope)() && (0, e.onScopeDispose)(() => {
|
|
2039
2039
|
if ("production" !== process.env.NODE_ENV) {
|
|
2040
|
-
i && i.off("*",
|
|
2040
|
+
i && i.off("*", xr);
|
|
2041
2041
|
const e = l;
|
|
2042
|
-
e[
|
|
2042
|
+
e[er] && e[er]();
|
|
2043
2043
|
}
|
|
2044
|
-
const e = l[
|
|
2045
|
-
e && (e(), delete l[
|
|
2044
|
+
const e = l[rr];
|
|
2045
|
+
e && (e(), delete l[rr]);
|
|
2046
2046
|
}), l;
|
|
2047
2047
|
}
|
|
2048
2048
|
const c = r;
|
|
2049
2049
|
let l = c.__getInstance(n);
|
|
2050
2050
|
if (null == l) {
|
|
2051
2051
|
const r = d({}, t);
|
|
2052
|
-
"__i18n" in a && (r.__i18n = a.__i18n), o && (r.__root = o), l =
|
|
2052
|
+
"__i18n" in a && (r.__i18n = a.__i18n), o && (r.__root = o), l = Lr(r), c.__composerExtend && (l[rr] = c.__composerExtend(l)), function(t, n, r) {
|
|
2053
2053
|
let o = null;
|
|
2054
2054
|
(0, e.onMounted)(() => {
|
|
2055
2055
|
if ("production" !== process.env.NODE_ENV) {
|
|
2056
|
-
n.__VUE_I18N__ = r, o =
|
|
2056
|
+
n.__VUE_I18N__ = r, o = Z();
|
|
2057
2057
|
const e = r;
|
|
2058
|
-
e[
|
|
2058
|
+
e[Qn] && e[Qn](o), o.on("*", xr);
|
|
2059
2059
|
}
|
|
2060
2060
|
}, n), (0, e.onUnmounted)(() => {
|
|
2061
2061
|
const e = r;
|
|
2062
|
-
"production" !== process.env.NODE_ENV && (o && o.off("*",
|
|
2063
|
-
const a = e[
|
|
2064
|
-
a && (a(), delete e[
|
|
2062
|
+
"production" !== process.env.NODE_ENV && (o && o.off("*", xr), e[er] && e[er](), delete n.__VUE_I18N__), t.__deleteInstance(n);
|
|
2063
|
+
const a = e[rr];
|
|
2064
|
+
a && (a(), delete e[rr]);
|
|
2065
2065
|
}, n);
|
|
2066
2066
|
}(c, n, l), c.__setInstance(n, l);
|
|
2067
|
-
} else "production" !== process.env.NODE_ENV && "local" === s && D(
|
|
2067
|
+
} else "production" !== process.env.NODE_ENV && "local" === s && D(pr(ir));
|
|
2068
2068
|
return l;
|
|
2069
2069
|
}
|
|
2070
|
-
function
|
|
2070
|
+
function Fr(e, t, n = !1) {
|
|
2071
2071
|
let r = null;
|
|
2072
2072
|
const o = t.root;
|
|
2073
2073
|
let a = function(e, t = !1) {
|
|
@@ -2079,7 +2079,7 @@ function Sr(e, t, n = !1) {
|
|
|
2079
2079
|
if ("composition" === e.mode) r = t.__getInstance(a);
|
|
2080
2080
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
2081
2081
|
const e = t.__getInstance(a);
|
|
2082
|
-
null != e && (r = e.__composer, n && r && !r[
|
|
2082
|
+
null != e && (r = e.__composer, n && r && !r[nr] && (r = null));
|
|
2083
2083
|
}
|
|
2084
2084
|
if (null != r) break;
|
|
2085
2085
|
if (o === a) break;
|
|
@@ -2087,45 +2087,45 @@ function Sr(e, t, n = !1) {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
return r;
|
|
2089
2089
|
}
|
|
2090
|
-
var
|
|
2090
|
+
var Vr;
|
|
2091
2091
|
d({
|
|
2092
2092
|
value: {
|
|
2093
2093
|
type: [Number, Date],
|
|
2094
2094
|
required: !0
|
|
2095
2095
|
},
|
|
2096
2096
|
format: { type: [String, Object] }
|
|
2097
|
-
},
|
|
2098
|
-
if ("boolean" != typeof __VUE_I18N_FULL_INSTALL__ && (v().__VUE_I18N_FULL_INSTALL__ = !0), "boolean" != typeof __VUE_I18N_LEGACY_API__ && (v().__VUE_I18N_LEGACY_API__ = !0), "boolean" != typeof __INTLIFY_DROP_MESSAGE_COMPILER__ && (v().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), "boolean" != typeof __INTLIFY_PROD_DEVTOOLS__ && (v().__INTLIFY_PROD_DEVTOOLS__ = !1),
|
|
2097
|
+
}, Cr);
|
|
2098
|
+
if ("boolean" != typeof __VUE_I18N_FULL_INSTALL__ && (v().__VUE_I18N_FULL_INSTALL__ = !0), "boolean" != typeof __VUE_I18N_LEGACY_API__ && (v().__VUE_I18N_LEGACY_API__ = !0), "boolean" != typeof __INTLIFY_DROP_MESSAGE_COMPILER__ && (v().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), "boolean" != typeof __INTLIFY_PROD_DEVTOOLS__ && (v().__INTLIFY_PROD_DEVTOOLS__ = !1), Yt = function(e, t) {
|
|
2099
2099
|
if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && O(e)) {
|
|
2100
2100
|
const n = !w(t.warnHtmlMessage) || t.warnHtmlMessage;
|
|
2101
|
-
"production" !== process.env.NODE_ENV &&
|
|
2102
|
-
const r = (t.onCacheKey ||
|
|
2101
|
+
"production" !== process.env.NODE_ENV && ot(e, n);
|
|
2102
|
+
const r = (t.onCacheKey || at)(e), o = st[r];
|
|
2103
2103
|
if (o) return o;
|
|
2104
2104
|
const { ast: a, detectError: s } = function(e, t = {}) {
|
|
2105
2105
|
let n = !1;
|
|
2106
|
-
const r = t.onError ||
|
|
2106
|
+
const r = t.onError || ke;
|
|
2107
2107
|
return t.onError = (e) => {
|
|
2108
2108
|
n = !0, r(e);
|
|
2109
2109
|
}, {
|
|
2110
|
-
|
|
2110
|
+
...je(e, t),
|
|
2111
2111
|
detectError: n
|
|
2112
2112
|
};
|
|
2113
2113
|
}(e, {
|
|
2114
2114
|
...t,
|
|
2115
2115
|
location: "production" !== process.env.NODE_ENV,
|
|
2116
2116
|
jit: !0
|
|
2117
|
-
}), c =
|
|
2118
|
-
return s ? c :
|
|
2117
|
+
}), c = tt(a);
|
|
2118
|
+
return s ? c : st[r] = c;
|
|
2119
2119
|
}
|
|
2120
2120
|
{
|
|
2121
|
-
if (!
|
|
2121
|
+
if (!Ae(e)) return "production" !== process.env.NODE_ENV && D(`Cannot compile the message of '${t.key}' key, because the message compiler is not included in this build. Pre-compile the message. So translate function returns the message as is.`), () => e;
|
|
2122
2122
|
const n = e.cacheKey;
|
|
2123
|
-
if (n) return
|
|
2124
|
-
return
|
|
2123
|
+
if (n) return st[n] || (st[n] = tt(e));
|
|
2124
|
+
return tt(e);
|
|
2125
2125
|
}
|
|
2126
|
-
},
|
|
2126
|
+
}, Ht = function(e, t) {
|
|
2127
2127
|
if (!L(e)) return null;
|
|
2128
|
-
let n =
|
|
2128
|
+
let n = Tt.get(t);
|
|
2129
2129
|
if (n || (n = function(e) {
|
|
2130
2130
|
const t = [];
|
|
2131
2131
|
let n, r, o, a, s, c, l, i = -1, u = 0, f = 0;
|
|
@@ -2144,20 +2144,20 @@ if ("boolean" != typeof __VUE_I18N_FULL_INSTALL__ && (v().__VUE_I18N_FULL_INSTAL
|
|
|
2144
2144
|
if (f > 0) f--, u = 4, p[0]();
|
|
2145
2145
|
else {
|
|
2146
2146
|
if (f = 0, void 0 === r) return !1;
|
|
2147
|
-
if (r =
|
|
2147
|
+
if (r = Ct(r), !1 === r) return !1;
|
|
2148
2148
|
p[1]();
|
|
2149
2149
|
}
|
|
2150
2150
|
}; null !== u;) if (i++, n = e[i], "\\" !== n || !m()) {
|
|
2151
|
-
if (a =
|
|
2151
|
+
if (a = xt(n), l = Lt[u], s = l[a] || l.l || 8, 8 === s) return;
|
|
2152
2152
|
if (u = s[0], void 0 !== s[1] && (c = p[s[1]], c && (o = n, !1 === c()))) return;
|
|
2153
2153
|
if (7 === u) return t;
|
|
2154
2154
|
}
|
|
2155
|
-
}(t), n &&
|
|
2155
|
+
}(t), n && Tt.set(t, n)), !n) return null;
|
|
2156
2156
|
const r = n.length;
|
|
2157
2157
|
let o = e, a = 0;
|
|
2158
2158
|
for (; a < r;) {
|
|
2159
2159
|
const e = n[a];
|
|
2160
|
-
if (
|
|
2160
|
+
if (Qe.includes(e) && Ae(o)) return null;
|
|
2161
2161
|
if (!L(o)) return null;
|
|
2162
2162
|
if (!k(o, e)) return null;
|
|
2163
2163
|
const t = o[e];
|
|
@@ -2166,22 +2166,22 @@ if ("boolean" != typeof __VUE_I18N_FULL_INSTALL__ && (v().__VUE_I18N_FULL_INSTAL
|
|
|
2166
2166
|
o = t, a++;
|
|
2167
2167
|
}
|
|
2168
2168
|
return o;
|
|
2169
|
-
},
|
|
2170
|
-
const r = O(n) ? n :
|
|
2169
|
+
}, zt = function(e, t, n) {
|
|
2170
|
+
const r = O(n) ? n : Gt, o = e;
|
|
2171
2171
|
let a;
|
|
2172
2172
|
L(t) ? (o.__localeChainObjectCache || (o.__localeChainObjectCache = /* @__PURE__ */ new WeakMap()), a = o.__localeChainObjectCache.get(t), a || (a = /* @__PURE__ */ new Map(), o.__localeChainObjectCache.set(t, a))) : (o.__localeChainCache || (o.__localeChainCache = /* @__PURE__ */ new Map()), a = o.__localeChainCache.get(t), a || (a = /* @__PURE__ */ new Map(), o.__localeChainCache.set(t, a)));
|
|
2173
2173
|
const s = a.get(r);
|
|
2174
2174
|
if (s) return s;
|
|
2175
2175
|
const c = [];
|
|
2176
2176
|
let l = [n];
|
|
2177
|
-
for (; N(l);) l =
|
|
2177
|
+
for (; N(l);) l = Et(c, l, t);
|
|
2178
2178
|
const i = N(t) || !C(t) ? t : t.default ? t.default : null;
|
|
2179
|
-
return l = O(i) ? [i] : i, N(l) &&
|
|
2179
|
+
return l = O(i) ? [i] : i, N(l) && Et(c, l, !1), a.set(r, c), c;
|
|
2180
2180
|
}, "production" !== process.env.NODE_ENV || __INTLIFY_PROD_DEVTOOLS__) {
|
|
2181
2181
|
const e = v();
|
|
2182
|
-
e.__INTLIFY__ = !0,
|
|
2182
|
+
e.__INTLIFY__ = !0, Vr = e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__, ct = Vr;
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function Mr(t) {
|
|
2185
2185
|
const n = (0, e.shallowRef)(t.getSnapshot()), r = t.subscribe(() => {
|
|
2186
2186
|
n.value = t.getSnapshot();
|
|
2187
2187
|
});
|
|
@@ -2190,11 +2190,11 @@ function Fr(t) {
|
|
|
2190
2190
|
process.env.NODE_ENV, Object.defineProperty(exports, "useController", {
|
|
2191
2191
|
enumerable: !0,
|
|
2192
2192
|
get: function() {
|
|
2193
|
-
return
|
|
2193
|
+
return Mr;
|
|
2194
2194
|
}
|
|
2195
2195
|
}), Object.defineProperty(exports, "useI18n", {
|
|
2196
2196
|
enumerable: !0,
|
|
2197
2197
|
get: function() {
|
|
2198
|
-
return
|
|
2198
|
+
return Pr;
|
|
2199
2199
|
}
|
|
2200
2200
|
});
|